Replace outdated RGB/Audio information
[jackhill/qmk/firmware.git] / keyboards / helix / pico / keymaps / biacco / rules.mk
CommitLineData
e5f201ed
B
1
2# Build Options
3# change to "no" to disable the options, or define them in the Makefile in
4# the appropriate keymap folder that will get included automatically
5#
6BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
7MOUSEKEY_ENABLE = no # Mouse keys(+4700)
8EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
9CONSOLE_ENABLE = no # Console for debug(+400)
10COMMAND_ENABLE = no # Commands for debug and configuration
11NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
12BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
13MIDI_ENABLE = no # MIDI controls
14AUDIO_ENABLE = yes # Audio output on port B5
15UNICODE_ENABLE = no # Unicode
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
00b6f148 17RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
e5f201ed
B
18SWAP_HANDS_ENABLE = no # Enable one-hand typing
19
20define HELIX_CUSTOMISE_MSG
21 $(info Helix customize)
22 $(info - OLED_ENABLE=$(OLED_ENABLE))
23 $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE))
24 $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE))
25 $(info - LED_ANIMATION=$(LED_ANIMATIONS))
26 $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE))
27endef
28
29# Helix keyboard customize
30# you can edit follows 6 Variables
31# jp: 以下の6つの変数を必要に応じて編集します。
32OLED_ENABLE = no # OLED_ENABLE
33LOCAL_GLCDFONT = no # use each keymaps "helixfont.h" insted of "common/glcdfont.c"
34LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
35LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
36LED_ANIMATIONS = no # LED animations
37IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
38Link_Time_Optimization = no # if firmware size over limit, try this option
39
40#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
41#### Do not enable these with audio at the same time.
42
43### Helix keyboard 'default' keymap: convenient command line option
44## make HELIX=<options> helix:defualt
45## option= oled | back | under | na | ios
46## ex.
47## make HELIX=oled helix:defualt
48## make HELIX=oled,back helix:defualt
49## make HELIX=oled,under helix:defualt
50## make HELIX=oled,back,na helix:defualt
51## make HELIX=oled,back,ios helix:defualt
52##
53ifneq ($(strip $(HELIX)),)
54 ifeq ($(findstring oled,$(HELIX)), oled)
55 OLED_ENABLE = yes
56 endif
57 ifeq ($(findstring back,$(HELIX)), back)
58 LED_BACK_ENABLE = yes
59 else ifeq ($(findstring under,$(HELIX)), under)
60 LED_UNDERGLOW_ENABLE = yes
61 endif
62 ifeq ($(findstring na,$(HELIX)), na)
63 LED_ANIMATIONS = no
64 endif
65 ifeq ($(findstring ios,$(HELIX)), ios)
66 IOS_DEVICE_ENABLE = yes
67 endif
68 $(eval $(call HELIX_CUSTOMISE_MSG))
69 $(info )
70endif
71
72# Uncomment these for checking
73# jp: コンパイル時にカスタマイズの状態を表示したい時はコメントをはずします。
74# $(eval $(call HELIX_CUSTOMISE_MSG))
75# $(info )
76
77ifeq ($(strip $(LED_BACK_ENABLE)), yes)
78 RGBLIGHT_ENABLE = yes
79 OPT_DEFS += -DRGBLED_BACK
80 ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
81 $(eval $(call HELIX_CUSTOMISE_MSG))
82 $(error LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE both 'yes')
83 endif
84else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
85 RGBLIGHT_ENABLE = yes
86else
87 RGBLIGHT_ENABLE = no
88endif
89
90ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
91 OPT_DEFS += -DIOS_DEVICE_ENABLE
92endif
93
94ifeq ($(strip $(LED_ANIMATIONS)), yes)
79bff502 95 OPT_DEFS += -DLED_ANIMATIONS
e5f201ed
B
96endif
97
98ifeq ($(strip $(OLED_ENABLE)), yes)
99 OPT_DEFS += -DOLED_ENABLE
100endif
101
102ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
103 OPT_DEFS += -DLOCAL_GLCDFONT
104endif
105
106ifeq ($(strip $(AUDIO_ENABLE)),yes)
107 ifeq ($(strip $(RGBLIGHT_ENABLE)),yes)
108 Link_Time_Optimization = yes
109 endif
110 ifeq ($(strip $(OLED_ENABLE)),yes)
111 Link_Time_Optimization = yes
112 endif
113endif
114
115ifeq ($(strip $(Link_Time_Optimization)),yes)
116 EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
117endif
118
119# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
120SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
121
122# Uncomment these for debugging
123# $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
124# $(info -- OPT_DEFS=$(OPT_DEFS))
125# $(info )