forked from qt-creator/qt-creator
Wizards: Fix CppLibrary wizards
Fix wrong string evaluation of boolean values which made
in turn the generated files partially wrong.
Introduced with cb63706f83
(but wrong also before for
the no-Qt-dependency case).
Change-Id: I404534d4b21d0d1c496635adfcd8a73716ba13d3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
@if '%{QtModule}' === 'none'
|
@if '%{QtModule}' === 'none'
|
||||||
QT -= core
|
CONFIG -= qt
|
||||||
@elsif '%{QtModule}' === 'core'
|
@elsif '%{QtModule}' === 'core'
|
||||||
QT -= gui
|
QT -= gui
|
||||||
@else
|
@else
|
||||||
|
@@ -23,12 +23,12 @@
|
|||||||
{ "key": "PluginInterface", "value": "%{JS: value('BaseClassInfo').PluginInterface }" },
|
{ "key": "PluginInterface", "value": "%{JS: value('BaseClassInfo').PluginInterface }" },
|
||||||
{ "key": "PluginModule", "value": "%{JS: value('BaseClassInfo').PluginModule }" },
|
{ "key": "PluginModule", "value": "%{JS: value('BaseClassInfo').PluginModule }" },
|
||||||
{ "key": "PluginMethods", "value": "%{JS: value('BaseClassInfo').PluginMethods }" },
|
{ "key": "PluginMethods", "value": "%{JS: value('BaseClassInfo').PluginMethods }" },
|
||||||
{ "key": "QtModule", "value": "%{JS: value('IsQtPlugin') ? value('PluginModule') : value('LibraryQtModule')}" },
|
{ "key": "QtModule", "value": "%{JS: value('IsQtPlugin') === 'true' ? value('PluginModule') : value('LibraryQtModule')}" },
|
||||||
{ "key": "QtModuleUpperCase", "value": "%{JS: value('QtModule').charAt(0).toUpperCase() + value('QtModule').slice(1)}" },
|
{ "key": "QtModuleUpperCase", "value": "%{JS: value('QtModule').charAt(0).toUpperCase() + value('QtModule').slice(1)}" },
|
||||||
{ "key": "LibraryDefine", "value": "%{JS: Cpp.headerGuard(value('ProjectName')) + '_LIBRARY'}" },
|
{ "key": "LibraryDefine", "value": "%{JS: Cpp.headerGuard(value('ProjectName')) + '_LIBRARY'}" },
|
||||||
{ "key": "LibraryExport", "value": "%{JS: Cpp.headerGuard(value('ProjectName')) + '_EXPORT'}" },
|
{ "key": "LibraryExport", "value": "%{JS: Cpp.headerGuard(value('ProjectName')) + '_EXPORT'}" },
|
||||||
{ "key": "GlobalHdrFileName", "value": "%{JS: Util.fileName(value('ProjectName') + '_global', Util.preferredSuffix('text/x-c++hdr'))}" },
|
{ "key": "GlobalHdrFileName", "value": "%{JS: Util.fileName(value('ProjectName') + '_global', Util.preferredSuffix('text/x-c++hdr'))}" },
|
||||||
{ "key": "TargetInstallPath", "value": "%{JS: value('IsShared') ? '/usr/lib' : (value('IsQtPlugin') && value('PluginTargetPath') ? '$$[QT_INSTALL_PLUGINS]/' + value('PluginTargetPath') : '')}" },
|
{ "key": "TargetInstallPath", "value": "%{JS: value('IsShared') === 'true' ? '/usr/lib' : (value('IsQtPlugin') && value('PluginTargetPath') ? '$$[QT_INSTALL_PLUGINS]/' + value('PluginTargetPath') : '')}" },
|
||||||
{ "key": "CN", "value": "%{JS: Cpp.className(value('Class'))}" },
|
{ "key": "CN", "value": "%{JS: Cpp.className(value('Class'))}" },
|
||||||
{ "key": "GUARD", "value": "%{JS: Cpp.headerGuard(value('HdrFileName'))}" },
|
{ "key": "GUARD", "value": "%{JS: Cpp.headerGuard(value('HdrFileName'))}" },
|
||||||
{ "key": "GLOBAL_GUARD", "value": "%{JS: Cpp.headerGuard(value('GlobalHdrFileName'))}" }
|
{ "key": "GLOBAL_GUARD", "value": "%{JS: Cpp.headerGuard(value('GlobalHdrFileName'))}" }
|
||||||
|
Reference in New Issue
Block a user