Skip to content
Snippets Groups Projects
Commit d22036c3 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan :ant:
Browse files

libvpx.recipe: Set target Windows SDK version

parent d5b55bc5
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,8 @@ class Recipe(recipe.Recipe):
# Taken from AOSP: https://android.googlesource.com/platform/external/libvpx/+/android-o-mr1-iot-release-1.0.3/
'libvpx/0005-Add-visibility-protected-attribute-for-global-variab.patch',
'libvpx/0006-Fix-pkg-config-file-library-list.patch',
'libvpx/0007-Always-generate-a-pkg-config-file-and-don-t-require-.patch'
'libvpx/0007-Always-generate-a-pkg-config-file-and-don-t-require-.patch',
'libvpx/0001-gen_msvs_vcxproj.sh-Select-current-Windows-SDK-if-av.patch',
]
files_libs = ['libvpx']
......
From 882bf3cdd9d75e49f94933a103986d00c5c0b89b Mon Sep 17 00:00:00 2001
From: Nirbheek Chauhan <nirbheek@centricular.com>
Date: Tue, 26 Feb 2019 19:16:19 +0530
Subject: [PATCH] gen_msvs_vcxproj.sh: Select current Windows SDK if available
If WindowsTargetPlatformVersion is omitted, Visual Studio defaults to
the Windows 8.1 SDK. This is obviously wrong since we always use the
latest Windows 10 SDK. Force the project file to do so.
---
build/make/gen_msvs_vcxproj.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/build/make/gen_msvs_vcxproj.sh b/build/make/gen_msvs_vcxproj.sh
index 171d0b9..788a462 100644
--- a/build/make/gen_msvs_vcxproj.sh
+++ b/build/make/gen_msvs_vcxproj.sh
@@ -295,6 +295,9 @@ generate_vcxproj() {
tag_content ProjectGuid "{${guid}}"
tag_content RootNamespace ${name}
tag_content Keyword ManagedCProj
+ if [ -n "${WINDOWSSDKVERSION}" ]; then
+ tag_content WindowsTargetPlatformVersion "${WINDOWSSDKVERSION%\\}"
+ fi
if [ $vs_ver -ge 12 ] && [ "${platforms[0]}" = "ARM" ]; then
tag_content AppContainerApplication true
# The application type can be one of "Windows Store",
--
2.20.1.windows.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment