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