From 4f8a82c9fdebd7e9dcc5392a8b3a0fd129789bc0 Mon Sep 17 00:00:00 2001 From: Johan Lorensson Date: Thu, 17 Oct 2019 08:55:50 +0200 Subject: Upgrade build scripts to support VS2019. (#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. --- msvc/profiler-vtune.vcxproj | 65 ++++++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 30 deletions(-) (limited to 'msvc/profiler-vtune.vcxproj') diff --git a/msvc/profiler-vtune.vcxproj b/msvc/profiler-vtune.vcxproj index 43d4f7ca452..6b527adad1c 100644 --- a/msvc/profiler-vtune.vcxproj +++ b/msvc/profiler-vtune.vcxproj @@ -22,28 +22,31 @@ {F51017F9-B7FB-4F87-B7B5-12799D965783} profilervtune Win32Proj - 8.1 DynamicLibrary + true + $(DefaultPlatformToolset) Unicode - v140 DynamicLibrary + true + $(DefaultPlatformToolset) Unicode - v140 DynamicLibrary + false + $(DefaultPlatformToolset) Unicode - v140 DynamicLibrary + false + $(DefaultPlatformToolset) Unicode - v140 @@ -65,37 +68,44 @@ - - <_ProjectFileVersion>10.0.30319.1 - $(MONO_BUILD_DIR_PREFIX)$(Platform)\bin\$(Configuration)\ - $(MONO_BUILD_DIR_PREFIX)$(Platform)\bin\$(Configuration)\ - $(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\ - $(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\ - true - true - $(MONO_BUILD_DIR_PREFIX)$(Platform)\bin\$(Configuration)\ - $(MONO_BUILD_DIR_PREFIX)$(Platform)\bin\$(Configuration)\ - $(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\ - $(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\ - mono-profiler-vtune$(MONO_TARGET_SUFFIX) - mono-profiler-vtune$(MONO_TARGET_SUFFIX) - mono-profiler-vtune$(MONO_TARGET_SUFFIX) - mono-profiler-vtune$(MONO_TARGET_SUFFIX) + + false + mono-profiler-vtune$(MONO_TARGET_SUFFIX) + $(MONO_BUILD_DIR_PREFIX)$(Platform)\bin\$(Configuration)\ + $(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\ + + + false + mono-profiler-vtune$(MONO_TARGET_SUFFIX) + $(MONO_BUILD_DIR_PREFIX)$(Platform)\bin\$(Configuration)\ + $(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\ + + + true + mono-profiler-vtune$(MONO_TARGET_SUFFIX) + $(MONO_BUILD_DIR_PREFIX)$(Platform)\bin\$(Configuration)\ + $(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\ + + + true + mono-profiler-vtune$(MONO_TARGET_SUFFIX) + $(MONO_BUILD_DIR_PREFIX)$(Platform)\bin\$(Configuration)\ + $(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\ true WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - - Level3 $(MONO_DIR);$(MONO_INCLUDE_DIR);$(MONO_LIBGC_INCLUDE_DIR);$(MONO_JIT_INCLUDE_DIR);$(MONO_EGLIB_SOURCE_DIR);$(VTUNE_INCLUDE_DIR);%(AdditionalIncludeDirectories) true + true mono-profiler-vtune.def $(MONO_LIBMONO_LIB);jitprofiling.lib;%(AdditionalDependencies) $(ProgramFiles)\Intel\VTune Amplifier XE 2013\lib32;%(AdditionalLibraryDirectories) + UseLinkTimeCodeGeneration false @@ -105,16 +115,16 @@ true WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - - Level3 $(MONO_DIR);$(MONO_INCLUDE_DIR);$(MONO_LIBGC_INCLUDE_DIR);$(MONO_JIT_INCLUDE_DIR);$(MONO_EGLIB_SOURCE_DIR);$(VTUNE_INCLUDE_DIR);%(AdditionalIncludeDirectories) true + true mono-profiler-vtune.def $(MONO_LIBMONO_LIB);jitprofiling.lib;%(AdditionalDependencies) $(ProgramFiles)\Intel\VTune Amplifier XE 2013\lib32;%(AdditionalLibraryDirectories) + UseLinkTimeCodeGeneration false @@ -125,9 +135,6 @@ Disabled $(MONO_DIR);$(MONO_INCLUDE_DIR);$(MONO_LIBGC_INCLUDE_DIR);$(MONO_JIT_INCLUDE_DIR);$(MONO_EGLIB_SOURCE_DIR);$(VTUNE_INCLUDE_DIR);%(AdditionalIncludeDirectories) WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - - Level3 @@ -144,8 +151,6 @@ Disabled $(MONO_DIR);$(MONO_INCLUDE_DIR);$(MONO_LIBGC_INCLUDE_DIR);$(MONO_JIT_INCLUDE_DIR);$(MONO_EGLIB_SOURCE_DIR);$(VTUNE_INCLUDE_DIR);%(AdditionalIncludeDirectories) WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - - Level3 -- cgit v1.2.3