feat(libSceFreeType): expose native library build information #9792
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9792"
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 santhoshkumar-dev on 2026-10-22T15:17:52Z.
What
Expose
FT_Library_VersionandFT_Get_TrueType_Engine_Typethrough the existing guest-library adapter. They query the native library behind the supplied handle. Optional 32-bit version outputs are copied from native locals in the native write order, including when output pointers alias. A null handle yields version 0.0.0 and engine type NONE.Signatures and behavior follow bundled FreeType 2.13.3 ftobjs.c; names appear in the PS5 3.20 inventory. The version describes the configured native backend. Console ABI/version/build-option equivalence remains unverified and is recorded under Build debt.
Each implemented export is declared once in the canonical public API, included by the implementation and tests. The branch preserves the latest upstream PFR APIs and all merged FreeType features.
The named OT-provider import-resolution helpers also have one declaration each in the shared public API already reachable from the OT umbrella. Export.cpp includes that header. Their existing zero-argument placeholder signatures, explicit NID aliases and throwing behavior are unchanged; this does not establish the console prototypes.
The adapter belongs to physical
libSceFreeType. Same-NID inventory stubs in the distinct physicallibSceFreeTypeOlandlibSceFreeTypeOtproviders remain throwing helpers.Tested
Submitted and tested head
bb70cab04bdf89183bca9d111c6171ce3830ecdd, including upstream main5d52b06ff3de0b2ce640dd296db465295c80e7fa.Windows 11 x64 / WinLibs GCC 15.2.0 r7 and local Ubuntu 24.04.1 x86-64 under WSL2 / GCC 13.3.0 / glibc 2.39: Ninja Release, bundled dependencies,
BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=OFF. On each platform the completelibstarget and selected test executables build, and 69/69 CTests pass, zero skips: the public-header audit, all 64 public-header compilation batches and 4 focused runtime tests. Dependencies use the pinned submodule revisions. The feature, existing base/charmap APIs and packaged-library loader are covered.Final upstream recheck:
801d5b9bc11049e6274daca09d70690bd5b8d0a9merges cleanly, and no files changed by this contribution have changed after the tested base. Results remain pinned to the exact submitted head and its stated base.Conventions, whitespace and all six pairwise merge checks across the four currently open contributions pass. Open/closed/merged history was rechecked; no replacement implementation was found. No title or physical-console execution is claimed.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by santhoshkumar-dev on 2026-10-22T15:18:31Z.
Final local overlap audit on
882c68c973: no confirmed conflicts, duplicate exports, or shared new files. The tool lists eight older branches whose shared CMake file cannot be compared automatically because they already conflict with main (#5021, #6044, #7201, #7275, #7622, #8285, #8650, #9019). File-specific three-way checks put the build-info registration outside their conflict regions. It also merges independently with #9785 and the 27 existing FreeType branches checked during placement review.The final full Windows build and all four focused checks passed. There is no dependency on another contribution PR.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:28:04Z.
Review: DISMISSED
I inspected the two FreeType wrappers, the separate CMake registration and the test’s null-handle, optional-output, aliasing and independent-library coverage. The exact PR head configures and builds
guest_freetype_build_info_testssuccessfully here. CTest could not reach the assertions because loading libkernel aborts at the repository’s documented host CPU gate: this Xeon E5-1620 v2 lacks LZCNT, BMI1, BMI2, MOVBE and AVX2. The PR reports the full Windows build and 4/4 focused tests passing. Hosted checks currently cover eligibility, conventions, intake, labels and report; full product builds were skipped.The branch is eight commits behind current
main(8499ea52e571b0edfc1feecfd3f6b9944012b359). CONTRIBUTING.md requires branches to be based on and kept up to date withmain. Please sync it, resolve any conflicts, and rerun the focused tests after the update.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:55:53Z.
Review: COMMENTED
I rechecked the exact head
882c68c97338b9b84c342ee2136b55846453ffb2against currentmain(11f976b27c16ed91633f00039dba5dfd97dd7cc1). Conventions andgit diff --checkpass, and the merge tree is clean. The reported full Windows build plus 14/14 focused/integration checks are contributor-reported; hosted product jobs are skipped. I did not rerun the FreeType runtime test locally because the VM CPU fails the repository’s required libkernel feature gate. The branch is still based onb7d1d47a5f, 21 commits behind current main. Please rebase and rerun the focused FreeType checks on the updated head before merge; the conflict-prone CMake registration has a clean merge tree here.