From 9717cb7d241e00067a00469c079d16054c15879e Mon Sep 17 00:00:00 2001 From: Edwin <20777515+Lucien950@users.noreply.github.com> Date: Mon, 2 Dec 2024 00:46:25 -0800 Subject: [PATCH] Ninja Generator Presets for CMake (#1401) ### Changelist ### Testing Done ### Resolved Tickets --- CMakePresets.json | 144 +++++++++++++++++++++++++--------------------- 1 file changed, 77 insertions(+), 67 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 1ae52d4472..009ab54c3b 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -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": [] } \ No newline at end of file