summaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-06-22 18:26:23 +1000
committerGitHub <noreply@github.com>2021-06-22 18:26:23 +1000
commitd61e5c0027e289ccf48652afa4c442342e7ccf04 (patch)
treee8edc86d191a190691b4722f05e32bdc40affc58 /common_features.mk
parentc03cb4edd7ff73391a0a64f0c4f5e0755e902908 (diff)
Move LED/RGB Matrix code into their own directories (#13257)
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk18
1 files changed, 12 insertions, 6 deletions
diff --git a/common_features.mk b/common_features.mk
index 9c6fc9cdf8..33a8da23d7 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -230,9 +230,12 @@ ifneq (,$(filter $(MCU), atmega16u2 atmega32u2 at90usb162))
# ATmegaxxU2 does not have hardware MUL instruction - lib8tion must be told to use software multiplication routines
OPT_DEFS += -DLIB8_ATTINY
endif
- SRC += $(QUANTUM_DIR)/process_keycode/process_backlight.c
- SRC += $(QUANTUM_DIR)/led_matrix.c
- SRC += $(QUANTUM_DIR)/led_matrix_drivers.c
+ COMMON_VPATH += $(QUANTUM_DIR)/led_matrix
+ COMMON_VPATH += $(QUANTUM_DIR)/led_matrix/animations
+ COMMON_VPATH += $(QUANTUM_DIR)/led_matrix/animations/runners
+ SRC += process_backlight.c
+ SRC += led_matrix.c
+ SRC += led_matrix_drivers.c
CIE1931_CURVE := yes
ifeq ($(strip $(LED_MATRIX_DRIVER)), IS31FL3731)
@@ -255,9 +258,12 @@ ifneq (,$(filter $(MCU), atmega16u2 atmega32u2 at90usb162))
# ATmegaxxU2 does not have hardware MUL instruction - lib8tion must be told to use software multiplication routines
OPT_DEFS += -DLIB8_ATTINY
endif
- SRC += $(QUANTUM_DIR)/color.c
- SRC += $(QUANTUM_DIR)/rgb_matrix.c
- SRC += $(QUANTUM_DIR)/rgb_matrix_drivers.c
+ COMMON_VPATH += $(QUANTUM_DIR)/rgb_matrix
+ COMMON_VPATH += $(QUANTUM_DIR)/rgb_matrix/animations
+ COMMON_VPATH += $(QUANTUM_DIR)/rgb_matrix/animations/runners
+ SRC += color.c
+ SRC += rgb_matrix.c
+ SRC += rgb_matrix_drivers.c
CIE1931_CURVE := yes
RGB_KEYCODES_ENABLE := yes