-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
Add SCons variant_dir support #1439
base: master
Are you sure you want to change the base?
Conversation
Thanks! Can you show how to use the functionality added in this PR? |
If you pass For example, the following
Because of the The generated binding header files depend on both the Here's the output from the second run of that build on my machine.
|
e60fdc1
to
d6edb72
Compare
Ah, ok, thanks! That sounds really cool :-) @Faless Do you have any concerns with these changes? |
Indeed this seems pretty nice, I've been investigating this on the godot side a couple of times, it's nice to have it at least in godot-cpp. The only note I have is about the warning with the provided example:
I wonder if the default Not sure why CI tests are failing... |
I couldn't decide whether to touch that, well eventually I decided not to. Usually you only invoke To keep from potentially breaking things I only changed where |
...the CI tests are failing with the same error on this other recent PR too: https://github.com/godotengine/godot-cpp/actions/runs/8852986336/job/24312834460?pr=1450 For the tiniest of bifurcation, the checks were successful against this PR when the base was b7661a60a4788cc7d5ce690cf8a5815b0aab511, but it looks like there's way more recent PRs than that that they were passing against. |
Try rebasing on |
Adds support for using SCons's variant_dir feature to specify the build path for where to build a variant of the the library. Correct paths in SConstruct and godotcpp tool for the following, even when the current directory is not the root of the repository: - the binding_generator python module - godotcpp tools - source code and includes - generated source code
d6edb72
to
5b47e4d
Compare
Thanks! Unfortunately, it looks like this needs another rebase to address conflicts in |
Adds support for using SCons's variant_dir feature to specify the build path for where to build a variant of the the library.
Correct paths in SConstruct and godotcpp tool for the following, even when the current directory is not the root of the repository: