Kiibohd Controller
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. ###| CMAKE Kiibohd Controller |###
  2. #
  3. # Jacob Alexander 2011-2014
  4. # Due to this file's usefulness:
  5. #
  6. # Released into the Public Domain
  7. #
  8. ###
  9. ###
  10. # Chip Selection
  11. #
  12. #| You _MUST_ set this to match the microcontroller you are trying to compile for
  13. #| You _MUST_ clean the build directory if you change this value
  14. #|
  15. set( CHIP
  16. # "at90usb162" # Teensy 1.0 (avr)
  17. # "atmega32u4" # Teensy 2.0 (avr)
  18. # "at90usb646" # Teensy++ 1.0 (avr)
  19. "at90usb1286" # Teensy++ 2.0 (avr)
  20. # "mk20dx128" # Teensy 3.0 (arm)
  21. # "mk20dx128vlf5" # McHCK mk20dx128vlf5
  22. # "mk20dx256" # Teensy 3.1 (arm)
  23. )
  24. ###
  25. # Compiler Intialization
  26. #
  27. set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/Lib/CMake )
  28. include( initialize )
  29. ###
  30. # Project Modules
  31. #
  32. #| Note: This is the only section you probably want to modify
  33. #| Each module is defined by it's own folder (e.g. Scan/Matrix represents the "Matrix" module)
  34. #| All of the modules must be specified, as they generate the sources list of files to compile
  35. #| Any modifications to this file will cause a complete rebuild of the project
  36. #| Please look at the {Scan,Macro,Output,Debug} for information on the modules and how to create new ones
  37. ##| Deals with acquiring the keypress information and turning it into a key index
  38. set( ScanModule "DPH" )
  39. #set( ScanModule "MD1" )
  40. ##| Provides the mapping functions for DefaultMap and handles any macro processing before sending to the OutputModule
  41. set( MacroModule "PartialMap" )
  42. ##| Sends the current list of usb key codes through USB HID
  43. set( OutputModule "pjrcUSB" )
  44. ##| Debugging source to use, each module has it's own set of defines that it sets
  45. set( DebugModule "full" )
  46. ###
  47. # Keymap Configuration (do not include the .kll extension)
  48. #
  49. #| Do not include the .kll extension
  50. #| * BaseMap maps the native keyboard scan codes to USB Codes so the layout is compatible with all other layouts
  51. #| * DefaultMap allows the default keymap to be modified from the BaseMap
  52. #| * PartialMaps is a set of dynamically set layers (there is no limit, but too many may use up too much RAM...)
  53. #| BaseMap generally does not need to be changed from "defaultMap"
  54. #|
  55. #| Syntax:
  56. #| myMap
  57. #| * defines a single .kll layout file, double-quotes are needed to distinguish between layers
  58. #| "myMap specialLayer"
  59. #| * defines myMap to be the main layout, then replace specialLayers on top of it
  60. #|
  61. #| - Only for PartialMaps -
  62. #| "myMap specialLayer" "myMap colemak" dvorak
  63. #| * As before, but also generates a second layer at index 2 and third at index 3
  64. #|
  65. #| NOTE: Remember to add key(s) to enable each Partial Layer
  66. #| NOTE2: Layers are always based up the BaseMap (which should be an ANSI-like mapping)
  67. #| NOTE3: Compiler looks in kll/layouts and the build directory for layout files (precedence on build directory)
  68. ##| Set the base keyboard .kll map, defaults to "defaultMap" if not found
  69. ##| Looks in Scan/<Module Name> for the available BaseMaps
  70. ##| TODO Support layering in basemap
  71. set( BaseMap "kishsaver" )
  72. #set( BaseMap "defaultMap" )
  73. ##| Layer additonal .kll maps on the BaseMap, layers are in order from 1st to nth
  74. ##| Can be set to ""
  75. #set( DefaultMap "colemak stdFuncMap" )
  76. set( DefaultMap "colemak kishsaver_unix1 stdFuncMap" )
  77. ##| ParitalMaps available on top of the BaseMap. See above for syntax on specifying multiple layers vs. layering
  78. ##| Can be set to ""
  79. set( PartialMaps "hhkbpro2" )
  80. ###
  81. # Source Defines (in addition to the selected Modules)
  82. #
  83. set( MAIN_SRCS
  84. main.c
  85. )
  86. ###
  87. # Project Description
  88. #
  89. #| Project
  90. project( kiibohd_controller )
  91. #| Target Name (output name)
  92. set( TARGET kiibohd )
  93. #| General Settings
  94. cmake_minimum_required( VERSION 2.8 )
  95. ###
  96. # Module Initialization / Compilation / Targets
  97. #
  98. include( modules )
  99. include( kll ) # Generate kll layouts if necessary
  100. include( build )