Commit 10158364 authored by Michal Policht's avatar Michal Policht

Add build condition to Extension and Tool items.

parent 20be18db
import qbs
Project {
property bool buildTests: false
property bool buildExamples: true
property bool buildExtensions: true
property bool buildTests: false
property bool buildTools: true
property bool staticExtensions: false
qbsSearchPaths: ["qbs"]
......
......@@ -10,6 +10,8 @@ CommonProduct {
targetName: name
condition: project.buildExtensions
baseName: isNaN(name.substr(name.lastIndexOf(".", name.length - 1) + 1)) ? name : name.substring(0, name.lastIndexOf(".", name.length - 1))
major: isNaN(name.substr(name.lastIndexOf(".", name.length - 1) + 1)) ? 1 : Number(name.substr(name.lastIndexOf(".", name.length - 1) + 1))
......
......@@ -9,6 +9,8 @@ CommonProduct {
targetName: qbs.buildVariant.contains("debug") ? name + "_debug" : name
condition: project.buildTools
baseName: name
cpp.includePaths: [cutehmi.dirs.externalIncludeDir]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment