-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakePresets.json
More file actions
176 lines (176 loc) · 6.21 KB
/
Copy pathCMakePresets.json
File metadata and controls
176 lines (176 loc) · 6.21 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 23,
"patch": 0
},
"configurePresets": [
{
"name": "cp0-cross",
"displayName": "CardputerZero Cross Build",
"description": "Configure cross build for CardputerZero with Ninja Multi-Config",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/build/${presetName}",
"inherits": [
"cp0-native"
],
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/cmake/toolchains/cp0-aarch64-linux-gnu.cmake",
"CM0_SDK_ROOT": "${sourceDir}/.cache/sdk_bsp-src",
"CMAKE_SYSROOT": "${sourceDir}/.cache/sdk_bsp-src",
"CM0_ALLOW_FETCH_DEPS": "ON"
}
},
{
"name": "cp0-native",
"displayName": "CardputerZero Native Build",
"description": "Configure native build for CardputerZero with Ninja Multi-Config",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "/usr/bin/gcc",
"CMAKE_CXX_COMPILER": "/usr/bin/g++",
"CMAKE_CONFIGURATION_TYPES": "Debug;Release",
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.cache/cp0-deps",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/${presetName}/install",
"USE_DESKTOP": "OFF",
"APP_USE_DRM": "OFF"
}
},
{
"name": "darwin-arm64",
"displayName": "Apple Silicon Desktop Builds",
"description": "Configure for Apple Silicon using Ninja Multi-Config",
"binaryDir": "${sourceDir}/build/${presetName}",
"generator": "Ninja Multi-Config",
"cacheVariables": {
"CMAKE_OSX_ARCHITECTURES": "arm64",
"CMAKE_CONFIGURATION_TYPES": "Debug;Release",
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.cache/darwin-arm64-deps",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/${presetName}/install",
"CMAKE_C_COMPILER": "/usr/bin/clang",
"CMAKE_CXX_COMPILER": "/usr/bin/clang++",
"USE_DESKTOP": "ON"
}
},
{
"name": "darwin-x86-64",
"displayName": "Apple Intel Desktop Builds",
"description": "Configure for Apple Intel using Ninja Multi-Config",
"binaryDir": "${sourceDir}/build/${presetName}",
"generator": "Ninja Multi-Config",
"inherits": [
"darwin-arm64"
],
"cacheVariables": {
"CMAKE_OSX_ARCHITECTURES": "x86_64",
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.cache/darwin-x86_64-deps"
}
},
{
"name": "linux-x86-64",
"displayName": "Linux Desktop Builds",
"description": "Configure for x86_64 Linux using Ninja Multi-Config",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_CONFIGURATION_TYPES": "Debug;Release",
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.cache/linux-x86_64-deps",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/${presetName}/install",
"CMAKE_C_COMPILER": "/usr/bin/gcc",
"CMAKE_CXX_COMPILER": "/usr/bin/g++",
"USE_DESKTOP": "ON"
}
}
],
"buildPresets": [
{
"name": "cp0-cross-dbg",
"configurePreset": "cp0-cross",
"configuration": "Debug"
},
{
"name": "cp0-cross-rel",
"configurePreset": "cp0-cross",
"configuration": "Release"
},
{
"name": "cp0-native-dbg",
"configurePreset": "cp0-native",
"configuration": "Debug"
},
{
"name": "cp0-native-rel",
"configurePreset": "cp0-native",
"configuration": "Release"
},
{
"name": "darwin-arm64-dbg",
"configurePreset": "darwin-arm64",
"configuration": "Debug"
},
{
"name": "darwin-arm64-rel",
"configurePreset": "darwin-arm64",
"configuration": "Release"
},
{
"name": "darwin-x86-64-dbg",
"configurePreset": "darwin-x86-64",
"configuration": "Debug"
},
{
"name": "darwin-x86-64-rel",
"configurePreset": "darwin-x86-64",
"configuration": "Release"
},
{
"name": "linux-x86-64-dbg",
"configurePreset": "linux-x86-64",
"configuration": "Debug"
},
{
"name": "linux-x86-64-rel",
"configurePreset": "linux-x86-64",
"configuration": "Release"
}
],
"packagePresets": [
{
"name": "cp0-cross-deb",
"displayName": "CardputerZero Debian Package",
"description": "Package the CardputerZero release build as a Debian package in dist/",
"configurePreset": "cp0-cross",
"generators": [
"DEB"
],
"configurations": [
"Release"
],
"configFile": "${sourceDir}/build/cp0-cross/CPackConfig.cmake",
"packageDirectory": "${sourceDir}/dist"
}
],
"workflowPresets": [
{
"name": "cp0-cross-package",
"displayName": "Configure, Build, and Package CardputerZero",
"description": "Configure cp0-cross, build Release, then produce the Debian package",
"steps": [
{
"type": "configure",
"name": "cp0-cross"
},
{
"type": "build",
"name": "cp0-cross-rel"
},
{
"type": "package",
"name": "cp0-cross-deb"
}
]
}
]
}