forked from forks/qmk_firmware
Makefile changes to support emulator build
This commit is contained in:
parent
350bc0d22f
commit
15bdef3ee9
2
ugfx
2
ugfx
|
@ -1 +1 @@
|
||||||
Subproject commit e221a690616e20f87e0b0088baffdbd5427be862
|
Subproject commit 314a066d11f09d295d42054a0b53fa1a95c0ba0a
|
|
@ -21,7 +21,9 @@
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
GFXLIB = $(VISUALIZER_DIR)/ugfx
|
GFXLIB = $(VISUALIZER_DIR)/ugfx
|
||||||
|
ifndef EMULATOR
|
||||||
SRC += $(VISUALIZER_DIR)/visualizer.c
|
SRC += $(VISUALIZER_DIR)/visualizer.c
|
||||||
|
endif
|
||||||
UINCDIR += $(GFXINC) $(VISUALIZER_DIR)
|
UINCDIR += $(GFXINC) $(VISUALIZER_DIR)
|
||||||
|
|
||||||
ifdef LCD_ENABLE
|
ifdef LCD_ENABLE
|
||||||
|
@ -45,9 +47,13 @@ endif
|
||||||
ifdef USE_UGFX
|
ifdef USE_UGFX
|
||||||
include $(GFXLIB)/gfx.mk
|
include $(GFXLIB)/gfx.mk
|
||||||
SRC += $(GFXSRC)
|
SRC += $(GFXSRC)
|
||||||
|
UDEFS += $(patsubst %,-D%,$(patsubst -D%,%,$(GFXDEFS)))
|
||||||
|
ULIBS += $(patsubst %,-l%,$(patsubst -l%,%,$(GFXLIBS)))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef VISUALIZER_USER
|
ifndef VISUALIZER_USER
|
||||||
|
ifndef EMULATOR
|
||||||
VISUALIZER_USER = visualizer_user.c
|
VISUALIZER_USER = visualizer_user.c
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
SRC += $(VISUALIZER_USER)
|
SRC += $(VISUALIZER_USER)
|
Loading…
Reference in a new issue