2003-11-12 16:34:20 -05:00
|
|
|
@echo off
|
|
|
|
setlocal
|
|
|
|
|
|
|
|
|
|
|
|
iff "%1" == "both" then
|
|
|
|
shift
|
2004-06-08 19:42:22 -04:00
|
|
|
call .make.btm debug %$ & if %? != 0 quit %?
|
|
|
|
call .make.btm hybrid %$ & if %? != 0 quit %?
|
2003-11-12 16:34:20 -05:00
|
|
|
quit
|
|
|
|
|
|
|
|
elseiff "%1" == "both-uni" then
|
|
|
|
shift
|
2004-06-08 19:42:22 -04:00
|
|
|
call .make.btm debug-uni %$ & if %? != 0 quit %?
|
|
|
|
call .make.btm hybrid-uni %$ & if %? != 0 quit %?
|
2003-11-12 16:34:20 -05:00
|
|
|
quit
|
|
|
|
|
|
|
|
elseiff "%1" == "both-hybrid" then
|
|
|
|
shift
|
2004-06-08 19:42:22 -04:00
|
|
|
call .make.btm hybrid %$ & if %? != 0 quit %?
|
|
|
|
call .make.btm hybrid-uni %$ & if %? != 0 quit %?
|
2003-11-12 16:34:20 -05:00
|
|
|
quit
|
|
|
|
|
|
|
|
elseiff "%1" == "all" then
|
|
|
|
shift
|
2004-06-08 19:42:22 -04:00
|
|
|
call .make.btm debug %$ & if %? != 0 quit %?
|
|
|
|
call .make.btm hybrid %$ & if %? != 0 quit %?
|
|
|
|
call .make.btm debug-uni %$ & if %? != 0 quit %?
|
|
|
|
call .make.btm hybrid-uni %$ & if %? != 0 quit %?
|
2003-11-12 16:34:20 -05:00
|
|
|
quit
|
|
|
|
|
|
|
|
elseiff "%1" == "debug" then
|
|
|
|
set BUILD_TYPE=%1
|
|
|
|
set WXLIBDIR=mswd
|
|
|
|
shift
|
|
|
|
|
|
|
|
elseiff "%1" == "hybrid" then
|
|
|
|
set BUILD_TYPE=%1
|
|
|
|
set WXLIBDIR=mswh
|
|
|
|
shift
|
|
|
|
|
|
|
|
elseiff "%1" == "release" then
|
|
|
|
set BUILD_TYPE=%1
|
|
|
|
set WXLIBDIR=msw
|
|
|
|
shift
|
|
|
|
|
|
|
|
elseiff "%1" == "debug-uni" then
|
|
|
|
set BUILD_TYPE=%1
|
|
|
|
set WXLIBDIR=mswud
|
|
|
|
shift
|
|
|
|
|
|
|
|
elseiff "%1" == "hybrid-uni" then
|
|
|
|
set BUILD_TYPE=%1
|
|
|
|
set WXLIBDIR=mswuh
|
|
|
|
shift
|
|
|
|
|
|
|
|
elseiff "%1" == "release-uni" then
|
|
|
|
set BUILD_TYPE=%1
|
|
|
|
set WXLIBDIR=mswu
|
|
|
|
shift
|
|
|
|
|
|
|
|
else
|
|
|
|
echo Invalid build type: "%1"
|
|
|
|
quit 1
|
|
|
|
endiff
|
|
|
|
|
|
|
|
|
|
|
|
echo ------------------
|
|
|
|
echo cd %WXWIN%\build\msw
|
|
|
|
cd %WXWIN%\build\msw
|
|
|
|
nmake -f .makesetup.mk %WXWIN%\lib\vc_dll\%WXLIBDIR%\wx\setup.h
|
|
|
|
|
|
|
|
|
|
|
|
echo ------------------
|
|
|
|
echo cd %WXWIN%\build\msw
|
|
|
|
cd %WXWIN%\build\msw
|
2004-06-08 19:42:22 -04:00
|
|
|
call %WXWIN%\build\msw\.mymake.btm %BUILD_TYPE% %$
|
2003-11-12 16:34:20 -05:00
|
|
|
if %? != 0 goto done
|
|
|
|
|
|
|
|
|
|
|
|
echo ------------------
|
|
|
|
echo cd ..\..\contrib\build\gizmos
|
|
|
|
cd ..\..\contrib\build\gizmos
|
2004-06-08 19:42:22 -04:00
|
|
|
call %WXWIN%\build\msw\.mymake.btm %BUILD_TYPE% %$
|
2003-11-12 16:34:20 -05:00
|
|
|
if %? != 0 goto done
|
|
|
|
cd -
|
|
|
|
|
2005-04-04 20:25:50 -04:00
|
|
|
echo ------------------
|
|
|
|
echo cd ..\..\contrib\build\animate
|
|
|
|
cd ..\..\contrib\build\animate
|
|
|
|
call %WXWIN%\build\msw\.mymake.btm %BUILD_TYPE% %$
|
|
|
|
if %? != 0 goto done
|
|
|
|
cd -
|
2003-11-12 16:34:20 -05:00
|
|
|
|
|
|
|
|
|
|
|
echo ------------------
|
|
|
|
echo cd ..\..\contrib\build\stc
|
|
|
|
cd ..\..\contrib\build\stc
|
2004-06-08 19:42:22 -04:00
|
|
|
call %WXWIN%\build\msw\.mymake.btm %BUILD_TYPE% %$
|
2003-11-12 16:34:20 -05:00
|
|
|
if %? != 0 goto done
|
|
|
|
cd -
|
|
|
|
|
|
|
|
|
2005-02-28 14:19:25 -05:00
|
|
|
REM echo ------------------
|
|
|
|
REM echo cd ..\..\contrib\build\ogl
|
|
|
|
REM cd ..\..\contrib\build\ogl
|
|
|
|
REM call %WXWIN%\build\msw\.mymake.btm %BUILD_TYPE% CXX="cl -DwxUSE_DEPRECATED=0" %$
|
|
|
|
REM if %? != 0 goto done
|
|
|
|
REM cd -
|
2003-11-12 16:34:20 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@echo -----------------
|
|
|
|
@echo -- SUCCESS! --
|
|
|
|
@echo -----------------
|
|
|
|
REM copy DLLs to a dir on the PATH
|
2004-03-18 17:05:24 -05:00
|
|
|
REM copy /U %WXWIN%\lib\vc_dll\*.dll %WXWIN%\BIN
|
|
|
|
REM copy /U %WXWIN%\lib\vc_dll\*.pdb %WXWIN%\BIN
|
2003-11-12 16:34:20 -05:00
|
|
|
quit 0
|
|
|
|
|
|
|
|
|
|
|
|
:done
|
|
|
|
@echo -----------------
|
|
|
|
@echo -- ERROR! --
|
|
|
|
@echo -----------------
|
|
|
|
quit %?
|
|
|
|
|