]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/msw/.make
HandlePrintClient shouldn't go above a top-level window
[wxWidgets.git] / wxPython / distrib / msw / .make
CommitLineData
d441bff4 1#!/bin/bash
a8dc2317
RD
2
3
4function error {
5 echo -----------------
6 echo -- ERROR! --
7 echo -----------------
8 exit $1
9}
10
11
12if [ "$1" == "both" ]; then
13 shift
14 .make debug $@ && .make hybrid $@
15 exit $?
16
17elif [ "$1" == "both-uni" ]; then
18 shift
19 .make debug-uni $@ && .make hybrid-uni $@
20 exit $?
21
22elif [ "$1" == "both-hybrid" ]; then
23 shift
24 .make hybrid $@ && .make hybrid-uni $@
25 exit $?
26
27elif [ "$1" == "all" ]; then
28 shift
29 .make debug $@ && \
30 .make hybrid $@ && \
31 .make debug-uni $@ && \
32 .make hybrid-uni $@
33 exit $?
34
35elif [ "$1" == "debug" ]; then
36 BUILD_TYPE=$1
37 WXLIBDIR=mswd
38 shift
39
40elif [ "$1" == "hybrid" ]; then
41 BUILD_TYPE=$1
42 WXLIBDIR=mswh
43 shift
44
45elif [ "$1" == "release" ]; then
46 BUILD_TYPE=$1
47 WXLIBDIR=msw
48 shift
49
50elif [ "$1" == "debug-uni" ]; then
51 BUILD_TYPE=$1
52 WXLIBDIR=mswud
53 shift
54
55elif [ "$1" == "hybrid-uni" ]; then
56 BUILD_TYPE=$1
57 WXLIBDIR=mswuh
58 shift
59
60elif [ "$1" == "release-uni" ]; then
61 BUILD_TYPE=$1
62 WXLIBDIR=mswu
63 shift
64
65else
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
78fi
79
80
81echo ------------------
6ad75f53 82echo cd $WXWIN/build/msw
a8dc2317
RD
83cd $WXWIN/build/msw
84nmake -f .makesetup.mk $WXWIN/lib/vc_dll/$WXLIBDIR/wx/setup.h
85
86
87echo ------------------
88echo cd $WXWIN/build/msw
89cd $WXWIN/build/msw
90$WXWIN/build/msw/.mymake $BUILD_TYPE $@
a3b4583a 91if [ ! $? = 0 ]; then error; fi
a8dc2317
RD
92
93
94echo ------------------
95echo cd ../../contrib/build/gizmos
96cd ../../contrib/build/gizmos
97$WXWIN/build/msw/.mymake $BUILD_TYPE $@
a3b4583a 98if [ ! $? = 0 ]; then error; fi
a8dc2317
RD
99cd -
100
101
73e2fff1
RD
102#echo ------------------
103echo cd ../../contrib/build/animate
104cd ../../contrib/build/animate
105$WXWIN/build/msw/.mymake $BUILD_TYPE $@
106if [ ! $? = 0 ]; then error; fi
107cd -
a8dc2317
RD
108
109
110echo ------------------
111echo cd ../../contrib/build/stc
112cd ../../contrib/build/stc
113$WXWIN/build/msw/.mymake $BUILD_TYPE $@
a3b4583a 114if [ ! $? = 0 ]; then error; fi
a8dc2317
RD
115cd -
116
117
a0c70b76
RD
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 -
a8dc2317
RD
124
125
126
127echo -----------------
128echo -- SUCCESS! --
129echo -----------------
6ad75f53
RD
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
a8dc2317
RD
133exit 0
134
135
136
137