refactor: split Icu and libc sources into small-size libraries #24910

Closed
GRG-DA wants to merge 17 commits from upstream-pr/24910 into main
GRG-DA commented 2026-11-21 10:19:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by GRG-DA on 2026-11-21T10:19:46Z.


What

Additional small-size CMake add_library chunk libraries: libSceIcu (Compare, Search) and libc (FormattingWide, ScanningWide). The original source files remain on disk.

This branch stacks on the work in PR #24322. Once #24322 is merged, this PR's diff reduces to just this commit.

Tested

python3 tools/check_conventions.py --base upstream/main passes; local CMake configure succeeds. No build, CTest run or GPU validation was performed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #24322
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (no GPU tests were run)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5426809286 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24910). Originally posted by [GRG-DA](https://github.com/GRG-DA) on 2026-11-21T10:19:46Z. --- ### What Additional small-size CMake `add_library` chunk libraries: `libSceIcu` (Compare, Search) and `libc` (FormattingWide, ScanningWide). The original source files remain on disk. This branch stacks on the work in PR #24322. Once #24322 is merged, this PR's diff reduces to just this commit. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> `python3 tools/check_conventions.py --base upstream/main` passes; local CMake configure succeeds. No build, CTest run or GPU validation was performed. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #24322 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a (no GPU tests were run) - [x] AI-assisted: yes
MarcZX10 commented 2026-11-21 10:26:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T10:26:37Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: remove or correct the nonexistent source path in the AGC driver CMake list.

What I ran

Reviewed head 5a75a16a6efe93fb99491e2bd9c48d9b8d672f9e. No commands, build, or tests were run. Read the prepared description, commits, manifest, and diff, plus the head versions of three changed CMake files. The review bundle excludes full text for the changed files because they are too large; I read only targeted ranges for those repository files.

Results

Check Result Note
Source path audit failed AGC CMake lists a missing path
Build and tests not run The author reports configure success; I did not run it
Negative control not applicable No behavior test was run

Findings

Blocking

  • core/libs/prx/libSceAgcDriver/CMakeLists.txt:437 adds Execution/src/Frame to the source list. The repository listing for Execution/src contains FrameCapture.cpp and FrameRecorder.cpp, but no Frame path. CMake cannot use this nonexistent path as a source file, so configuration of this target will fail. Replace it with the intended chunk source path(s), or remove the entry.

Non-blocking

None.

Sources

Not verified

The change spans many files. I read the changed CMake files for libSceAgcDriver, libSceIcu, and libc; I did not read the other changed files, including the generated chunk sources and other libraries' CMake files. The prepared bundle lists those changed files as excluded from its full-text folder. Build behavior beyond the identified missing source path, tests, and GPU or console behavior were not verified. The PR description reports that convention checks and local CMake configuration passed, but these were not run during this review.

To get this to a good state

Correct the AGC driver source entry, then rerun CMake configure and the relevant build on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004630420 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24910#pullrequestreview-6004630420). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T10:26:37Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: remove or correct the nonexistent source path in the AGC driver CMake list. ## What I ran Reviewed head `5a75a16a6efe93fb99491e2bd9c48d9b8d672f9e`. No commands, build, or tests were run. Read the prepared description, commits, manifest, and diff, plus the head versions of three changed CMake files. The review bundle excludes full text for the changed files because they are too large; I read only targeted ranges for those repository files. ## Results | Check | Result | Note | |---|---|---| | Source path audit | failed | AGC CMake lists a missing path | | Build and tests | not run | The author reports configure success; I did not run it | | Negative control | not applicable | No behavior test was run | ## Findings ### Blocking - `core/libs/prx/libSceAgcDriver/CMakeLists.txt:437` adds `Execution/src/Frame` to the source list. The repository listing for `Execution/src` contains `FrameCapture.cpp` and `FrameRecorder.cpp`, but no `Frame` path. CMake cannot use this nonexistent path as a source file, so configuration of this target will fail. Replace it with the intended chunk source path(s), or remove the entry. ### Non-blocking None. ## Sources - [AGC driver CMake file at reviewed head](https://github.com/boykopovar/AnyPS5/blob/5a75a16a6efe93fb99491e2bd9c48d9b8d672f9e/core/libs/prx/libSceAgcDriver/CMakeLists.txt#L437) ## Not verified The change spans many files. I read the changed CMake files for `libSceAgcDriver`, `libSceIcu`, and `libc`; I did not read the other changed files, including the generated chunk sources and other libraries' CMake files. The prepared bundle lists those changed files as excluded from its full-text folder. Build behavior beyond the identified missing source path, tests, and GPU or console behavior were not verified. The PR description reports that convention checks and local CMake configuration passed, but these were not run during this review. ## To get this to a good state Correct the AGC driver source entry, then rerun CMake configure and the relevant build on the new head.
MarcZX10 commented 2026-11-21 10:32:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T10:32:03Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The review found a malformed source path in the AGC driver CMake source list; no build or tests were run independently.

What I ran

Inspected the prepared diff and repository files through repo_read.py at head 5a6a60e57ce4ec82e9db4fc5d36db612ffd1f128. No commands, build, or tests were run. The author reports convention checks and local CMake configure passed.

Results

Check Result Note
Diff and description passed Prepared review materials inspected
CMake source path failed Invalid source entry found
Build and tests not run Not run independently

Findings

Blocking

  • core/libs/prx/libSceAgcDriver/CMakeLists.txt:437 adds ${CMAKE_CURRENT_SOURCE_DIR}/Execution/src/Frame to agcDriverSources. The diff shows that this replaced FrameRecorder.cpp; the entry is not a source file, and the reader's directory listing found no files under that path. CMake cannot compile this source list as written. Replace it with the intended chunk target or source file.

Non-blocking

None.

Sources

The finding is based on the changed source-list entry and its surrounding diff in core/libs/prx/libSceAgcDriver/CMakeLists.txt.

Not verified

The manifest lists many changed files, most of which were not read. Full text was read only for core/libs/prx/libSceAgcDriver/CMakeLists.txt and core/libs/prx/libc/CMakeLists.txt; the prepared description, commits, manifest, diff, and review README were also inspected. The remaining changed files were excluded from detailed review. Build, CTest, and GPU behavior were not verified.

To get this to a good state

Replace the invalid Execution/src/Frame entry, then rerun CMake configure and the relevant build checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004664482 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24910#pullrequestreview-6004664482). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T10:32:03Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The review found a malformed source path in the AGC driver CMake source list; no build or tests were run independently. ## What I ran Inspected the prepared diff and repository files through `repo_read.py` at head `5a6a60e57ce4ec82e9db4fc5d36db612ffd1f128`. No commands, build, or tests were run. The author reports convention checks and local CMake configure passed. ## Results | Check | Result | Note | |---|---|---| | Diff and description | passed | Prepared review materials inspected | | CMake source path | failed | Invalid source entry found | | Build and tests | not run | Not run independently | ## Findings ### Blocking - `core/libs/prx/libSceAgcDriver/CMakeLists.txt:437` adds `${CMAKE_CURRENT_SOURCE_DIR}/Execution/src/Frame` to `agcDriverSources`. The diff shows that this replaced `FrameRecorder.cpp`; the entry is not a source file, and the reader's directory listing found no files under that path. CMake cannot compile this source list as written. Replace it with the intended chunk target or source file. ### Non-blocking None. ## Sources The finding is based on the changed source-list entry and its surrounding diff in `core/libs/prx/libSceAgcDriver/CMakeLists.txt`. ## Not verified The manifest lists many changed files, most of which were not read. Full text was read only for `core/libs/prx/libSceAgcDriver/CMakeLists.txt` and `core/libs/prx/libc/CMakeLists.txt`; the prepared description, commits, manifest, diff, and review README were also inspected. The remaining changed files were excluded from detailed review. Build, CTest, and GPU behavior were not verified. ## To get this to a good state Replace the invalid `Execution/src/Frame` entry, then rerun CMake configure and the relevant build checks on the updated head.

Pull request closed

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
boykopovar/AnyPS5!24910
No description provided.