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