]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/msw/.mymake
added GlobalPtr: GlobalAlloc/Free() wrapper
[wxWidgets.git] / wxPython / distrib / msw / .mymake
CommitLineData
6ad75f53 1#! /bin/bash
a8dc2317 2
e2b154e3
RD
3COMMON_FLAGS="OFFICIAL_BUILD=1 SHARED=1 MONOLITHIC=1 USE_OPENGL=1 CXXFLAGS=/D__NO_VC_CRTDBG__ "
4HYBRID_FLAGS="DEBUG_FLAG=1 WXDEBUGFLAG=h"
a8dc2317
RD
5MAKE_FLAGS=$COMMON_FLAGS
6
7
8# set flags based on build type if given
9if [ "$1" = "debug" ]; then
10 MAKE_FLAGS="$COMMON_FLAGS BUILD=debug UNICODE=0 MSLU=0"
11 shift
12
13elif [ "$1" = "hybrid" ]; then
14 MAKE_FLAGS="$COMMON_FLAGS BUILD=release $HYBRID_FLAGS UNICODE=0 MSLU=0"
15 shift
16
17elif [ "$1" = "release" ]; then
18 MAKE_FLAGS="$COMMON_FLAGS BUILD=release UNICODE=0 MSLU=0"
19 shift
20
21elif [ "$1" = "debug-uni" ]; then
22 MAKE_FLAGS="$COMMON_FLAGS BUILD=debug UNICODE=1 MSLU=1"
23 shift
24
25elif [ "$1" = "hybrid-uni" ]; then
26 MAKE_FLAGS="$COMMON_FLAGS BUILD=release $HYBRID_FLAGS UNICODE=1 MSLU=1"
27 shift
28
29elif [ "$1" = "release-uni" ]; then
30 MAKE_FLAGS="$COMMON_FLAGS BUILD=release UNICODE=1 MSLU=1"
31 shift
32else
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 "----------------------------------------------"
42fi
43
44
45# now run nmake, echoing the command-line first
46echo nmake -f makefile.vc $MAKE_FLAGS $@
47nmake -f makefile.vc $MAKE_FLAGS $@
48
49# quit with nmake's exit code
50exit $?
51
52