]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/msw/.make.btm
Added export decl
[wxWidgets.git] / wxPython / distrib / msw / .make.btm
CommitLineData
d14a1e28
RD
1@echo off
2setlocal
3
4
5iff "%1" == "both" then
6 shift
7 call .make debug %$ & if %? != 0 quit $?
8 call .make hybrid %$ & if %? != 0 quit $?
9 quit
10
11elseiff "%1" == "both-uni" then
12 shift
13 call .make debug-uni %$ & if %? != 0 quit $?
14 call .make hybrid-uni %$ & if %? != 0 quit $?
15 quit
16
17elseiff "%1" == "both-hybrid" then
18 shift
19 call .make hybrid %$ & if %? != 0 quit $?
20 call .make hybrid-uni %$ & if %? != 0 quit $?
21 quit
22
23elseiff "%1" == "all" then
24 shift
25 call .make debug %$ & if %? != 0 quit $?
26 call .make hybrid %$ & if %? != 0 quit $?
27 call .make debug-uni %$ & if %? != 0 quit $?
28 call .make hybrid-uni %$ & if %? != 0 quit $?
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
76call %WXWIN%\build\msw\.mymake %BUILD_TYPE% %$
77if %? != 0 goto done
78
79
80echo ------------------
81echo cd ..\..\contrib\build\gizmos
82cd ..\..\contrib\build\gizmos
83call %WXWIN%\build\msw\.mymake %BUILD_TYPE% %$
84if %? != 0 goto done
85cd -
86
87echo ------------------
88echo cd ..\..\contrib\build\xrc
89cd ..\..\contrib\build\xrc
90call %WXWIN%\build\msw\.mymake %BUILD_TYPE% %$
91if %? != 0 goto done
92cd -
93
94
95echo ------------------
96echo cd ..\..\contrib\build\stc
97cd ..\..\contrib\build\stc
98call %WXWIN%\build\msw\.mymake %BUILD_TYPE% %$
99if %? != 0 goto done
100cd -
101
102
103echo ------------------
104echo cd ..\..\contrib\build\ogl
105cd ..\..\contrib\build\ogl
106call %WXWIN%\build\msw\.mymake %BUILD_TYPE% CXX="cl -DwxUSE_DEPRECATED=0" %$
107if %? != 0 goto done
108cd -
109
110
111
112@echo -----------------
113@echo -- SUCCESS! --
114@echo -----------------
115REM copy DLLs to a dir on the PATH
116copy /U %WXWIN%\lib\vc_dll\*.dll %WXWIN%\BIN
117copy /U %WXWIN%\lib\vc_dll\*.pdb %WXWIN%\BIN
118quit 0
119
120
121:done
122@echo -----------------
123@echo -- ERROR! --
124@echo -----------------
125quit %?
126