Add Support for Android Bearer Jar

This is required to package an apk which depends on QtDelcarative.

Change-Id: I1f6bdeb984f08d73f010fb4210242e5c99f1969f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
Leander Beernaert 2019-08-26 15:01:37 +02:00
parent 060784c981
commit ff7101d6c8
2 changed files with 20 additions and 2 deletions

View File

@ -1,5 +1,4 @@
# Generated from android.pro.
add_subdirectory(src)
# TODO:
# add_subdirectory(jar)
add_subdirectory(jar)

View File

@ -0,0 +1,19 @@
# special case begin
# This is a manually edited file
set(path_prefix ${CMAKE_CURRENT_SOURCE_DIR}/src/org/qtproject/qt5/android/bearer)
set(java_sources
${path_prefix}/QtNetworkReceiver.java
)
add_jar(QtAndroidBearer
INCLUDE_JARS ${QT_ANDROID_JAR}
SOURCES ${java_sources}
)
install_jar(QtAndroidBearer
DESTINATION jar
COMPONENT Devel)
# special case end