Skip to content

Instantly share code, notes, and snippets.

@nfbot
Last active May 4, 2019 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfbot/06723075c41d4e8f66ba511a4ce46e3f to your computer and use it in GitHub Desktop.
Save nfbot/06723075c41d4e8f66ba511a4ce46e3f to your computer and use it in GitHub Desktop.
Template of cmake-variants.json for Mikrobus QUAIL reference target
{
"buildType": {
"default": "debug",
"choices": {
"debug": {
"short": "Debug",
"long": "Emit debug information without performing optimizations",
"buildType": "Debug"
},
"minsize": {
"short": "MinSizeRel",
"long": "Optimize for smallest binary size",
"buildType": "MinSizeRel"
},
"reldeb": {
"short": "RelWithDebInfo",
"long": "Perform optimizations AND include debugging information",
"buildType": "RelWithDebInfo"
}
}
},
"linkage": {
"default": "",
"choices": {
"MBN_QUAIL": {
"short": "MBN_QUAIL",
"settings": {
"BUILD_VERSION" : "0.9.99.999",
"TOOLCHAIN_PREFIX" : "E:/GNU_Tools_ARM_Embedded/7-2017-q4-major",
"TOOL_HEX2DFU_PREFIX" : "E:/GitHub/nf-interpreter",
"TARGET_SERIES" : "STM32F4xx",
"USE_FPU" : "TRUE",
"CHIBIOS_SOURCE" : "E:/GitHub/ChibiOS",
"CHIBIOS_BOARD" : "MBN_QUAIL",
"SWO_OUTPUT" : "OFF",
"USE_RNG" : "ON",
"NF_BUILD_RTM" : "OFF",
"NF_FEATURE_DEBUGGER" : "ON",
"NF_FEATURE_RTC" : "ON",
"API_Windows.Devices.Gpio" : "ON",
"API_Windows.Devices.Spi" : "ON",
"API_Windows.Devices.I2c" : "ON",
"API_Windows.Devices.Pwm" : "ON",
"API_Windows.Devices.SerialCommunication" : "ON"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment