From 38f145f977d99b8ccc5c704d8074a933eb324b32 Mon Sep 17 00:00:00 2001 From: scawful Date: Tue, 14 Oct 2025 15:46:06 -0400 Subject: [PATCH] refactor(gfx): reorganize source files in gfx_library.cmake - Moved `app/gfx/resource/arena.cc` to the GFX_CORE_SRC section and added `app/gfx/render/background_buffer.cc` to the GFX_CORE_SRC section. - Removed `app/gfx/render/background_buffer.cc` from the GFX_RENDER_SRC section to streamline dependencies. - Updated target link libraries to ensure correct linking of GFX components. Benefits: - Improves organization of graphics source files, enhancing maintainability and clarity in the build configuration. --- src/app/gfx/gfx_library.cmake | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/app/gfx/gfx_library.cmake b/src/app/gfx/gfx_library.cmake index 70d081d5..9b4bdc71 100644 --- a/src/app/gfx/gfx_library.cmake +++ b/src/app/gfx/gfx_library.cmake @@ -62,13 +62,14 @@ set(GFX_BACKEND_SRC # build_cleaner:auto-maintain set(GFX_RESOURCE_SRC - app/gfx/resource/arena.cc app/gfx/resource/memory_pool.cc ) # build_cleaner:auto-maintain set(GFX_CORE_SRC app/gfx/core/bitmap.cc + app/gfx/render/background_buffer.cc + app/gfx/resource/arena.cc ) # build_cleaner:auto-maintain @@ -82,7 +83,6 @@ set(GFX_UTIL_SRC # build_cleaner:auto-maintain set(GFX_RENDER_SRC app/gfx/render/atlas_renderer.cc - app/gfx/render/background_buffer.cc app/gfx/render/texture_atlas.cc app/gfx/render/tilemap.cc ) @@ -133,12 +133,11 @@ target_link_libraries(yaze_gfx_debug PUBLIC ImGui ) -# Layer 4: Core bitmap (depends on resource, render, debug) +# Layer 4: Core bitmap (depends on render, debug) add_library(yaze_gfx_core STATIC ${GFX_CORE_SRC}) configure_gfx_library(yaze_gfx_core) target_link_libraries(yaze_gfx_core PUBLIC yaze_gfx_types - yaze_gfx_resource yaze_gfx_render yaze_gfx_debug ) @@ -154,10 +153,10 @@ target_link_libraries(yaze_gfx INTERFACE yaze_gfx_types yaze_gfx_backend yaze_gfx_resource - yaze_gfx_core - yaze_gfx_util yaze_gfx_render yaze_gfx_debug + yaze_gfx_core + yaze_gfx_util ) # Conditionally add PNG support