aboutsummaryrefslogtreecommitdiff
path: root/smolbote.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'smolbote.qbs')
-rw-r--r--smolbote.qbs12
1 files changed, 9 insertions, 3 deletions
diff --git a/smolbote.qbs b/smolbote.qbs
index 1ef8407..032a93e 100644
--- a/smolbote.qbs
+++ b/smolbote.qbs
@@ -13,10 +13,11 @@ Project {
// feature of Qt which as been marked as deprecated (the exact warnings
// depend on your compiler). Please consult the documentation of the
// deprecated API in order to know how to port your code away from it.
-
- // The code also fails to compile if you use APIs deprecated before Qt 5,7.
property bool deprecatedWarnings: true
+ // The code also fails to compile if you use APIs deprecated before Qt 5.7.
+ property string deprecatedBefore: "0x050700"
+
CppApplication {
id: poi
name: "poi"
@@ -36,10 +37,15 @@ Project {
}
}
+ // Platform-specifics go like this
+// Properties {
+// condition: qbs.targetOS.contains("windows")
+// }
+
cpp.includePaths: ['src']
cpp.defines: {
if(project.deprecatedWarnings)
- defines.push("QT_DEPRECATED_WARNINGS", "QT_DISABLE_DEPRECATED_BEFORE=0x050700");
+ defines.push("QT_DEPRECATED_WARNINGS", "QT_DISABLE_DEPRECATED_BEFORE="+project.deprecatedBefore);
if(git.found)
defines.push('VERSION="'+git.version+'"');
return defines;