-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.bat
More file actions
46 lines (33 loc) · 941 Bytes
/
build.bat
File metadata and controls
46 lines (33 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
REM Windows batch file for building the product
REM Be sure to start the from a command line which is configured for your Visual Studio.
REM Use Start->Programs->Microsoft Visual Studio 2008->Visual Studio Tools->Visual Studio 2008 Command Prompt
REM to open the command prompt.
REM Load environment settings from env.bat
CALL env.bat
REM DON'T MODIFY BELOW THIS LINE
REM default build type
SET BUILD_TYPE=Release
SET GENERATOR="NMake Makefiles"
IF NOT EXIST "bld%BUILD_TYPE%" GOTO CreateDir
RMDIR /Q /S bld%BUILD_TYPE%
IF ERRORLEVEL 1 GOTO Error
:CreateDir
mkdir bld%BUILD_TYPE%
IF ERRORLEVEL 1 GOTO Error
cd bld%BUILD_TYPE%
IF ERRORLEVEL 1 GOTO Error
cmake -G %GENERATOR% ..\src
IF ERRORLEVEL 1 GOTO Error
nmake
IF ERRORLEVEL 1 GOTO Error
nmake test
IF ERRORLEVEL 1 GOTO Error
nmake package
IF ERRORLEVEL 1 GOTO Error
cd ..
GOTO End
:Error
echo "Product generation failed."
:End
echo "Product generation succeeded."