A
A
Alexey2015-02-25 18:15:36
Qt
Alexey, 2015-02-25 18:15:36

How to install files recursively while maintaining the directory structure?

Hello.
There is a Qt project in which there are a number of html, js and css files with their own directory structure. I would like to copy them to the directory with the executable file along with the directory structure at the installation stage. The documentation for installing arbitrary files suggests using a construction of the form:

Product {
    ...
    Group {
        name: "web_files"
        files: "path_to_my_folder/**"
        qbs.install: true
        qbs.installDir: "public_html"
    }
    ...
}
However, in this case, the system copies all files from all subdirectories of the path_to_my_folder directory to public_html without saving the structure.
Now for each directory I define a group in which I prescribe the destination directory, but the project grows and it starts to strain. Can you tell me how to copy the directory tree in one fell swoop?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DancingOnWater, 2015-02-27
@MAKAPOH

Try this: https://qt.gitorious.org/qt-labs/qbs/commit/b5069f...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question