mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-23 20:05:11 +00:00
tools: Add batch file to automatically generate projects
This will automatically generate projects for any obs-studio supported Visual Studio version using the native tools available.
This commit is contained in:
parent
c5e0703747
commit
9a56c0c8ef
1 changed files with 47 additions and 0 deletions
47
tools/make-solutions.bat
Normal file
47
tools/make-solutions.bat
Normal file
|
@ -0,0 +1,47 @@
|
|||
@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 12 2013"
|
||||
SET "DISTRIB[%COMPILER#%]=%CD%/vs-2013-distrib"
|
||||
SET "PATH[%COMPILER#%]=%CD%/vs-2013-32"
|
||||
SET "TOOLSET[%COMPILER#%]="
|
||||
SET /A COMPILER#=COMPILER#+1
|
||||
SET "COMPILER[%COMPILER#%]=Visual Studio 12 2013 Win64"
|
||||
SET "DISTRIB[%COMPILER#%]=%CD%/vs-2013-distrib"
|
||||
SET "PATH[%COMPILER#%]=%CD%/vs-2013-64"
|
||||
SET "TOOLSET[%COMPILER#%]=host=x64"
|
||||
SET /A COMPILER#=COMPILER#+1
|
||||
SET "COMPILER[%COMPILER#%]=Visual Studio 14 2015"
|
||||
SET "DISTRIB[%COMPILER#%]=%CD%/vs-2015-distrib"
|
||||
SET "PATH[%COMPILER#%]=%CD%/vs-2015-32"
|
||||
SET "TOOLSET[%COMPILER#%]="
|
||||
SET /A COMPILER#=COMPILER#+1
|
||||
SET "COMPILER[%COMPILER#%]=Visual Studio 14 2015 Win64"
|
||||
SET "DISTRIB[%COMPILER#%]=%CD%/vs-2015-distrib"
|
||||
SET "PATH[%COMPILER#%]=%CD%/vs-2015-64"
|
||||
SET "TOOLSET[%COMPILER#%]=host=x64"
|
||||
SET /A COMPILER#=COMPILER#+1
|
||||
SET "COMPILER[%COMPILER#%]=Visual Studio 15 2017"
|
||||
SET "DISTRIB[%COMPILER#%]=%CD%/vs-2017-distrib"
|
||||
SET "PATH[%COMPILER#%]=%CD%/vs-2017-32"
|
||||
SET "TOOLSET[%COMPILER#%]="
|
||||
SET /A COMPILER#=COMPILER#+1
|
||||
SET "COMPILER[%COMPILER#%]=Visual Studio 15 2017 Win64"
|
||||
SET "DISTRIB[%COMPILER#%]=%CD%/vs-2017-distrib"
|
||||
SET "PATH[%COMPILER#%]=%CD%/vs-2017-64"
|
||||
SET "TOOLSET[%COMPILER#%]=host=x64"
|
||||
|
||||
FOR /L %%i IN (1,1,%COMPILER#%) DO (
|
||||
ECHO -- BUILD FOR "!COMPILER[%%i]!" --
|
||||
mkdir "!PATH[%%i]!"
|
||||
pushd "!PATH[%%i]!"
|
||||
cmake -G "!COMPILER[%%i]!" -T "!TOOLSET[%%i]!" --target INSTALL -DPATH_OBSStudio="%DEPSPATH%" -DINSTALL_DIR="!DISTRIB[COMPILER[%%i]!" ../../
|
||||
popd
|
||||
)
|
Loading…
Reference in a new issue