Upgrade build scripts to support VS2019. (mono/mono#17269)
authorJohan Lorensson <lateralusx.github@gmail.com>
Thu, 17 Oct 2019 06:55:50 +0000 (08:55 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Oct 2019 06:55:50 +0000 (08:55 +0200)
commit18450a660cd7152a61f68534c861f788c994dab6
tree5e256666fe7874cfa99da14a3bfb4e0406615755
parent69225915898901a046f413ca0237a72d60899169
Upgrade build scripts to support VS2019. (mono/mono#17269)

Changes will default Windows SDK version as well as Platform Toolset to
the default versions used in the targeted VS version. If the projects are
opened up in VS2015, it should default to Windows SDK 8.1 and v140, but if
the same projects are opened in VS2019, it will default to latest Windows SDK 10
and v142. This way the project files should adapt to used VS version, meaning
that we could still build them using VS2015 (what's currently used on CI) but also
using VS2017 and VS2019. There should not be a need to install any previous versions
of build tools, unless an older version is targeted. It is also possible to set
PlatformToolset when calling msbuild and that should adapt to corresponding default
Windows SDK version for targeted toolset version.

Commit makes many changes and adjustments, aligning all vcxproj files but changes
should not affect build output.

Commit migrated from https://github.com/mono/mono/commit/4f8a82c9fdebd7e9dcc5392a8b3a0fd129789bc0
49 files changed:
src/mono/mono/eglib/test/module.c
src/mono/mono/metadata/seq-points-data.c
src/mono/mono/mini/aot-compiler.c
src/mono/mono/mini/interp/mintops.c
src/mono/mono/tests/libtest.c
src/mono/msvc/build-all.vcxproj
src/mono/msvc/build-external-btls.bat
src/mono/msvc/build-external-btls.vcxproj
src/mono/msvc/build-external-llvm.bat
src/mono/msvc/build-external-llvm.vcxproj
src/mono/msvc/build-init.vcxproj
src/mono/msvc/build-install.vcxproj
src/mono/msvc/build-package.vcxproj
src/mono/msvc/eglib.vcxproj
src/mono/msvc/genmdesc.vcxproj
src/mono/msvc/libgc.vcxproj
src/mono/msvc/libgcmonosgen.vcxproj
src/mono/msvc/libmini.vcxproj
src/mono/msvc/libmono-dynamic.vcxproj
src/mono/msvc/libmono-static.vcxproj
src/mono/msvc/libmonodac.vcxproj
src/mono/msvc/libmonoruntime.targets.filters
src/mono/msvc/libmonoruntime.vcxproj
src/mono/msvc/libmonoutils.vcxproj
src/mono/msvc/libtest.vcxproj
src/mono/msvc/mono-full-aot-compile-test.vcxproj
src/mono/msvc/mono-full-aot-run-test.vcxproj
src/mono/msvc/mono-mini-regression-test.vcxproj
src/mono/msvc/mono-nunit-test.vcxproj
src/mono/msvc/mono-profiler-log.vcxproj
src/mono/msvc/mono-testdriver-test.vcxproj
src/mono/msvc/mono.external.targets
src/mono/msvc/mono.vcxproj
src/mono/msvc/monodis.vcxproj
src/mono/msvc/monoposixhelper.vcxproj
src/mono/msvc/monow.vcxproj
src/mono/msvc/monozlib.targets.filters [new file with mode: 0644]
src/mono/msvc/pedump.vcxproj
src/mono/msvc/profiler-vtune.vcxproj
src/mono/msvc/run-msbuild.bat
src/mono/msvc/scripts/tests/clang-vs2017-toolchain.bat
src/mono/msvc/scripts/tests/clang-vs2019-toolchain.bat [new file with mode: 0644]
src/mono/msvc/scripts/tests/setup-toolchain.bat
src/mono/msvc/setup-vs-msbuild-env.bat
src/mono/msvc/setup-vs-msvcbuild-env.bat
src/mono/msvc/test-invoke.vcxproj
src/mono/msvc/test-metadata.vcxproj
src/mono/msvc/test_eglib.vcxproj
src/mono/msvc/teste.vcxproj