diff --git a/methods.py b/methods.py index c22b1f11e46..69d8df1d72f 100644 --- a/methods.py +++ b/methods.py @@ -1367,7 +1367,7 @@ def generate_vs_project(env, original_args, project_name="godot"): vsconf = f'{target}|{a["platform"]}' break - condition = "'$(Configuration)|$(Platform)'=='" + vsconf + "'" + condition = "'$(GodotConfiguration)|$(GodotPlatform)'=='" + vsconf + "'" properties.append(";" + ";".join(activeItems) + ";") output = f'bin\\godot{env["PROGSUFFIX"]}' @@ -1482,6 +1482,13 @@ def generate_vs_project(env, original_args, project_name="godot"): "", ] + properties += [ + f"", + f" {godot_target}", + f" {proj_plat}", + "", + ] + if godot_platform != "windows": configurations += [ f'', @@ -1490,6 +1497,13 @@ def generate_vs_project(env, original_args, project_name="godot"): "", ] + properties += [ + f"", + f" editor", + f" {proj_plat}", + "", + ] + p = f"{project_name}.{godot_platform}.{godot_target}.{godot_arch}.generated.props" imports += [ f'' @@ -1502,6 +1516,10 @@ def generate_vs_project(env, original_args, project_name="godot"): f"{{{proj_uuid}}}.{godot_target}|{sln_plat}.Build.0 = {godot_target}|{proj_plat}", ] + # Add an extra import for a local user props file at the end, so users can add more overrides. + imports += [ + f'' + ] section1 = sorted(section1) section2 = sorted(section2) diff --git a/misc/msvs/props.template b/misc/msvs/props.template index 9ecd49a25ee..8facaf7f36e 100644 --- a/misc/msvs/props.template +++ b/misc/msvs/props.template @@ -1,6 +1,6 @@ - + %%BUILD%% %%REBUILD%% %%CLEAN%% diff --git a/misc/msvs/vcxproj.template b/misc/msvs/vcxproj.template index a1cf22bfb9b..30f29a55f87 100644 --- a/misc/msvs/vcxproj.template +++ b/misc/msvs/vcxproj.template @@ -9,23 +9,21 @@ MakeFileProj NoUpgrade - - %%PROPERTIES%% - + %%PROPERTIES%% Makefile false v143 - $(SolutionDir)\bin\$(Platform)\$(Configuration)\ - obj\$(Platform)\$(Configuration)\ + $(SolutionDir)\bin\$(GodotPlatform)\$(GodotConfiguration)\ + obj\$(GodotPlatform)\$(GodotConfiguration)\ $(OutDir)\Layout - +