aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/install-tree
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@theqtcompany.com>2015-01-26 16:42:42 +0100
committerJoerg Bornemann <joerg.bornemann@theqtcompany.com>2015-02-03 16:38:07 +0000
commitb5069f8076aad4d41ecec589441edb19b7db3493 (patch)
tree907fb631094ba2a6b84a958a41ef46a8064d2053 /tests/auto/blackbox/testdata/install-tree
parent6db67c7a46b99c57c1133d305a92a073be2233fc (diff)
support installation of directory trees
Introduce the string property qbs.installSourceBase that specifies the base directory of the local file that is going to be installed. The default is the directory path of the current file to be installed, relative to the product's source directory. This ensures that the current behavior is not changed. In this example Group { files: ["data/**/*.png"] qbs.install: true qbs.installDir: "content" qbs.installSourceBase: "data" } the directory structure of the PNG files below "data" is preserved and is installed in a "content" subdirectory. Change-Id: Ic0c7166b07da77a8ae7eea98aa345079f74e17e9 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'tests/auto/blackbox/testdata/install-tree')
-rw-r--r--tests/auto/blackbox/testdata/install-tree/data/foo.txt0
-rw-r--r--tests/auto/blackbox/testdata/install-tree/data/subdir1/bar.txt0
-rw-r--r--tests/auto/blackbox/testdata/install-tree/data/subdir2/baz.txt0
-rw-r--r--tests/auto/blackbox/testdata/install-tree/main.cpp1
-rw-r--r--tests/auto/blackbox/testdata/install-tree/project.qbs11
5 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/install-tree/data/foo.txt b/tests/auto/blackbox/testdata/install-tree/data/foo.txt
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/auto/blackbox/testdata/install-tree/data/foo.txt
diff --git a/tests/auto/blackbox/testdata/install-tree/data/subdir1/bar.txt b/tests/auto/blackbox/testdata/install-tree/data/subdir1/bar.txt
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/auto/blackbox/testdata/install-tree/data/subdir1/bar.txt
diff --git a/tests/auto/blackbox/testdata/install-tree/data/subdir2/baz.txt b/tests/auto/blackbox/testdata/install-tree/data/subdir2/baz.txt
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/auto/blackbox/testdata/install-tree/data/subdir2/baz.txt
diff --git a/tests/auto/blackbox/testdata/install-tree/main.cpp b/tests/auto/blackbox/testdata/install-tree/main.cpp
new file mode 100644
index 000000000..76e819701
--- /dev/null
+++ b/tests/auto/blackbox/testdata/install-tree/main.cpp
@@ -0,0 +1 @@
+int main() { return 0; }
diff --git a/tests/auto/blackbox/testdata/install-tree/project.qbs b/tests/auto/blackbox/testdata/install-tree/project.qbs
new file mode 100644
index 000000000..cbd7300d6
--- /dev/null
+++ b/tests/auto/blackbox/testdata/install-tree/project.qbs
@@ -0,0 +1,11 @@
+import qbs
+
+CppApplication {
+ files: ["main.cpp"]
+ Group {
+ files: ["data/**/*.txt"]
+ qbs.install: true
+ qbs.installDir: "content"
+ qbs.installSourceBase: "data"
+ }
+}