]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/helix/rev2/keymaps/five_rows/rules.mk
update Helix keymap 'five_rows' (#2635)
[qmk_firmware.git] / keyboards / helix / rev2 / keymaps / five_rows / rules.mk
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 #
6 BOOTMAGIC_ENABLE = no       # Virtual DIP switch configuration(+1000)
7 MOUSEKEY_ENABLE = no       # Mouse keys(+4700)
8 EXTRAKEY_ENABLE = no       # Audio control and System control(+450)
9 CONSOLE_ENABLE = no         # Console for debug(+400)
10 COMMAND_ENABLE = no        # Commands for debug and configuration
11 NKRO_ENABLE = no            # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
12 BACKLIGHT_ENABLE = no      # Enable keyboard backlight functionality
13 MIDI_ENABLE = no            # MIDI controls
14 AUDIO_ENABLE = no           # Audio output on port C6
15 UNICODE_ENABLE = no         # Unicode
16 BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
17 RGBLIGHT_ENABLE = no        # Enable WS2812 RGB underlight.  Do not enable this with audio at the same time.
18 SWAP_HANDS_ENABLE = no        # Enable one-hand typing
19
20 define 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))
27 endef
28
29 # Helix keyboard customize
30 # you can edit follows 5 Variables
31 #  jp: 以下の5つの変数を必要に応じて編集します。
32 OLED_ENABLE = no            # OLED_ENABLE
33 LED_BACK_ENABLE = no        # LED backlight (Enable WS2812 RGB underlight.)
34 LED_UNDERGLOW_ENABLE = no   # LED underglow (Enable WS2812 RGB underlight.)
35 LED_ANIMATIONS = yes        # LED animations
36 IOS_DEVICE_ENABLE = no      # connect to IOS device (iPad,iPhone)
37
38 ####  LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
39 ####    Do not enable these with audio at the same time.
40
41 ### Helix keyboard 'five_rows' keymap: convenient command line option
42 ##    make HELIX=<options> helix:five_rows
43 ##    option= oled | back | under | na | ios
44 ##    ex.
45 ##      make HELIX=oled          helix:five_rows
46 ##      make HELIX=oled,back     helix:five_rows
47 ##      make HELIX=oled,under    helix:five_rows
48 ##      make HELIX=oled,back,na  helix:five_rows
49 ##      make HELIX=oled,back,ios helix:five_rows
50 ##
51 ifneq ($(strip $(HELIX)),)
52   ifeq ($(findstring oled,$(HELIX)), oled)
53     OLED_ENABLE = yes
54   endif
55   ifeq ($(findstring back,$(HELIX)), back)
56     LED_BACK_ENABLE = yes
57   else ifeq ($(findstring under,$(HELIX)), under)
58     LED_UNDERGLOW_ENABLE = yes
59   endif
60   ifeq ($(findstring na,$(HELIX)), na)
61     LED_ANIMATIONS = no
62   endif
63   ifeq ($(findstring ios,$(HELIX)), ios)
64     IOS_DEVICE_ENABLE = yes
65   endif
66   $(eval $(call HELIX_CUSTOMISE_MSG))
67   $(info )
68 endif
69
70 # Uncomment these for checking
71 #   jp: コンパイル時にカスタマイズの状態を表示したい時はコメントをはずします。
72 # $(eval $(call HELIX_CUSTOMISE_MSG))
73 # $(info )
74
75 ifeq ($(strip $(LED_BACK_ENABLE)), yes)
76   RGBLIGHT_ENABLE = yes
77   OPT_DEFS += -DRGBLED_BACK
78   ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
79     $(eval $(call HELIX_CUSTOMISE_MSG))
80     $(error LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE both 'yes')
81   endif
82 else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
83   RGBLIGHT_ENABLE = yes
84 else
85   RGBLIGHT_ENABLE = no
86 endif
87
88 ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
89     OPT_DEFS += -DIOS_DEVICE_ENABLE
90 endif
91
92 ifeq ($(strip $(LED_ANIMATIONS)), yes)
93     OPT_DEFS += -DRGBLIGHT_ANIMATIONS
94 endif
95
96 ifeq ($(strip $(OLED_ENABLE)), yes)
97     OPT_DEFS += -DOLED_ENABLE
98 endif
99
100 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
101 SLEEP_LED_ENABLE = no    # Breathing sleep LED during USB suspend
102
103 ifndef QUANTUM_DIR
104         include ../../../../Makefile
105 endif
106
107 # Uncomment these for debugging
108 # $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
109 # $(info -- OPT_DEFS=$(OPT_DEFS))
110 # $(info )