]> granicus.if.org Git - libvpx/commitdiff
support visual studio 2019 (vs16)
authorJohann <johannkoenig@google.com>
Tue, 29 Oct 2019 17:19:43 +0000 (13:19 -0400)
committerJohann <johannkoenig@google.com>
Tue, 29 Oct 2019 17:19:43 +0000 (13:19 -0400)
Fixed: 1633
Change-Id: I7dd2b4873aeb548c7f9ebf7025baf15a8e65c68f

README
build/make/gen_msvs_sln.sh
build/make/gen_msvs_vcxproj.sh
configure

diff --git a/README b/README
index eae97831f9fcbcb9fd4d5250acda8a461b804140..17271e31ecbab56bd90aaa7ad5c4963d02db378b 100644 (file)
--- a/README
+++ b/README
@@ -100,6 +100,7 @@ COMPILING THE APPLICATIONS/LIBRARIES:
     x86-win32-gcc
     x86-win32-vs14
     x86-win32-vs15
+    x86-win32-vs16
     x86_64-android-gcc
     x86_64-darwin9-gcc
     x86_64-darwin10-gcc
@@ -118,6 +119,7 @@ COMPILING THE APPLICATIONS/LIBRARIES:
     x86_64-win64-gcc
     x86_64-win64-vs14
     x86_64-win64-vs15
+    x86_64-win64-vs16
     generic-gnu
 
   The generic-gnu target, in conjunction with the CROSS environment variable,
index da27fc47434f1d1396303f0ba460c6f8aa478e44..d1adfd749c663a5b06d603eb81de198945afb419 100755 (executable)
@@ -25,7 +25,7 @@ files.
 Options:
     --help                      Print this message
     --out=outfile               Redirect output to a file
-    --ver=version               Version (14,15) of visual studio to generate for
+    --ver=version               Version (14-16) of visual studio to generate for
     --target=isa-os-cc          Target specifier
 EOF
     exit 1
@@ -218,6 +218,7 @@ for opt in "$@"; do
       case $optval in
         14) vs_year=2015 ;;
         15) vs_year=2017 ;;
+        16) vs_year=2019 ;;
         *) die Unrecognized Visual Studio Version in $opt ;;
       esac
     ;;
@@ -231,7 +232,7 @@ done
 outfile=${outfile:-/dev/stdout}
 mkoutfile=${mkoutfile:-/dev/stdout}
 case "${vs_ver}" in
-    1[4-5])
+    1[4-6])
       # VS has used Format Version 12.00 continuously since vs11.
       sln_vers="12.00"
       sln_vers_str="Visual Studio ${vs_year}"
index bddabee6b6fef88c30f21b2aaa57cef085900c22..bb1c31d230da38e61df59b7a40d7b8daa757c9fb 100755 (executable)
@@ -34,7 +34,7 @@ Options:
     --name=project_name         Name of the project (required)
     --proj-guid=GUID            GUID to use for the project
     --module-def=filename       File containing export definitions (for DLLs)
-    --ver=version               Version (14,15) of visual studio to generate for
+    --ver=version               Version (14-16) of visual studio to generate for
     --src-path-bare=dir         Path to root of source tree
     -Ipath/to/include           Additional include directories
     -DFLAG[=value]              Preprocessor macros to define
@@ -168,7 +168,7 @@ for opt in "$@"; do
         --ver=*)
             vs_ver="$optval"
             case "$optval" in
-                1[4-5])
+                1[4-6])
                 ;;
                 *) die Unrecognized Visual Studio Version in $opt
                 ;;
@@ -339,6 +339,9 @@ generate_vcxproj() {
             if [ "$vs_ver" = "15" ]; then
                 tag_content PlatformToolset v141
             fi
+            if [ "$vs_ver" = "16" ]; then
+                tag_content PlatformToolset v142
+            fi
             tag_content CharacterSet Unicode
             if [ "$config" = "Release" ]; then
                 tag_content WholeProgramOptimization true
index 4f5816134bc8ce7c9f771860d596d865c8681885..a4a7978072959367a6f0c9d07557e62f403fc708 100755 (executable)
--- a/configure
+++ b/configure
@@ -137,6 +137,7 @@ all_platforms="${all_platforms} x86-solaris-gcc"
 all_platforms="${all_platforms} x86-win32-gcc"
 all_platforms="${all_platforms} x86-win32-vs14"
 all_platforms="${all_platforms} x86-win32-vs15"
+all_platforms="${all_platforms} x86-win32-vs16"
 all_platforms="${all_platforms} x86_64-android-gcc"
 all_platforms="${all_platforms} x86_64-darwin9-gcc"
 all_platforms="${all_platforms} x86_64-darwin10-gcc"
@@ -155,6 +156,7 @@ all_platforms="${all_platforms} x86_64-solaris-gcc"
 all_platforms="${all_platforms} x86_64-win64-gcc"
 all_platforms="${all_platforms} x86_64-win64-vs14"
 all_platforms="${all_platforms} x86_64-win64-vs15"
+all_platforms="${all_platforms} x86_64-win64-vs16"
 all_platforms="${all_platforms} generic-gnu"
 
 # all_targets is a list of all targets that can be configured