mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
CREATE_PROJECT: Add support for Visual Studio 2015
This commit is contained in:
@@ -124,7 +124,7 @@ int main(int argc, char *argv[]) {
|
||||
setup.features = getAllFeatures();
|
||||
|
||||
ProjectType projectType = kProjectNone;
|
||||
int msvcVersion = 9;
|
||||
int msvcVersion = 12;
|
||||
bool useSDL2 = false;
|
||||
|
||||
// Parse command line arguments
|
||||
@@ -176,7 +176,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
msvcVersion = atoi(argv[++i]);
|
||||
|
||||
if (msvcVersion != 9 && msvcVersion != 10 && msvcVersion != 11 && msvcVersion != 12) {
|
||||
if (msvcVersion != 9 && msvcVersion != 10 && msvcVersion != 11 && msvcVersion != 12 && msvcVersion != 14) {
|
||||
std::cerr << "ERROR: Unsupported version: \"" << msvcVersion << "\" passed to \"--msvc-version\"!\n";
|
||||
return -1;
|
||||
}
|
||||
@@ -453,6 +453,9 @@ int main(int argc, char *argv[]) {
|
||||
// 4250 ('class1' : inherits 'class2::member' via dominance)
|
||||
// two or more members have the same name. Should be harmless
|
||||
//
|
||||
// 4267 ('var' : conversion from 'size_t' to 'type', possible loss of data)
|
||||
// throws tons and tons of warnings (no immediate plan to fix all usages)
|
||||
//
|
||||
// 4310 (cast truncates constant value)
|
||||
// used in some engines
|
||||
//
|
||||
@@ -510,6 +513,7 @@ int main(int argc, char *argv[]) {
|
||||
globalWarnings.push_back("4127");
|
||||
globalWarnings.push_back("4244");
|
||||
globalWarnings.push_back("4250");
|
||||
globalWarnings.push_back("4267");
|
||||
globalWarnings.push_back("4310");
|
||||
globalWarnings.push_back("4345");
|
||||
globalWarnings.push_back("4351");
|
||||
@@ -636,6 +640,7 @@ void displayHelp(const char *exe) {
|
||||
" 10 stands for \"Visual Studio 2010\"\n"
|
||||
" 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"
|
||||
" --build-events Run custom build events as part of the build\n"
|
||||
" (default: false)\n"
|
||||
@@ -658,9 +663,9 @@ void displayHelp(const char *exe) {
|
||||
"Optional features settings:\n"
|
||||
" --enable-<name> enable inclusion of the feature \"name\"\n"
|
||||
" --disable-<name> disable inclusion of the feature \"name\"\n"
|
||||
"\n"
|
||||
"SDL settings:\n"
|
||||
" --sdl2 link to SDL 2.0, instead of SDL 1.2\n"
|
||||
"\n"
|
||||
"SDL settings:\n"
|
||||
" --sdl2 link to SDL 2.0, instead of SDL 1.2\n"
|
||||
"\n"
|
||||
" There are the following features available:\n"
|
||||
"\n";
|
||||
@@ -921,7 +926,7 @@ const Feature s_features[] = {
|
||||
{ "libz", "USE_ZLIB", "zlib", true, "zlib (compression) support" },
|
||||
{ "mad", "USE_MAD", "libmad", true, "libmad (MP3) support" },
|
||||
{ "vorbis", "USE_VORBIS", "libvorbisfile_static libvorbis_static libogg_static", true, "Ogg Vorbis support" },
|
||||
{ "flac", "USE_FLAC", "libFLAC_static", true, "FLAC support" },
|
||||
{ "flac", "USE_FLAC", "libFLAC_static win_utf8_io_static", true, "FLAC support" },
|
||||
{ "png", "USE_PNG", "libpng", true, "libpng support" },
|
||||
{ "faad", "USE_FAAD", "libfaad", false, "AAC support" },
|
||||
{ "mpeg2", "USE_MPEG2", "libmpeg2", false, "MPEG-2 support" },
|
||||
@@ -1050,7 +1055,7 @@ bool producesObjectFile(const std::string &fileName) {
|
||||
}
|
||||
|
||||
std::string toString(int num) {
|
||||
return static_cast<std::ostringstream*>(&(std::ostringstream() << num))->str();
|
||||
return static_cast<std::ostringstream*>(&(std::ostringstream() << num))->str();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user