forked from open-gunz/ogz-source
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-win32-continuous.bat
More file actions
48 lines (33 loc) · 1007 Bytes
/
build-win32-continuous.bat
File metadata and controls
48 lines (33 loc) · 1007 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
47
48
@echo off
if not "%1" == "max" start /MAX cmd /c %0 max & exit/b
:: Save the current directory so that we can cd back to it at the end of the script.
set OLDCD=%CD%
:: Create and enter the build directory, and delete build\CMakeCache.txt if it exists for a clean build.
if not exist build (
call mkdir build
)
if not exist build\win32 (
call mkdir build\win32
)
call cd build/win32
:build
:: Generate the Visual Studio project files.
call cmake -G "Visual Studio 15 2017" -T "v141_xp" -Wno-dev -DBUILD_SHARED_LIBS=OFF -DZLIB_LIBRARY="C:\Program Files (x86)\zlib\lib\zlibstatic.lib" -DZLIB_INCLUDE_DIR="C:\Program Files (x86)\zlib\include" ..\..\src
if errorlevel 1 (
echo cmake generation failed, exiting
goto fail
)
:: Build in release mode.
call cmake --build . --config Release --target INSTALL
if errorlevel 1 (
echo cmake build failed, exiting
goto fail
)
echo.
echo.
echo Done!.
pause Press any key to rebuild. . .
goto build
:fail
pause Press any key to rebuild. . .
goto build