Gate the title HUD test on Vulkan headers (CMAKE-TITLE-HUD-OPTIONAL-VULKAN) #2083
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2083
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/title-hud-vulkan-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: CMAKE-TITLE-HUD-OPTIONAL-VULKAN
What and why
After #1922, a Windows build with testing enabled failed to configure without Vulkan headers because
title_hud_testlinksVulkan::Headersunconditionally. The HUD includes Vulkan types through the memory probe header. Register and build its test in the existing Vulkan headers block. The independent user32 window test remains available in the headers-free configuration.Tested
5da72d1failed generation becausetitle_hud_testlinked a missing target.title_window_testand passedtitle_windowCTest.title_hudCTest.git diff --checkand the source-only check.GPUs tested: n/a. The HUD test uses a synthetic Win32 window.
AI-assisted: yes.
main.#2083 | head deac3f6ab17142321921f31d110924598f1d3a92 (merged cleanly with main aa918e5d9f) |
cmake -S runtime -B <build> -G "Visual Studio 17 2022" -A x64(both withoutVulkan::Headersand with-DLEONIDA_VULKAN_HEADERS_FETCH=ON) +cmake --build --config Release --target title_hud_test+ctest -C Release -R "^title_hud$"+python -I tests/test_ctest_registration.py| red on main: CMake Generate fails (rc=1) whenVulkan::Headersis absent (CMakeLists.txt:868:Target "title_hud_test" links to: Vulkan::Headers but the target was not found) | green on PR+main: CMake Configure + Generate succeed (rc=0) withoutVulkan::Headers(title_window_teststill generated,title_hud_testgated off); withVulkan::Headers,title_hud_test.execompiles cleanly (0C++ warnings) andctestpasses1/1(title_hud,6.87s), plustest_ctest_registration.py7 ran, OK| Windows 11 (10.0.26200.9974), MSVC 19.44.35228.0, CMake, Python 3.12.10 | AI-assisted: yesAudited
runtime/CMakeLists.txton Windows 11: movingtitle_hud_test(whosevulkan_memory_budget.hheader includes<vulkan/vulkan.h>) insideif(TARGET Vulkan::Headers)underif(WIN32 AND BUILD_TESTING)fixes Vulkan-less Windows CMake generation while keepingtitle_hud_testbuilt and registered in CTest wheneverVulkan::Headersis available.Tested
deac3f6abmerged (no commit) withmain53b77df14. GPUs tested: NVIDIA GeForce RTX 3080, driver 621.40, Windows 11 10.0.26300; MSVC 19.52 (Visual Studio 18), Ninja, RelWithDebInfo; Python 3.12.4.check_no_game_data.pyis clean.-DCMAKE_DISABLE_FIND_PACKAGE_Vulkan=TRUE):main, configure fails withCMake Error at CMakeLists.txt:896 (target_link_libraries): Target "title_hud_test" links to: Vulkan::Headers;title_hudpasses on the merge.gta6rt.exelinks withoutws2_32.libwith nothing new overmain.tests/test_cmake_vulkan_missing.pypasses onmainas well (its configure cases skip here), so nothing covers this case today. The configure above would make a test for it.No blocker from my side.
AI-assisted (Claude Code).
Merged after TheGeogeo's red/green check (check: green with this PR merged onto
main, red without it;gta6rt.exestill links with unchanged imports when the PR touches the runtime) and a re-check here: no conflict withmain064a3b253, same head as checked, not frozen, and the only ctest failures in the Windows/macOS CI jobs are tests this diff does not touch (known onmainor Vulkan).AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.