From 70325e0d3996adb97b99d45445a34c9334566803 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 30 Aug 2021 03:30:34 +0300 Subject: [PATCH] Tweak VC project files to better match what the software expects --- source/architecture.cpp | 1 + source/vcxprojectgenerator.cpp | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) 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"); } -- 2.43.0