aboutsummaryrefslogtreecommitdiffstats
path: root/quantum
diff options
context:
space:
mode:
authorGravatar Jack Humbert <jack.humb@gmail.com>2016-01-16 00:06:51 -0500
committerGravatar Jack Humbert <jack.humb@gmail.com>2016-01-16 00:06:51 -0500
commit4faddd3449ca553e0d8b02ba91f9a34b534eebe7 (patch)
tree891a24f08764e9c121ebf33004288ce0882de7a6 /quantum
parent9487e92a6e35383dddc47794462cd37ff77c4256 (diff)
downloadqmk_firmware-4faddd3449ca553e0d8b02ba91f9a34b534eebe7.tar.gz
working
Diffstat (limited to 'quantum')
-rw-r--r--quantum/quantum.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/quantum/quantum.mk b/quantum/quantum.mk
index c82e47872..62d67be9f 100644
--- a/quantum/quantum.mk
+++ b/quantum/quantum.mk
@@ -4,6 +4,21 @@ QUANTUM_DIR = quantum
SRC += $(QUANTUM_DIR)/keymap_common.c \
$(QUANTUM_DIR)/led.c
+ifdef KEYMAP
+ifneq (,$(shell grep USING_MIDI 'keymaps/keymap_$(KEYMAP).c'))
+MIDI_ENABLE=yes
+$(info * Overriding MIDI_ENABLE setting - keymap_$(KEYMAP).c requires it)
+endif
+ifneq (,$(shell grep USING_UNICODE 'keymaps/keymap_$(KEYMAP).c'))
+UNICODE_ENABLE=yes
+$(info * Overriding UNICODE_ENABLE setting - keymap_$(KEYMAP).c requires it)
+endif
+ifneq (,$(shell grep USING_BACKLIGHT 'keymaps/keymap_$(KEYMAP).c'))
+BACKLIGHT_ENABLE=yes
+$(info * Overriding BACKLIGHT_ENABLE setting - keymap_$(KEYMAP).c requires it)
+endif
+endif
+
ifndef CUSTOM_MATRIX
SRC += $(QUANTUM_DIR)/matrix.c
endif