Repository navigation
[SCons] Fix custom API file/dir relative paths. - #968
Conversation
akien-mga
left a comment
There was a problem hiding this comment.
If we make gdextension_dir an optional override, I think we may as well refactor further and avoid having two options. Currently we would have:
- One override for interface + JSON
- One override of the override for JSON
Seems overkill.
The CMake would also need to be changed accordingly.
Well, it always was an optional override (otherwise it wouldn't be an option), it just didn't work with relative paths.
I'm fine with it but that would force a folder structure on those who only to override the
I'm not sure what changes for CMake, it seems to have both |
|
Well if we want not to force a folder structure, and since we have only two files to link, maybe we can make the two custom options point to one file each: |
akien-mga
left a comment
There was a problem hiding this comment.
Looks good.
My suggestions could be for a follow-up PR if we decide to change the options, for now this seems fine.
36ecbfb to
6877a0a
Compare
|
Thanks! |
Relative paths in
custom_api_fileandgdextension_dirwould be interpreted as relative to thegodot-cppdirectory instead of the main scons directory as expected.