]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/msw/.make
added --enable-tga (on by default)
[wxWidgets.git] / wxPython / distrib / msw / .make
CommitLineData
d441bff4 1#!/bin/bash
a8dc2317 2
dd397ff7 3# set -o xtrace
a8dc2317
RD
4
5function error {
6 echo -----------------
7 echo -- ERROR! --
8 echo -----------------
9 exit $1
10}
11
12
13if [ "$1" == "both" ]; then
14 shift
15 .make debug $@ && .make hybrid $@
16 exit $?
17
18elif [ "$1" == "both-uni" ]; then
19 shift
20 .make debug-uni $@ && .make hybrid-uni $@
21 exit $?
22
23elif [ "$1" == "both-hybrid" ]; then
24 shift
25 .make hybrid $@ && .make hybrid-uni $@
26 exit $?
27
28elif [ "$1" == "all" ]; then
29 shift
30 .make debug $@ && \
31 .make hybrid $@ && \
32 .make debug-uni $@ && \
33 .make hybrid-uni $@
34 exit $?
35
36elif [ "$1" == "debug" ]; then
37 BUILD_TYPE=$1
38 WXLIBDIR=mswd
39 shift
40
41elif [ "$1" == "hybrid" ]; then
42 BUILD_TYPE=$1
43 WXLIBDIR=mswh
44 shift
45
46elif [ "$1" == "release" ]; then
47 BUILD_TYPE=$1
48 WXLIBDIR=msw
49 shift
50
51elif [ "$1" == "debug-uni" ]; then
52 BUILD_TYPE=$1
53 WXLIBDIR=mswud
54 shift
55
56elif [ "$1" == "hybrid-uni" ]; then
57 BUILD_TYPE=$1
58 WXLIBDIR=mswuh
59 shift
60
61elif [ "$1" == "release-uni" ]; then
62 BUILD_TYPE=$1
63 WXLIBDIR=mswu
64 shift
65
66else
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
79fi
80
81
82echo ------------------
6ad75f53 83echo cd $WXWIN/build/msw
a8dc2317
RD
84cd $WXWIN/build/msw
85nmake -f .makesetup.mk $WXWIN/lib/vc_dll/$WXLIBDIR/wx/setup.h
8b4c82b8 86if [ ! $? = 0 ]; then error 2; fi
a8dc2317
RD
87
88echo ------------------
89echo cd $WXWIN/build/msw
90cd $WXWIN/build/msw
91$WXWIN/build/msw/.mymake $BUILD_TYPE $@
8b4c82b8 92if [ ! $? = 0 ]; then error 2; fi
a8dc2317
RD
93
94
95echo ------------------
96echo cd ../../contrib/build/gizmos
97cd ../../contrib/build/gizmos
98$WXWIN/build/msw/.mymake $BUILD_TYPE $@
8b4c82b8 99if [ ! $? = 0 ]; then error 2; fi
a8dc2317
RD
100cd -
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
111echo ------------------
112echo cd ../../contrib/build/stc
113cd ../../contrib/build/stc
114$WXWIN/build/msw/.mymake $BUILD_TYPE $@
8b4c82b8 115if [ ! $? = 0 ]; then error 2; fi
a8dc2317
RD
116cd -
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
128echo -----------------
129echo -- SUCCESS! --
130echo -----------------
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
134exit 0
135
136
137
138