feat(libcairo): build Cairo and pixman from source (#19098) #19141
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19141"
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 BSchneppe on 2026-11-12T21:30:21Z.
What
First part of #19098: libcairo now builds Cairo and pixman from source, and the ten
cairo_matrix_*and sixcairo_region_*exports run on them instead of the hand-written code. Nothing draws yet; surfaces, contexts and paths follow in the next pull request.3rdparty/cairo,3rdparty/pixman), built bycmake/Cairo.cmakeandcmake/Pixman.cmakelikecmake/LibPsl.cmake, with the image backend only. Their licence files are installed verbatim and shipped in release archives.docs/dev/debt/libcairo.md). Sony publishes no pixman, so 0.42.2 was chosen: it was the newest pixman when Cairo 1.18.0 came out.Matrix.cpp,Region.cpp) is in its own files. The other hand-written exports keep Cairo's public names in the same library, so Cairo is compiled with its public functions renamed toaps5_cairo_*, and none of Cairo's or pixman's symbols are exported.cairo_matrix_invertof{1, 1, 0, inf, 1, 1}returns 0 and leaves{nan, -0, -0, 0, nan, 0}, notCAIRO_STATUS_INVALID_MATRIX.cairo_region_union_rectanglewith{INT32_MAX, 0, 2, 2}returns 0 and ignores the rectangle, notCAIRO_STATUS_INVALID_SIZE. A box wider thanINT32_MAXoverflows inside Cairo, so the test no longer checks it.cairo_set_matrixdoes.Tested
guest_cairo_*tests and thepublic_headerstests pass.tools/tests/test_package_release.pypasses.libcairo.prxexports the 161cairo_*names and nopixman_*oraps5_*symbol.guest_cairo_*tests pass, and the export table is the same.guest_cairo_*tests pass, and the dynamic symbol table has no backend symbols.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 PrivacyOnion on 2026-11-12T21:31:53Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
95f7f88cba:tools/check_conventions.pypassed;git diff --checkclean.CMakeLists.txtfailed to build.Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-12T21:39:31Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
95f7f88cba:tools/check_conventions.pypassed;git diff --checkclean.CMakeLists.txtfailed to build.Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-12T22:11:34Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
95f7f88cba:tools/check_conventions.pypassed;git diff --checkclean.CMakeLists.txtfailed to build.Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-13T19:43:40Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
95f7f88cba:tools/check_conventions.pypassed;git diff --checkclean.guest_cairo_matrix_tests,guest_cairo_regions_testsbuilt cleanly.guest_cairo_matrix,guest_cairo_regions):core/libs/prx/libcairo/Matrix.cpp,core/libs/prx/libcairo/Region.cpp,core/libs/prx/libcairo/include/InventoryExports.hpp,core/libs/prx/libcairo/libcairo.hppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me