2021-10-17 17:37:48 -04:00
|
|
|
# Copyright 2021 QMK
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
SPACE_CADET_ENABLE ?= yes
|
|
|
|
GRAVE_ESC_ENABLE ?= yes
|
|
|
|
|
|
|
|
GENERIC_FEATURES = \
|
2022-09-17 03:50:54 -04:00
|
|
|
AUTOCORRECT \
|
2022-05-14 02:00:32 -04:00
|
|
|
CAPS_WORD \
|
2021-10-17 17:37:48 -04:00
|
|
|
COMBO \
|
|
|
|
COMMAND \
|
2021-11-15 13:21:09 -05:00
|
|
|
DEFERRED_EXEC \
|
2021-10-17 17:37:48 -04:00
|
|
|
DIGITIZER \
|
|
|
|
DIP_SWITCH \
|
|
|
|
DYNAMIC_KEYMAP \
|
|
|
|
DYNAMIC_MACRO \
|
|
|
|
GRAVE_ESC \
|
2021-10-18 07:55:44 -04:00
|
|
|
HAPTIC \
|
2021-10-17 17:37:48 -04:00
|
|
|
KEY_LOCK \
|
|
|
|
KEY_OVERRIDE \
|
|
|
|
LEADER \
|
|
|
|
PROGRAMMABLE_BUTTON \
|
2023-05-20 08:35:06 -04:00
|
|
|
REPEAT_KEY \
|
2022-04-16 14:13:05 -04:00
|
|
|
SECURE \
|
2021-10-17 17:37:48 -04:00
|
|
|
SPACE_CADET \
|
2021-10-29 06:16:19 -04:00
|
|
|
SWAP_HANDS \
|
2021-10-17 17:37:48 -04:00
|
|
|
TAP_DANCE \
|
|
|
|
VELOCIKEY \
|
|
|
|
WPM \
|
2021-11-25 15:06:50 -05:00
|
|
|
DYNAMIC_TAPPING_TERM \
|
2023-02-11 18:23:07 -05:00
|
|
|
TRI_LAYER
|
2021-10-17 17:37:48 -04:00
|
|
|
|
|
|
|
define HANDLE_GENERIC_FEATURE
|
|
|
|
# $$(info "Processing: $1_ENABLE $2.c")
|
|
|
|
SRC += $$(wildcard $$(QUANTUM_DIR)/process_keycode/process_$2.c)
|
|
|
|
SRC += $$(wildcard $$(QUANTUM_DIR)/$2.c)
|
|
|
|
OPT_DEFS += -D$1_ENABLE
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach F,$(GENERIC_FEATURES),\
|
|
|
|
$(if $(filter yes, $(strip $($(F)_ENABLE))),\
|
|
|
|
$(eval $(call HANDLE_GENERIC_FEATURE,$(F),$(shell echo $(F) | tr '[:upper:]' '[:lower:]'))) \
|
|
|
|
) \
|
|
|
|
)
|