-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakePresets.json
65 lines (65 loc) · 1.96 KB
/
CMakePresets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"version": 4,
"cmakeMinimumRequired": {
"major": 3,
"minor": 23,
"patch": 0
},
"configurePresets": [
{
"name": "general-preset",
"displayName": "Set Variables",
"description": "Sets ROM and libdragon SDK variables",
"hidden": true,
"cacheVariables": {
"SDK_TYPE": "LIBDRAGON",
"HARDWARE_TYPE" : "ALL",
"HARDWARE_REVISION" : "0",
"BUILD_VERSION" : "0.0.1",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/CMake/toolchain.libdragon.cmake",
"TOOLCHAIN_PREFIX": "${sourceDir}/toolchain/gcc-toolchain-mips64",
"LIBDRAGON_PREFIX": "${sourceDir}/toolchain/libdragon"
}
},
{
"name": "release-rom",
"displayName": "libdragon Release ROM",
"description": "Builds ROM using libdragon SDK",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"inherits": [
"general-preset"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "debug-rom",
"displayName": "libdragon Debug ROM",
"description": "Builds Debug ROM using libdragon SDK",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"inherits": [
"general-preset"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
}
],
"buildPresets": [
{
"name": "Debug",
"configurePreset": "debug-rom",
"verbose": true,
"cleanFirst": true
},
{
"name": "Release",
"configurePreset": "release-rom",
"verbose": true,
"cleanFirst": true
}
]
}