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

Product {
    Depends { name: "qbsbuildconfig" }
    Depends { name: "Qt.core" }
    property string minimumQtVersion: "5.4.0"
    property bool install: true
    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");
        return res;
    }
    cpp.enableExceptions: true
    condition: QbsFunctions.versionIsAtLeast(Qt.core.version, minimumQtVersion)
}