- started cmake buildsystem
[genesis3d.git] / rfPack / BUILD.BAT
1 setlocal\r
2 \r
3 REM\r
4 REM  Compiler Setup\r
5 REM\r
6 \r
7 REM   Need to set a path to a directory that is relative to this batch file.\r
8 REM   use pathenv to output a simple batch file that resolves the relative\r
9 REM   path name into a full path name.  Run that batch file to set the\r
10 REM   environment variable (the variable to be set is in the pathenv param list)\r
11 \r
12 bin\pathenv temp.bat MSDevDir msdev60\r
13 call temp.bat\r
14 erase temp.bat\r
15 \r
16 if "%OS%" == "Windows_NT" set PATH=%MSDevDir%\BIN;%MASMDir%\BIN;%MSDevDir%\BIN\%VcOsDir%;%PATH%\r
17 if "%OS%" == "" set PATH="%MSDevDir%\BIN";%MASMDir%\BIN;"%MSDevDir%\BIN\%VcOsDir%";"%PATH%"\r
18 set INCLUDE=%DXDir%\sdk\inc;%MSDevDir%\INCLUDE;%MSDevDir%\MFC\INCLUDE;%INCLUDE%\r
19 set LIB=%DXDir%\sdk\lib;%MSDevDir%\LIB;%MSDevDir%\MFC\LIB;%LIB%\r
20 set MSDevDir=\r
21 set DXDir=\r
22 set MASMDir=\r
23 echo %INCLUDE%\r
24 \r
25 REM\r
26 REM  Actual Build\r
27 REM\r
28 rem .\bin\redirect -o stdout.log -e stderr.log .\bin\nmake /f art.mak \r
29 rem if errorlevel 1 goto fail\r
30 \r
31 nmake -f TPack.mak CFG="TPack - Win32 Debug" >> tpackd.txt\r
32 nmake -f TPack.mak CFG="TPack - Win32 Release" >> tpackr.txt\r
33 \r
34 if not exist .\release\tpack.exe goto fail\r
35 if not exist .\debug\tpack.exe goto fail\r
36 \r
37 if [%1] == [] goto end\r
38 echo SUCCESS > %1\r
39 goto end\r
40 \r
41 :fail\r
42 if [%1] == [] goto end\r
43 echo FAILURE > %1\r
44 \r
45 :end\r
46 \r