mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +08:00
支持配置是否编译 api/tests/server
This commit is contained in:
parent
ac320ddc09
commit
e89e39704f
@ -48,6 +48,9 @@ option(ENABLE_FAAC "Enable FAAC" false)
|
|||||||
option(ENABLE_X264 "Enable x264" false)
|
option(ENABLE_X264 "Enable x264" false)
|
||||||
option(ENABLE_MP4 "Enable MP4" true)
|
option(ENABLE_MP4 "Enable MP4" true)
|
||||||
option(ENABLE_RTPPROXY "Enable RTPPROXY" true)
|
option(ENABLE_RTPPROXY "Enable RTPPROXY" true)
|
||||||
|
option(ENABLE_API "Enable C API SDK" true)
|
||||||
|
option(ENABLE_TESTS "Enable Tests" true)
|
||||||
|
option(ENABLE_SERVER "Enable Server" true)
|
||||||
|
|
||||||
set(LINK_LIB_LIST zlmediakit zltoolkit)
|
set(LINK_LIB_LIST zlmediakit zltoolkit)
|
||||||
|
|
||||||
@ -188,11 +191,17 @@ execute_process(COMMAND cp -r ${CMAKE_CURRENT_SOURCE_DIR}/www ${EXECUTABLE_OUTPU
|
|||||||
execute_process(COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/conf/config.ini ${EXECUTABLE_OUTPUT_PATH}/)
|
execute_process(COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/conf/config.ini ${EXECUTABLE_OUTPUT_PATH}/)
|
||||||
|
|
||||||
#添加c库
|
#添加c库
|
||||||
|
if(ENABLE_API)
|
||||||
add_subdirectory(api)
|
add_subdirectory(api)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (NOT IOS)
|
if (NOT IOS)
|
||||||
#测试程序
|
#测试程序
|
||||||
|
if(ENABLE_TESTS)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
endif()
|
||||||
#主服务器
|
#主服务器
|
||||||
|
if(ENABLE_SERVER)
|
||||||
add_subdirectory(server)
|
add_subdirectory(server)
|
||||||
endif()
|
endif()
|
||||||
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user