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. [Moved] qmake - copy files from DESTDIR

[Moved] qmake - copy files from DESTDIR

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 3 Posters 6.3k 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.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #1

    I've searched how to copy any file from one dir to another. It can be done via QMAKE_POST_LINK or target.path... well, I am not conviced about correctness of these solutions.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      QML wizard in Qt Creator uses this:
      @
      folder_01.source = qml/app
      folder_01.target = qml
      DEPLOYMENTFOLDERS = folder_01
      @

      But I am equally unsure about correctness.

      (Z(:^

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Peppy
        wrote on last edited by
        #3

        I saw sometihing like:
        @QMAKE_POST_LINK = quote(cmd copy /y File.exe ../dir/)@
        But it wrote: wrong command (or sth similar).

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          Do you want to copy data from or to your DESTDIR? The topic states from, which looks a bit weird at first sight.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Peppy
            wrote on last edited by
            #5

            Well I've got this situation:
            I've got this structure:
            @
            bin/
            debug/
            all/ # Where the whole application (EXEs/DLLs) would be stored
            Apps/ # Where would be stored EXEs
            FirstApp/
            App1.exe
            SecondApp/
            App2.exe
            Libs/ # Where would be stored DLLs
            FirstLib/
            Lib1.dll
            SecondLib/
            Lib2.dll
            release/
            all/
            @

            Now, all files are generated correctly, but from their locations I need copying that DLLs/EXEs to directory "all"...but how? I've used (DLL)DESTDIR...

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Pretty strange setup, then. Why not set DESTDIR for all those libs and apps to copy into "all" right away, without going into "Libs" and "Apps" first? Or just setup linking for apps so that they do find the libs located in "Libs"?

              Anyway, I'm not an expert on QMake, and it's being said it does not very good for large, complicated projects. Maybe create your own shell script that would handle this copying for you? This way you can be sure it will work as you wish, and in a "correct" manner.

              (Z(:^

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Peppy
                wrote on last edited by
                #7

                Well I've simplified it...Now it works (not as I planned, but better than nothing)...

                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