Move to painter's mk

This commit is contained in:
elpekenin 2023-04-08 17:18:59 +02:00
parent 7b56f31ace
commit 08a3218585
2 changed files with 8 additions and 6 deletions

View File

@ -182,12 +182,6 @@ endif
QUANTUM_PAINTER_ENABLE ?= no
ifeq ($(strip $(QUANTUM_PAINTER_ENABLE)), yes)
include $(QUANTUM_DIR)/painter/rules.mk
# add any keyboard-, keymap-, or user- level fonts and images
# TODO: generate a header file (with CLI) which includes all the headers found (?)
QP_DIRS := $(KEYBOARD_PATHS) $(KEYMAP_PATH) $(USER_PATH)
QP_FONTS := $(foreach dir,$(QP_DIRS),$(wildcard $(dir)/painter/fonts/*.qff.c))
QP_IMGS := $(foreach dir,$(QP_DIRS),$(wildcard $(dir)/painter/images/*.qgf.c))
SRC += $(QP_FONTS) $(QP_IMGS)
endif
VALID_EEPROM_DRIVER_TYPES := vendor custom transient i2c spi wear_leveling legacy_stm32_flash

View File

@ -159,3 +159,11 @@ endif
ifeq ($(strip $(QUANTUM_PAINTER_LVGL_INTEGRATION)), yes)
include $(QUANTUM_DIR)/painter/lvgl/rules.mk
endif
# add every keyboard-, keymap-, or user- level fonts and images
QP_DIRS := $(KEYBOARD_PATHS) $(KEYMAP_PATH) $(USER_PATH)
QP_FONTS := $(foreach dir,$(QP_DIRS),$(wildcard $(dir)/painter/fonts/*.qff.c))
QP_IMGS := $(foreach dir,$(QP_DIRS),$(wildcard $(dir)/painter/images/*.qgf.c))
SRC += $(QP_FONTS) $(QP_IMGS)
# TODO: generate a header file (with CLI) which includes all the headers found