-
Notifications
You must be signed in to change notification settings - Fork 980
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
Use frameworks
in Premake generator
#9371
Use frameworks
in Premake generator
#9371
Conversation
Thank you so much for helping with this!! Looks good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds reasonable
this is unfortunate premake doesn't support framework dirs.
we may still populate conan_framework_dirs{dep}
vars just in case (someone manually specify -F
flags)
it's usually a relative paths to your the root directory of your package (theoretically, might be an absolute path as well, but I don't see good use-case for that at the moment) that's more or less the same for other directories:
I think you see the logic, it's just a convention in our |
@sheepsteak Thank you for your contribution. Please, don't forget to sign Conan's CLA as described here. Otherwise, this PR could not be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed with @SSE4
The Premake's documentation shows the supported dirs here
Premake doesn't list a frameworkdir
, but it also doesn't separate Mac frameworks, instead, it uses links and it's indicated to use absolute path. However, we can consider libdirs
in this case.
The framework feature supported by Premake is related to .NET. I hope people don't get confused about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understood this correctly, this will not work for packaged frameworks, only for system frameworks?
Because the frameworks_dir variable is simply not managed, not considered at all here.
yes. we can do nothing for packaged frameworks, as it's not supported by the build system. |
@uilianries you saying that could in-package frameworks work if the generator provided full paths to the framework somehow? |
@memsharded if a framework is a single file, yes. But considering link example using Cocoa.Framework and based on old Conan behavior (before 1.22), only the framework name should work, since the Well, actually |
Fixes #9367
Changelog: Fix: Use
frameworks
in Premake generator.Docs: conan-io/docs#2210
This PR allows the system frameworks in a package like SDL2 to now be associated with Premake. There is still the issue with how to use
frameworkdirs
. It seems like Premake5 does support aframworkdirs
property itself but it's only used for the Xcode generator. There is a PR (premake/premake-core#1661) to add this to thegmake
generator, however.Although after looking at the
make
generator I'm a bit confused aboutframeworkdirs
. Theconanbuildinfo.txt
hasframework_dirs
but themake
generator (and unit tests) seem to useframework_paths
. Are they the same thing?Note: By default this PR will skip the slower tests and will use a limited set of python versions. Check here how to increase the testing level by writing some tags in the current PR body text.