mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
优化CMakeList, 完善iOS下编译配置 (#2578)
1、调整 json 的源码引入,外部可以引入 json/json.h 使用; 2、针对 iOS 工程调整 cmake 配置,解决 iOS 环境下mk_util.h 找不到问题;同时在 iOS 工程中引入 MediaServer 静态库;
This commit is contained in:
@@ -38,7 +38,13 @@ if(ENABLE_SERVER_LIB)
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_executable(MediaServer ${MediaServer_SRC_LIST})
|
||||
# IOS 不编译可执行程序,只做依赖库
|
||||
if(IOS)
|
||||
add_library(MediaServer STATIC ${MediaServer_SRC_LIST})
|
||||
else()
|
||||
add_executable(MediaServer ${MediaServer_SRC_LIST})
|
||||
endif()
|
||||
|
||||
target_compile_definitions(MediaServer
|
||||
PRIVATE ${COMPILE_DEFINITIONS})
|
||||
target_compile_options(MediaServer
|
||||
|
||||
Reference in New Issue
Block a user