Files
aevolution/cmake/EngineeringUi.cmake
T
dingoandClaude Opus 5.5 897055883a Add M9.8c launcher, legend, labelled inspector and click selection
Toolkit-independent launcher, selection, label and outcome-log models with
bounded inputs and fixed error text; Dear ImGui overlay in the native adapter
with toolkit-first event routing and capture; engineering panels for fixture vs
dev region, legend, inspector, session outcomes, notices and dialog. Additive
SessionClient::unreachable_attempts() bounds unreachable connects. Docs, CI
targets and validation evidence updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 10:09:11 -04:00

24 lines
1.3 KiB
CMake

# Scoped toolkit target. No toolkit types leave the private native client boundary.
include_guard(GLOBAL)
include("${PROJECT_SOURCE_DIR}/tools/imgui-pin.cmake")
set(imgui_source "${PROJECT_SOURCE_DIR}/build/external/imgui/imgui-${EVO_IMGUI_VERSION}")
if(NOT EXISTS "${imgui_source}/evo-verified.sha256")
message(FATAL_ERROR "Prepare Dear ImGui explicitly: cmake -P tools/prepare-imgui.cmake")
endif()
file(STRINGS "${imgui_source}/evo-verified.sha256" verified_imgui)
if(NOT verified_imgui STREQUAL EVO_IMGUI_SHA256)
message(FATAL_ERROR "Prepared Dear ImGui does not match the reviewed source pin")
endif()
add_library(evo_imgui STATIC
"${imgui_source}/imgui.cpp" "${imgui_source}/imgui_draw.cpp"
"${imgui_source}/imgui_tables.cpp" "${imgui_source}/imgui_widgets.cpp"
"${imgui_source}/backends/imgui_impl_sdl3.cpp"
"${imgui_source}/backends/imgui_impl_sdlrenderer3.cpp")
target_include_directories(evo_imgui SYSTEM PUBLIC "${imgui_source}" "${imgui_source}/backends")
target_link_libraries(evo_imgui PRIVATE SDL3::SDL3)
# Third-party source does not inherit owned warnings-as-errors/static analysis.
# Instrument it during sanitizer probes, so toolkit lifecycle is checked as well.
if(EVO_SANITIZER STREQUAL "address" AND NOT MSVC)
target_compile_options(evo_imgui PRIVATE -fsanitize=address,undefined -fno-omit-frame-pointer)
endif()