Commit ecfbbfda authored by DanmeiChen's avatar DanmeiChen

make framework on macos

parent dbee4ba3
......@@ -140,7 +140,7 @@ set(LINPHONE_HEADER_FILES ${ROOT_HEADER_FILES} ${C_API_HEADER_FILES} ${ENUMS_HEA
set(LINPHONE_HEADER_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}" PARENT_SCOPE)
# ------------------------------------------------------------------------------
if (IOS AND ENABLE_SHARED)
if (APPLE AND ENABLE_SHARED)
#cmake 3.10 seems not able to handle subdirectories for PUBLIC_HEADER. My be rework in the futur
set(DEST_ROOT_DIRECTORY "${CMAKE_INSTALL_PREFIX}/Frameworks/linphone.framework/Headers")
else()
......
......@@ -436,8 +436,7 @@ if(ENABLE_SHARED)
$<TARGET_OBJECTS:linphone-coreapi>
)
target_compile_definitions(linphone PRIVATE "-DLINPHONE_EXPORTS")
#TODO: replace by if(APPLE) when we want to make apple framework on linphone-desktop too
if(IOS)
if(APPLE)
if(IOS)
set(MIN_OS ${LINPHONE_IOS_DEPLOYMENT_TARGET})
else()
......
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