Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio: Fix user workflows with custom user VS configurations #88253

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

shana
Copy link
Contributor

@shana shana commented Feb 12, 2024

Users can add additional VS project configurations with their own custom settings, but to support this workflow, we can't rely directly on $(Platform) and $(Configuration), because VS needs Configuration|Platform to be a unique combo in the ProjectConfiguration section, and we need to allow for different combos of Configuration|Platform to point to the same scons build configuration.

GodotPlatform and GodotConfiguration properties lets us decouple from the magic VS properties that we don't control, so users can add however many Platform|Configuration combos they want and still point to a specific GodotPlatform|GodotConfiguration build config.

How to test:

  • Run scons target=editor vsproj=yes to generate a vcxproj file and the build-specific godot.windows.editor.x86_64.generated.props file
  • In the VS, add a new project configuration and copy settings from the editor configuration (let it create the solution configurations)
  • Once VS has created this new configuration, do a build with this new configuration. Verify that the output window says 1>Building for platform "windows", architecture "x86_64", target "editor".

/cc @anvilfolk who reported this on rocketchat (https://chat.godotengine.org/channel/buildsystem?msg=ZMZ3tjFBsDTsNAC8K)
/cc @akien-mga @mhilbrunner @bruvzg

Users can add additional VS project configurations with their own
custom settings, but to support this workflow, we can't rely directly
on $(Platform) and $(Configuration), because VS needs those to be
both unique Configuration|Platform combos, and we need to allow for
different combos of Configuration|Platform to point to the same
scons build configuration.

GodotPlatform and GodotConfiguration properties lets us decouple from
the magic VS properties that we don't control, so users can add
however many Platform|Configuration combos they want and still
point to a specific GodotPlatform|GodotConfiguration build config.
@shana shana requested a review from a team as a code owner February 12, 2024 16:20
@AThousandShips AThousandShips added this to the 4.x milestone Feb 12, 2024
@aaronfranke aaronfranke changed the title VS: Fix user workflows with custom user VS configurations Visual Studio: Fix user workflows with custom user VS configurations Feb 12, 2024
@akien-mga akien-mga modified the milestones: 4.x, 4.3 Feb 13, 2024
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Didn't test.

@akien-mga akien-mga merged commit 2db4dd4 into godotengine:master Feb 13, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants