android: Copy the liblo-native-code.so over from core.git.
Change-Id: I457a7fb8a80106c0474ee03229e712a557cf799b
This commit is contained in:
parent
835bb3db35
commit
a98d08fbb3
1 changed files with 50 additions and 2 deletions
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue