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:
@@ -1,22 +1,3 @@
|
||||
function testsEnabled(qbs)
|
||||
{
|
||||
return qbs.getenv("TEST") || qbs.buildVariant === "debug";
|
||||
}
|
||||
|
||||
function defines(qbs)
|
||||
{
|
||||
var list = [
|
||||
"QT_CREATOR",
|
||||
'IDE_LIBRARY_BASENAME="lib"',
|
||||
"QT_DISABLE_DEPRECATED_BEFORE=0x040900",
|
||||
"QT_NO_CAST_TO_ASCII",
|
||||
"QT_NO_CAST_FROM_ASCII"
|
||||
]
|
||||
if (testsEnabled(qbs))
|
||||
list.push("WITH_TESTS")
|
||||
return list
|
||||
}
|
||||
|
||||
// see PluginSpecPrivate::loadLibrary()
|
||||
function qtLibraryName(qbs, name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user