diff options
author | Jan Holesovsky <kendy@collabora.com> | 2019-02-15 16:19:46 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2019-02-15 16:53:35 +0100 |
commit | a98d08fbb3f4b5e9729a117222ca94a5c241a335 (patch) | |
tree | 88e3279fc1e2345cade8393333a5c939610196e5 /android | |
parent | 835bb3db355d1940841a528ab1d130487564dd15 (diff) |
android: Copy the liblo-native-code.so over from core.git.
Change-Id: I457a7fb8a80106c0474ee03229e712a557cf799b
Diffstat (limited to 'android')
-rw-r--r-- | android/app/src/main/cpp/CMakeLists.txt.in | 52 |
1 files changed, 50 insertions, 2 deletions
diff --git a/android/app/src/main/cpp/CMakeLists.txt.in b/android/app/src/main/cpp/CMakeLists.txt.in index 66d61d0ab..03b1ed7d9 100644 --- a/android/app/src/main/cpp/CMakeLists.txt.in +++ b/android/app/src/main/cpp/CMakeLists.txt.in @@ -33,7 +33,54 @@ target_include_directories(androidapp PRIVATE @POCOINCLUDE@ # POCO @LIBPNG_INCLUDES@ # libpng @LOKIT_PATH@ # LibreOfficeKit - ) +) + +add_custom_command(OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}/liblo-native-code.so" + COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/instdir/program/libfreebl3.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/instdir/program/libfreebl3.so + + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/instdir/program/libnspr4.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/instdir/program/libnspr4.so + + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/instdir/program/libnss3.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/instdir/program/libnss3.so + + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/instdir/program/libnssckbi.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/instdir/program/libnssckbi.so + + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/instdir/program/libnssdbm3.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/instdir/program/libnssdbm3.so + + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/instdir/program/libnssutil3.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/instdir/program/libnssutil3.so + + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/instdir/program/libplc4.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/instdir/program/libplc4.so + + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/instdir/program/libplds4.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/instdir/program/libplds4.so + + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/instdir/program/libsmime3.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/instdir/program/libsmime3.so + + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/instdir/program/libsoftokn3.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/instdir/program/libsoftokn3.so + + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/instdir/program/libsqlite3.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/instdir/program/libsqlite3.so + + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/instdir/program/libssl3.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/instdir/program/libssl3.so + + COMMAND ${CMAKE_COMMAND} -E copy @LOBUILDDIR@/android/source/obj/local/armeabi-v7a/liblo-native-code.so "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}" + DEPENDS @LOBUILDDIR@/android/source/obj/local/armeabi-v7a/liblo-native-code.so + + COMMENT "Copied liblo-native-code.so and its dependencies to the tree." +) + + +add_custom_target(copy_native_code DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}/liblo-native-code.so") target_link_libraries(androidapp android @@ -46,4 +93,5 @@ target_link_libraries(androidapp @POCOLIB@/libPocoXML@POCODEBUG@.a @POCOLIB@/libPocoJSON@POCODEBUG@.a @POCOLIB@/libPocoFoundation@POCODEBUG@.a - ) + "${CMAKE_CURRENT_SOURCE_DIR}/lib/${ANDROID_ABI}/liblo-native-code.so" +) |