Move the visualizer_user file to keymap folder
Also rename it to visualizer.c
This commit is contained in:
parent
aaac254ebc
commit
caedec92d2
2 changed files with 8 additions and 3 deletions
|
@ -46,10 +46,15 @@ include $(GFXLIB)/gfx.mk
|
||||||
SRC += $(patsubst $(TOP_DIR)/%,%,$(GFXSRC))
|
SRC += $(patsubst $(TOP_DIR)/%,%,$(GFXSRC))
|
||||||
OPT_DEFS += $(patsubst %,-D%,$(patsubst -D%,%,$(GFXDEFS)))
|
OPT_DEFS += $(patsubst %,-D%,$(patsubst -D%,%,$(GFXDEFS)))
|
||||||
|
|
||||||
ifndef VISUALIZER_USER
|
ifneq ("$(wildcard $(KEYMAP_PATH)/visualizer.c)","")
|
||||||
VISUALIZER_USER = visualizer_user.c
|
SRC += keyboards/$(KEYBOARD)/keymaps/$(KEYMAP)/visualizer.c
|
||||||
|
else
|
||||||
|
ifeq ("$(wildcard $(SUBPROJECT_PATH)/keymaps/$(KEYMAP)/visualizer.c)","")
|
||||||
|
$(error "$(KEYMAP_PATH)/visualizer.c" does not exist)
|
||||||
|
else
|
||||||
|
SRC += keyboards/$(KEYBOARD)/$(SUBPROJECT)/keymaps/$(KEYMAP)/visualizer.c
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
SRC += $(VISUALIZER_USER)
|
|
||||||
|
|
||||||
ifdef EMULATOR
|
ifdef EMULATOR
|
||||||
UINCDIR += $(TMK_DIR)/common
|
UINCDIR += $(TMK_DIR)/common
|
||||||
|
|
Loading…
Reference in a new issue