diff options
| author | Matthias Melcher <git@matthiasm.com> | 2019-01-17 21:29:24 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2019-01-17 21:29:24 +0100 |
| commit | 2f0e45e7a7110761080e2540c95a9fc94f162f81 (patch) | |
| tree | 570eb0784d32ca3f91a5c02aeb15603650999ee0 /CMake/Android | |
| parent | 111985665d8ae08437d3c9d61c7975ad69c6d099 (diff) | |
Android CMake: icons, docs, more apps
Diffstat (limited to 'CMake/Android')
| -rw-r--r-- | CMake/Android/CMakeList.txt.in | 24 | ||||
| -rwxr-xr-x[-rw-r--r--] | CMake/Android/hdpi.ic_launcher.png | bin | 3418 -> 3059 bytes | |||
| -rwxr-xr-x[-rw-r--r--] | CMake/Android/mdpi.ic_launcher.png | bin | 2206 -> 1715 bytes | |||
| -rwxr-xr-x[-rw-r--r--] | CMake/Android/xhdpi.ic_launcher.png | bin | 4842 -> 4082 bytes | |||
| -rwxr-xr-x[-rw-r--r--] | CMake/Android/xxhdpi.ic_launcher.png | bin | 7718 -> 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 Binary files differindex cde69bccc..1c28eb22b 100644..100755 --- a/CMake/Android/hdpi.ic_launcher.png +++ b/CMake/Android/hdpi.ic_launcher.png diff --git a/CMake/Android/mdpi.ic_launcher.png b/CMake/Android/mdpi.ic_launcher.png Binary files differindex c133a0cbd..4f12dba6a 100644..100755 --- a/CMake/Android/mdpi.ic_launcher.png +++ b/CMake/Android/mdpi.ic_launcher.png diff --git a/CMake/Android/xhdpi.ic_launcher.png b/CMake/Android/xhdpi.ic_launcher.png Binary files differindex bfa42f0e7..aa48b8524 100644..100755 --- a/CMake/Android/xhdpi.ic_launcher.png +++ b/CMake/Android/xhdpi.ic_launcher.png diff --git a/CMake/Android/xxhdpi.ic_launcher.png b/CMake/Android/xxhdpi.ic_launcher.png Binary files differindex 324e72cdd..91aad3864 100644..100755 --- a/CMake/Android/xxhdpi.ic_launcher.png +++ b/CMake/Android/xxhdpi.ic_launcher.png |
