forked from qt-creator/qt-creator
Enable mechanism to bundle Qt in APK
If the Qt version built against is Qt 5, and the deployment method is "Use libs on device" + "Use local Qt libs", Creator will copy the required files into the app bundle and set the necessary meta-data to make the Java code in the app actually load them from the app bundle. We also make this deployment method the default on Qt 5. Change-Id: Ib7a33e7d1fbd22f76c85c31e1dbc68912a38eda8 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Eike Ziller
parent
8e18adc70f
commit
91d48fe727
@@ -85,7 +85,8 @@ public:
|
||||
static bool setTargetApplication(ProjectExplorer::Target *target, const QString &name);
|
||||
static QString targetApplicationPath(ProjectExplorer::Target *target);
|
||||
|
||||
static bool setUseLocalLibs(ProjectExplorer::Target *target, bool useLocalLibs, int deviceAPILevel);
|
||||
static bool updateDeploymentSettings(ProjectExplorer::Target *target);
|
||||
static bool bundleQt(ProjectExplorer::Target *target);
|
||||
|
||||
static QString targetSDK(ProjectExplorer::Target *target);
|
||||
static bool setTargetSDK(ProjectExplorer::Target *target, const QString &sdk);
|
||||
@@ -103,9 +104,10 @@ public:
|
||||
const QString &name = QString());
|
||||
|
||||
static Utils::FileName localLibsRulesFilePath(ProjectExplorer::Target *target);
|
||||
static QString loadLocalLibs(ProjectExplorer::Target *target, int apiLevel);
|
||||
static QString loadLocalJars(ProjectExplorer::Target *target, int apiLevel);
|
||||
static QString loadLocalJarsInitClasses(ProjectExplorer::Target *target, int apiLevel);
|
||||
static QString loadLocalLibs(ProjectExplorer::Target *target, int apiLevel = -1);
|
||||
static QString loadLocalJars(ProjectExplorer::Target *target, int apiLevel = -1);
|
||||
static QString loadLocalBundledFiles(ProjectExplorer::Target *target, int apiLevel = -1);
|
||||
static QString loadLocalJarsInitClasses(ProjectExplorer::Target *target, int apiLevel = -1);
|
||||
|
||||
class Library
|
||||
{
|
||||
@@ -123,11 +125,17 @@ public:
|
||||
static QStringList qtLibs(ProjectExplorer::Target *target);
|
||||
static bool setQtLibs(ProjectExplorer::Target *target, const QStringList &libs);
|
||||
|
||||
static bool setBundledInLib(ProjectExplorer::Target *target,
|
||||
const QStringList &fileList);
|
||||
static bool setBundledInAssets(ProjectExplorer::Target *target,
|
||||
const QStringList &fileList);
|
||||
|
||||
static QStringList availablePrebundledLibs(ProjectExplorer::Target *target);
|
||||
static QStringList prebundledLibs(ProjectExplorer::Target *target);
|
||||
static bool setPrebundledLibs(ProjectExplorer::Target *target, const QStringList &libs);
|
||||
|
||||
static QString libGnuStl(const QString &arch, const QString &ndkToolChainVersion);
|
||||
static QString libraryPrefix();
|
||||
|
||||
private:
|
||||
static void raiseError(const QString &reason);
|
||||
@@ -143,7 +151,9 @@ private:
|
||||
enum ItemType
|
||||
{
|
||||
Lib,
|
||||
Jar
|
||||
Jar,
|
||||
BundledFile,
|
||||
BundledJar
|
||||
};
|
||||
static QString loadLocal(ProjectExplorer::Target *target, int apiLevel, ItemType item, const QString &attribute=QLatin1String("file"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user