Skip to content

Commit

Permalink
Ninja Generator Presets for CMake (#1401)
Browse files Browse the repository at this point in the history
### Changelist 
<!-- Give a list of the changes covered in this PR. This will help both
you and the reviewer keep this PR within scope. -->

### Testing Done
<!-- Outline the testing that was done to demonstrate the changes are
solid. This could be unit tests, integration tests, testing on the car,
etc. Include relevant code snippets, screenshots, etc as needed. -->

### Resolved Tickets
<!-- Link any tickets that this PR resolves. -->
  • Loading branch information
Lucien950 authored Dec 2, 2024
1 parent 10fed44 commit 9717cb7
Showing 1 changed file with 77 additions and 67 deletions.
144 changes: 77 additions & 67 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,79 @@
{
"version": 6,
"configurePresets": [
{
"name": "default",
"hidden": true
},
{
"name": "FW Dev",
"description": "Development build for the Firmware, including debug information and no optimizations.",
"inherits": "default",
"toolchainFile": "${sourceDir}/gcc-arm-none-eabi.cmake",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"PLATFORM": "firmware",
"TARGET": "binary",
"HANDLE_DEPS": "OFF",
"USE_COMMIT_INFO": "MINIMAL",
"NO_VENV": "ON"
},
"binaryDir": "build_fw_dev"
},
{
"name": "FW Deploy",
"description": "Deployment build for the Firmware, including optimizations and no debug information.",
"inherits": "default",
"toolchainFile": "${sourceDir}/gcc-arm-none-eabi.cmake",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"PLATFORM": "firmware",
"TARGET": "binary",
"HANDLE_DEPS": "OFF",
"USE_COMMIT_INFO": "ON",
"NO_VENV": "ON"
},
"binaryDir": "build_fw_deploy"
},
{
"name": "FW Deploy CI",
"inherits": "FW Deploy",
"cacheVariables": {
"FIX_FORMATTING": "OFF"
},
"generator": "Unix Makefiles"
},
{
"name": "FW Test",
"description": "Test build for the Firmware, including debug information and no optimizations.",
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"PLATFORM": "firmware",
"TARGET": "test",
"HANDLE_DEPS": "OFF",
"NO_VENV": "ON"
},
"binaryDir": "build_fw_test"
},
{
"name": "FW Test CI",
"inherits": "FW Test",
"cacheVariables": {
"FIX_FORMATTING": "OFF"
},
"generator": "Unix Makefiles"
}
],
"buildPresets": []
"version": 6,
"configurePresets": [
{
"name": "default",
"hidden": true
},
{
"name": "FW Dev",
"description": "Development build for the Firmware, including debug information and no optimizations.",
"inherits": "default",
"toolchainFile": "${sourceDir}/gcc-arm-none-eabi.cmake",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"PLATFORM": "firmware",
"TARGET": "binary",
"HANDLE_DEPS": "OFF",
"USE_COMMIT_INFO": "MINIMAL",
"NO_VENV": "ON"
},
"binaryDir": "build_fw_dev"
},
{
"name": "FW Deploy",
"description": "Deployment build for the Firmware, including optimizations and no debug information.",
"inherits": "default",
"toolchainFile": "${sourceDir}/gcc-arm-none-eabi.cmake",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"PLATFORM": "firmware",
"TARGET": "binary",
"HANDLE_DEPS": "OFF",
"USE_COMMIT_INFO": "ON",
"NO_VENV": "ON"
},
"binaryDir": "build_fw_deploy"
},
{
"name": "FW Dev Ninja",
"inherits": "FW Dev",
"generator": "Ninja"
},
{
"name": "FW Deploy Ninja",
"inherits": "FW Deploy",
"generator": "Ninja"
},
{
"name": "FW Deploy CI",
"inherits": "FW Deploy",
"cacheVariables": {
"FIX_FORMATTING": "OFF"
},
"generator": "Unix Makefiles"
},
{
"name": "FW Test",
"description": "Test build for the Firmware, including debug information and no optimizations.",
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"PLATFORM": "firmware",
"TARGET": "test",
"HANDLE_DEPS": "OFF",
"NO_VENV": "ON"
},
"binaryDir": "build_fw_test"
},
{
"name": "FW Test CI",
"inherits": "FW Test",
"cacheVariables": {
"FIX_FORMATTING": "OFF"
},
"generator": "Unix Makefiles"
}
],
"buildPresets": []
}

0 comments on commit 9717cb7

Please sign in to comment.