97fcf3bc98
Based on the Necessitas project by Bogdan Vatra. Contributors to the Qt5 project: BogDan Vatra <bogdan@kde.org> Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com> hjk <hjk121@nokiamail.com> Oswald Buddenhagen <oswald.buddenhagen@digia.com> Paul Olav Tvete <paul.tvete@digia.com> Robin Burchell <robin+qt@viroteck.net> Samuel Rødal <samuel.rodal@digia.com> Yoann Lopes <yoann.lopes@digia.com> The full history of the Qt5 port can be found in refs/old-heads/android, SHA-1 249ca9ca2c7d876b91b31df9434dde47f9065d0d Change-Id: Iff1a7b2dbb707c986f2639e65e39ed8f22430120 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
54 lines
1.9 KiB
Plaintext
54 lines
1.9 KiB
Plaintext
|
|
# W A R N I N G
|
|
# -------------
|
|
#
|
|
# This file is not part of the Qt API. It exists purely as an
|
|
# implementation detail. It may change from version to version
|
|
# without notice, or even be removed.
|
|
#
|
|
# We mean it.
|
|
#
|
|
|
|
# Generates an xml file to match the library in lib/ listing the dependencies
|
|
# of the module on JNI-based libraries etc. Used for deployment of an Android
|
|
# app.
|
|
|
|
ANDROID_DEPENDS_DIR = $$MODULE_QMAKE_OUTDIR/lib/
|
|
DEPENDENCY_FILE = $$ANDROID_DEPENDS_DIR$$TARGET-android-dependencies.xml
|
|
|
|
!build_pass {
|
|
!isEmpty(ANDROID_JAR_DEPENDENCIES) {
|
|
for(JAR_FILE, ANDROID_JAR_DEPENDENCIES) {
|
|
INIT_CLASS = $$section(JAR_FILE, ":", 1, 1)
|
|
!isEmpty(INIT_CLASS): INIT_CLASS = "initClass=\"$$INIT_CLASS\""
|
|
JAR_FILE = $$section(JAR_FILE, ":", 0, 0)
|
|
FILE_CONTENT += "<jar file=\"$$JAR_FILE\" $$INIT_CLASS />"
|
|
}
|
|
}
|
|
|
|
!isEmpty(ANDROID_LIB_DEPENDENCIES) {
|
|
for(LIB_FILE, ANDROID_LIB_DEPENDENCIES) {
|
|
FILE_CONTENT += "<lib file=\"$$LIB_FILE\" />"
|
|
}
|
|
}
|
|
|
|
!isEmpty(ANDROID_LIB_DEPENDENCY_REPLACEMENTS) {
|
|
for(REPLACEMENT, ANDROID_LIB_DEPENDENCY_REPLACEMENTS) {
|
|
REPLACEMENT_FILE = $$section(REPLACEMENT, ":", 0, 0)
|
|
LIB_FILE = $$section(REPLACEMENT, ":", 1, 1)
|
|
FILE_CONTENT += "<lib file=\"$$LIB_FILE\" replaces=\"$$REPLACEMENT_FILE\" />"
|
|
}
|
|
}
|
|
|
|
!isEmpty(FILE_CONTENT) {
|
|
FILE_CONTENT = "<rules><dependencies><lib name=\"$$TARGET\"><depends>" $$FILE_CONTENT "</depends></lib></dependencies></rules>"
|
|
write_file($$DEPENDENCY_FILE, FILE_CONTENT) | error("Aborting.")
|
|
}
|
|
}
|
|
|
|
!isEmpty(ANDROID_JAR_DEPENDENCIES)|!isEmpty(ANDROID_LIB_DEPENDENCIES)|!isEmpty(ANDROID_LIB_DEPENDENCY_REPLACEMENTS) {
|
|
install_dependencies_file.files = $$DEPENDENCY_FILE
|
|
install_dependencies_file.path = $$[QT_INSTALL_LIBS]
|
|
INSTALLS += install_dependencies_file
|
|
}
|