fix(libcohtml): provide libcohtml.Prospero.prx for DT_NEEDED

Copy the patched libcohtml.prx to libcohtml.Prospero.prx (exact DT_NEEDED name) via a post-build copy in the module CMakeLists, wired into the libs umbrella target. OUTPUT_NAME with a dot was rejected: the parent pipeline derives unpatched/patched paths from the directory target name, so renaming output would break it; dotted CMake target names are supported (e.g. libSceSaveData.native) but the parent-owned NID-patch rule is kept untouched. Adds DEPLOY.md deploy note. All 50 raw NIDs re-verified in the renamed file export table.
This commit is contained in:
Pouare514
2026-09-27 12:57:23 +02:00
parent a4248cb114
commit 279587cb16
2 changed files with 29 additions and 0 deletions
+13
View File
@@ -4,3 +4,16 @@ add_library(libcohtml SHARED EXCLUDE_FROM_ALL
target_include_directories(libcohtml PRIVATE ${LIBS_INCLUDE_DIR})
set_target_properties(libcohtml PROPERTIES CXX_EXTENSIONS OFF)
configure_windows_unwind(libcohtml)
set(LIBCOHTML_PATCHED ${PATCHED_DIR}/libcohtml.prx)
set(LIBCOHTML_PROSPERO_PATCHED ${PATCHED_DIR}/libcohtml.Prospero.prx)
add_custom_command(
OUTPUT ${LIBCOHTML_PROSPERO_PATCHED}
COMMAND ${CMAKE_COMMAND} -E copy ${LIBCOHTML_PATCHED} ${LIBCOHTML_PROSPERO_PATCHED}
DEPENDS ${LIBCOHTML_PATCHED}
COMMENT "Providing libcohtml.Prospero.prx for DT_NEEDED"
VERBATIM
)
add_custom_target(libcohtml_prospero DEPENDS ${LIBCOHTML_PROSPERO_PATCHED})
list(APPEND PATCHED_OUTPUTS ${LIBCOHTML_PROSPERO_PATCHED})
set(PATCHED_OUTPUTS ${PATCHED_OUTPUTS} PARENT_SCOPE)
+16
View File
@@ -0,0 +1,16 @@
# libcohtml — deploy note
Game `DT_NEEDED` expects exactly: `libcohtml.Prospero.prx`.
Copy next to the relinked eboot (same directory):
- `build/core/libs/libs/libcohtml.Prospero.prx` (patched build output, 50 NIDs) — required.
- `libgcc_s_seh-1.dll`, `libstdc++-6.dll`, `libwinpthread-1.dll` from `winlibs-gcc15/mingw64/bin` — required on Windows (see `docs/TechnicalDebt.md`).
Do NOT deploy:
- `libcohtml.prx` (build intermediate kept for the NID-patch pipeline, wrong `DT_NEEDED` name).
- Anything under `build/core/libs/libs/unpatched/` (NIDs not patched).
- `libc.prx` / `libkernel.prx` are not runtime imports of this module (no such DLL dependency); the game may need its other modules separately (out of scope).
Scope: raw-NID stubs only; real Cohtml rendering stays out of scope.