[QBS] Preserve directory structure during installation
Richard Weickelt
richard at weickelt.de
Thu Aug 7 12:57:21 CEST 2014
Hi,
how can I install a specific file type from a given folder while preserving
the folder hierarchy?
Example:
source-dir
|
+-- subdir1
| +--file1.h
| +--file1.cpp
|
+-- file2.h
+-- file2.cpp
should install to:
install-root
|
+-- include
|
+-- subdir1
| +--file1.h
|
+-- file2.h
The following snippet
Group {
prefix: "**/"
files : "*.h"
qbs.install : true
qbs.installDir : "include"
}
would just gather all .h files and copy them to 'include'. Creating a group
for every folder would be possible, but is cumbersome when it comes to large
folder hierarchies. Is there any generic solution for that?
Richard
More information about the Qbs
mailing list