build: read msvc-build.config.ps1 for local sdks

This commit is contained in:
bnnm 2021-08-08 13:31:11 +02:00
parent 63b588709f
commit fc44d8f4f0
2 changed files with 11 additions and 7 deletions

2
.gitignore vendored
View File

@ -45,7 +45,7 @@ Release
/xmplay/*.dll
/dependencies
/version.h
/version.mk
/msvc-build.config.ps1
/**/vgmstream-win.zip
/**/foo_input_vgmstream.fb2k-component

View File

@ -8,13 +8,17 @@ Param(
###############################################################################
# CONFIG
# set these vars to override project defaults
# can also create a mssvc-build.config.ps1 with those
###############################################################################
# - values: "" (p), "v140" (MSVC 2015), "v141" (MSVC 2017), "v141_xp" (XP support), "v142" (MSVC 2019), etc
$toolset = ""
# - values: "" (default), "7.0" (Win7 SDK), "8.1" (Win8 SDK), "10.0" (Win10 SDK), etc
$sdk = ""
# - values: "" (default), "Win32"
$platform = ""
$config_file = ".\msvc-build.config.ps1"
if((Test-Path $config_file)) { . $config_file }
# - toolsets: "" (default), "v140" (MSVC 2015), "v141" (MSVC 2017), "v141_xp" (XP support), "v142" (MSVC 2019), etc
if (!$toolset) { $toolset = "" }
# - sdks: "" (default), "7.0" (Win7 SDK), "8.1" (Win8 SDK), "10.0" (Win10 SDK), etc
if (!$sdk) { $sdk = "" }
# - platforms: "" (default), "Win32"
if (!$platform) { $platform = "" }
###############################################################################
$solution = "vgmstream_full.sln"