build: add ANYPS5_USE_SYSTEM_DEPS option #921
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/921"
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?
Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-06T17:14:01Z.
What
Adds
ANYPS5_USE_SYSTEM_DEPS, OFF by default (implements #400). With it ON,SDL2,freetype,Vulkan-Headers,SPIRV-Headers,glslangandSPIRV-Toolscome from the system instead of the bundled submodules. The default build is unchanged: the option only wraps the existingadd_subdirectorycalls and skips the bundled shader-cache submodule stamps.Design:
cmake/SystemDeps.cmakeresolves each package withfind_package(... CONFIG)(freetypethroughFindFreetype) and re-exposes them under the target names the rest of the build already uses:SDL2-static,freetype,glslang,SPIRV,glslang-standalone,SPIRV-Tools-opt,SPIRV-Tools-static. Because of that, no other CMake file changed except the two submodule stamps incore/shader/recompiler/CMakeLists.txt, which would otherwise depend on the missing bundled paths.find_package(... REQUIRED)), and ifglslangis found without the tools, or the headers are incomplete, the configure fails with a named error. Nothing falls back to the submodule, as you asked.<prefix>/include/glslang/Public/...and<prefix>/include/glslang/SPIRV/GlslangToSpv.h), unlike the bundled single root; the helper adds both.VK_KHR_maintenance8, which the agc driver uses. The helper checks it at configure withcheck_cxx_source_compilesonVkPhysicalDeviceMaintenance8FeaturesKHRand fails with a clear message when the headers are older. Ubuntu 24.04 (headers 1.4.304) fails there; Ubuntu 25.10 (1.4.321) passes.SDL2is linked from the system as a shared library (SDL2::SDL2). The prx libraries are shared objects and distribution static SDL2 is built without PIC, solibSDL2.acannot be linked into them (relocation R_X86_64_PC32 ... can not be used when making a shared object). The default build keeps its own static SDL2. The other five packages link fine from the system.ffmpeg-core(carriesffmpeg.patch),libjpeg-turbo,stb,VulkanMemoryAllocatorandLibAtrac9always stay bundled and still needgit submodule update --init.On your Linux-only vs Windows question: the interface is platform-neutral, but I only exercised the Linux packages, so I would call the Windows side untested rather than claim it. If you prefer to scope it to Linux for now, that is a small change to the helper.
Tested
Ubuntu 25.10 and 24.04 in linux/amd64 containers (the host is arm64; Docker Desktop runs the containers through Rosetta). Packages:
libsdl2-dev libfreetype-dev libvulkan-dev spirv-headers glslang-dev glslang-tools spirv-tools, GCC 15, Ninja, x86-64 as the project requires.-DANYPS5_USE_SYSTEM_DEPS=ON: configure OK andcmake --build . --target libsbuilds.-DANYPS5_USE_SYSTEM_DEPS=ON -DBUILD_TESTING=ON: configure OK;pad_sdl_testsbuilds (the executables keep-static-libgcc -static-libstdc++and link the shared system SDL2).VK_KHR_maintenance8message, at configure time.-DCMAKE_DISABLE_FIND_PACKAGE_glslang=ON, and separatelySDL2andSPIRV-Tools-opt): configure fails with a named error each time.add_subdirectory(3rdparty/SDL2)andadd_subdirectory(3rdparty/freetype).Not tested: Windows, and no PS5 title.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-06T21:16:24Z.
The overlap with #674 is textual, not a dependency. #674 flips
SDL_RENDERtoONfor its ImGui input editor; this PR only guards theadd_subdirectorycalls of the bundled libraries. I moved the guard so it no longer wraps the SDL cache block, so the changed lines do not overlap #674's any more. There is noDepends on.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T09:14:19Z.
Review: CHANGES_REQUESTED
Thanks, the scope matches what was agreed in #400 and the default build is unchanged (merged onto current main, full ctest green here). Three things before it can go in:
core/libs/prx/libSceAgcDriver/CMakeLists.txt:179-180,292,306,378,455-456,480,493-494,510,599-600,660(3rdparty/Vulkan-Headers/include,3rdparty/SPIRV-Headers/include),core/shader/recompiler/CMakeLists.txt:154-155(3rdparty/SPIRV-Headers/include,3rdparty/glslang), and3rdparty/SDL2/includein libSceAudioOut, libSceAudioIn, libSceVideoOut, libScePad, libSceMouse and libSceKeyboard. The submodules are still checked out for ffmpeg-core/libjpeg-turbo/stb/VMA/LibAtrac9, so those dirs exist, and-Iis searched before theinclude_directories(SYSTEM ...)you add. The ON build therefore compiles against the bundled Vulkan/SPIRV/SDL2/glslang headers and links the system libraries. TheVK_KHR_maintenance8check tests headers that are not the ones used, and a system SDL2/glslang older or newer than the submodule is an ABI mismatch nobody sees. That is a partial fallback to the submodules, which #400 asked to avoid. Suggested direction: route those paths through one variable or target per package (e.g. linkVulkan::Headers/SPIRV-Headers::SPIRV-Headers, or setANYPS5_*_INCLUDE_DIRin one place to either the submodule or the system path). Then a build with those submodules deinitialised can prove nothing reads them.core/shader/recompiler/CMakeLists.txt:185-203): with the flag ON, thesubmodulessection of the manifest is empty and there are no stamps, so upgrading the system glslang/SPIRV-Headers/SPIRV-Tools leaves the cache version unchanged and old cached shaders get reused. Adding the found package versions (glslang_VERSION,SPIRV-Headers_VERSION,SPIRV-Tools-opt_VERSION, Vulkan-Headers) toshaderCacheExtrawhen the flag is ON would cover it.cmake/SystemDeps.cmake:1-8,15-16,57-59: CONTRIBUTING allows no code comments except technical debt. The rationale already lives indocs/dev/BUILD.md, so those comments can go.Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-07T15:50:45Z.
Rebased onto current main and applied all three points.
cmake/SystemDeps.cmakenow definesANYPS5_VULKAN_HEADERS_INCLUDE_DIR,ANYPS5_SPIRV_HEADERS_INCLUDE_DIR,ANYPS5_SDL2_INCLUDE_DIRandANYPS5_GLSLANG_INCLUDE_DIRS: the submodule directories by default, and withANYPS5_USE_SYSTEM_DEPS=ONtheINTERFACE_INCLUDE_DIRECTORIESofVulkan::Headers,SPIRV-Headers::SPIRV-Headers,SDL2::SDL2and the glslang public/SPIRV roots, with a fatal error when a package exposes none. Every hard-coded3rdparty/Vulkan-Headers/include,3rdparty/SPIRV-Headers/include,3rdparty/SDL2/includeand3rdparty/glslanginclude dir is replaced by the variables (libSceAgcDriver, libSceVideoOut, libSceAudioOut, libSceAudioIn, libScePad, libSceMouse, libSceKeyboard, shader recompiler), and theinclude_directories(SYSTEM ...)block is gone, so a build with the flag ON compiles against the headers of the package it links. Themaintenance8check tests the routed directory, the same one the targets use. References that stay with the bundled packages (stb,VulkanMemoryAllocator,ffmpeg-core,libjpeg-turbo,LibAtrac9) are unchanged.shaderCacheExtracarriessystem-deps=VulkanHeaders=<ver> SPIRV-Headers=<ver> glslang=<ver>, andSPIRV-Tools-opt=<ver>whenANYPS5_ENABLE_SPIRV_TOOLSis on, taken from the found config packages'*_VERSION,unknownwhen a package does not expose one. Upgrading the system glslang or SPIRV-Headers now invalidates the cached shaders.cmake/SystemDeps.cmake; the rationale is indocs/dev/BUILD.md.Tested (Linux container, gcc 13, cmake 4, x86-64):
ANYPS5_USE_SYSTEM_DEPS=ONconfigure succeeds withVulkan-HeadersandSPIRV-Headersinstalled under /usr/local from this repository's own submodules (real CMake config packages, 1.4.335, themaintenance8check passes) plus systemlibsdl2-dev,libfreetype-dev,glslang-dev/glslang-tools.cmake --build --target agc_driver_wave_uniform_testswith the flag ON completes (298 steps, linkslibSceAgcDriver.prx), andlddof the test binary resolveslibSDL2-2.0.so.0from the system.compile_commands.jsonunder ON has zero3rdparty/Vulkan-Headers,3rdparty/SPIRV-Headers,3rdparty/glslangand3rdparty/SDL2include references (OFF: 413/378/434/590 of 1511 entries; ON: 0 of 1209), andbuild.ninjaunder ON repeats the same.Not tested on Windows (no supported MinGW-w64 toolchain here). AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T20:31:44Z.
Review: CHANGES_REQUESTED
Thanks, all three earlier points are addressed. The default build is unchanged: merged onto current main, full ctest is green here (400/400). Tried
-DANYPS5_USE_SYSTEM_DEPS=ON -DBUILD_TESTING=ONon Arch (sdl2-compat 2.32.72, freetype 2.14.3, glslang/SPIRV-Tools 1.4.357, Vulkan-Headers 1.4.335). It configures, andall+libsbuild, but:ctest is red with the system SDL2 (2 of 400). Arch and Fedora now ship SDL2 as
sdl2-compat(SDL3 underneath):pad_sdlfails: itsSDL_config.hdoesn't defineSDL_JOYSTICK_HIDAPI(core/libs/prx/libSceVideoOut/tests/PadSdl.cpp:6).audio_out_mix_level_pad_spkaborts: the disk driver opens the output aschannels=2, and with the bundled SDL2 the same test passes.Either reject sdl2-compat at configure time with a named error, like the
VK_KHR_maintenance8check, or make both tests pass with it.ANYPS5_ENABLE_SPIRV_TOOLS=ONdoesn't configure on Arch (cmake/SystemDeps.cmake:80). SPIRV-Tools only exportsSPIRV-Tools-staticwhen it is built withSPIRV_TOOLS_BUILD_STATIC=ON(source/CMakeLists.txt); otherwise there is onlySPIRV-Tools(shared on Arch) plusSPIRV-Tools-shared. Falling back toSPIRV-ToolswhenSPIRV-Tools-staticis missing would cover both layouts.docs/dev/BUILD.md:48says the forced SDL/FreeType settings can't be overridden. With ON they don't apply at all: the system SDL2 comes with whatever its distro enabled (e.g. HIDAPI). Worth one sentence next to the new paragraph.FYI, #1048 touches the line next to yours in
core/libs/prx/libSceVideoOut/CMakeLists.txt:30, so whichever PR lands second needs a trivial rebase.Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-08T15:39:14Z.
Second round applied; rebased on current
main.ANYPS5_USE_SYSTEM_DEPS=ONnow runs the same kind of compile check as themaintenance8one: the system SDL2'sSDL_config.hmust defineSDL_JOYSTICK_HIDAPI, and the configure fails with a named error otherwise. sdl2-compat ships no such macro (its headers only carrySDL_JOYSTICK_LINUX), so it is rejected here, which also covers the disk-audio failure. On Ubuntu 24.04 with the distribution SDL2 2.30.0 (itsSDL_config.his an indirection to_real_SDL_config.h, which defines the macro) the ON configure,pad_sdlandaudio_out_mix_level_pad_spkare all green; a stub SDL2 whose header carries no HIDAPI define is rejected with the new error. The default build is unchanged.ANYPS5_ENABLE_SPIRV_TOOLS=ONand the config package providesSPIRV-Tools-optbut notSPIRV-Tools-static, aSPIRV-Tools-staticINTERFACE target is aliased toSPIRV-Tools, so a shared Arch-style build configures. Verified with a stubSPIRV-Tools-optConfig.cmakethat definesSPIRV-Toolsonly; the real Arch environment is yours to confirm.#1048touches the line next to ours inlibSceVideoOut/CMakeLists.txt; whichever lands second rebases, and the conflict is that one line. AI-assisted: yes.Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-08T15:52:54Z.
Conventions job fixed; rebased on current
main.#ifndef/#error/#endiflines were reported. It is a single-line string with\nescapes now, like themaintenance8check.find_packagefor third-party code, but #400 settled thatANYPS5_USE_SYSTEM_DEPS=ONresolves SDL2, freetype, Vulkan-Headers, SPIRV-Headers, glslang and SPIRV-Tools withfind_package/pkg-config. I kept the rule and narrowed it for that opt-in:tools/check_conventions.pyskipscmake/SystemDeps.cmake, the single file that resolves them, andCONTRIBUTING.mdsays so. Everything else is still rejected; say the word if you would rather carry that change another way.3rdparty/Vulkan-Headers/includeincludes that landed while this was open (agc_subgroup_clock_tests,agc_recorder_kept_bytes_tests); they go throughANYPS5_VULKAN_HEADERS_INCLUDE_DIRtoo, and no hard-coded package include is left.Verified:
tools/check_conventions.pyreports no findings for this branch; withANYPS5_USE_SYSTEM_DEPS=ONthe configure passes andpad_sdlandaudio_out_mix_level_pad_spkare green (Ubuntu SDL2 2.30.0), a header withoutSDL_JOYSTICK_HIDAPIis rejected with the named error, and the default configure is unchanged withpad_sdlgreen. AI-assisted: yes.Imported from boykopovar/AnyPS5. Originally posted by StarMrGamer on 2026-10-09T11:43:08Z.
Confirming the point the earlier review left as "the real Arch environment is yours to confirm", on current Arch (CachyOS, x86-64), branch
a70bc5c8, packages as installed today:spirv-tools 1:1.4.363.0-1.1,glslang 1:1.4.363.0-1.1,spirv-headers 1:1.4.363.0-1,vulkan-headers 1:1.4.363.0-1,freetype2 2.14.3-1.1,sdl2-compat 2.32.74-1.1.The configure fails on Arch as designed, with the new message.
cmake -S . -B build -DANYPS5_USE_SYSTEM_DEPS=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON, no submodules initialised:SDL_JOYSTICK_HIDAPIis not defined for Linux:/usr/include/SDL2/SDL_config.honly dispatches toSDL_config_unix.h, which does not define it (the macro appears in the windows/macos/android headers). The probe is right and nothing falls back.Everything after the SDL2 probe passes on Arch. With a stub SDL2 package whose
SDL_config.hdefinesSDL_JOYSTICK_HIDAPI(the same technique used for theSPIRV-Tools-optstub earlier), the rest ofSystemDeps.cmakeruns unchanged and the configure stops only at the uninitialised bundled submodules:No
SystemDeps.cmakeerror and no target-name warning anywhere in that log, soSPIRV-Headers,glslang,Freetype,VulkanHeaders(including theVK_KHR_maintenance8probe) andSPIRV-Tools-optall resolve, andensure_agc_glslang()returns early on its three targets.The glslang layout. Arch exports only namespaced targets —
glslang::glslang,glslang::SPIRV,glslang::glslang-default-resource-limits— with no bareglslang/SPIRVand noglslang-standalone. A probe running exactly the threefind_packagecalls inSystemDeps.cmakereports:The header checks hold (
/usr/include/glslang/Public/ShaderLang.h,/usr/include/glslang/SPIRV/GlslangToSpv.h) andfind_program(NAMES glslang glslangValidator)finds/usr/bin/glslang, so the importedglslang-standalonetarget is real.The SPIRV-Tools fallback is the branch that is actually taken. Arch installs
/usr/lib/cmake/SPIRV-Tools-opt/SPIRV-Tools-optConfig.cmake, and its first line isfind_dependency(SPIRV-Tools), sofind_package(SPIRV-Tools-opt CONFIG REQUIRED)defines the bareSPIRV-Toolstarget as a side effect. Arch defines noSPIRV-Tools-statictarget anywhere (grep -r "add_library(SPIRV-Tools-static" /usr/lib/cmakefinds nothing), soif(NOT TARGET SPIRV-Tools-static)→if(TARGET SPIRV-Tools)is exactly the path taken. Afind_package(SPIRV-Tools-static)would not have worked here: Arch ships no such config even thoughlibSPIRV-Tools-opt.sois installed — keying offSPIRV-Tools-optand itsfind_dependencychain is what makes Arch work.One consequence worth a sentence in BUILD.md: Arch and Fedora ship
sdl2-compatas theirsdl2package, so the HIDAPI probe meansANYPS5_USE_SYSTEM_DEPS=ONcannot be enabled at all on those distributions. The new paragraph says sdl2-compat is rejected but not that it makes the flag Debian/Ubuntu-only in practice. If that is the intended state, saying it explicitly saves the next Arch user the investigation.Not tested: a complete configure and build (the bundled
ffmpeg-core,libjpeg-turbo,stb,VulkanMemoryAllocatorandLibAtrac9submodules are not initialised in this checkout), and Windows.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T13:59:07Z.
Review: COMMENTED
I checked this head against current upstream
main(d70b8998). The existing Linux and Windows Build results are green fora70bc5c8, butgit merge-tree upstream/main upstream/pr-921reports content conflicts inCMakeLists.txt,core/libs/prx/libSceAgcDriver/CMakeLists.txt, andcore/libs/prx/libSceVideoOut/CMakeLists.txt. CONTRIBUTING asks PR branches to stay current withmain; please rebase/resolve those files and rerun the checks on the rebased head. The current green results do not cover that merge result.Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-09T16:35:58Z.
@MarcZX100 Rebased onto current
main(d70b8998) and resolved the three conflicts you listed. Head is nowa236308a;git merge-treeagainstmainis clean and the checks re-ran on it.CMakeLists.txt: keptmain's newAPS5_ENABLE_TIMING_LOGdescription and added theANYPS5_USE_SYSTEM_DEPSoption.libSceAgcDriver/libSceVideoOut: kept thecore/shader/recompilerand Vulkan/SPIRV include dirsmainhad added and routed them through theANYPS5_*_INCLUDE_DIRvariables.mainre-adding hard-coded bundled includes toagc_driver_tests,agc_shader_device_profile_testsandagc_shader_fusion_tests; those now go through the variables too, so the ON build still reads no bundled headers.One note: the Conventions job now runs the trusted base script (
0ab2a04d), so thesystem-dependencyrule flags thefind_package(...)calls incmake/SystemDeps.cmake; the exemption has to land inmainfirst. AI-assisted: yes.Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-09T16:36:00Z.
@StarMrGamer Thanks for the Arch confirmation. The head moved to
a236308a(rebased ontomaind70b8998, conflicts resolved). Yoursdl2-compat/HIDAPI reading stands: the probe rejects it by design, soANYPS5_USE_SYSTEM_DEPS=ONis effectively Debian/Ubuntu-only for now. AI-assisted: yes.Imported from boykopovar/AnyPS5. Originally posted by StarMrGamer on 2026-10-09T16:40:03Z.
@011010 thanks — re-verified on the new head
a236308awith the same method as before.cmake/SystemDeps.cmakeis byte-identical betweena70bc5c8anda236308a(git diff --statover that path is empty), so only the include routing moved:-DANYPS5_USE_SYSTEM_DEPS=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON: still fails atcmake/SystemDeps.cmake:31with the named HIDAPI error.ANYPS5_SDL2_HAS_HIDAPISuccess,Found Freetype: /usr/lib/libfreetype.so (found version "2.14.3"),ANYPS5_VULKAN_HAS_MAINTENANCE8Success, and the configure runs pastSystemDeps.cmaketoCMakeLists.txt:80(the uninitialisedffmpeg-coresubmodule).So glslang, SPIRV-Headers, Vulkan-Headers and the
SPIRV-Tools-static→SPIRV-Toolsalias all still resolve on Arch after your rebase, and thesdl2-compatrejection is unchanged.Nothing further needed from me. For the record on the remaining blocker: I checked and there is no open pull request adding the
check_conventions.pyexemption forcmake/SystemDeps.cmake, so that still has to land inmainbefore this can go green.Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-09T16:49:15Z.
@StarMrGamer thanks for the re-verification. Opened #2373 against
mainwith thecheck_conventions.pyexemption forcmake/SystemDeps.cmake. Once it merges I'll rebase #921 and drop the now-redundant checker copy.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T22:03:39Z.
Review: CHANGES_REQUESTED
Thanks for the update. Before this can go in:
main.CMakeLists.txtconflicts, andmainhas added more hard-coded bundled include dirs since the last rebase (e.g.core/libs/prx/libSceAgcDriver/CMakeLists.txt,agc_buffer_pool_testsand the other3rdparty/Vulkan-Headers/include/3rdparty/SPIRV-Headers/include/3rdparty/SDL2/includeentries). Please rebase and route every remaining one through theANYPS5_*_INCLUDE_DIRvariables (git grep '3rdparty/\(Vulkan-Headers\|SPIRV-Headers\|SDL2/include\|glslang\)' -- '*CMakeLists.txt'should only matchcmake/SystemDeps.cmakeand the default-pathadd_subdirectorycalls).tools/check_conventions.pyexemption is also in #2373. Keep it in only one of the two: once #2373 is merged, rebase and drop the hunk here.ANYPS5_USE_SYSTEM_DEPS=ONconfigure pluslibsbuild to confirm nothing else slipped past.The approach itself matches what was agreed in #400.
Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-09T23:46:30Z.
@adriadam10 pushed the rebase onto current
main(6dadeb38). TheCMakeLists.txtconflict was main's newftver.rcfreetype filter; it now sits inside theif(NOT ANYPS5_USE_SYSTEM_DEPS)guard.Routing: the only remaining hard-coded include was
agc_buffer_pool_tests; the twoset()literals in the recompiler (SPIRV-Headers_SOURCE_DIR,shaderCacheSubmodules) moved intoANYPS5_*_SOURCE_DIRdefaults incmake/SystemDeps.cmake. The grep now matches only the default-pathadd_subdirectorycalls.Reran
-DANYPS5_USE_SYSTEM_DEPS=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ONon Ubuntu 24.04: configure passes (ANYPS5_SDL2_HAS_HIDAPIandANYPS5_VULKAN_HAS_MAINTENANCE8both success) andlibsbuilds 820/820.compile_commands.jsonhas no3rdparty/{Vulkan-Headers,SPIRV-Headers,SDL2/include,glslang}include; it uses/usr/include/{SDL2,glslang,freetype2}.The
tools/check_conventions.pyexemption stays in #2373; I'll drop the hunk here and rebase once it merges. Conventions stays red until then.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T23:54:31Z.
Checked on current
main: the default build (flag OFF) configures and builds, and the full ctest passes (565/565). All the include-routing and rebase points from the earlier reviews are addressed, and the two remaining glslangadd_subdirectorycalls are guarded byif(TARGET glslang).Two things before this can land:
ANYPS5_USE_SYSTEM_DEPSthat resolves six packages viafind_package, plus an exemption ofcmake/SystemDeps.cmakeintools/check_conventions.py. Are you fine with this opt-in and with that wording?tools/check_conventions.pyis changed here and in #2373 (same exemption). Please keep it in only one of them: drop the hunk here, or land #2373 first and rebase.Not verified on our side: the
ANYPS5_USE_SYSTEM_DEPS=ONpath (Arch's sdl2-compat is rejected by design) and Windows; StarMrGamer's Arch run covers the rejection message.Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-09T23:58:14Z.
@adriadam10 thanks. On the duplicate: I'll land #2373 first, then rebase #921 and drop the hunk here, so the exemption lives only in #2373.
On the
ANYPS5_USE_SYSTEM_DEPS=ONpath you flagged as unverified on your side: I ran it in an Ubuntu 24.04 container with system SDL2 2.30.0 (HIDAPI), freetype 2.13.2, glslang 15.1.0, Vulkan-Headers, SPIRV-Headers and SPIRV-Tools. Configure passes (ANYPS5_SDL2_HAS_HIDAPIandANYPS5_VULKAN_HAS_MAINTENANCE8both success) andlibsbuilds 820/820.compile_commands.jsonhas no3rdparty/{Vulkan-Headers,SPIRV-Headers,SDL2/include,glslang}include and uses/usr/include/{SDL2,glslang,freetype2}, so the ON build reads only system headers. Windows is still untested.@boykopovar on the rule change: the opt-in is off by default (the default build never reads the system), the resolution is confined to
cmake/SystemDeps.cmake, and the CONTRIBUTING paragraph documents the exception next to the rule it relaxes. Happy to reword it if you prefer.Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-10T04:45:37Z.
Rebased onto current
main(c72d5ce1) and dropped the duplicatedtools/check_conventions.pyhunk; the exemption now lives only in #2373, as requested.CONTRIBUTING.mdkeeps the wording here because it documents the flag this PR adds. Head isf99c761e.tools/check_conventions.pyis byte-identical tomainagain.git grep '3rdparty/\(Vulkan-Headers\|SPIRV-Headers\|SDL2/include\|glslang\)' -- '*CMakeLists.txt'now matches onlycmake/SystemDeps.cmakeand the default-path glslangadd_subdirectorycalls.tools/check_conventions.py --base main --head feat/cmake-use-system-depsreportsAll conventions checks passed. Without it, the only findings are the 6system-dependencyones incmake/SystemDeps.cmake, nothing else. So Conventions stays red here until #2373 lands inmain.The
ANYPS5_USE_SYSTEM_DEPS=ONconfigure +libsbuild was not re-run after this rebase (it only replayed already-reviewed commits ontomain); Windows is still untested.Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-10T10:05:42Z.
Additional platform validation on standalone PR head
f99c761e50ec79908591cf8aca988d1a9518d6b4:Windows: passed — Windows 11, supported WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja.
Release /
BUILD_TESTING=ON: built the selected test targets; 1 CTest cases, 0 failures, 0 CTest skips.Tests:
pad_sdl.Reproduce after building the test targets:
ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^pad_sdl$".Default bundled-dependency mode passed.
ANYPS5_USE_SYSTEM_DEPS=ONalso passed with separately installed real packages built from the pinned dependency sources: 4/4 tests (pad_sdl,audio_out_mix_level_pad_spk,agc_shader_device_profile,agc_driver_graphics), zero skips. Checked project compile commands use installed dependency headers. Missing SDL2 is rejected cleanly at configure time.Integration limitation: a local merge against main
948a526c2has source conflicts; these results validate the standalone PR head, not a resolved merge.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:26:52Z.
Review: APPROVED
Rebased onto current
main(it conflicted indocs/dev/BUILD.mdandlibSceAgcDriver/CMakeLists.txt) and added one commit:3rdparty/Vulkan-Headers/includeentries thatmainadded to AgcDriver tests since the last rebase throughANYPS5_VULKAN_HEADERS_INCLUDE_DIR.Checked on the rebased head: default build (flag OFF) configures, builds, full ctest passes (795/795);
git grepfor hard-coded bundled include dirs only matchescmake/SystemDeps.cmakeand the default-path glslangadd_subdirectorycalls. TheANYPS5_USE_SYSTEM_DEPS=ONpath relies on the Ubuntu 24.04 and Windows runs above (this host's SDL2 is sdl2-compat, which the check rejects by design).The
conventionsjob is red only because the exemption lives in #2373; merging after it.