aboutsummaryrefslogtreecommitdiffstats
path: root/build_keyboard.mk
diff options
context:
space:
mode:
authorGravatar Jack Humbert <jack.humb@gmail.com>2016-11-26 15:37:46 -0500
committerGravatar Jack Humbert <jack.humb@gmail.com>2016-11-26 15:38:44 -0500
commit7edac212c8ed8442bf4207e70dc8194631b2bf27 (patch)
treefd1905e1a24c237daa0e3e4172fe74f273d6b646 /build_keyboard.mk
parentf25596b8dc2f15f620c07164d871023d9284618c (diff)
downloadqmk_firmware-7edac212c8ed8442bf4207e70dc8194631b2bf27.tar.gz
separated into api files/folder
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r--build_keyboard.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk
index 42f8f8ac7..c1e554003 100644
--- a/build_keyboard.mk
+++ b/build_keyboard.mk
@@ -131,6 +131,14 @@ ifndef CUSTOM_MATRIX
SRC += $(QUANTUM_DIR)/matrix.c
endif
+ifeq ($(strip $(API_SYSEX_ENABLE)), yes)
+ OPT_DEFS += -DAPI_SYSEX_ENABLE
+ SRC += $(QUANTUM_DIR)/api/api_sysex.c
+ OPT_DEFS += -DAPI_ENABLE
+ SRC += $(QUANTUM_DIR)/api.c
+ MIDI_ENABLE=yes
+endif
+
ifeq ($(strip $(MIDI_ENABLE)), yes)
OPT_DEFS += -DMIDI_ENABLE
SRC += $(QUANTUM_DIR)/process_keycode/process_midi.c