fix: limit Windows all-in-one DLL exports (#611)

This commit is contained in:
feihongxu0824
2026-07-28 11:51:44 +08:00
committed by GitHub
parent d59d9a48f9
commit e2ea49d4ac
43 changed files with 781 additions and 211 deletions
+9 -1
View File
@@ -30,8 +30,16 @@ if(NOT ANDROID AND AUTO_DETECT_ARCH)
endif()
endif()
set(ZVEC_DB_LIBRARY_OPTIONS)
if(WIN32 AND BUILD_ZVEC_SHARED)
list(APPEND ZVEC_DB_LIBRARY_OPTIONS
OBJECTS
EXPORT_DEF ZVEC_DB_BUILD_SHARED
)
endif()
cc_library(
NAME zvec STATIC STRICT SRCS_NO_GLOB PACKED
NAME zvec STATIC STRICT SRCS_NO_GLOB PACKED ${ZVEC_DB_LIBRARY_OPTIONS}
SRCS ${ALL_DB_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/proto/zvec.pb.cc
INCS . ${CMAKE_CURRENT_BINARY_DIR}
PUBINCS ${PROJECT_ROOT_DIR}/src/include