forked from qt-creator/qt-creator
Move qmake specific part to qmake plugin, generalize android support
- Split up androiddeployqt into two steps: One building the apk, and one deploying it to the device. - The build apk step base class AndroidBuildApkStep is ihneritaged by the qmake specific class QmakeAndroidBuildApkStep. - The deployment step is still called androiddeployqt - Move all qmake specific code to the qmakeprojectmanager plguin - Flip the depencency between the android and qmake plugin, now the qmake plugin depends on the android plugin, implementing a interface the android plugin provides. - Note: This removes the debug deployment for now. Change-Id: I1c386640159ed14b637668abde8eb3b9009ab803 Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
committed by
Daniel Teske
parent
4657ac7452
commit
64e5a543a8
@@ -27,6 +27,11 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "androidpackageinstallationfactory.h"
|
||||
#include "androidqmakebuildconfigurationfactory.h"
|
||||
#include "qmakeandroidbuildapkstep.h"
|
||||
#include "qmakeandroidrunfactories.h"
|
||||
#include "qmakeandroidsupport.h"
|
||||
#include "qmakeprojectmanagerplugin.h"
|
||||
|
||||
#include "qmakeprojectmanager.h"
|
||||
@@ -133,6 +138,7 @@ bool QmakeProjectManagerPlugin::initialize(const QStringList &arguments, QString
|
||||
addAutoReleasedObject(new MakeStepFactory);
|
||||
|
||||
addAutoReleasedObject(new QmakeBuildConfigurationFactory);
|
||||
addAutoReleasedObject(new AndroidQmakeBuildConfigurationFactory);
|
||||
addAutoReleasedObject(new DesktopQmakeRunConfigurationFactory);
|
||||
|
||||
if (Utils::HostOsInfo::isMacHost())
|
||||
@@ -152,6 +158,12 @@ bool QmakeProjectManagerPlugin::initialize(const QStringList &arguments, QString
|
||||
hf->addMimeType(QmakeProjectManager::Constants::PROFEATUREFILE_MIMETYPE);
|
||||
addAutoReleasedObject(hf);
|
||||
|
||||
// Android stuff
|
||||
addAutoReleasedObject(new AndroidPackageInstallationFactory);
|
||||
addAutoReleasedObject(new QmakeAndroidBuildApkStepFactory);
|
||||
addAutoReleasedObject(new QmakeAndroidRunConfigurationFactory);
|
||||
addAutoReleasedObject(new QmakeAndroidSupport);
|
||||
|
||||
//menus
|
||||
Core::ActionContainer *mbuild =
|
||||
Core::ActionManager::actionContainer(ProjectExplorer::Constants::M_BUILDPROJECT);
|
||||
|
||||
Reference in New Issue
Block a user