summaryrefslogtreecommitdiffstats
path: root/quantum/visualizer/visualizer.mk
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/visualizer/visualizer.mk')
-rw-r--r--quantum/visualizer/visualizer.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/quantum/visualizer/visualizer.mk b/quantum/visualizer/visualizer.mk
index 3bf3f7de6c..4c961ac59d 100644
--- a/quantum/visualizer/visualizer.mk
+++ b/quantum/visualizer/visualizer.mk
@@ -58,12 +58,14 @@ ULIBS += -lm
endif
ifeq ($(strip $(LCD_ENABLE)), yes)
-SRC += $(VISUALIZER_DIR)/lcd_backlight.c
-SRC += $(VISUALIZER_DIR)/lcd_keyframes.c
-SRC += $(VISUALIZER_DIR)/lcd_backlight_keyframes.c
+ SRC += $(VISUALIZER_DIR)/lcd_keyframes.c
+ ifeq ($(strip $(LCD_BACKLIGHT_ENABLE)), yes)
+ OPT_DEFS += -DLCD_BACKLIGHT_ENABLE
+ SRC += $(VISUALIZER_DIR)/lcd_backlight.c
+ SRC += $(VISUALIZER_DIR)/lcd_backlight_keyframes.c
+ endif
# Note, that the linker will strip out any resources that are not actually in use
SRC += $(VISUALIZER_DIR)/resources/lcd_logo.c
-OPT_DEFS += -DLCD_BACKLIGHT_ENABLE
$(eval $(call ADD_DRIVER,LCD))
endif