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