forked from qt-creator/qt-creator
Move some functions out of defaults.js and make them project properties.
The one that is left is the only one that's actually a function taking real input. This saves a number of includes. Change-Id: I77e777bbf6ed7ed4086f9a40de4dc3dd8c91a7af Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
@@ -2,7 +2,6 @@ import qbs.base 1.0
|
||||
import qbs.FileInfo
|
||||
|
||||
import "../QtcPlugin.qbs" as QtcPlugin
|
||||
import "../../../qbs/defaults.js" as Defaults
|
||||
|
||||
QtcPlugin {
|
||||
name: "CppTools"
|
||||
@@ -112,7 +111,7 @@ QtcPlugin {
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
condition: Defaults.testsEnabled(qbs)
|
||||
condition: project.testsEnabled
|
||||
files: [
|
||||
"cppcodegen_test.cpp",
|
||||
"cppcompletion_test.cpp",
|
||||
|
||||
Reference in New Issue
Block a user