aboutsummaryrefslogtreecommitdiff
path: root/devtools/create_project/create_project.cpp
diff options
context:
space:
mode:
authorPeter Kohaut2017-03-08 22:30:53 +0100
committerPeter Kohaut2017-03-08 22:30:53 +0100
commit27368cc8453f423955f5baa826611ea8a3b09feb (patch)
treef6f7f2563c1d6ad93d5b7977a58ff14453d28c4a /devtools/create_project/create_project.cpp
parent0345e74e71a21fdad6333a37c284d0a83149ce99 (diff)
downloadscummvm-rg350-27368cc8453f423955f5baa826611ea8a3b09feb.tar.gz
scummvm-rg350-27368cc8453f423955f5baa826611ea8a3b09feb.tar.bz2
scummvm-rg350-27368cc8453f423955f5baa826611ea8a3b09feb.zip
CREATE_PROJECT: Add support for Visual Studio 2017
Diffstat (limited to 'devtools/create_project/create_project.cpp')
-rw-r--r--devtools/create_project/create_project.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/devtools/create_project/create_project.cpp b/devtools/create_project/create_project.cpp
index 2baaf91a71..d0cc7da4b2 100644
--- a/devtools/create_project/create_project.cpp
+++ b/devtools/create_project/create_project.cpp
@@ -192,7 +192,7 @@ int main(int argc, char *argv[]) {
msvcVersion = atoi(argv[++i]);
- if (msvcVersion != 9 && msvcVersion != 10 && msvcVersion != 11 && msvcVersion != 12 && msvcVersion != 14) {
+ if (msvcVersion != 9 && msvcVersion != 10 && msvcVersion != 11 && msvcVersion != 12 && msvcVersion != 14 && msvcVersion != 15) {
std::cerr << "ERROR: Unsupported version: \"" << msvcVersion << "\" passed to \"--msvc-version\"!\n";
return -1;
}
@@ -579,7 +579,7 @@ int main(int argc, char *argv[]) {
globalWarnings.push_back("6385");
globalWarnings.push_back("6386");
- if (msvcVersion == 14) {
+ if (msvcVersion == 14 || msvcVersion == 15) {
globalWarnings.push_back("4267");
globalWarnings.push_back("4577");
}
@@ -701,7 +701,8 @@ void displayHelp(const char *exe) {
" 11 stands for \"Visual Studio 2012\"\n"
" 12 stands for \"Visual Studio 2013\"\n"
" 14 stands for \"Visual Studio 2015\"\n"
- " The default is \"9\", thus \"Visual Studio 2008\"\n"
+ " 15 stands for \"Visual Studio 2017\"\n"
+ " The default is \"12\", thus \"Visual Studio 2013\"\n"
" --build-events Run custom build events as part of the build\n"
" (default: false)\n"
" --installer Create NSIS installer after the build (implies --build-events)\n"