aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata-qt/quick-compiler/quick-compiler.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-12-14 12:43:08 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2017-12-15 09:40:16 +0000
commit193f3f02aae324ba7273e368b528b437da46caac (patch)
tree39c436f0a6ca7c7b3fcfd71febc4dfb941c11ed2 /tests/auto/blackbox/testdata-qt/quick-compiler/quick-compiler.qbs
parent8eaef2035c2af7205e823eb9503721c29b0136a1 (diff)
Fix qtquickcompiler support for QML files in subdirectories
The input to the look-up function is a relative file path, not necessarily just a file name as the code assumed. Task-number: QBS-1261 Change-Id: Iaad4629ea92f327edc3dca7f012d82a00669994f Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata-qt/quick-compiler/quick-compiler.qbs')
-rw-r--r--tests/auto/blackbox/testdata-qt/quick-compiler/quick-compiler.qbs23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata-qt/quick-compiler/quick-compiler.qbs b/tests/auto/blackbox/testdata-qt/quick-compiler/quick-compiler.qbs
new file mode 100644
index 000000000..372ee069b
--- /dev/null
+++ b/tests/auto/blackbox/testdata-qt/quick-compiler/quick-compiler.qbs
@@ -0,0 +1,23 @@
+import qbs
+
+CppApplication {
+ Depends { name: "Qt.quick" }
+
+ cpp.cxxLanguageVersion: "c++11"
+
+ Probe {
+ id: qtQuickCompilerProbe
+ property bool hasCompiler: Qt.quick.compilerAvailable
+ configure: {
+ if (hasCompiler)
+ console.info("compiler available");
+ else
+ console.info("compiler not available");
+ }
+ }
+
+ files: [
+ "main.cpp",
+ "qml.qrc",
+ ]
+}