GT-3275: PDB SDK version is now controlled by a Gradle property.

This commit is contained in:
Ryan Kurtz 2019-11-01 09:15:53 -04:00
parent 4f0007bb1f
commit d1d68af931
2 changed files with 2 additions and 2 deletions

View file

@ -50,12 +50,13 @@ if ("win64".equals(getCurrentPlatformName())) {
def projectPathWindows = projectPath.replace("/", File.separator)
def solutionPathWindows = "${projectPathWindows}\\src\\pdb\\pdb.sln"
def platformToolset = 'v' + MSVC_TOOLS_VERSION.substring(0, 4).replace('.', '');
def windowsTargetPlatformVersion = findProperty("WindowsTargetPlatformVersion") ?: ""
doFirst {
file("build/os/win64").mkdirs()
new File(solutionBatchFilePath).withWriter { out ->
out.println "call " + VISUAL_STUDIO_VCVARS_CMD
out.println "msbuild ${solutionPathWindows} /p:Configuration=Release /p:PlatformToolset=${platformToolset} /p:WindowsTargetPlatformVersion=${MSVC_SDK_VERSION}"
out.println "msbuild ${solutionPathWindows} /p:Configuration=Release /p:PlatformToolset=${platformToolset} /p:WindowsTargetPlatformVersion=${windowsTargetPlatformVersion}"
}
}

View file

@ -13,7 +13,6 @@
<PropertyGroup Label="Globals">
<ProjectGuid>{343E9778-3C04-476E-8F90-A114AA7AA108}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">