Repository navigation
Expand file tree
/
Copy pathproject.conf
More file actions
288 lines (265 loc) · 7.18 KB
/
Copy pathproject.conf
File metadata and controls
288 lines (265 loc) · 7.18 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
# Project name
name: gnome
# The minimum BuildStream version
min-version: 2.8
# Where elements are stored
element-path: elements
# The uri to download built artifacts from for this project
artifacts:
- url: https://gbm.gnome.org:11003
connection-config:
keepalive-time: 60
retry-limit: 5
retry-delay: 500
request-timeout: 180
source-caches:
- url: https://gbm.gnome.org:11003
connection-config:
keepalive-time: 60
retry-limit: 5
retry-delay: 500
request-timeout: 180
fatal-warnings:
- overlaps
- unaliased-url
- unstaged-files
(@):
- freedesktop-sdk.bst:include/runtime.yml
- include/aliases.yml
- include/mirrors.yml
- include/recc.yml
- include/shell.yml
# Options to specify for the project, these provide
# command line switches which control the behavior of
# conditional directives in the element.bst files.
#
options:
arch:
type: arch
description: Machine architecture
variable: arch
values:
- aarch64
- x86_64
- ppc64le
- riscv64
toolbox:
type: bool
default: false
description: mount host resources similar to toolbox
x86_64_v3:
type: bool
description: Enable x86_64-v3 (EXPERIMENTAL)
default: false
channel:
type: enum
description: Version channel of the OS
default: nightly
values:
- nightly
- stable
recc:
type: enum
description: |
configuration to use for RECC
* passthrough: call compiler directly (useful to check if the issue is in RECC)
* cache-only: check if the build is in the cache, otherwise call the compiler
locally (in the same sandbox).
* remote-execution: check if the build is in the cache, otherwise run remotely
(in a separate sandbox) and cache the result.
* upload-local-build: check if the build is in the cache, otherwise call the compiler
locally and cache the result (faster but more dangerous)
values:
- passthrough
- cache-only
- remote-execution
- upload-local-build
default: remote-execution
recc_localcas:
type: bool
description: |
Use LocalCAS API with RECC (can improve performance)
default: false
recc_jobserver:
type: bool
description: |
Use jobserver with RECC (can improve performance with remote execution)
default: false
# Some overrides to the default sandbox execution environment
#
environment:
LC_ALL: en_US.UTF-8
(?):
- arch == "aarch64":
# Our aarch64 CI runner uses CentOS, which uses 64 KB page sizes, but we do not
# want to support large pages in WebKit as this requires disabling both JIT and
# bmalloc, including all heap security features. As a workaround until the CI
# runner is switched from CentOS to a more-compatible OS, we can disable these
# features only during the build process, so that gobject-introspection does not
# crash during the build. This workaround is required in project.conf because
# it's needed for every element that depends on WebKit, which is a lot. Remove
# when the aarch64 CI no longer uses CentOS.
JavaScriptCoreUseJIT: '0'
Malloc: '1'
sandbox:
build-arch: '%{arch}'
# Some overrides to element configuration based on type
#
# Here we can set a project wide options for various build systems,
# e.g. we can add --disable-gtk-doc to every `./configure` line.
elements:
autotools:
variables:
conf-global: >-
--disable-static
--disable-Werror
--host=%{triplet}
--build=%{triplet}
--disable-dependency-tracking
remove-libtool-modules: true
remove-libtool-libraries: true
environment:
AM_UPDATE_INFO_DIR: no
cmake:
variables:
cmake-global: >-
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_C_FLAGS_RELWITHDEBINFO="-DNDEBUG"
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-DNDEBUG"
generator: Ninja
make: jobserver_pool.py ${JOBS} cmake --build %{build-dir}
make-install: env DESTDIR="%{install-root}" cmake --install %{build-dir}
meson:
variables:
meson-global: --buildtype=plain --auto-features=enabled --wrap-mode=nodownload
meson-build: jobserver_pool.py -j${JOBS} ninja -v -C %{build-dir}
filter:
config:
include-orphans: true
cargo:
config:
install-commands:
(>):
- "%{install-extra}"
sources:
git_repo:
config:
ref-format: git-describe
cargo2:
config:
url: crates:crates
git-mirrors:
https://github.com/: "github:"
https://gitlab.gnome.org/GNOME/: "gnome:"
https://codeberg.org/: "codeberg:"
pypi:
config:
url: "pypi:"
split-rules:
devel:
(>):
- '%{indep-libdir}/**/include'
- '%{indep-libdir}/**/include/**'
- '%{bindir}/*-config'
- '%{libdir}/pkgconfig'
- '%{datadir}/pkgconfig'
- '%{datadir}/aclocal'
- '%{libdir}/cmake'
- '%{libdir}/cmake/**'
- '%{datadir}/cmake'
- '%{datadir}/cmake/**'
- '%{datadir}/gdb'
- '%{datadir}/gdb/**'
- '%{datadir}/gir-1.0'
- '%{datadir}/gir-1.0/**'
- '%{datadir}/vala*/vapi'
- '%{datadir}/vala*/vapi/**'
- '%{datadir}/installed-tests'
- '%{datadir}/installed-tests/**'
- '%{libexecdir}/installed-tests'
- '%{libexecdir}/installed-tests/**'
# These files are needed by GNOME OS, but not by Flatpak runtimes.
vm-only:
- '%{indep-libdir}/modprobe.d'
- '%{indep-libdir}/modprobe.d/**'
- '%{indep-libdir}/systemd'
- '%{indep-libdir}/systemd/**'
- '%{indep-libdir}/sysusers.d'
- '%{indep-libdir}/sysusers.d/**'
- '%{indep-libdir}/tmpfiles.d'
- '%{indep-libdir}/tmpfiles.d/**'
- '%{indep-libdir}/udev'
- '%{indep-libdir}/udev/**'
- '%{libdir}/modprobe.d'
- '%{libdir}/modprobe.d/**'
doc:
(>):
- '%{datadir}/gtk-doc/html'
- '%{datadir}/gtk-doc/html/**'
source:
- '%{sourcedir}'
- '%{sourcedir}/**'
vm:
- '%{datadir}/dbus-1/**'
variables:
branch: master
branch-nice-name: Nightly #Should be %{branch} if not master
installer-volume-id: "GNOME-OS-%{branch-nice-name}-%{arch}"
qualifier: ''
flatpak-branch: '%{branch}%{qualifier}'
# should be nightly in master, gnome-xx when released
# update to the next version once it becomes oldstable
sysupdate-branch: nightly
runstatedir: "/run"
efi-arch: ''
(?):
- arch == "x86_64":
go-arch: "amd64"
systemd-arch: "x86-64"
efi-arch: x64
- arch == "aarch64":
go-arch: "arm64"
systemd-arch: "arm64"
efi-arch: aa64
- arch == "ppc64le":
gcc_arch: "powerpc64le"
go-arch: "ppc64le"
systemd-arch: "ppc64-le"
- arch == "riscv64":
go-arch: "riscv64"
systemd-arch: "riscv64"
efi-arch: riscv64
(@):
- include/image-version.yml
plugins:
- origin: junction
junction: plugins/buildstream-plugins.bst
elements:
- autotools
- meson
- cmake
- make
sources:
- patch
- origin: junction
junction: plugins/buildstream-plugins-community.bst
elements:
- cargo
- collect_manifest
- flatpak_image
- flatpak_repo
- ostree
- pyproject
sources:
- anitya
- gen_cargo_lock
- cargo2
- git_module
- git_repo
- patch_queue
- pypi
- zip
- origin: local
path: plugins
elements:
- collect_initial_scripts