]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/msw/.mymake
remove some problem commas
[wxWidgets.git] / wxPython / distrib / msw / .mymake
1 #! /bin/bash
2
3 COMMON_FLAGS="OFFICIAL_BUILD=1 SHARED=1 MONOLITHIC=0 USE_OPENGL=1 USE_GDIPLUS=1 CXXFLAGS=/D__NO_VC_CRTDBG__ "
4 HYBRID_FLAGS="DEBUG_FLAG=1 WXDEBUGFLAG=h"
5 MAKE_FLAGS=$COMMON_FLAGS
6
7
8 # set flags based on build type if given
9 if [ "$1" = "debug" ]; then
10 MAKE_FLAGS="$COMMON_FLAGS BUILD=debug UNICODE=0 MSLU=0"
11 shift
12
13 elif [ "$1" = "hybrid" ]; then
14 MAKE_FLAGS="$COMMON_FLAGS BUILD=release $HYBRID_FLAGS UNICODE=0 MSLU=0"
15 shift
16
17 elif [ "$1" = "release" ]; then
18 MAKE_FLAGS="$COMMON_FLAGS BUILD=release UNICODE=0 MSLU=0"
19 shift
20
21 elif [ "$1" = "debug-uni" ]; then
22 MAKE_FLAGS="$COMMON_FLAGS BUILD=debug UNICODE=1 MSLU=1"
23 shift
24
25 elif [ "$1" = "hybrid-uni" ]; then
26 MAKE_FLAGS="$COMMON_FLAGS BUILD=release $HYBRID_FLAGS UNICODE=1 MSLU=1"
27 shift
28
29 elif [ "$1" = "release-uni" ]; then
30 MAKE_FLAGS="$COMMON_FLAGS BUILD=release UNICODE=1 MSLU=1"
31 shift
32 else
33 echo "----------------------------------------------"
34 echo " Build type not specified"
35 echo " debug"
36 echo " hybrid"
37 echo " release"
38 echo " debug-uni"
39 echo " hybrid-uni"
40 echo " release-uni"
41 echo "----------------------------------------------"
42 fi
43
44
45 # now run nmake, echoing the command-line first
46 echo nmake -f makefile.vc $MAKE_FLAGS $@
47 nmake -f makefile.vc $MAKE_FLAGS $@
48
49 # quit with nmake's exit code
50 exit $?
51
52