-
Notifications
You must be signed in to change notification settings - Fork 3
/
createX86_vs11_x64_release.bat
executable file
·102 lines (84 loc) · 3.72 KB
/
createX86_vs11_x64_release.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
@echo off
SET BASE_DIR=%~dp0
Setlocal EnableDelayedExpansion
if "%INCLUDE%"=="" call "c:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86_amd64
if "%QTDIR%"=="" SET QTDIR=C:\Qt\qt-everywhere-opensource-src-4.8.3
if "%QMAKESPEC%"=="" SET QMAKESPEC=win32-msvc2010
SET BUILD_TYPE=Release
SET BUILD_TOOL=nmake
SET BUILD_COMMAND=
SET INSTALL_COMMAND=install
SET CMAKE=cmake -G "NMake Makefiles" %CMAKE_OVERRIDES%
if not exist %BASE_DIR%\tmp mkdir %BASE_DIR%\tmp
if not exist %BASE_DIR%\bin mkdir %BASE_DIR%\bin
if not exist %BASE_DIR%\bin\include mkdir %BASE_DIR%\bin\include
if not exist %BASE_DIR%\bin\lib mkdir %BASE_DIR%\bin\lib
REM Build Clapack
mkdir %BASE_DIR%\tmp\clapack
cd /d %BASE_DIR%\tmp\clapack
%CMAKE% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX=%BASE_DIR%\bin -DBUILD_TESTING=OFF %BASE_DIR%\src\clapack
%BUILD_TOOL% %BUILD_COMMAND%
%BUILD_TOOL% %INSTALL_COMMAND%
REM Build SBW
mkdir %BASE_DIR%\tmp\SBW
cd /d %BASE_DIR%\tmp\SBW
%CMAKE% -DWITH_BUILD_BROKER=OFF -DWITH_BUILD_SHARED=OFF -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX=%BASE_DIR%\bin %BASE_DIR%\src\core
%BUILD_TOOL% %BUILD_COMMAND%
%BUILD_TOOL% %INSTALL_COMMAND%
REM Build CPP Unit
cd /d %BASE_DIR%
mkdir %BASE_DIR%\tmp\cppunit
cd /d %BASE_DIR%\tmp\cppunit
%CMAKE% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX=%BASE_DIR%\bin %BASE_DIR%\src\cppunit
%BUILD_TOOL% %BUILD_COMMAND%
%BUILD_TOOL% %INSTALL_COMMAND%
REM Build Expat
cd /d %BASE_DIR%
mkdir %BASE_DIR%\tmp\expat
cd /d %BASE_DIR%\tmp\expat
%CMAKE% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX=%BASE_DIR%\bin -DBUILD_shared=OFF -DBUILD_tests=OFF -DBUILD_tools=OFF -DBUILD_examples=OFF %BASE_DIR%\src\expat
%BUILD_TOOL% %BUILD_COMMAND%
%BUILD_TOOL% %INSTALL_COMMAND%
REM Build libSBML
cd /d %BASE_DIR%
mkdir %BASE_DIR%\tmp\libsbml
cd /d %BASE_DIR%\tmp\libsbml
%CMAKE% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX=%BASE_DIR%/bin -DLIBSBML_USE_LEGACY_MATH=ON -DENABLE_COMP=ON -DENABLE_LAYOUT=ON -DENABLE_REQUIREDELEMENTS=OFF -DENABLE_RENDER=ON -DENABLE_COMP=ON -DENABLE_FBC=OFF -DENABLE_SPATIAL=OFF -DENABLE_GROUPS=OFF -DWITH_EXPAT=ON -DWITH_LIBXML=OFF -DLIBSBML_DEPENDENCY_DIR=%BASE_DIR%\bin -DLIBSBML_SKIP_SHARED_LIBRARY=ON -DWITH_BZIP2=OFF -DWITH_ZLIB=OFF -DENABLE_UNIVERSAL=ON %BASE_DIR%/src/libSBML
%BUILD_TOOL% %BUILD_COMMAND%
%BUILD_TOOL% %INSTALL_COMMAND%
REM build libSEDML
cd /d %BASE_DIR%
mkdir %BASE_DIR%\tmp\libSEDML
cd /d %BASE_DIR%\tmp\libSEDML
%CMAKE% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX=%BASE_DIR%/bin -DLIBSBML_STATIC=ON -DLIBSEDML_SHARED_VERSION=OFF -DLIBSEDML_SKIP_SHARED_LIBRARY=ON -DLIBSEDML_DEPENDENCY_DIR=%BASE_DIR%/bin -DEXTRA_LIBS=%BASE_DIR%/lib/expat.lib %BASE_DIR%/src/libSEDML
%BUILD_TOOL% %BUILD_COMMAND%
%BUILD_TOOL% %INSTALL_COMMAND%
REM Build Raptor
cd /d %BASE_DIR%
mkdir %BASE_DIR%\tmp\raptor
cd /d %BASE_DIR%\tmp\raptor
%CMAKE% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX=%BASE_DIR%\bin %BASE_DIR%\src\raptor
%BUILD_TOOL% %BUILD_COMMAND%
%BUILD_TOOL% %INSTALL_COMMAND%
REM mml
cd /d %BASE_DIR%
mkdir %BASE_DIR%\tmp\mml
cd /d %BASE_DIR%\tmp\mml
%CMAKE% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX=%BASE_DIR%\bin %BASE_DIR%\src\mml
%BUILD_TOOL% %BUILD_COMMAND%
%BUILD_TOOL% %INSTALL_COMMAND%
REM Build QWT
cd /d %BASE_DIR%
mkdir %BASE_DIR%\tmp\qwt
cd /d %BASE_DIR%\tmp\qwt
%CMAKE% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX=%BASE_DIR%\bin %BASE_DIR%\src\qwt
%BUILD_TOOL% %BUILD_COMMAND%
%BUILD_TOOL% %INSTALL_COMMAND%
REM Build QWT Plot
cd /d %BASE_DIR%
mkdir %BASE_DIR%\tmp\qwtplot3d
cd /d %BASE_DIR%\tmp\qwtplot3d
%CMAKE% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX=%BASE_DIR%\bin %BASE_DIR%\src\qwtplot3d-qt4
%BUILD_TOOL% %BUILD_COMMAND%
%BUILD_TOOL% %INSTALL_COMMAND%
cd /d %BASE_DIR%