shithub: libvpx

Download patch

ref: aa827867aae79beecdc2588f2868ccd172f4b272
parent: e6f889c120f65bb3d612aec8e6b1e7e4fcd25378
author: Jon Kunkee <jkunkee@microsoft.com>
date: Thu Nov 15 08:01:04 EST 2018

Add ARM64 support to VS project generation

Windows builds can use msbuild.exe to build libvpx through a set of
generated Visual Studio project files. This commit adds awareness of
ARM64 Windows to this process by adding ARM64 configurations and
setting msbuild properties to consume the right SDK version.

Change-Id: I1bbc01cbe7be3d53c4e1af6cd96c6e4170aa4915

--- a/build/make/gen_msvs_vcxproj.sh
+++ b/build/make/gen_msvs_vcxproj.sh
@@ -261,6 +261,11 @@
         asm_Debug_cmdline="yasm -Xvc -g cv8 -f win32 ${yasmincs} &quot;%(FullPath)&quot;"
         asm_Release_cmdline="yasm -Xvc -f win32 ${yasmincs} &quot;%(FullPath)&quot;"
     ;;
+    arm64*)
+        platforms[0]="ARM64"
+        asm_Debug_cmdline="armasm64 -nologo -oldit &quot;%(FullPath)&quot;"
+        asm_Release_cmdline="armasm64 -nologo -oldit &quot;%(FullPath)&quot;"
+    ;;
     arm*)
         platforms[0]="ARM"
         asm_Debug_cmdline="armasm -nologo -oldit &quot;%(FullPath)&quot;"
@@ -306,6 +311,16 @@
             # v120 while it should be v120_wp81 if the type is Windows Phone.
             tag_content ApplicationType "Windows Store"
             tag_content ApplicationTypeRevision 8.1
+        fi
+        if [ $vs_ver -eq 15 ] && [ "${platforms[0]}" = "ARM64" ]; then
+            # Require the first Visual Studio version to have ARM64 support.
+            tag_content MinimumVisualStudioVersion 15.9
+            # Require a Windows SDK that has ARM64 support rather than the
+            # default of 8.1.
+            # Since VS 15 does not have a 'use latest SDK version' facility,
+            # set WindowsTargetPlatformVersion to the first official SDK
+            # version to have ARM64 support.
+            tag_content WindowsTargetPlatformVersion 10.0.17134.0
         fi
     close_tag PropertyGroup