Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. DEPLOYMENTFOLDERS directive in qmake isn't documented
Forum Updated to NodeBB v4.3 + New Features

DEPLOYMENTFOLDERS directive in qmake isn't documented

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 Posters 8.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dhal
    wrote on last edited by
    #1

    There are recent forum posts that require knowledge of how the DEPLOYMENTFOLDERS directive works in a qmake project file, and the answers haven't been confusing and not at all satisfactory:
    "Qt Creator lookin in the wrong place for QML files":http://developer.qt.nokia.com/forums/viewthread/2607/
    "Packaging extra folder and files in Qt for symbian":http://developer.qt.nokia.com/forums/viewthread/2556

    In the online qmake documentation, there is no information about this feature. Is that documented somewhere or is there a gap here?
    http://doc.trolltech.com/4.7/qmake-variable-reference.html

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jraichouni
      wrote on last edited by
      #2

      What also like to find documentation for qmake variables/ coomands like

      • DEPLOYMENTFOLDERS
      • QML_IMPORT_PATH
      • qtcAddDeployment
      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        ZestyMeta
        wrote on last edited by
        #3

        This has a been a source of frustration for me as well. I've been trying to determine whether qmake can copy a single file (xml configuration) from the source directory to the build directory, similar to how it copies the QML directory. The correct solution would be to include it in a resource file, unfortunately the need for the config file is driven by a 3rd party library.

        At least in the case of DEPLOYMENTFOLDERS / qtcAddDeployment, these are specific to Qt Creator, not qmake. qtcAddDeployment is a conditional function, found in <qt-creator-source-dir>/share/qtcreator/templates/shared/deployment.pri , which I'm guessing is included in the project when Qt Creator calls qmake. You can find more on conditional functions at" http://qt-project.org/doc/qt-5.0/qtdoc/qmake-advanced-usage.html". This function loops through the directories in DEPLOYMENTFOLDERS, and adds its files to the DEPLOYMENT variable.

        DEPLOYMENT is a qmake variable, but the documentation is quite terse, mentioning it only works on Windows CE. Seems odd to only enable this functionality for a single platform. I'm hoping I can make use of the DEPLOYMENT variable to solve my problem.

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZestyMeta
          wrote on last edited by
          #4

          Actually sorry, it's even simpler than that. The DEPLOYMENTFOLDERS variable and the qtcAddDeployment function can be found in qtquick2applicationviewer.pri that's added to your project when you create a Qt Quick 2 app in Qt Creator.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved