2017-12-04 14:04:44 +00:00
|
|
|
@ECHO OFF
|
|
|
|
SETLOCAL EnableDelayedExpansion
|
|
|
|
mkdir %~dp0\..\build
|
|
|
|
CD /D %~dp0\..\build
|
|
|
|
|
|
|
|
SET "DEPSPATH=%CD%/deps/obs"
|
|
|
|
|
|
|
|
:: Compilers
|
|
|
|
SET COMPILER#=0
|
|
|
|
SET /A COMPILER#=COMPILER#+1
|
|
|
|
SET "COMPILER[%COMPILER#%]=Visual Studio 15 2017"
|
|
|
|
SET "TOOLSET[%COMPILER#%]="
|
2018-04-29 01:42:15 +00:00
|
|
|
SET "PATH[%COMPILER#%]=%CD%/vs2017-32"
|
|
|
|
SET "DISTRIB[%COMPILER#%]=%CD%/vs2017-distrib"
|
|
|
|
SET "SYSTEM[%COMPILER#%]=win32"
|
2017-12-04 14:04:44 +00:00
|
|
|
SET /A COMPILER#=COMPILER#+1
|
|
|
|
SET "COMPILER[%COMPILER#%]=Visual Studio 15 2017 Win64"
|
|
|
|
SET "TOOLSET[%COMPILER#%]=host=x64"
|
2018-04-29 01:42:15 +00:00
|
|
|
SET "PATH[%COMPILER#%]=%CD%/vs2017-64"
|
|
|
|
SET "DISTRIB[%COMPILER#%]=%CD%/vs2017-distrib"
|
|
|
|
SET "SYSTEM[%COMPILER#%]=win64"
|
2017-12-04 14:04:44 +00:00
|
|
|
|
|
|
|
FOR /L %%i IN (1,1,%COMPILER#%) DO (
|
|
|
|
ECHO -- BUILD FOR "!COMPILER[%%i]!" --
|
|
|
|
mkdir "!PATH[%%i]!"
|
|
|
|
pushd "!PATH[%%i]!"
|
2018-04-29 01:42:15 +00:00
|
|
|
cmake -G "!COMPILER[%%i]!" -T "!TOOLSET[%%i]!" -DCMAKE_INSTALL_PREFIX="!DISTRIB[%%i]!" -DCPACK_SYSTEM_NAME="!SYSTEM[%%i]!" ../../
|
2017-12-04 14:04:44 +00:00
|
|
|
popd
|
|
|
|
)
|
2018-04-23 15:26:54 +00:00
|
|
|
PAUSE
|