forked from qt-creator/qt-creator
Allow compile with bundled QtScript
Qbs has QtScript nowadays bundled as submodule. Use it for qmake builds as well if the used Qt does not have QtScript present. Change-Id: I4eabdbe7ea502953b0213ad39c8b72220f2d966f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -19,6 +19,13 @@ qbsstatic.file = qbs/static.pro
|
|||||||
exists(qbs/qbs.pro) {
|
exists(qbs/qbs.pro) {
|
||||||
isEmpty(QBS_INSTALL_DIR):QBS_INSTALL_DIR = $$(QBS_INSTALL_DIR)
|
isEmpty(QBS_INSTALL_DIR):QBS_INSTALL_DIR = $$(QBS_INSTALL_DIR)
|
||||||
isEmpty(QBS_INSTALL_DIR):SUBDIRS += $$QBS_DIRS
|
isEmpty(QBS_INSTALL_DIR):SUBDIRS += $$QBS_DIRS
|
||||||
|
|
||||||
|
include(qbs/src/lib/bundledlibs.pri)
|
||||||
|
qbs_use_bundled_qtscript {
|
||||||
|
qbsscriptenginelib.file = qbs/src/lib/scriptengine/scriptengine.pro
|
||||||
|
qbscorelib.depends = qbsscriptenginelib
|
||||||
|
SUBDIRS += qbsscriptenginelib
|
||||||
|
}
|
||||||
}
|
}
|
||||||
TR_EXCLUDE = qbs
|
TR_EXCLUDE = qbs
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user