-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
113 lines (113 loc) · 2.81 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 27,
"patch": 0
},
"configurePresets": [
{
"name": "std",
"description": "This preset makes sure the project actually builds with at least the specified standard",
"hidden": true,
"cacheVariables": {
"CMAKE_C_EXTENSIONS": "OFF",
"CMAKE_C_STANDARD": "17",
"CMAKE_C_STANDARD_REQUIRED": "ON",
"CMAKE_CXX_EXTENSIONS": "OFF",
"CMAKE_CXX_STANDARD": "20",
"CMAKE_CXX_STANDARD_REQUIRED": "ON"
}
},
{
"name": "configurePresets_base",
"hidden": true,
"inherits": [
"std"
],
"condition": true,
"displayName": "configurePresets_base",
"description": "base configurePresets",
"generator": "Unix Makefiles",
"toolchainFile": "",
"binaryDir": "",
"installDir": "",
"cacheVariables": {
"CMAKE_VERBOSE_MAKEFILE": {
"type": "BOOL",
"value": "TRUE"
},
"CMAKE_EXPORT_COMPILE_COMMANDS": {
"type": "BOOL",
"value": "ON"
},
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Debug"
},
"COVERAGE_OUTPUT_DIR": {
"type": "STRING",
"value": "coverage"
},
"PLATFORM": {
"type": "STRING",
"value": "qemu"
},
"QEMU_GDB_PORT": {
"type": "STRING",
"value": "tcp::1234"
},
"QEMU_MONITOR_ARG": {
"type": "STRING",
"value": "telnet::2333,server,nowait"
},
"BOOT_ELF_OUTPUT_NAME": {
"type": "STRING",
"value": "boot.elf"
},
"BOOT_EFI_OUTPUT_NAME": {
"type": "STRING",
"value": "boot.efi"
},
"KERNEL_ELF_OUTPUT_NAME": {
"type": "STRING",
"value": "kernel.elf"
}
}
},
{
"name": "build_x86_64",
"hidden": false,
"inherits": [
"configurePresets_base"
],
"displayName": "build x86_64 kernel",
"description": "build x86_64 kernel",
"toolchainFile": "${sourceDir}/cmake/x86_64-x86_64-gcc.cmake",
"binaryDir": "${sourceDir}/build_x86_64",
"cacheVariables": {
"TARGET_ARCH": {
"type": "STRING",
"value": "x86_64"
}
}
},
{
"name": "build_riscv64",
"hidden": false,
"inherits": [
"configurePresets_base"
],
"displayName": "build riscv64 kernel",
"description": "build riscv64 kernel",
"toolchainFile": "${sourceDir}/cmake/x86_64-riscv64-gcc.cmake",
"binaryDir": "${sourceDir}/build_riscv64",
"cacheVariables": {
"TARGET_ARCH": {
"type": "STRING",
"value": "riscv64"
}
}
}
]
}