mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-30 21:38:01 +06:00
6cccc22be9
Using QUANTUM_LIB_SRC prevents the warning when multiple sources add the i2c_master.c file. Boards such as the Ergodox EZ Glow see this warning every time they compile because the board uses the file in general, and because the RGB LED Matrix requires it, as well.
17 lines
385 B
Makefile
17 lines
385 B
Makefile
ifneq ($(strip $(QWIIC_ENABLE)),)
|
|
COMMON_VPATH += $(DRIVER_PATH)/qwiic
|
|
OPT_DEFS += -DQWIIC_ENABLE
|
|
SRC += qwiic.c
|
|
QUANTUM_LIB_SRC += i2c_master.c
|
|
endif
|
|
|
|
ifneq ($(filter JOYSTIIC, $(QWIIC_ENABLE)),)
|
|
OPT_DEFS += -DQWIIC_JOYSTIIC_ENABLE
|
|
SRC += joystiic.c
|
|
endif
|
|
|
|
ifneq ($(filter MICRO_OLED, $(QWIIC_ENABLE)),)
|
|
OPT_DEFS += -DQWIIC_MICRO_OLED_ENABLE
|
|
SRC += micro_oled.c
|
|
endif
|