summaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/android')
-rw-r--r--src/android/CMakeLists.txt13
-rw-r--r--src/android/jar/CMakeLists.txt32
-rw-r--r--src/android/java/CMakeLists.txt11
-rw-r--r--src/android/templates/CMakeLists.txt18
4 files changed, 74 insertions, 0 deletions
diff --git a/src/android/CMakeLists.txt b/src/android/CMakeLists.txt
new file mode 100644
index 0000000000..a61ff1c4b0
--- /dev/null
+++ b/src/android/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from android.pro.
+
+# special case begin
+# Only build jars during Android build and install the templates for the
+# androiddeployqt tool.
+# android
+if (ANDROID)
+ add_subdirectory(jar)
+ add_subdirectory(java)
+ add_subdirectory(templates)
+endif()
+# special case end
+
diff --git a/src/android/jar/CMakeLists.txt b/src/android/jar/CMakeLists.txt
new file mode 100644
index 0000000000..066a67591f
--- /dev/null
+++ b/src/android/jar/CMakeLists.txt
@@ -0,0 +1,32 @@
+# QtAndroid Jar
+
+# special case begin
+set(path_prefix ${CMAKE_CURRENT_SOURCE_DIR}/src/org/qtproject/qt5/android/)
+
+set(java_sources
+ ${path_prefix}/accessibility/QtAccessibilityDelegate.java
+ ${path_prefix}/accessibility/QtNativeAccessibility.java
+ ${path_prefix}/CursorHandle.java
+ ${path_prefix}/EditContextView.java
+ ${path_prefix}/EditPopupMenu.java
+ ${path_prefix}/ExtractStyle.java
+ ${path_prefix}/QtActivityDelegate.java
+ ${path_prefix}/QtEditText.java
+ ${path_prefix}/QtInputConnection.java
+ ${path_prefix}/QtLayout.java
+ ${path_prefix}/QtMessageDialogHelper.java
+ ${path_prefix}/QtNative.java
+ ${path_prefix}/QtNativeLibrariesDir.java
+ ${path_prefix}/QtServiceDelegate.java
+ ${path_prefix}/QtSurface.java
+ ${path_prefix}/QtThread.java)
+
+add_jar(QtAndroid
+ INCLUDE_JARS ${QT_ANDROID_JAR}
+ SOURCES ${java_sources}
+ )
+
+install_jar(QtAndroid
+ DESTINATION jar
+ COMPONENT Devel)
+# special case end
diff --git a/src/android/java/CMakeLists.txt b/src/android/java/CMakeLists.txt
new file mode 100644
index 0000000000..d2c0c3df24
--- /dev/null
+++ b/src/android/java/CMakeLists.txt
@@ -0,0 +1,11 @@
+# Android Java Resource files
+
+# special case begin
+set(resource_directories
+ res
+ src)
+
+qt_install(DIRECTORY ${resource_directories}
+ DESTINATION src/android/java
+ COMPONENT Devel)
+# special case end
diff --git a/src/android/templates/CMakeLists.txt b/src/android/templates/CMakeLists.txt
new file mode 100644
index 0000000000..b330840cc7
--- /dev/null
+++ b/src/android/templates/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Android template files
+
+# special case begin
+set(template_files
+ AndroidManifest.xml
+ build.gradle)
+
+set(template_directories
+ res)
+
+qt_install(FILES ${template_files}
+ DESTINATION src/android/templates
+ COMPONENT Devel)
+
+qt_install(DIRECTORY ${template_directories}
+ DESTINATION src/android/templates
+ COMPONENT Devel)
+# special case end