Enhance ImGui library integration and CMake configuration

- Added backend source files for ImGui, improving functionality with SDL2.
- Updated CMakeLists.txt to conditionally create the yaze_c library as static or shared based on the YAZE_MINIMAL_BUILD flag.
- Streamlined test linking by ensuring yaze_test links against yaze_core instead of yaze_c, enhancing modularity.
This commit is contained in:
scawful
2025-09-26 16:47:47 -04:00
parent 004c9ce585
commit a868b32a48
4 changed files with 31 additions and 23 deletions

View File

@@ -44,9 +44,6 @@ add_executable(
zelda3/object_parser_test.cc
zelda3/object_parser_structs_test.cc
zelda3/test_dungeon_objects.cc
${ASAR_STATIC_SRC}
${IMGUI_SRC}
${YAZE_SRC_FILES}
)
# Add vanilla value extraction utility (only for local development with ROM access)
@@ -121,7 +118,7 @@ target_link_libraries(
# Link core library for essential functionality (BPS, ASAR, etc.)
if(YAZE_BUILD_LIB)
target_link_libraries(yaze_test yaze_c)
target_link_libraries(yaze_test yaze_core)
endif()
# Conditionally link ImGuiTestEngine only when UI tests are enabled