File: make_win.bat

package info (click to toggle)
beid 3.5.2.dfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 147,240 kB
  • ctags: 34,507
  • sloc: cpp: 149,944; ansic: 41,577; java: 8,927; cs: 6,528; sh: 2,426; perl: 1,866; xml: 805; python: 463; makefile: 263; lex: 92
file content (201 lines) | stat: -rw-r--r-- 5,011 bytes parent folder | download
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
@call "%~dp0set_path.bat"

:: Check Visual Studio 2005
:: ========================
@call "%~dp0..\_src\eidmw\SetPathVs2005.bat"
@if %ERRORLEVEL%==0 goto find_vs2005

@echo [TIP] Use set_path.bat script to define BEID_DIR_VS_2005
@goto end

:find_vs2005
@echo [INFO] Using BEID_DIR_VS_2005=%BEID_DIR_VS_2005%


:: Check Doxygen
:: =============
@call "%~dp0..\_src\eidmw\SetPathDoxygen.bat"
@if %ERRORLEVEL%==0 goto find_doxygen

@echo [TIP] Use set_path.bat script to define BEID_DIR_DOXYGEN
@goto end

:find_doxygen
@echo [INFO] Using BEID_DIR_DOXYGEN=%BEID_DIR_DOXYGEN%


:: Check Swig
:: ==========
@call "%~dp0..\_src\eidmw\SetPathSwig.bat"
@if %ERRORLEVEL%==0 goto find_swig

@echo [TIP] Use set_path.bat script to define BEID_DIR_SWIG
@goto end

:find_swig
@echo [INFO] Using BEID_DIR_SWIG=%BEID_DIR_SWIG%


:: Check Java
:: ==========
@call "%~dp0..\_src\eidmw\SetPathJdk142.bat"
@if %ERRORLEVEL%==0 goto find_jdk

@echo [TIP] Use set_path.bat script to define BEID_DIR_JDK_142
@goto end

:find_jdk
@echo [INFO] Using BEID_DIR_JDK_142=%BEID_DIR_JDK_142%


:: Check WiX
:: =========
@call "%~dp0..\_src\eidmw\SetPathWix.bat"
@if %ERRORLEVEL%==0 goto find_wix

@echo [TIP] Install ProjectAggregator2.msi and Wix3-3.0.4415.msi
@goto end

:find_wix
@echo [INFO] Using BEID_DIR_WIX=%BEID_DIR_WIX%


:: Check MSM
:: =========
@call "%~dp0..\_src\eidmw\SetPathMsm.bat"
@if %ERRORLEVEL%==0 goto find_msm

@echo [TIP] Use set_path.bat script to define BEID_DIR_MSM
@goto end

:find_msm
@echo [INFO] Using BEID_DIR_MSM=%BEID_DIR_MSM%


:: Check MS Platform SDK 2003
:: ==========================
@call "%~dp0..\_src\eidmw\SetPathPSdk2003.bat"
@if %ERRORLEVEL%==0 goto find_mssdk2003

@echo [TIP] Use set_path.bat script to define BEID_DIR_PLATFORMSDK_2003
@goto end

:find_mssdk2003
@echo [INFO] Using BEID_DIR_PLATFORMSDK_2003=%BEID_DIR_PLATFORMSDK_2003%


:: Check MS Platform SDK 2008
:: ==========================
@call "%~dp0..\_src\eidmw\SetPathPSdk2008.bat"
@if %ERRORLEVEL%==0 goto find_mssdk2008

@echo [TIP] Use set_path.bat script to define BEID_DIR_PLATFORMSDK_2008
@goto end

:find_mssdk2008
@echo [INFO] Using BEID_DIR_PLATFORMSDK_2008=%BEID_DIR_PLATFORMSDK_2008%


:: Check QT 3.3.4
:: ==============
@call "%~dp0..\_src\beid-2.6\src\eidlib\SetPathQt334.bat"
@if %ERRORLEVEL%==0 goto find_qt334

@echo [TIP] Use set_path.bat script to define BEID_DIR_QT_334 
@goto end

:find_qt334
@echo [INFO] Using BEID_DIR_QT_334=%BEID_DIR_QT_334%


:: Check QT 4.5.0 exe
:: ==================
@call "%~dp0..\_src\eidmw\SetPathQt450_Exe.bat"
@if %ERRORLEVEL%==0 goto find_qt450_exe

@echo [TIP] Use set_path.bat script to define BEID_DIR_QT_450_EXE
@goto end

:find_qt450_exe
@echo [INFO] Using BEID_DIR_QT_450_EXE=%BEID_DIR_QT_450_EXE%


:: Check QT 4.5.0 include
:: ======================
@call "%~dp0..\_src\eidmw\SetPathQt450_Include.bat"
@if %ERRORLEVEL%==0 goto find_qt450_include

@echo [TIP] Use set_path.bat script to define BEID_DIR_QT_450_INCLUDE 
@goto end

:find_qt450_include
@echo [INFO] Using BEID_DIR_QT_450_INCLUDE=%BEID_DIR_QT_450_INCLUDE%


:: Check QT 4.5.0 dynamic
:: ======================
@call "%~dp0..\_src\eidmw\SetPathQt450_Dynamic.bat"
@if %ERRORLEVEL%==0 goto find_qt450_dynamic

@echo [TIP] Use set_path.bat script to define BEID_DIR_QT_450_DYNAMIC 
@goto end

:find_qt450_dynamic
@echo [INFO] Using BEID_DIR_QT_450_DYNAMIC=%BEID_DIR_QT_450_DYNAMIC%


:: Check QT 4.5.0 static
:: =====================
@call "%~dp0..\_src\eidmw\SetPathQt450_Static.bat"
@if %ERRORLEVEL%==0 goto find_qt450_static

@echo [TIP] Use set_path.bat script to define BEID_DIR_QT_450_STATIC 
@goto end

:find_qt450_static
@echo [INFO] Using BEID_DIR_QT_450_STATIC=%BEID_DIR_QT_450_STATIC%


:: Check OpenSSL 0.9.8g
:: ====================
@call "%~dp0..\_src\eidmw\SetPathOpenssl098g.bat"
@if %ERRORLEVEL%==0 goto find_openssl_098g

@echo [TIP] Use set_path.bat script to define BEID_DIR_OPENSSL_098G 
@goto end

:find_openssl_098g
@echo [INFO] Using BEID_DIR_OPENSSL_098G=%BEID_DIR_OPENSSL_098G%


:: Check Xerces 2.8.0
:: ==================
@call "%~dp0..\_src\eidmw\SetPathXerces280.bat"
@if %ERRORLEVEL%==0 goto find_xerces_280

@echo [TIP] Use set_path.bat script to define BEID_DIR_XERCES_280
@goto end

:find_xerces_280
@echo [INFO] Using BEID_DIR_XERCES_280=%BEID_DIR_XERCES_280%


:: BUILD
:: =====

@if "%DEBUG%"=="1" goto debug

:build
@echo [INFO] Building "%~dp0..\_src\eidmw\_Builds\BeidEasyBuild.sln"
@"%BEID_DIR_VS_2005%\Common7\IDE\devenv.exe" "%~dp0..\_src\eidmw\_Builds\BeidEasyBuild.sln" /clean Release
@"%BEID_DIR_VS_2005%\Common7\IDE\devenv.exe" "%~dp0..\_src\eidmw\_Builds\BeidEasyBuild.sln" /build Release

@echo [INFO] Done...
@goto end

:debug
@"%BEID_DIR_VS_2005%\Common7\IDE\devenv.exe" "%~dp0..\_src\eidmw\_Builds\BeidEasyBuild.sln"
@goto end

:end
@if NOT "%DEBUG%"=="1" pause