diff options
| author | Fred Sundvik <fsundvik@gmail.com> | 2016-07-06 20:30:58 +0300 |
|---|---|---|
| committer | Fred Sundvik <fsundvik@gmail.com> | 2016-07-06 20:30:58 +0300 |
| commit | 6c296557909501b71fe344ce379e74094cf77c8e (patch) | |
| tree | e02fdb7bb85a16de027c6c1946817e96d5304ab3 /quantum/visualizer/visualizer.mk | |
| parent | f727801bc69b3db28f84b7b8986756193bbfd21e (diff) | |
| parent | 73d890a2c9c34b905cd5e74e7146fdd4578dcb96 (diff) | |
| download | qmk_firmware-6c296557909501b71fe344ce379e74094cf77c8e.tar.gz qmk_firmware-6c296557909501b71fe344ce379e74094cf77c8e.zip | |
Merge commit '73d890a2c9c34b905cd5e74e7146fdd4578dcb96' into add_visualizer
Diffstat (limited to 'quantum/visualizer/visualizer.mk')
| -rw-r--r-- | quantum/visualizer/visualizer.mk | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/quantum/visualizer/visualizer.mk b/quantum/visualizer/visualizer.mk index 13c5d3158..56525ffd9 100644 --- a/quantum/visualizer/visualizer.mk +++ b/quantum/visualizer/visualizer.mk | |||
| @@ -21,21 +21,41 @@ | |||
| 21 | # SOFTWARE. | 21 | # SOFTWARE. |
| 22 | 22 | ||
| 23 | GFXLIB = $(VISUALIZER_DIR)/ugfx | 23 | GFXLIB = $(VISUALIZER_DIR)/ugfx |
| 24 | SRC += $(VISUALIZER_DIR)/visualizer.c | ||
| 25 | UINCDIR += $(GFXINC) $(VISUALIZER_DIR) | ||
| 26 | |||
| 24 | ifdef LCD_ENABLE | 27 | ifdef LCD_ENABLE |
| 25 | include $(GFXLIB)/gfx.mk | ||
| 26 | UDEFS += -DLCD_ENABLE | 28 | UDEFS += -DLCD_ENABLE |
| 27 | ULIBS += -lm | 29 | ULIBS += -lm |
| 30 | USE_UGFX = yes | ||
| 28 | endif | 31 | endif |
| 29 | SRC += $(GFXSRC) $(VISUALIZER_DIR)/visualizer.c | ||
| 30 | UINCDIR += $(GFXINC) $(VISUALIZER_DIR) | ||
| 31 | 32 | ||
| 32 | ifdef LCD_BACKLIGHT_ENABLE | 33 | ifdef LCD_BACKLIGHT_ENABLE |
| 33 | SRC += $(VISUALIZER_DIR)/lcd_backlight.c | 34 | SRC += $(VISUALIZER_DIR)/lcd_backlight.c |
| 35 | ifndef EMULATOR | ||
| 34 | SRC += lcd_backlight_hal.c | 36 | SRC += lcd_backlight_hal.c |
| 37 | endif | ||
| 35 | UDEFS += -DLCD_BACKLIGHT_ENABLE | 38 | UDEFS += -DLCD_BACKLIGHT_ENABLE |
| 36 | endif | 39 | endif |
| 37 | 40 | ||
| 41 | ifdef LED_ENABLE | ||
| 42 | SRC += $(VISUALIZER_DIR)/led_test.c | ||
| 43 | UDEFS += -DLED_ENABLE | ||
| 44 | USE_UGFX = yes | ||
| 45 | endif | ||
| 46 | |||
| 47 | ifdef USE_UGFX | ||
| 48 | include $(GFXLIB)/gfx.mk | ||
| 49 | SRC += $(GFXSRC) | ||
| 50 | UDEFS += $(patsubst %,-D%,$(patsubst -D%,%,$(GFXDEFS))) | ||
| 51 | ULIBS += $(patsubst %,-l%,$(patsubst -l%,%,$(GFXLIBS))) | ||
| 52 | endif | ||
| 53 | |||
| 38 | ifndef VISUALIZER_USER | 54 | ifndef VISUALIZER_USER |
| 39 | VISUALIZER_USER = visualizer_user.c | 55 | VISUALIZER_USER = visualizer_user.c |
| 40 | endif | 56 | endif |
| 41 | SRC += $(VISUALIZER_USER) \ No newline at end of file | 57 | SRC += $(VISUALIZER_USER) |
| 58 | |||
| 59 | ifdef EMULATOR | ||
| 60 | UINCDIR += $(TMK_DIR)/common | ||
| 61 | endif \ No newline at end of file | ||
