13928
|
1 |
@echo off
|
|
2 |
::edit these variables if necessary
|
15320
|
3 |
set BUILD_TYPE="Release"
|
13928
|
4 |
::set if vcpkg is not on path
|
|
5 |
set VCPKG_PATH=%VCPKG_ROOT%
|
|
6 |
::set if CMake is not on path
|
|
7 |
set CMAKE_PATH=
|
|
8 |
::set if FPC is not on path
|
|
9 |
set PASCAL_PATH=
|
|
10 |
|
|
11 |
:setup
|
|
12 |
set CURRDIR="%CD%"
|
|
13 |
cd %CURRDIR%\..\
|
|
14 |
|
|
15 |
set PATH=%PASCAL_PATH%;%VCPKG_PATH%;%CMAKE_PATH%;%PATH%
|
|
16 |
|
|
17 |
echo Running cmake...
|
|
18 |
set ERRORLEVEL=
|
|
19 |
|
15320
|
20 |
cmake . -DCMAKE_TOOLCHAIN_FILE="%VCPKG_PATH%\scripts\buildsystems\vcpkg.cmake" -G"NMake Makefiles" -DNOSERVER=1 -DNOVIDEOREC=1 -DCMAKE_BUILD_TYPE="%BUILD_TYPE%" -DSDL2_BUILDING_LIBRARY=1
|
13928
|
21 |
|
|
22 |
if %ERRORLEVEL% NEQ 0 goto exitpoint
|
|
23 |
|
|
24 |
echo Configuration completed successfully
|
|
25 |
|
|
26 |
echo Building...
|
|
27 |
set ERRORLEVEL=
|
|
28 |
|
|
29 |
nmake
|
|
30 |
|
|
31 |
if %ERRORLEVEL% NEQ 0 goto exitpoint
|
|
32 |
|
|
33 |
echo Build completed successfully
|
|
34 |
|
15320
|
35 |
nmake install
|
|
36 |
|
13928
|
37 |
:exitpoint
|
|
38 |
cd %CURRDIR%
|
|
39 |
pause
|