默认自动生成export文件

This commit is contained in:
baiyfcu 2024-07-29 15:05:46 +08:00
parent 5b26d59bba
commit b5d073f7f9
2 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,8 @@ if(ENABLE_CXX_API)
set(ENABLE_MSVC_MT OFF)
message(WARNING "Windows下C++ API SDK只支持md/mdd,ENABLE_MSVC_MT set off")
endif()
else()
add_definitions(-DMediaKit_STATIC)
endif ()
#

View File

@ -59,6 +59,8 @@ set(LINK_LIBRARIES ${MK_LINK_LIBRARIES})
list(REMOVE_ITEM LINK_LIBRARIES ZLMediaKit::MediaKit)
set(COMPILE_DEFINITIONS ${MK_COMPILE_DEFINITIONS})
list(APPEND COMPILE_DEFINITIONS GENERATE_EXPORT)
target_compile_definitions(zlmediakit
PUBLIC ${COMPILE_DEFINITIONS})
target_compile_options(zlmediakit