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

QMAKE_BUNDLE_DATA: $$files does not work for macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.4.3
    • Build tools: qmake
    • None
    • macOS

    Description

      I have a shared library and trying to copy it to Frameworks folder.

      $$files macro works fine with QMAKE_BUNDLE_DATA when building for iOS, but does not work when building for macOS (no files are copied to Frameworks folder of the app bundle).

      # Has no effect, nothing is deployed to Frameworks folder
      mylib.files = $$files($$OUT_PWD/$$DESTDIR/libmylib*.dylib)
      # This one works:
      #mylib.files += $$OUT_PWD/$$DESTDIR/libmylib.dylib $$OUT_PWD/$$DESTDIR/libmylib.1.dylib
      mylib.path = Contents/Frameworks
      QMAKE_BUNDLE_DATA += mylib

      Attachments

        1. ios_dylib.zip
          3 kB
          Alexander Dyagilev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes