mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 08:33:12 -05:00
Create, destroy, clear, write runs, step through them and read the line metrics, following KytyPS5. Layouts from SharpProspero. Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
886 B
CMake
24 lines
886 B
CMake
function(add_sce_font_library target)
|
|
set(fontDir ${CMAKE_CURRENT_FUNCTION_LIST_DIR})
|
|
add_library(${target} SHARED EXCLUDE_FROM_ALL
|
|
${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/WritingLine.cpp
|
|
)
|
|
target_include_directories(${target} PRIVATE ${LIBS_INCLUDE_DIR})
|
|
target_link_libraries(${target} PRIVATE freetype libc)
|
|
set_target_properties(${target} PROPERTIES
|
|
CXX_EXTENSIONS OFF
|
|
CXX_VISIBILITY_PRESET hidden
|
|
VISIBILITY_INLINES_HIDDEN ON
|
|
)
|
|
configure_windows_unwind(${target})
|
|
endfunction()
|