-
Notifications
You must be signed in to change notification settings - Fork 7
/
project.conf
218 lines (195 loc) · 5.11 KB
/
project.conf
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
# Project name
name: gnome
# The minimum BuildStream version
min-version: 2.0
# Where elements are stored
element-path: elements
# The uri to download built artifacts from for this project
artifacts:
- url: https://m3-large-x86.gnome.org:11003
source-caches:
- url: https://m3-large-x86.gnome.org:11003
fatal-warnings:
- overlaps
(@):
- freedesktop-sdk.bst:include/runtime.yml
- include/aliases.yml
- include/mirrors.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:
- arm
- aarch64
- i686
- 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
# 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'
- arch == "riscv64":
G_SLICE: always-malloc
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
cmake:
variables:
cmake-global: >-
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_C_FLAGS_RELWITHDEBINFO="-DNDEBUG"
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-DNDEBUG"
generator: Ninja
make-install: env DESTDIR="%{install-root}" cmake --install %{build-dir}
meson:
variables:
meson-global: --buildtype=plain --auto-features=enabled --wrap-mode=nodownload
pip:
config:
install-commands:
- python -m pip install --no-build-isolation --root=%{install-root} --prefix=%{prefix} .
filter:
config:
include-orphans: true
sources:
git_repo:
config:
ref-format: git-describe
cargo2:
config:
url: crates:crates
split-rules:
devel:
(>):
- '%{indep-libdir}/**/include'
- '%{indep-libdir}/**/include/**'
- '%{bindir}/*-config'
- '%{libdir}/cmake'
- '%{libdir}/cmake/**'
- '%{datadir}/cmake'
- '%{datadir}/cmake/**'
- '%{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/**'
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}'
ostree-layer: user
ostree-branch: "gnome-os/%{branch}/%{arch}-%{ostree-layer}"
ostree-remote-url: "https://ostree.gnome.org/repo"
runstatedir: "/run"
(?):
- arch == "x86_64":
go-arch: "amd64"
systemd-arch: "x86-64"
- arch == "i686":
gcc_arch: "i386"
go-arch: "386"
systemd-arch: "x86"
- arch == "aarch64":
go-arch: "arm64"
systemd-arch: "arm64"
- arch == "arm":
abi: "gnueabihf"
go-arch: "arm"
systemd-arch: "arm"
- arch == "ppc64le":
gcc_arch: "powerpc64le"
go-arch: "ppc64le"
systemd-arch: "ppc64-le"
- arch == "riscv64":
go-arch: "riscv64"
systemd-arch: "riscv64"
# can be removed once we move to bst2
fix-pyc-timestamps: ''
(@):
- include/image-version.yml
plugins:
- origin: junction
junction: plugins/buildstream-plugins.bst
elements:
- autotools
- meson
- pip
- cmake
- make
sources:
- patch
- origin: junction
junction: plugins/buildstream-plugins-community.bst
elements:
- collect_manifest
- flatpak_image
- flatpak_repo
- ostree
- pyproject
sources:
- gen_cargo_lock
- cargo2
- git_module
- git_repo
- patch_queue
- zip
- origin: local
path: plugins
elements:
- collect_initial_scripts