Commit 8efbf3f3 authored by DanmeiChen's avatar DanmeiChen

make framework on macos

parent e26fc307
......@@ -428,15 +428,20 @@ if(ENABLE_STATIC)
)
endif()
if(ENABLE_SHARED)
if(NOT IOS)
if(NOT APPLE)
add_library(mswebrtc MODULE ${SOURCE_FILES})
else()
add_library(mswebrtc SHARED ${SOURCE_FILES})
endif()
target_link_libraries(mswebrtc ${LIBS})
set_target_properties(mswebrtc PROPERTIES LINKER_LANGUAGE CXX)
if(IOS)
set(MIN_OS ${LINPHONE_IOS_DEPLOYMENT_TARGET})
if(APPLE)
if(IOS)
set(MIN_OS ${LINPHONE_IOS_DEPLOYMENT_TARGET})
else()
set(MIN_OS ${CMAKE_OSX_DEPLOYMENT_TARGET})
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/build/osx/")
set_target_properties(mswebrtc PROPERTIES
FRAMEWORK TRUE
......
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