forked from copasi/COPASI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.bat
executable file
·139 lines (105 loc) · 3.21 KB
/
configure.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
@echo off
echo @echo off > config.status.bat
echo echo running: configure.bat %* >> config.status.bat
echo configure.bat %* >> config.status.bat
set arguments=BUILD_ROOT=%~dp0
set PROJECT=%QMAKESPEC%
:LOOP
if '%1' == '' goto QMAKE
if '%1' == '--enable-debug' goto DEBUG
if '%1' == '--disable-debug' goto RELEASE
if '%1' == '--enable-release' goto RELEASE
if '%1' == '--disable-release' goto DEBUG
if '%1' == '--project' goto PROJECT
if '%1' == '--libpath' goto LIBPATH
set arguments=%arguments% %1
shift
goto LOOP
:DEBUG
:RELEASE
rem debug and release is ignored
shift
goto LOOP
:PROJECT
shift
set PROJECT=%1
shift
goto LOOP
:LIBPATH
shift
set LDFLAGS=%LDFLAGS% /LIBPATH:%1
shift
goto LOOP
:QMAKE
if '%QT4DIR%' == '' goto QT4DIR_NotSet
set QMAKE=%QT4DIR%\bin\qmake
goto CONFIGURE
:QT4DIR_NotSet
if '%QTDIR%' == '' goto QTDIR_NotSet
set QMAKE=%QTDIR%\bin\qmake
goto CONFIGURE
:QTDIR_NotSet
set QMAKE=qmake
goto CONFIGURE
:CONFIGURE
rem Clean
del /S Makefile*
del copasi\commandline\debug\CConfigurationFile.obj
del copasi\commandline\release\CConfigurationFile.obj
del copasi\UI\debug\copasiui3window.obj
del copasi\UI\release\copasiui3window.obj
del copasi\UI\debug\CQSplashWidget.obj
del copasi\UI\release\CQSplashWidget.obj
del copasi\CopasiUI\debug\main.obj
del copasi\CopasiUI\release\main.obj
del copasi\CopasiSE\debug\CopasiSE.obj
del copasi\CopasiSE\release\CopasiSE.obj
rem Remeber the user setting
set MY_QMAKESPEC=%QMAKESPEC%
cd copasi
echo Executing in copasi:
rem Creating Visual Studio Project Files
copy copasi.pro tmp.pro
set QMAKESPEC=%PROJECT%
Echo %QMAKE% -tp vc -r "CONFIG-=release" "CONFIG-=debug" %arguments% copasi.pro
%QMAKE% -tp vc -r "CONFIG-=release" "CONFIG-=debug" %arguments% tmp.pro
rem del tmp*
set QMAKESPEC=%MY_QMAKESPEC%
rem Creating Makefiles
echo %QMAKE% "CONFIG-=release" "CONFIG-=debug" %arguments%
%QMAKE% "CONFIG-=release" "CONFIG-=debug" %arguments%
nmake qmake_all
cd libs
nmake qmake_all
cd ..
cd ..
rem Build the semantic test suite wrapper
cd semantic-test-suite
echo Executing in semantic-test-suite:
echo %QMAKE% -tp vc -r "CONFIG-=release" "CONFIG-=debug" %arguments%
set QMAKESPEC=%PROJECT%
%QMAKE% -tp vc -r "CONFIG-=release" "CONFIG-=debug" %arguments%
echo %QMAKE% "CONFIG-=release" "CONFIG-=debug" %arguments%
set QMAKESPEC=%MY_QMAKESPEC%
%QMAKE% "CONFIG-=release" "CONFIG-=debug" %arguments%
cd ..
rem Build the stochastic test suite wrapper
cd stochastic-testsuite
echo executing in stochastic-testsuite:
echo %QMAKE% -tp vc -r "CONFIG-=release" "CONFIG-=debug" %arguments%
set QMAKESPEC=%PROJECT%
%QMAKE% -tp vc -r "CONFIG-=release" "CONFIG-=debug" %arguments%
echo %QMAKE% "CONFIG-=release" "CONFIG-=debug" %arguments%
set QMAKESPEC=%MY_QMAKESPEC%
%QMAKE% "CONFIG-=release" "CONFIG-=debug" %arguments%
cd ..
rem Build the SBML test suite wrapper
cd sbml-testsuite
echo executing in sbml-testsuite:
echo %QMAKE% -tp vc -r "CONFIG-=release" "CONFIG-=debug" %arguments%
set QMAKESPEC=%PROJECT%
%QMAKE% -tp vc -r "CONFIG-=release" "CONFIG-=debug" %arguments%
echo %QMAKE% "CONFIG-=release" "CONFIG-=debug" %arguments%
set QMAKESPEC=%MY_QMAKESPEC%
%QMAKE% "CONFIG-=release" "CONFIG-=debug" %arguments%
cd ..