Files
AnyPS5/core/libs/prx/libSceFont/FontLibrary.cmake
T
akkadbakkad89 23527403a5 feat(libSceFont): implement drawup texture image/pattern record producers
Firmware 4.03 bodies at 0x20cb0 (image) and 0x20f50 (pattern) recovered:
frame magic/sticky/parameter checks with error store at +4 and hook,
record-pool u16 free-run allocation under the pool mutex, 0x80 record
header (type 0x40/0x50, sequence, payload at +0x80), descriptor memcpy
of mode bytes, and same-sequence queue append bumping frame+0x28.
libSceFont links libkernel for scePthreadMutexLock/Unlock; guest test
covers validation, record bytes, queue order and the allocator.
2026-10-31 13:05:37 +05:30

26 lines
973 B
CMake

function(add_sce_font_library target)
set(fontDir ${CMAKE_CURRENT_FUNCTION_LIST_DIR})
add_library(${target} SHARED EXCLUDE_FROM_ALL
${fontDir}/src/Graphics.cpp
${fontDir}/src/Layout.cpp
${fontDir}/src/Library.cpp
${fontDir}/src/Open.cpp
${fontDir}/src/Render.cpp
${fontDir}/src/State.cpp
${fontDir}/src/Style.cpp
${fontDir}/src/SystemFont.cpp
${fontDir}/src/Text.cpp
${fontDir}/src/Unimplemented.cpp
${fontDir}/src/Words.cpp
${fontDir}/src/WritingLine.cpp
)
target_include_directories(${target} PRIVATE ${LIBS_INCLUDE_DIR})
target_link_libraries(${target} PRIVATE freetype libc libkernel)
set_target_properties(${target} PROPERTIES
CXX_EXTENSIONS OFF
CXX_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN ON
)
configure_windows_unwind(${target})
endfunction()