mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
优化CMakeList, 完善iOS下编译配置 (#2578)
1、调整 json 的源码引入,外部可以引入 json/json.h 使用; 2、针对 iOS 工程调整 cmake 配置,解决 iOS 环境下mk_util.h 找不到问题;同时在 iOS 工程中引入 MediaServer 静态库;
This commit is contained in:
@@ -449,11 +449,6 @@ if(ENABLE_API)
|
||||
add_subdirectory(api)
|
||||
endif()
|
||||
|
||||
# IOS 不编译可执行程序
|
||||
if(IOS)
|
||||
return()
|
||||
endif()
|
||||
|
||||
##############################################################################
|
||||
|
||||
if(ENABLE_PLAYER AND ENABLE_FFMPEG)
|
||||
@@ -470,6 +465,11 @@ if(ENABLE_SERVER_LIB)
|
||||
set(MK_LINK_LIBRARIES ${MK_LINK_LIBRARIES} PARENT_SCOPE)
|
||||
endif()
|
||||
|
||||
# IOS 不编译可执行程序
|
||||
if(IOS)
|
||||
return()
|
||||
endif()
|
||||
|
||||
#cpp测试demo程序
|
||||
if (ENABLE_TESTS)
|
||||
add_subdirectory(tests)
|
||||
|
||||
Reference in New Issue
Block a user