aboutsummaryrefslogtreecommitdiffstats
path: root/qbs-resources/imports/QbsProduct.qbs
blob: 5df694dd8135d081ffd457dfef30c0b910659208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Product {
    Depends { name: "qbsbuildconfig" }
    Depends { name: "qbsversion" }
    Depends { name: "Qt.core"; versionAtLeast: minimumQtVersion }
    property string minimumQtVersion: "5.14.0"
    property bool install: true
    property string targetInstallDir
    cpp.defines: {
        var res = [
                    "QT_NO_CAST_FROM_ASCII",
                    "QT_NO_CAST_FROM_BYTEARRAY",
                    "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++17"
    cpp.enableExceptions: true
    cpp.rpaths: qbsbuildconfig.libRPaths
}