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.
This commit is contained in:
Dario 2023-08-12 10:42:48 -03:00
parent 4714e95896
commit cda4b4ebf3
1 changed files with 3 additions and 0 deletions

View File

@ -868,6 +868,9 @@ def generate_vs_project(env, num_jobs, project_name="godot"):
if env["custom_modules"]: if env["custom_modules"]:
common_build_postfix.append("custom_modules=%s" % 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": if env["precision"] == "double":
common_build_postfix.append("precision=double") common_build_postfix.append("precision=double")