Bundle java files with Qt android shared library
Solved
Mobile and Embedded
-
Hi.
I created a library for android, written in Qt.
This library has android specific Java file located at $$PWD/android/src/com/mylibrary/util.java
Can I compile and bundle java files with my library?
My actual problem is that, How can I use that library from another application calling those android functions?pro file contains:
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android DISTFILES += android/src/com/mylibrary/utils.java
Thanks :)
-
Example code:
quickandroid/quickandroid.pri at master · benlau/quickandroid
android { QT += androidextras QA_JAVASRC.path = /src/quickandroid QA_JAVASRC.files += $$PWD/java/quickandroid/SystemDispatcher.java \ $$PWD/java/quickandroid/QuickAndroidActivity.java INSTALLS += QA_JAVASRC }
-
Thank you very much :)