chore: consolidate gRPC and protobuf linking into a dedicated support library
- Introduced a new `yaze_grpc_support` library to centralize all gRPC and protobuf usage, addressing Windows linker errors and improving build stability. - Updated CMake configurations across various components to link against the new support library instead of individual protobuf targets, simplifying the linking process. - Removed legacy whole-archive linking logic, ensuring a cleaner and more maintainable build setup. Benefits: - Reduces complexity in CMake files and enhances compatibility across platforms. - Prevents potential linker errors by consolidating gRPC and protobuf dependencies into a single library.
This commit is contained in:
@@ -67,6 +67,9 @@ set(YAZE_WITH_JSON ON)
|
||||
set(YAZE_WITH_GRPC ON)
|
||||
set(Z3ED_AI ON)
|
||||
|
||||
# vcpkg option for desktop users (faster gRPC builds on Windows)
|
||||
option(YAZE_USE_VCPKG_GRPC "Use vcpkg for gRPC on Windows (faster for desktop)" OFF)
|
||||
|
||||
# Minimal build override - disable only the most expensive features
|
||||
if(YAZE_MINIMAL_BUILD)
|
||||
set(YAZE_WITH_GRPC OFF)
|
||||
|
||||
Reference in New Issue
Block a user