1 |
commit: b405ff8995606331c646596b7c7d7850fccead51 |
2 |
Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 18:17:04 2022 +0000 |
4 |
Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 18:17:04 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b405ff89 |
7 |
|
8 |
www-client/chromium: drop 104.0.5112.101 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/868354 |
11 |
Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org> |
12 |
|
13 |
www-client/chromium/Manifest | 2 - |
14 |
www-client/chromium/chromium-104.0.5112.101.ebuild | 1194 -------------------- |
15 |
.../chromium-104-swiftshader-no-wayland.patch | 52 - |
16 |
.../chromium/files/chromium-104-v8-neon.patch | 72 -- |
17 |
4 files changed, 1320 deletions(-) |
18 |
|
19 |
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest |
20 |
index b1077564cff6..b2a4d87b53a7 100644 |
21 |
--- a/www-client/chromium/Manifest |
22 |
+++ b/www-client/chromium/Manifest |
23 |
@@ -1,5 +1,3 @@ |
24 |
-DIST chromium-104-patchset-2.tar.xz 6168 BLAKE2B 57e9f2090315d2fa9baa0d285e40fd7809b35a897fba7684672d04850c2b59ea1bc11383654a8178ece2d4baa9bb2e248898d2435618b9e8a995461d6e92ac53 SHA512 f23effc604051c18acfad3bfb974efd4aa675b84135f4eb95e0dd97261dcc9099f283a8015854c375499370f4155bb9fad51fca59555ec2f41f2d7ab90be7208 |
25 |
-DIST chromium-104.0.5112.101.tar.xz 1510110428 BLAKE2B 33b5ac2339d88e03096f3ca8cba9b388eeea2f120ab137a38d3e6d0c03315136cfb9f01a4c7b52b5eb7e78921d00a502dfcab3c0cf167074fbc197490fd3866b SHA512 a955cee81e983212c27a972db8e4857000e626b5e85ce07db71b7f19a4f1a10b675fb4d3df055265681670b4166dc96a3b597a00cf60b837016be9c81e6972b1 |
26 |
DIST chromium-105-patchset-1.tar.xz 9116 BLAKE2B 7728b83899e19b3c0ba4a69c660b68af7ea549a0144c15ab9fa972001441d9d145de20b7a1bafabf2b0667335b7436f6374c9934d4433160805c31bc743e867e SHA512 8f97aecf7b24c3f676bc74b88382dc4a5d967a090a4b4890971cb342973b0a20fd563c658b1c3fdaf036e830317d97470143ab78b28f336b315d491217368a81 |
27 |
DIST chromium-105.0.5195.102.tar.xz 1597977496 BLAKE2B dada382717f8d48c87f586ba190aa4b4dff32929d70efe54dc091e42087b6f1744d3fdc16d9f601674fda28f5146808f0de419dec95f5ebfcd2b61fb62db0ef6 SHA512 a5b569e1a019863cd27e03b7e834ecef284e170a41f8ff29b9d22101a45474b5157720e52e7f7438a217b8b00707bd3c414c83257c18f2d9f4d5ee46e2e06e9e |
28 |
DIST chromium-106-patchset-1.tar.xz 5660 BLAKE2B b1003aa49aed07ac097607e67cb48bab11b8790c6b4c8f241bb8677baff372771b76076195713164ee71c81b8211fc400e52598b63a3cc03ff7a32ef5d1b0226 SHA512 7eb2818a8449cb2c90198e2d7f228adaed4c7c50de1833ebf59ff895512bd033d3a55398349f1ac797661d1d0b3c201b74b54f4b1d4e375e280795a4a20ba5aa |
29 |
|
30 |
diff --git a/www-client/chromium/chromium-104.0.5112.101.ebuild b/www-client/chromium/chromium-104.0.5112.101.ebuild |
31 |
deleted file mode 100644 |
32 |
index 200c78ad9df4..000000000000 |
33 |
--- a/www-client/chromium/chromium-104.0.5112.101.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,1194 +0,0 @@ |
36 |
-# Copyright 2009-2022 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=8 |
40 |
-PYTHON_COMPAT=( python3_{8..10} ) |
41 |
-PYTHON_REQ_USE="xml(+)" |
42 |
-LLVM_MAX_SLOT=14 |
43 |
- |
44 |
-CHROMIUM_LANGS="af am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he |
45 |
- hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr |
46 |
- sv sw ta te th tr uk ur vi zh-CN zh-TW" |
47 |
- |
48 |
-VIRTUALX_REQUIRED="pgo" |
49 |
- |
50 |
-inherit check-reqs chromium-2 desktop flag-o-matic llvm ninja-utils pax-utils python-any-r1 readme.gentoo-r1 toolchain-funcs virtualx xdg-utils |
51 |
- |
52 |
-DESCRIPTION="Open-source version of Google Chrome web browser" |
53 |
-HOMEPAGE="https://chromium.org/" |
54 |
-PATCHSET="2" |
55 |
-PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}" |
56 |
-SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz |
57 |
- https://github.com/stha09/chromium-patches/releases/download/${PATCHSET_NAME}/${PATCHSET_NAME}.tar.xz |
58 |
- pgo? ( https://blackhole.sk/~kabel/src/chromium-profiler-0.1.tar )" |
59 |
- |
60 |
-LICENSE="BSD" |
61 |
-SLOT="0/stable" |
62 |
-KEYWORDS="amd64 arm64" |
63 |
-IUSE="+X component-build cups cpu_flags_arm_neon debug gtk4 +hangouts headless +js-type-check kerberos libcxx lto +official pgo pic +proprietary-codecs pulseaudio screencast selinux +suid +system-ffmpeg +system-harfbuzz +system-icu +system-png vaapi wayland widevine" |
64 |
-REQUIRED_USE=" |
65 |
- component-build? ( !suid !libcxx ) |
66 |
- screencast? ( wayland ) |
67 |
- !headless? ( || ( X wayland ) ) |
68 |
- pgo? ( X !wayland ) |
69 |
-" |
70 |
- |
71 |
-COMMON_X_DEPEND=" |
72 |
- x11-libs/libXcomposite:= |
73 |
- x11-libs/libXcursor:= |
74 |
- x11-libs/libXdamage:= |
75 |
- x11-libs/libXfixes:= |
76 |
- >=x11-libs/libXi-1.6.0:= |
77 |
- x11-libs/libXrandr:= |
78 |
- x11-libs/libXrender:= |
79 |
- x11-libs/libXtst:= |
80 |
- x11-libs/libxshmfence:= |
81 |
-" |
82 |
- |
83 |
-COMMON_SNAPSHOT_DEPEND=" |
84 |
- system-icu? ( >=dev-libs/icu-71.1:= ) |
85 |
- >=dev-libs/libxml2-2.9.4-r3:=[icu] |
86 |
- dev-libs/nspr:= |
87 |
- >=dev-libs/nss-3.26:= |
88 |
- !libcxx? ( >=dev-libs/re2-0.2019.08.01:= ) |
89 |
- dev-libs/libxslt:= |
90 |
- media-libs/fontconfig:= |
91 |
- >=media-libs/freetype-2.11.0-r1:= |
92 |
- system-harfbuzz? ( >=media-libs/harfbuzz-3:0=[icu(-)] ) |
93 |
- media-libs/libjpeg-turbo:= |
94 |
- system-png? ( media-libs/libpng:=[-apng] ) |
95 |
- >=media-libs/libwebp-0.4.0:= |
96 |
- media-libs/mesa:=[gbm(+)] |
97 |
- >=media-libs/openh264-1.6.0:= |
98 |
- sys-libs/zlib:= |
99 |
- x11-libs/libdrm:= |
100 |
- !headless? ( |
101 |
- dev-libs/glib:2 |
102 |
- >=media-libs/alsa-lib-1.0.19:= |
103 |
- pulseaudio? ( media-sound/pulseaudio:= ) |
104 |
- sys-apps/pciutils:= |
105 |
- kerberos? ( virtual/krb5 ) |
106 |
- vaapi? ( >=x11-libs/libva-2.7:=[X?,wayland?] ) |
107 |
- X? ( |
108 |
- x11-libs/libX11:= |
109 |
- x11-libs/libXext:= |
110 |
- x11-libs/libxcb:= |
111 |
- ) |
112 |
- x11-libs/libxkbcommon:= |
113 |
- wayland? ( |
114 |
- dev-libs/wayland:= |
115 |
- screencast? ( media-video/pipewire:= ) |
116 |
- ) |
117 |
- ) |
118 |
-" |
119 |
- |
120 |
-COMMON_DEPEND=" |
121 |
- ${COMMON_SNAPSHOT_DEPEND} |
122 |
- app-arch/bzip2:= |
123 |
- dev-libs/expat:= |
124 |
- system-ffmpeg? ( |
125 |
- >=media-video/ffmpeg-4.3:= |
126 |
- || ( |
127 |
- media-video/ffmpeg[-samba] |
128 |
- >=net-fs/samba-4.5.10-r1[-debug(-)] |
129 |
- ) |
130 |
- >=media-libs/opus-1.3.1:= |
131 |
- ) |
132 |
- net-misc/curl[ssl] |
133 |
- sys-apps/dbus:= |
134 |
- media-libs/flac:= |
135 |
- sys-libs/zlib:=[minizip] |
136 |
- !headless? ( |
137 |
- X? ( ${COMMON_X_DEPEND} ) |
138 |
- >=app-accessibility/at-spi2-atk-2.26:2 |
139 |
- >=app-accessibility/at-spi2-core-2.26:2 |
140 |
- >=dev-libs/atk-2.26 |
141 |
- media-libs/mesa:=[X?,wayland?] |
142 |
- cups? ( >=net-print/cups-1.3.11:= ) |
143 |
- virtual/udev |
144 |
- x11-libs/cairo:= |
145 |
- x11-libs/gdk-pixbuf:2 |
146 |
- x11-libs/pango:= |
147 |
- ) |
148 |
-" |
149 |
-RDEPEND="${COMMON_DEPEND} |
150 |
- !headless? ( |
151 |
- || ( |
152 |
- x11-libs/gtk+:3[X?,wayland?] |
153 |
- gui-libs/gtk:4[X?,wayland?] |
154 |
- ) |
155 |
- x11-misc/xdg-utils |
156 |
- ) |
157 |
- virtual/ttf-fonts |
158 |
- selinux? ( sec-policy/selinux-chromium ) |
159 |
-" |
160 |
-DEPEND="${COMMON_DEPEND} |
161 |
- !headless? ( |
162 |
- gtk4? ( gui-libs/gtk:4[X?,wayland?] ) |
163 |
- !gtk4? ( x11-libs/gtk+:3[X?,wayland?] ) |
164 |
- ) |
165 |
-" |
166 |
- |
167 |
-depend_clang_llvm_version() { |
168 |
- echo "sys-devel/clang:$1" |
169 |
- echo "sys-devel/llvm:$1" |
170 |
- echo "=sys-devel/lld-$1*" |
171 |
-} |
172 |
- |
173 |
-depend_clang_llvm_versions() { |
174 |
- local _v |
175 |
- if [[ $# -gt 1 ]]; then |
176 |
- echo "|| (" |
177 |
- for _v in "$@"; do |
178 |
- echo "(" |
179 |
- depend_clang_llvm_version "${_v}" |
180 |
- echo ")" |
181 |
- done |
182 |
- echo ")" |
183 |
- elif [[ $# -eq 1 ]]; then |
184 |
- depend_clang_llvm_version "$1" |
185 |
- fi |
186 |
-} |
187 |
- |
188 |
-BDEPEND=" |
189 |
- ${COMMON_SNAPSHOT_DEPEND} |
190 |
- ${PYTHON_DEPS} |
191 |
- $(python_gen_any_dep ' |
192 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
193 |
- ') |
194 |
- >=app-arch/gzip-1.7 |
195 |
- libcxx? ( >=sys-devel/clang-12 ) |
196 |
- lto? ( $(depend_clang_llvm_versions 13 14 15) ) |
197 |
- pgo? ( |
198 |
- >=dev-python/selenium-3.141.0 |
199 |
- >=dev-util/web_page_replay_go-20220314 |
200 |
- $(depend_clang_llvm_versions 13 14 15) |
201 |
- ) |
202 |
- dev-lang/perl |
203 |
- >=dev-util/gn-0.1807 |
204 |
- >=dev-util/gperf-3.0.3 |
205 |
- >=dev-util/ninja-1.7.2 |
206 |
- dev-vcs/git |
207 |
- >=net-libs/nodejs-7.6.0[inspector] |
208 |
- >=sys-devel/bison-2.4.3 |
209 |
- sys-devel/flex |
210 |
- virtual/pkgconfig |
211 |
- js-type-check? ( virtual/jre ) |
212 |
-" |
213 |
- |
214 |
-# These are intended for ebuild maintainer use to force clang if GCC is broken. |
215 |
-: ${CHROMIUM_FORCE_CLANG=no} |
216 |
- |
217 |
-if [[ ${CHROMIUM_FORCE_CLANG} == yes ]]; then |
218 |
- BDEPEND+=" >=sys-devel/clang-12" |
219 |
-fi |
220 |
- |
221 |
-if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
222 |
- EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
223 |
-fi |
224 |
- |
225 |
-DISABLE_AUTOFORMATTING="yes" |
226 |
-DOC_CONTENTS=" |
227 |
-Some web pages may require additional fonts to display properly. |
228 |
-Try installing some of the following packages if some characters |
229 |
-are not displayed properly: |
230 |
-- media-fonts/arphicfonts |
231 |
-- media-fonts/droid |
232 |
-- media-fonts/ipamonafont |
233 |
-- media-fonts/noto |
234 |
-- media-fonts/ja-ipafonts |
235 |
-- media-fonts/takao-fonts |
236 |
-- media-fonts/wqy-microhei |
237 |
-- media-fonts/wqy-zenhei |
238 |
- |
239 |
-To fix broken icons on the Downloads page, you should install an icon |
240 |
-theme that covers the appropriate MIME types, and configure this as your |
241 |
-GTK+ icon theme. |
242 |
- |
243 |
-For native file dialogs in KDE, install kde-apps/kdialog. |
244 |
- |
245 |
-To make password storage work with your desktop environment you may |
246 |
-have install one of the supported credentials management applications: |
247 |
-- app-crypt/libsecret (GNOME) |
248 |
-- kde-frameworks/kwallet (KDE) |
249 |
-If you have one of above packages installed, but don't want to use |
250 |
-them in Chromium, then add --password-store=basic to CHROMIUM_FLAGS |
251 |
-in /etc/chromium/default. |
252 |
-" |
253 |
- |
254 |
-python_check_deps() { |
255 |
- python_has_version "dev-python/setuptools[${PYTHON_USEDEP}]" |
256 |
-} |
257 |
- |
258 |
-needs_clang() { |
259 |
- [[ ${CHROMIUM_FORCE_CLANG} == yes ]] || use libcxx || use lto || use pgo |
260 |
-} |
261 |
- |
262 |
-llvm_check_deps() { |
263 |
- if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then |
264 |
- einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 |
265 |
- return 1 |
266 |
- fi |
267 |
- |
268 |
- if ( use lto || use pgo ) && ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then |
269 |
- einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 |
270 |
- return 1 |
271 |
- fi |
272 |
- |
273 |
- einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 |
274 |
-} |
275 |
- |
276 |
-pre_build_checks() { |
277 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
278 |
- [[ ${EBUILD_PHASE_FUNC} == pkg_setup ]] && ( use lto || use pgo ) && llvm_pkg_setup |
279 |
- |
280 |
- local -x CPP="$(tc-getCXX) -E" |
281 |
- if tc-is-gcc && ! ver_test "$(gcc-version)" -ge 9.2; then |
282 |
- die "At least gcc 9.2 is required" |
283 |
- fi |
284 |
- if use pgo && tc-is-cross-compiler; then |
285 |
- die "The pgo USE flag cannot be used when cross-compiling" |
286 |
- fi |
287 |
- if needs_clang || tc-is-clang; then |
288 |
- tc-is-cross-compiler && CPP=${CBUILD}-clang++ || CPP=${CHOST}-clang++ |
289 |
- CPP+=" -E" |
290 |
- if ! ver_test "$(clang-major-version)" -ge 12; then |
291 |
- die "At least clang 12 is required" |
292 |
- fi |
293 |
- fi |
294 |
- if [[ ${EBUILD_PHASE_FUNC} == pkg_setup ]] && use js-type-check; then |
295 |
- "${BROOT}"/usr/bin/java -version 2>1 > /dev/null || die "Java VM not setup correctly" |
296 |
- fi |
297 |
- fi |
298 |
- |
299 |
- # Check build requirements, bug #541816 and bug #471810 . |
300 |
- CHECKREQS_MEMORY="4G" |
301 |
- CHECKREQS_DISK_BUILD="12G" |
302 |
- tc-is-cross-compiler && CHECKREQS_DISK_BUILD="13G" |
303 |
- if use lto || use pgo; then |
304 |
- CHECKREQS_MEMORY="9G" |
305 |
- CHECKREQS_DISK_BUILD="12G" |
306 |
- tc-is-cross-compiler && CHECKREQS_DISK_BUILD="15G" |
307 |
- use pgo && CHECKREQS_DISK_BUILD="19G" |
308 |
- fi |
309 |
- if is-flagq '-g?(gdb)?([1-9])'; then |
310 |
- if use custom-cflags || use component-build; then |
311 |
- CHECKREQS_DISK_BUILD="25G" |
312 |
- fi |
313 |
- if ! use component-build; then |
314 |
- CHECKREQS_MEMORY="16G" |
315 |
- fi |
316 |
- fi |
317 |
- check-reqs_${EBUILD_PHASE_FUNC} |
318 |
-} |
319 |
- |
320 |
-pkg_pretend() { |
321 |
- pre_build_checks |
322 |
- |
323 |
- if use headless; then |
324 |
- local headless_unused_flags=("cups" "kerberos" "pulseaudio" "vaapi" "wayland") |
325 |
- for myiuse in ${headless_unused_flags[@]}; do |
326 |
- use ${myiuse} && ewarn "Ignoring USE=${myiuse} since USE=headless is set." |
327 |
- done |
328 |
- fi |
329 |
-} |
330 |
- |
331 |
-pkg_setup() { |
332 |
- pre_build_checks |
333 |
- |
334 |
- chromium_suid_sandbox_check_kernel_config |
335 |
- |
336 |
- # nvidia-drivers does not work correctly with Wayland due to unsupported EGLStreams |
337 |
- if use wayland && ! use headless && has_version "x11-drivers/nvidia-drivers"; then |
338 |
- ewarn "Proprietary nVidia driver does not work with Wayland. You can disable" |
339 |
- ewarn "Wayland by setting DISABLE_OZONE_PLATFORM=true in /etc/chromium/default." |
340 |
- fi |
341 |
-} |
342 |
- |
343 |
-src_prepare() { |
344 |
- # Calling this here supports resumption via FEATURES=keepwork |
345 |
- python_setup |
346 |
- |
347 |
- local PATCHES=( |
348 |
- "${WORKDIR}/patches" |
349 |
- "${FILESDIR}/chromium-93-InkDropHost-crash.patch" |
350 |
- "${FILESDIR}/chromium-98-EnumTable-crash.patch" |
351 |
- "${FILESDIR}/chromium-98-gtk4-build.patch" |
352 |
- "${FILESDIR}/chromium-104-tflite-system-zlib.patch" |
353 |
- "${FILESDIR}/chromium-104-swiftshader-no-wayland.patch" |
354 |
- "${FILESDIR}/chromium-104-v8-neon.patch" |
355 |
- "${FILESDIR}/chromium-use-oauth2-client-switches-as-default.patch" |
356 |
- "${FILESDIR}/chromium-shim_headers.patch" |
357 |
- "${FILESDIR}/chromium-cross-compile.patch" |
358 |
- ) |
359 |
- |
360 |
- default |
361 |
- |
362 |
- mkdir -p third_party/node/linux/node-linux-x64/bin || die |
363 |
- ln -s "${EPREFIX}"/usr/bin/node third_party/node/linux/node-linux-x64/bin/node || die |
364 |
- |
365 |
- # adjust python interpreter version |
366 |
- sed -i -e "s|\(^script_executable = \).*|\1\"${EPYTHON}\"|g" .gn || die |
367 |
- |
368 |
- local keeplibs=( |
369 |
- base/third_party/cityhash |
370 |
- base/third_party/double_conversion |
371 |
- base/third_party/dynamic_annotations |
372 |
- base/third_party/icu |
373 |
- base/third_party/nspr |
374 |
- base/third_party/superfasthash |
375 |
- base/third_party/symbolize |
376 |
- base/third_party/valgrind |
377 |
- base/third_party/xdg_mime |
378 |
- base/third_party/xdg_user_dirs |
379 |
- buildtools/third_party/libc++ |
380 |
- buildtools/third_party/libc++abi |
381 |
- chrome/third_party/mozilla_security_manager |
382 |
- courgette/third_party |
383 |
- net/third_party/mozilla_security_manager |
384 |
- net/third_party/nss |
385 |
- net/third_party/quic |
386 |
- net/third_party/uri_template |
387 |
- third_party/abseil-cpp |
388 |
- third_party/angle |
389 |
- third_party/angle/src/common/third_party/base |
390 |
- third_party/angle/src/common/third_party/smhasher |
391 |
- third_party/angle/src/common/third_party/xxhash |
392 |
- third_party/angle/src/third_party/libXNVCtrl |
393 |
- third_party/angle/src/third_party/trace_event |
394 |
- third_party/angle/src/third_party/volk |
395 |
- third_party/apple_apsl |
396 |
- third_party/axe-core |
397 |
- third_party/blink |
398 |
- third_party/boringssl |
399 |
- third_party/boringssl/src/third_party/fiat |
400 |
- third_party/breakpad |
401 |
- third_party/breakpad/breakpad/src/third_party/curl |
402 |
- third_party/brotli |
403 |
- third_party/catapult |
404 |
- third_party/catapult/common/py_vulcanize/third_party/rcssmin |
405 |
- third_party/catapult/common/py_vulcanize/third_party/rjsmin |
406 |
- third_party/catapult/third_party/beautifulsoup4-4.9.3 |
407 |
- third_party/catapult/third_party/html5lib-1.1 |
408 |
- third_party/catapult/third_party/polymer |
409 |
- third_party/catapult/third_party/six |
410 |
- third_party/catapult/tracing/third_party/d3 |
411 |
- third_party/catapult/tracing/third_party/gl-matrix |
412 |
- third_party/catapult/tracing/third_party/jpeg-js |
413 |
- third_party/catapult/tracing/third_party/jszip |
414 |
- third_party/catapult/tracing/third_party/mannwhitneyu |
415 |
- third_party/catapult/tracing/third_party/oboe |
416 |
- third_party/catapult/tracing/third_party/pako |
417 |
- third_party/ced |
418 |
- third_party/cld_3 |
419 |
- third_party/closure_compiler |
420 |
- third_party/cpuinfo |
421 |
- third_party/crashpad |
422 |
- third_party/crashpad/crashpad/third_party/lss |
423 |
- third_party/crashpad/crashpad/third_party/zlib |
424 |
- third_party/crc32c |
425 |
- third_party/cros_system_api |
426 |
- third_party/dav1d |
427 |
- third_party/dawn |
428 |
- third_party/dawn/third_party/gn/webgpu-cts |
429 |
- third_party/dawn/third_party/khronos |
430 |
- third_party/depot_tools |
431 |
- third_party/devscripts |
432 |
- third_party/devtools-frontend |
433 |
- third_party/devtools-frontend/src/front_end/third_party/acorn |
434 |
- third_party/devtools-frontend/src/front_end/third_party/additional_readme_paths.json |
435 |
- third_party/devtools-frontend/src/front_end/third_party/axe-core |
436 |
- third_party/devtools-frontend/src/front_end/third_party/chromium |
437 |
- third_party/devtools-frontend/src/front_end/third_party/codemirror |
438 |
- third_party/devtools-frontend/src/front_end/third_party/diff |
439 |
- third_party/devtools-frontend/src/front_end/third_party/i18n |
440 |
- third_party/devtools-frontend/src/front_end/third_party/intl-messageformat |
441 |
- third_party/devtools-frontend/src/front_end/third_party/lighthouse |
442 |
- third_party/devtools-frontend/src/front_end/third_party/lit-html |
443 |
- third_party/devtools-frontend/src/front_end/third_party/lodash-isequal |
444 |
- third_party/devtools-frontend/src/front_end/third_party/marked |
445 |
- third_party/devtools-frontend/src/front_end/third_party/puppeteer |
446 |
- third_party/devtools-frontend/src/front_end/third_party/wasmparser |
447 |
- third_party/devtools-frontend/src/test/unittests/front_end/third_party/i18n |
448 |
- third_party/devtools-frontend/src/third_party |
449 |
- third_party/distributed_point_functions |
450 |
- third_party/dom_distiller_js |
451 |
- third_party/eigen3 |
452 |
- third_party/emoji-segmenter |
453 |
- third_party/farmhash |
454 |
- third_party/fdlibm |
455 |
- third_party/fft2d |
456 |
- third_party/flatbuffers |
457 |
- third_party/fp16 |
458 |
- third_party/freetype |
459 |
- third_party/fusejs |
460 |
- third_party/fxdiv |
461 |
- third_party/highway |
462 |
- third_party/libgifcodec |
463 |
- third_party/liburlpattern |
464 |
- third_party/libzip |
465 |
- third_party/gemmlowp |
466 |
- third_party/google_input_tools |
467 |
- third_party/google_input_tools/third_party/closure_library |
468 |
- third_party/google_input_tools/third_party/closure_library/third_party/closure |
469 |
- third_party/googletest |
470 |
- third_party/hunspell |
471 |
- third_party/iccjpeg |
472 |
- third_party/inspector_protocol |
473 |
- third_party/jinja2 |
474 |
- third_party/jsoncpp |
475 |
- third_party/jstemplate |
476 |
- third_party/khronos |
477 |
- third_party/leveldatabase |
478 |
- third_party/libaddressinput |
479 |
- third_party/libaom |
480 |
- third_party/libaom/source/libaom/third_party/fastfeat |
481 |
- third_party/libaom/source/libaom/third_party/vector |
482 |
- third_party/libaom/source/libaom/third_party/x86inc |
483 |
- third_party/libavif |
484 |
- third_party/libgav1 |
485 |
- third_party/libjingle |
486 |
- third_party/libjxl |
487 |
- third_party/libphonenumber |
488 |
- third_party/libsecret |
489 |
- third_party/libsrtp |
490 |
- third_party/libsync |
491 |
- third_party/libudev |
492 |
- third_party/libva_protected_content |
493 |
- third_party/libvpx |
494 |
- third_party/libvpx/source/libvpx/third_party/x86inc |
495 |
- third_party/libwebm |
496 |
- third_party/libx11 |
497 |
- third_party/libxcb-keysyms |
498 |
- third_party/libxml/chromium |
499 |
- third_party/libyuv |
500 |
- third_party/llvm |
501 |
- third_party/lottie |
502 |
- third_party/lss |
503 |
- third_party/lzma_sdk |
504 |
- third_party/mako |
505 |
- third_party/maldoca |
506 |
- third_party/maldoca/src/third_party/tensorflow_protos |
507 |
- third_party/maldoca/src/third_party/zlibwrapper |
508 |
- third_party/markupsafe |
509 |
- third_party/mesa |
510 |
- third_party/metrics_proto |
511 |
- third_party/minigbm |
512 |
- third_party/modp_b64 |
513 |
- third_party/nasm |
514 |
- third_party/nearby |
515 |
- third_party/neon_2_sse |
516 |
- third_party/node |
517 |
- third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2 |
518 |
- third_party/one_euro_filter |
519 |
- third_party/openscreen |
520 |
- third_party/openscreen/src/third_party/mozilla |
521 |
- third_party/openscreen/src/third_party/tinycbor/src/src |
522 |
- third_party/ots |
523 |
- third_party/pdfium |
524 |
- third_party/pdfium/third_party/agg23 |
525 |
- third_party/pdfium/third_party/base |
526 |
- third_party/pdfium/third_party/bigint |
527 |
- third_party/pdfium/third_party/freetype |
528 |
- third_party/pdfium/third_party/lcms |
529 |
- third_party/pdfium/third_party/libopenjpeg20 |
530 |
- third_party/pdfium/third_party/libpng16 |
531 |
- third_party/pdfium/third_party/libtiff |
532 |
- third_party/pdfium/third_party/skia_shared |
533 |
- third_party/perfetto |
534 |
- third_party/perfetto/protos/third_party/chromium |
535 |
- third_party/pffft |
536 |
- third_party/ply |
537 |
- third_party/polymer |
538 |
- third_party/private-join-and-compute |
539 |
- third_party/private_membership |
540 |
- third_party/protobuf |
541 |
- third_party/protobuf/third_party/six |
542 |
- third_party/pthreadpool |
543 |
- third_party/pyjson5 |
544 |
- third_party/qcms |
545 |
- third_party/rnnoise |
546 |
- third_party/s2cellid |
547 |
- third_party/securemessage |
548 |
- third_party/shell-encryption |
549 |
- third_party/simplejson |
550 |
- third_party/skia |
551 |
- third_party/skia/include/third_party/skcms |
552 |
- third_party/skia/include/third_party/vulkan |
553 |
- third_party/skia/third_party/skcms |
554 |
- third_party/skia/third_party/vulkan |
555 |
- third_party/smhasher |
556 |
- third_party/snappy |
557 |
- third_party/sqlite |
558 |
- third_party/swiftshader |
559 |
- third_party/swiftshader/third_party/astc-encoder |
560 |
- third_party/swiftshader/third_party/llvm-subzero |
561 |
- third_party/swiftshader/third_party/marl |
562 |
- third_party/swiftshader/third_party/subzero |
563 |
- third_party/swiftshader/third_party/SPIRV-Headers/include/spirv |
564 |
- third_party/swiftshader/third_party/SPIRV-Tools |
565 |
- third_party/tensorflow-text |
566 |
- third_party/tflite |
567 |
- third_party/tflite/src/third_party/eigen3 |
568 |
- third_party/tflite/src/third_party/fft2d |
569 |
- third_party/ruy |
570 |
- third_party/six |
571 |
- third_party/ukey2 |
572 |
- third_party/unrar |
573 |
- third_party/utf |
574 |
- third_party/vulkan |
575 |
- third_party/web-animations-js |
576 |
- third_party/webdriver |
577 |
- third_party/webgpu-cts |
578 |
- third_party/webrtc |
579 |
- third_party/webrtc/common_audio/third_party/ooura |
580 |
- third_party/webrtc/common_audio/third_party/spl_sqrt_floor |
581 |
- third_party/webrtc/modules/third_party/fft |
582 |
- third_party/webrtc/modules/third_party/g711 |
583 |
- third_party/webrtc/modules/third_party/g722 |
584 |
- third_party/webrtc/rtc_base/third_party/base64 |
585 |
- third_party/webrtc/rtc_base/third_party/sigslot |
586 |
- third_party/widevine |
587 |
- third_party/woff2 |
588 |
- third_party/wuffs |
589 |
- third_party/x11proto |
590 |
- third_party/xcbproto |
591 |
- third_party/xnnpack |
592 |
- third_party/zxcvbn-cpp |
593 |
- third_party/zlib/google |
594 |
- url/third_party/mozilla |
595 |
- v8/src/third_party/siphash |
596 |
- v8/src/third_party/valgrind |
597 |
- v8/src/third_party/utf8-decoder |
598 |
- v8/third_party/inspector_protocol |
599 |
- v8/third_party/v8 |
600 |
- |
601 |
- # gyp -> gn leftovers |
602 |
- base/third_party/libevent |
603 |
- third_party/speech-dispatcher |
604 |
- third_party/usb_ids |
605 |
- third_party/xdg-utils |
606 |
- ) |
607 |
- if ! use system-ffmpeg; then |
608 |
- keeplibs+=( third_party/ffmpeg third_party/opus ) |
609 |
- fi |
610 |
- if ! use system-icu; then |
611 |
- keeplibs+=( third_party/icu ) |
612 |
- fi |
613 |
- if ! use system-png; then |
614 |
- keeplibs+=( third_party/libpng ) |
615 |
- fi |
616 |
- if use libcxx; then |
617 |
- keeplibs+=( third_party/re2 ) |
618 |
- fi |
619 |
- if use system-harfbuzz; then |
620 |
- keeplibs+=( third_party/harfbuzz-ng/utils ) |
621 |
- else |
622 |
- keeplibs+=( third_party/harfbuzz-ng ) |
623 |
- fi |
624 |
- if use wayland && ! use headless ; then |
625 |
- keeplibs+=( third_party/wayland ) |
626 |
- fi |
627 |
- if use arm64 || use ppc64 ; then |
628 |
- keeplibs+=( third_party/swiftshader/third_party/llvm-10.0 ) |
629 |
- fi |
630 |
- # we need to generate ppc64 stuff because upstream does not ship it yet |
631 |
- # it has to be done before unbundling. |
632 |
- if use ppc64; then |
633 |
- pushd third_party/libvpx >/dev/null || die |
634 |
- mkdir -p source/config/linux/ppc64 || die |
635 |
- # requires git and clang, bug #832803 |
636 |
- sed -i -e "s|^update_readme||g; s|clang-format|${EPREFIX}/bin/true|g" \ |
637 |
- generate_gni.sh || die |
638 |
- ./generate_gni.sh || die |
639 |
- popd >/dev/null || die |
640 |
- |
641 |
- pushd third_party/ffmpeg >/dev/null || die |
642 |
- cp libavcodec/ppc/h264dsp.c libavcodec/ppc/h264dsp_ppc.c || die |
643 |
- cp libavcodec/ppc/h264qpel.c libavcodec/ppc/h264qpel_ppc.c || die |
644 |
- popd >/dev/null || die |
645 |
- fi |
646 |
- |
647 |
- # Remove most bundled libraries. Some are still needed. |
648 |
- build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove || die |
649 |
- |
650 |
- if use js-type-check; then |
651 |
- ln -s "${EPREFIX}"/usr/bin/java third_party/jdk/current/bin/java || die |
652 |
- fi |
653 |
- |
654 |
- # bundled eu-strip is for amd64 only and we don't want to pre-stripped binaries |
655 |
- mkdir -p buildtools/third_party/eu-strip/bin || die |
656 |
- ln -s "${EPREFIX}"/bin/true buildtools/third_party/eu-strip/bin/eu-strip || die |
657 |
-} |
658 |
- |
659 |
-chromium_configure() { |
660 |
- # Calling this here supports resumption via FEATURES=keepwork |
661 |
- python_setup |
662 |
- |
663 |
- local myconf_gn="" |
664 |
- |
665 |
- # Make sure the build system will use the right tools, bug #340795. |
666 |
- tc-export AR CC CXX NM |
667 |
- |
668 |
- if needs_clang && ! tc-is-clang; then |
669 |
- # Force clang since gcc is either broken or build is using libcxx. |
670 |
- if tc-is-cross-compiler; then |
671 |
- CC="${CBUILD}-clang -target ${CHOST} --sysroot ${ESYSROOT}" |
672 |
- CXX="${CBUILD}-clang++ -target ${CHOST} --sysroot ${ESYSROOT}" |
673 |
- BUILD_CC=${CBUILD}-clang |
674 |
- BUILD_CXX=${CBUILD}-clang++ |
675 |
- else |
676 |
- CC=${CHOST}-clang |
677 |
- CXX=${CHOST}-clang++ |
678 |
- fi |
679 |
- strip-unsupported-flags |
680 |
- fi |
681 |
- |
682 |
- if tc-is-clang; then |
683 |
- myconf_gn+=" is_clang=true clang_use_chrome_plugins=false" |
684 |
- else |
685 |
- myconf_gn+=" is_clang=false" |
686 |
- fi |
687 |
- |
688 |
- # Force lld for lto or pgo builds only, otherwise disable, bug 641556 |
689 |
- if use lto || use pgo; then |
690 |
- myconf_gn+=" use_lld=true" |
691 |
- else |
692 |
- myconf_gn+=" use_lld=false" |
693 |
- fi |
694 |
- |
695 |
- if use lto || use pgo; then |
696 |
- AR=llvm-ar |
697 |
- NM=llvm-nm |
698 |
- if tc-is-cross-compiler; then |
699 |
- BUILD_AR=llvm-ar |
700 |
- BUILD_NM=llvm-nm |
701 |
- fi |
702 |
- fi |
703 |
- |
704 |
- # Define a custom toolchain for GN |
705 |
- myconf_gn+=" custom_toolchain=\"//build/toolchain/linux/unbundle:default\"" |
706 |
- |
707 |
- if tc-is-cross-compiler; then |
708 |
- tc-export BUILD_{AR,CC,CXX,NM} |
709 |
- myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:host\"" |
710 |
- myconf_gn+=" v8_snapshot_toolchain=\"//build/toolchain/linux/unbundle:host\"" |
711 |
- myconf_gn+=" pkg_config=\"$(tc-getPKG_CONFIG)\"" |
712 |
- myconf_gn+=" host_pkg_config=\"$(tc-getBUILD_PKG_CONFIG)\"" |
713 |
- |
714 |
- # setup cups-config, build system only uses --libs option |
715 |
- if use cups; then |
716 |
- mkdir "${T}/cups-config" || die |
717 |
- cp "${ESYSROOT}/usr/bin/${CHOST}-cups-config" "${T}/cups-config/cups-config" || die |
718 |
- export PATH="${PATH}:${T}/cups-config" |
719 |
- fi |
720 |
- |
721 |
- # Don't inherit PKG_CONFIG_PATH from environment |
722 |
- local -x PKG_CONFIG_PATH= |
723 |
- else |
724 |
- myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:default\"" |
725 |
- fi |
726 |
- |
727 |
- # GN needs explicit config for Debug/Release as opposed to inferring it from build directory. |
728 |
- myconf_gn+=" is_debug=false" |
729 |
- |
730 |
- # enable DCHECK with USE=debug only, increases chrome binary size by 30%, bug #811138. |
731 |
- # DCHECK is fatal by default, make it configurable at runtime, #bug 807881. |
732 |
- myconf_gn+=" dcheck_always_on=$(usex debug true false)" |
733 |
- myconf_gn+=" dcheck_is_configurable=$(usex debug true false)" |
734 |
- |
735 |
- # Component build isn't generally intended for use by end users. It's mostly useful |
736 |
- # for development and debugging. |
737 |
- myconf_gn+=" is_component_build=$(usex component-build true false)" |
738 |
- |
739 |
- # Disable nacl, we can't build without pnacl (http://crbug.com/269560). |
740 |
- myconf_gn+=" enable_nacl=false" |
741 |
- |
742 |
- # Use system-provided libraries. |
743 |
- # TODO: freetype -- remove sources (https://bugs.chromium.org/p/pdfium/issues/detail?id=733). |
744 |
- # TODO: use_system_hunspell (upstream changes needed). |
745 |
- # TODO: use_system_protobuf (bug #525560). |
746 |
- # TODO: use_system_sqlite (http://crbug.com/22208). |
747 |
- |
748 |
- # libevent: https://bugs.gentoo.org/593458 |
749 |
- local gn_system_libraries=( |
750 |
- flac |
751 |
- fontconfig |
752 |
- freetype |
753 |
- # Need harfbuzz_from_pkgconfig target |
754 |
- #harfbuzz-ng |
755 |
- libdrm |
756 |
- libjpeg |
757 |
- libwebp |
758 |
- libxml |
759 |
- libxslt |
760 |
- openh264 |
761 |
- zlib |
762 |
- ) |
763 |
- if use system-ffmpeg; then |
764 |
- gn_system_libraries+=( ffmpeg opus ) |
765 |
- fi |
766 |
- if use system-icu; then |
767 |
- gn_system_libraries+=( icu ) |
768 |
- fi |
769 |
- if use system-png; then |
770 |
- gn_system_libraries+=( libpng ) |
771 |
- fi |
772 |
- # re2 library interface relies on std::string and std::vector |
773 |
- if ! use libcxx; then |
774 |
- gn_system_libraries+=( re2 ) |
775 |
- fi |
776 |
- build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die |
777 |
- |
778 |
- # See dependency logic in third_party/BUILD.gn |
779 |
- myconf_gn+=" use_system_harfbuzz=$(usex system-harfbuzz true false)" |
780 |
- |
781 |
- # Disable deprecated libgnome-keyring dependency, bug #713012 |
782 |
- myconf_gn+=" use_gnome_keyring=false" |
783 |
- |
784 |
- # Optional dependencies. |
785 |
- myconf_gn+=" enable_js_type_check=$(usex js-type-check true false)" |
786 |
- myconf_gn+=" enable_hangout_services_extension=$(usex hangouts true false)" |
787 |
- myconf_gn+=" enable_widevine=$(usex widevine true false)" |
788 |
- |
789 |
- if use headless; then |
790 |
- myconf_gn+=" use_cups=false" |
791 |
- myconf_gn+=" use_kerberos=false" |
792 |
- myconf_gn+=" use_pulseaudio=false" |
793 |
- myconf_gn+=" use_vaapi=false" |
794 |
- myconf_gn+=" rtc_use_pipewire=false" |
795 |
- else |
796 |
- myconf_gn+=" use_cups=$(usex cups true false)" |
797 |
- myconf_gn+=" use_kerberos=$(usex kerberos true false)" |
798 |
- myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)" |
799 |
- myconf_gn+=" use_vaapi=$(usex vaapi true false)" |
800 |
- myconf_gn+=" rtc_use_pipewire=$(usex screencast true false)" |
801 |
- myconf_gn+=" gtk_version=$(usex gtk4 4 3)" |
802 |
- fi |
803 |
- |
804 |
- # TODO: link_pulseaudio=true for GN. |
805 |
- |
806 |
- myconf_gn+=" disable_fieldtrial_testing_config=true" |
807 |
- |
808 |
- # Never use bundled gold binary. Disable gold linker flags for now. |
809 |
- # Do not use bundled clang. |
810 |
- # Trying to use gold results in linker crash. |
811 |
- myconf_gn+=" use_gold=false use_sysroot=false" |
812 |
- myconf_gn+=" use_custom_libcxx=$(usex libcxx true false)" |
813 |
- |
814 |
- # Disable pseudolocales, only used for testing |
815 |
- myconf_gn+=" enable_pseudolocales=false" |
816 |
- |
817 |
- # Disable code formating of generated files |
818 |
- myconf_gn+=" blink_enable_generated_code_formatting=false" |
819 |
- |
820 |
- ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)" |
821 |
- myconf_gn+=" proprietary_codecs=$(usex proprietary-codecs true false)" |
822 |
- myconf_gn+=" ffmpeg_branding=\"${ffmpeg_branding}\"" |
823 |
- |
824 |
- # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . |
825 |
- # Note: these are for Gentoo use ONLY. For your own distribution, |
826 |
- # please get your own set of keys. Feel free to contact chromium@g.o |
827 |
- # for more info. The OAuth2 credentials, however, have been left out. |
828 |
- # Those OAuth2 credentials have been broken for quite some time anyway. |
829 |
- # Instead we apply a patch to use the --oauth2-client-id= and |
830 |
- # --oauth2-client-secret= switches for setting GOOGLE_DEFAULT_CLIENT_ID and |
831 |
- # GOOGLE_DEFAULT_CLIENT_SECRET at runtime. This allows signing into |
832 |
- # Chromium without baked-in values. |
833 |
- local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc" |
834 |
- myconf_gn+=" google_api_key=\"${google_api_key}\"" |
835 |
- local myarch="$(tc-arch)" |
836 |
- |
837 |
- # Avoid CFLAGS problems, bug #352457, bug #390147. |
838 |
- if ! use custom-cflags; then |
839 |
- replace-flags "-Os" "-O2" |
840 |
- strip-flags |
841 |
- |
842 |
- # Debug info section overflows without component build |
843 |
- # Prevent linker from running out of address space, bug #471810 . |
844 |
- if ! use component-build || use x86; then |
845 |
- filter-flags "-g*" |
846 |
- fi |
847 |
- |
848 |
- # Prevent libvpx/xnnpack build failures. Bug 530248, 544702, 546984, 853646. |
849 |
- if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then |
850 |
- filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2 -mno-fma -mno-fma4 -mno-xop -mno-sse4a |
851 |
- fi |
852 |
- fi |
853 |
- |
854 |
- if [[ $myarch = amd64 ]] ; then |
855 |
- myconf_gn+=" target_cpu=\"x64\"" |
856 |
- ffmpeg_target_arch=x64 |
857 |
- elif [[ $myarch = x86 ]] ; then |
858 |
- myconf_gn+=" target_cpu=\"x86\"" |
859 |
- ffmpeg_target_arch=ia32 |
860 |
- |
861 |
- # This is normally defined by compiler_cpu_abi in |
862 |
- # build/config/compiler/BUILD.gn, but we patch that part out. |
863 |
- append-flags -msse2 -mfpmath=sse -mmmx |
864 |
- elif [[ $myarch = arm64 ]] ; then |
865 |
- myconf_gn+=" target_cpu=\"arm64\"" |
866 |
- ffmpeg_target_arch=arm64 |
867 |
- elif [[ $myarch = arm ]] ; then |
868 |
- myconf_gn+=" target_cpu=\"arm\"" |
869 |
- ffmpeg_target_arch=$(usex cpu_flags_arm_neon arm-neon arm) |
870 |
- elif [[ $myarch = ppc64 ]] ; then |
871 |
- myconf_gn+=" target_cpu=\"ppc64\"" |
872 |
- ffmpeg_target_arch=ppc64 |
873 |
- else |
874 |
- die "Failed to determine target arch, got '$myarch'." |
875 |
- fi |
876 |
- |
877 |
- # Make sure that -Werror doesn't get added to CFLAGS by the build system. |
878 |
- # Depending on GCC version the warnings are different and we don't want |
879 |
- # the build to fail because of that. |
880 |
- myconf_gn+=" treat_warnings_as_errors=false" |
881 |
- |
882 |
- # Disable fatal linker warnings, bug 506268. |
883 |
- myconf_gn+=" fatal_linker_warnings=false" |
884 |
- |
885 |
- # Disable external code space for V8 for ppc64. It is disabled for ppc64 |
886 |
- # by default, but cross-compiling on amd64 enables it again. |
887 |
- if tc-is-cross-compiler; then |
888 |
- if ! use amd64 && ! use arm64; then |
889 |
- myconf_gn+=" v8_enable_external_code_space=false" |
890 |
- fi |
891 |
- fi |
892 |
- |
893 |
- # Bug 491582. |
894 |
- export TMPDIR="${WORKDIR}/temp" |
895 |
- mkdir -p -m 755 "${TMPDIR}" || die |
896 |
- |
897 |
- # https://bugs.gentoo.org/654216 |
898 |
- addpredict /dev/dri/ #nowarn |
899 |
- |
900 |
- #if ! use system-ffmpeg; then |
901 |
- if false; then |
902 |
- local build_ffmpeg_args="" |
903 |
- if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then |
904 |
- build_ffmpeg_args+=" --disable-asm" |
905 |
- fi |
906 |
- |
907 |
- # Re-configure bundled ffmpeg. See bug #491378 for example reasons. |
908 |
- einfo "Configuring bundled ffmpeg..." |
909 |
- pushd third_party/ffmpeg > /dev/null || die |
910 |
- chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \ |
911 |
- --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die |
912 |
- chromium/scripts/copy_config.sh || die |
913 |
- chromium/scripts/generate_gn.py || die |
914 |
- popd > /dev/null || die |
915 |
- fi |
916 |
- |
917 |
- # Disable unknown warning message from clang. |
918 |
- if tc-is-clang; then |
919 |
- append-flags -Wno-unknown-warning-option |
920 |
- if tc-is-cross-compiler; then |
921 |
- export BUILD_CXXFLAGS+=" -Wno-unknown-warning-option" |
922 |
- export BUILD_CFLAGS+=" -Wno-unknown-warning-option" |
923 |
- fi |
924 |
- fi |
925 |
- |
926 |
- # Disable opaque pointers, https://crbug.com/1316298 |
927 |
- if tc-is-clang; then |
928 |
- if test-flag-CXX -Xclang -no-opaque-pointers; then |
929 |
- append-flags -Xclang -no-opaque-pointers |
930 |
- if tc-is-cross-compiler; then |
931 |
- export BUILD_CXXFLAGS+=" -Xclang -no-opaque-pointers" |
932 |
- export BUILD_CFLAGS+=" -Xclang -no-opaque-pointers" |
933 |
- fi |
934 |
- fi |
935 |
- fi |
936 |
- |
937 |
- # Explicitly disable ICU data file support for system-icu/headless builds. |
938 |
- if use system-icu || use headless; then |
939 |
- myconf_gn+=" icu_use_data_file=false" |
940 |
- fi |
941 |
- |
942 |
- # Enable ozone wayland and/or headless support |
943 |
- myconf_gn+=" use_ozone=true ozone_auto_platforms=false" |
944 |
- myconf_gn+=" ozone_platform_headless=true" |
945 |
- if use headless; then |
946 |
- myconf_gn+=" ozone_platform=\"headless\"" |
947 |
- myconf_gn+=" use_xkbcommon=false use_gtk=false" |
948 |
- myconf_gn+=" use_glib=false use_gio=false" |
949 |
- myconf_gn+=" use_pangocairo=false use_alsa=false" |
950 |
- myconf_gn+=" use_libpci=false use_udev=false" |
951 |
- myconf_gn+=" enable_print_preview=false" |
952 |
- myconf_gn+=" enable_remoting=false" |
953 |
- else |
954 |
- myconf_gn+=" use_system_libdrm=true" |
955 |
- myconf_gn+=" use_system_minigbm=true" |
956 |
- myconf_gn+=" use_xkbcommon=true" |
957 |
- myconf_gn+=" ozone_platform_x11=$(usex X true false)" |
958 |
- myconf_gn+=" ozone_platform_wayland=$(usex wayland true false)" |
959 |
- myconf_gn+=" ozone_platform=$(usex wayland \"wayland\" \"x11\")" |
960 |
- fi |
961 |
- |
962 |
- # Results in undefined references in chrome linking, may require CFI to work |
963 |
- if use arm64; then |
964 |
- myconf_gn+=" arm_control_flow_integrity=\"none\"" |
965 |
- fi |
966 |
- |
967 |
- # Enable official builds |
968 |
- myconf_gn+=" is_official_build=$(usex official true false)" |
969 |
- myconf_gn+=" use_thin_lto=$(usex lto true false)" |
970 |
- myconf_gn+=" thin_lto_enable_optimizations=$(usex lto true false)" |
971 |
- if use official; then |
972 |
- # Allow building against system libraries in official builds |
973 |
- sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \ |
974 |
- tools/generate_shim_headers/generate_shim_headers.py || die |
975 |
- # Disable CFI: unsupported for GCC, requires clang+lto+lld |
976 |
- myconf_gn+=" is_cfi=false" |
977 |
- # Don't add symbols to build |
978 |
- myconf_gn+=" symbol_level=0" |
979 |
- fi |
980 |
- |
981 |
- if use pgo; then |
982 |
- myconf_gn+=" chrome_pgo_phase=${1}" |
983 |
- if [[ "$1" == "2" ]]; then |
984 |
- myconf_gn+=" pgo_data_path=\"${2}\"" |
985 |
- fi |
986 |
- else |
987 |
- # Disable PGO, because profile data is only compatible with >=clang-11 |
988 |
- myconf_gn+=" chrome_pgo_phase=0" |
989 |
- fi |
990 |
- |
991 |
- # user CXXFLAGS might overwrite -march=armv8-a+crc+crypto, bug #851639 |
992 |
- if use arm64 && tc-is-gcc; then |
993 |
- sed -i '/^#if HAVE_ARM64_CRC32C/a #pragma GCC target ("+crc+crypto")' \ |
994 |
- third_party/crc32c/src/src/crc32c_arm64.cc || die |
995 |
- fi |
996 |
- |
997 |
- einfo "Configuring Chromium..." |
998 |
- set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release |
999 |
- echo "$@" |
1000 |
- "$@" || die |
1001 |
-} |
1002 |
- |
1003 |
-src_configure() { |
1004 |
- chromium_configure $(usex pgo 1 0) |
1005 |
-} |
1006 |
- |
1007 |
-chromium_compile() { |
1008 |
- # Final link uses lots of file descriptors. |
1009 |
- ulimit -n 2048 |
1010 |
- |
1011 |
- # Calling this here supports resumption via FEATURES=keepwork |
1012 |
- python_setup |
1013 |
- |
1014 |
- # Don't inherit PYTHONPATH from environment, bug #789021, #812689 |
1015 |
- local -x PYTHONPATH= |
1016 |
- |
1017 |
- #"${EPYTHON}" tools/clang/scripts/update.py --force-local-build --gcc-toolchain /usr --skip-checkout --use-system-cmake --without-android || die |
1018 |
- |
1019 |
- # Build mksnapshot and pax-mark it. |
1020 |
- local x |
1021 |
- for x in mksnapshot v8_context_snapshot_generator; do |
1022 |
- if tc-is-cross-compiler; then |
1023 |
- eninja -C out/Release "host/${x}" |
1024 |
- pax-mark m "out/Release/host/${x}" |
1025 |
- else |
1026 |
- eninja -C out/Release "${x}" |
1027 |
- pax-mark m "out/Release/${x}" |
1028 |
- fi |
1029 |
- done |
1030 |
- |
1031 |
- # Even though ninja autodetects number of CPUs, we respect |
1032 |
- # user's options, for debugging with -j 1 or any other reason. |
1033 |
- eninja -C out/Release chrome chromedriver |
1034 |
- use suid && eninja -C out/Release chrome_sandbox |
1035 |
- |
1036 |
- pax-mark m out/Release/chrome |
1037 |
-} |
1038 |
- |
1039 |
-# This function is called from virtx, and must always return so that Xvfb |
1040 |
-# session isn't left running. If we return 1, virtx will call die(). |
1041 |
-chromium_profile() { |
1042 |
- einfo "Profiling for PGO" |
1043 |
- |
1044 |
- pushd "${WORKDIR}/chromium-profiler-"* >/dev/null || return 1 |
1045 |
- |
1046 |
- # Remove old profdata in case profiling was interrupted. |
1047 |
- rm -rf "${1}" || return 1 |
1048 |
- |
1049 |
- if ! "${EPYTHON}" ./chromium_profiler.py \ |
1050 |
- --chrome-executable "${S}/out/Release/chrome" \ |
1051 |
- --chromedriver-executable "${S}/out/Release/chromedriver.unstripped" \ |
1052 |
- --add-arg no-sandbox --add-arg disable-dev-shm-usage \ |
1053 |
- --profile-output "${1}"; then |
1054 |
- eerror "Profiling failed" |
1055 |
- return 1 |
1056 |
- fi |
1057 |
- |
1058 |
- popd >/dev/null || return 1 |
1059 |
-} |
1060 |
- |
1061 |
-src_compile() { |
1062 |
- if use pgo; then |
1063 |
- local profdata |
1064 |
- |
1065 |
- profdata="${WORKDIR}/chromium.profdata" |
1066 |
- |
1067 |
- if [[ ! -e "${WORKDIR}/.pgo-profiled" ]]; then |
1068 |
- chromium_compile |
1069 |
- virtx chromium_profile "$profdata" |
1070 |
- |
1071 |
- touch "${WORKDIR}/.pgo-profiled" || die |
1072 |
- fi |
1073 |
- |
1074 |
- if [[ ! -e "${WORKDIR}/.pgo-phase-2-configured" ]]; then |
1075 |
- # Remove phase 1 output |
1076 |
- rm -r out/Release || die |
1077 |
- |
1078 |
- chromium_configure 2 "$profdata" |
1079 |
- |
1080 |
- touch "${WORKDIR}/.pgo-phase-2-configured" || die |
1081 |
- fi |
1082 |
- |
1083 |
- if [[ ! -e "${WORKDIR}/.pgo-phase-2-compiled" ]]; then |
1084 |
- chromium_compile |
1085 |
- touch "${WORKDIR}/.pgo-phase-2-compiled" || die |
1086 |
- fi |
1087 |
- else |
1088 |
- chromium_compile |
1089 |
- fi |
1090 |
- |
1091 |
- mv out/Release/chromedriver{.unstripped,} || die |
1092 |
- |
1093 |
- # Build manpage; bug #684550 |
1094 |
- sed -e 's|@@PACKAGE@@|chromium-browser|g; |
1095 |
- s|@@MENUNAME@@|Chromium|g;' \ |
1096 |
- chrome/app/resources/manpage.1.in > \ |
1097 |
- out/Release/chromium-browser.1 || die |
1098 |
- |
1099 |
- # Build desktop file; bug #706786 |
1100 |
- sed -e 's|@@MENUNAME@@|Chromium|g; |
1101 |
- s|@@USR_BIN_SYMLINK_NAME@@|chromium-browser|g; |
1102 |
- s|@@PACKAGE@@|chromium-browser|g; |
1103 |
- s|\(^Exec=\)/usr/bin/|\1|g;' \ |
1104 |
- chrome/installer/linux/common/desktop.template > \ |
1105 |
- out/Release/chromium-browser-chromium.desktop || die |
1106 |
- |
1107 |
- # Build vk_swiftshader_icd.json; bug #827861 |
1108 |
- sed -e 's|${ICD_LIBRARY_PATH}|./libvk_swiftshader.so|g' \ |
1109 |
- third_party/swiftshader/src/Vulkan/vk_swiftshader_icd.json.tmpl > \ |
1110 |
- out/Release/vk_swiftshader_icd.json || die |
1111 |
-} |
1112 |
- |
1113 |
-src_install() { |
1114 |
- local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" |
1115 |
- exeinto "${CHROMIUM_HOME}" |
1116 |
- doexe out/Release/chrome |
1117 |
- |
1118 |
- if use suid; then |
1119 |
- newexe out/Release/chrome_sandbox chrome-sandbox |
1120 |
- fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox" |
1121 |
- fi |
1122 |
- |
1123 |
- doexe out/Release/chromedriver |
1124 |
- doexe out/Release/chrome_crashpad_handler |
1125 |
- |
1126 |
- ozone_auto_session () { |
1127 |
- use X && use wayland && ! use headless && echo true || echo false |
1128 |
- } |
1129 |
- local sedargs=( -e |
1130 |
- "s:/usr/lib/:/usr/$(get_libdir)/:g; |
1131 |
- s:@@OZONE_AUTO_SESSION@@:$(ozone_auto_session):g" |
1132 |
- ) |
1133 |
- sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r7.sh" > chromium-launcher.sh || die |
1134 |
- doexe chromium-launcher.sh |
1135 |
- |
1136 |
- # It is important that we name the target "chromium-browser", |
1137 |
- # xdg-utils expect it; bug #355517. |
1138 |
- dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser |
1139 |
- # keep the old symlink around for consistency |
1140 |
- dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium |
1141 |
- |
1142 |
- dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver |
1143 |
- |
1144 |
- # Allow users to override command-line options, bug #357629. |
1145 |
- insinto /etc/chromium |
1146 |
- newins "${FILESDIR}/chromium.default" "default" |
1147 |
- |
1148 |
- pushd out/Release/locales > /dev/null || die |
1149 |
- chromium_remove_language_paks |
1150 |
- popd |
1151 |
- |
1152 |
- insinto "${CHROMIUM_HOME}" |
1153 |
- doins out/Release/*.bin |
1154 |
- doins out/Release/*.pak |
1155 |
- ( |
1156 |
- shopt -s nullglob |
1157 |
- local files=(out/Release/*.so out/Release/*.so.[0-9]) |
1158 |
- [[ ${#files[@]} -gt 0 ]] && doins "${files[@]}" |
1159 |
- ) |
1160 |
- |
1161 |
- if ! use system-icu && ! use headless; then |
1162 |
- doins out/Release/icudtl.dat |
1163 |
- fi |
1164 |
- |
1165 |
- doins -r out/Release/locales |
1166 |
- doins -r out/Release/MEIPreload |
1167 |
- |
1168 |
- # Install vk_swiftshader_icd.json; bug #827861 |
1169 |
- doins out/Release/vk_swiftshader_icd.json |
1170 |
- |
1171 |
- if [[ -d out/Release/swiftshader ]]; then |
1172 |
- insinto "${CHROMIUM_HOME}/swiftshader" |
1173 |
- doins out/Release/swiftshader/*.so |
1174 |
- fi |
1175 |
- |
1176 |
- # Install icons |
1177 |
- local branding size |
1178 |
- for size in 16 24 32 48 64 128 256 ; do |
1179 |
- case ${size} in |
1180 |
- 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; |
1181 |
- *) branding="chrome/app/theme/chromium" ;; |
1182 |
- esac |
1183 |
- newicon -s ${size} "${branding}/product_logo_${size}.png" \ |
1184 |
- chromium-browser.png |
1185 |
- done |
1186 |
- |
1187 |
- # Install desktop entry |
1188 |
- domenu out/Release/chromium-browser-chromium.desktop |
1189 |
- |
1190 |
- # Install GNOME default application entry (bug #303100). |
1191 |
- insinto /usr/share/gnome-control-center/default-apps |
1192 |
- newins "${FILESDIR}"/chromium-browser.xml chromium-browser.xml |
1193 |
- |
1194 |
- # Install manpage; bug #684550 |
1195 |
- doman out/Release/chromium-browser.1 |
1196 |
- dosym chromium-browser.1 /usr/share/man/man1/chromium.1 |
1197 |
- |
1198 |
- readme.gentoo_create_doc |
1199 |
-} |
1200 |
- |
1201 |
-pkg_postrm() { |
1202 |
- xdg_icon_cache_update |
1203 |
- xdg_desktop_database_update |
1204 |
-} |
1205 |
- |
1206 |
-pkg_postinst() { |
1207 |
- xdg_icon_cache_update |
1208 |
- xdg_desktop_database_update |
1209 |
- readme.gentoo_print_elog |
1210 |
- |
1211 |
- if ! use headless; then |
1212 |
- if use vaapi; then |
1213 |
- elog "VA-API is disabled by default at runtime. You have to enable it" |
1214 |
- elog "by adding --enable-features=VaapiVideoDecoder to CHROMIUM_FLAGS" |
1215 |
- elog "in /etc/chromium/default." |
1216 |
- fi |
1217 |
- if use screencast; then |
1218 |
- elog "Screencast is disabled by default at runtime. Either enable it" |
1219 |
- elog "by navigating to chrome://flags/#enable-webrtc-pipewire-capturer" |
1220 |
- elog "inside Chromium or add --enable-features=WebRTCPipeWireCapturer" |
1221 |
- elog "to CHROMIUM_FLAGS in /etc/chromium/default." |
1222 |
- fi |
1223 |
- if use gtk4; then |
1224 |
- elog "Chromium prefers GTK3 over GTK4 at runtime. To override this" |
1225 |
- elog "behavior you need to pass --gtk-version=4, e.g. by adding it" |
1226 |
- elog "to CHROMIUM_FLAGS in /etc/chromium/default." |
1227 |
- fi |
1228 |
- fi |
1229 |
-} |
1230 |
|
1231 |
diff --git a/www-client/chromium/files/chromium-104-swiftshader-no-wayland.patch b/www-client/chromium/files/chromium-104-swiftshader-no-wayland.patch |
1232 |
deleted file mode 100644 |
1233 |
index 75f78f36bc3d..000000000000 |
1234 |
--- a/www-client/chromium/files/chromium-104-swiftshader-no-wayland.patch |
1235 |
+++ /dev/null |
1236 |
@@ -1,52 +0,0 @@ |
1237 |
---- a/third_party/swiftshader/src/Vulkan/BUILD.gn |
1238 |
-+++ b/third_party/swiftshader/src/Vulkan/BUILD.gn |
1239 |
-@@ -16,14 +16,22 @@ import("//build_overrides/build.gni") |
1240 |
- import("../swiftshader.gni") |
1241 |
- import("vulkan.gni") |
1242 |
- |
1243 |
-+if (is_linux) { |
1244 |
-+ import("//build/config/ozone.gni") |
1245 |
-+} |
1246 |
-+ |
1247 |
- # Need a separate config to ensure the warnings are added to the end. |
1248 |
- config("swiftshader_libvulkan_private_config") { |
1249 |
- if (is_linux) { |
1250 |
- defines = [ |
1251 |
- "VK_USE_PLATFORM_XCB_KHR", |
1252 |
-- "VK_USE_PLATFORM_WAYLAND_KHR", |
1253 |
- "VK_EXPORT=__attribute__((visibility(\"default\")))", |
1254 |
- ] |
1255 |
-+ if (ozone_platform_wayland) { |
1256 |
-+ defines += [ |
1257 |
-+ "VK_USE_PLATFORM_WAYLAND_KHR", |
1258 |
-+ ] |
1259 |
-+ } |
1260 |
- } else if (is_chromeos) { |
1261 |
- defines = [ |
1262 |
- "VK_EXPORT=__attribute__((visibility(\"default\")))", |
1263 |
---- a/third_party/swiftshader/src/WSI/BUILD.gn |
1264 |
-+++ b/third_party/swiftshader/src/WSI/BUILD.gn |
1265 |
-@@ -42,15 +42,19 @@ swiftshader_source_set("WSI") { |
1266 |
- |
1267 |
- if (is_linux) { |
1268 |
- sources += [ |
1269 |
-- "WaylandSurfaceKHR.cpp", |
1270 |
-- "WaylandSurfaceKHR.hpp", |
1271 |
- "XcbSurfaceKHR.cpp", |
1272 |
- "XcbSurfaceKHR.hpp", |
1273 |
-- "libWaylandClient.cpp", |
1274 |
-- "libWaylandClient.hpp", |
1275 |
- "libXCB.cpp", |
1276 |
- "libXCB.hpp", |
1277 |
- ] |
1278 |
-+ if (ozone_platform_wayland) { |
1279 |
-+ sources += [ |
1280 |
-+ "WaylandSurfaceKHR.cpp", |
1281 |
-+ "WaylandSurfaceKHR.hpp", |
1282 |
-+ "libWaylandClient.cpp", |
1283 |
-+ "libWaylandClient.hpp", |
1284 |
-+ ] |
1285 |
-+ } |
1286 |
- } |
1287 |
- |
1288 |
- if (is_win) { |
1289 |
|
1290 |
diff --git a/www-client/chromium/files/chromium-104-v8-neon.patch b/www-client/chromium/files/chromium-104-v8-neon.patch |
1291 |
deleted file mode 100644 |
1292 |
index ee573f8862e6..000000000000 |
1293 |
--- a/www-client/chromium/files/chromium-104-v8-neon.patch |
1294 |
+++ /dev/null |
1295 |
@@ -1,72 +0,0 @@ |
1296 |
-From 0fc6592cf8867f0cd6d8d41b43392fb52d359649 Mon Sep 17 00:00:00 2001 |
1297 |
-From: Jose Dapena Paz <jdapena@××××××.com> |
1298 |
-Date: Tue, 07 Jun 2022 15:44:35 +0200 |
1299 |
-Subject: [PATCH] GCC: fix compilation of NEON64 extract_first_nonzero_index |
1300 |
- |
1301 |
-GCC fails to compile extract_first_nonzero_index because of the |
1302 |
-signedness type mismatch in the NEON intrinsics. |
1303 |
- |
1304 |
-Bug: chromium:819294 |
1305 |
-Change-Id: I9b73e5fa1d5fbf161740ab1b5d77f5c494369dfa |
1306 |
-Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3693709 |
1307 |
-Reviewed-by: Toon Verwaest <verwaest@××××××××.org> |
1308 |
-Commit-Queue: José Dapena Paz <jdapena@××××××.com> |
1309 |
-Cr-Commit-Position: refs/heads/main@{#81063} |
1310 |
---- |
1311 |
- |
1312 |
-diff --git a/v8/src/objects/simd.cc b/v8/src/objects/simd.cc |
1313 |
-index d3cedfe..0a73b9c 100644 |
1314 |
---- a/v8/src/objects/simd.cc |
1315 |
-+++ b/v8/src/objects/simd.cc |
1316 |
-@@ -95,24 +95,21 @@ |
1317 |
- } |
1318 |
- |
1319 |
- template <> |
1320 |
--inline int extract_first_nonzero_index(int32x4_t v) { |
1321 |
-- int32x4_t mask = {4, 3, 2, 1}; |
1322 |
-+inline int extract_first_nonzero_index(uint32x4_t v) { |
1323 |
-+ uint32x4_t mask = {4, 3, 2, 1}; |
1324 |
- mask = vandq_u32(mask, v); |
1325 |
- return 4 - vmaxvq_u32(mask); |
1326 |
- } |
1327 |
- |
1328 |
- template <> |
1329 |
--inline int extract_first_nonzero_index(int64x2_t v) { |
1330 |
-- int32x4_t mask = {2, 0, 1, 0}; // Could also be {2,2,1,1} or {0,2,0,1} |
1331 |
-- mask = vandq_u32(mask, vreinterpretq_s32_s64(v)); |
1332 |
-+inline int extract_first_nonzero_index(uint64x2_t v) { |
1333 |
-+ uint32x4_t mask = {2, 0, 1, 0}; // Could also be {2,2,1,1} or {0,2,0,1} |
1334 |
-+ mask = vandq_u32(mask, vreinterpretq_u32_u64(v)); |
1335 |
- return 2 - vmaxvq_u32(mask); |
1336 |
- } |
1337 |
- |
1338 |
--template <> |
1339 |
--inline int extract_first_nonzero_index(float64x2_t v) { |
1340 |
-- int32x4_t mask = {2, 0, 1, 0}; // Could also be {2,2,1,1} or {0,2,0,1} |
1341 |
-- mask = vandq_u32(mask, vreinterpretq_s32_f64(v)); |
1342 |
-- return 2 - vmaxvq_u32(mask); |
1343 |
-+inline int32_t reinterpret_vmaxvq_u64(uint64x2_t v) { |
1344 |
-+ return vmaxvq_u32(vreinterpretq_u32_u64(v)); |
1345 |
- } |
1346 |
- #endif |
1347 |
- |
1348 |
-@@ -204,14 +201,14 @@ |
1349 |
- } |
1350 |
- #elif defined(NEON64) |
1351 |
- if constexpr (std::is_same<T, uint32_t>::value) { |
1352 |
-- VECTORIZED_LOOP_Neon(int32x4_t, int32x4_t, vdupq_n_u32, vceqq_u32, |
1353 |
-+ VECTORIZED_LOOP_Neon(uint32x4_t, uint32x4_t, vdupq_n_u32, vceqq_u32, |
1354 |
- vmaxvq_u32) |
1355 |
- } else if constexpr (std::is_same<T, uint64_t>::value) { |
1356 |
-- VECTORIZED_LOOP_Neon(int64x2_t, int64x2_t, vdupq_n_u64, vceqq_u64, |
1357 |
-- vmaxvq_u32) |
1358 |
-+ VECTORIZED_LOOP_Neon(uint64x2_t, uint64x2_t, vdupq_n_u64, vceqq_u64, |
1359 |
-+ reinterpret_vmaxvq_u64) |
1360 |
- } else if constexpr (std::is_same<T, double>::value) { |
1361 |
-- VECTORIZED_LOOP_Neon(float64x2_t, float64x2_t, vdupq_n_f64, vceqq_f64, |
1362 |
-- vmaxvq_f64) |
1363 |
-+ VECTORIZED_LOOP_Neon(float64x2_t, uint64x2_t, vdupq_n_f64, vceqq_f64, |
1364 |
-+ reinterpret_vmaxvq_u64) |
1365 |
- } |
1366 |
- #else |
1367 |
- UNREACHABLE(); |