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

Product {
    Depends { name: "Qt.core" }
    property string minimumQtVersion: "5.1.0"
    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)
}