From 26a74c96c54f655d74da353769625afb005193bd Mon Sep 17 00:00:00 2001 From: BruebachL <44814898+BruebachL@users.noreply.github.com> Date: Fri, 25 Sep 2026 08:32:54 +0200 Subject: [PATCH] [Oracle] Stop linking the full client network stack into the oracle binary (#7354) Co-authored-by: user.email --- oracle/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/oracle/CMakeLists.txt b/oracle/CMakeLists.txt index a942870b7..d8f30dcad 100644 --- a/oracle/CMakeLists.txt +++ b/oracle/CMakeLists.txt @@ -31,8 +31,6 @@ set(oracle_SOURCES ../cockatrice/src/interface/pixel_map_generator.cpp ../cockatrice/src/interface/theme_config.cpp ../cockatrice/src/interface/theme_manager.cpp - ../cockatrice/src/interface/widgets/quick_settings/settings_button_widget.cpp - ../cockatrice/src/interface/widgets/quick_settings/settings_popup_widget.cpp ${VERSION_STRING_CPP} ) @@ -123,10 +121,14 @@ target_link_libraries( oracle PUBLIC libcockatrice_card PUBLIC libcockatrice_settings - PUBLIC libcockatrice_network + PUBLIC libcockatrice_protocol PUBLIC ${ORACLE_QT_MODULES} ) +# Only user_level.h is needed from the network headers (pulled in transitively +# by pixel_map_generator.h); nothing from the network libraries is linked. +target_include_directories(oracle PRIVATE ${CMAKE_SOURCE_DIR}/libcockatrice_network) + if(ZLIB_FOUND) target_link_libraries(oracle PUBLIC ${ZLIB_LIBRARIES}) endif()