diff --git a/.gitignore b/.gitignore index 568b68e2..97aaf7c0 100644 --- a/.gitignore +++ b/.gitignore @@ -46,6 +46,7 @@ Release /dependencies /version_auto.h /msvc-build.config.ps1 +/msvc-build.log /**/vgmstream-win.zip /**/foo_input_vgmstream.fb2k-component diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 00000000..b7784a94 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,13 @@ + + + + + + + + + 4018;4996;%(DisableSpecificWarnings) + + + + \ No newline at end of file diff --git a/msvc-build.ps1 b/msvc-build.ps1 index c11c368c..b6f39e5d 100644 --- a/msvc-build.ps1 +++ b/msvc-build.ps1 @@ -19,6 +19,8 @@ if (!$toolset) { $toolset = "" } if (!$sdk) { $sdk = "" } # - platforms: "" (default), "Win32" if (!$platform) { $platform = "" } +# print compilation log +#$log = 1 ############################################################################### $solution = "vgmstream_full.sln" @@ -126,7 +128,12 @@ function CallMsbuild } # main build (pass config separate and not as a single string) - & $msbuild $solution $config $platform $toolset $sdk $target /m + if (!$log) { + & $msbuild $solution $config $platform $toolset $sdk $target /m + } + else { + & $msbuild $solution $config $platform $toolset $sdk $target /m > "msvc-build.log" + } } function Build