aboutsummaryrefslogtreecommitdiffstats
path: root/qbs-resources/imports/QbsProduct.qbs
blob: 1685a9d4e4b7a6cabad4e6880ce6a145d23ae02f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import qbs

Product {
    Depends { name: "qbsbuildconfig" }
    Depends { name: "qbsversion" }
    Depends { name: "Qt.core"; versionAtLeast: minimumQtVersion }
    property string minimumQtVersion: "5.9.0"
    property bool install: true
    property string targetInstallDir
    cpp.defines: {
        var res = ["QT_NO_CAST_FROM_ASCII", "QT_NO_PROCESS_COMBINED_ARGUMENT_START"];
        if (qbs.toolchain.contains("msvc"))
            res.push("_SCL_SECURE_NO_WARNINGS");
        if (qbs.enableDebugCode)
            res.push("QT_STRICT_ITERATORS");
        return res;
    }
    cpp.cxxLanguageVersion: "c++14"
    cpp.enableExceptions: true
    cpp.rpaths: qbsbuildconfig.libRPaths
}