]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/msw/.mymake
3 COMMON_FLAGS
="OFFICIAL_BUILD=1 SHARED=1 MONOLITHIC=1 USE_OPENGL=1 CXXFLAGS=/D__NO_VC_CRTDBG__ "
4 HYBRID_FLAGS
="DEBUG_FLAG=1 WXDEBUGFLAG=h"
5 MAKE_FLAGS
=$COMMON_FLAGS
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"
13 elif [ "$1" = "hybrid" ]; then
14 MAKE_FLAGS
="$COMMON_FLAGS BUILD=release $HYBRID_FLAGS UNICODE=0 MSLU=0"
17 elif [ "$1" = "release" ]; then
18 MAKE_FLAGS
="$COMMON_FLAGS BUILD=release UNICODE=0 MSLU=0"
21 elif [ "$1" = "debug-uni" ]; then
22 MAKE_FLAGS
="$COMMON_FLAGS BUILD=debug UNICODE=1 MSLU=1"
25 elif [ "$1" = "hybrid-uni" ]; then
26 MAKE_FLAGS
="$COMMON_FLAGS BUILD=release $HYBRID_FLAGS UNICODE=1 MSLU=1"
29 elif [ "$1" = "release-uni" ]; then
30 MAKE_FLAGS
="$COMMON_FLAGS BUILD=release UNICODE=1 MSLU=1"
33 echo "----------------------------------------------"
34 echo " Build type not specified"
41 echo "----------------------------------------------"
45 # now run nmake, echoing the command-line first
46 echo nmake
-f makefile.vc
$MAKE_FLAGS $@
47 nmake
-f makefile.vc
$MAKE_FLAGS $@
49 # quit with nmake's exit code