make the android => qbs dependency optional

as qbs itself is optional

Change-Id: I1ff2d2f785ca206b379b305e783b9914081712b4
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
Oswald Buddenhagen
2013-08-21 13:28:03 +02:00
committed by Christian Kandeler
parent 95c943a8d6
commit 417b80c544
4 changed files with 38 additions and 10 deletions

View File

@@ -40,8 +40,7 @@ HEADERS += \
androidmanifesteditorfactory.h \ androidmanifesteditorfactory.h \
androidmanifesteditor.h \ androidmanifesteditor.h \
androidmanifesteditorwidget.h \ androidmanifesteditorwidget.h \
androidmanifestdocument.h \ androidmanifestdocument.h
androidqbspropertyprovider.h
SOURCES += \ SOURCES += \
androidconfigurations.cpp \ androidconfigurations.cpp \
@@ -76,8 +75,7 @@ SOURCES += \
androidmanifesteditorfactory.cpp \ androidmanifesteditorfactory.cpp \
androidmanifesteditor.cpp \ androidmanifesteditor.cpp \
androidmanifesteditorwidget.cpp \ androidmanifesteditorwidget.cpp \
androidmanifestdocument.cpp \ androidmanifestdocument.cpp
androidqbspropertyprovider.cpp
FORMS += \ FORMS += \
androidsettingswidget.ui \ androidsettingswidget.ui \
@@ -86,5 +84,13 @@ FORMS += \
addnewavddialog.ui \ addnewavddialog.ui \
androidcreatekeystorecertificate.ui androidcreatekeystorecertificate.ui
exists(../../shared/qbs/qbs.pro) {
HEADERS += \
androidqbspropertyprovider.h
SOURCES += \
androidqbspropertyprovider.cpp
DEFINES += HAVE_QBS
}
RESOURCES = android.qrc RESOURCES = android.qrc
DEFINES += ANDROID_LIBRARY DEFINES += ANDROID_LIBRARY

View File

@@ -8,7 +8,10 @@ QtcPlugin {
Depends { name: "Core" } Depends { name: "Core" }
Depends { name: "ProjectExplorer" } Depends { name: "ProjectExplorer" }
Depends { name: "Qt4ProjectManager" } Depends { name: "Qt4ProjectManager" }
Depends { name: "QbsProjectManager" } Depends {
name: "QbsProjectManager"
condition: project.buildQbsProjectManager
}
Depends { name: "Debugger" } Depends { name: "Debugger" }
Depends { name: "QmlDebug" } Depends { name: "QmlDebug" }
Depends { name: "QtSupport" } Depends { name: "QtSupport" }
@@ -21,6 +24,11 @@ QtcPlugin {
cpp.includePaths: base.concat("../../shared") cpp.includePaths: base.concat("../../shared")
Properties {
condition: project.buildQbsProjectManager
cpp.defines: base.concat(['HAVE_QBS'])
}
files: [ files: [
"addnewavddialog.ui", "addnewavddialog.ui",
"android.qrc", "android.qrc",
@@ -73,8 +81,6 @@ QtcPlugin {
"androidpackageinstallationstep.h", "androidpackageinstallationstep.h",
"androidplugin.cpp", "androidplugin.cpp",
"androidplugin.h", "androidplugin.h",
"androidqbspropertyprovider.cpp",
"androidqbspropertyprovider.h",
"androidqtversion.cpp", "androidqtversion.cpp",
"androidqtversion.h", "androidqtversion.h",
"androidqtversionfactory.cpp", "androidqtversionfactory.cpp",
@@ -99,4 +105,13 @@ QtcPlugin {
"javaparser.cpp", "javaparser.cpp",
"javaparser.h", "javaparser.h",
] ]
Group {
name: "Qbs Support"
condition: project.buildQbsProjectManager
files: [
"androidqbspropertyprovider.cpp",
"androidqbspropertyprovider.h",
]
}
} }

View File

@@ -6,5 +6,8 @@ QTC_PLUGIN_DEPENDS += \
qt4projectmanager \ qt4projectmanager \
qtsupport \ qtsupport \
texteditor \ texteditor \
analyzerbase \ analyzerbase
qbsprojectmanager
exists(../../shared/qbs/qbs.pro): \
QTC_PLUGIN_DEPENDS += \
qbsprojectmanager

View File

@@ -44,7 +44,9 @@
#include "androiddeployconfiguration.h" #include "androiddeployconfiguration.h"
#include "androidgdbserverkitinformation.h" #include "androidgdbserverkitinformation.h"
#include "androidmanifesteditorfactory.h" #include "androidmanifesteditorfactory.h"
#include "androidqbspropertyprovider.h" #ifdef HAVE_QBS
# include "androidqbspropertyprovider.h"
#endif
#include <coreplugin/mimedatabase.h> #include <coreplugin/mimedatabase.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
@@ -98,7 +100,9 @@ bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessa
connect(ProjectExplorer::DeviceManager::instance(), SIGNAL(devicesLoaded()), connect(ProjectExplorer::DeviceManager::instance(), SIGNAL(devicesLoaded()),
this, SLOT(updateDevice())); this, SLOT(updateDevice()));
#ifdef HAVE_QBS
addAutoReleasedObject(new Internal::AndroidQBSPropertyProvider); addAutoReleasedObject(new Internal::AndroidQBSPropertyProvider);
#endif
return true; return true;
} }