aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata-qt/cached-qml/cached-qml.qbs
blob: db9dcae0c414bbec6ce73effdd1ef1ebef7535c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import qbs

CppApplication {
    name: "app"
    consoleApplication: true
    Depends { name: "Qt.core" }
    Depends { name: "Qt.quick" }
    Depends { name: "Qt.qml" }
    install: true
    installDir: ""
    qbs.installPrefix: ""
    Qt.qml.generateCacheFiles: true
    Qt.qml.cacheFilesInstallDir: "data"

    files: [
        "main.cpp",
        "MainForm.ui.qml",
        "main.qml",
        "stuff.js"
    ]

    // Install the C++ sources to tell the blackbox test that Qt.qmlcache is not available.
    Group {
        condition: !Qt.qml.cachingEnabled
        fileTagsFilter: ["cpp"]
        qbs.install: true
        qbs.installDir: "data"
    }
}