diff options
Diffstat (limited to 'visualizer.mk')
| -rw-r--r-- | visualizer.mk | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/visualizer.mk b/visualizer.mk index c51f8ba5d..678829329 100644 --- a/visualizer.mk +++ b/visualizer.mk | |||
| @@ -21,9 +21,7 @@ | |||
| 21 | # SOFTWARE. | 21 | # SOFTWARE. |
| 22 | 22 | ||
| 23 | GFXLIB = $(VISUALIZER_DIR)/ugfx | 23 | GFXLIB = $(VISUALIZER_DIR)/ugfx |
| 24 | ifndef EMULATOR | ||
| 25 | SRC += $(VISUALIZER_DIR)/visualizer.c | 24 | SRC += $(VISUALIZER_DIR)/visualizer.c |
| 26 | endif | ||
| 27 | UINCDIR += $(GFXINC) $(VISUALIZER_DIR) | 25 | UINCDIR += $(GFXINC) $(VISUALIZER_DIR) |
| 28 | 26 | ||
| 29 | ifdef LCD_ENABLE | 27 | ifdef LCD_ENABLE |
| @@ -33,13 +31,17 @@ USE_UGFX = yes | |||
| 33 | endif | 31 | endif |
| 34 | 32 | ||
| 35 | ifdef LCD_BACKLIGHT_ENABLE | 33 | ifdef LCD_BACKLIGHT_ENABLE |
| 34 | ifndef EMULATOR | ||
| 36 | SRC += $(VISUALIZER_DIR)/lcd_backlight.c | 35 | SRC += $(VISUALIZER_DIR)/lcd_backlight.c |
| 37 | SRC += lcd_backlight_hal.c | 36 | SRC += lcd_backlight_hal.c |
| 37 | endif | ||
| 38 | UDEFS += -DLCD_BACKLIGHT_ENABLE | 38 | UDEFS += -DLCD_BACKLIGHT_ENABLE |
| 39 | endif | 39 | endif |
| 40 | 40 | ||
| 41 | ifdef LED_ENABLE | 41 | ifdef LED_ENABLE |
| 42 | ifndef EMULATOR | ||
| 42 | SRC += $(VISUALIZER_DIR)/led_test.c | 43 | SRC += $(VISUALIZER_DIR)/led_test.c |
| 44 | endif | ||
| 43 | UDEFS += -DLED_ENABLE | 45 | UDEFS += -DLED_ENABLE |
| 44 | USE_UGFX = yes | 46 | USE_UGFX = yes |
| 45 | endif | 47 | endif |
| @@ -56,4 +58,8 @@ ifndef EMULATOR | |||
| 56 | VISUALIZER_USER = visualizer_user.c | 58 | VISUALIZER_USER = visualizer_user.c |
| 57 | endif | 59 | endif |
| 58 | endif | 60 | endif |
| 59 | SRC += $(VISUALIZER_USER) \ No newline at end of file | 61 | SRC += $(VISUALIZER_USER) |
| 62 | |||
| 63 | ifdef EMULATOR | ||
| 64 | UINCDIR += $(TMK_DIR)/common | ||
| 65 | endif \ No newline at end of file | ||
