mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-21 17:44:35 +00:00
* Add ElfInfo to track current game info in a singleton * SaveData compatibility with old firmwares * sceKernelOpen: fix for write-only mode * imgui: add font to render non-ascii characters * save_data: fix Backup Job including old backup in the new backup * Save backup: fix to avoid filling the queue Also limiting 1 backup / 10sec * Save backup: fix search not handling empty pattern *backup time improv
33 lines
1.2 KiB
CMake
33 lines
1.2 KiB
CMake
# SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
project(ImGui_Resources)
|
|
|
|
add_executable(Dear_ImGui_FontEmbed ${CMAKE_SOURCE_DIR}/externals/dear_imgui/misc/fonts/binary_to_compressed_c.cpp)
|
|
|
|
set(FONT_LIST
|
|
NotoSansJP-Regular.ttf
|
|
)
|
|
|
|
set(OutputList "")
|
|
FOREACH (FONT_FILE ${FONT_LIST})
|
|
string(REGEX REPLACE "-" "_" fontname ${FONT_FILE})
|
|
string(TOLOWER ${fontname} fontname)
|
|
string(REGEX REPLACE ".ttf" "" fontname_cpp ${fontname})
|
|
set(fontname_cpp "imgui_font_${fontname_cpp}")
|
|
|
|
MESSAGE(STATUS "Embedding font ${FONT_FILE}")
|
|
set(OUTPUT "generated_fonts/imgui_fonts/${fontname}")
|
|
add_custom_command(
|
|
OUTPUT "${OUTPUT}.g.cpp"
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory "generated_fonts/imgui_fonts"
|
|
COMMAND $<TARGET_FILE:Dear_ImGui_FontEmbed> -nostatic "${CMAKE_CURRENT_SOURCE_DIR}/fonts/${FONT_FILE}" ${fontname_cpp} > "${OUTPUT}.g.cpp"
|
|
DEPENDS Dear_ImGui_FontEmbed "fonts/${FONT_FILE}"
|
|
USES_TERMINAL
|
|
)
|
|
list(APPEND OutputList "${OUTPUT}.g.cpp")
|
|
ENDFOREACH ()
|
|
|
|
add_library(ImGui_Resources STATIC ${OutputList})
|
|
set(IMGUI_RESOURCES_INCLUDE ${CMAKE_CURRENT_BINARY_DIR}/generated_fonts PARENT_SCOPE)
|