aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/lexyacc/one-grammar/one-grammar.qbs
blob: 6cd334247626763f7caf289f11d50cd9a7d818b5 (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
30
31
32
33
CppApplication {
    qbsSearchPaths: ".."
    Depends { name: "bisonhelper" }
    Depends { name: "lex_yacc" }
    lex_yacc.outputTag: "cpp"
    lex_yacc.yaccFlags: ["-l"]
    cpp.includePaths: [".", ".."]
    cpp.cxxLanguageVersion: "c++11"
    cpp.minimumMacosVersion: "10.7"
    consoleApplication: true
    Probe {
        id: pathCheck
        property string theDir: {
            if (qbs.targetOS.contains("windows")) {
                if (qbs.toolchain.contains("mingw"))
                    return cpp.toolchainInstallPath;
                if (qbs.toolchain.contains("clang") && qbs.sysroot)
                    return qbs.sysroot + "/bin";
            }
        }
        configure: {
            if (theDir)
                console.info("add to PATH: " + theDir);
            found = true;
        }
    }

    files: [
        "lexer.l",
        "parser.y",
        "types.h",
    ]
}