add the list of hifi shared libs to apk libs

This commit is contained in:
Stephen Birarda 2014-11-17 14:19:39 -08:00
parent fce239fb70
commit 05cfd05e47

View file

@ -12,7 +12,9 @@ include_directories(${ANDROID_NDK}/sources/android/native_app_glue)
include_glm()
link_hifi_libraries(shared networking)
set(REQUIRED_HIFI_LIBRARIES "shared" "networking")
link_hifi_libraries(${REQUIRED_HIFI_LIBRARIES})
link_shared_dependencies()
target_link_libraries(${TARGET_NAME} log android)
@ -24,6 +26,11 @@ set(ARM_TARGET "armeabi-v7a")
set(TARGET_SHARED_LIBRARIES ${${TARGET_NAME}_LIBRARIES_TO_LINK})
list(APPEND TARGET_SHARED_LIBRARIES "${LIBRARY_OUTPUT_PATH}/lib${TARGET_NAME}.so")
# append each of the hifi shared libraries to our list of libs to link
foreach(HIFI_SHARED_LIBRARY ${REQUIRED_HIFI_LIBRARIES})
list(APPEND TARGET_SHARED_LIBRARIES "${LIBRARY_OUTPUT_PATH}/lib${HIFI_SHARED_LIBRARY}.so")
endforeach()
set(TARGET_JAR_LIBRARIES "${QT_CMAKE_PREFIX_PATH}/../../jar/QtAndroid-bundled.jar")
android_create_apk(