/[eiffelstudio]/trunk/Delivery/scripts/windows/make_exes.btm
ViewVC logotype

Contents of /trunk/Delivery/scripts/windows/make_exes.btm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 69756 - (show annotations)
Wed Aug 1 00:14:22 2007 UTC (12 years, 6 months ago) by manus
File size: 9450 byte(s)
Fixed incorrect copy of runtime files when compiled for mingw.

1 remtrace Compile C code of the libraries
2 remtrace "A tout seigneur tout honneur", let's start with the run-time
3 md %INSTALL_DIR\releases
4 md %INSTALL_DIR\releases\enterprise_version
5 md %INSTALL_DIR\releases\gpl_version
6
7 remtrace Compile the run-times
8 iff not defined WIN64 then
9 remtrace Compile a run-time for MinGW
10 cdd %EIFFEL_SRC\C
11 call configure clean >>& %INSTALL_LOG
12 call configure win32 g >>& %INSTALL_LOG
13 cd %EIFFEL_SRC
14 copy C\run-time\LIB\*.a %STUDIO_DIR\studio\spec\%ISE_PLATFORM\lib\mingw
15
16 remtrace Compile a dynamic run-time for MinGW
17 cdd %EIFFEL_SRC\C
18 call configure clean >>& %INSTALL_LOG
19 call configure win32 g dll >>& %INSTALL_LOG
20 cd %EIFFEL_SRC
21 copy C\run-time\LIB\*dll* %STUDIO_DIR\studio\spec\%ISE_PLATFORM\lib\mingw
22 endiff
23
24 remtrace Compile a dynamic run-time for Microsoft
25 cd %EIFFEL_SRC\C
26 call configure clean >>& %INSTALL_LOG
27 iff defined WIN64 then
28 call configure win64 m dll >>& %INSTALL_LOG
29 else
30 iff defined MSC6 then
31 call configure win32 m6 dll >>& %INSTALL_LOG
32 else
33 call configure win32 m dll >>& %INSTALL_LOG
34 endiff
35 endiff
36 cd %EIFFEL_SRC
37 fullrf C\run-time\LIB\*.exp
38 copy C\run-time\LIB\*dll* %STUDIO_DIR\studio\spec\%ISE_PLATFORM\lib\msc
39 cd %EIFFEL_SRC
40
41 remtrace Compile a run-time for Microsoft
42 cd %EIFFEL_SRC\C
43 call configure clean >>& %INSTALL_LOG
44 iff defined WIN64 then
45 call configure win64 m >>& %INSTALL_LOG
46 else
47 iff defined MSC6 then
48 call configure win32 m6 >>& %INSTALL_LOG
49 else
50 call configure win32 m >>& %INSTALL_LOG
51 endiff
52 endiff
53 cd %EIFFEL_SRC
54 copy C\run-time\LIB\*.lib %STUDIO_DIR\studio\spec\%ISE_PLATFORM\lib\msc
55 iff not defined WIN64 then
56 copy C\desc\ise_desc.dll %STUDIO_DIR\studio\spec\%ISE_PLATFORM\lib\msc
57 copy C\desc\ise_desc.lib %STUDIO_DIR\studio\spec\%ISE_PLATFORM\lib\msc
58 endiff
59
60
61 remtrace Copy the header files
62 copy %EIFFEL_SRC\C\run-time\*.h %STUDIO_DIR\studio\spec\%ISE_PLATFORM\include
63 copy %EIFFEL_SRC\C\eif_confmagic.h %STUDIO_DIR\studio\spec\%ISE_PLATFORM\include
64 cd %EIFFEL_SRC
65
66 remtrace Copy the configuration file
67 iff not defined WIN64 then
68 copy %EIFFEL_SRC\C\CONFIGS\windows-x86-msc %STUDIO_DIR\studio\config\%ISE_PLATFORM\msc\config.sh
69 copy %EIFFEL_SRC\C\CONFIGS\windows-x86-mingw %STUDIO_DIR\studio\config\%ISE_PLATFORM\mingw\config.sh
70 else
71 copy %EIFFEL_SRC\C\CONFIGS\windows-x86-64-msc %STUDIO_DIR\studio\config\%ISE_PLATFORM\msc\config.sh
72 endiff
73
74 remtrace Copy the MSYS part
75 copy %EIFFEL_SRC\C\shell\bin\rt_converter.exe %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin\
76 copy %EIFFEL_SRC\C\shell\bin\sed.exe %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin\
77 copy %EIFFEL_SRC\C\shell\bin\msys-1.0.dll %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin\
78 safe_md %STUDIO_DIR\studio\spec\%ISE_PLATFORM\etc
79
80 remtrace Then the C libraries
81 cd %EIFFEL_SRC\C_library
82 fullrd .libs
83
84 remtrace libpng
85 cd %EIFFEL_SRC\C_library\libpng
86 default_make
87 remtrace zlib
88 cd %EIFFEL_SRC\C_library\zlib
89 default_make
90
91 REM These directories should already have been created by make_delivery. Whatever...
92 safe_md %STUDIO_DIR\studio\spec
93 safe_md %STUDIO_DIR\studio\spec\%ISE_PLATFORM
94 safe_md %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin
95
96 remtrace CLI writer
97 cd %EIFFEL_SRC\framework\cli_writer\Clib
98 default_make
99
100 remtrace CLI debugger
101 cd %EIFFEL_SRC\framework\cli_debugger\Clib
102 default_make
103
104 remtrace Compiling .NET components
105 cdd %INIT_DIR
106 call make_dotnet.btm
107 cdd %EIFFEL_SRC
108
109 REM Compiling EiffelStudio stuff
110 iff defined BUILD_ENTERPRISE_ONLY then
111 remtrace Recompile EiffelStudio
112 cdd %FINALIZATION_DIR
113 copy %EIFFEL_SRC\Eiffel\Ace\*.* .
114 copy %EIFFEL_SRC\tools\estudio_enterprise\ec.ecf ec.ecf
115 iff not exist ec.ecf then
116 remtrace Cannot find the finalization Ace for EiffelStudio
117 CANCEL
118 endiff
119
120 remtrace Enterprise edition
121 cdd %EIFFEL_SRC\Eiffel\API\constants
122 bash %INIT_DIR\set_version.sh %EIFFEL_SRC 0000 system_constants.e
123 sed -e "s/Version_type_name:\ STRING\ is\ \"GPL\ Edition\"/Version_type_name:\ STRING\ is\ \"Enterprise\ Edition\"/g" system_constants.e >> new_system_constants.e
124 move new_system_constants.e system_constants.e
125 cdd %FINALIZATION_DIR
126 clean_project
127 finalize ec.ecf bench
128 cleanup_eiffel bench ec.exe
129 iff not exist ec.exe then
130 remtrace Could not finalize a new "enterprise_version" EiffelStudio
131 CANCEL
132 endiff
133 move ec.exe %INSTALL_DIR\releases\enterprise_version
134 else
135 iff not defined NO_NEW_EC then
136 remtrace GPL edition
137 cdd %EIFFEL_SRC\Eiffel\API\constants
138 bash %INIT_DIR\set_version.sh %EIFFEL_SRC 0000 system_constants.e
139 cdd %FINALIZATION_DIR
140 copy %EIFFEL_SRC\Eiffel\Ace\*.* .
141 clean_project
142 finalize ec.ecf bench
143 cleanup_eiffel bench ec.exe
144 iff not exist ec.exe then
145 remtrace Could not finalize a new "gpl_edition" EiffelStudio
146 CANCEL
147 endiff
148 move ec.exe %INSTALL_DIR\releases\gpl_version
149
150 remtrace Enterprise edition for EiffelStudio
151 cdd %EIFFEL_SRC\Eiffel\API\constants
152 sed -e "s/Version_type_name:\ STRING\ is\ \"GPL\ Edition\"/Version_type_name:\ STRING\ is\ \"Enterprise\ Edition\"/g" system_constants.e >> new_system_constants.e
153 move new_system_constants.e system_constants.e
154 cdd %FINALIZATION_DIR
155 clean_project
156 copy %EIFFEL_SRC\tools\estudio_enterprise\ec.ecf ec.ecf
157 finalize ec.ecf bench
158 cleanup_eiffel bench ec.exe
159 iff not exist ec.exe then
160 remtrace Could not finalize a new "enterprise_version" EiffelStudio
161 CANCEL
162 endiff
163 move ec.exe %INSTALL_DIR\releases\enterprise_version
164
165 endiff
166 endiff
167
168 remtrace Recompile finish_freezing
169 cdd %EIFFEL_SRC\tools\finish_freezing
170 clean_project
171 finalize finish_freezing.ecf
172 cleanup_eiffel finish_freezing finish_freezing.exe
173 iff not exist finish_freezing.exe then
174 remtrace Could not finalize a new finish_freezing
175 CANCEL
176 endiff
177 move finish_freezing.exe %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin
178
179 remtrace Recompile emake
180 cdd %EIFFEL_SRC\tools\eiffel_make
181 clean_project
182 finalize emake.ecf
183 cleanup_eiffel emake emake.exe
184 iff not exist emake.exe then
185 remtrace Could not finalize a new emake
186 CANCEL
187 endiff
188 move emake.exe %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin
189
190 remtrace Recompile quick_finalize
191 cdd %EIFFEL_SRC\tools\quick_finalize
192 clean_project
193 finalize quick_finalize.ecf
194 cleanup_eiffel quick_finalize quick_finalize.exe
195 iff not exist quick_finalize.exe then
196 remtrace Could not finalize a new quick_finalize
197 CANCEL
198 endiff
199 move quick_finalize.exe %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin
200
201 remtrace Put ecdbgd.exe in the new delivery
202 REM It should already have been compiled by the configure of the run-time.
203 cdd %EIFFEL_SRC\C\ipc\daemon
204 iff not exist ecdbgd.exe then
205 remtrace Could not finalize a new ecdbgd
206 CANCEL
207 endiff
208 move ecdbgd.exe %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin
209
210 remtrace Put x2c.exe in the new delivery
211 REM It should already have been compiled by the configure of the run-time.
212 cdd %EIFFEL_SRC\C\run-time
213 iff not exist x2c.exe then
214 remtrace Could not finalize a new x2c
215 CANCEL
216 endiff
217 move x2c.exe %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin
218
219 remtrace Recompile h2e
220 cdd %EIFFEL_SRC\library\wel\extra
221 clean_project
222 finalize h2e.ecf
223 cleanup_eiffel h2e h2e.exe
224 iff not exist h2e.exe then
225 remtrace Could not finalize a new h2e
226 CANCEL
227 endiff
228 move h2e.exe %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin
229
230
231 remtrace Recompile estudio.exe
232 cdd %EIFFEL_SRC\tools\estudio\config
233 clean_project
234 finalize estudio.ecf estudio
235 cleanup_eiffel estudio estudio.exe
236 iff not exist estudio.exe then
237 remtrace Could not finalize a new estudio
238 CANCEL
239 endiff
240 move estudio.exe %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin
241
242 remtrace get GDI+ for platforms that don't have it
243 cdd %EIFFEL_SRC\tools
244 co %DEFAULT_ISE_SVN/Src/tools/gdiplus gdiplus
245 move gdiplus\gdiplus.dll %INSTALL_DIR\releases
246
247 remtrace Recompiling EiffelBuild
248 cdd %INIT_DIR
249 call make_build.btm
250
251 remtrace Recompiling Vision2 tour
252 cdd %INIT_DIR
253 call make_vision2_demo.btm
254
255 remtrace Recompile Legacy++
256 cdd %EIFFEL_SRC\tools\legacy\PCCTS
257 safe_md bin
258 nmake /f makefile.win
259 cd ..
260 cd legacy
261 nmake -f makefile.win
262 iff not exist legacy.exe then
263 remtrace Couldnt generate legacy.exe
264 CANCEL
265 endiff
266 move legacy.exe %STUDIO_DIR\studio\spec\%ISE_PLATFORM\bin
267
268 remtrace Compiling Gobo tools
269 safe_md %STUDIO_DIR\library\gobo\spec
270 safe_md %STUDIO_DIR\library\gobo\spec\%ISE_PLATFORM
271 safe_md %STUDIO_DIR\library\gobo\spec\%ISE_PLATFORM\bin
272 cdd %EIFFEL_SRC\library\gobo\src
273 clean_project
274 remtrace geant
275 finalize geant.ecf geant
276 cleanup_eiffel geant geant.exe
277 move geant.exe %STUDIO_DIR\library\gobo\spec\%ISE_PLATFORM\bin
278
279 remtrace gec
280 finalize gec.ecf gec
281 cleanup_eiffel gec gec.exe
282 move gec.exe %STUDIO_DIR\library\gobo\spec\%ISE_PLATFORM\bin
283
284 remtrace gelex
285 finalize gelex.ecf gelex
286 cleanup_eiffel gelex gelex.exe
287 move gelex.exe %STUDIO_DIR\library\gobo\spec\%ISE_PLATFORM\bin
288
289 remtrace gelint
290 finalize gelint.ecf gelint
291 cleanup_eiffel gelint gelint.exe
292 move gelint.exe %STUDIO_DIR\library\gobo\spec\%ISE_PLATFORM\bin
293
294 remtrace gepp
295 finalize gepp.ecf gepp
296 cleanup_eiffel gepp gepp.exe
297 move gepp.exe %STUDIO_DIR\library\gobo\spec\%ISE_PLATFORM\bin
298
299 remtrace getest
300 finalize getest.ecf getest
301 cleanup_eiffel getest getest.exe
302 move getest.exe %STUDIO_DIR\library\gobo\spec\%ISE_PLATFORM\bin
303
304 remtrace gexace
305 finalize gexace.ecf gexace
306 cleanup_eiffel gexace gexace.exe
307 move gexace.exe %STUDIO_DIR\library\gobo\spec\%ISE_PLATFORM\bin
308
309 remtrace gexslt
310 finalize gexslt.ecf gexslt
311 cleanup_eiffel gexslt gexslt.exe
312 move gexslt.exe %STUDIO_DIR\library\gobo\spec\%ISE_PLATFORM\bin
313
314 remtrace geyacc
315 finalize geyacc.ecf geyacc
316 cleanup_eiffel geyacc geyacc.exe
317 move geyacc.exe %STUDIO_DIR\library\gobo\spec\%ISE_PLATFORM\bin
318

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23