diff --git a/methods.py b/methods.py index c22b1f11e467..69d8df1d72f4 100644 --- a/methods.py +++ b/methods.py @@ -1367,7 +1367,7 @@ def format_key_value(v): 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 format_key_value(v): "", ] + properties += [ + f"", + f" {godot_target}", + f" {proj_plat}", + "", + ] + if godot_platform != "windows": configurations += [ f'', @@ -1490,6 +1497,13 @@ def format_key_value(v): "", ] + 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 format_key_value(v): 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 9ecd49a25ee1..8facaf7f36e2 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 a1cf22bfb9b8..30f29a55f876 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 - +