Commit 34e829b2 authored by Benjamin REIS's avatar Benjamin REIS

change static lib to framework in ios build

parent 853250f5
......@@ -97,6 +97,13 @@ if(ENABLE_STATIC)
endif()
if(ENABLE_SHARED)
add_library(ortp SHARED ${ORTP_HEADER_FILES} ${ORTP_SOURCE_FILES_C} ${ORTP_SOURCE_FILES_CXX})
if(APPLE)
set_target_properties(ortp PROPERTIES
FRAMEWORK TRUE
MACOSX_FRAMEWORK_IDENTIFIER com.belledonne-communications.ortp
PUBLIC_HEADER "${ORTP_HEADER_FILES}"
)
endif()
if(ANDROID)
if(ENABLE_ARCH_SUFFIX)
set_target_properties(ortp PROPERTIES OUTPUT_NAME "ortp-${CMAKE_ANDROID_ARCH_ABI}")
......@@ -125,6 +132,7 @@ if(ENABLE_SHARED)
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
FRAMEWORK DESTINATION Frameworks
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment