-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathorg.chromium.Chromium.yaml
218 lines (208 loc) · 7.23 KB
/
org.chromium.Chromium.yaml
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
app-id: org.chromium.Chromium
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
base: org.chromium.Chromium.BaseApp
base-version: '24.08'
command: chromium
finish-args:
- --require-version=1.8.2
- --filesystem=home
- --filesystem=/run/.heim_org.h5l.kcm-socket
- --device=all
- --env=LD_LIBRARY_PATH=/app/chromium/nonfree-codecs/lib
- --share=ipc
- --share=network
- --socket=cups
- --socket=pulseaudio
- --socket=x11
- --socket=wayland
- --system-talk-name=org.bluez
- --system-talk-name=org.freedesktop.Avahi
- --system-talk-name=org.freedesktop.UPower
- --talk-name=com.canonical.AppMenu.Registrar
- --talk-name=org.freedesktop.FileManager1
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.ScreenSaver
- --talk-name=org.freedesktop.secrets
- --talk-name=org.kde.kwalletd5
- --talk-name=org.kde.kwalletd6
- --talk-name=org.gnome.SessionManager
- --own-name=org.mpris.MediaPlayer2.chromium.*
add-extensions:
org.chromium.Chromium.Codecs:
directory: chromium/nonfree-codecs
add-ld-path: lib
bundle: true
autodelete: true
org.chromium.Chromium.NativeMessagingHost:
version: '1'
directory: chromium/native-messaging-hosts
merge-dirs: native-messaging-hosts
subdirectories: true
no-autodownload: true
autodelete: true
org.chromium.Chromium.Extension:
version: '1'
directory: chromium/extensions
merge-dirs: extensions;native-messaging-hosts;policies/managed;policies/recommended
subdirectories: true
no-autodownload: true
autodelete: true
org.chromium.Chromium.Policy:
version: '1'
directory: chromium/policies
merge-dirs: policies/managed;policies/recommended
subdirectories: true
no-autodownload: true
autodelete: true
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm18
- org.freedesktop.Sdk.Extension.node20
- org.freedesktop.Sdk.Extension.openjdk21
modules:
- name: readelf-symlink
only-arches: [aarch64]
buildsystem: simple
build-commands:
# Chromium expects to find readelf with its full toolprefix on arm64
- ln -s /usr/bin/readelf /app/bin/aarch64-linux-gnu-readelf
- name: extensions
buildsystem: simple
build-commands:
- mkdir -p /app/chromium/{extensions,native-messaging-hosts,policies}
- for dir in native-messaging-hosts policies; do ln -s /app/chromium/{$dir,extensions}/$dir;
done
- touch /app/chromium/extensions/no-mount-stamp
- name: rust-nightly
buildsystem: simple
build-options:
strip: false
no-debuginfo: true
cleanup:
- '*'
sources:
- type: archive
only-arches:
- aarch64
dest: rust
url: https://static.rust-lang.org/dist/2024-10-22/rust-nightly-aarch64-unknown-linux-gnu.tar.xz
sha256: 28c47ee693bb16be0f500a8cc4a8f71d3f4aee469602fea9e0f0a0263d20c0a6
# x-checker-data:
# type: rust
# package: rust
# channel: nightly
# target: aarch64-unknown-linux-gnu
- type: archive
only-arches:
- x86_64
dest: rust
url: https://static.rust-lang.org/dist/2024-10-22/rust-nightly-x86_64-unknown-linux-gnu.tar.xz
sha256: 60e10d4e7bb75f259e002ee9125dc220f7ed2952ec7099ac07462b34f6d30804
# x-checker-data:
# type: rust
# package: rust
# channel: nightly
# target: x86_64-unknown-linux-gnu
- type: archive
dest: rust-src
url: https://static.rust-lang.org/dist/2024-10-22/rust-src-nightly.tar.xz
sha256: f95861f600a0894a6abf49ca232698d97d99d92e65d141643e731ae127198918
# x-checker-data:
# type: rust
# package: rust-src
# channel: nightly
# target: '*'
build-commands:
- cd rust && ./install.sh --prefix=/app/lib/sdk/rust-nightly --without=rust-docs
--without=rust-docs-json-preview --disable-ldconfig --verbose
- cd rust-src && ./install.sh --prefix=/app/lib/sdk/rust-nightly --disable-ldconfig
--verbose
- name: rust-bindgen
buildsystem: simple
build-options:
strip: false
no-debuginfo: true
prepend-path: /app/lib/sdk/rust-nightly/bin
env:
CARGO_HOME: /run/build/rust-bindgen/cargo
build-commands:
- cargo --offline fetch --manifest-path Cargo.toml --verbose
- cargo --offline build --release --verbose
- install -Dm 755 target/release/bindgen -t /app/lib/sdk/bindgen/bin
sources:
- type: git
url: https://chromium.googlesource.com/external/github.com/rust-lang/rust-bindgen
commit: f93d5dfa6d5d7409bea584f3eab38e1fc52b8360
- ./generated-sources.bindgen.json
cleanup:
- '*'
- name: chromium
buildsystem: simple
build-options:
prepend-ld-library-path: /app/lib/sdk/rust-nightly/lib
build-commands:
- ./bootstrap.sh
- ./build.sh
- ./install.sh
sources:
- type: archive
url: https://commondatastorage.googleapis.com/chromium-browser-official/chromium-132.0.6834.110.tar.xz
sha256: e18a1c9575371c9e0511798bac52fd682456f507081bfefd013c58b8d13e52a9
x-checker-data:
type: chromium
component: chromium
is-main-source: true
- type: shell
commands:
- rm -rf third_party/llvm-build
- rm -rf third_party/rust-toolchain
- type: archive
url: https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64/clang-llvmorg-20-init-9764-gb81d8e90-6.tar.xz
sha256: 10fbc53c0730a50e2117b3414a45784667d6cf7d91a3bcaab2b3a78ede08c5d2
dest: third_party/llvm-build/Release+Asserts
strip-components: 0
only-arches: [x86_64]
x-checker-data:
type: chromium
component: llvm-prebuilt
- type: archive
url: https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64/rust-toolchain-bca5fdebe0e539d123f33df5f2149d5976392e76-1-llvmorg-20-init-9764-gb81d8e90.tar.xz
sha256: 0c4092f5769c5ececd096732b00f2c5c4e1741d4112881a2c83fe7e78271d792
dest: third_party/rust-toolchain
strip-components: 0
only-arches: [x86_64]
# TODO
# x-checker-data:
# type: chromium
# component: llvm-prebuilt
- type: shell
commands:
- rm -rf third_party/llvm
only-arches: [aarch64]
- type: git
url: https://chromium.googlesource.com/external/github.com/llvm/llvm-project
commit: llvmorg-20-init-9764-gb81d8e90
dest: third_party/llvm
only-arches: [aarch64]
x-checker-data:
type: chromium
component: llvm-git
- patches/chromium/_sources.json
- patches/ffmpeg/_sources.json
# XXX: this patch file is standalone because it's not integrated with the
# patch set tooling used for main Chromium & FFmpeg.
- type: patch
path: patches/Revert-cppgc-Decommit-pooled-pages-by-default.patch
- type: file
path: org.chromium.Chromium.desktop
- type: file
path: org.chromium.Chromium.metainfo.xml
- type: file
path: chromium.sh
- type: file
path: unlink_profiles.py
- type: file
path: cobalt.ini
- type: dir
path: build-aux