PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 4ms RepoModel.GetById 37ms app.codeStats 0ms

/buildtools/build.bat

http://github.com/mozy/mordor
Batch | 46 lines | 29 code | 14 blank | 3 comment | 0 complexity | 154313e79c7a1fd2f646ddce2f433ac3 MD5 | raw file
 1@IF DEFINED _ECHO ECHO ON
 2@SETLOCAL
 3
 4@SET CONFIG=Release
 5@SET BUILD32=1
 6
 7REM For the moment forcing cmake by default

 8@SET CMAKEARG=
 9
10REM Most arguments are processed in build32Or64.bat

11FOR %%A IN (%*) DO (
12    @IF /i "%%A" EQU "debug" SET CONFIG=Debug
13    @IF /i "%%A" EQU "coverage" SET CONFIG=Debug
14    @IF /i "%%A" EQU "release" SET CONFIG=Release
15
16    @IF /i "%%A" EQU "no32" SET BUILD32=0
17
18    @IF /i "%%A" EQU "cmake" SET CMAKEARG=cmake
19    @IF /i "%%A" EQU "nocmake" SET CMAKEARG=
20)
21
22@IF "%BUILD32%" EQU "0" (
23    ECHO Skipping 32-bit build
24    GOTO :build64

25)
26
27CALL buildtools\build32Or64.bat %CONFIG% Win32 %CMAKEARG%
28IF ERRORLEVEL 1 EXIT /B
29
30:build64

31
32CALL buildtools\build32Or64.bat %CONFIG% x64 %CMAKEARG%
33IF ERRORLEVEL 1 EXIT /B
34
35:done64build

36
37ECHO Copying 64-bit unit tests to package directory
38
39@IF NOT EXIST packages (
40  MKDIR packages
41)
42
43COPY /Y x64\%CONFIG%\tests.exe packages\tests.exe
44
45REM Copy openssl, zlib dlls needed by tests

46COPY /Y x64\%CONFIG%\*.dll packages