rules.mk 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # QMK Standard 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. # See TOP/keyboards/helix/rules.mk for a list of options that can be set.
  6. # See TOP/docs/config_options.md for more information.
  7. #
  8. LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option
  9. TAP_DANCE_ENABLE = yes
  10. # Helix Spacific Build Options
  11. # you can uncomment and edit follows 7 Variables
  12. # jp: 以下の7つの変数を必要に応じて編集し、コメントアウトをはずします。
  13. # HELIX_ROWS = 5 # Helix Rows is 4 or 5
  14. # OLED_ENABLE = no # OLED_ENABLE
  15. # LOCAL_GLCDFONT = no # use each keymaps "helixfont.h" instead of "common/glcdfont.c"
  16. # LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
  17. # LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
  18. # LED_ANIMATIONS = yes # LED animations
  19. # IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
  20. # convert Helix-specific options (that represent combinations of standard options)
  21. # into QMK standard options.
  22. include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
  23. ifeq ($(strip $(HELIX_ROWS)), 4)
  24. SRC += keymap_4rows.c
  25. else ifeq ($(strip $(HELIX_ROWS)), 5)
  26. SRC += keymap_5rows.c
  27. endif
  28. ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  29. OPT_DEFS += -DRGBLED_BACK
  30. endif
  31. ifeq ($(strip $(OLED_ENABLE)), yes)
  32. SRC += oled.c
  33. endif