4 set COMMON_FLAGS=OFFICIAL_BUILD=1 SHARED=1 MONOLITHIC=0 USE_OPENGL=1
5 set HYBRID_FLAGS=DEBUG_FLAG=1 CXXFLAGS=/D__NO_VC_CRTDBG__ WXDEBUGFLAG=h
6 set MAKE_FLAGS=%COMMON_FLAGS%
9 REM set flags based on build type if given
10 iff "%1" == "debug" then
11 set MAKE_FLAGS=%COMMON_FLAGS% BUILD=debug UNICODE=0 MSLU=0
14 elseiff "%1" == "hybrid" then
15 set MAKE_FLAGS=%COMMON_FLAGS% BUILD=release %HYBRID_FLAGS% UNICODE=0 MSLU=0
18 elseiff "%1" == "release" then
19 set MAKE_FLAGS=%COMMON_FLAGS% BUILD=release UNICODE=0 MSLU=0
22 elseiff "%1" == "debug-uni" then
23 set MAKE_FLAGS=%COMMON_FLAGS% BUILD=debug UNICODE=1 MSLU=1
26 elseiff "%1" == "hybrid-uni" then
27 set MAKE_FLAGS=%COMMON_FLAGS% BUILD=release %HYBRID_FLAGS% UNICODE=1 MSLU=1
30 elseiff "%1" == "release-uni" then
31 set MAKE_FLAGS=%COMMON_FLAGS% BUILD=release UNICODE=1 MSLU=1
34 echo "----------------------------------------------"
35 echo " Build type not specified"
42 echo "----------------------------------------------"
46 REM now run nmake, echoing the command-line first
47 echo nmake -f makefile.vc %MAKE_FLAGS% %$
48 nmake -f makefile.vc %MAKE_FLAGS% %$
50 REM quit with nmake's exit code