summaryrefslogtreecommitdiff
path: root/CMake/Android
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2019-01-17 21:29:24 +0100
committerMatthias Melcher <git@matthiasm.com>2019-01-17 21:29:24 +0100
commit2f0e45e7a7110761080e2540c95a9fc94f162f81 (patch)
tree570eb0784d32ca3f91a5c02aeb15603650999ee0 /CMake/Android
parent111985665d8ae08437d3c9d61c7975ad69c6d099 (diff)
Android CMake: icons, docs, more apps
Diffstat (limited to 'CMake/Android')
-rw-r--r--CMake/Android/CMakeList.txt.in24
-rwxr-xr-x[-rw-r--r--]CMake/Android/hdpi.ic_launcher.pngbin3418 -> 3059 bytes
-rwxr-xr-x[-rw-r--r--]CMake/Android/mdpi.ic_launcher.pngbin2206 -> 1715 bytes
-rwxr-xr-x[-rw-r--r--]CMake/Android/xhdpi.ic_launcher.pngbin4842 -> 4082 bytes
-rwxr-xr-x[-rw-r--r--]CMake/Android/xxhdpi.ic_launcher.pngbin7718 -> 7266 bytes
5 files changed, 13 insertions, 11 deletions
diff --git a/CMake/Android/CMakeList.txt.in b/CMake/Android/CMakeList.txt.in
index aaa992d95..7c7aeb1fa 100644
--- a/CMake/Android/CMakeList.txt.in
+++ b/CMake/Android/CMakeList.txt.in
@@ -13,25 +13,25 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+# Modified to be a template for Android builds in FLTK
+# Copyright 2019 Matthias Melcher and others
+#
cmake_minimum_required(VERSION 3.4.1)
-set(FLTK_DIR ../../../../../../..)
-set(FLTK_IDE_DIR ../../../..)
+set(FLTK_DIR "@ANDROID_FLTK_DIR@")
+set(FLTK_IDE_DIR "../../../..")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-# FIXME: add as a second argument the binary build dir
-# so that the first argument can link directly to FLTK
-# instead of the fltk symlink, which is bad for SVN
-add_subdirectory(${FLTK_DIR}/ "${CMAKE_CURRENT_BINARY_DIR}/lib" EXCLUDE_FROM_ALL)
+# FIXME: this includes the entire CMakeLists again, creating an entire library
+# build in every target
+# TODO: create separate targets for all fltk libraries that can be easily
+# linked by all app targets
+add_subdirectory("${FLTK_DIR}/" "${CMAKE_CURRENT_BINARY_DIR}/lib" EXCLUDE_FROM_ALL)
-# run FLuid commands if any
+# run Fluid build steps for every .fl file, if any
@ANDROID_FLUID_COMMANDS@
-
-# copy source files
-@ANDROID_APP_COPY_SOURCES@
-
# now build app's shared lib
add_library(
test_@ANDROID_APP_NAME@ SHARED
@@ -48,6 +48,8 @@ set(CMAKE_SHARED_LINKER_FLAGS
"${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate")
# add lib dependencies
+# FIXME: apps may depend on additional fltk libraries; thise dependencies
+# must be created in the CREATE_ANDROID_IDE_FOR_TEST macro
target_link_libraries(
test_@ANDROID_APP_NAME@
fltk
diff --git a/CMake/Android/hdpi.ic_launcher.png b/CMake/Android/hdpi.ic_launcher.png
index cde69bccc..1c28eb22b 100644..100755
--- a/CMake/Android/hdpi.ic_launcher.png
+++ b/CMake/Android/hdpi.ic_launcher.png
Binary files differ
diff --git a/CMake/Android/mdpi.ic_launcher.png b/CMake/Android/mdpi.ic_launcher.png
index c133a0cbd..4f12dba6a 100644..100755
--- a/CMake/Android/mdpi.ic_launcher.png
+++ b/CMake/Android/mdpi.ic_launcher.png
Binary files differ
diff --git a/CMake/Android/xhdpi.ic_launcher.png b/CMake/Android/xhdpi.ic_launcher.png
index bfa42f0e7..aa48b8524 100644..100755
--- a/CMake/Android/xhdpi.ic_launcher.png
+++ b/CMake/Android/xhdpi.ic_launcher.png
Binary files differ
diff --git a/CMake/Android/xxhdpi.ic_launcher.png b/CMake/Android/xxhdpi.ic_launcher.png
index 324e72cdd..91aad3864 100644..100755
--- a/CMake/Android/xxhdpi.ic_launcher.png
+++ b/CMake/Android/xxhdpi.ic_launcher.png
Binary files differ