Browse Source

Carry over the windows_subsystem setting to the generated vsproj if it's not the default.

Even if you specify the subsystem to be the console one, the vsproj doesn't carry over the setting, which makes working with this mode in the IDE a bit annoying since it'll regenerate the vsproj right afterwards. Since there's only two options and 'gui' is the default, we only carry over the 'console' setting.
Dario 2 years ago
parent
commit
cda4b4ebf3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      methods.py

+ 3 - 0
methods.py

@@ -868,6 +868,9 @@ def generate_vs_project(env, num_jobs, project_name="godot"):
                 if env["custom_modules"]:
                     common_build_postfix.append("custom_modules=%s" % env["custom_modules"])
 
+                if env["windows_subsystem"] == "console":
+                    common_build_postfix.append("windows_subsystem=console")
+
                 if env["precision"] == "double":
                     common_build_postfix.append("precision=double")