Gate the title HUD test on Vulkan headers (CMAKE-TITLE-HUD-OPTIONAL-VULKAN) #2083

Merged
alexandersato0830 merged 1 commit from upstream-pr/2083 into main 2026-11-29 08:11:14 +00:00
alexandersato0830 commented 2026-11-25 19:48:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by alexandersato0830 on 2026-11-25T19:48:02Z.


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_test links Vulkan::Headers unconditionally. 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

  • Windows 11, Visual Studio 18, MSVC 19.51. Main 5da72d1 failed generation because title_hud_test linked a missing target.
  • A fresh configure without Vulkan headers succeeded with the patch. Built title_window_test and passed title_window CTest.
  • With the project's pinned Vulkan headers, configured, built and passed title_hud CTest.
  • Five CMake discovery tests and five CTest registration tests passed. Verified git diff --check and the source-only check.

GPUs tested: n/a. The HUD test uses a synthetic Win32 window.

AI-assisted: yes.

  • Based on current main.
  • One topic.
  • Source-only change.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5498054575 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2083). Originally posted by [alexandersato0830](https://github.com/alexandersato0830) on 2026-11-25T19:48:02Z. --- Claimed in the coordination issue as: [CMAKE-TITLE-HUD-OPTIONAL-VULKAN](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172696433) ### What and why After #1922, a Windows build with testing enabled failed to configure without Vulkan headers because `title_hud_test` links `Vulkan::Headers` unconditionally. 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 - Windows 11, Visual Studio 18, MSVC 19.51. Main `5da72d1` failed generation because `title_hud_test` linked a missing target. - A fresh configure without Vulkan headers succeeded with the patch. Built `title_window_test` and passed `title_window` CTest. - With the project's pinned Vulkan headers, configured, built and passed `title_hud` CTest. - Five CMake discovery tests and five CTest registration tests passed. Verified `git diff --check` and the source-only check. GPUs tested: n/a. The HUD test uses a synthetic Win32 window. AI-assisted: yes. - [x] Based on current `main`. - [x] One topic. - [x] Source-only change.
zmasi commented 2026-11-28 21:18:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T21:18:49Z.


#2083 | head deac3f6ab1 (merged cleanly with main aa918e5d9f) | cmake -S runtime -B <build> -G "Visual Studio 17 2022" -A x64 (both without Vulkan::Headers and 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) when Vulkan::Headers is 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) without Vulkan::Headers (title_window_test still generated, title_hud_test gated off); with Vulkan::Headers, title_hud_test.exe compiles cleanly (0 C++ warnings) and ctest passes 1/1 (title_hud, 6.87s), plus test_ctest_registration.py 7 ran, OK | Windows 11 (10.0.26200.9974), MSVC 19.44.35228.0, CMake, Python 3.12.10 | AI-assisted: yes

Audited runtime/CMakeLists.txt on Windows 11: moving title_hud_test (whose vulkan_memory_budget.h header includes <vulkan/vulkan.h>) inside if(TARGET Vulkan::Headers) under if(WIN32 AND BUILD_TESTING) fixes Vulkan-less Windows CMake generation while keeping title_hud_test built and registered in CTest whenever Vulkan::Headers is available.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7245926938 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2083#issuecomment-7245926938). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T21:18:49Z. --- #2083 | head deac3f6ab17142321921f31d110924598f1d3a92 (merged cleanly with main aa918e5d9f) | `cmake -S runtime -B <build> -G "Visual Studio 17 2022" -A x64` (both without `Vulkan::Headers` and 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`) when `Vulkan::Headers` is 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`) without `Vulkan::Headers` (`title_window_test` still generated, `title_hud_test` gated off); with `Vulkan::Headers`, `title_hud_test.exe` compiles cleanly (`0` C++ warnings) and `ctest` passes `1/1` (`title_hud`, `6.87s`), plus `test_ctest_registration.py` `7 ran, OK` | Windows 11 (`10.0.26200.9974`), MSVC 19.44.35228.0, CMake, Python 3.12.10 | AI-assisted: yes Audited `runtime/CMakeLists.txt` on Windows 11: moving `title_hud_test` (whose `vulkan_memory_budget.h` header includes `<vulkan/vulkan.h>`) inside `if(TARGET Vulkan::Headers)` under `if(WIN32 AND BUILD_TESTING)` fixes Vulkan-less Windows CMake generation while keeping `title_hud_test` built and registered in CTest whenever `Vulkan::Headers` is available.
TheGeogeo commented 2026-11-29 02:17:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T02:17:04Z.


Tested deac3f6ab merged (no commit) with main 53b77df14. 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.py is clean.

  • Red/green at configure time, in an empty build folder with Vulkan's package search disabled (-DCMAKE_DISABLE_FIND_PACKAGE_Vulkan=TRUE):
    • on main, configure fails with CMake Error at CMakeLists.txt:896 (target_link_libraries): Target "title_hud_test" links to: Vulkan::Headers;
    • with this PR, it succeeds.
  • With Vulkan present, title_hud passes on the merge.
  • LINK: gta6rt.exe links without ws2_32.lib with nothing new over main.
  • The existing tests/test_cmake_vulkan_missing.py passes on main as 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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7249328731 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2083#issuecomment-7249328731). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T02:17:04Z. --- Tested `deac3f6ab` merged (no commit) with `main` `53b77df14`. 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.py` is clean. - Red/green at configure time, in an empty build folder with Vulkan's package search disabled (`-DCMAKE_DISABLE_FIND_PACKAGE_Vulkan=TRUE`): - on `main`, configure fails with `CMake Error at CMakeLists.txt:896 (target_link_libraries): Target "title_hud_test" links to: Vulkan::Headers`; - with this PR, it succeeds. - With Vulkan present, `title_hud` passes on the merge. - LINK: `gta6rt.exe` links without `ws2_32.lib` with nothing new over `main`. - The existing `tests/test_cmake_vulkan_missing.py` passes on `main` as 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).
MoonEyes commented 2026-11-29 08:11:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T08:11:16Z.


Merged after TheGeogeo's red/green check (check: green with this PR merged onto main, red without it; gta6rt.exe still links with unchanged imports when the PR touches the runtime) and a re-check here: no conflict with main 064a3b253, 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 on main or Vulkan).

AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7252941942 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2083#issuecomment-7252941942). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T08:11:16Z. --- Merged after **TheGeogeo**'s red/green check ([check](https://github.com/ProjectLeonida/mandy/pull/2083#issuecomment-7249328731): green with this PR merged onto `main`, red without it; `gta6rt.exe` still links with unchanged imports when the PR touches the runtime) and a re-check here: no conflict with `main` 064a3b253, 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 on `main` or Vulkan). _AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes._
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!2083
No description provided.