summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-06-03 17:07:29 +0200
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-06-03 15:29:55 +0000
commit8eb7c3efad1e16b677098e97c66daf0eabc672c7 (patch)
treeb7fddd1931b1d77caca1f6af21d349388456cb6c
parent294f8c5274dc292c05ff1703e6ba8ccd17165c55 (diff)
downloadqt-creator-8eb7c3efad1e16b677098e97c66daf0eabc672c7.tar.gz
Adapt to qbs' libexec infrastructure.
Change-Id: Ic2d609e017d201b7b3e0b3bcb08359652428aeaa Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
-rw-r--r--qtcreator.pro7
-rw-r--r--qtcreator.qbs2
-rw-r--r--src/plugins/qbsprojectmanager/qbsprojectparser.cpp9
-rw-r--r--src/plugins/qbsprojectmanager/qbsprojectparser.h1
-rw-r--r--src/src.pro3
-rw-r--r--src/src.qbs4
6 files changed, 26 insertions, 0 deletions
diff --git a/qtcreator.pro b/qtcreator.pro
index f43df3032d..1b8a7523fc 100644
--- a/qtcreator.pro
+++ b/qtcreator.pro
@@ -61,6 +61,13 @@ exists(src/shared/qbs/qbs.pro) {
cache(QBS_APPS_DESTDIR)
QBS_APPS_INSTALL_DIR = $${QTC_PREFIX}/bin
cache(QBS_APPS_INSTALL_DIR)
+ QBS_LIBEXEC_DESTDIR = $${IDE_LIBEXEC_PATH}
+ cache(QBS_LIBEXEC_DESTDIR)
+ QBS_LIBEXEC_INSTALL_DIR = $${QTC_PREFIX}/bin
+ cache(QBS_LIBEXEC_INSTALL_DIR)
+ QBS_RELATIVE_LIBEXEC_PATH = $$relative_path($$QBS_LIBEXEC_DESTDIR, $$QBS_APPS_DESTDIR)
+ isEmpty(QBS_RELATIVE_LIBEXEC_PATH):QBS_RELATIVE_LIBEXEC_PATH = .
+ cache(QBS_RELATIVE_LIBEXEC_PATH)
QBS_RELATIVE_PLUGINS_PATH = $$relative_path($$QBS_PLUGINS_BUILD_DIR, $$QBS_APPS_DESTDIR$$)
cache(QBS_RELATIVE_PLUGINS_PATH)
QBS_RELATIVE_SEARCH_PATH = $$relative_path($$QBS_RESOURCES_BUILD_DIR, $$QBS_APPS_DESTDIR)
diff --git a/qtcreator.qbs b/qtcreator.qbs
index 012720bb11..ed18dbf37d 100644
--- a/qtcreator.qbs
+++ b/qtcreator.qbs
@@ -1,6 +1,7 @@
import qbs 1.0
Project {
+ name: "Qt Creator"
minimumQbsVersion: "1.4"
property bool withAutotests: qbs.buildVariant === "debug"
property string ide_version_major: '3'
@@ -56,6 +57,7 @@ Project {
"QT_NO_CAST_FROM_ASCII"
].concat(testsEnabled ? ["WITH_TESTS"] : [])
qbsSearchPaths: "qbs"
+ property bool enableQbsJavaSupport: false
references: [
"src/src.qbs",
diff --git a/src/plugins/qbsprojectmanager/qbsprojectparser.cpp b/src/plugins/qbsprojectmanager/qbsprojectparser.cpp
index 33de434ef9..484bae73ca 100644
--- a/src/plugins/qbsprojectmanager/qbsprojectparser.cpp
+++ b/src/plugins/qbsprojectmanager/qbsprojectparser.cpp
@@ -100,6 +100,7 @@ void QbsProjectParser::parse(const QVariantMap &config, const Environment &env,
const qbs::Preferences prefs(QbsManager::settings(), profileName);
params.setSearchPaths(prefs.searchPaths(resourcesBaseDirectory()));
params.setPluginPaths(prefs.pluginPaths(pluginsBaseDirectory()));
+ params.setLibexecPath(libExecDirectory());
m_qbsSetupProjectJob = m_project.setupProject(params, QbsManager::logSink(), 0);
@@ -163,6 +164,14 @@ QString QbsProjectParser::resourcesBaseDirectory() const
return Core::ICore::resourcePath() + QLatin1String("/qbs");
}
+QString QbsProjectParser::libExecDirectory() const
+{
+ const QString qbsInstallDir = QLatin1String(QBS_INSTALL_DIR);
+ if (!qbsInstallDir.isEmpty())
+ return qbsInstallDir + QLatin1String("/libexec");
+ return Core::ICore::libexecPath();
+}
+
QString QbsProjectParser::pluginsBaseDirectory() const
{
const QString qbsInstallDir = QLatin1String(QBS_INSTALL_DIR);
diff --git a/src/plugins/qbsprojectmanager/qbsprojectparser.h b/src/plugins/qbsprojectmanager/qbsprojectparser.h
index 6d6319394a..8603205213 100644
--- a/src/plugins/qbsprojectmanager/qbsprojectparser.h
+++ b/src/plugins/qbsprojectmanager/qbsprojectparser.h
@@ -69,6 +69,7 @@ private slots:
private:
QString pluginsBaseDirectory() const;
QString resourcesBaseDirectory() const;
+ QString libExecDirectory() const;
QString m_projectFilePath;
qbs::SetupProjectJob *m_qbsSetupProjectJob;
diff --git a/src/src.pro b/src/src.pro
index ea996ee839..ee25d3dbc5 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -7,6 +7,7 @@ QBS_DIRS = \
qbscorelib \
qbsqtprofilesetup \
qbsapps \
+ qbslibexec \
qbsplugins \
qbsstatic
@@ -15,6 +16,8 @@ qbsqtprofilesetup.subdir = shared/qbs/src/lib/qtprofilesetup
qbsqtprofilesetup.depends = qbscorelib
qbsapps.subdir = shared/qbs/src/app
qbsapps.depends = qbsqtprofilesetup
+qbslibexec.subdir = shared/qbs/src/libexec
+qbslibexec.depends = qbscorelib
qbsplugins.subdir = shared/qbs/src/plugins
qbsstatic.file = shared/qbs/static.pro
diff --git a/src/src.qbs b/src/src.qbs
index 48bf9fc2df..bcb6f2a865 100644
--- a/src/src.qbs
+++ b/src/src.qbs
@@ -33,12 +33,16 @@ Project {
property string resourcesInstallDir: project.ide_data_path + "/qbs"
property string pluginsInstallDir: project.ide_plugin_path
property string appInstallDir: project.ide_bin_path
+ property string libexecInstallDir: project.ide_libexec_path
+ property string relativeLibexecPath: FileInfo.relativePath(appInstallDir, libexecInstallDir)
property string relativePluginsPath: FileInfo.relativePath(appInstallDir, pluginsInstallDir)
property string relativeSearchPath: FileInfo.relativePath(appInstallDir,
resourcesInstallDir)
+ property bool enableJava: project.enableQbsJavaSupport
references: [
qbsBaseDir + "/src/lib/libs.qbs",
+ qbsBaseDir + "/src/libexec/libexec.qbs",
qbsBaseDir + "/src/plugins/plugins.qbs",
qbsBaseDir + "/share/share.qbs",
qbsBaseDir + "/src/app/apps.qbs",