Skip to content

Commit 4a0f2cb

Browse files
committed
Add basic CMakePresets.json file
Everything is set to work in the dev container by default.
1 parent 228e7f2 commit 4a0f2cb

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

CMakePresets.json

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"version": 3,
3+
"cmakeMinimumRequired": {
4+
"major": 3,
5+
"minor": 22,
6+
"patch": 0
7+
},
8+
"configurePresets": [
9+
{
10+
"name": "base",
11+
"description": "Default build using devcontainer tools",
12+
"generator": "Ninja",
13+
"hidden": true,
14+
"cacheVariables": {
15+
"ARM_NONE_EABI_TOOLCHAIN_PATH": {
16+
"type": "PATH",
17+
"value": "/opt/gcc-arm-none-eabi-10.3-2021.10"
18+
},
19+
"NRF5_SDK_PATH": {
20+
"type": "PATH",
21+
"value": "/opt/nRF5_SDK_15.3.0_59ac345"
22+
},
23+
"BUILD_DFU": {
24+
"type": "BOOL",
25+
"value": "ON"
26+
},
27+
"BUILD_RESOURCES": {
28+
"type": "BOOL",
29+
"value": "ON"
30+
},
31+
"TARGET_DEVICE": {
32+
"type": "STRING",
33+
"value": "PINETIME"
34+
}
35+
}
36+
},
37+
{
38+
"name": "pinetime-debug",
39+
"inherits": "base",
40+
"displayName": "Pinetime Debug",
41+
"description": "Debug build using Ninja",
42+
"binaryDir": "build/debug",
43+
"cacheVariables": {
44+
"CMAKE_BUILD_TYPE": "Debug"
45+
}
46+
},
47+
{
48+
"name": "pinetime-release",
49+
"inherits": "base",
50+
"displayName": "Pinetime Release",
51+
"description": "Release build using Ninja",
52+
"binaryDir": "build/release",
53+
"cacheVariables": {
54+
"CMAKE_BUILD_TYPE": "Release"
55+
}
56+
}
57+
],
58+
"buildPresets": [
59+
{
60+
"name": "pinetime-release",
61+
"configurePreset": "pinetime-release"
62+
},
63+
{
64+
"name": "pinetime-debug",
65+
"configurePreset": "pinetime-debug"
66+
}
67+
]
68+
}

0 commit comments

Comments
 (0)