aboutsummaryrefslogtreecommitdiffstats
path: root/common_features.mk
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-02-05 02:49:10 +0000
committerGitHub <noreply@github.com>2020-02-04 18:49:10 -0800
commit393937b43fe37a9faceb3a40e5f6fcc604659fb0 (patch)
tree16fc3d9226a68205021d7db2ce6530b38f6868e7 /common_features.mk
parentefe8bd8e9218f67a0845ccfa3eef7b074aebf7dc (diff)
downloadfirmware-393937b43fe37a9faceb3a40e5f6fcc604659fb0.tar.gz
firmware-393937b43fe37a9faceb3a40e5f6fcc604659fb0.tar.bz2
firmware-393937b43fe37a9faceb3a40e5f6fcc604659fb0.zip
Relocate grave keycode processing (#8082)
* Relocate grave keycode processing * Tidy up code * Refactor grave -> grave_esc
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk17
1 files changed, 12 insertions, 5 deletions
diff --git a/common_features.mk b/common_features.mk
index 2c24eb28c..425d5b473 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -420,6 +420,12 @@ ifeq ($(strip $(LEADER_ENABLE)), yes)
OPT_DEFS += -DLEADER_ENABLE
endif
+
+ifeq ($(strip $(DIP_SWITCH_ENABLE)), yes)
+ SRC += $(QUANTUM_DIR)/dip_switch.c
+ OPT_DEFS += -DDIP_SWITCH_ENABLE
+endif
+
include $(DRIVER_PATH)/qwiic/qwiic.mk
QUANTUM_SRC:= \
@@ -505,12 +511,13 @@ ifeq ($(strip $(MAGIC_ENABLE)), yes)
OPT_DEFS += -DMAGIC_KEYCODE_ENABLE
endif
+GRAVE_ESC_ENABLE ?= yes
+ifeq ($(strip $(GRAVE_ESC_ENABLE)), yes)
+ SRC += $(QUANTUM_DIR)/process_keycode/process_grave_esc.c
+ OPT_DEFS += -DGRAVE_ESC_ENABLE
+endif
+
ifeq ($(strip $(DYNAMIC_MACRO_ENABLE)), yes)
SRC += $(QUANTUM_DIR)/process_keycode/process_dynamic_macro.c
OPT_DEFS += -DDYNAMIC_MACRO_ENABLE
endif
-
-ifeq ($(strip $(DIP_SWITCH_ENABLE)), yes)
- SRC += $(QUANTUM_DIR)/dip_switch.c
- OPT_DEFS += -DDIP_SWITCH_ENABLE
-endif