|
2 | 2 | "version": 10, |
3 | 3 | "configurePresets": [ |
4 | 4 | { |
5 | | - "name": "common", |
| 5 | + "name": "common-base", |
6 | 6 | "hidden": true, |
| 7 | + "binaryDir": "${sourceDir}/build", |
7 | 8 | "cacheVariables": { |
8 | | - "CMAKE_EXPORT_COMPILE_COMMANDS":true |
| 9 | + "CMAKE_SYSTEM_NAME": { |
| 10 | + "type": "STRING", |
| 11 | + "value": "Generic" |
| 12 | + }, |
| 13 | + "CMAKE_STATIC_LIBRARY_PREFIX": { |
| 14 | + "type": "STRING", |
| 15 | + "value": "" |
| 16 | + }, |
| 17 | + "CMAKE_C_FLAGS_MEDIUM": { |
| 18 | + "type": "STRING", |
| 19 | + "value": "-Om -DNDEBUG" |
| 20 | + }, |
| 21 | + "CMAKE_CXX_FLAGS_MEDIUM": { |
| 22 | + "type": "STRING", |
| 23 | + "value": "-Om -DNDEBUG" |
| 24 | + }, |
| 25 | + "CMAKE_C_FLAGS_HIGHSPEED": { |
| 26 | + "type": "STRING", |
| 27 | + "value": "-Ohs -DNDEBUG" |
| 28 | + }, |
| 29 | + "CMAKE_CXX_FLAGS_HIGHSPEED": { |
| 30 | + "type": "STRING", |
| 31 | + "value": "-Ohs -DNDEBUG" |
| 32 | + }, |
| 33 | + "CMAKE_C_FLAGS_MAXSPEED": { |
| 34 | + "type": "STRING", |
| 35 | + "value": "-Ohs --no_size_constraints -DNDEBUG" |
| 36 | + }, |
| 37 | + "CMAKE_CXX_FLAGS_MAXSPEED": { |
| 38 | + "type": "STRING", |
| 39 | + "value": "-Ohs --no_size_constraints -DNDEBUG" |
| 40 | + }, |
| 41 | + "IAR_RT_LLIO_ARM": { |
| 42 | + "type": "STRING", |
| 43 | + "value": "--semihosting" |
| 44 | + }, |
| 45 | + "IAR_RT_LLIO_RISCV": { |
| 46 | + "type": "STRING", |
| 47 | + "value": "--semihosting" |
| 48 | + }, |
| 49 | + "IAR_RT_LLIO_RH850": { |
| 50 | + "type": "STRING", |
| 51 | + "value": "--debug_lib" |
| 52 | + }, |
| 53 | + "IAR_RT_LLIO_RL78": { |
| 54 | + "type": "STRING", |
| 55 | + "value": "--debug_lib" |
| 56 | + }, |
| 57 | + "IAR_RT_LLIO_RX": { |
| 58 | + "type": "STRING", |
| 59 | + "value": "--debug_lib" |
| 60 | + } |
9 | 61 | }, |
10 | | - "generator": "Ninja Multi-Config", |
11 | | - "binaryDir": "${sourceDir}/build" |
| 62 | + "warnings": { |
| 63 | + "unusedCli": false |
| 64 | + } |
12 | 65 | }, |
13 | 66 | { |
14 | | - "name": "cxriscv", |
15 | | - "displayName": "CXRISCV", |
16 | | - "description": "Configure project for CXRISCV", |
17 | | - "inherits": "common", |
18 | | - "condition": { |
19 | | - "type": "equals", |
20 | | - "lhs": "${hostSystemName}", |
21 | | - "rhs": "Linux" |
22 | | - }, |
23 | | - "environment": { |
24 | | - "CC": "/opt/iar/cxriscv/riscv/bin/iccriscv", |
25 | | - "CXX": "/opt/iar/cxriscv/riscv/bin/iccriscv", |
26 | | - "ASM": "/opt/iar/cxriscv/riscv/bin/iasmriscv" |
27 | | - }, |
| 67 | + "name": "ninja-multi", |
| 68 | + "inherits": "common-base", |
| 69 | + "displayName": "Ninja Multi-Config", |
| 70 | + "description": "Configure a CMake project using the Ninja Multi-Config Generator.", |
| 71 | + "generator": "Ninja Multi-Config", |
28 | 72 | "cacheVariables": { |
29 | | - "SELECTED_TOOL": "cxriscv", |
30 | | - "TOOLKIT_DIR": "/opt/iar/cxriscv/riscv" |
| 73 | + "CMAKE_CONFIGURATION_TYPES": { |
| 74 | + "type": "STRING", |
| 75 | + "value": "Debug;Release;RelWithDebInfo;MinSizeRel;Medium;HighSpeed;MaxSpeed" |
| 76 | + }, |
| 77 | + "CMAKE_PRESET_NAME": { |
| 78 | + "type": "STRING", |
| 79 | + "value": "ninja-multi" |
| 80 | + } |
31 | 81 | } |
32 | 82 | }, |
33 | 83 | { |
34 | | - "name": "bxriscv", |
35 | | - "displayName": "BXRISCV", |
36 | | - "description": "Configure project for BXRISCV", |
37 | | - "inherits": "common", |
38 | | - "condition": { |
39 | | - "type": "equals", |
40 | | - "lhs": "${hostSystemName}", |
41 | | - "rhs": "Linux" |
42 | | - }, |
43 | | - "environment": { |
44 | | - "CC": "/opt/iarsystems/bxriscv/riscv/bin/iccriscv", |
45 | | - "CXX": "/opt/iarsystems/bxriscv/riscv/bin/iccriscv", |
46 | | - "ASM": "/opt/iarsystems/bxriscv/riscv/bin/iasmriscv" |
47 | | - }, |
| 84 | + "name": "ninja", |
| 85 | + "inherits": "common-base", |
| 86 | + "displayName": "Ninja", |
| 87 | + "description": "Configure a CMake project using the Ninja Generator.", |
| 88 | + "generator": "Ninja", |
48 | 89 | "cacheVariables": { |
49 | | - "SELECTED_TOOL": "bxriscv", |
50 | | - "TOOLKIT_DIR": "/opt/iarsystems/bxriscv/riscv" |
| 90 | + "CMAKE_BUILD_TYPE": { |
| 91 | + "type": "STRING", |
| 92 | + "value": "Debug" |
| 93 | + }, |
| 94 | + "CMAKE_PRESET_NAME": { |
| 95 | + "type": "STRING", |
| 96 | + "value": "ninja-multi" |
| 97 | + } |
51 | 98 | } |
52 | 99 | } |
53 | 100 | ], |
54 | 101 | "buildPresets": [ |
55 | 102 | { |
56 | | - "name": "debug", |
| 103 | + "name": "debug-ninja-multi", |
57 | 104 | "displayName": "Debug", |
58 | 105 | "description": "Disable optimizations - include debug information.", |
59 | | - "configurePreset": "cxriscv", |
| 106 | + "configurePreset": "ninja-multi", |
60 | 107 | "configuration": "Debug" |
61 | 108 | }, |
62 | 109 | { |
63 | | - "name": "release", |
| 110 | + "name": "release-ninja-multi", |
64 | 111 | "displayName": "Release", |
65 | 112 | "description": "Optimize for speed - exclude debug information.", |
66 | | - "configurePreset": "cxriscv", |
| 113 | + "configurePreset": "ninja-multi", |
67 | 114 | "configuration": "Release" |
68 | 115 | }, |
69 | 116 | { |
70 | | - "name": "relwithdebinfo", |
| 117 | + "name": "relwithdebinfo-ninja-multi", |
71 | 118 | "displayName": "RelWithDebInfo", |
72 | 119 | "description": "Optimize for speed - include debug information.", |
73 | | - "configurePreset": "cxriscv", |
| 120 | + "configurePreset": "ninja-multi", |
74 | 121 | "configuration": "RelWithDebInfo" |
75 | 122 | }, |
76 | 123 | { |
77 | | - "name": "minsizerel", |
| 124 | + "name": "minsizerel-ninja-multi", |
78 | 125 | "displayName": "MinSizeRel", |
79 | 126 | "description": "Optimize for smallest binary size - exclude debug information.", |
80 | | - "configurePreset": "cxriscv", |
| 127 | + "configurePreset": "ninja-multi", |
81 | 128 | "configuration": "MinSizeRel" |
82 | 129 | }, |
83 | 130 | { |
84 | | - "name": "highspeed", |
| 131 | + "name": "medium-ninja-multi", |
| 132 | + "displayName": "Medium", |
| 133 | + "description": "Optimize for medium execution speed - exclude debug information.", |
| 134 | + "configurePreset": "ninja-multi", |
| 135 | + "configuration": "Medium" |
| 136 | + }, |
| 137 | + { |
| 138 | + "name": "highspeed-ninja-multi", |
| 139 | + "displayName": "HighSpeed", |
| 140 | + "description": "Optimize for high execution speed - exclude debug information.", |
| 141 | + "configurePreset": "ninja-multi", |
| 142 | + "configuration": "HighSpeed" |
| 143 | + }, |
| 144 | + { |
| 145 | + "name": "maxspeed-ninja-multi", |
| 146 | + "displayName": "MaxSpeed", |
| 147 | + "description": "Optimize for maximum execution speed - exclude debug information.", |
| 148 | + "configurePreset": "ninja-multi", |
| 149 | + "configuration": "MaxSpeed" |
| 150 | + }, |
| 151 | + { |
| 152 | + "name": "debug-ninja", |
| 153 | + "displayName": "Debug", |
| 154 | + "description": "Disable optimizations - include debug information.", |
| 155 | + "configurePreset": "ninja", |
| 156 | + "configuration": "Debug" |
| 157 | + }, |
| 158 | + { |
| 159 | + "name": "release-ninja", |
| 160 | + "displayName": "Release", |
| 161 | + "description": "Optimize for speed - exclude debug information.", |
| 162 | + "configurePreset": "ninja", |
| 163 | + "configuration": "Release" |
| 164 | + }, |
| 165 | + { |
| 166 | + "name": "relwithdebinfo-ninja", |
| 167 | + "displayName": "RelWithDebInfo", |
| 168 | + "description": "Optimize for speed - include debug information.", |
| 169 | + "configurePreset": "ninja", |
| 170 | + "configuration": "RelWithDebInfo" |
| 171 | + }, |
| 172 | + { |
| 173 | + "name": "minsizerel-ninja", |
| 174 | + "displayName": "MinSizeRel", |
| 175 | + "description": "Optimize for smallest binary size - exclude debug information.", |
| 176 | + "configurePreset": "ninja", |
| 177 | + "configuration": "MinSizeRel" |
| 178 | + }, |
| 179 | + { |
| 180 | + "name": "medium-ninja", |
| 181 | + "displayName": "Medium", |
| 182 | + "description": "Optimize for medium execution speed - exclude debug information.", |
| 183 | + "configurePreset": "ninja", |
| 184 | + "configuration": "Medium" |
| 185 | + }, |
| 186 | + { |
| 187 | + "name": "highspeed-ninja", |
85 | 188 | "displayName": "HighSpeed", |
86 | 189 | "description": "Optimize for high execution speed - exclude debug information.", |
87 | | - "configurePreset": "cxriscv", |
| 190 | + "configurePreset": "ninja", |
88 | 191 | "configuration": "HighSpeed" |
89 | 192 | }, |
90 | 193 | { |
91 | | - "name": "maxspeed", |
| 194 | + "name": "maxspeed-ninja", |
92 | 195 | "displayName": "MaxSpeed", |
93 | 196 | "description": "Optimize for maximum execution speed - exclude debug information.", |
94 | | - "configurePreset": "cxriscv", |
| 197 | + "configurePreset": "ninja", |
95 | 198 | "configuration": "MaxSpeed" |
96 | 199 | } |
97 | 200 | ] |
|
0 commit comments