rules.mk 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. LTO_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. OLED_SELECT = core
  21. # convert Helix-specific options (that represent combinations of standard options)
  22. # into QMK standard options.
  23. include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
  24. ifeq ($(strip $(HELIX_ROWS)), 4)
  25. SRC += keymap_4rows.c
  26. else ifeq ($(strip $(HELIX_ROWS)), 5)
  27. SRC += keymap_5rows.c
  28. endif
  29. ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  30. OPT_DEFS += -DRGBLED_BACK
  31. endif
  32. ifeq ($(strip $(OLED_ENABLE)), yes)
  33. SRC += oled.c
  34. endif