Stabilize Conan build and remove stale TLS code
Simplifies the active Windows build path around Boost.Beast/OpenSSL, fixes VS2017/clang-cl compatibility, and removes unused BearSSL/WinHTTP remnants so the project builds and tests cleanly. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -3,14 +3,15 @@
|
||||
# 包含: 网络通讯 / AI接口 / 文件读写
|
||||
# ============================================================
|
||||
|
||||
find_package(Boost CONFIG REQUIRED)
|
||||
find_package(OpenSSL CONFIG REQUIRED)
|
||||
find_package(Boost REQUIRED CONFIG)
|
||||
find_package(OpenSSL REQUIRED CONFIG)
|
||||
|
||||
add_library(dstalk SHARED
|
||||
src/api.cpp
|
||||
src/file/file_io.cpp
|
||||
src/net/http_client.cpp
|
||||
src/ai/deepseek_api.cpp
|
||||
src/boost_json.cpp
|
||||
)
|
||||
|
||||
target_include_directories(dstalk
|
||||
@@ -20,15 +21,17 @@ target_include_directories(dstalk
|
||||
|
||||
target_link_libraries(dstalk
|
||||
PRIVATE
|
||||
Boost::boost
|
||||
Boost::system
|
||||
Boost::json
|
||||
OpenSSL::SSL
|
||||
OpenSSL::Crypto
|
||||
boost::boost
|
||||
openssl::openssl
|
||||
)
|
||||
|
||||
# 导出 DLL 符号宏
|
||||
target_compile_definitions(dstalk
|
||||
PRIVATE DSTALK_BUILD_DLL
|
||||
INTERFACE DSTALK_USE_DLL
|
||||
PRIVATE
|
||||
DSTALK_BUILD_DLL
|
||||
BOOST_ALL_NO_LIB
|
||||
BOOST_ERROR_CODE_HEADER_ONLY
|
||||
BOOST_JSON_HEADER_ONLY
|
||||
INTERFACE
|
||||
DSTALK_USE_DLL
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user