]>
Commit | Line | Data |
---|---|---|
d441bff4 | 1 | #!/bin/bash |
a8dc2317 | 2 | |
dd397ff7 | 3 | # set -o xtrace |
a8dc2317 RD |
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 ------------------ | |
6ad75f53 | 83 | echo cd $WXWIN/build/msw |
a8dc2317 RD |
84 | cd $WXWIN/build/msw |
85 | nmake -f .makesetup.mk $WXWIN/lib/vc_dll/$WXLIBDIR/wx/setup.h | |
8b4c82b8 | 86 | if [ ! $? = 0 ]; then error 2; fi |
a8dc2317 RD |
87 | |
88 | echo ------------------ | |
89 | echo cd $WXWIN/build/msw | |
90 | cd $WXWIN/build/msw | |
91 | $WXWIN/build/msw/.mymake $BUILD_TYPE $@ | |
8b4c82b8 | 92 | if [ ! $? = 0 ]; then error 2; fi |
a8dc2317 RD |
93 | |
94 | ||
95 | echo ------------------ | |
96 | echo cd ../../contrib/build/gizmos | |
97 | cd ../../contrib/build/gizmos | |
98 | $WXWIN/build/msw/.mymake $BUILD_TYPE $@ | |
8b4c82b8 | 99 | if [ ! $? = 0 ]; then error 2; fi |
a8dc2317 RD |
100 | cd - |
101 | ||
102 | ||
dd397ff7 RD |
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 - | |
a8dc2317 RD |
109 | |
110 | ||
111 | echo ------------------ | |
112 | echo cd ../../contrib/build/stc | |
113 | cd ../../contrib/build/stc | |
114 | $WXWIN/build/msw/.mymake $BUILD_TYPE $@ | |
8b4c82b8 | 115 | if [ ! $? = 0 ]; then error 2; fi |
a8dc2317 RD |
116 | cd - |
117 | ||
118 | ||
a0c70b76 RD |
119 | # echo ------------------ |
120 | # echo cd ../../contrib/build/ogl | |
121 | # cd ../../contrib/build/ogl | |
122 | # $WXWIN/build/msw/.mymake $BUILD_TYPE CPPFLAGS="-DwxUSE_DEPRECATED=0" $@ | |
8b4c82b8 | 123 | # if [ ! $? = 0 ]; then error 2; fi |
a0c70b76 | 124 | # cd - |
a8dc2317 RD |
125 | |
126 | ||
127 | ||
128 | echo ----------------- | |
129 | echo -- SUCCESS! -- | |
130 | echo ----------------- | |
6ad75f53 RD |
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 | |
a8dc2317 RD |
134 | exit 0 |
135 | ||
136 | ||
137 | ||
138 |