summaryrefslogtreecommitdiff
path: root/src/plugins/qmakeandroidsupport/qmakeandroidsupportplugin.cpp
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@digia.com>2014-07-23 12:47:51 +0200
committerhjk <hjk121@nokiamail.com>2014-07-24 10:46:18 +0200
commit7c9951226058c277a56d962841362398a93d53ab (patch)
tree0452a1c8b9e11ca6e171dde26f90e2e66be57661 /src/plugins/qmakeandroidsupport/qmakeandroidsupportplugin.cpp
parentd153da9a921ddf6b6ba823a96aa2e77873e12128 (diff)
downloadqt-creator-7c9951226058c277a56d962841362398a93d53ab.tar.gz
Introduce QmakeAndroidSupport plugin
Holds androd + qmake related classes Change-Id: Ib6bbc9c77a2b5f014573a1aa343dff5741abdb26 Reviewed-by: BogDan Vatra <bogdan@kde.org> Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/qmakeandroidsupport/qmakeandroidsupportplugin.cpp')
-rw-r--r--src/plugins/qmakeandroidsupport/qmakeandroidsupportplugin.cpp70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/plugins/qmakeandroidsupport/qmakeandroidsupportplugin.cpp b/src/plugins/qmakeandroidsupport/qmakeandroidsupportplugin.cpp
new file mode 100644
index 0000000000..d0dc3cf4e6
--- /dev/null
+++ b/src/plugins/qmakeandroidsupport/qmakeandroidsupportplugin.cpp
@@ -0,0 +1,70 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of Qt Creator.
+**
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+****************************************************************************/
+
+#include "qmakeandroidsupportplugin.h"
+
+#include "androidpackageinstallationfactory.h"
+#include "androidqmakebuildconfigurationfactory.h"
+#include "qmakeandroidbuildapkstep.h"
+#include "qmakeandroidrunfactories.h"
+#include "qmakeandroidsupport.h"
+
+#include <coreplugin/icore.h>
+
+#include <QtPlugin>
+
+using namespace QmakeAndroidSupport::Internal;
+using namespace QmakeAndroidSupport;
+
+QmakeAndroidSupportPlugin::QmakeAndroidSupportPlugin()
+{
+
+}
+
+QmakeAndroidSupportPlugin::~QmakeAndroidSupportPlugin()
+{
+}
+
+bool QmakeAndroidSupportPlugin::initialize(const QStringList &arguments, QString *errorMessage)
+{
+ Q_UNUSED(arguments)
+ Q_UNUSED(errorMessage)
+ addAutoReleasedObject(new AndroidQmakeBuildConfigurationFactory);
+ addAutoReleasedObject(new AndroidPackageInstallationFactory);
+ addAutoReleasedObject(new QmakeAndroidBuildApkStepFactory);
+ addAutoReleasedObject(new QmakeAndroidRunConfigurationFactory);
+ addAutoReleasedObject(new QmakeAndroidSupport);
+
+ return true;
+}
+
+void QmakeAndroidSupportPlugin::extensionsInitialized()
+{ }
+
+Q_EXPORT_PLUGIN(QmakeAndroidSupportPlugin)