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

@SHORT_VERSION@ is not replaced in Info.plist file (for Mac bundles)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 4.8.0
    • 4.6.1
    • Build tools: qmake
    • None
    • Mac OS 10.6.2 (Snow Leopard), Intel processor, Qt 4.6.1 Cocoa
    • macOS

    Description

      The qmake doc about QMAKE_INFO_PLIST (at http://doc.trolltech.com/4.6/qmake-variable-reference.html#qmake-info-plist) says that "In the .plist file, you can define some variables [...] which qmake will replace with the actual executable name." It also says that one of these variables is "@SHORT_VERSION@". However, when I include @SHORT_VERSION@, it never gets replace and ends up litteraly in the Info.plist file.

      My .pro file is:

      TARGET = Foo
      VERSION = 0.0.1

      HEADERS = mainwindow.hpp
      SOURCES = main.cpp mainwindow.cpp

      macx {
      ICON = images/icon.icns
      QMAKE_INFO_PLIST = MyInfo.plist
      }

      The resulting Info.plist file contains:

      <key>CFBundleGetInfoString</key>
      <string>@SHORT_VERSION@</string>

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            fxcoudert FX
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes