From f3b6ecf0983dbb85a61faee21f41160df63cc575 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 21 Feb 2017 16:40:25 +0100 Subject: Single instance --- smolbote.qbs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'smolbote.qbs') 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; -- cgit v1.2.1