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 /xmplay/*.dll
/dependencies /dependencies
/version.h /version.h
/version.mk /msvc-build.config.ps1
/**/vgmstream-win.zip /**/vgmstream-win.zip
/**/foo_input_vgmstream.fb2k-component /**/foo_input_vgmstream.fb2k-component

View File

@ -8,13 +8,17 @@ Param(
############################################################################### ###############################################################################
# CONFIG # CONFIG
# set these vars to override project defaults # 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 $config_file = ".\msvc-build.config.ps1"
$toolset = "" if((Test-Path $config_file)) { . $config_file }
# - values: "" (default), "7.0" (Win7 SDK), "8.1" (Win8 SDK), "10.0" (Win10 SDK), etc
$sdk = "" # - toolsets: "" (default), "v140" (MSVC 2015), "v141" (MSVC 2017), "v141_xp" (XP support), "v142" (MSVC 2019), etc
# - values: "" (default), "Win32" if (!$toolset) { $toolset = "" }
$platform = "" # - 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" $solution = "vgmstream_full.sln"