]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/msw/.make
moved vararg CRT functions wrappers to a new wxcrtvararg.h header
[wxWidgets.git] / wxPython / distrib / msw / .make
1 #!/bin/bash
2
3 # set -o xtrace
4
5 function error {
6 echo -----------------
7 echo -- ERROR! --
8 echo -----------------
9 exit $1
10 }
11
12
13 if [ "$1" == "both" ]; then
14 shift
15 .make debug $@ && .make hybrid $@
16 exit $?
17
18 elif [ "$1" == "both-uni" ]; then
19 shift
20 .make debug-uni $@ && .make hybrid-uni $@
21 exit $?
22
23 elif [ "$1" == "both-hybrid" ]; then
24 shift
25 .make hybrid $@ && .make hybrid-uni $@
26 exit $?
27
28 elif [ "$1" == "all" ]; then
29 shift
30 .make debug $@ && \
31 .make hybrid $@ && \
32 .make debug-uni $@ && \
33 .make hybrid-uni $@
34 exit $?
35
36 elif [ "$1" == "debug" ]; then
37 BUILD_TYPE=$1
38 WXLIBDIR=mswd
39 shift
40
41 elif [ "$1" == "hybrid" ]; then
42 BUILD_TYPE=$1
43 WXLIBDIR=mswh
44 shift
45
46 elif [ "$1" == "release" ]; then
47 BUILD_TYPE=$1
48 WXLIBDIR=msw
49 shift
50
51 elif [ "$1" == "debug-uni" ]; then
52 BUILD_TYPE=$1
53 WXLIBDIR=mswud
54 shift
55
56 elif [ "$1" == "hybrid-uni" ]; then
57 BUILD_TYPE=$1
58 WXLIBDIR=mswuh
59 shift
60
61 elif [ "$1" == "release-uni" ]; then
62 BUILD_TYPE=$1
63 WXLIBDIR=mswu
64 shift
65
66 else
67 echo "Invalid build type: $1 options are"
68 echo " debug"
69 echo " hybrid"
70 echo " debug-uni"
71 echo " hybrid-uni"
72 echo " both"
73 echo " both-uni"
74 echo " both-hybrid"
75 echo " all"
76 echo " release"
77 echo " release-uni"
78 exit 1
79 fi
80
81
82 echo ------------------
83 echo cd $WXWIN/build/msw
84 cd $WXWIN/build/msw
85 nmake -f .makesetup.mk $WXWIN/lib/vc_dll/$WXLIBDIR/wx/setup.h
86 if [ ! $? = 0 ]; then error 2; fi
87
88 echo ------------------
89 echo cd $WXWIN/build/msw
90 cd $WXWIN/build/msw
91 $WXWIN/build/msw/.mymake $BUILD_TYPE $@
92 if [ ! $? = 0 ]; then error 2; fi
93
94
95 # echo ------------------
96 # echo cd ../../contrib/build/gizmos
97 # cd ../../contrib/build/gizmos
98 # $WXWIN/build/msw/.mymake $BUILD_TYPE $@
99 # if [ ! $? = 0 ]; then error 2; fi
100 # cd -
101
102
103 # echo ------------------
104 # echo cd ../../contrib/build/animate
105 # cd ../../contrib/build/animate
106 # $WXWIN/build/msw/.mymake $BUILD_TYPE $@
107 # if [ ! $? = 0 ]; then error 2; fi
108 # cd -
109
110
111 # echo ------------------
112 # echo cd ../../contrib/build/stc
113 # cd ../../contrib/build/stc
114 # $WXWIN/build/msw/.mymake $BUILD_TYPE $@
115 # if [ ! $? = 0 ]; then error 2; fi
116 # cd -
117
118
119 # echo ------------------
120 # echo cd ../../contrib/build/ogl
121 # cd ../../contrib/build/ogl
122 # $WXWIN/build/msw/.mymake $BUILD_TYPE CPPFLAGS="-DwxUSE_DEPRECATED=0" $@
123 # if [ ! $? = 0 ]; then error 2; fi
124 # cd -
125
126
127
128 echo -----------------
129 echo -- SUCCESS! --
130 echo -----------------
131 # copy DLLs to a dir on the PATH
132 # copy /U $WXWIN/lib/vc_dll/*.dll $WXWIN/BIN
133 # copy /U $WXWIN/lib/vc_dll/*.pdb $WXWIN/BIN
134 exit 0
135
136
137
138