~ruther/qmk_firmware

ref: bfa05cc5e7a41c0291690516c2954aaefde7d9b9 qmk_firmware/keyboards/ploopyco/post_rules.mk -rw-r--r-- 487 bytes
bfa05cc5 — James Young Migrate `LOCKING_*_ENABLE` to Data-Driven: P, Part 1 (#23779) 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
OPT_ENCODER_TYPE ?= default
VALID_OPT_ENCODER_TYPES := default simple tiny custom

ifeq ($(filter $(OPT_ENCODER_TYPE),$(VALID_OPT_ENCODER_TYPES)),)
    $(call CATASTROPHIC_ERROR,Invalid OPT_ENCODER_TYPE,OPT_ENCODER_TYPE="$(OPT_ENCODER_TYPE)" is not a valid pointing device type)
else
    ifneq ($(strip $(OPT_ENCODER_TYPE)), custom)
        VPATH += keyboards/ploopyco/common
        SRC += opt_encoder_$(strip $(OPT_ENCODER_TYPE)).c
        ANALOG_DRIVER_REQUIRED = yes
    endif
endif
Do not follow this link