]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | @echo off |
2 | setlocal | |
3 | ||
4 | ||
5 | iff "%1" == "both" then | |
6 | shift | |
a8dc2317 RD |
7 | call .make.btm debug %$ & if %? != 0 quit %? |
8 | call .make.btm hybrid %$ & if %? != 0 quit %? | |
d14a1e28 RD |
9 | quit |
10 | ||
11 | elseiff "%1" == "both-uni" then | |
12 | shift | |
a8dc2317 RD |
13 | call .make.btm debug-uni %$ & if %? != 0 quit %? |
14 | call .make.btm hybrid-uni %$ & if %? != 0 quit %? | |
d14a1e28 RD |
15 | quit |
16 | ||
17 | elseiff "%1" == "both-hybrid" then | |
18 | shift | |
a8dc2317 RD |
19 | call .make.btm hybrid %$ & if %? != 0 quit %? |
20 | call .make.btm hybrid-uni %$ & if %? != 0 quit %? | |
d14a1e28 RD |
21 | quit |
22 | ||
23 | elseiff "%1" == "all" then | |
24 | shift | |
a8dc2317 RD |
25 | call .make.btm debug %$ & if %? != 0 quit %? |
26 | call .make.btm hybrid %$ & if %? != 0 quit %? | |
27 | call .make.btm debug-uni %$ & if %? != 0 quit %? | |
28 | call .make.btm hybrid-uni %$ & if %? != 0 quit %? | |
d14a1e28 RD |
29 | quit |
30 | ||
31 | elseiff "%1" == "debug" then | |
32 | set BUILD_TYPE=%1 | |
33 | set WXLIBDIR=mswd | |
34 | shift | |
35 | ||
36 | elseiff "%1" == "hybrid" then | |
37 | set BUILD_TYPE=%1 | |
38 | set WXLIBDIR=mswh | |
39 | shift | |
40 | ||
41 | elseiff "%1" == "release" then | |
42 | set BUILD_TYPE=%1 | |
43 | set WXLIBDIR=msw | |
44 | shift | |
45 | ||
46 | elseiff "%1" == "debug-uni" then | |
47 | set BUILD_TYPE=%1 | |
48 | set WXLIBDIR=mswud | |
49 | shift | |
50 | ||
51 | elseiff "%1" == "hybrid-uni" then | |
52 | set BUILD_TYPE=%1 | |
53 | set WXLIBDIR=mswuh | |
54 | shift | |
55 | ||
56 | elseiff "%1" == "release-uni" then | |
57 | set BUILD_TYPE=%1 | |
58 | set WXLIBDIR=mswu | |
59 | shift | |
60 | ||
61 | else | |
62 | echo Invalid build type: "%1" | |
63 | quit 1 | |
64 | endiff | |
65 | ||
66 | ||
67 | echo ------------------ | |
68 | echo cd %WXWIN%\build\msw | |
69 | cd %WXWIN%\build\msw | |
70 | nmake -f .makesetup.mk %WXWIN%\lib\vc_dll\%WXLIBDIR%\wx\setup.h | |
71 | ||
72 | ||
73 | echo ------------------ | |
74 | echo cd %WXWIN%\build\msw | |
75 | cd %WXWIN%\build\msw | |
a8dc2317 | 76 | call %WXWIN%\build\msw\.mymake.btm %BUILD_TYPE% %$ |
d14a1e28 RD |
77 | if %? != 0 goto done |
78 | ||
79 | ||
828ed945 RD |
80 | REM echo ------------------ |
81 | REM echo cd ..\..\contrib\build\gizmos | |
82 | REM cd ..\..\contrib\build\gizmos | |
83 | REM call %WXWIN%\build\msw\.mymake.btm %BUILD_TYPE% %$ | |
84 | REM if %? != 0 goto done | |
85 | REM cd - | |
d14a1e28 | 86 | |
dd397ff7 RD |
87 | REM echo ------------------ |
88 | REM echo cd ..\..\contrib\build\animate | |
89 | REM cd ..\..\contrib\build\animate | |
90 | REM call %WXWIN%\build\msw\.mymake.btm %BUILD_TYPE% %$ | |
91 | REM if %? != 0 goto done | |
92 | REM cd - | |
d14a1e28 RD |
93 | |
94 | ||
26ee65c7 RD |
95 | REM echo ------------------ |
96 | REM echo cd ..\..\contrib\build\stc | |
97 | REM cd ..\..\contrib\build\stc | |
98 | REM call %WXWIN%\build\msw\.mymake.btm %BUILD_TYPE% %$ | |
99 | REM if %? != 0 goto done | |
100 | REM cd - | |
d14a1e28 RD |
101 | |
102 | ||
a0c70b76 RD |
103 | REM echo ------------------ |
104 | REM echo cd ..\..\contrib\build\ogl | |
105 | REM cd ..\..\contrib\build\ogl | |
106 | REM call %WXWIN%\build\msw\.mymake.btm %BUILD_TYPE% CXX="cl -DwxUSE_DEPRECATED=0" %$ | |
107 | REM if %? != 0 goto done | |
108 | REM cd - | |
d14a1e28 RD |
109 | |
110 | ||
111 | ||
112 | @echo ----------------- | |
113 | @echo -- SUCCESS! -- | |
114 | @echo ----------------- | |
115 | REM copy DLLs to a dir on the PATH | |
312cca17 RD |
116 | REM copy /U %WXWIN%\lib\vc_dll\*.dll %WXWIN%\BIN |
117 | REM copy /U %WXWIN%\lib\vc_dll\*.pdb %WXWIN%\BIN | |
d14a1e28 RD |
118 | quit 0 |
119 | ||
120 | ||
121 | :done | |
122 | @echo ----------------- | |
123 | @echo -- ERROR! -- | |
124 | @echo ----------------- | |
125 | quit %? | |
126 |