kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Hershey Fonts: Fix default value setting for HERSHEY_FONTS.
rodzic
fdfb28ebb8
commit
01faf376b7
|
@ -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})
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue