]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/msw/.make
make sure the dist dir is created
[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 echo cd $WXWIN/build/msw
83 cd $WXWIN/build/msw
84 nmake -f .makesetup.mk $WXWIN/lib/vc_dll/$WXLIBDIR/wx/setup.h
85
86
87 echo ------------------
88 echo cd $WXWIN/build/msw
89 cd $WXWIN/build/msw
90 $WXWIN/build/msw/.mymake $BUILD_TYPE $@
91 if [ ! $? = 0 ]; then error; fi
92
93
94 echo ------------------
95 echo cd ../../contrib/build/gizmos
96 cd ../../contrib/build/gizmos
97 $WXWIN/build/msw/.mymake $BUILD_TYPE $@
98 if [ ! $? = 0 ]; then error; fi
99 cd -
100
101
102 echo ------------------
103 echo cd ../../contrib/build/xrc
104 cd ../../contrib/build/xrc
105 $WXWIN/build/msw/.mymake $BUILD_TYPE $@
106 if [ ! $? = 0 ]; then error; fi
107 cd -
108
109
110 echo ------------------
111 echo cd ../../contrib/build/stc
112 cd ../../contrib/build/stc
113 $WXWIN/build/msw/.mymake $BUILD_TYPE $@
114 if [ ! $? = 0 ]; then error; fi
115 cd -
116
117
118 echo ------------------
119 echo cd ../../contrib/build/ogl
120 cd ../../contrib/build/ogl
121 $WXWIN/build/msw/.mymake $BUILD_TYPE CPPFLAGS="-DwxUSE_DEPRECATED=0" $@
122 if [ ! $? = 0 ]; then error; fi
123 cd -
124
125
126
127 echo -----------------
128 echo -- SUCCESS! --
129 echo -----------------
130 # copy DLLs to a dir on the PATH
131 # copy /U $WXWIN/lib/vc_dll/*.dll $WXWIN/BIN
132 # copy /U $WXWIN/lib/vc_dll/*.pdb $WXWIN/BIN
133 exit 0
134
135
136
137