diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-02-21 16:40:25 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-02-21 16:40:25 +0100 |
commit | f3b6ecf0983dbb85a61faee21f41160df63cc575 (patch) | |
tree | 8509bb5a6d820ef6f9023cb0ec7bb7db1e2c2bb8 /smolbote.qbs | |
parent | Moved smolbote.qbs (diff) | |
download | smolbote-f3b6ecf0983dbb85a61faee21f41160df63cc575.tar.xz |
Single instance
Diffstat (limited to 'smolbote.qbs')
-rw-r--r-- | smolbote.qbs | 12 |
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; |