Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-468

Add support for embedding Info.plists into non-bundle executable products

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 1.2.0
    • None
    • General
    • None
    • 90c05134c795391b4af72837462948d67a9507ec

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
              jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes