build everything in vcpkg build by default
authoralfadur
Tue, 20 Aug 2019 19:43:03 +0300
changeset 15346 84108dc45ee7
parent 15345 a81bd0b5aad8
child 15347 1a4ec45a4803
build everything in vcpkg build by default
tools/build_vcpkg.bat
tools/build_vcpkg_basic.bat
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/build_vcpkg.bat	Tue Aug 20 19:43:03 2019 +0300
@@ -0,0 +1,39 @@
+@echo off
+::edit these variables if necessary
+set BUILD_TYPE="Release"
+::set if vcpkg is not on path
+set VCPKG_PATH=%VCPKG_ROOT%
+::set if CMake is not on path
+set CMAKE_PATH=
+::set if FPC is not on path
+set PASCAL_PATH=
+
+:setup
+set CURRDIR="%CD%"
+cd %CURRDIR%\..\
+
+set PATH=%PASCAL_PATH%;%VCPKG_PATH%;%CMAKE_PATH%;%PATH%
+
+echo Running cmake...
+set ERRORLEVEL=
+
+cmake . -DCMAKE_TOOLCHAIN_FILE="%VCPKG_PATH%\scripts\buildsystems\vcpkg.cmake" -G"NMake Makefiles" -DCMAKE_BUILD_TYPE="%BUILD_TYPE%" -DSDL2_BUILDING_LIBRARY=1
+
+if %ERRORLEVEL% NEQ 0 goto exitpoint
+
+echo Configuration completed successfully
+
+echo Building...
+set ERRORLEVEL=
+
+nmake
+
+if %ERRORLEVEL% NEQ 0 goto exitpoint
+
+echo Build completed successfully
+
+nmake install
+
+:exitpoint
+cd %CURRDIR%
+pause
--- a/tools/build_vcpkg_basic.bat	Mon Aug 19 21:17:18 2019 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-@echo off
-::edit these variables if necessary
-set BUILD_TYPE="Release"
-::set if vcpkg is not on path
-set VCPKG_PATH=%VCPKG_ROOT%
-::set if CMake is not on path
-set CMAKE_PATH=
-::set if FPC is not on path
-set PASCAL_PATH=
-
-:setup
-set CURRDIR="%CD%"
-cd %CURRDIR%\..\
-
-set PATH=%PASCAL_PATH%;%VCPKG_PATH%;%CMAKE_PATH%;%PATH%
-
-echo Running cmake...
-set ERRORLEVEL=
-
-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
-
-if %ERRORLEVEL% NEQ 0 goto exitpoint
-
-echo Configuration completed successfully
-
-echo Building...
-set ERRORLEVEL=
-
-nmake
-
-if %ERRORLEVEL% NEQ 0 goto exitpoint
-
-echo Build completed successfully
-
-nmake install
-
-:exitpoint
-cd %CURRDIR%
-pause