History

support visual studio 2019 (vs16)

Johann committed 7 years ago

Commit daefbf21 parent 154da5b4 files · +12 −4Browse files

Unified · Split

4 files
  1. README +2 −0
  2. build/make/gen_msvs_sln.sh +3 −2
  3. build/make/gen_msvs_vcxproj.sh +5 −2
  4. configure +2 −0
README+2−0
@@ -100,6 +100,7 @@ COMPILING THE APPLICATIONS/LIBRARIES: · 99 unmodified lines
100100 x86-win32-gcc
101101 x86-win32-vs14
102102 x86-win32-vs15
103+ x86-win32-vs16
103104 x86_64-android-gcc
104105 x86_64-darwin9-gcc
105106 x86_64-darwin10-gcc
@@ -118,6 +119,7 @@ COMPILING THE APPLICATIONS/LIBRARIES: · 12 unmodified lines
118119 x86_64-win64-gcc
119120 x86_64-win64-vs14
120121 x86_64-win64-vs15
122+ x86_64-win64-vs16
121123 generic-gnu
122124
123125 The generic-gnu target, in conjunction with the CROSS environment variable,
build/make/gen_msvs_sln.sh+3−2
@@ -25,7 +25,7 @@ files. · 24 unmodified lines
2525 Options:
2626 --help Print this message
2727 --out=outfile Redirect output to a file
28− --ver=version Version (14,15) of visual studio to generate for
28+ --ver=version Version (14-16) of visual studio to generate for
2929 --target=isa-os-cc Target specifier
3030 EOF
3131 exit 1
@@ -218,6 +218,7 @@ for opt in "$@"; do · 186 unmodified lines
218218 case $optval in
219219 14) vs_year=2015 ;;
220220 15) vs_year=2017 ;;
221+ 16) vs_year=2019 ;;
221222 *) die Unrecognized Visual Studio Version in $opt ;;
222223 esac
223224 ;;
@@ -231,7 +232,7 @@ done · 7 unmodified lines
231232 outfile=${outfile:-/dev/stdout}
232233 mkoutfile=${mkoutfile:-/dev/stdout}
233234 case "${vs_ver}" in
234− 1[4-5])
235+ 1[4-6])
235236 # VS has used Format Version 12.00 continuously since vs11.
236237 sln_vers="12.00"
237238 sln_vers_str="Visual Studio ${vs_year}"
build/make/gen_msvs_vcxproj.sh+5−2
@@ -34,7 +34,7 @@ Options: · 33 unmodified lines
3434 --name=project_name Name of the project (required)
3535 --proj-guid=GUID GUID to use for the project
3636 --module-def=filename File containing export definitions (for DLLs)
37− --ver=version Version (14,15) of visual studio to generate for
37+ --ver=version Version (14-16) of visual studio to generate for
3838 --src-path-bare=dir Path to root of source tree
3939 -Ipath/to/include Additional include directories
4040 -DFLAG[=value] Preprocessor macros to define
@@ -168,7 +168,7 @@ for opt in "$@"; do · 127 unmodified lines
168168 --ver=*)
169169 vs_ver="$optval"
170170 case "$optval" in
171− 1[4-5])
171+ 1[4-6])
172172 ;;
173173 *) die Unrecognized Visual Studio Version in $opt
174174 ;;
@@ -339,6 +339,9 @@ generate_vcxproj() { · 164 unmodified lines
339339 if [ "$vs_ver" = "15" ]; then
340340 tag_content PlatformToolset v141
341341 fi
342+ if [ "$vs_ver" = "16" ]; then
343+ tag_content PlatformToolset v142
344+ fi
342345 tag_content CharacterSet Unicode
343346 if [ "$config" = "Release" ]; then
344347 tag_content WholeProgramOptimization true
configure+2−0
@@ -137,6 +137,7 @@ all_platforms="${all_platforms} x86-solaris-gcc" · 136 unmodified lines
137137 all_platforms="${all_platforms} x86-win32-gcc"
138138 all_platforms="${all_platforms} x86-win32-vs14"
139139 all_platforms="${all_platforms} x86-win32-vs15"
140+all_platforms="${all_platforms} x86-win32-vs16"
140141 all_platforms="${all_platforms} x86_64-android-gcc"
141142 all_platforms="${all_platforms} x86_64-darwin9-gcc"
142143 all_platforms="${all_platforms} x86_64-darwin10-gcc"
@@ -155,6 +156,7 @@ all_platforms="${all_platforms} x86_64-solaris-gcc" · 12 unmodified lines
155156 all_platforms="${all_platforms} x86_64-win64-gcc"
156157 all_platforms="${all_platforms} x86_64-win64-vs14"
157158 all_platforms="${all_platforms} x86_64-win64-vs15"
159+all_platforms="${all_platforms} x86_64-win64-vs16"
158160 all_platforms="${all_platforms} generic-gnu"
159161
160162 # all_targets is a list of all targets that can be configured

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t