Add infoplist API + Info.plist embedding in Apple OS console apps#2733
Open
noresources wants to merge 8 commits into
Open
Add infoplist API + Info.plist embedding in Apple OS console apps#2733noresources wants to merge 8 commits into
noresources wants to merge 8 commits into
Conversation
Return the linker flags used to embed files in binary.
* Add test for infoplist in xcode4 module * Add test for gcc.getSections()
Jarod42
reviewed
Jul 17, 2026
Jarod42
approved these changes
Jul 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
The
infoplistAPI adds a more explicit way to set the App bundle info in Xcode.gmake, codelite and ninja generators now supports Info.plist by adding Apple toolchain specific flags provided by the new
toolset.getSections()function.The
gcc.getSections()allows other generator to embed the Info.plist in the binary.This will allow command line tools to have bundle informations and security entitlements.
How does this PR change Premake's behavior?
If
infoplist "file"is set in premake script. The automatic detection of .plist in xcode will be ignored.Anything else we should know?
In the future,
toolset.getSections()may be used to embed any file into the binaryby adding a new dedicated API or by handling