Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24729

Out of source building for App bundles broken (Info.plist and ICON)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.4, 4.8.0
    • Build tools: qmake
    • None

      Out of source building is currently broken when adding a custom Info.list file (and consequently also an icon) on Mac OS X.

      Consider this layout:

      {{

      src/
      |-- app.pro
      |-- Info.plist
      |-- icon.icns
      |-- build/
        |-- app.app (to be created by make)
      

      }}

      Go to build and run qmake ../app.pro.

      The problem lies within qmake, which "fixifies" the Info.plist path from "Info.plist" to "../Info.plist" and then can't find the find the file anymore, as qmake changes the cwd to the .pro file's directory (thus, in this example, src/).

      Add both parameters out_d and in_d to MakefileGenerator::fileFixify as Option::output_dir to prevent qmake from "fixing" the file path to a path relative from the (out of source) build dir to the source dir, so that exists() can actually find the file where ever it is, specified by the user and relative to the source dir.

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

            buddenha Oswald Buddenhagen
            ionic Mihai Moldovan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes