Details
Description
If one is building a non-bundle product, the following flags should be added to cpp.linkerFlags:
["-sectcreate", "__TEXT", "__info_plist", "path/to/Info.plist"]
The basic workflow would be the same as for bundle products except that output Info.plist file could be placed in, say, <builddir>/.intermediate/<productname>/Info.plist instead of the usual <builddir>/<productname>.app/Contents/Info.plist.
This warrants the use of a new property: (bool)embedInfoPlist.
Documentation for this property would be as follows:
Whether to create a section in the product's executable containing the processed Info.plist file. Does not apply to bundles.
Default: product.type.contains("application")
This mirrors the Xcode setting CREATE_INFOPLIST_SECTION_IN_BINARY.
Attachments
Issue Links
- is required for
-
QTCREATORBUG-11492 Make use of the new qbs property cpp.embedInfoPlist
- Closed