-
-
Notifications
You must be signed in to change notification settings - Fork 617
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
Allow using basedir as a root base directory for files and paths. #2303
base: master
Are you sure you want to change the base?
Conversation
11f976d
to
a053949
Compare
This reads as an extension of existing behavior, rather than breaking the existing behavior. Would this be a correct interpretation of your goals? |
@tritao Just pinging for response here |
Yes, it's an extension of existing behavior. I think it should be safe to merge, my only concern is that |
We are still in API break territory since we haven't hit 5.0. It could be worth some investigation into projects using Premake to see if they're using the undocumented behavior (hopefully no Hyrum's Law yet). |
The more I think about this, I think the better it is to get the @premake/full-team thoughts, since it would be a potentially breaking change for some. |
I don't think I'm really following what I haven't tested anything, but does basedir "a"
files { "**.cpp" }
basedir "b"
files { "**.cpp" } Is this the equivalent of What do the changes in |
Personally, I'm fine with breaking the API here. At a minimum, it's a pretty minor break and we can put it in the release notes. Can you provide a minimum example of what would break? |
What does this PR do?
This adds some improvements to
basedir
so it can be used to specify a base directory forfile
,path
anddirectory
fields.How does this PR change Premake's behavior?
Previously it only could be used for tokens, but now it can also affects paths, so depending on the order it's set, it might provide different results.
Anything else we should know?
Another option would be to go with a new
srcdir
, that also seems like a reasonable approach to take.So feel free to provide some feedback if you have preferences how this should work.
Did you check all the boxes?
closes #XXXX
in comment to auto-close issue when PR is merged)Closes #2129.