From: Mikko Rasa Date: Mon, 30 Aug 2021 00:30:34 +0000 (+0300) Subject: Tweak VC project files to better match what the software expects X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=70325e0d3996adb97b99d45445a34c9334566803;p=builder.git Tweak VC project files to better match what the software expects --- diff --git a/source/architecture.cpp b/source/architecture.cpp index 3dd76fb..2c5d383 100644 --- a/source/architecture.cpp +++ b/source/architecture.cpp @@ -70,6 +70,7 @@ const char *aliases[] = { "pc", "x86", "x86_64", "x86-64", + "x64", "x86-64", "amd64", "x86-64", "i586", "pentium", "i686", "pentiumpro", diff --git a/source/vcxprojectgenerator.cpp b/source/vcxprojectgenerator.cpp index b5c42c5..3f806a0 100644 --- a/source/vcxprojectgenerator.cpp +++ b/source/vcxprojectgenerator.cpp @@ -43,7 +43,7 @@ void VcxProjectGenerator::Worker::main() IO::print(out, "\t\n"); vector build_types = builder.get_build_types(); - const char *platforms[] = { "x86-32", "x86-64", 0 }; + const char *platforms[] = { "Win32", "x64", 0 }; for(const char **i=platforms; *i; ++i) for(vector::const_iterator j=build_types.begin(); j!=build_types.end(); ++j) { @@ -72,13 +72,15 @@ void VcxProjectGenerator::Worker::main() for(const char **i=platforms; *i; ++i) for(vector::const_iterator j=build_types.begin(); j!=build_types.end(); ++j) { + string base_cmd = format("%s --arch=%s --build-type=%s --prefix=%s", argv0, *i, *j, builder.get_prefix()); IO::print(out, "\t\n", *j, *i); IO::print(out, "\t\tMakeFile\n"); - IO::print(out, "\t\t%s --arch=%s --build-type=%s\n", argv0, *i, *j); - IO::print(out, "\t\t%s --arch=%s --build-type=%s -c\n", argv0, *i, *j); - IO::print(out, "\t\t%s --arch=%s --build-type=%s -B\n", argv0, *i, *j); + IO::print(out, "\t\t%s\n", base_cmd); + IO::print(out, "\t\t%s -c\n", base_cmd); + IO::print(out, "\t\t%s -B\n", base_cmd); if(exe) IO::print(out, "\t\t%s\n", exe->get_path()); + IO::print(out, "\t\t\tv142\n"); IO::print(out, "\t\n"); }