forked from Vita3K/Vita3K
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgen-windows.bat
More file actions
31 lines (25 loc) · 818 Bytes
/
Copy pathgen-windows.bat
File metadata and controls
31 lines (25 loc) · 818 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
@echo off
echo Please choose your preferred Visual Studio version.
choice /c 97 /n /t 3 /d 7 /m "Press '9' for VS 2019 or '7' for VS 2017: "
if errorlevel 1 set vs_version=Visual Studio 16 2019
if errorlevel 2 set vs_version=Visual Studio 15 2017 Win64
REM CI uses pre-built Boost
IF "%CI%"=="" IF NOT EXIST external\boost-build (
REM Create build dir
mkdir external\boost-build
cd external\boost
call bootstrap.bat
REM Build our Boost subset
call b2 -j%NUMBER_OF_PROCESSORS% --build-dir=../boost-build --stagedir=../boost-build toolset=msvc stage
cd ../..
)
REM Create build folder
mkdir build-windows
pushd build-windows
REM Generate project files
IF "%CI%"=="" (
call cmake -G "%vs_version%" ..
) ELSE (
call cmake -G "%vs_version%" -DCI:BOOL=ON -DCMAKE_CONFIGURATION_TYPES=%CONFIGURATION% ..
)
popd