Hershey Fonts: Fix default value setting for HERSHEY_FONTS.

pull/1064/head
Phil Howard 2025-02-27 17:54:31 +00:00
rodzic fdfb28ebb8
commit 01faf376b7
3 zmienionych plików z 2 dodań i 18 usunięć

Wyświetl plik

@ -12,14 +12,10 @@ target_include_directories(usermod_${MOD_NAME} INTERFACE
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/hershey_fonts
)
if(NOT HERSHEY_FONTS)
# TODO: Swap this to disabled by default when we're ready to deprecate
# Hershey has all but been replaced by PicoVector's "alright fonts."
set(HERSHEY_FONTS 1)
endif()
# This definition ensures that PicoGraphics compiles in Hershey support.
target_compile_definitions(usermod_${MOD_NAME} INTERFACE
HERSHEY_FONTS=${HERSHEY_FONTS}
HERSHEY_FONTS=1
)
target_link_libraries(usermod INTERFACE usermod_${MOD_NAME})

Wyświetl plik

@ -7,12 +7,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../")
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
# Disable hershey fonts to claw back some binary size
# PicoVector's Alright Fonts replace these
target_compile_definitions(usermod INTERFACE
HERSHEY_FONTS=0
)
# Essential
include(pimoroni_i2c/micropython)
include(pimoroni_bus/micropython)

Wyświetl plik

@ -7,12 +7,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../")
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
# Disable hershey fonts to claw back some binary size
# PicoVector's Alright Fonts replace these
target_compile_definitions(usermod INTERFACE
HERSHEY_FONTS=0
)
# Essential
include(pimoroni_i2c/micropython)
include(pimoroni_bus/micropython)