Android: install java-related files

The jar files are deployed on the device. The files in the java directory
are used by creator when making a new project.

Change-Id: Ie59f40edaa9c10044a1ca9949808ee22e6622ea1
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
Paul Olav Tvete 2013-03-11 12:55:38 +01:00 committed by The Qt Project
parent 08343e41a0
commit 79d4f5b628
3 changed files with 29 additions and 15 deletions

View File

@ -1,15 +1,2 @@
CONFIG += java TEMPLATE = subdirs
TARGET = QtAndroid SUBDIRS = jar java
DESTDIR = $$[QT_INSTALL_PREFIX/get]/jar
PATHPREFIX = $$PWD/jar/src/org/qtproject/qt5/android/
JAVACLASSPATH += $$PWD/jar/src/
JAVASOURCES += \
$$PATHPREFIX/QtActivityDelegate.java \
$$PATHPREFIX/QtEditText.java \
$$PATHPREFIX/QtInputConnection.java \
$$PATHPREFIX/QtLayout.java \
$$PATHPREFIX/QtNative.java \
$$PATHPREFIX/QtNativeLibrariesDir.java \
$$PATHPREFIX/QtSurface.java

19
src/android/jar/jar.pro Normal file
View File

@ -0,0 +1,19 @@
CONFIG += java
TARGET = QtAndroid
DESTDIR = $$[QT_INSTALL_PREFIX/get]/jar
PATHPREFIX = $$PWD/src/org/qtproject/qt5/android/
JAVACLASSPATH += $$PWD/src/
JAVASOURCES += \
$$PATHPREFIX/QtActivityDelegate.java \
$$PATHPREFIX/QtEditText.java \
$$PATHPREFIX/QtInputConnection.java \
$$PATHPREFIX/QtLayout.java \
$$PATHPREFIX/QtNative.java \
$$PATHPREFIX/QtNativeLibrariesDir.java \
$$PATHPREFIX/QtSurface.java
# install
target.path = $$[QT_INSTALL_PREFIX]/jar
INSTALLS += target

View File

@ -0,0 +1,8 @@
javaresources.files = \
$$PWD/AndroidManifest.xml \
$$PWD/res \
$$PWD/src
javaresources.path = $$[QT_INSTALL_PREFIX]/src/android/java
INSTALLS += javaresources