diff options
| author | Shokara Kou <kou@13f0.net> | 2022-05-19 21:42:58 -0400 |
|---|---|---|
| committer | Shokara Kou <kou@13f0.net> | 2022-05-19 21:42:58 -0400 |
| commit | afe68f94127540ca92b123dbce9ce2cc3ce50dae (patch) | |
| tree | 62c0252f279c3f6e5503cd7600dbf8c2d59556ac | |
| parent | 44d269a9f7f2f872cda3cdc036a91664bd9ded05 (diff) | |
add wip flavour for ungoogled-chromium
1085 files changed, 44542 insertions, 0 deletions
diff --git a/www/chromium/CVS/Entries b/www/chromium/CVS/Entries new file mode 100644 index 0000000..b94e422 --- /dev/null +++ b/www/chromium/CVS/Entries | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | /Makefile/1.628/Tue Apr 5 14:41:58 2022// | ||
| 2 | /distinfo/1.293/Tue Apr 5 14:41:58 2022// | ||
| 3 | D/chromium//// | ||
| 4 | D/electron//// | ||
| 5 | D/files//// | ||
| 6 | D/patches//// | ||
| 7 | D/pkg//// | ||
diff --git a/www/chromium/CVS/Repository b/www/chromium/CVS/Repository new file mode 100644 index 0000000..3e3ccb6 --- /dev/null +++ b/www/chromium/CVS/Repository | |||
| @@ -0,0 +1 @@ | |||
| ports/www/chromium | |||
diff --git a/www/chromium/CVS/Root b/www/chromium/CVS/Root new file mode 100644 index 0000000..3811072 --- /dev/null +++ b/www/chromium/CVS/Root | |||
| @@ -0,0 +1 @@ | |||
| /cvs | |||
diff --git a/www/chromium/Makefile b/www/chromium/Makefile new file mode 100644 index 0000000..13b13ff --- /dev/null +++ b/www/chromium/Makefile | |||
| @@ -0,0 +1,344 @@ | |||
| 1 | BROKEN-powerpc64 = Check failed: false. OS architecture not handled. (powerpc64) | ||
| 2 | |||
| 3 | USE_WXNEEDED= Yes | ||
| 4 | |||
| 5 | DPB_PROPERTIES= parallel parallel2 | ||
| 6 | |||
| 7 | COMMENT= Chromium browser | ||
| 8 | |||
| 9 | V= 100.0.4896.75 | ||
| 10 | |||
| 11 | DISTNAME= chromium-${V} | ||
| 12 | |||
| 13 | DISTFILES+= ${EXTRACT_ONLY} \ | ||
| 14 | ${REGRESS_DISTFILES} | ||
| 15 | |||
| 16 | REGRESS_DISTFILES+= chromium-${V}-testdata${EXTRACT_SUFX} \ | ||
| 17 | test_fonts-cd96fc55dc243f6c6f4cb63ad117cad6cd48dceb.tar.gz:0 \ | ||
| 18 | ${V}-1.tar.gz:1 | ||
| 19 | |||
| 20 | EXTRACT_ONLY= chromium-${V}${EXTRACT_SUFX} | ||
| 21 | |||
| 22 | CATEGORIES= www | ||
| 23 | |||
| 24 | HOMEPAGE= https://www.chromium.org/Home | ||
| 25 | |||
| 26 | MAINTAINER= Robert Nagy <robert@openbsd.org> | ||
| 27 | |||
| 28 | EXTRACT_SUFX= .tar.xz | ||
| 29 | |||
| 30 | FLAVORS= component ungoogled | ||
| 31 | PSEUDO_FLAVORS= debug | ||
| 32 | FLAVOR?= | ||
| 33 | |||
| 34 | # BSD-like | ||
| 35 | PERMIT_PACKAGE = Yes | ||
| 36 | |||
| 37 | MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ | ||
| 38 | MASTER_SITES0= http://nerd.hu/distfiles/ | ||
| 39 | MASTER_SITES1= https://codeberg.org/eloston/ungoogled-chromium/archive/ | ||
| 40 | |||
| 41 | MODULES= lang/python | ||
| 42 | |||
| 43 | COMPILER = base-clang ports-clang ports-gcc | ||
| 44 | |||
| 45 | MODPY_RUNDEP= No | ||
| 46 | MODPY_SETUPTOOLS= Yes | ||
| 47 | |||
| 48 | PATCHORIG= .orig.port | ||
| 49 | |||
| 50 | # uses pledge() | ||
| 51 | WANTLIB += X11 Xext Xfixes Xrender c dbus-1 event | ||
| 52 | WANTLIB += execinfo Xft | ||
| 53 | WANTLIB += gdk_pixbuf-2.0 glib-2.0 gobject-2.0 | ||
| 54 | WANTLIB += m | ||
| 55 | WANTLIB += kvm pthread | ||
| 56 | WANTLIB += xslt | ||
| 57 | WANTLIB += sndio | ||
| 58 | WANTLIB += ${COMPILER_LIBCXX} | ||
| 59 | WANTLIB += Xi Xtst | ||
| 60 | WANTLIB += Xcursor Xrandr gio-2.0 | ||
| 61 | WANTLIB += nspr4 nss3 nssutil3 smime3 | ||
| 62 | WANTLIB += atk-bridge-2.0 | ||
| 63 | WANTLIB += X11-xcb xcb | ||
| 64 | WANTLIB += GL expat | ||
| 65 | WANTLIB += atk-1.0 cairo gdk-3 gtk-3 pango-1.0 | ||
| 66 | WANTLIB += pangocairo-1.0 | ||
| 67 | WANTLIB += Xcomposite Xdamage | ||
| 68 | WANTLIB += EGL Xau Xdmcp Xinerama Xxf86vm atspi cairo-gobject | ||
| 69 | WANTLIB += drm epoxy fontconfig freetype fribidi gmodule-2.0 graphite2 | ||
| 70 | WANTLIB += gthread-2.0 intl pangoft2-1.0 pcre pixman-1 | ||
| 71 | WANTLIB += plc4 plds4 util xcb-dri2 xcb-glx xcb-render xcb-shm | ||
| 72 | WANTLIB += xml2 z | ||
| 73 | WANTLIB += harfbuzz harfbuzz-subset harfbuzz-gobject | ||
| 74 | WANTLIB += ffi png | ||
| 75 | WANTLIB += iconv lzma | ||
| 76 | WANTLIB += fido2 cbor usbhid crypto | ||
| 77 | WANTLIB += gbm xkbcommon | ||
| 78 | WANTLIB += tiff xshmfence | ||
| 79 | WANTLIB += lzo2 | ||
| 80 | |||
| 81 | RUN_DEPENDS= devel/xdg-utils \ | ||
| 82 | devel/desktop-file-utils \ | ||
| 83 | graphics/libexif \ | ||
| 84 | x11/gtk+3,-guic | ||
| 85 | BUILD_DEPENDS= archivers/bzip2 \ | ||
| 86 | devel/gperf \ | ||
| 87 | devel/bison \ | ||
| 88 | lang/node \ | ||
| 89 | shells/bash \ | ||
| 90 | sysutils/flock \ | ||
| 91 | sysutils/pciutils \ | ||
| 92 | devel/ninja \ | ||
| 93 | x11/gtk+3 \ | ||
| 94 | x11/py-xcbgen${MODPY_FLAVOR} \ | ||
| 95 | ${MODGCC4_CPPDEP} | ||
| 96 | LIB_DEPENDS= devel/harfbuzz \ | ||
| 97 | graphics/tiff \ | ||
| 98 | security/nss \ | ||
| 99 | textproc/libxslt \ | ||
| 100 | x11/gtk+3 \ | ||
| 101 | x11/xkbcommon \ | ||
| 102 | ${MODGCC4_CPPLIBDEP} | ||
| 103 | |||
| 104 | .include <bsd.own.mk> | ||
| 105 | |||
| 106 | # Set BUILDTYPE to Release | ||
| 107 | BUILDTYPE= Release | ||
| 108 | |||
| 109 | SUBST_VARS+= WRKSRC WRKDIR DEBUGFLAG | ||
| 110 | |||
| 111 | ALL_TARGET= chrome | ||
| 112 | TEST_TARGET= base_unittests \ | ||
| 113 | blink_unittests \ | ||
| 114 | chromedriver_unittests \ | ||
| 115 | components_unittests \ | ||
| 116 | content_unittests \ | ||
| 117 | crypto_unittests \ | ||
| 118 | gl_tests \ | ||
| 119 | gpu_unittests \ | ||
| 120 | headless_unittests \ | ||
| 121 | media_unittests \ | ||
| 122 | mojo_unittests \ | ||
| 123 | net_unittests \ | ||
| 124 | printing_unittests \ | ||
| 125 | skia_unittests \ | ||
| 126 | url_unittests \ | ||
| 127 | wm_unittests | ||
| 128 | |||
| 129 | DIST_TARGET_DIR= chrome | ||
| 130 | |||
| 131 | CONFIGURE_STYLE=none # prevent python MODULE from overriding do-build | ||
| 132 | |||
| 133 | BUILDDIR= ${WRKSRC}/out/${BUILDTYPE} | ||
| 134 | |||
| 135 | UNGOOGLED= ${WRKDIST}/ungoogled-chromium | ||
| 136 | |||
| 137 | # These libraries are used from the system and the build infrastructure | ||
| 138 | # removes them from the bundled third_party directory and replaces them | ||
| 139 | # with hooks to use them from the system. | ||
| 140 | GN_SYSTEM_LIBS= libevent \ | ||
| 141 | libxslt | ||
| 142 | |||
| 143 | GN_ARGS= enable_nacl=false \ | ||
| 144 | is_official_build=false \ | ||
| 145 | is_debug=false \ | ||
| 146 | is_cfi=false \ | ||
| 147 | optimize_webui=true \ | ||
| 148 | enable_js_type_check=false \ | ||
| 149 | enable_one_click_signin=true \ | ||
| 150 | enable_remoting=false \ | ||
| 151 | enable_hangout_services_extension=true \ | ||
| 152 | use_kerberos=false \ | ||
| 153 | use_sndio=true \ | ||
| 154 | use_cups=false \ | ||
| 155 | use_system_libdrm=true \ | ||
| 156 | use_bundled_fontconfig=false \ | ||
| 157 | use_system_harfbuzz=true \ | ||
| 158 | use_system_freetype=false \ | ||
| 159 | use_gnome_keyring=false \ | ||
| 160 | is_clang=true \ | ||
| 161 | use_sysroot=false \ | ||
| 162 | treat_warnings_as_errors=false \ | ||
| 163 | clang_use_chrome_plugins=false \ | ||
| 164 | use_allocator=\"none\" \ | ||
| 165 | use_allocator_shim=false \ | ||
| 166 | disable_fieldtrial_testing_config=true \ | ||
| 167 | extra_cppflags=\"-idirafter ${LOCALBASE}/include -idirafter ${X11BASE}/include\" \ | ||
| 168 | fatal_linker_warnings=false \ | ||
| 169 | use_custom_libcxx=false \ | ||
| 170 | enable_wmax_tokens=false \ | ||
| 171 | use_thin_lto=false \ | ||
| 172 | thin_lto_enable_optimizations=false \ | ||
| 173 | use_udev=false | ||
| 174 | |||
| 175 | # notyet | ||
| 176 | GN_ARGS+= use_vaapi=false | ||
| 177 | |||
| 178 | .if ${MACHINE_ARCH} == "i386" | ||
| 179 | GN_ARGS+= extra_ldflags=\"-L${LOCALBASE}/lib -L${X11BASE}/lib -Wl,--no-keep-memory\" | ||
| 180 | .else | ||
| 181 | GN_ARGS+= extra_ldflags=\"-L${LOCALBASE}/lib -L${X11BASE}/lib\" | ||
| 182 | .endif | ||
| 183 | |||
| 184 | .if ${MACHINE_ARCH} == "aarch64" | ||
| 185 | PKG_ARGS+= -Dswiftshader=0 | ||
| 186 | .else | ||
| 187 | PKG_ARGS+= -Dswiftshader=1 | ||
| 188 | .endif | ||
| 189 | |||
| 190 | # Note: these keys are for OpenBSD use ONLY. For your own distribution, | ||
| 191 | # please get your own set of keys. It's free! | ||
| 192 | GN_ARGS+= google_api_key="0" \ | ||
| 193 | ffmpeg_branding=\"Chromium\" \ | ||
| 194 | proprietary_codecs=false | ||
| 195 | |||
| 196 | # These are now restricted to use by Google, so bye-bye sync. | ||
| 197 | #GN_ARGS+= google_default_client_id=\"451220141585.apps.googleusercontent.com\" | ||
| 198 | #GN_ARGS+= google_default_client_secret=\"nQcDyaBvDyCeDrsRqKIWSHJn\" \ | ||
| 199 | |||
| 200 | # XXX dwz doesn't work with chromium yet | ||
| 201 | DWZ = : | ||
| 202 | |||
| 203 | .if ${FLAVOR:Mdebug} | ||
| 204 | GN_ARGS+= symbol_level=1 | ||
| 205 | DEBUG_PACKAGES= ${BUILD_PACKAGES} | ||
| 206 | .else | ||
| 207 | GN_ARGS+= symbol_level=0 | ||
| 208 | .endif | ||
| 209 | |||
| 210 | .if ${FLAVOR:Mcomponent} | ||
| 211 | GN_ARGS+= is_component_build=true | ||
| 212 | .else | ||
| 213 | GN_ARGS+= is_component_build=false | ||
| 214 | .endif | ||
| 215 | |||
| 216 | .if ${FLAVOR:Mungoogled} | ||
| 217 | GN_ARGS+= build_with_tflite_lib=false \ | ||
| 218 | chrome_pgo_phase=0 \ | ||
| 219 | enable_hangout_services_extension=false \ | ||
| 220 | enable_mdns=false \ | ||
| 221 | enable_one_click_signin=false \ | ||
| 222 | enable_reading_list=false \ | ||
| 223 | enable_reporting=false \ | ||
| 224 | enable_service_discovery=false \ | ||
| 225 | enable_widevine=false \ | ||
| 226 | exclude_unwind_tables=true \ | ||
| 227 | google_default_client_id="0" \ | ||
| 228 | google_default_client_secret="0" \ | ||
| 229 | safe_browsing_mode=0 \ | ||
| 230 | use_official_google_api_keys=false \ | ||
| 231 | use_unofficial_version_number=false | ||
| 232 | .endif | ||
| 233 | |||
| 234 | pre-configure: | ||
| 235 | @ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python | ||
| 236 | .for _arch in x64 ia32 arm64 | ||
| 237 | . for _dir in avcodec avformat avutil | ||
| 238 | @cp -pR ${WRKSRC}/third_party/ffmpeg/chromium/config/Chrome/linux/${_arch}/lib${_dir} \ | ||
| 239 | ${WRKSRC}/third_party/ffmpeg/chromium/config/Chrome/openbsd/${_arch}/lib${_dir} | ||
| 240 | . endfor | ||
| 241 | .endfor | ||
| 242 | @mkdir -p ${WRKSRC}/third_party/node/openbsd/node-openbsd/bin | ||
| 243 | @ln -sf ${TRUEPREFIX}/bin/node ${WRKSRC}/third_party/node/openbsd/node-openbsd/bin/node | ||
| 244 | ${SUBST_CMD} ${WRKSRC}/build/gn_run_binary.py ${WRKSRC}/v8/tools/run.py \ | ||
| 245 | ${WRKSRC}/tools/protoc_wrapper/protoc_wrapper.py \ | ||
| 246 | ${WRKSRC}/third_party/blink/renderer/build/scripts/run_with_pythonpath.py \ | ||
| 247 | ${WRKSRC}/base/third_party/libevent/BUILD.gn | ||
| 248 | |||
| 249 | # Configuration consists of three steps: | ||
| 250 | # 1. replace the specified bundled libraries with hooks to use the system libs | ||
| 251 | # 2. bootstrap gn, the tool to generate ninja files | ||
| 252 | # 3. run gn with the appropriate configuration arguments | ||
| 253 | do-configure: | ||
| 254 | .if ${FLAVOR:Mungoogled} | ||
| 255 | @mkdir -p ${UNGOOGLED} | ||
| 256 | @${GZIP_CMD} -d <${FULLDISTDIR}/${V}-1.tar.gz | ${TAR} -C ${UNGOOGLED}/.. -xf - | ||
| 257 | # @cd ${UNGOOGLED} && env -i ${MAKE_ENV} ./utils/prune_binaries.py ${WRKSRC} pruning.list | ||
| 258 | @sed -i "s/, '--no-backup-if-mismatch'//g" ${UNGOOGLED}/utils/patches.py | ||
| 259 | @sed -i "s/, check=True/, check=False/g" ${UNGOOGLED}/utils/patches.py | ||
| 260 | @cd ${UNGOOGLED} && env -i ${MAKE_ENV} ./utils/patches.py apply ${WRKSRC} patches | ||
| 261 | @find ${WRKSRC} -name '*.rej' -exec rm -f {} \; | ||
| 262 | @find ${WRKSRC} -name '*.orig' -exec rm -f {} \; | ||
| 263 | @rm -f ${UNGOOGLED}/domainsubcache.tar.gz | ||
| 264 | @cd ${UNGOOGLED} && env -i ${MAKE_ENV} ./utils/domain_substitution.py apply -r domain_regex.list \ | ||
| 265 | -f domain_substitution.list -c domainsubcache.tar.gz ${WRKSRC} | ||
| 266 | .endif | ||
| 267 | |||
| 268 | @cd ${WRKSRC} && env -i ${MAKE_ENV} build/linux/unbundle/replace_gn_files.py \ | ||
| 269 | --system-libraries ${GN_SYSTEM_LIBS} | ||
| 270 | @cd ${WRKSRC}/tools/gn && env -i ${MAKE_ENV} LDFLAGS=-L${LOCALBASE}/lib ${MODPY_BIN} bootstrap/bootstrap.py \ | ||
| 271 | --no-clean -s --gn-gen-args "${GN_ARGS}" | ||
| 272 | @cd ${WRKSRC} && env -i ${CONFIGURE_ENV} ${WRKSRC}/out/Release/gn \ | ||
| 273 | gen --args="${GN_ARGS}" out/${BUILDTYPE} | ||
| 274 | |||
| 275 | do-build: | ||
| 276 | @cd ${WRKSRC} && env -i ${MAKE_ENV} ninja \ | ||
| 277 | -j ${MAKE_JOBS} -C out/${BUILDTYPE} ${ALL_TARGET} | ||
| 278 | |||
| 279 | do-install: | ||
| 280 | ${INSTALL_DATA_DIR} ${PREFIX}/${DIST_TARGET_DIR} | ||
| 281 | ${INSTALL_PROGRAM} ${BUILDDIR}/${DIST_TARGET_DIR} ${PREFIX}/${DIST_TARGET_DIR} | ||
| 282 | ${SUBST_PROGRAM} ${FILESDIR}/${DIST_TARGET_DIR} ${PREFIX}/bin/${DIST_TARGET_DIR} | ||
| 283 | ${INSTALL_PROGRAM} ${BUILDDIR}/chromedriver.unstripped ${PREFIX}/bin/chromedriver | ||
| 284 | ${INSTALL_MAN} ${WRKSRC}/chrome/app/resources/manpage.1.in ${PREFIX}/man/man1/chrome.1 | ||
| 285 | @perl -pi -e "s,\@\@PACKAGE\@\@,chromium,g;s,\@\@MENUNAME\@\@,Chromium Web Browser,g" \ | ||
| 286 | ${PREFIX}/man/man1/chrome.1 | ||
| 287 | ${INSTALL_DATA} ${BUILDDIR}/*.pak ${PREFIX}/${DIST_TARGET_DIR} | ||
| 288 | |||
| 289 | ${INSTALL_DATA_DIR} ${PREFIX}/${DIST_TARGET_DIR}/locales | ||
| 290 | ${INSTALL_DATA} ${BUILDDIR}/locales/* ${PREFIX}/${DIST_TARGET_DIR}/locales | ||
| 291 | ${INSTALL_DATA} ${BUILDDIR}/*.png ${PREFIX}/${DIST_TARGET_DIR} | ||
| 292 | ${INSTALL_DATA_DIR} ${PREFIX}/${DIST_TARGET_DIR}/resources | ||
| 293 | @cp -Rp ${BUILDDIR}/resources/* ${PREFIX}/${DIST_TARGET_DIR}/resources | ||
| 294 | @chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${DIST_TARGET_DIR}/resources | ||
| 295 | .for f in icudtl.dat snapshot_blob.bin v8_context_snapshot.bin | ||
| 296 | ${INSTALL_DATA} ${BUILDDIR}/${f} ${PREFIX}/${DIST_TARGET_DIR} | ||
| 297 | .endfor | ||
| 298 | |||
| 299 | # ANGLE, EGL, Vk | ||
| 300 | .for f in libEGL libGLESv2 | ||
| 301 | ${INSTALL_DATA} ${BUILDDIR}/${f}.so ${PREFIX}/${DIST_TARGET_DIR} | ||
| 302 | .endfor | ||
| 303 | .for f in libVkICD_mock_icd | ||
| 304 | ${INSTALL_DATA} ${BUILDDIR}/${f}.so ${PREFIX}/${DIST_TARGET_DIR} | ||
| 305 | .endfor | ||
| 306 | ${INSTALL_DATA} ${BUILDDIR}/libvulkan.so.1 \ | ||
| 307 | ${PREFIX}/${DIST_TARGET_DIR}/libvulkan.so | ||
| 308 | |||
| 309 | .if ${MACHINE_ARCH} != "aarch64" | ||
| 310 | # SwiftShader | ||
| 311 | ${INSTALL_DATA_DIR} ${PREFIX}/${DIST_TARGET_DIR}/swiftshader | ||
| 312 | ${INSTALL_DATA} ${BUILDDIR}/libvk_swiftshader.so ${PREFIX}/${DIST_TARGET_DIR} | ||
| 313 | .for f in libEGL.so libGLESv2.so | ||
| 314 | ${INSTALL_DATA} ${BUILDDIR}/swiftshader/${f} ${PREFIX}/${DIST_TARGET_DIR}/swiftshader | ||
| 315 | .endfor | ||
| 316 | .endif | ||
| 317 | |||
| 318 | .if ${FLAVOR:Mcomponent} | ||
| 319 | cp -Rp ${BUILDDIR}/*.so ${BUILDDIR}/*.so.[0-9] ${PREFIX}/${DIST_TARGET_DIR}/ | ||
| 320 | .endif | ||
| 321 | |||
| 322 | ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/chromium | ||
| 323 | .for f in pledge.main pledge.utility_audio pledge.utility_network pledge.utility_video \ | ||
| 324 | unveil.gpu unveil.main unveil.plugin unveil.renderer unveil.utility unveil.utility_audio \ | ||
| 325 | unveil.utility_network unveil.utility_video | ||
| 326 | ${INSTALL_DATA} ${FILESDIR}/${f} ${PREFIX}/share/examples/chromium | ||
| 327 | .endfor | ||
| 328 | |||
| 329 | pre-test: | ||
| 330 | .for _d in ${REGRESS_DISTFILES:C/:[0-9]$//} | ||
| 331 | @${ECHO_MSG} "Extracting ${_d}" | ||
| 332 | @case ${_d} in \ | ||
| 333 | *testdata*.tar.xz) \ | ||
| 334 | xzdec <${FULLDISTDIR}/${_d} | ${TAR} -C ${WRKDIR} -xf -;; \ | ||
| 335 | *font*.tar.gz) \ | ||
| 336 | ${GZIP_CMD} -d <${FULLDISTDIR}/${_d} | ${TAR} -C ${WRKDIST}/third_party/test_fonts -xf -;; \ | ||
| 337 | esac; | ||
| 338 | .endfor | ||
| 339 | |||
| 340 | do-test: | ||
| 341 | @cd ${WRKSRC} && env -i ${MAKE_ENV} ninja \ | ||
| 342 | -j ${MAKE_JOBS} -C out/${BUILDTYPE} ${TEST_TARGET} | ||
| 343 | |||
| 344 | .include <bsd.port.mk> | ||
diff --git a/www/chromium/chromium/CVS/Entries b/www/chromium/chromium/CVS/Entries new file mode 100644 index 0000000..7b0110e --- /dev/null +++ b/www/chromium/chromium/CVS/Entries | |||
| @@ -0,0 +1 @@ | |||
| D/pkg//// | |||
diff --git a/www/chromium/chromium/CVS/Repository b/www/chromium/chromium/CVS/Repository new file mode 100644 index 0000000..8604319 --- /dev/null +++ b/www/chromium/chromium/CVS/Repository | |||
| @@ -0,0 +1 @@ | |||
| ports/www/chromium/chromium | |||
diff --git a/www/chromium/chromium/CVS/Root b/www/chromium/chromium/CVS/Root new file mode 100644 index 0000000..3811072 --- /dev/null +++ b/www/chromium/chromium/CVS/Root | |||
| @@ -0,0 +1 @@ | |||
| /cvs | |||
diff --git a/www/chromium/chromium/pkg/CVS/Entries b/www/chromium/chromium/pkg/CVS/Entries new file mode 100644 index 0000000..1784810 --- /dev/null +++ b/www/chromium/chromium/pkg/CVS/Entries | |||
| @@ -0,0 +1 @@ | |||
| D | |||
diff --git a/www/chromium/chromium/pkg/CVS/Repository b/www/chromium/chromium/pkg/CVS/Repository new file mode 100644 index 0000000..80b7d5b --- /dev/null +++ b/www/chromium/chromium/pkg/CVS/Repository | |||
| @@ -0,0 +1 @@ | |||
| ports/www/chromium/chromium/pkg | |||
diff --git a/www/chromium/chromium/pkg/CVS/Root b/www/chromium/chromium/pkg/CVS/Root new file mode 100644 index 0000000..3811072 --- /dev/null +++ b/www/chromium/chromium/pkg/CVS/Root | |||
| @@ -0,0 +1 @@ | |||
| /cvs | |||
diff --git a/www/chromium/distinfo b/www/chromium/distinfo new file mode 100644 index 0000000..e8bb432 --- /dev/null +++ b/www/chromium/distinfo | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | SHA256 (100.0.4896.75-1.tar.gz) = 3ehJvD1f15CjNiUrmx5PVQPCd8rNq90YFA1TEOjnEmM= | ||
| 2 | SHA256 (chromium-100.0.4896.75-testdata.tar.xz) = 2CI6cB06fnpw15Z+ybdtfMhqlSyRIc96wC1lVHEK8nc= | ||
| 3 | SHA256 (chromium-100.0.4896.75.tar.xz) = JE7TUt+qGrax8Id8SIT9F6p9cTP6UvEpqfsBMl6gwMA= | ||
| 4 | SHA256 (test_fonts-cd96fc55dc243f6c6f4cb63ad117cad6cd48dceb.tar.gz) = 7Jc+zNZp1Bf78tCk2scwdEoxdCaP8GLbVFG1XIK8NJI= | ||
| 5 | SIZE (100.0.4896.75-1.tar.gz) = 650255 | ||
| 6 | SIZE (chromium-100.0.4896.75-testdata.tar.xz) = 259963900 | ||
| 7 | SIZE (chromium-100.0.4896.75.tar.xz) = 1358118152 | ||
| 8 | SIZE (test_fonts-cd96fc55dc243f6c6f4cb63ad117cad6cd48dceb.tar.gz) = 26759650 | ||
diff --git a/www/chromium/electron/CVS/Entries b/www/chromium/electron/CVS/Entries new file mode 100644 index 0000000..7b0110e --- /dev/null +++ b/www/chromium/electron/CVS/Entries | |||
| @@ -0,0 +1 @@ | |||
| D/pkg//// | |||
diff --git a/www/chromium/electron/CVS/Repository b/www/chromium/electron/CVS/Repository new file mode 100644 index 0000000..aebdd92 --- /dev/null +++ b/www/chromium/electron/CVS/Repository | |||
| @@ -0,0 +1 @@ | |||
| ports/www/chromium/electron | |||
diff --git a/www/chromium/electron/CVS/Root b/www/chromium/electron/CVS/Root new file mode 100644 index 0000000..3811072 --- /dev/null +++ b/www/chromium/electron/CVS/Root | |||
| @@ -0,0 +1 @@ | |||
| /cvs | |||
diff --git a/www/chromium/electron/pkg/CVS/Entries b/www/chromium/electron/pkg/CVS/Entries new file mode 100644 index 0000000..1784810 --- /dev/null +++ b/www/chromium/electron/pkg/CVS/Entries | |||
| @@ -0,0 +1 @@ | |||
| D | |||
diff --git a/www/chromium/electron/pkg/CVS/Repository b/www/chromium/electron/pkg/CVS/Repository new file mode 100644 index 0000000..60df82c --- /dev/null +++ b/www/chromium/electron/pkg/CVS/Repository | |||
| @@ -0,0 +1 @@ | |||
| ports/www/chromium/electron/pkg | |||
diff --git a/www/chromium/electron/pkg/CVS/Root b/www/chromium/electron/pkg/CVS/Root new file mode 100644 index 0000000..3811072 --- /dev/null +++ b/www/chromium/electron/pkg/CVS/Root | |||
| @@ -0,0 +1 @@ | |||
| /cvs | |||
diff --git a/www/chromium/files/CVS/Entries b/www/chromium/files/CVS/Entries new file mode 100644 index 0000000..aba73b0 --- /dev/null +++ b/www/chromium/files/CVS/Entries | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | /chrome/1.21/Fri Mar 11 20:09:41 2022// | ||
| 2 | /chromium-browser.desktop/1.2/Sat Dec 16 15:34:39 2017// | ||
| 3 | /pledge.main/1.6/Wed Jun 26 17:22:41 2019// | ||
| 4 | /pledge.utility_audio/1.3/Fri Apr 24 07:21:26 2020// | ||
| 5 | /pledge.utility_network/1.2/Sun Oct 6 14:06:10 2019// | ||
| 6 | /pledge.utility_video/1.1/Wed Jul 29 13:53:36 2020// | ||
| 7 | /unveil.gpu/1.3/Fri Mar 11 20:09:41 2022// | ||
| 8 | /unveil.main/1.11/Fri Mar 11 20:09:41 2022// | ||
| 9 | /unveil.plugin/1.3/Fri Mar 11 20:09:41 2022// | ||
| 10 | /unveil.renderer/1.3/Tue Mar 29 19:41:01 2022// | ||
| 11 | /unveil.utility/1.2/Fri Mar 11 20:09:41 2022// | ||
| 12 | /unveil.utility_audio/1.2/Fri Mar 11 20:09:41 2022// | ||
| 13 | /unveil.utility_network/1.2/Fri Mar 11 20:09:41 2022// | ||
| 14 | /unveil.utility_video/1.2/Fri Mar 11 20:09:41 2022// | ||
| 15 | D | ||
diff --git a/www/chromium/files/CVS/Repository b/www/chromium/files/CVS/Repository new file mode 100644 index 0000000..32332a9 --- /dev/null +++ b/www/chromium/files/CVS/Repository | |||
| @@ -0,0 +1 @@ | |||
| ports/www/chromium/files | |||
diff --git a/www/chromium/files/CVS/Root b/www/chromium/files/CVS/Root new file mode 100644 index 0000000..3811072 --- /dev/null +++ b/www/chromium/files/CVS/Root | |||
| @@ -0,0 +1 @@ | |||
| /cvs | |||
diff --git a/www/chromium/files/chrome b/www/chromium/files/chrome new file mode 100644 index 0000000..d893420 --- /dev/null +++ b/www/chromium/files/chrome | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | DATASIZE="716800" | ||
| 4 | OPENFILES="400" | ||
| 5 | |||
| 6 | xm_log() { | ||
| 7 | echo -n "$@\nDo you want to run Chromium anyway?\n\ | ||
| 8 | (If you don't increase these limits, Chromium might fail to work properly.)" | \ | ||
| 9 | ${X11BASE}/bin/xmessage -file - -center -buttons yes:0,no:1 -default no | ||
| 10 | } | ||
| 11 | |||
| 12 | if [ $(ulimit -Sd) -lt ${DATASIZE} ]; then | ||
| 13 | ulimit -Sd ${DATASIZE} || \ | ||
| 14 | xm_log "Cannot increase datasize-cur to at least ${DATASIZE}" | ||
| 15 | [ $? -eq 0 ] || exit | ||
| 16 | fi | ||
| 17 | |||
| 18 | if [ $(ulimit -Sn) -lt ${OPENFILES} ]; then | ||
| 19 | ulimit -Sn ${OPENFILES} || \ | ||
| 20 | xm_log "Cannot increase openfiles-cur to at least ${OPENFILES}" | ||
| 21 | [ $? -eq 0 ] || exit | ||
| 22 | fi | ||
| 23 | |||
| 24 | # | ||
| 25 | # Temporary workaround for the case when chromium crashes and leaves | ||
| 26 | # the SingletonLock, which prevents chromium to start up. | ||
| 27 | # | ||
| 28 | if [ -h ${HOME}/.config/chromium/SingletonLock ]; then | ||
| 29 | _pid=`readlink ${HOME}/.config/chromium/SingletonLock | cut -d '-' -f 2` | ||
| 30 | kill -0 ${_pid} 2>/dev/null | ||
| 31 | if [ $? -gt 0 ]; then | ||
| 32 | rm ${HOME}/.config/chromium/SingletonLock | ||
| 33 | fi | ||
| 34 | fi | ||
| 35 | |||
| 36 | # | ||
| 37 | # Issue #395446 | ||
| 38 | # https://code.google.com/p/chromium/issues/detail?id=395446 | ||
| 39 | # | ||
| 40 | [ -z ${LANG} ] && _l=en_US.UTF-8 || _l=${LANG} | ||
| 41 | |||
| 42 | # Always use our versions of ffmpeg libs. | ||
| 43 | # This also makes RPMs find the compatibly-named library symlinks. | ||
| 44 | if [[ -n "$LD_LIBRARY_PATH" ]]; then | ||
| 45 | LD_LIBRARY_PATH="${TRUEPREFIX}/chrome:${TRUEPREFIX}/chrome/lib:$LD_LIBRARY_PATH" | ||
| 46 | else | ||
| 47 | LD_LIBRARY_PATH="${TRUEPREFIX}/chrome:${TRUEPREFIX}/chrome/lib" | ||
| 48 | fi | ||
| 49 | export LD_LIBRARY_PATH | ||
| 50 | |||
| 51 | [ -d ~/Downloads ] || mkdir -m 0700 ~/Downloads | ||
| 52 | [ -d ~/.config ] || mkdir -m 0700 ~/.config | ||
| 53 | [ -f ~/.config/user-dirs.dirs ] || \ | ||
| 54 | echo 'XDG_DOWNLOAD_DIR="$HOME/Downloads"' > ~/.config/user-dirs.dirs | ||
| 55 | |||
| 56 | [ -z ${ENABLE_WASM} ] && \ | ||
| 57 | _NOWASM="--disable-features=WebAssembly,AsmJsToWebAssembly,WebAssemblyStreaming --js-flags=--noexpose-wasm" | ||
| 58 | |||
| 59 | LANG=${_l} exec "/usr/local/chrome/chrome" ${_NOWASM} "${@}" | ||
diff --git a/www/chromium/files/chromium-browser.desktop b/www/chromium/files/chromium-browser.desktop new file mode 100644 index 0000000..ebfb79b --- /dev/null +++ b/www/chromium/files/chromium-browser.desktop | |||
| @@ -0,0 +1,220 @@ | |||
| 1 | [Desktop Entry] | ||
| 2 | Version=1.0 | ||
| 3 | Name=Chromium Web Browser | ||
| 4 | # Only KDE 4 seems to use GenericName, so we reuse the KDE strings. | ||
| 5 | # From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413. | ||
| 6 | GenericName=Web Browser | ||
| 7 | GenericName[ar]=متصفح الشبكة | ||
| 8 | GenericName[bg]=Уеб браузър | ||
| 9 | GenericName[ca]=Navegador web | ||
| 10 | GenericName[cs]=WWW prohlížeč | ||
| 11 | GenericName[da]=Browser | ||
| 12 | GenericName[de]=Web-Browser | ||
| 13 | GenericName[el]=Περιηγητής ιστού | ||
| 14 | GenericName[en_GB]=Web Browser | ||
| 15 | GenericName[es]=Navegador web | ||
| 16 | GenericName[et]=Veebibrauser | ||
| 17 | GenericName[fi]=WWW-selain | ||
| 18 | GenericName[fr]=Navigateur Web | ||
| 19 | GenericName[gu]=વેબ બ્રાઉઝર | ||
| 20 | GenericName[he]=דפדפן אינטרנט | ||
| 21 | GenericName[hi]=वेब ब्राउज़र | ||
| 22 | GenericName[hu]=Webböngésző | ||
| 23 | GenericName[it]=Browser Web | ||
| 24 | GenericName[ja]=ウェブブラウザ | ||
| 25 | GenericName[kn]=ಜಾಲ ವೀಕ್ಷಕ | ||
| 26 | GenericName[ko]=웹 브라우저 | ||
| 27 | GenericName[lt]=Žiniatinklio naršyklė | ||
| 28 | GenericName[lv]=Tīmekļa pārlūks | ||
| 29 | GenericName[ml]=വെബ് ബ്രൌസര് | ||
| 30 | GenericName[mr]=वेब ब्राऊजर | ||
| 31 | GenericName[nb]=Nettleser | ||
| 32 | GenericName[nl]=Webbrowser | ||
| 33 | GenericName[pl]=Przeglądarka WWW | ||
| 34 | GenericName[pt]=Navegador Web | ||
| 35 | GenericName[pt_BR]=Navegador da Internet | ||
| 36 | GenericName[ro]=Navigator de Internet | ||
| 37 | GenericName[ru]=Веб-браузер | ||
| 38 | GenericName[sl]=Spletni brskalnik | ||
| 39 | GenericName[sv]=Webbläsare | ||
| 40 | GenericName[ta]=இணைய உலாவி | ||
| 41 | GenericName[th]=เว็บเบราว์เซอร์ | ||
| 42 | GenericName[tr]=Web Tarayıcı | ||
| 43 | GenericName[uk]=Навігатор Тенет | ||
| 44 | GenericName[zh_CN]=网页浏览器 | ||
| 45 | GenericName[zh_HK]=網頁瀏覽器 | ||
| 46 | GenericName[zh_TW]=網頁瀏覽器 | ||
| 47 | # Not translated in KDE, from Epiphany 2.26.1-0ubuntu1. | ||
| 48 | GenericName[bn]=ওয়েব ব্রাউজার | ||
| 49 | GenericName[fil]=Web Browser | ||
| 50 | GenericName[hr]=Web preglednik | ||
| 51 | GenericName[id]=Browser Web | ||
| 52 | GenericName[or]=ଓ୍ବେବ ବ୍ରାଉଜର | ||
| 53 | GenericName[sk]=WWW prehliadač | ||
| 54 | GenericName[sr]=Интернет прегледник | ||
| 55 | GenericName[te]=మహాతల అన్వేషి | ||
| 56 | GenericName[vi]=Bộ duyệt Web | ||
| 57 | # Gnome and KDE 3 uses Comment. | ||
| 58 | Comment=Access the Internet | ||
| 59 | Comment[ar]=الدخول إلى الإنترنت | ||
| 60 | Comment[bg]=Достъп до интернет | ||
| 61 | Comment[bn]=ইন্টারনেটটি অ্যাক্সেস করুন | ||
| 62 | Comment[ca]=Accedeix a Internet | ||
| 63 | Comment[cs]=Přístup k internetu | ||
| 64 | Comment[da]=Få adgang til internettet | ||
| 65 | Comment[de]=Internetzugriff | ||
| 66 | Comment[el]=Πρόσβαση στο Διαδίκτυο | ||
| 67 | Comment[en_GB]=Access the Internet | ||
| 68 | Comment[es]=Accede a Internet. | ||
| 69 | Comment[et]=Pääs Internetti | ||
| 70 | Comment[fi]=Käytä internetiä | ||
| 71 | Comment[fil]=I-access ang Internet | ||
| 72 | Comment[fr]=Accéder à Internet | ||
| 73 | Comment[gu]=ઇંટરનેટ ઍક્સેસ કરો | ||
| 74 | Comment[he]=גישה אל האינטרנט | ||
| 75 | Comment[hi]=इंटरनेट तक पहुंच स्थापित करें | ||
| 76 | Comment[hr]=Pristup Internetu | ||
| 77 | Comment[hu]=Internetelérés | ||
| 78 | Comment[id]=Akses Internet | ||
| 79 | Comment[it]=Accesso a Internet | ||
| 80 | Comment[ja]=インターネットにアクセス | ||
| 81 | Comment[kn]=ಇಂಟರ್ನೆಟ್ ಅನ್ನು ಪ್ರವೇಶಿಸಿ | ||
| 82 | Comment[ko]=인터넷 연결 | ||
| 83 | Comment[lt]=Interneto prieiga | ||
| 84 | Comment[lv]=Piekļūt internetam | ||
| 85 | Comment[ml]=ഇന്റര്നെറ്റ് ആക്സസ് ചെയ്യുക | ||
| 86 | Comment[mr]=इंटरनेटमध्ये प्रवेश करा | ||
| 87 | Comment[nb]=Gå til Internett | ||
| 88 | Comment[nl]=Verbinding maken met internet | ||
| 89 | Comment[or]=ଇଣ୍ଟର୍ନେଟ୍ ପ୍ରବେଶ କରନ୍ତୁ | ||
| 90 | Comment[pl]=Skorzystaj z internetu | ||
| 91 | Comment[pt]=Aceder à Internet | ||
| 92 | Comment[pt_BR]=Acessar a internet | ||
| 93 | Comment[ro]=Accesaţi Internetul | ||
| 94 | Comment[ru]=Доступ в Интернет | ||
| 95 | Comment[sk]=Prístup do siete Internet | ||
| 96 | Comment[sl]=Dostop do interneta | ||
| 97 | Comment[sr]=Приступите Интернету | ||
| 98 | Comment[sv]=Gå ut på Internet | ||
| 99 | Comment[ta]=இணையத்தை அணுகுதல் | ||
| 100 | Comment[te]=ఇంటర్నెట్ను ఆక్సెస్ చెయ్యండి | ||
| 101 | Comment[th]=เข้าถึงอินเทอร์เน็ต | ||
| 102 | Comment[tr]=İnternet'e erişin | ||
| 103 | Comment[uk]=Доступ до Інтернету | ||
| 104 | Comment[vi]=Truy cập Internet | ||
| 105 | Comment[zh_CN]=访问互联网 | ||
| 106 | Comment[zh_HK]=連線到網際網路 | ||
| 107 | Comment[zh_TW]=連線到網際網路 | ||
| 108 | Exec=chrome %U | ||
| 109 | Terminal=false | ||
| 110 | Icon=chrome | ||
| 111 | Type=Application | ||
| 112 | Categories=Network;WebBrowser; | ||
| 113 | MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp; | ||
| 114 | Actions=NewWindow;NewPrivateWindow; | ||
| 115 | |||
| 116 | [Desktop Action NewWindow] | ||
| 117 | Name=New Window | ||
| 118 | Name[am]=አዲስ መስኮት | ||
| 119 | Name[ar]=نافذة جديدة | ||
| 120 | Name[bg]=Нов прозорец | ||
| 121 | Name[bn]=নতুন উইন্ডো | ||
| 122 | Name[ca]=Finestra nova | ||
| 123 | Name[cs]=Nové okno | ||
| 124 | Name[da]=Nyt vindue | ||
| 125 | Name[de]=Neues Fenster | ||
| 126 | Name[el]=Νέο Παράθυρο | ||
| 127 | Name[en_GB]=New Window | ||
| 128 | Name[es]=Nueva ventana | ||
| 129 | Name[et]=Uus aken | ||
| 130 | Name[fa]=پنجره جدید | ||
| 131 | Name[fi]=Uusi ikkuna | ||
| 132 | Name[fil]=New Window | ||
| 133 | Name[fr]=Nouvelle fenêtre | ||
| 134 | Name[gu]=નવી વિંડો | ||
| 135 | Name[hi]=नई विंडो | ||
| 136 | Name[hr]=Novi prozor | ||
| 137 | Name[hu]=Új ablak | ||
| 138 | Name[id]=Jendela Baru | ||
| 139 | Name[it]=Nuova finestra | ||
| 140 | Name[iw]=חלון חדש | ||
| 141 | Name[ja]=新規ウインドウ | ||
| 142 | Name[kn]=ಹೊಸ ವಿಂಡೊ | ||
| 143 | Name[ko]=새 창 | ||
| 144 | Name[lt]=Naujas langas | ||
| 145 | Name[lv]=Jauns logs | ||
| 146 | Name[ml]=പുതിയ വിന്ഡോ | ||
| 147 | Name[mr]=नवीन विंडो | ||
| 148 | Name[nl]=Nieuw venster | ||
| 149 | Name[no]=Nytt vindu | ||
| 150 | Name[pl]=Nowe okno | ||
| 151 | Name[pt]=Nova janela | ||
| 152 | Name[pt_BR]=Nova janela | ||
| 153 | Name[ro]=Fereastră nouă | ||
| 154 | Name[ru]=Новое окно | ||
| 155 | Name[sk]=Nové okno | ||
| 156 | Name[sl]=Novo okno | ||
| 157 | Name[sr]=Нови прозор | ||
| 158 | Name[sv]=Nytt fönster | ||
| 159 | Name[sw]=Dirisha Jipya | ||
| 160 | Name[ta]=புதிய சாளரம் | ||
| 161 | Name[te]=క్రొత్త విండో | ||
| 162 | Name[th]=หน้าต่างใหม่ | ||
| 163 | Name[tr]=Yeni Pencere | ||
| 164 | Name[uk]=Нове вікно | ||
| 165 | Name[vi]=Cửa sổ Mới | ||
| 166 | Name[zh_CN]=新建窗口 | ||
| 167 | Name[zh_TW]=開新視窗 | ||
| 168 | Exec=chrome | ||
| 169 | |||
| 170 | [Desktop Action NewPrivateWindow] | ||
| 171 | Name=New Incognito Window | ||
| 172 | Name[ar]=نافذة جديدة للتصفح المتخفي | ||
| 173 | Name[bg]=Нов прозорец „инкогнито“ | ||
| 174 | Name[bn]=নতুন ছদ্মবেশী উইন্ডো | ||
| 175 | Name[ca]=Finestra d'incògnit nova | ||
| 176 | Name[cs]=Nové anonymní okno | ||
| 177 | Name[da]=Nyt inkognitovindue | ||
| 178 | Name[de]=Neues Inkognito-Fenster | ||
| 179 | Name[el]=Νέο παράθυρο για ανώνυμη περιήγηση | ||
| 180 | Name[en_GB]=New Incognito window | ||
| 181 | Name[es]=Nueva ventana de incógnito | ||
| 182 | Name[et]=Uus inkognito aken | ||
| 183 | Name[fa]=پنجره جدید حالت ناشناس | ||
| 184 | Name[fi]=Uusi incognito-ikkuna | ||
| 185 | Name[fil]=Bagong Incognito window | ||
| 186 | Name[fr]=Nouvelle fenêtre de navigation privée | ||
| 187 | Name[gu]=નવી છુપી વિંડો | ||
| 188 | Name[hi]=नई गुप्त विंडो | ||
| 189 | Name[hr]=Novi anoniman prozor | ||
| 190 | Name[hu]=Új Inkognitóablak | ||
| 191 | Name[id]=Jendela Penyamaran baru | ||
| 192 | Name[it]=Nuova finestra di navigazione in incognito | ||
| 193 | Name[iw]=חלון חדש לגלישה בסתר | ||
| 194 | Name[ja]=新しいシークレット ウィンドウ | ||
| 195 | Name[kn]=ಹೊಸ ಅಜ್ಞಾತ ವಿಂಡೋ | ||
| 196 | Name[ko]=새 시크릿 창 | ||
| 197 | Name[lt]=Naujas inkognito langas | ||
| 198 | Name[lv]=Jauns inkognito režīma logs | ||
| 199 | Name[ml]=പുതിയ വേഷ പ്രച്ഛന്ന വിന്ഡോ | ||
| 200 | Name[mr]=नवीन गुप्त विंडो | ||
| 201 | Name[nl]=Nieuw incognitovenster | ||
| 202 | Name[no]=Nytt inkognitovindu | ||
| 203 | Name[pl]=Nowe okno incognito | ||
| 204 | Name[pt]=Nova janela de navegação anónima | ||
| 205 | Name[pt_BR]=Nova janela anônima | ||
| 206 | Name[ro]=Fereastră nouă incognito | ||
| 207 | Name[ru]=Новое окно в режиме инкогнито | ||
| 208 | Name[sk]=Nové okno inkognito | ||
| 209 | Name[sl]=Novo okno brez beleženja zgodovine | ||
| 210 | Name[sr]=Нови прозор за прегледање без архивирања | ||
| 211 | Name[sv]=Nytt inkognitofönster | ||
| 212 | Name[ta]=புதிய மறைநிலைச் சாளரம் | ||
| 213 | Name[te]=క్రొత్త అజ్ఞాత విండో | ||
| 214 | Name[th]=หน้าต่างใหม่ที่ไม่ระบุตัวตน | ||
| 215 | Name[tr]=Yeni Gizli pencere | ||
| 216 | Name[uk]=Нове вікно в режимі анонімного перегляду | ||
| 217 | Name[vi]=Cửa sổ ẩn danh mới | ||
| 218 | Name[zh_CN]=新建隐身窗口 | ||
| 219 | Name[zh_TW]=新增無痕式視窗 | ||
| 220 | Exec=chrome --incognito | ||
diff --git a/www/chromium/files/pledge.main b/www/chromium/files/pledge.main new file mode 100644 index 0000000..75f4406 --- /dev/null +++ b/www/chromium/files/pledge.main | |||
| @@ -0,0 +1 @@ | |||
| rpath wpath cpath stdio tmppath dns inet flock unix proc prot_exec tty sendfd recvfd exec mcast ps drm fattr route getpw vminfo video | |||
diff --git a/www/chromium/files/pledge.utility_audio b/www/chromium/files/pledge.utility_audio new file mode 100644 index 0000000..e50e182 --- /dev/null +++ b/www/chromium/files/pledge.utility_audio | |||
| @@ -0,0 +1 @@ | |||
| stdio prot_exec recvfd sendfd tmppath dns unix rpath cpath wpath | |||
diff --git a/www/chromium/files/pledge.utility_network b/www/chromium/files/pledge.utility_network new file mode 100644 index 0000000..f919b4d --- /dev/null +++ b/www/chromium/files/pledge.utility_network | |||
| @@ -0,0 +1 @@ | |||
| rpath wpath cpath stdio tmppath dns inet prot_exec sendfd recvfd mcast route flock unix | |||
diff --git a/www/chromium/files/pledge.utility_video b/www/chromium/files/pledge.utility_video new file mode 100644 index 0000000..d1d38ff --- /dev/null +++ b/www/chromium/files/pledge.utility_video | |||
| @@ -0,0 +1 @@ | |||
| stdio prot_exec recvfd sendfd tmppath dns unix rpath cpath wpath video | |||
diff --git a/www/chromium/files/unveil.gpu b/www/chromium/files/unveil.gpu new file mode 100644 index 0000000..d05a4f8 --- /dev/null +++ b/www/chromium/files/unveil.gpu | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | /dev/dri rwx | ||
| 2 | /usr/X11R6/lib r | ||
| 3 | /usr/X11R6/share r | ||
| 4 | /usr/lib r | ||
| 5 | /usr/local/chrome r | ||
diff --git a/www/chromium/files/unveil.main b/www/chromium/files/unveil.main new file mode 100644 index 0000000..235435e --- /dev/null +++ b/www/chromium/files/unveil.main | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | # needed for video(4) | ||
| 2 | /dev/video rw | ||
| 3 | |||
| 4 | # needed for FIDO authentication | ||
| 5 | /dev/fido rw | ||
| 6 | |||
| 7 | # needed for chromium | ||
| 8 | /etc/chromium r | ||
| 9 | |||
| 10 | # needed for fontconfig | ||
| 11 | /etc/fonts r | ||
| 12 | |||
| 13 | # needed for dbus | ||
| 14 | /etc/machine-id r | ||
| 15 | |||
| 16 | # needed for IPC communication, X.Org, etc. | ||
| 17 | /tmp rwc | ||
| 18 | |||
| 19 | # needed for printing with lpr(1) | ||
| 20 | /usr/bin/lpr rx | ||
| 21 | |||
| 22 | # needed for xdg tools | ||
| 23 | /usr/local/bin/xdg-desktop-menu rx | ||
| 24 | /usr/local/bin/xdg-open rx | ||
| 25 | /usr/local/bin/xdg-settings rx | ||
| 26 | |||
| 27 | # misc. files and libraries | ||
| 28 | /usr/local/lib r | ||
| 29 | /usr/local/chrome rx | ||
| 30 | /usr/local/share r | ||
| 31 | |||
| 32 | # fontconfig | ||
| 33 | /var/cache/fontconfig r | ||
| 34 | |||
| 35 | # drm and misc xorg stuff | ||
| 36 | /usr/X11R6/lib r | ||
| 37 | /usr/X11R6/share r | ||
| 38 | |||
| 39 | # needs /var/run in case /var/run/dbus is not available | ||
| 40 | # needed by messagebus | ||
| 41 | /var/run rw | ||
| 42 | |||
| 43 | # ~ gets expanded to $HOME | ||
| 44 | ~/.XCompose r | ||
| 45 | ~/.Xauthority r | ||
| 46 | ~/.Xdefaults r | ||
| 47 | ~/.fontconfig r | ||
| 48 | ~/.fonts r | ||
| 49 | ~/.fonts.conf r | ||
| 50 | ~/.fonts.conf.d r | ||
| 51 | ~/.icons r | ||
| 52 | ~/.pki rwc | ||
| 53 | ~/.sndio rwc | ||
| 54 | ~/.terminfo r | ||
| 55 | |||
| 56 | ~/.cache/chromium rwc | ||
| 57 | ~/.cache/dconf rwc | ||
| 58 | ~/.cache/fontconfig rwc | ||
| 59 | ~/.cache/thumbnails rwc | ||
| 60 | |||
| 61 | ~/.config/chromium rwc | ||
| 62 | ~/.config/dconf r | ||
| 63 | ~/.config/fcitx r | ||
| 64 | ~/.config/fontconfig r | ||
| 65 | ~/.config/gtk-3.0 r | ||
| 66 | ~/.config/mimeapps.list r | ||
| 67 | ~/.config/user-dirs.dirs r | ||
| 68 | |||
| 69 | ~/.local/share/applications rwc | ||
| 70 | ~/.local/share/applnk r | ||
| 71 | ~/.local/share/fonts r | ||
| 72 | ~/.local/share/glib-2.0 r | ||
| 73 | |||
| 74 | # needs write access due to chromium profile icons | ||
| 75 | ~/.local/share/icons rwc | ||
| 76 | |||
| 77 | ~/.local/share/mime r | ||
| 78 | ~/.local/share/recently-used.xbel rwc | ||
| 79 | ~/.local/share/themes r | ||
| 80 | |||
| 81 | # use this directory for downloading and uploading | ||
| 82 | ~/Downloads rwc | ||
diff --git a/www/chromium/files/unveil.plugin b/www/chromium/files/unveil.plugin new file mode 100644 index 0000000..32e0b32 --- /dev/null +++ b/www/chromium/files/unveil.plugin | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | /usr/X11R6/lib/X11/fonts/Type1 r | ||
| 2 | /usr/X11R6/lib/X11/fonts/TTF r | ||
| 3 | /usr/local/share/fonts r | ||
diff --git a/www/chromium/files/unveil.renderer b/www/chromium/files/unveil.renderer new file mode 100644 index 0000000..32e0b32 --- /dev/null +++ b/www/chromium/files/unveil.renderer | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | /usr/X11R6/lib/X11/fonts/Type1 r | ||
| 2 | /usr/X11R6/lib/X11/fonts/TTF r | ||
| 3 | /usr/local/share/fonts r | ||
diff --git a/www/chromium/files/unveil.utility b/www/chromium/files/unveil.utility new file mode 100644 index 0000000..d7f9ec9 --- /dev/null +++ b/www/chromium/files/unveil.utility | |||
| @@ -0,0 +1 @@ | |||
| /dev/null r | |||
diff --git a/www/chromium/files/unveil.utility_audio b/www/chromium/files/unveil.utility_audio new file mode 100644 index 0000000..44d0dd5 --- /dev/null +++ b/www/chromium/files/unveil.utility_audio | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # needed for chromium | ||
| 2 | /etc/chromium r | ||
| 3 | |||
| 4 | # needed for IPC communication, X.Org, etc. | ||
| 5 | /tmp rwc | ||
| 6 | |||
| 7 | ~/.sndio rwc | ||
diff --git a/www/chromium/files/unveil.utility_network b/www/chromium/files/unveil.utility_network new file mode 100644 index 0000000..dd6b9d7 --- /dev/null +++ b/www/chromium/files/unveil.utility_network | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | # needed for chromium | ||
| 2 | /etc/chromium r | ||
| 3 | |||
| 4 | # needed for dbus | ||
| 5 | /etc/machine-id r | ||
| 6 | |||
| 7 | # needed for IPC communication, X.Org, etc. | ||
| 8 | /tmp rwc | ||
| 9 | |||
| 10 | # misc. files and libraries | ||
| 11 | /usr/local/lib r | ||
| 12 | |||
| 13 | ~/.pki rwc | ||
| 14 | |||
| 15 | ~/.cache/chromium rwc | ||
| 16 | ~/.config/chromium rwc | ||
diff --git a/www/chromium/files/unveil.utility_video b/www/chromium/files/unveil.utility_video new file mode 100644 index 0000000..4e84cf9 --- /dev/null +++ b/www/chromium/files/unveil.utility_video | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # needed for chromium | ||
| 2 | /etc/chromium r | ||
| 3 | |||
| 4 | # needed for IPC communication, X.Org, etc. | ||
| 5 | /tmp rwc | ||
| 6 | |||
| 7 | # needed for video(4) | ||
| 8 | /dev/video rw | ||
diff --git a/www/chromium/patches/CVS/Entries b/www/chromium/patches/CVS/Entries new file mode 100644 index 0000000..0711e6e --- /dev/null +++ b/www/chromium/patches/CVS/Entries | |||
| @@ -0,0 +1,1043 @@ | |||
| 1 | /patch-BUILD_gn/1.51/Tue Mar 29 19:41:01 2022// | ||
| 2 | /patch-apps_ui_views_app_window_frame_view_cc/1.12/Wed Mar 2 06:14:45 2022// | ||
| 3 | /patch-ash_display_mirror_window_controller_cc/1.32/Tue Mar 29 19:41:01 2022// | ||
| 4 | /patch-base_BUILD_gn/1.54/Tue Mar 29 19:41:01 2022// | ||
| 5 | /patch-base_allocator_partition_allocator_address_space_randomization_h/1.3/Wed Mar 2 06:14:45 2022// | ||
| 6 | /patch-base_allocator_partition_allocator_page_allocator_h/1.2/Wed Mar 2 06:14:45 2022// | ||
| 7 | /patch-base_allocator_partition_allocator_page_allocator_internals_posix_h/1.5/Tue Mar 29 19:41:01 2022// | ||
| 8 | /patch-base_allocator_partition_allocator_partition_alloc_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 9 | /patch-base_allocator_partition_allocator_partition_alloc_config_h/1.10/Tue Mar 29 19:41:01 2022// | ||
| 10 | /patch-base_allocator_partition_allocator_partition_page_h/1.2/Tue Mar 29 19:41:01 2022// | ||
| 11 | /patch-base_allocator_partition_allocator_partition_root_h/1.3/Tue Mar 29 19:41:01 2022// | ||
| 12 | /patch-base_allocator_partition_allocator_spinning_mutex_cc/1.7/Wed Mar 2 06:14:45 2022// | ||
| 13 | /patch-base_allocator_partition_allocator_starscan_stack_stack_cc/1.4/Wed Mar 2 06:14:45 2022// | ||
| 14 | /patch-base_atomicops_h/1.17/Wed Feb 2 17:36:36 2022// | ||
| 15 | /patch-base_base_paths_posix_cc/1.10/Wed Mar 2 06:14:45 2022// | ||
| 16 | /patch-base_base_switches_cc/1.14/Wed Mar 2 06:14:45 2022// | ||
| 17 | /patch-base_base_switches_h/1.14/Wed Mar 2 06:14:45 2022// | ||
| 18 | /patch-base_compiler_specific_h/1.11/Tue Mar 29 19:41:01 2022// | ||
| 19 | /patch-base_cpu_h/1.11/Wed Mar 2 06:14:45 2022// | ||
| 20 | /patch-base_debug_debugger_posix_cc/1.35/Wed Mar 2 06:14:45 2022// | ||
| 21 | /patch-base_debug_elf_reader_cc/1.10/Wed Feb 2 17:36:36 2022// | ||
| 22 | /patch-base_debug_proc_maps_linux_cc/1.10/Wed Mar 2 06:14:45 2022// | ||
| 23 | /patch-base_debug_stack_trace_posix_cc/1.46/Tue Mar 29 19:41:01 2022// | ||
| 24 | /patch-base_files_file_path_watcher_bsd_cc/1.4/Wed Feb 2 17:36:36 2022// | ||
| 25 | /patch-base_files_file_path_watcher_kqueue_h/1.2/Wed Feb 2 17:36:36 2022// | ||
| 26 | /patch-base_files_file_path_watcher_unittest_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 27 | /patch-base_files_file_util_posix_cc/1.18/Wed Feb 2 17:36:36 2022// | ||
| 28 | /patch-base_files_file_util_unittest_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 29 | /patch-base_files_important_file_writer_cleaner_cc/1.7/Wed Mar 2 06:14:45 2022// | ||
| 30 | /patch-base_files_scoped_file_cc/1.6/Wed Mar 2 06:14:45 2022// | ||
| 31 | /patch-base_i18n_icu_util_cc/1.17/Wed Mar 2 06:14:45 2022// | ||
| 32 | /patch-base_linux_util_cc/1.16/Wed Feb 2 17:36:36 2022// | ||
| 33 | /patch-base_logging_unittest_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 34 | /patch-base_memory_discardable_memory_cc/1.8/Wed Mar 2 06:14:45 2022// | ||
| 35 | /patch-base_memory_discardable_memory_internal_h/1.5/Wed Mar 2 06:14:45 2022// | ||
| 36 | /patch-base_memory_madv_free_discardable_memory_posix_cc/1.6/Wed Mar 2 06:14:45 2022// | ||
| 37 | /patch-base_memory_platform_shared_memory_region_h/1.9/Wed Mar 2 06:14:45 2022// | ||
| 38 | /patch-base_memory_platform_shared_memory_region_posix_cc/1.7/Wed Mar 2 06:14:45 2022// | ||
| 39 | /patch-base_message_loop_message_pump_glib_cc/1.4/Wed Mar 2 06:14:45 2022// | ||
| 40 | /patch-base_native_library_posix_cc/1.9/Wed Mar 2 06:14:45 2022// | ||
| 41 | /patch-base_native_library_unittest_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 42 | /patch-base_posix_can_lower_nice_to_cc/1.3/Wed Mar 2 06:14:45 2022// | ||
| 43 | /patch-base_posix_unix_domain_socket_cc/1.6/Wed Mar 2 06:14:45 2022// | ||
| 44 | /patch-base_posix_unix_domain_socket_unittest_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 45 | /patch-base_process_kill_h/1.7/Wed Mar 2 06:14:45 2022// | ||
| 46 | /patch-base_process_kill_posix_cc/1.9/Wed Mar 2 06:14:45 2022// | ||
| 47 | /patch-base_process_launch_h/1.28/Wed Mar 2 06:14:45 2022// | ||
| 48 | /patch-base_process_launch_posix_cc/1.1/Wed Feb 2 17:36:36 2022// | ||
| 49 | /patch-base_process_memory_cc/1.15/Wed Mar 2 06:14:45 2022// | ||
| 50 | /patch-base_process_process_handle_cc/1.7/Wed Mar 2 06:14:45 2022// | ||
| 51 | /patch-base_process_process_handle_freebsd_cc/1.1/Wed Feb 2 17:36:36 2022// | ||
| 52 | /patch-base_process_process_handle_h/1.8/Wed Mar 2 06:14:45 2022// | ||
| 53 | /patch-base_process_process_handle_openbsd_cc/1.7/Wed Feb 2 17:36:36 2022// | ||
| 54 | /patch-base_process_process_iterator_freebsd_cc/1.1/Wed Feb 2 17:36:36 2022// | ||
| 55 | /patch-base_process_process_iterator_openbsd_cc/1.5/Wed Feb 2 17:36:36 2022// | ||
| 56 | /patch-base_process_process_metrics_cc/1.16/Tue Mar 29 19:41:01 2022// | ||
| 57 | /patch-base_process_process_metrics_freebsd_cc/1.2/Tue Mar 29 19:41:01 2022// | ||
| 58 | /patch-base_process_process_metrics_h/1.33/Wed Mar 2 06:14:45 2022// | ||
| 59 | /patch-base_process_process_metrics_openbsd_cc/1.26/Tue Mar 29 19:41:01 2022// | ||
| 60 | /patch-base_process_process_metrics_posix_cc/1.12/Wed Mar 2 06:14:45 2022// | ||
| 61 | /patch-base_process_process_posix_cc/1.37/Tue Mar 29 19:41:01 2022// | ||
| 62 | /patch-base_process_process_unittest_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 63 | /patch-base_profiler_stack_sampling_profiler_test_util_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 64 | /patch-base_profiler_stack_sampling_profiler_unittest_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 65 | /patch-base_rand_util_h/1.7/Tue Mar 29 19:41:01 2022// | ||
| 66 | /patch-base_rand_util_posix_cc/1.11/Wed Mar 2 06:14:45 2022// | ||
| 67 | /patch-base_strings_safe_sprintf_unittest_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 68 | /patch-base_synchronization_lock_impl_h/1.2/Wed Mar 2 06:14:45 2022// | ||
| 69 | /patch-base_syslog_logging_cc/1.8/Wed Mar 2 06:14:45 2022// | ||
| 70 | /patch-base_system_sys_info_cc/1.14/Wed Mar 2 06:14:45 2022// | ||
| 71 | /patch-base_system_sys_info_freebsd_cc/1.2/Tue Mar 29 19:41:01 2022// | ||
| 72 | /patch-base_system_sys_info_h/1.14/Wed Mar 16 08:03:14 2022// | ||
| 73 | /patch-base_system_sys_info_openbsd_cc/1.9/Mon Mar 21 08:48:17 2022// | ||
| 74 | /patch-base_system_sys_info_posix_cc/1.12/Tue Mar 29 19:41:01 2022// | ||
| 75 | /patch-base_system_sys_info_unittest_cc/1.2/Tue Mar 29 19:41:01 2022// | ||
| 76 | /patch-base_task_thread_pool_environment_config_unittest_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 77 | /patch-base_test_launcher_test_launcher_cc/1.22/Wed Mar 2 06:14:45 2022// | ||
| 78 | /patch-base_test_test_file_util_linux_cc/1.8/Wed Mar 2 06:14:45 2022// | ||
| 79 | /patch-base_test_test_file_util_posix_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 80 | /patch-base_third_party_libevent_BUILD_gn/1.1/Wed Feb 2 17:36:36 2022// | ||
| 81 | /patch-base_third_party_libevent_event-config_h/1.3/Wed Feb 2 17:36:36 2022// | ||
| 82 | /patch-base_third_party_libevent_openbsd_config_h/1.2/Wed Feb 2 17:36:36 2022// | ||
| 83 | /patch-base_third_party_libevent_openbsd_event-config_h/1.2/Wed Feb 2 17:36:36 2022// | ||
| 84 | /patch-base_third_party_symbolize_symbolize_cc/1.8/Wed Mar 2 06:14:45 2022// | ||
| 85 | /patch-base_threading_platform_thread_h/1.20/Wed Mar 2 06:14:45 2022// | ||
| 86 | /patch-base_threading_platform_thread_linux_cc/1.27/Wed Mar 2 06:14:45 2022// | ||
| 87 | /patch-base_threading_platform_thread_posix_cc/1.24/Wed Mar 2 06:14:45 2022// | ||
| 88 | /patch-base_threading_platform_thread_unittest_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 89 | /patch-base_time_time_cc/1.4/Wed Mar 2 06:14:45 2022// | ||
| 90 | /patch-base_trace_event_malloc_dump_provider_cc/1.27/Wed Mar 2 06:14:45 2022// | ||
| 91 | /patch-base_trace_event_memory_dump_manager_cc/1.5/Tue Mar 29 19:41:02 2022// | ||
| 92 | /patch-base_trace_event_process_memory_dump_cc/1.23/Wed Mar 2 06:14:45 2022// | ||
| 93 | /patch-base_tracing_trace_time_cc/1.4/Wed Mar 2 06:14:45 2022// | ||
| 94 | /patch-base_tracing_trace_time_h/1.4/Wed Mar 2 06:14:45 2022// | ||
| 95 | /patch-build_config_BUILDCONFIG_gn/1.24/Wed Feb 2 17:36:36 2022// | ||
| 96 | /patch-build_config_BUILD_gn/1.32/Wed Mar 2 06:14:45 2022// | ||
| 97 | /patch-build_config_compiler_BUILD_gn/1.63/Tue Mar 29 19:41:02 2022// | ||
| 98 | /patch-build_config_compiler_pgo_pgo_gni/1.8/Wed Feb 2 17:36:37 2022// | ||
| 99 | /patch-build_config_linux_BUILD_gn/1.12/Wed Feb 2 17:36:37 2022// | ||
| 100 | /patch-build_config_linux_pkg-config_py/1.3/Wed Feb 2 17:36:37 2022// | ||
| 101 | /patch-build_config_ozone_gni/1.11/Wed Feb 2 17:36:37 2022// | ||
| 102 | /patch-build_config_rust_gni/1.5/Tue Mar 29 19:41:02 2022// | ||
| 103 | /patch-build_config_v8_target_cpu_gni/1.2/Wed Feb 2 17:36:37 2022// | ||
| 104 | /patch-build_detect_host_arch_py/1.3/Wed Feb 2 17:36:37 2022// | ||
| 105 | /patch-build_gn_run_binary_py/1.19/Wed Feb 2 17:36:37 2022// | ||
| 106 | /patch-build_linux_chrome_map/1.2/Wed Mar 2 06:14:45 2022// | ||
| 107 | /patch-build_linux_strip_binary_py/1.3/Wed Feb 2 17:36:37 2022// | ||
| 108 | /patch-build_linux_unbundle_libusb_gn/1.1/Wed Feb 2 17:36:37 2022// | ||
| 109 | /patch-build_linux_unbundle_replace_gn_files_py/1.1/Wed Feb 2 17:36:37 2022// | ||
| 110 | /patch-build_toolchain_freebsd_BUILD_gn/1.1/Wed Feb 2 17:36:37 2022// | ||
| 111 | /patch-build_toolchain_gcc_solink_wrapper_py/1.6/Wed Feb 2 17:36:37 2022// | ||
| 112 | /patch-build_toolchain_gcc_toolchain_gni/1.40/Tue Mar 29 19:41:02 2022// | ||
| 113 | /patch-build_toolchain_openbsd_BUILD_gn/1.4/Wed Feb 2 17:36:37 2022// | ||
| 114 | /patch-cc_BUILD_gn/1.48/Tue Mar 29 19:41:02 2022// | ||
| 115 | /patch-chrome_app_chrome_command_ids_h/1.18/Wed Mar 2 06:14:45 2022// | ||
| 116 | /patch-chrome_app_chrome_main_cc/1.23/Wed Mar 2 06:14:45 2022// | ||
| 117 | /patch-chrome_app_chrome_main_delegate_cc/1.76/Tue Mar 29 19:41:02 2022// | ||
| 118 | /patch-chrome_app_chromium_strings_grd/1.61/Tue Mar 29 19:41:02 2022// | ||
| 119 | /patch-chrome_app_generated_resources_grd/1.61/Tue Mar 29 19:41:02 2022// | ||
| 120 | /patch-chrome_app_google_chrome_strings_grd/1.60/Tue Mar 29 19:41:02 2022// | ||
| 121 | /patch-chrome_app_profiles_strings_grdp/1.6/Wed Feb 2 17:36:37 2022// | ||
| 122 | /patch-chrome_app_settings_strings_grdp/1.40/Wed Mar 2 06:14:45 2022// | ||
| 123 | /patch-chrome_app_theme_chrome_unscaled_resources_grd/1.9/Tue Mar 29 19:41:02 2022// | ||
| 124 | /patch-chrome_app_theme_theme_resources_grd/1.22/Wed Feb 2 17:36:37 2022// | ||
| 125 | /patch-chrome_browser_about_flags_cc/1.87/Tue Mar 29 19:41:02 2022// | ||
| 126 | /patch-chrome_browser_after_startup_task_utils_cc/1.27/Wed Mar 2 06:14:45 2022// | ||
| 127 | /patch-chrome_browser_apps_platform_apps_api_music_manager_private_device_id_linux_cc/1.6/Wed Mar 2 06:14:45 2022// | ||
| 128 | /patch-chrome_browser_apps_platform_apps_platform_app_launch_cc/1.6/Wed Mar 2 06:14:45 2022// | ||
| 129 | /patch-chrome_browser_apps_platform_apps_platform_app_launch_h/1.6/Wed Mar 2 06:14:45 2022// | ||
| 130 | /patch-chrome_browser_autocomplete_chrome_autocomplete_scheme_classifier_cc/1.6/Wed Mar 2 06:14:45 2022// | ||
| 131 | /patch-chrome_browser_background_background_mode_manager_cc/1.19/Tue Mar 29 19:41:02 2022// | ||
| 132 | /patch-chrome_browser_background_background_mode_optimizer_cc/1.4/Wed Mar 2 06:14:45 2022// | ||
| 133 | /patch-chrome_browser_browser_features_cc/1.3/Tue Mar 29 19:41:02 2022// | ||
| 134 | /patch-chrome_browser_browser_process_impl_cc/1.58/Tue Mar 29 19:41:02 2022// | ||
| 135 | /patch-chrome_browser_browser_process_impl_h/1.45/Tue Mar 29 19:41:02 2022// | ||
| 136 | /patch-chrome_browser_chrome_browser_interface_binders_cc/1.20/Tue Mar 29 19:41:02 2022// | ||
| 137 | /patch-chrome_browser_chrome_browser_main_cc/1.56/Tue Mar 29 19:41:02 2022// | ||
| 138 | /patch-chrome_browser_chrome_browser_main_extra_parts_linux_cc/1.3/Wed Mar 2 06:14:45 2022// | ||
| 139 | /patch-chrome_browser_chrome_browser_main_linux_cc/1.26/Wed Mar 2 06:14:45 2022// | ||
| 140 | /patch-chrome_browser_chrome_browser_main_posix_cc/1.25/Wed Mar 2 06:14:45 2022// | ||
| 141 | /patch-chrome_browser_chrome_content_browser_client_cc/1.83/Tue Mar 29 19:41:02 2022// | ||
| 142 | /patch-chrome_browser_chrome_content_browser_client_h/1.68/Tue Mar 29 19:41:02 2022// | ||
| 143 | /patch-chrome_browser_crash_upload_list_crash_upload_list_cc/1.12/Wed Mar 2 06:14:45 2022// | ||
| 144 | /patch-chrome_browser_custom_handlers_chrome_protocol_handler_registry_delegate_cc/1.2/Wed Mar 2 06:14:45 2022// | ||
| 145 | /patch-chrome_browser_defaults_cc/1.19/Tue Mar 29 19:41:02 2022// | ||
| 146 | /patch-chrome_browser_dev_ui_browser_resources_grd/1.11/Wed Mar 2 06:14:45 2022// | ||
| 147 | /patch-chrome_browser_device_identity_device_oauth2_token_service_factory_cc/1.11/Wed Mar 2 06:14:45 2022// | ||
| 148 | /patch-chrome_browser_devtools_devtools_eye_dropper_cc/1.22/Wed Mar 2 06:14:45 2022// | ||
| 149 | /patch-chrome_browser_diagnostics_diagnostics_writer_h/1.2/Wed Feb 2 17:36:37 2022// | ||
| 150 | /patch-chrome_browser_download_chrome_download_manager_delegate_cc/1.52/Tue Mar 29 19:41:02 2022// | ||
| 151 | /patch-chrome_browser_download_download_commands_cc/1.31/Wed Mar 2 06:14:45 2022// | ||
| 152 | /patch-chrome_browser_download_download_commands_h/1.19/Wed Mar 2 06:14:45 2022// | ||
| 153 | /patch-chrome_browser_download_download_item_model_cc/1.19/Tue Mar 29 19:41:02 2022// | ||
| 154 | /patch-chrome_browser_download_download_prefs_cc/1.36/Sun Mar 20 16:20:20 2022// | ||
| 155 | /patch-chrome_browser_download_download_prefs_h/1.21/Wed Mar 2 06:14:45 2022// | ||
| 156 | /patch-chrome_browser_enterprise_connectors_device_trust_device_trust_connector_service_factory_cc/1.2/Wed Mar 2 06:14:45 2022// | ||
| 157 | /patch-chrome_browser_enterprise_connectors_device_trust_device_trust_service_factory_cc/1.6/Wed Mar 2 06:14:45 2022// | ||
| 158 | /patch-chrome_browser_enterprise_connectors_device_trust_key_management_core_persistence_key_persistence_delegate_factory_cc/1.3/Wed Mar 2 06:14:45 2022// | ||
| 159 | /patch-chrome_browser_enterprise_connectors_device_trust_signals_signals_service_factory_cc/1.5/Wed Mar 2 06:14:45 2022// | ||
| 160 | /patch-chrome_browser_enterprise_remote_commands_cbcm_remote_commands_factory_cc/1.1/Wed Mar 2 06:14:45 2022// | ||
| 161 | /patch-chrome_browser_enterprise_signals_device_info_fetcher_cc/1.9/Wed Mar 2 06:14:45 2022// | ||
| 162 | /patch-chrome_browser_enterprise_signals_device_info_fetcher_linux_cc/1.10/Wed Feb 2 17:36:37 2022// | ||
| 163 | /patch-chrome_browser_extensions_BUILD_gn/1.48/Tue Mar 29 19:41:02 2022// | ||
| 164 | /patch-chrome_browser_extensions_api_enterprise_reporting_private_chrome_desktop_report_request_helper_cc/1.10/Wed Mar 2 06:14:45 2022// | ||
| 165 | /patch-chrome_browser_extensions_api_enterprise_reporting_private_enterprise_reporting_private_api_cc/1.7/Wed Mar 2 06:14:45 2022// | ||
| 166 | /patch-chrome_browser_extensions_api_enterprise_reporting_private_enterprise_reporting_private_api_h/1.5/Wed Mar 2 06:14:45 2022// | ||
| 167 | /patch-chrome_browser_extensions_api_image_writer_private_removable_storage_provider_cc/1.4/Wed Feb 2 17:36:37 2022// | ||
| 168 | /patch-chrome_browser_extensions_api_messaging_native_process_launcher_posix_cc/1.3/Wed Mar 2 06:14:45 2022// | ||
| 169 | /patch-chrome_browser_extensions_api_settings_private_prefs_util_cc/1.32/Tue Mar 29 19:41:02 2022// | ||
| 170 | /patch-chrome_browser_extensions_api_webrtc_logging_private_webrtc_logging_private_api_cc/1.12/Wed Mar 2 06:14:45 2022// | ||
| 171 | /patch-chrome_browser_extensions_browser_context_keyed_service_factories_cc/1.29/Wed Mar 2 06:14:45 2022// | ||
| 172 | /patch-chrome_browser_extensions_external_provider_impl_cc/1.34/Tue Mar 29 19:41:02 2022// | ||
| 173 | /patch-chrome_browser_file_system_access_chrome_file_system_access_permission_context_cc/1.11/Wed Mar 2 06:14:45 2022// | ||
| 174 | /patch-chrome_browser_first_run_first_run_dialog_h/1.9/Wed Mar 2 06:14:45 2022// | ||
| 175 | /patch-chrome_browser_first_run_first_run_internal_h/1.11/Wed Mar 2 06:14:45 2022// | ||
| 176 | /patch-chrome_browser_flag_descriptions_cc/1.50/Tue Mar 29 19:41:02 2022// | ||
| 177 | /patch-chrome_browser_flag_descriptions_h/1.49/Tue Mar 29 19:41:02 2022// | ||
| 178 | /patch-chrome_browser_headless_headless_mode_util_cc/1.7/Tue Mar 29 19:41:02 2022// | ||
| 179 | /patch-chrome_browser_intranet_redirect_detector_h/1.8/Wed Mar 2 06:14:45 2022// | ||
| 180 | /patch-chrome_browser_media_audio_service_util_cc/1.2/Wed Mar 2 06:14:45 2022// | ||
| 181 | /patch-chrome_browser_media_galleries_fileapi_mtp_device_map_service_cc/1.10/Wed Feb 2 17:36:37 2022// | ||
| 182 | /patch-chrome_browser_media_galleries_media_file_system_registry_cc/1.36/Wed Mar 2 06:14:45 2022// | ||
| 183 | /patch-chrome_browser_media_router_discovery_BUILD_gn/1.2/Tue Mar 29 19:41:02 2022// | ||
| 184 | /patch-chrome_browser_media_router_discovery_discovery_network_list_posix_cc/1.6/Wed Mar 2 06:14:45 2022// | ||
| 185 | /patch-chrome_browser_media_router_discovery_discovery_network_list_wifi_linux_cc/1.5/Wed Feb 2 17:36:37 2022// | ||
| 186 | /patch-chrome_browser_media_webrtc_webrtc_event_log_uploader_cc/1.17/Wed Mar 2 06:14:45 2022// | ||
| 187 | /patch-chrome_browser_media_webrtc_webrtc_log_uploader_cc/1.24/Wed Mar 2 06:14:45 2022// | ||
| 188 | /patch-chrome_browser_media_webrtc_webrtc_logging_controller_cc/1.14/Wed Mar 2 06:14:45 2022// | ||
| 189 | /patch-chrome_browser_media_webrtc_webrtc_logging_controller_h/1.6/Wed Mar 2 06:14:45 2022// | ||
| 190 | /patch-chrome_browser_memory_details_cc/1.53/Wed Mar 2 06:14:45 2022// | ||
| 191 | /patch-chrome_browser_memory_details_linux_cc/1.14/Wed Feb 2 17:36:37 2022// | ||
| 192 | /patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_cc/1.34/Tue Mar 29 19:41:02 2022// | ||
| 193 | /patch-chrome_browser_metrics_chrome_metrics_service_client_cc/1.31/Tue Mar 29 19:41:02 2022// | ||
| 194 | /patch-chrome_browser_metrics_perf_cpu_identity_cc/1.3/Wed Mar 2 06:14:45 2022// | ||
| 195 | /patch-chrome_browser_net_system_network_context_manager_cc/1.30/Tue Mar 29 19:41:02 2022// | ||
| 196 | /patch-chrome_browser_new_tab_page_modules_drive_drive_service_cc/1.2/Wed Feb 2 17:36:37 2022// | ||
| 197 | /patch-chrome_browser_notifications_notification_display_service_impl_cc/1.22/Tue Mar 29 19:41:02 2022// | ||
| 198 | /patch-chrome_browser_notifications_notification_platform_bridge_delegator_cc/1.8/Wed Mar 2 06:14:45 2022// | ||
| 199 | /patch-chrome_browser_password_manager_password_reuse_manager_factory_cc/1.5/Wed Mar 2 06:14:45 2022// | ||
| 200 | /patch-chrome_browser_performance_manager_policies_high_pmf_discard_policy_cc/1.3/Wed Mar 2 06:14:45 2022// | ||
| 201 | /patch-chrome_browser_performance_monitor_process_metrics_recorder_util_cc/1.9/Tue Mar 29 19:41:02 2022// | ||
| 202 | /patch-chrome_browser_performance_monitor_process_monitor_cc/1.8/Wed Mar 2 06:14:45 2022// | ||
| 203 | /patch-chrome_browser_performance_monitor_process_monitor_h/1.11/Tue Mar 29 19:41:02 2022// | ||
| 204 | /patch-chrome_browser_platform_util_linux_cc/1.10/Wed Mar 2 06:14:45 2022// | ||
| 205 | /patch-chrome_browser_plugins_plugins_resource_service_cc/1.20/Wed Mar 2 06:14:45 2022// | ||
| 206 | /patch-chrome_browser_policy_browser_signin_policy_handler_cc/1.7/Wed Mar 2 06:14:45 2022// | ||
| 207 | /patch-chrome_browser_policy_chrome_browser_cloud_management_controller_desktop_cc/1.11/Wed Mar 2 06:14:45 2022// | ||
| 208 | /patch-chrome_browser_policy_configuration_policy_handler_list_factory_cc/1.30/Tue Mar 29 19:41:02 2022// | ||
| 209 | /patch-chrome_browser_policy_device_management_service_configuration_cc/1.10/Wed Mar 2 06:14:45 2022// | ||
| 210 | /patch-chrome_browser_prefs_browser_prefs_cc/1.32/Tue Mar 29 19:41:02 2022// | ||
| 211 | /patch-chrome_browser_prefs_pref_service_incognito_allowlist_cc/1.9/Wed Mar 2 06:14:45 2022// | ||
| 212 | /patch-chrome_browser_printing_print_job_worker_cc/1.12/Wed Mar 2 06:14:45 2022// | ||
| 213 | /patch-chrome_browser_process_singleton_posix_cc/1.33/Tue Mar 29 19:41:02 2022// | ||
| 214 | /patch-chrome_browser_profiles_chrome_browser_main_extra_parts_profiles_cc/1.28/Tue Mar 29 19:41:02 2022// | ||
| 215 | /patch-chrome_browser_profiles_profile_impl_cc/1.29/Tue Mar 29 19:41:02 2022// | ||
| 216 | /patch-chrome_browser_profiles_profiles_state_cc/1.11/Wed Mar 2 06:14:45 2022// | ||
| 217 | /patch-chrome_browser_renderer_preferences_util_cc/1.41/Tue Mar 29 19:41:02 2022// | ||
| 218 | /patch-chrome_browser_resources_plugin_metadata_plugins_linux_json/1.38/Wed Feb 2 17:36:37 2022// | ||
| 219 | /patch-chrome_browser_resources_settings_appearance_page_appearance_browser_proxy_ts/1.5/Wed Feb 2 17:36:37 2022// | ||
| 220 | /patch-chrome_browser_resources_settings_appearance_page_appearance_page_html/1.23/Wed Mar 2 06:14:45 2022// | ||
| 221 | /patch-chrome_browser_resources_settings_appearance_page_appearance_page_ts/1.7/Tue Mar 29 19:41:02 2022// | ||
| 222 | /patch-chrome_browser_resources_settings_autofill_page_passwords_shared_css_html/1.4/Wed Mar 2 06:14:45 2022// | ||
| 223 | /patch-chrome_browser_resources_settings_route_ts/1.5/Tue Mar 29 19:41:02 2022// | ||
| 224 | /patch-chrome_browser_resources_signin_signin_shared_css_html/1.2/Wed Feb 2 17:36:37 2022// | ||
| 225 | /patch-chrome_browser_safe_browsing_download_protection_file_analyzer_cc/1.6/Tue Mar 29 19:41:02 2022// | ||
| 226 | /patch-chrome_browser_safe_browsing_download_protection_file_analyzer_h/1.5/Wed Mar 2 06:14:45 2022// | ||
| 227 | /patch-chrome_browser_safe_browsing_incident_reporting_incident_reporting_service_cc/1.31/Wed Mar 2 06:14:45 2022// | ||
| 228 | /patch-chrome_browser_send_tab_to_self_receiving_ui_handler_registry_cc/1.11/Wed Mar 2 06:14:45 2022// | ||
| 229 | /patch-chrome_browser_send_tab_to_self_send_tab_to_self_client_service_cc/1.9/Wed Mar 2 06:14:45 2022// | ||
| 230 | /patch-chrome_browser_sharing_sharing_device_registration_cc/1.14/Wed Mar 2 06:14:45 2022// | ||
| 231 | /patch-chrome_browser_sharing_sharing_handler_registry_impl_cc/1.14/Wed Mar 2 06:14:45 2022// | ||
| 232 | /patch-chrome_browser_shutdown_signal_handlers_posix_cc/1.4/Wed Feb 2 17:36:37 2022// | ||
| 233 | /patch-chrome_browser_signin_signin_util_cc/1.19/Tue Mar 29 19:41:02 2022// | ||
| 234 | /patch-chrome_browser_sync_chrome_sync_client_cc/1.49/Tue Mar 29 19:41:02 2022// | ||
| 235 | /patch-chrome_browser_sync_device_info_sync_client_impl_cc/1.5/Wed Mar 2 06:14:45 2022// | ||
| 236 | /patch-chrome_browser_task_manager_sampling_task_group_cc/1.25/Wed Mar 2 06:14:45 2022// | ||
| 237 | /patch-chrome_browser_task_manager_sampling_task_group_h/1.20/Wed Mar 2 06:14:45 2022// | ||
| 238 | /patch-chrome_browser_task_manager_sampling_task_group_sampler_cc/1.15/Wed Mar 2 06:14:45 2022// | ||
| 239 | /patch-chrome_browser_task_manager_sampling_task_group_sampler_h/1.9/Wed Mar 2 06:14:45 2022// | ||
| 240 | /patch-chrome_browser_task_manager_sampling_task_manager_impl_cc/1.25/Wed Mar 2 06:14:45 2022// | ||
| 241 | /patch-chrome_browser_task_manager_task_manager_observer_h/1.11/Wed Mar 2 06:14:45 2022// | ||
| 242 | /patch-chrome_browser_themes_theme_helper_cc/1.10/Tue Mar 29 19:41:02 2022// | ||
| 243 | /patch-chrome_browser_themes_theme_service_factory_cc/1.13/Wed Mar 2 06:14:46 2022// | ||
| 244 | /patch-chrome_browser_ui_browser_command_controller_cc/1.63/Tue Mar 29 19:41:02 2022// | ||
| 245 | /patch-chrome_browser_ui_browser_dialogs_h/1.8/Wed Mar 2 06:14:46 2022// | ||
| 246 | /patch-chrome_browser_ui_browser_view_prefs_cc/1.23/Wed Mar 2 06:14:46 2022// | ||
| 247 | /patch-chrome_browser_ui_chrome_pages_cc/1.1/Tue Mar 29 19:41:02 2022// | ||
| 248 | /patch-chrome_browser_ui_chrome_pages_h/1.1/Tue Mar 29 19:41:02 2022// | ||
| 249 | /patch-chrome_browser_ui_color_native_chrome_color_mixer_cc/1.1/Tue Mar 29 19:41:02 2022// | ||
| 250 | /patch-chrome_browser_ui_exclusive_access_exclusive_access_bubble_cc/1.6/Wed Mar 2 06:14:46 2022// | ||
| 251 | /patch-chrome_browser_ui_sad_tab_cc/1.7/Wed Mar 2 06:14:46 2022// | ||
| 252 | /patch-chrome_browser_ui_signin_view_controller_cc/1.6/Tue Mar 29 19:41:02 2022// | ||
| 253 | /patch-chrome_browser_ui_signin_view_controller_delegate_h/1.7/Wed Mar 2 06:14:46 2022// | ||
| 254 | /patch-chrome_browser_ui_startup_bad_flags_prompt_cc/1.32/Wed Mar 2 06:14:46 2022// | ||
| 255 | /patch-chrome_browser_ui_startup_startup_browser_creator_cc/1.48/Tue Mar 29 19:41:02 2022// | ||
| 256 | /patch-chrome_browser_ui_tab_helpers_cc/1.46/Tue Mar 29 19:41:02 2022// | ||
| 257 | /patch-chrome_browser_ui_task_manager_task_manager_columns_cc/1.17/Wed Mar 2 06:14:46 2022// | ||
| 258 | /patch-chrome_browser_ui_task_manager_task_manager_table_model_cc/1.18/Wed Mar 2 06:14:46 2022// | ||
| 259 | /patch-chrome_browser_ui_views_accelerator_table_cc/1.27/Wed Mar 2 06:14:46 2022// | ||
| 260 | /patch-chrome_browser_ui_views_apps_chrome_native_app_window_views_aura_cc/1.18/Wed Mar 2 06:14:46 2022// | ||
| 261 | /patch-chrome_browser_ui_views_chrome_browser_main_extra_parts_views_cc/1.36/Wed Mar 2 06:14:46 2022// | ||
| 262 | /patch-chrome_browser_ui_views_chrome_views_delegate_h/1.23/Wed Mar 2 06:14:46 2022// | ||
| 263 | /patch-chrome_browser_ui_views_download_download_item_view_cc/1.18/Wed Mar 2 06:14:46 2022// | ||
| 264 | /patch-chrome_browser_ui_views_eye_dropper_eye_dropper_view_aura_cc/1.9/Wed Mar 2 06:14:46 2022// | ||
| 265 | /patch-chrome_browser_ui_views_eye_dropper_eye_dropper_view_cc/1.9/Wed Mar 2 06:14:46 2022// | ||
| 266 | /patch-chrome_browser_ui_views_first_run_dialog_cc/1.33/Wed Mar 2 06:14:46 2022// | ||
| 267 | /patch-chrome_browser_ui_views_frame_browser_desktop_window_tree_host_linux_cc/1.8/Tue Mar 29 19:41:02 2022// | ||
| 268 | /patch-chrome_browser_ui_views_frame_browser_desktop_window_tree_host_linux_h/1.7/Wed Mar 2 06:14:46 2022// | ||
| 269 | /patch-chrome_browser_ui_views_frame_browser_frame_cc/1.36/Tue Mar 29 19:41:02 2022// | ||
| 270 | /patch-chrome_browser_ui_views_frame_browser_non_client_frame_view_factory_views_cc/1.16/Wed Mar 2 06:14:46 2022// | ||
| 271 | /patch-chrome_browser_ui_views_frame_browser_view_cc/1.45/Tue Mar 29 19:41:02 2022// | ||
| 272 | /patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_cc/1.56/Wed Mar 2 06:14:46 2022// | ||
| 273 | /patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_h/1.2/Wed Mar 2 06:14:46 2022// | ||
| 274 | /patch-chrome_browser_ui_views_frame_system_menu_model_builder_cc/1.26/Wed Mar 2 06:14:46 2022// | ||
| 275 | /patch-chrome_browser_ui_views_frame_system_menu_model_delegate_cc/1.14/Wed Mar 2 06:14:46 2022// | ||
| 276 | /patch-chrome_browser_ui_views_hung_renderer_view_cc/1.15/Wed Mar 2 06:14:46 2022// | ||
| 277 | /patch-chrome_browser_ui_views_profiles_profile_menu_view_base_cc/1.11/Tue Mar 29 19:41:02 2022// | ||
| 278 | /patch-chrome_browser_ui_views_profiles_signin_view_controller_delegate_views_cc/1.8/Tue Mar 29 19:41:02 2022// | ||
| 279 | /patch-chrome_browser_ui_views_profiles_signin_view_controller_delegate_views_h/1.7/Wed Mar 2 06:14:46 2022// | ||
| 280 | /patch-chrome_browser_ui_views_tabs_new_tab_button_cc/1.28/Wed Mar 2 06:14:46 2022// | ||
| 281 | /patch-chrome_browser_ui_views_tabs_tab_cc/1.21/Tue Mar 29 19:41:02 2022// | ||
| 282 | /patch-chrome_browser_ui_views_tabs_tab_drag_controller_cc/1.57/Tue Mar 29 19:41:02 2022// | ||
| 283 | /patch-chrome_browser_ui_views_tabs_tab_hover_card_controller_cc/1.6/Wed Mar 2 06:14:46 2022// | ||
| 284 | /patch-chrome_browser_ui_webui_about_ui_cc/1.70/Tue Mar 29 19:41:02 2022// | ||
| 285 | /patch-chrome_browser_ui_webui_chrome_web_ui_controller_factory_cc/1.59/Tue Mar 29 19:41:02 2022// | ||
| 286 | /patch-chrome_browser_ui_webui_connectors_internals_zero_trust_utils_cc/1.2/Wed Mar 2 06:14:46 2022// | ||
| 287 | /patch-chrome_browser_ui_webui_ntp_app_launcher_handler_cc/1.7/Tue Mar 29 19:41:02 2022// | ||
| 288 | /patch-chrome_browser_ui_webui_settings_appearance_handler_cc/1.17/Tue Mar 29 19:41:02 2022// | ||
| 289 | /patch-chrome_browser_ui_webui_settings_appearance_handler_h/1.12/Tue Mar 29 19:41:02 2022// | ||
| 290 | /patch-chrome_browser_ui_webui_settings_settings_localized_strings_provider_cc/1.24/Tue Mar 29 19:41:02 2022// | ||
| 291 | /patch-chrome_browser_ui_webui_settings_settings_ui_cc/1.3/Tue Mar 29 19:41:02 2022// | ||
| 292 | /patch-chrome_browser_ui_window_sizer_window_sizer_cc/1.2/Wed Mar 2 06:14:46 2022// | ||
| 293 | /patch-chrome_browser_web_applications_extension_status_utils_h/1.6/Wed Mar 2 06:14:46 2022// | ||
| 294 | /patch-chrome_browser_web_applications_extensions_extension_status_utils_cc/1.6/Wed Mar 2 06:14:46 2022// | ||
| 295 | /patch-chrome_browser_web_applications_os_integration_web_app_file_handler_registration_h/1.1/Tue Mar 29 19:41:02 2022// | ||
| 296 | /patch-chrome_browser_web_applications_os_integration_web_app_shortcut_cc/1.1/Tue Mar 29 19:41:02 2022// | ||
| 297 | /patch-chrome_browser_web_applications_os_integration_web_app_shortcut_h/1.1/Tue Mar 29 19:41:02 2022// | ||
| 298 | /patch-chrome_browser_web_applications_os_integration_web_app_shortcut_manager_cc/1.1/Tue Mar 29 19:41:02 2022// | ||
| 299 | /patch-chrome_browser_web_applications_web_app_provider_cc/1.8/Tue Mar 29 19:41:02 2022// | ||
| 300 | /patch-chrome_browser_webauthn_chrome_authenticator_request_delegate_cc/1.1/Tue Mar 29 19:41:02 2022// | ||
| 301 | /patch-chrome_common_channel_info_h/1.11/Wed Mar 2 06:14:46 2022// | ||
| 302 | /patch-chrome_common_channel_info_posix_cc/1.10/Wed Mar 2 06:14:46 2022// | ||
| 303 | /patch-chrome_common_chrome_features_cc/1.41/Tue Mar 29 19:41:02 2022// | ||
| 304 | /patch-chrome_common_chrome_features_h/1.40/Tue Mar 29 19:41:02 2022// | ||
| 305 | /patch-chrome_common_chrome_paths_cc/1.70/Tue Mar 29 19:41:02 2022// | ||
| 306 | /patch-chrome_common_chrome_paths_h/1.35/Wed Mar 2 06:14:46 2022// | ||
| 307 | /patch-chrome_common_chrome_paths_internal_h/1.7/Wed Mar 2 06:14:46 2022// | ||
| 308 | /patch-chrome_common_chrome_switches_cc/1.71/Tue Mar 29 19:41:02 2022// | ||
| 309 | /patch-chrome_common_chrome_switches_h/1.75/Tue Mar 29 19:41:02 2022// | ||
| 310 | /patch-chrome_common_extensions_command_cc/1.23/Tue Mar 29 19:41:02 2022// | ||
| 311 | /patch-chrome_common_media_cdm_host_file_path_cc/1.8/Wed Mar 2 06:14:46 2022// | ||
| 312 | /patch-chrome_common_pref_names_cc/1.77/Tue Mar 29 19:41:02 2022// | ||
| 313 | /patch-chrome_common_pref_names_h/1.76/Tue Mar 29 19:41:02 2022// | ||
| 314 | /patch-chrome_common_webui_url_constants_cc/1.37/Tue Mar 29 19:41:02 2022// | ||
| 315 | /patch-chrome_common_webui_url_constants_h/1.35/Tue Mar 29 19:41:02 2022// | ||
| 316 | /patch-chrome_renderer_chrome_render_frame_observer_cc/1.5/Wed Mar 2 06:14:46 2022// | ||
| 317 | /patch-chrome_renderer_pepper_pepper_flash_font_file_host_cc/1.6/Wed Mar 2 06:14:46 2022// | ||
| 318 | /patch-chrome_renderer_pepper_pepper_flash_font_file_host_h/1.6/Wed Mar 2 06:14:46 2022// | ||
| 319 | /patch-chrome_services_file_util_public_mojom_safe_document_analyzer_mojom_traits_h/1.5/Wed Mar 2 06:14:46 2022// | ||
| 320 | /patch-chrome_services_printing_print_backend_service_impl_cc/1.5/Tue Mar 29 19:41:02 2022// | ||
| 321 | /patch-chrome_services_speech_audio_source_fetcher_impl_cc/1.9/Wed Mar 2 06:14:46 2022// | ||
| 322 | /patch-chrome_test_BUILD_gn/1.35/Tue Mar 29 19:41:02 2022// | ||
| 323 | /patch-chrome_test_chromedriver_chrome_chrome_finder_cc/1.12/Tue Mar 29 19:41:02 2022// | ||
| 324 | /patch-chrome_test_chromedriver_chrome_launcher_cc/1.9/Tue Mar 29 19:41:02 2022// | ||
| 325 | /patch-chrome_test_chromedriver_key_converter_unittest_cc/1.3/Tue Mar 29 19:41:02 2022// | ||
| 326 | /patch-chrome_test_chromedriver_keycode_text_conversion_unittest_cc/1.2/Tue Mar 29 19:41:02 2022// | ||
| 327 | /patch-chrome_updater_app_app_install_cc/1.3/Tue Mar 29 19:41:02 2022// | ||
| 328 | /patch-chrome_updater_app_app_uninstall_cc/1.2/Wed Mar 2 06:14:46 2022// | ||
| 329 | /patch-chrome_updater_configurator_cc/1.3/Tue Mar 29 19:41:02 2022// | ||
| 330 | /patch-chrome_updater_device_management_cloud_policy_util_cc/1.5/Wed Mar 2 06:14:46 2022// | ||
| 331 | /patch-chrome_updater_device_management_dm_client_cc/1.2/Wed Mar 2 06:14:46 2022// | ||
| 332 | /patch-chrome_updater_device_management_dm_storage_cc/1.2/Wed Mar 2 06:14:46 2022// | ||
| 333 | /patch-chrome_updater_installer_cc/1.14/Wed Mar 2 06:14:46 2022// | ||
| 334 | /patch-chrome_updater_lib_util_cc/1.2/Wed Mar 2 06:14:46 2022// | ||
| 335 | /patch-chrome_updater_updater_cc/1.3/Tue Mar 29 19:41:02 2022// | ||
| 336 | /patch-chrome_updater_util_cc/1.3/Tue Mar 29 19:41:02 2022// | ||
| 337 | /patch-chrome_utility_services_cc/1.13/Tue Mar 29 19:41:02 2022// | ||
| 338 | /patch-chromecast_browser_cast_browser_main_parts_cc/1.41/Tue Mar 29 19:41:02 2022// | ||
| 339 | /patch-chromecast_browser_cast_content_browser_client_cc/1.49/Tue Mar 29 19:41:02 2022// | ||
| 340 | /patch-chromecast_browser_cast_content_browser_client_receiver_bindings_cc/1.15/Tue Mar 29 19:41:02 2022// | ||
| 341 | /patch-chromecast_media_base_default_monotonic_clock_cc/1.8/Wed Mar 2 06:14:46 2022// | ||
| 342 | /patch-chromecast_renderer_cast_content_renderer_client_cc/1.16/Tue Mar 29 19:41:02 2022// | ||
| 343 | /patch-components_autofill_core_browser_autofill_external_delegate_cc/1.13/Wed Mar 2 06:14:46 2022// | ||
| 344 | /patch-components_autofill_core_browser_personal_data_manager_cc/1.25/Tue Mar 29 19:41:02 2022// | ||
| 345 | /patch-components_autofill_core_common_autofill_payments_features_cc/1.23/Tue Mar 29 19:41:02 2022// | ||
| 346 | /patch-components_autofill_core_common_autofill_util_cc/1.14/Wed Mar 2 06:14:46 2022// | ||
| 347 | /patch-components_autofill_payments_strings_grdp/1.1/Wed Mar 2 06:14:46 2022// | ||
| 348 | /patch-components_cast_channel_cast_message_util_cc/1.6/Wed Mar 2 06:14:46 2022// | ||
| 349 | /patch-components_content_settings_core_browser_website_settings_registry_cc/1.14/Wed Mar 2 06:14:46 2022// | ||
| 350 | /patch-components_cookie_config_cookie_store_util_cc/1.8/Wed Mar 2 06:14:46 2022// | ||
| 351 | /patch-components_crash_content_browser_BUILD_gn/1.17/Wed Feb 2 17:36:38 2022// | ||
| 352 | /patch-components_crash_core_app_BUILD_gn/1.16/Wed Mar 2 06:14:46 2022// | ||
| 353 | /patch-components_crash_core_app_chrome_crashpad_handler_cc/1.5/Wed Feb 2 17:36:38 2022// | ||
| 354 | /patch-components_crash_core_browser_crash_upload_list_crashpad_cc/1.5/Wed Feb 2 17:36:38 2022// | ||
| 355 | /patch-components_crash_core_common_BUILD_gn/1.20/Wed Feb 2 17:36:38 2022// | ||
| 356 | /patch-components_discardable_memory_service_discardable_shared_memory_manager_cc/1.8/Wed Feb 2 17:36:38 2022// | ||
| 357 | /patch-components_embedder_support_user_agent_utils_unittest_cc/1.1/Wed Mar 2 06:14:46 2022// | ||
| 358 | /patch-components_feature_engagement_public_event_constants_cc/1.21/Wed Mar 2 06:14:46 2022// | ||
| 359 | /patch-components_feature_engagement_public_event_constants_h/1.16/Wed Mar 2 06:14:46 2022// | ||
| 360 | /patch-components_feature_engagement_public_feature_configurations_cc/1.6/Tue Mar 29 19:41:02 2022// | ||
| 361 | /patch-components_feature_engagement_public_feature_constants_cc/1.15/Tue Mar 29 19:41:03 2022// | ||
| 362 | /patch-components_feature_engagement_public_feature_constants_h/1.15/Tue Mar 29 19:41:03 2022// | ||
| 363 | /patch-components_feature_engagement_public_feature_list_cc/1.24/Tue Mar 29 19:41:03 2022// | ||
| 364 | /patch-components_feature_engagement_public_feature_list_h/1.25/Tue Mar 29 19:41:03 2022// | ||
| 365 | /patch-components_feed_core_proto_v2_wire_version_proto/1.6/Wed Feb 2 17:36:38 2022// | ||
| 366 | /patch-components_feed_core_v2_feed_network_impl_unittest_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 367 | /patch-components_feed_core_v2_proto_util_cc/1.10/Wed Mar 2 06:14:46 2022// | ||
| 368 | /patch-components_feed_core_v2_proto_util_unittest_cc/1.1/Wed Mar 2 06:14:46 2022// | ||
| 369 | /patch-components_feed_core_v2_test_proto_printer_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 370 | /patch-components_flags_ui_flags_state_cc/1.3/Tue Mar 29 19:41:03 2022// | ||
| 371 | /patch-components_gwp_asan_BUILD_gn/1.3/Wed Feb 2 17:36:38 2022// | ||
| 372 | /patch-components_gwp_asan_crash_handler_crash_analyzer_cc/1.6/Wed Mar 2 06:14:46 2022// | ||
| 373 | /patch-components_invalidation_impl_invalidation_switches_cc/1.6/Wed Mar 2 06:14:46 2022// | ||
| 374 | /patch-components_metrics_drive_metrics_provider_linux_cc/1.2/Wed Feb 2 17:36:38 2022// | ||
| 375 | /patch-components_neterror_resources_neterror_js/1.17/Wed Feb 2 17:36:38 2022// | ||
| 376 | /patch-components_network_session_configurator_browser_network_session_configurator_cc/1.33/Wed Mar 2 06:14:46 2022// | ||
| 377 | /patch-components_network_session_configurator_browser_network_session_configurator_unittest_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 378 | /patch-components_new_or_sad_tab_strings_grdp/1.10/Wed Feb 2 17:36:38 2022// | ||
| 379 | /patch-components_os_crypt_keyring_util_linux_cc/1.3/Wed Feb 2 17:36:38 2022// | ||
| 380 | /patch-components_os_crypt_libsecret_util_linux_cc/1.4/Wed Feb 2 17:36:38 2022// | ||
| 381 | /patch-components_os_crypt_os_crypt_h/1.16/Wed Mar 2 06:14:46 2022// | ||
| 382 | /patch-components_paint_preview_browser_paint_preview_client_cc/1.8/Wed Feb 2 17:36:38 2022// | ||
| 383 | /patch-components_paint_preview_browser_paint_preview_client_unittest_cc/1.1/Wed Mar 2 06:14:46 2022// | ||
| 384 | /patch-components_paint_preview_common_proto_paint_preview_proto/1.8/Wed Feb 2 17:36:38 2022// | ||
| 385 | /patch-components_paint_preview_player_player_compositor_delegate_cc/1.1/Wed Mar 2 06:14:46 2022// | ||
| 386 | /patch-components_password_manager_core_browser_login_database_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 387 | /patch-components_password_manager_core_browser_login_database_unittest_cc/1.1/Wed Mar 2 06:14:46 2022// | ||
| 388 | /patch-components_password_manager_core_browser_sync_password_sync_bridge_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 389 | /patch-components_password_manager_core_common_password_manager_features_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 390 | /patch-components_password_manager_core_common_password_manager_features_h/1.2/Tue Mar 29 19:41:03 2022// | ||
| 391 | /patch-components_performance_manager_features_cc/1.8/Tue Mar 29 19:41:03 2022// | ||
| 392 | /patch-components_permissions_prediction_service_prediction_common_cc/1.1/Wed Mar 2 06:14:46 2022// | ||
| 393 | /patch-components_policy_core_browser_policy_pref_mapping_test_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 394 | /patch-components_policy_core_common_cloud_cloud_policy_client_cc/1.11/Tue Mar 29 19:41:03 2022// | ||
| 395 | /patch-components_policy_core_common_cloud_cloud_policy_util_cc/1.18/Wed Mar 2 06:14:46 2022// | ||
| 396 | /patch-components_policy_resources_policy_templates_json/1.66/Tue Mar 29 19:41:03 2022// | ||
| 397 | /patch-components_policy_tools_generate_policy_source_py/1.28/Tue Mar 29 19:41:03 2022// | ||
| 398 | /patch-components_safe_browsing_content_common_file_type_policies_unittest_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 399 | /patch-components_safe_browsing_content_resources_gen_file_type_proto_py/1.5/Wed Feb 2 17:36:38 2022// | ||
| 400 | /patch-components_safe_browsing_core_browser_db_v4_protocol_manager_util_cc/1.5/Wed Mar 2 06:14:46 2022// | ||
| 401 | /patch-components_safe_browsing_core_browser_realtime_url_lookup_service_base_cc/1.7/Wed Mar 2 06:14:46 2022// | ||
| 402 | /patch-components_security_interstitials_content_utils_cc/1.14/Wed Mar 2 06:14:46 2022// | ||
| 403 | /patch-components_services_paint_preview_compositor_paint_preview_compositor_collection_impl_cc/1.9/Wed Mar 2 06:14:46 2022// | ||
| 404 | /patch-components_services_paint_preview_compositor_paint_preview_compositor_collection_impl_h/1.8/Wed Mar 2 06:14:46 2022// | ||
| 405 | /patch-components_startup_metric_utils_browser_startup_metric_utils_cc/1.12/Wed Mar 2 06:14:46 2022// | ||
| 406 | /patch-components_storage_monitor_BUILD_gn/1.8/Wed Mar 2 06:14:46 2022// | ||
| 407 | /patch-components_storage_monitor_removable_device_constants_cc/1.4/Wed Mar 2 06:14:46 2022// | ||
| 408 | /patch-components_storage_monitor_removable_device_constants_h/1.7/Wed Mar 2 06:14:46 2022// | ||
| 409 | /patch-components_sync_device_info_local_device_info_util_cc/1.11/Wed Mar 2 06:14:46 2022// | ||
| 410 | /patch-components_sync_device_info_local_device_info_util_linux_cc/1.4/Wed Feb 2 17:36:38 2022// | ||
| 411 | /patch-components_translate_core_browser_translate_prefs_cc/1.8/Wed Mar 2 06:14:46 2022// | ||
| 412 | /patch-components_translate_core_common_translate_util_cc/1.4/Tue Mar 29 19:41:03 2022// | ||
| 413 | /patch-components_update_client_update_query_params_cc/1.2/Wed Mar 2 06:14:46 2022// | ||
| 414 | /patch-components_url_formatter_spoof_checks_idn_spoof_checker_cc/1.13/Wed Mar 2 06:14:46 2022// | ||
| 415 | /patch-components_viz_common_features_cc/1.18/Tue Mar 29 19:41:03 2022// | ||
| 416 | /patch-components_viz_common_gpu_dawn_context_provider_cc/1.4/Wed Mar 2 06:14:46 2022// | ||
| 417 | /patch-components_viz_host_host_display_client_cc/1.9/Wed Mar 2 06:14:46 2022// | ||
| 418 | /patch-components_viz_host_host_display_client_h/1.13/Wed Mar 2 06:14:46 2022// | ||
| 419 | /patch-components_viz_host_renderer_settings_creation_cc/1.6/Wed Mar 2 06:14:46 2022// | ||
| 420 | /patch-components_viz_service_display_embedder_skia_output_surface_impl_cc/1.5/Tue Mar 29 19:41:03 2022// | ||
| 421 | /patch-components_viz_service_display_embedder_software_output_surface_cc/1.11/Wed Mar 2 06:14:46 2022// | ||
| 422 | /patch-components_viz_service_display_embedder_software_output_surface_h/1.12/Wed Mar 2 06:14:46 2022// | ||
| 423 | /patch-components_viz_service_frame_sinks_root_compositor_frame_sink_impl_cc/1.18/Tue Mar 29 19:41:03 2022// | ||
| 424 | /patch-components_viz_service_frame_sinks_root_compositor_frame_sink_impl_h/1.16/Tue Mar 29 19:41:03 2022// | ||
| 425 | /patch-components_viz_test_fake_display_client_cc/1.4/Wed Mar 2 06:14:46 2022// | ||
| 426 | /patch-components_viz_test_fake_display_client_h/1.1/Wed Mar 2 06:14:46 2022// | ||
| 427 | /patch-components_viz_test_mock_display_client_h/1.12/Wed Mar 2 06:14:46 2022// | ||
| 428 | /patch-content_app_content_main_cc/1.9/Tue Mar 29 19:41:03 2022// | ||
| 429 | /patch-content_app_content_main_runner_impl_cc/1.33/Tue Mar 29 19:41:03 2022// | ||
| 430 | /patch-content_browser_BUILD_gn/1.32/Tue Mar 29 19:41:03 2022// | ||
| 431 | /patch-content_browser_browser_child_process_host_impl_cc/1.24/Tue Mar 29 19:41:03 2022// | ||
| 432 | /patch-content_browser_browser_main_loop_cc/1.85/Tue Mar 29 19:41:03 2022// | ||
| 433 | /patch-content_browser_child_process_launcher_helper_linux_cc/1.19/Wed Mar 2 06:14:46 2022// | ||
| 434 | /patch-content_browser_compositor_viz_process_transport_factory_cc/1.9/Wed Mar 2 06:14:46 2022// | ||
| 435 | /patch-content_browser_compute_pressure_cpu_probe_cc/1.5/Tue Mar 29 19:41:03 2022// | ||
| 436 | /patch-content_browser_devtools_protocol_system_info_handler_cc/1.14/Wed Mar 2 06:14:46 2022// | ||
| 437 | /patch-content_browser_download_download_manager_impl_cc/1.11/Tue Mar 29 19:41:03 2022// | ||
| 438 | /patch-content_browser_font_access_font_enumeration_data_source_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 439 | /patch-content_browser_gpu_compositor_util_cc/1.12/Wed Mar 2 06:14:46 2022// | ||
| 440 | /patch-content_browser_gpu_gpu_process_host_cc/1.31/Wed Mar 2 06:14:46 2022// | ||
| 441 | /patch-content_browser_media_media_keys_listener_manager_impl_cc/1.7/Tue Mar 29 19:41:03 2022// | ||
| 442 | /patch-content_browser_ppapi_plugin_process_host_receiver_bindings_cc/1.4/Wed Mar 2 06:14:46 2022// | ||
| 443 | /patch-content_browser_renderer_host_delegated_frame_host_cc/1.12/Wed Mar 2 06:14:46 2022// | ||
| 444 | /patch-content_browser_renderer_host_input_input_device_change_observer_cc/1.8/Wed Mar 2 06:14:46 2022// | ||
| 445 | /patch-content_browser_renderer_host_pepper_pepper_file_io_host_cc/1.14/Wed Mar 2 06:14:46 2022// | ||
| 446 | /patch-content_browser_renderer_host_render_message_filter_cc/1.32/Wed Mar 2 06:14:46 2022// | ||
| 447 | /patch-content_browser_renderer_host_render_message_filter_h/1.24/Wed Mar 2 06:14:46 2022// | ||
| 448 | /patch-content_browser_renderer_host_render_process_host_impl_cc/1.49/Tue Mar 29 19:41:03 2022// | ||
| 449 | /patch-content_browser_renderer_host_render_process_host_impl_h/1.38/Tue Mar 29 19:41:03 2022// | ||
| 450 | /patch-content_browser_renderer_host_render_view_host_impl_cc/1.35/Wed Mar 2 06:14:46 2022// | ||
| 451 | /patch-content_browser_renderer_host_render_widget_host_view_aura_cc/1.68/Tue Mar 29 19:41:03 2022// | ||
| 452 | /patch-content_browser_renderer_host_render_widget_host_view_aura_h/1.5/Tue Mar 29 19:41:03 2022// | ||
| 453 | /patch-content_browser_renderer_host_render_widget_host_view_event_handler_cc/1.33/Wed Mar 2 06:14:46 2022// | ||
| 454 | /patch-content_browser_sandbox_host_linux_cc/1.3/Wed Feb 2 17:36:38 2022// | ||
| 455 | /patch-content_browser_scheduler_responsiveness_jank_monitor_impl_cc/1.11/Wed Mar 2 06:14:46 2022// | ||
| 456 | /patch-content_browser_scheduler_responsiveness_native_event_observer_cc/1.6/Wed Mar 2 06:14:46 2022// | ||
| 457 | /patch-content_browser_scheduler_responsiveness_native_event_observer_h/1.9/Wed Mar 2 06:14:46 2022// | ||
| 458 | /patch-content_browser_utility_process_host_receiver_bindings_cc/1.5/Wed Mar 2 06:14:46 2022// | ||
| 459 | /patch-content_browser_utility_sandbox_delegate_cc/1.5/Wed Mar 2 06:14:46 2022// | ||
| 460 | /patch-content_browser_v8_snapshot_files_cc/1.7/Wed Mar 2 06:14:46 2022// | ||
| 461 | /patch-content_browser_web_contents_web_contents_view_aura_cc/1.11/Tue Mar 29 19:41:03 2022// | ||
| 462 | /patch-content_browser_webui_web_ui_main_frame_observer_cc/1.11/Wed Mar 2 06:14:46 2022// | ||
| 463 | /patch-content_browser_webui_web_ui_main_frame_observer_h/1.11/Wed Mar 2 06:14:46 2022// | ||
| 464 | /patch-content_browser_zygote_host_zygote_host_impl_linux_cc/1.6/Wed Mar 2 06:14:46 2022// | ||
| 465 | /patch-content_browser_zygote_host_zygote_host_impl_linux_h/1.5/Wed Feb 2 17:36:38 2022// | ||
| 466 | /patch-content_child_child_process_cc/1.14/Tue Mar 29 19:41:03 2022// | ||
| 467 | /patch-content_common_BUILD_gn/1.29/Wed Mar 2 06:14:46 2022// | ||
| 468 | /patch-content_common_font_list_unittest_cc/1.1/Wed Mar 2 06:14:46 2022// | ||
| 469 | /patch-content_common_mojo_core_library_support_cc/1.7/Wed Mar 2 06:14:46 2022// | ||
| 470 | /patch-content_common_user_agent_cc/1.22/Tue Mar 29 19:41:03 2022// | ||
| 471 | /patch-content_gpu_gpu_main_cc/1.57/Tue Mar 29 19:41:03 2022// | ||
| 472 | /patch-content_gpu_gpu_sandbox_hook_linux_cc/1.30/Tue Mar 29 19:41:03 2022// | ||
| 473 | /patch-content_ppapi_plugin_ppapi_blink_platform_impl_cc/1.20/Wed Mar 2 06:14:46 2022// | ||
| 474 | /patch-content_ppapi_plugin_ppapi_blink_platform_impl_h/1.19/Wed Mar 2 06:14:46 2022// | ||
| 475 | /patch-content_ppapi_plugin_ppapi_plugin_main_cc/1.24/Wed Mar 2 06:14:46 2022// | ||
| 476 | /patch-content_public_browser_zygote_host_zygote_host_linux_h/1.2/Wed Feb 2 17:36:38 2022// | ||
| 477 | /patch-content_public_common_common_param_traits_macros_h/1.26/Tue Mar 29 19:41:03 2022// | ||
| 478 | /patch-content_public_common_content_features_cc/1.31/Tue Mar 29 19:41:03 2022// | ||
| 479 | /patch-content_public_common_content_features_h/1.13/Tue Mar 29 19:41:03 2022// | ||
| 480 | /patch-content_public_common_content_switches_cc/1.63/Tue Mar 29 19:41:03 2022// | ||
| 481 | /patch-content_public_common_content_switches_h/1.61/Tue Mar 29 19:41:03 2022// | ||
| 482 | /patch-content_public_common_use_zoom_for_dsf_policy_cc/1.5/Wed Mar 2 06:14:46 2022// | ||
| 483 | /patch-content_public_common_zygote_features_gni/1.5/Wed Feb 2 17:36:38 2022// | ||
| 484 | /patch-content_public_test_mock_render_thread_cc/1.1/Wed Mar 2 06:14:46 2022// | ||
| 485 | /patch-content_renderer_render_process_impl_cc/1.25/Wed Mar 2 06:14:46 2022// | ||
| 486 | /patch-content_renderer_render_thread_impl_cc/1.60/Tue Mar 29 19:41:03 2022// | ||
| 487 | /patch-content_renderer_renderer_blink_platform_impl_cc/1.38/Tue Mar 29 19:41:03 2022// | ||
| 488 | /patch-content_renderer_renderer_blink_platform_impl_h/1.34/Tue Mar 29 19:41:03 2022// | ||
| 489 | /patch-content_renderer_renderer_main_platform_delegate_linux_cc/1.22/Wed Mar 2 06:14:46 2022// | ||
| 490 | /patch-content_shell_BUILD_gn/1.28/Tue Mar 29 19:41:03 2022// | ||
| 491 | /patch-content_shell_app_shell_main_delegate_cc/1.8/Wed Mar 2 06:14:46 2022// | ||
| 492 | /patch-content_shell_browser_shell_browser_main_parts_cc/1.30/Wed Mar 2 06:14:46 2022// | ||
| 493 | /patch-content_shell_browser_shell_paths_cc/1.3/Wed Mar 2 06:14:46 2022// | ||
| 494 | /patch-content_shell_utility_shell_content_utility_client_cc/1.13/Wed Mar 2 06:14:46 2022// | ||
| 495 | /patch-content_test_BUILD_gn/1.19/Tue Mar 29 19:41:03 2022// | ||
| 496 | /patch-content_utility_services_cc/1.9/Wed Mar 2 06:14:46 2022// | ||
| 497 | /patch-content_utility_speech_speech_recognition_sandbox_hook_linux_cc/1.5/Wed Feb 2 17:36:38 2022// | ||
| 498 | /patch-content_utility_speech_speech_recognition_sandbox_hook_linux_h/1.3/Wed Feb 2 17:36:38 2022// | ||
| 499 | /patch-content_utility_utility_blink_platform_with_sandbox_support_impl_cc/1.11/Wed Mar 2 06:14:46 2022// | ||
| 500 | /patch-content_utility_utility_blink_platform_with_sandbox_support_impl_h/1.12/Wed Mar 2 06:14:46 2022// | ||
| 501 | /patch-content_utility_utility_main_cc/1.29/Wed Mar 2 06:14:47 2022// | ||
| 502 | /patch-content_zygote_BUILD_gn/1.1/Wed Feb 2 17:36:38 2022// | ||
| 503 | /patch-content_zygote_zygote_linux_cc/1.15/Wed Feb 2 17:36:38 2022// | ||
| 504 | /patch-content_zygote_zygote_main_linux_cc/1.16/Wed Feb 2 17:36:38 2022// | ||
| 505 | /patch-device_bluetooth_cast_bluetooth_gni/1.3/Wed Feb 2 17:36:38 2022// | ||
| 506 | /patch-device_gamepad_gamepad_provider_cc/1.23/Wed Mar 2 06:14:47 2022// | ||
| 507 | /patch-device_gamepad_hid_writer_linux_cc/1.3/Wed Mar 2 06:14:47 2022// | ||
| 508 | /patch-extensions_browser_api_messaging_message_service_cc/1.19/Tue Mar 29 19:41:03 2022// | ||
| 509 | /patch-extensions_browser_api_networking_private_networking_private_delegate_factory_cc/1.5/Wed Mar 2 06:14:47 2022// | ||
| 510 | /patch-extensions_browser_browser_context_keyed_service_factories_cc/1.15/Tue Mar 29 19:41:03 2022// | ||
| 511 | /patch-extensions_browser_extension_prefs_cc/1.6/Tue Mar 29 19:41:03 2022// | ||
| 512 | /patch-extensions_browser_pref_names_cc/1.5/Wed Mar 2 06:14:47 2022// | ||
| 513 | /patch-extensions_browser_pref_names_h/1.5/Wed Mar 2 06:14:47 2022// | ||
| 514 | /patch-extensions_common_api__permission_features_json/1.27/Wed Mar 2 06:14:47 2022// | ||
| 515 | /patch-extensions_common_features_feature_cc/1.6/Wed Mar 2 06:14:47 2022// | ||
| 516 | /patch-extensions_renderer_bindings_api_binding_util_cc/1.5/Wed Mar 2 06:14:47 2022// | ||
| 517 | /patch-extensions_shell_app_shell_main_delegate_cc/1.11/Wed Mar 2 06:14:47 2022// | ||
| 518 | /patch-extensions_shell_browser_api_runtime_shell_runtime_api_delegate_cc/1.9/Wed Mar 2 06:14:47 2022// | ||
| 519 | /patch-extensions_shell_browser_shell_browser_main_parts_cc/1.2/Wed Mar 2 06:14:47 2022// | ||
| 520 | /patch-extensions_shell_browser_shell_extensions_api_client_cc/1.4/Wed Mar 2 06:14:47 2022// | ||
| 521 | /patch-extensions_shell_browser_shell_extensions_api_client_h/1.5/Wed Mar 2 06:14:47 2022// | ||
| 522 | /patch-google_apis_gcm_engine_heartbeat_manager_cc/1.12/Tue Mar 29 19:41:03 2022// | ||
| 523 | /patch-gpu_command_buffer_common_gpu_memory_buffer_support_cc/1.19/Wed Mar 2 06:14:47 2022// | ||
| 524 | /patch-gpu_command_buffer_service_external_semaphore_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 525 | /patch-gpu_command_buffer_service_external_vk_image_backing_cc/1.22/Wed Mar 2 06:14:47 2022// | ||
| 526 | /patch-gpu_command_buffer_service_shared_image_backing_factory_angle_vulkan_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 527 | /patch-gpu_command_buffer_service_shared_image_factory_cc/1.11/Tue Mar 29 19:41:03 2022// | ||
| 528 | /patch-gpu_command_buffer_service_webgpu_decoder_impl_cc/1.13/Tue Mar 29 19:41:03 2022// | ||
| 529 | /patch-gpu_command_buffer_tests_gl_gpu_memory_buffer_unittest_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 530 | /patch-gpu_command_buffer_tests_gl_oes_egl_image_unittest_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 531 | /patch-gpu_command_buffer_tests_gl_test_utils_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 532 | /patch-gpu_command_buffer_tests_gl_test_utils_h/1.1/Tue Mar 29 19:41:03 2022// | ||
| 533 | /patch-gpu_config_gpu_control_list_cc/1.10/Wed Mar 2 06:14:47 2022// | ||
| 534 | /patch-gpu_config_gpu_test_config_cc/1.2/Wed Mar 2 06:14:47 2022// | ||
| 535 | /patch-gpu_ipc_common_gpu_memory_buffer_support_cc/1.25/Wed Mar 2 06:14:47 2022// | ||
| 536 | /patch-gpu_ipc_common_gpu_memory_buffer_support_h/1.14/Wed Mar 2 06:14:47 2022// | ||
| 537 | /patch-gpu_ipc_service_gpu_init_cc/1.43/Tue Mar 29 19:41:03 2022// | ||
| 538 | /patch-gpu_ipc_service_gpu_memory_buffer_factory_cc/1.8/Wed Mar 2 06:14:47 2022// | ||
| 539 | /patch-gpu_ipc_service_x_util_h/1.2/Wed Mar 2 06:14:47 2022// | ||
| 540 | /patch-gpu_vulkan_generate_bindings_py/1.18/Wed Mar 2 06:14:47 2022// | ||
| 541 | /patch-gpu_vulkan_vulkan_device_queue_cc/1.4/Tue Mar 29 19:41:03 2022// | ||
| 542 | /patch-gpu_vulkan_vulkan_device_queue_h/1.2/Wed Mar 2 06:14:47 2022// | ||
| 543 | /patch-gpu_vulkan_vulkan_function_pointers_cc/1.21/Tue Mar 29 19:41:03 2022// | ||
| 544 | /patch-gpu_vulkan_vulkan_function_pointers_h/1.21/Tue Mar 29 19:41:03 2022// | ||
| 545 | /patch-gpu_vulkan_vulkan_image_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 546 | /patch-gpu_vulkan_vulkan_image_h/1.7/Wed Mar 2 06:14:47 2022// | ||
| 547 | /patch-headless_lib_browser_headless_browser_main_parts_h/1.12/Wed Mar 2 06:14:47 2022// | ||
| 548 | /patch-headless_lib_browser_headless_browser_main_parts_linux_cc/1.8/Wed Mar 2 06:14:47 2022// | ||
| 549 | /patch-headless_lib_browser_headless_content_browser_client_h/1.25/Wed Mar 2 06:14:47 2022// | ||
| 550 | /patch-headless_lib_browser_headless_request_context_manager_cc/1.19/Wed Mar 2 06:14:47 2022// | ||
| 551 | /patch-headless_lib_browser_headless_web_contents_impl_cc/1.7/Tue Mar 29 19:41:03 2022// | ||
| 552 | /patch-headless_lib_headless_content_main_delegate_cc/1.7/Tue Mar 29 19:41:03 2022// | ||
| 553 | /patch-headless_public_headless_browser_cc/1.6/Tue Mar 29 19:41:03 2022// | ||
| 554 | /patch-ipc_ipc_channel_common_cc/1.5/Wed Mar 2 06:14:47 2022// | ||
| 555 | /patch-ipc_ipc_channel_h/1.13/Wed Mar 2 06:14:47 2022// | ||
| 556 | /patch-ipc_ipc_channel_mojo_cc/1.13/Wed Mar 2 06:14:47 2022// | ||
| 557 | /patch-ipc_ipc_message_utils_cc/1.25/Tue Mar 29 19:41:03 2022// | ||
| 558 | /patch-ipc_ipc_message_utils_h/1.22/Tue Mar 29 19:41:03 2022// | ||
| 559 | /patch-media_BUILD_gn/1.22/Wed Mar 2 06:14:47 2022// | ||
| 560 | /patch-media_audio_BUILD_gn/1.37/Tue Mar 29 19:41:03 2022// | ||
| 561 | /patch-media_audio_alsa_audio_manager_alsa_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 562 | /patch-media_audio_audio_features_cc/1.5/Wed Mar 2 06:14:47 2022// | ||
| 563 | /patch-media_audio_audio_input_device_cc/1.12/Wed Mar 2 06:14:47 2022// | ||
| 564 | /patch-media_audio_audio_output_proxy_unittest_cc/1.1/Wed Mar 2 06:14:47 2022// | ||
| 565 | /patch-media_audio_sndio_audio_manager_sndio_cc/1.2/Wed Mar 2 06:14:47 2022// | ||
| 566 | /patch-media_audio_sndio_audio_manager_sndio_h/1.1/Wed Feb 2 17:36:38 2022// | ||
| 567 | /patch-media_audio_sndio_sndio_input_cc/1.2/Wed Mar 2 06:14:47 2022// | ||
| 568 | /patch-media_audio_sndio_sndio_input_h/1.1/Wed Feb 2 17:36:38 2022// | ||
| 569 | /patch-media_audio_sndio_sndio_output_cc/1.2/Wed Mar 2 06:14:47 2022// | ||
| 570 | /patch-media_audio_sndio_sndio_output_h/1.1/Wed Feb 2 17:36:38 2022// | ||
| 571 | /patch-media_base_audio_latency_cc/1.13/Wed Mar 2 06:14:47 2022// | ||
| 572 | /patch-media_base_media_switches_cc/1.21/Tue Mar 29 19:41:03 2022// | ||
| 573 | /patch-media_base_media_switches_h/1.13/Wed Mar 2 06:14:47 2022// | ||
| 574 | /patch-media_base_scopedfd_helper_h/1.7/Wed Mar 2 06:14:47 2022// | ||
| 575 | /patch-media_base_user_input_monitor_unittest_cc/1.1/Wed Mar 2 06:14:47 2022// | ||
| 576 | /patch-media_base_vector_math_cc/1.5/Wed Mar 2 06:14:47 2022// | ||
| 577 | /patch-media_base_video_frame_cc/1.40/Wed Mar 2 06:14:47 2022// | ||
| 578 | /patch-media_base_video_frame_h/1.44/Wed Mar 16 08:03:14 2022// | ||
| 579 | /patch-media_capture_video_create_video_capture_device_factory_cc/1.12/Wed Mar 2 06:14:47 2022// | ||
| 580 | /patch-media_capture_video_fake_video_capture_device_factory_cc/1.20/Wed Mar 2 06:14:47 2022// | ||
| 581 | /patch-media_capture_video_file_video_capture_device_factory_cc/1.14/Wed Mar 2 06:14:47 2022// | ||
| 582 | /patch-media_capture_video_linux_fake_v4l2_impl_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 583 | /patch-media_capture_video_linux_fake_v4l2_impl_h/1.5/Wed Mar 2 06:14:47 2022// | ||
| 584 | /patch-media_capture_video_linux_v4l2_capture_delegate_cc/1.17/Wed Feb 2 17:36:38 2022// | ||
| 585 | /patch-media_capture_video_linux_v4l2_capture_delegate_h/1.4/Wed Feb 2 17:36:38 2022// | ||
| 586 | /patch-media_capture_video_linux_v4l2_capture_device_h/1.2/Wed Feb 2 17:36:38 2022// | ||
| 587 | /patch-media_capture_video_linux_v4l2_capture_device_impl_cc/1.2/Wed Feb 2 17:36:38 2022// | ||
| 588 | /patch-media_capture_video_linux_v4l2_capture_device_impl_h/1.2/Wed Feb 2 17:36:38 2022// | ||
| 589 | /patch-media_capture_video_linux_video_capture_device_factory_linux_cc/1.12/Wed Mar 2 06:14:47 2022// | ||
| 590 | /patch-media_capture_video_linux_video_capture_device_factory_linux_h/1.10/Wed Feb 2 17:36:38 2022// | ||
| 591 | /patch-media_capture_video_video_capture_buffer_pool_impl_cc/1.13/Wed Mar 2 06:14:47 2022// | ||
| 592 | /patch-media_capture_video_video_capture_device_client_cc/1.28/Wed Mar 2 06:14:47 2022// | ||
| 593 | /patch-media_cdm_cdm_paths_unittest_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 594 | /patch-media_gpu_buffer_validation_cc/1.5/Wed Mar 16 08:03:14 2022// | ||
| 595 | /patch-media_gpu_chromeos_video_decoder_pipeline_cc/1.3/Tue Mar 29 19:41:03 2022// | ||
| 596 | /patch-media_gpu_gpu_video_encode_accelerator_factory_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 597 | /patch-media_gpu_vaapi_vaapi_video_decoder_cc/1.2/Wed Mar 2 06:14:47 2022// | ||
| 598 | /patch-media_gpu_vaapi_vaapi_wrapper_cc/1.5/Tue Mar 29 19:41:03 2022// | ||
| 599 | /patch-media_media_options_gni/1.39/Wed Mar 2 06:14:47 2022// | ||
| 600 | /patch-media_mojo_mojom_video_frame_mojom_traits_cc/1.14/Wed Mar 2 06:14:47 2022// | ||
| 601 | /patch-media_video_fake_gpu_memory_buffer_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 602 | /patch-media_video_gpu_memory_buffer_video_frame_pool_cc/1.21/Wed Mar 2 06:14:47 2022// | ||
| 603 | /patch-media_video_video_encode_accelerator_adapter_cc/1.13/Tue Mar 29 19:41:03 2022// | ||
| 604 | /patch-media_video_video_encode_accelerator_adapter_test_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 605 | /patch-media_webrtc_audio_processor_cc/1.3/Tue Mar 29 19:41:03 2022// | ||
| 606 | /patch-media_webrtc_helpers_unittests_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 607 | /patch-media_webrtc_webrtc_features_cc/1.4/Wed Mar 2 06:14:47 2022// | ||
| 608 | /patch-mojo_core_BUILD_gn/1.8/Wed Mar 2 06:14:47 2022// | ||
| 609 | /patch-mojo_core_channel_cc/1.1/Wed Mar 2 06:14:47 2022// | ||
| 610 | /patch-mojo_core_embedder_features_h/1.6/Wed Mar 2 06:14:47 2022// | ||
| 611 | /patch-mojo_public_c_system_thunks_cc/1.9/Tue Mar 29 19:41:03 2022// | ||
| 612 | /patch-mojo_public_js_mojo_bindings_resources_grd/1.16/Tue Mar 29 19:41:03 2022// | ||
| 613 | /patch-mojo_public_tools_bindings_mojom_gni/1.5/Wed Mar 2 06:14:47 2022// | ||
| 614 | /patch-net_BUILD_gn/1.51/Tue Mar 29 19:41:03 2022// | ||
| 615 | /patch-net_base_network_change_notifier_cc/1.49/Tue Mar 29 19:41:03 2022// | ||
| 616 | /patch-net_base_network_change_notifier_posix_cc/1.12/Wed Feb 2 17:36:38 2022// | ||
| 617 | /patch-net_base_network_interfaces_posix_h/1.3/Wed Feb 2 17:36:38 2022// | ||
| 618 | /patch-net_cert_cert_verifier_cc/1.5/Wed Mar 2 06:14:47 2022// | ||
| 619 | /patch-net_cert_cert_verify_proc_cc/1.7/Tue Mar 29 19:41:03 2022// | ||
| 620 | /patch-net_cert_cert_verify_proc_h/1.4/Tue Mar 29 19:41:03 2022// | ||
| 621 | /patch-net_cert_cert_verify_proc_unittest_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 622 | /patch-net_cert_test_root_certs_unittest_cc/1.1/Wed Mar 2 06:14:47 2022// | ||
| 623 | /patch-net_disk_cache_blockfile_disk_format_h/1.4/Wed Feb 2 17:36:39 2022// | ||
| 624 | /patch-net_disk_cache_simple_simple_file_tracker_cc/1.3/Wed Feb 2 17:36:39 2022// | ||
| 625 | /patch-net_dns_BUILD_gn/1.9/Tue Mar 29 19:41:03 2022// | ||
| 626 | /patch-net_dns_address_sorter_posix_cc/1.8/Tue Mar 29 19:41:03 2022// | ||
| 627 | /patch-net_dns_dns_config_service_posix_cc/1.4/Wed Mar 2 06:14:47 2022// | ||
| 628 | /patch-net_dns_dns_reloader_cc/1.2/Wed Mar 2 06:14:47 2022// | ||
| 629 | /patch-net_dns_dns_reloader_h/1.2/Wed Mar 2 06:14:47 2022// | ||
| 630 | /patch-net_dns_dns_util_cc/1.15/Tue Mar 29 19:41:03 2022// | ||
| 631 | /patch-net_dns_host_resolver_manager_cc/1.3/Tue Mar 29 19:41:03 2022// | ||
| 632 | /patch-net_dns_host_resolver_proc_cc/1.13/Tue Mar 29 19:41:03 2022// | ||
| 633 | /patch-net_dns_public_BUILD_gn/1.6/Tue Mar 29 19:41:03 2022// | ||
| 634 | /patch-net_dns_public_resolv_reader_h/1.5/Wed Mar 2 06:14:47 2022// | ||
| 635 | /patch-net_dns_public_scoped_res_state_h/1.1/Wed Mar 2 06:14:47 2022// | ||
| 636 | /patch-net_http_http_auth_gssapi_posix_cc/1.2/Wed Mar 2 06:14:47 2022// | ||
| 637 | /patch-net_http_http_auth_gssapi_posix_h/1.2/Wed Mar 2 06:14:47 2022// | ||
| 638 | /patch-net_http_http_network_session_cc/1.23/Wed Feb 2 17:36:39 2022// | ||
| 639 | /patch-net_proxy_resolution_configured_proxy_resolution_service_cc/1.15/Wed Mar 2 06:14:47 2022// | ||
| 640 | /patch-net_proxy_resolution_proxy_config_service_linux_cc/1.13/Wed Feb 2 17:36:39 2022// | ||
| 641 | /patch-net_socket_socket_posix_cc/1.1/Wed Mar 2 06:14:47 2022// | ||
| 642 | /patch-net_socket_socks5_client_socket_cc/1.12/Wed Feb 2 17:36:39 2022// | ||
| 643 | /patch-net_socket_tcp_socket_posix_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 644 | /patch-net_socket_udp_socket_posix_cc/1.34/Tue Mar 29 19:41:03 2022// | ||
| 645 | /patch-net_socket_udp_socket_unittest_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 646 | /patch-net_socket_unix_domain_client_socket_posix_cc/1.1/Wed Mar 2 06:14:47 2022// | ||
| 647 | /patch-net_third_party_quiche_BUILD_gn/1.2/Tue Mar 29 19:41:03 2022// | ||
| 648 | /patch-net_tools_cert_verify_tool_cert_verify_comparision_tool_cc/1.3/Wed Mar 2 06:14:47 2022// | ||
| 649 | /patch-net_tools_cert_verify_tool_cert_verify_tool_cc/1.14/Wed Mar 2 06:14:47 2022// | ||
| 650 | /patch-net_tools_quic_quic_http_proxy_backend_cc/1.9/Wed Mar 2 06:14:47 2022// | ||
| 651 | /patch-net_traffic_annotation_network_traffic_annotation_h/1.1/Wed Mar 2 06:14:47 2022// | ||
| 652 | /patch-net_url_request_url_fetcher_cc/1.9/Wed Mar 2 06:14:47 2022// | ||
| 653 | /patch-net_url_request_url_fetcher_h/1.11/Tue Mar 29 19:41:03 2022// | ||
| 654 | /patch-net_url_request_url_request_context_builder_cc/1.52/Tue Mar 29 19:41:03 2022// | ||
| 655 | /patch-net_url_request_url_request_context_cc/1.17/Tue Mar 29 19:41:03 2022// | ||
| 656 | /patch-net_url_request_url_request_context_h/1.16/Tue Mar 29 19:41:03 2022// | ||
| 657 | /patch-pdf_out_of_process_instance_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 658 | /patch-pdf_pdfium_pdfium_engine_cc/1.56/Wed Mar 2 06:14:47 2022// | ||
| 659 | /patch-printing_mojom_printing_context_mojom_traits_cc/1.5/Wed Mar 2 06:14:47 2022// | ||
| 660 | /patch-printing_mojom_printing_context_mojom_traits_h/1.5/Wed Mar 2 06:14:47 2022// | ||
| 661 | /patch-printing_print_settings_cc/1.15/Wed Mar 2 06:14:47 2022// | ||
| 662 | /patch-printing_print_settings_conversion_cc/1.16/Tue Mar 29 19:41:03 2022// | ||
| 663 | /patch-printing_print_settings_h/1.13/Wed Mar 2 06:14:47 2022// | ||
| 664 | /patch-printing_printing_features_cc/1.11/Wed Mar 2 06:14:47 2022// | ||
| 665 | /patch-printing_sandbox_print_backend_sandbox_hook_linux_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 666 | /patch-printing_sandbox_print_backend_sandbox_hook_linux_h/1.3/Wed Feb 2 17:36:39 2022// | ||
| 667 | /patch-remoting_base_chromoting_event_cc/1.15/Wed Mar 2 06:14:47 2022// | ||
| 668 | /patch-remoting_base_host_settings_cc/1.4/Wed Mar 2 06:14:47 2022// | ||
| 669 | /patch-remoting_client_display_sys_opengl_h/1.4/Wed Mar 2 06:14:47 2022// | ||
| 670 | /patch-remoting_codec_webrtc_video_encoder_vpx_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 671 | /patch-remoting_host_base_switches_cc/1.2/Wed Mar 2 06:14:47 2022// | ||
| 672 | /patch-remoting_host_base_switches_h/1.2/Wed Mar 2 06:14:47 2022// | ||
| 673 | /patch-remoting_host_chromoting_host_cc/1.2/Wed Mar 2 06:14:47 2022// | ||
| 674 | /patch-remoting_host_chromoting_host_context_cc/1.8/Wed Mar 2 06:14:47 2022// | ||
| 675 | /patch-remoting_host_chromoting_host_services_client_cc/1.2/Wed Mar 2 06:14:47 2022// | ||
| 676 | /patch-remoting_host_evaluate_capability_cc/1.10/Wed Mar 2 06:14:47 2022// | ||
| 677 | /patch-remoting_host_heartbeat_sender_cc/1.12/Wed Mar 2 06:14:47 2022// | ||
| 678 | /patch-remoting_host_host_attributes_cc/1.9/Wed Mar 2 06:14:47 2022// | ||
| 679 | /patch-remoting_host_host_details_cc/1.10/Wed Mar 2 06:14:47 2022// | ||
| 680 | /patch-remoting_host_host_main_cc/1.15/Tue Mar 29 19:41:03 2022// | ||
| 681 | /patch-remoting_host_ipc_constants_cc/1.2/Wed Mar 2 06:14:47 2022// | ||
| 682 | /patch-remoting_host_it2me_it2me_native_messaging_host_main_cc/1.21/Wed Mar 2 06:14:47 2022// | ||
| 683 | /patch-remoting_host_me2me_desktop_environment_cc/1.18/Wed Mar 2 06:14:47 2022// | ||
| 684 | /patch-remoting_host_remote_open_url_remote_open_url_client_cc/1.4/Wed Mar 2 06:14:47 2022// | ||
| 685 | /patch-remoting_host_remote_open_url_remote_open_url_util_cc/1.4/Wed Mar 2 06:14:47 2022// | ||
| 686 | /patch-remoting_host_remote_open_url_url_forwarder_configurator_cc/1.4/Wed Mar 2 06:14:47 2022// | ||
| 687 | /patch-remoting_host_remoting_me2me_host_cc/1.33/Tue Mar 29 19:41:03 2022// | ||
| 688 | /patch-remoting_host_setup_start_host_main_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 689 | /patch-remoting_resources_remoting_strings_grd/1.15/Wed Mar 2 06:14:47 2022// | ||
| 690 | /patch-sandbox_BUILD_gn/1.9/Wed Feb 2 17:36:39 2022// | ||
| 691 | /patch-sandbox_features_gni/1.6/Wed Feb 2 17:36:39 2022// | ||
| 692 | /patch-sandbox_linux_BUILD_gn/1.24/Wed Feb 2 17:36:39 2022// | ||
| 693 | /patch-sandbox_linux_services_init_process_reaper_cc/1.2/Wed Feb 2 17:36:39 2022// | ||
| 694 | /patch-sandbox_linux_services_libc_interceptor_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 695 | /patch-sandbox_policy_BUILD_gn/1.12/Wed Mar 2 06:14:47 2022// | ||
| 696 | /patch-sandbox_policy_features_cc/1.6/Wed Mar 2 06:14:47 2022// | ||
| 697 | /patch-sandbox_policy_freebsd_sandbox_freebsd_cc/1.1/Wed Feb 2 17:36:39 2022// | ||
| 698 | /patch-sandbox_policy_freebsd_sandbox_freebsd_h/1.1/Wed Feb 2 17:36:39 2022// | ||
| 699 | /patch-sandbox_policy_mojom_sandbox_mojom/1.5/Wed Mar 2 06:14:47 2022// | ||
| 700 | /patch-sandbox_policy_openbsd_sandbox_openbsd_cc/1.16/Tue Mar 29 19:41:03 2022// | ||
| 701 | /patch-sandbox_policy_openbsd_sandbox_openbsd_h/1.7/Sun Mar 20 16:20:20 2022// | ||
| 702 | /patch-sandbox_policy_sandbox_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 703 | /patch-sandbox_policy_sandbox_h/1.7/Wed Mar 2 06:14:47 2022// | ||
| 704 | /patch-sandbox_policy_sandbox_type_cc/1.5/Wed Mar 2 06:14:47 2022// | ||
| 705 | /patch-sandbox_policy_switches_cc/1.11/Wed Mar 2 06:14:47 2022// | ||
| 706 | /patch-sandbox_policy_switches_h/1.11/Wed Mar 2 06:14:47 2022// | ||
| 707 | /patch-services_audio_audio_sandbox_hook_linux_cc/1.8/Wed Feb 2 17:36:39 2022// | ||
| 708 | /patch-services_audio_audio_sandbox_hook_linux_h/1.2/Wed Feb 2 17:36:39 2022// | ||
| 709 | /patch-services_cert_verifier_cert_verifier_creation_cc/1.10/Wed Mar 2 06:14:47 2022// | ||
| 710 | /patch-services_device_geolocation_location_arbitrator_cc/1.12/Wed Mar 2 06:14:47 2022// | ||
| 711 | /patch-services_device_hid_BUILD_gn/1.9/Wed Mar 2 06:14:47 2022// | ||
| 712 | /patch-services_device_hid_hid_connection_fido_cc/1.1/Wed Feb 2 17:36:39 2022// | ||
| 713 | /patch-services_device_hid_hid_connection_fido_h/1.1/Wed Feb 2 17:36:39 2022// | ||
| 714 | /patch-services_device_hid_hid_connection_freebsd_cc/1.1/Wed Feb 2 17:36:39 2022// | ||
| 715 | /patch-services_device_hid_hid_connection_freebsd_h/1.1/Wed Feb 2 17:36:39 2022// | ||
| 716 | /patch-services_device_hid_hid_service_cc/1.9/Wed Mar 2 06:14:47 2022// | ||
| 717 | /patch-services_device_hid_hid_service_fido_cc/1.1/Wed Feb 2 17:36:39 2022// | ||
| 718 | /patch-services_device_hid_hid_service_fido_h/1.1/Wed Feb 2 17:36:39 2022// | ||
| 719 | /patch-services_device_hid_hid_service_freebsd_cc/1.1/Wed Feb 2 17:36:39 2022// | ||
| 720 | /patch-services_device_hid_hid_service_freebsd_h/1.1/Wed Feb 2 17:36:39 2022// | ||
| 721 | /patch-services_device_serial_BUILD_gn/1.8/Wed Feb 2 17:36:39 2022// | ||
| 722 | /patch-services_device_serial_serial_device_enumerator_cc/1.6/Wed Mar 2 06:14:47 2022// | ||
| 723 | /patch-services_device_serial_serial_io_handler_posix_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 724 | /patch-services_device_time_zone_monitor_time_zone_monitor_linux_cc/1.12/Wed Mar 2 06:14:47 2022// | ||
| 725 | /patch-services_device_usb_BUILD_gn/1.11/Wed Mar 2 06:14:47 2022// | ||
| 726 | /patch-services_network_BUILD_gn/1.31/Wed Mar 2 06:14:47 2022// | ||
| 727 | /patch-services_network_network_sandbox_hook_linux_cc/1.8/Tue Mar 29 19:41:03 2022// | ||
| 728 | /patch-services_network_network_sandbox_hook_linux_h/1.5/Wed Feb 2 17:36:39 2022// | ||
| 729 | /patch-services_network_network_service_cc/1.29/Tue Mar 29 19:41:03 2022// | ||
| 730 | /patch-services_resource_coordinator_memory_instrumentation_queued_request_dispatcher_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 731 | /patch-services_resource_coordinator_public_cpp_memory_instrumentation_BUILD_gn/1.1/Tue Mar 29 19:41:03 2022// | ||
| 732 | /patch-services_resource_coordinator_public_cpp_memory_instrumentation_os_metrics_bsd_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 733 | /patch-services_resource_coordinator_public_cpp_memory_instrumentation_os_metrics_h/1.10/Wed Mar 2 06:14:47 2022// | ||
| 734 | /patch-services_service_manager_BUILD_gn/1.7/Wed Feb 2 17:36:39 2022// | ||
| 735 | /patch-services_service_manager_public_cpp_service_executable_BUILD_gn/1.4/Wed Feb 2 17:36:39 2022// | ||
| 736 | /patch-services_tracing_public_cpp_perfetto_perfetto_config_cc/1.17/Wed Mar 2 06:14:47 2022// | ||
| 737 | /patch-services_video_capture_broadcasting_receiver_cc/1.11/Wed Mar 2 06:14:47 2022// | ||
| 738 | /patch-services_video_capture_public_mojom_video_capture_service_mojom/1.4/Wed Feb 2 17:36:39 2022// | ||
| 739 | /patch-skia_ext_SkMemory_new_handler_cpp/1.10/Tue Mar 29 19:41:03 2022// | ||
| 740 | /patch-third_party_abseil-cpp_absl_base_config_h/1.11/Wed Feb 2 17:36:39 2022// | ||
| 741 | /patch-third_party_abseil-cpp_absl_base_internal_endian_h/1.2/Wed Feb 2 17:36:39 2022// | ||
| 742 | /patch-third_party_abseil-cpp_absl_base_internal_sysinfo_cc/1.4/Wed Feb 2 17:36:39 2022// | ||
| 743 | /patch-third_party_abseil-cpp_absl_debugging_internal_elf_mem_image_h/1.3/Wed Feb 2 17:36:39 2022// | ||
| 744 | /patch-third_party_abseil-cpp_absl_time_internal_cctz_src_time_zone_format_cc/1.2/Wed Feb 2 17:36:39 2022// | ||
| 745 | /patch-third_party_angle_BUILD_gn/1.43/Wed Feb 2 17:36:39 2022// | ||
| 746 | /patch-third_party_angle_src_common_platform_h/1.4/Wed Feb 2 17:36:39 2022// | ||
| 747 | /patch-third_party_angle_src_common_system_utils_posix_cpp/1.6/Tue Mar 29 19:41:03 2022// | ||
| 748 | /patch-third_party_angle_src_gpu_info_util_SystemInfo_internal_h/1.3/Wed Mar 2 06:14:47 2022// | ||
| 749 | /patch-third_party_angle_src_gpu_info_util_SystemInfo_libpci_cpp/1.1/Wed Mar 2 06:14:47 2022// | ||
| 750 | /patch-third_party_angle_src_gpu_info_util_SystemInfo_linux_cpp/1.10/Wed Mar 2 06:14:47 2022// | ||
| 751 | /patch-third_party_angle_src_gpu_info_util_SystemInfo_x11_cpp/1.4/Wed Mar 2 06:14:47 2022// | ||
| 752 | /patch-third_party_angle_src_libANGLE_Display_cpp/1.30/Tue Mar 29 19:41:03 2022// | ||
| 753 | /patch-third_party_angle_src_libANGLE_formatutils_cpp/1.1/Tue Mar 29 19:41:03 2022// | ||
| 754 | /patch-third_party_angle_src_libANGLE_renderer_driver_utils_h/1.19/Wed Mar 2 06:14:47 2022// | ||
| 755 | /patch-third_party_angle_src_libANGLE_renderer_gl_glx_FunctionsGLX_cpp/1.2/Wed Feb 2 17:36:39 2022// | ||
| 756 | /patch-third_party_angle_src_libANGLE_renderer_vulkan_DisplayVk_api_h/1.4/Wed Feb 2 17:36:39 2022// | ||
| 757 | /patch-third_party_angle_util_BUILD_gn/1.15/Wed Feb 2 17:36:39 2022// | ||
| 758 | /patch-third_party_blink_common_renderer_preferences_renderer_preferences_mojom_traits_cc/1.3/Tue Mar 29 19:41:03 2022// | ||
| 759 | /patch-third_party_blink_public_common_renderer_preferences_renderer_preferences_h/1.6/Tue Mar 29 19:41:03 2022// | ||
| 760 | /patch-third_party_blink_public_common_renderer_preferences_renderer_preferences_mojom_traits_h/1.6/Tue Mar 29 19:41:03 2022// | ||
| 761 | /patch-third_party_blink_public_platform_web_vector_h/1.3/Wed Mar 2 06:14:47 2022// | ||
| 762 | /patch-third_party_blink_renderer_bindings_scripts_bind_gen_style_format_py/1.3/Wed Feb 2 17:36:39 2022// | ||
| 763 | /patch-third_party_blink_renderer_build_scripts_run_with_pythonpath_py/1.2/Wed Feb 2 17:36:39 2022// | ||
| 764 | /patch-third_party_blink_renderer_controller_blink_initializer_cc/1.17/Wed Mar 2 06:14:47 2022// | ||
| 765 | /patch-third_party_blink_renderer_controller_memory_usage_monitor_posix_cc/1.4/Wed Mar 2 06:14:47 2022// | ||
| 766 | /patch-third_party_blink_renderer_controller_memory_usage_monitor_posix_h/1.7/Wed Mar 2 06:14:47 2022// | ||
| 767 | /patch-third_party_blink_renderer_core_editing_editing_behavior_cc/1.11/Wed Mar 2 06:14:47 2022// | ||
| 768 | /patch-third_party_blink_renderer_core_exported_web_view_impl_cc/1.14/Tue Mar 29 19:41:03 2022// | ||
| 769 | /patch-third_party_blink_renderer_core_frame_web_frame_test_cc/1.1/Wed Mar 2 06:14:47 2022// | ||
| 770 | /patch-third_party_blink_renderer_core_html_canvas_canvas_async_blob_creator_cc/1.12/Wed Mar 2 06:14:47 2022// | ||
| 771 | /patch-third_party_blink_renderer_core_html_forms_internal_popup_menu_cc/1.19/Tue Mar 29 19:41:03 2022// | ||
| 772 | /patch-third_party_blink_renderer_core_inspector_inspector_memory_agent_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 773 | /patch-third_party_blink_renderer_core_layout_layout_view_cc/1.22/Tue Mar 29 19:41:03 2022// | ||
| 774 | /patch-third_party_blink_renderer_core_paint_paint_layer_cc/1.15/Wed Mar 2 06:14:47 2022// | ||
| 775 | /patch-third_party_blink_renderer_core_scroll_scrollbar_theme_aura_cc/1.15/Wed Mar 2 06:14:47 2022// | ||
| 776 | /patch-third_party_blink_renderer_modules_media_audio_audio_device_factory_cc/1.1/Wed Mar 2 06:14:47 2022// | ||
| 777 | /patch-third_party_blink_renderer_modules_media_audio_audio_renderer_mixer_manager_test_cc/1.1/Wed Mar 2 06:14:47 2022// | ||
| 778 | /patch-third_party_blink_renderer_modules_peerconnection_webrtc_audio_renderer_test_cc/1.2/Tue Mar 29 19:41:03 2022// | ||
| 779 | /patch-third_party_blink_renderer_modules_webaudio_audio_worklet_thread_test_cc/1.1/Wed Mar 2 06:14:47 2022// | ||
| 780 | /patch-third_party_blink_renderer_modules_webgl_webgl_rendering_context_base_cc/1.10/Wed Mar 2 06:14:47 2022// | ||
| 781 | /patch-third_party_blink_renderer_modules_webgl_webgl_webcodecs_video_frame_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 782 | /patch-third_party_blink_renderer_platform_BUILD_gn/1.21/Tue Mar 29 19:41:03 2022// | ||
| 783 | /patch-third_party_blink_renderer_platform_fonts_font_cache_cc/1.20/Tue Mar 29 19:41:03 2022// | ||
| 784 | /patch-third_party_blink_renderer_platform_fonts_font_cache_h/1.25/Tue Mar 29 19:41:03 2022// | ||
| 785 | /patch-third_party_blink_renderer_platform_fonts_font_description_cc/1.16/Tue Mar 29 19:41:03 2022// | ||
| 786 | /patch-third_party_blink_renderer_platform_fonts_font_metrics_cc/1.6/Tue Mar 29 19:41:03 2022// | ||
| 787 | /patch-third_party_blink_renderer_platform_fonts_font_unique_name_lookup_cc/1.7/Tue Mar 29 19:41:03 2022// | ||
| 788 | /patch-third_party_blink_renderer_platform_fonts_skia_font_cache_skia_cc/1.22/Tue Mar 29 19:41:03 2022// | ||
| 789 | /patch-third_party_blink_renderer_platform_graphics_begin_frame_provider_cc/1.8/Wed Feb 2 17:36:39 2022// | ||
| 790 | /patch-third_party_blink_renderer_platform_graphics_video_frame_submitter_cc/1.16/Tue Mar 29 19:41:03 2022// | ||
| 791 | /patch-third_party_blink_renderer_platform_scheduler_common_thread_cc/1.7/Tue Mar 29 19:41:03 2022// | ||
| 792 | /patch-third_party_blink_renderer_platform_wtf_container_annotations_h/1.8/Tue Mar 29 19:41:03 2022// | ||
| 793 | /patch-third_party_blink_renderer_platform_wtf_math_extras_h/1.1/Wed Feb 2 17:36:39 2022// | ||
| 794 | /patch-third_party_blink_renderer_platform_wtf_stack_util_cc/1.14/Tue Mar 29 19:41:03 2022// | ||
| 795 | /patch-third_party_boringssl_BUILD_generated_gni/1.26/Fri Mar 25 08:33:58 2022// | ||
| 796 | /patch-third_party_boringssl_BUILD_gn/1.3/Tue Mar 29 19:41:03 2022// | ||
| 797 | /patch-third_party_boringssl_src_crypto_cpu_aarch64_openbsd_c/1.2/Tue Mar 29 19:41:03 2022// | ||
| 798 | /patch-third_party_boringssl_src_crypto_fipsmodule_rand_internal_h/1.3/Tue Mar 29 19:41:03 2022// | ||
| 799 | /patch-third_party_boringssl_src_crypto_rand_extra_arc4random_c/1.6/Wed Feb 2 17:36:39 2022// | ||
| 800 | /patch-third_party_boringssl_src_crypto_refcount_c11_c/1.1/Wed Feb 2 17:36:39 2022// | ||
| 801 | /patch-third_party_boringssl_src_include_openssl_base_h/1.12/Wed Feb 2 17:36:39 2022// | ||
| 802 | /patch-third_party_brotli_common_platform_h/1.8/Wed Feb 2 17:36:39 2022// | ||
| 803 | /patch-third_party_crashpad_crashpad_build_crashpad_buildconfig_gni/1.9/Wed Feb 2 17:36:39 2022// | ||
| 804 | /patch-third_party_crashpad_crashpad_client_BUILD_gn/1.15/Wed Feb 2 17:36:39 2022// | ||
| 805 | /patch-third_party_crashpad_crashpad_client_crashpad_client_posix_cc/1.4/Wed Feb 2 17:36:39 2022// | ||
| 806 | /patch-third_party_crashpad_crashpad_minidump_minidump_misc_info_writer_cc/1.5/Wed Mar 2 06:14:47 2022// | ||
| 807 | /patch-third_party_crashpad_crashpad_util_misc_address_types_h/1.5/Wed Mar 2 06:14:47 2022// | ||
| 808 | /patch-third_party_crashpad_crashpad_util_misc_capture_context_h/1.9/Wed Mar 2 06:14:47 2022// | ||
| 809 | /patch-third_party_crashpad_crashpad_util_misc_metrics_cc/1.6/Wed Mar 2 06:14:47 2022// | ||
| 810 | /patch-third_party_crashpad_crashpad_util_misc_uuid_cc/1.6/Wed Mar 2 06:14:47 2022// | ||
| 811 | /patch-third_party_crashpad_crashpad_util_posix_close_multiple_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 812 | /patch-third_party_crashpad_crashpad_util_posix_drop_privileges_cc/1.5/Wed Mar 2 06:14:47 2022// | ||
| 813 | /patch-third_party_crashpad_crashpad_util_posix_signals_cc/1.9/Wed Mar 2 06:14:47 2022// | ||
| 814 | /patch-third_party_crashpad_crashpad_util_posix_symbolic_constants_posix_cc/1.7/Wed Mar 2 06:14:47 2022// | ||
| 815 | /patch-third_party_crc32c_BUILD_gn/1.5/Wed Feb 2 17:36:39 2022// | ||
| 816 | /patch-third_party_dawn_include_dawn_native_VulkanBackend_h/1.1/Tue Mar 29 19:41:03 2022// | ||
| 817 | /patch-third_party_dawn_src_dawn_common_Platform_h/1.1/Tue Mar 29 19:41:03 2022// | ||
| 818 | /patch-third_party_dawn_src_dawn_native_vulkan_BackendVk_cpp/1.5/Tue Mar 29 19:41:03 2022// | ||
| 819 | /patch-third_party_ffmpeg_BUILD_gn/1.18/Wed Feb 2 17:36:39 2022// | ||
| 820 | /patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_arm64_config_h/1.7/Tue Mar 29 19:41:03 2022// | ||
| 821 | /patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_ia32_config_asm/1.37/Wed Mar 30 16:17:37 2022// | ||
| 822 | /patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_ia32_config_h/1.37/Wed Mar 30 16:17:38 2022// | ||
| 823 | /patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_x64_config_asm/1.38/Tue Mar 29 19:41:03 2022// | ||
| 824 | /patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_x64_config_h/1.39/Tue Mar 29 19:41:03 2022// | ||
| 825 | /patch-third_party_ffmpeg_libavcodec_x86_cabac_h/1.9/Wed Feb 2 17:36:39 2022// | ||
| 826 | /patch-third_party_ffmpeg_libavutil_cpu_c/1.8/Wed Feb 2 17:36:39 2022// | ||
| 827 | /patch-third_party_ffmpeg_libavutil_mem_c/1.7/Wed Feb 2 17:36:39 2022// | ||
| 828 | /patch-third_party_ffmpeg_libavutil_random_seed_c/1.2/Wed Feb 2 17:36:39 2022// | ||
| 829 | /patch-third_party_fontconfig_include_config_h/1.4/Wed Feb 2 17:36:39 2022// | ||
| 830 | /patch-third_party_fontconfig_src_src_fccompat_c/1.3/Wed Feb 2 17:36:39 2022// | ||
| 831 | /patch-third_party_glfw_src_src_egl_context_c/1.3/Wed Feb 2 17:36:39 2022// | ||
| 832 | /patch-third_party_leveldatabase_env_chromium_cc/1.20/Wed Feb 2 17:36:39 2022// | ||
| 833 | /patch-third_party_libXNVCtrl_NVCtrl_c/1.2/Wed Feb 2 17:36:39 2022// | ||
| 834 | /patch-third_party_libphonenumber_dist_cpp_src_phonenumbers_base_memory_singleton_h/1.2/Wed Feb 2 17:36:39 2022// | ||
| 835 | /patch-third_party_libphonenumber_dist_cpp_src_phonenumbers_base_synchronization_lock_h/1.3/Wed Feb 2 17:36:39 2022// | ||
| 836 | /patch-third_party_libphonenumber_dist_cpp_src_phonenumbers_base_thread_checker_h/1.2/Wed Feb 2 17:36:39 2022// | ||
| 837 | /patch-third_party_libsync_src_include_sync_sync_h/1.2/Wed Feb 2 17:36:39 2022// | ||
| 838 | /patch-third_party_libsync_src_sync_c/1.2/Wed Feb 2 17:36:39 2022// | ||
| 839 | /patch-third_party_libusb_BUILD_gn/1.16/Wed Feb 2 17:36:39 2022// | ||
| 840 | /patch-third_party_libusb_src_libusb_core_c/1.2/Wed Feb 2 17:36:39 2022// | ||
| 841 | /patch-third_party_libxml_linux_config_h/1.6/Tue Mar 29 19:41:03 2022// | ||
| 842 | /patch-third_party_libxml_src_dict_c/1.4/Tue Mar 29 19:41:03 2022// | ||
| 843 | /patch-third_party_maldoca_BUILD_gn/1.1/Sat Feb 19 12:14:18 2022// | ||
| 844 | /patch-third_party_maldoca_src_maldoca_base_get_runfiles_dir_cc/1.1/Wed Feb 2 17:36:39 2022// | ||
| 845 | /patch-third_party_maldoca_src_maldoca_service_common_process_doc_wrapper_cc/1.4/Wed Feb 2 17:36:39 2022// | ||
| 846 | /patch-third_party_nasm_BUILD_gn/1.1/Wed Mar 2 06:14:48 2022// | ||
| 847 | /patch-third_party_nasm_config_config-linux_h/1.3/Wed Feb 2 17:36:39 2022// | ||
| 848 | /patch-third_party_node_node_py/1.6/Wed Feb 2 17:36:39 2022// | ||
| 849 | /patch-third_party_opus_BUILD_gn/1.8/Wed Feb 2 17:36:39 2022// | ||
| 850 | /patch-third_party_pdfium_core_fxcrt_cfx_datetime_cpp/1.7/Wed Mar 2 06:14:48 2022// | ||
| 851 | /patch-third_party_pdfium_core_fxge_cfx_fontmapper_cpp/1.12/Wed Mar 2 06:14:48 2022// | ||
| 852 | /patch-third_party_pdfium_core_fxge_linux_fx_linux_impl_cpp/1.8/Wed Mar 2 06:14:48 2022// | ||
| 853 | /patch-third_party_pdfium_fxjs_fx_date_helpers_cpp/1.2/Wed Mar 2 06:14:48 2022// | ||
| 854 | /patch-third_party_pdfium_xfa_fxfa_parser_cxfa_timezoneprovider_cpp/1.2/Wed Mar 2 06:14:48 2022// | ||
| 855 | /patch-third_party_perfetto_include_perfetto_base_build_config_h/1.8/Wed Feb 2 17:36:39 2022// | ||
| 856 | /patch-third_party_perfetto_include_perfetto_base_thread_utils_h/1.7/Wed Feb 2 17:36:39 2022// | ||
| 857 | /patch-third_party_perfetto_include_perfetto_base_time_h/1.1/Wed Feb 2 17:36:39 2022// | ||
| 858 | /patch-third_party_perfetto_include_perfetto_ext_base_event_fd_h/1.7/Wed Feb 2 17:36:39 2022// | ||
| 859 | /patch-third_party_perfetto_include_perfetto_ext_base_thread_utils_h/1.10/Wed Feb 2 17:36:39 2022// | ||
| 860 | /patch-third_party_perfetto_src_base_event_fd_cc/1.6/Wed Feb 2 17:36:39 2022// | ||
| 861 | /patch-third_party_perfetto_src_base_periodic_task_cc/1.3/Wed Feb 2 17:36:39 2022// | ||
| 862 | /patch-third_party_perfetto_src_base_string_utils_cc/1.6/Wed Feb 2 17:36:39 2022// | ||
| 863 | /patch-third_party_perfetto_src_base_subprocess_posix_cc/1.6/Wed Feb 2 17:36:39 2022// | ||
| 864 | /patch-third_party_perfetto_src_base_test_vm_test_utils_cc/1.1/Wed Mar 2 06:14:48 2022// | ||
| 865 | /patch-third_party_perfetto_src_base_thread_task_runner_cc/1.8/Wed Feb 2 17:36:39 2022// | ||
| 866 | /patch-third_party_perfetto_src_base_unix_socket_cc/1.10/Wed Feb 2 17:36:39 2022// | ||
| 867 | /patch-third_party_perfetto_src_tracing_core_tracing_service_impl_cc/1.28/Tue Mar 29 19:41:03 2022// | ||
| 868 | /patch-third_party_protobuf_src_google_protobuf_stubs_platform_macros_h/1.6/Wed Feb 2 17:36:39 2022// | ||
| 869 | /patch-third_party_protobuf_src_google_protobuf_stubs_strutil_h/1.11/Wed Feb 2 17:36:39 2022// | ||
| 870 | /patch-third_party_skia_src_core_SkCpu_cpp/1.1/Tue Mar 29 19:41:03 2022// | ||
| 871 | /patch-third_party_skia_src_gpu_GrAutoLocaleSetter_h/1.6/Wed Feb 2 17:36:39 2022// | ||
| 872 | /patch-third_party_skia_src_ports_SkOSFile_posix_cpp/1.1/Wed Mar 2 06:14:48 2022// | ||
| 873 | /patch-third_party_sqlite_BUILD_gn/1.15/Wed Feb 2 17:36:39 2022// | ||
| 874 | /patch-third_party_sqlite_src_amalgamation_sqlite3_c/1.13/Wed Mar 2 06:14:48 2022// | ||
| 875 | /patch-third_party_swiftshader_src_Common_Configurator_cpp/1.2/Wed Feb 2 17:36:39 2022// | ||
| 876 | /patch-third_party_swiftshader_src_Common_MutexLock_hpp/1.2/Wed Feb 2 17:36:39 2022// | ||
| 877 | /patch-third_party_swiftshader_src_Common_SharedLibrary_hpp/1.5/Wed Feb 2 17:36:39 2022// | ||
| 878 | /patch-third_party_swiftshader_src_Main_SwiftConfig_cpp/1.3/Wed Feb 2 17:36:39 2022// | ||
| 879 | /patch-third_party_swiftshader_src_OpenGL_libEGL_Display_cpp/1.16/Wed Feb 2 17:36:39 2022// | ||
| 880 | /patch-third_party_swiftshader_src_OpenGL_libEGL_Surface_cpp/1.13/Wed Feb 2 17:36:39 2022// | ||
| 881 | /patch-third_party_swiftshader_src_OpenGL_libEGL_libEGL_cpp/1.16/Wed Feb 2 17:36:39 2022// | ||
| 882 | /patch-third_party_swiftshader_src_OpenGL_libEGL_libEGL_hpp/1.8/Wed Feb 2 17:36:39 2022// | ||
| 883 | /patch-third_party_swiftshader_src_OpenGL_libGLESv2_libGLESv2_hpp/1.8/Wed Feb 2 17:36:39 2022// | ||
| 884 | /patch-third_party_swiftshader_src_Reactor_Debug_cpp/1.2/Wed Feb 2 17:36:39 2022// | ||
| 885 | /patch-third_party_swiftshader_src_System_SharedLibrary_hpp/1.4/Wed Feb 2 17:36:39 2022// | ||
| 886 | /patch-third_party_swiftshader_src_Vulkan_VkSemaphoreExternalLinux_hpp/1.3/Wed Feb 2 17:36:39 2022// | ||
| 887 | /patch-third_party_swiftshader_src_WSI_libXCB_cpp/1.3/Tue Mar 29 19:41:03 2022// | ||
| 888 | /patch-third_party_swiftshader_third_party_llvm-10_0_configs_linux_include_llvm_Config_config_h/1.6/Wed Feb 2 17:36:39 2022// | ||
| 889 | /patch-third_party_swiftshader_third_party_llvm-subzero_build_Linux_include_llvm_Config_config_h/1.7/Wed Feb 2 17:36:39 2022// | ||
| 890 | /patch-third_party_swiftshader_third_party_marl_src_memory_cpp/1.3/Wed Feb 2 17:36:39 2022// | ||
| 891 | /patch-third_party_swiftshader_third_party_marl_src_thread_cpp/1.6/Tue Mar 29 19:41:03 2022// | ||
| 892 | /patch-third_party_test_fonts_fontconfig_BUILD_gn/1.1/Wed Mar 2 06:14:48 2022// | ||
| 893 | /patch-third_party_test_fonts_fontconfig_fontconfig_util_linux_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 894 | /patch-third_party_unrar_src_crypt_cpp/1.4/Wed Feb 2 17:36:39 2022// | ||
| 895 | /patch-third_party_usrsctp_BUILD_gn/1.15/Wed Feb 2 17:36:39 2022// | ||
| 896 | /patch-third_party_vulkan-deps_vulkan-loader_src_BUILD_gn/1.1/Tue Mar 29 19:41:03 2022// | ||
| 897 | /patch-third_party_vulkan-deps_vulkan-loader_src_loader_allocation_h/1.2/Wed Feb 2 17:36:39 2022// | ||
| 898 | /patch-third_party_vulkan-deps_vulkan-loader_src_loader_get_environment_c/1.2/Wed Feb 2 17:36:39 2022// | ||
| 899 | /patch-third_party_vulkan-deps_vulkan-loader_src_loader_get_environment_h/1.2/Wed Feb 2 17:36:39 2022// | ||
| 900 | /patch-third_party_vulkan-deps_vulkan-loader_src_loader_vk_loader_platform_h/1.8/Tue Mar 29 19:41:03 2022// | ||
| 901 | /patch-third_party_vulkan-deps_vulkan-validation-layers_src_layers_vk_loader_platform_h/1.5/Wed Feb 2 17:36:39 2022// | ||
| 902 | /patch-third_party_vulkan-deps_vulkan-validation-layers_src_layers_vk_mem_alloc_h/1.4/Wed Feb 2 17:36:39 2022// | ||
| 903 | /patch-third_party_vulkan_memory_allocator_include_vk_mem_alloc_h/1.2/Wed Feb 2 17:36:39 2022// | ||
| 904 | /patch-third_party_webrtc_BUILD_gn/1.31/Tue Mar 29 19:41:03 2022// | ||
| 905 | /patch-third_party_webrtc_modules_audio_device_BUILD_gn/1.32/Wed Feb 2 17:36:39 2022// | ||
| 906 | /patch-third_party_webrtc_modules_desktop_capture_linux_x11_x_server_pixel_buffer_cc/1.1/Wed Mar 2 06:14:48 2022// | ||
| 907 | /patch-third_party_webrtc_rtc_base_BUILD_gn/1.39/Tue Mar 29 19:41:03 2022// | ||
| 908 | /patch-third_party_webrtc_rtc_base_byte_order_h/1.1/Wed Feb 2 17:36:39 2022// | ||
| 909 | /patch-third_party_webrtc_rtc_base_ip_address_cc/1.1/Wed Feb 2 17:36:39 2022// | ||
| 910 | /patch-third_party_webrtc_rtc_base_network_cc/1.17/Tue Mar 29 19:41:03 2022// | ||
| 911 | /patch-third_party_webrtc_rtc_base_physical_socket_server_cc/1.12/Wed Feb 2 17:36:39 2022// | ||
| 912 | /patch-third_party_webrtc_rtc_base_physical_socket_server_h/1.2/Wed Feb 2 17:36:39 2022// | ||
| 913 | /patch-third_party_webrtc_rtc_base_platform_thread_types_cc/1.5/Wed Feb 2 17:36:39 2022// | ||
| 914 | /patch-third_party_webrtc_rtc_base_third_party_sigslot_sigslot_h/1.1/Wed Feb 2 17:36:39 2022// | ||
| 915 | /patch-third_party_webrtc_system_wrappers_BUILD_gn/1.22/Wed Feb 2 17:36:39 2022// | ||
| 916 | /patch-third_party_zlib_BUILD_gn/1.25/Wed Feb 2 17:36:39 2022// | ||
| 917 | /patch-tools_generate_stubs_rules_gni/1.2/Wed Feb 2 17:36:39 2022// | ||
| 918 | /patch-tools_gn_build_build_linux_ninja_template/1.3/Wed Feb 2 17:36:39 2022// | ||
| 919 | /patch-tools_gn_build_gen_py/1.19/Wed Mar 2 06:14:48 2022// | ||
| 920 | /patch-tools_gn_src_base_files_file_posix_cc/1.6/Wed Feb 2 17:36:39 2022// | ||
| 921 | /patch-tools_gn_src_gn_version_h/1.3/Wed Feb 2 17:36:39 2022// | ||
| 922 | /patch-tools_gn_src_util_exe_path_cc/1.8/Wed Feb 2 17:36:39 2022// | ||
| 923 | /patch-tools_json_schema_compiler_cpp_bundle_generator_py/1.11/Tue Mar 29 19:41:03 2022// | ||
| 924 | /patch-tools_json_schema_compiler_feature_compiler_py/1.21/Tue Mar 29 19:41:03 2022// | ||
| 925 | /patch-tools_perf_chrome_telemetry_build_BUILD_gn/1.14/Wed Feb 2 17:36:39 2022// | ||
| 926 | /patch-tools_protoc_wrapper_protoc_wrapper_py/1.17/Wed Feb 2 17:36:39 2022// | ||
| 927 | /patch-tools_variations_fieldtrial_to_struct_py/1.13/Wed Feb 2 17:36:39 2022// | ||
| 928 | /patch-ui_base_clipboard_clipboard_constants_cc/1.10/Tue Mar 29 19:41:03 2022// | ||
| 929 | /patch-ui_base_clipboard_clipboard_constants_h/1.8/Tue Mar 29 19:41:03 2022// | ||
| 930 | /patch-ui_base_cursor_cursor_factory_cc/1.7/Tue Mar 29 19:41:03 2022// | ||
| 931 | /patch-ui_base_cursor_cursor_factory_h/1.6/Wed Mar 2 06:14:48 2022// | ||
| 932 | /patch-ui_base_dragdrop_os_exchange_data_provider_factory_cc/1.12/Wed Mar 2 06:14:48 2022// | ||
| 933 | /patch-ui_base_dragdrop_os_exchange_data_provider_non_backed_cc/1.11/Wed Mar 2 06:14:48 2022// | ||
| 934 | /patch-ui_base_ime_dummy_text_input_client_cc/1.4/Wed Mar 2 06:14:48 2022// | ||
| 935 | /patch-ui_base_ime_dummy_text_input_client_h/1.4/Wed Mar 2 06:14:48 2022// | ||
| 936 | /patch-ui_base_ime_fake_text_input_client_cc/1.4/Wed Mar 2 06:14:48 2022// | ||
| 937 | /patch-ui_base_ime_fake_text_input_client_h/1.4/Wed Mar 2 06:14:48 2022// | ||
| 938 | /patch-ui_base_ime_init_input_method_initializer_cc/1.15/Wed Mar 2 06:14:48 2022// | ||
| 939 | /patch-ui_base_ime_text_input_client_h/1.4/Wed Mar 2 06:14:48 2022// | ||
| 940 | /patch-ui_base_resource_resource_bundle_cc/1.52/Tue Mar 29 19:41:03 2022// | ||
| 941 | /patch-ui_base_test_skia_gold_pixel_diff_cc/1.15/Wed Mar 2 06:14:48 2022// | ||
| 942 | /patch-ui_base_ui_base_features_cc/1.26/Tue Mar 29 19:41:03 2022// | ||
| 943 | /patch-ui_base_webui_web_ui_util_cc/1.30/Wed Mar 2 06:14:48 2022// | ||
| 944 | /patch-ui_base_x_x11_cursor_loader_cc/1.9/Wed Feb 2 17:36:39 2022// | ||
| 945 | /patch-ui_base_x_x11_shm_image_pool_cc/1.11/Wed Mar 2 06:14:48 2022// | ||
| 946 | /patch-ui_color_color_id_h/1.1/Tue Mar 29 19:41:03 2022// | ||
| 947 | /patch-ui_color_native_color_mixers_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 948 | /patch-ui_compositor_compositor_cc/1.22/Tue Mar 29 19:41:03 2022// | ||
| 949 | /patch-ui_compositor_compositor_h/1.19/Tue Mar 29 19:41:03 2022// | ||
| 950 | /patch-ui_compositor_compositor_observer_h/1.9/Wed Mar 2 06:14:48 2022// | ||
| 951 | /patch-ui_events_devices_x11_device_data_manager_x11_cc/1.31/Wed Feb 2 17:36:40 2022// | ||
| 952 | /patch-ui_events_event_cc/1.11/Tue Mar 29 19:41:03 2022// | ||
| 953 | /patch-ui_events_event_switches_cc/1.11/Wed Mar 2 06:14:48 2022// | ||
| 954 | /patch-ui_events_event_switches_h/1.13/Wed Mar 2 06:14:48 2022// | ||
| 955 | /patch-ui_events_keycodes_dom_keycode_converter_cc/1.10/Wed Mar 2 06:14:48 2022// | ||
| 956 | /patch-ui_gfx_BUILD_gn/1.31/Tue Mar 29 19:41:03 2022// | ||
| 957 | /patch-ui_gfx_canvas_skia_cc/1.25/Wed Mar 2 06:14:48 2022// | ||
| 958 | /patch-ui_gfx_codec_png_codec_cc/1.8/Wed Feb 2 17:36:40 2022// | ||
| 959 | /patch-ui_gfx_font_fallback_linux_cc/1.6/Tue Mar 29 19:41:03 2022// | ||
| 960 | /patch-ui_gfx_font_list_cc/1.10/Wed Mar 2 06:14:48 2022// | ||
| 961 | /patch-ui_gfx_font_render_params_h/1.13/Wed Mar 2 06:14:48 2022// | ||
| 962 | /patch-ui_gfx_font_util_cc/1.4/Wed Mar 2 06:14:48 2022// | ||
| 963 | /patch-ui_gfx_gpu_memory_buffer_cc/1.16/Wed Mar 2 06:14:48 2022// | ||
| 964 | /patch-ui_gfx_gpu_memory_buffer_h/1.22/Tue Mar 29 19:41:03 2022// | ||
| 965 | /patch-ui_gfx_ipc_gfx_param_traits_macros_h/1.13/Wed Mar 2 06:14:48 2022// | ||
| 966 | /patch-ui_gfx_linux_client_native_pixmap_dmabuf_cc/1.15/Wed Feb 2 17:36:40 2022// | ||
| 967 | /patch-ui_gfx_mojom_buffer_types_mojom_traits_cc/1.10/Wed Mar 2 06:14:48 2022// | ||
| 968 | /patch-ui_gfx_mojom_native_handle_types_mojom_traits_cc/1.4/Wed Mar 2 06:14:48 2022// | ||
| 969 | /patch-ui_gfx_mojom_native_handle_types_mojom_traits_h/1.6/Wed Mar 2 06:14:48 2022// | ||
| 970 | /patch-ui_gfx_native_pixmap_handle_cc/1.10/Wed Mar 2 06:14:48 2022// | ||
| 971 | /patch-ui_gfx_native_pixmap_handle_h/1.10/Wed Mar 2 06:14:48 2022// | ||
| 972 | /patch-ui_gfx_native_widget_types_h/1.12/Wed Mar 2 06:14:48 2022// | ||
| 973 | /patch-ui_gfx_render_text_api_fuzzer_cc/1.8/Wed Mar 2 06:14:48 2022// | ||
| 974 | /patch-ui_gfx_switches_cc/1.3/Wed Mar 2 06:14:48 2022// | ||
| 975 | /patch-ui_gfx_switches_h/1.3/Wed Mar 2 06:14:48 2022// | ||
| 976 | /patch-ui_gfx_x_generated_protos_dri3_cc/1.6/Wed Mar 2 06:14:48 2022// | ||
| 977 | /patch-ui_gfx_x_generated_protos_shm_cc/1.6/Wed Mar 2 06:14:48 2022// | ||
| 978 | /patch-ui_gfx_x_xlib_support_cc/1.7/Wed Feb 2 17:36:40 2022// | ||
| 979 | /patch-ui_gl_BUILD_gn/1.44/Wed Mar 2 06:14:48 2022// | ||
| 980 | /patch-ui_gl_generate_bindings_py/1.47/Wed Feb 2 17:36:40 2022// | ||
| 981 | /patch-ui_gl_gl_bindings_api_autogen_glx_h/1.4/Wed Feb 2 17:36:40 2022// | ||
| 982 | /patch-ui_gl_gl_bindings_autogen_glx_cc/1.16/Wed Feb 2 17:36:40 2022// | ||
| 983 | /patch-ui_gl_gl_bindings_autogen_glx_h/1.5/Wed Feb 2 17:36:40 2022// | ||
| 984 | /patch-ui_gl_gl_context_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 985 | /patch-ui_gl_gl_features_cc/1.14/Tue Mar 29 19:41:03 2022// | ||
| 986 | /patch-ui_gl_gl_image_glx_native_pixmap_cc/1.6/Wed Mar 2 06:14:48 2022// | ||
| 987 | /patch-ui_gl_gl_implementation_cc/1.7/Tue Mar 29 19:41:03 2022// | ||
| 988 | /patch-ui_gl_sync_control_vsync_provider_cc/1.16/Wed Mar 2 06:14:48 2022// | ||
| 989 | /patch-ui_gl_sync_control_vsync_provider_h/1.13/Wed Mar 2 06:14:48 2022// | ||
| 990 | /patch-ui_gtk_gtk_compat_cc/1.8/Wed Feb 2 17:36:40 2022// | ||
| 991 | /patch-ui_gtk_printing_print_dialog_gtk_cc/1.9/Wed Feb 2 17:36:40 2022// | ||
| 992 | /patch-ui_message_center_views_message_popup_view_cc/1.19/Wed Mar 2 06:14:48 2022// | ||
| 993 | /patch-ui_native_theme_native_theme_base_cc/1.20/Wed Mar 2 06:14:48 2022// | ||
| 994 | /patch-ui_native_theme_native_theme_h/1.14/Tue Mar 29 19:41:03 2022// | ||
| 995 | /patch-ui_ozone_common_egl_util_cc/1.2/Wed Mar 2 06:14:48 2022// | ||
| 996 | /patch-ui_ozone_platform_wayland_gpu_vulkan_implementation_wayland_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 997 | /patch-ui_ozone_platform_x11_ozone_platform_x11_cc/1.4/Wed Mar 2 06:14:48 2022// | ||
| 998 | /patch-ui_ozone_platform_x11_vulkan_implementation_x11_cc/1.1/Tue Mar 29 19:41:03 2022// | ||
| 999 | /patch-ui_ozone_public_ozone_platform_h/1.4/Wed Mar 2 06:14:48 2022// | ||
| 1000 | /patch-ui_platform_window_platform_window_init_properties_h/1.14/Tue Mar 29 19:41:03 2022// | ||
| 1001 | /patch-ui_strings_app_locale_settings_grd/1.15/Wed Mar 2 06:14:48 2022// | ||
| 1002 | /patch-ui_views_controls_prefix_selector_cc/1.4/Wed Mar 2 06:14:48 2022// | ||
| 1003 | /patch-ui_views_controls_prefix_selector_h/1.4/Wed Mar 2 06:14:48 2022// | ||
| 1004 | /patch-ui_views_controls_textfield_textfield_cc/1.62/Tue Mar 29 19:41:03 2022// | ||
| 1005 | /patch-ui_views_controls_textfield_textfield_h/1.5/Tue Mar 29 19:41:04 2022// | ||
| 1006 | /patch-ui_views_corewm_tooltip_aura_cc/1.17/Wed Mar 2 06:14:48 2022// | ||
| 1007 | /patch-ui_views_examples_widget_example_cc/1.18/Wed Mar 2 06:14:48 2022// | ||
| 1008 | /patch-ui_views_focus_focus_manager_cc/1.14/Wed Mar 2 06:14:48 2022// | ||
| 1009 | /patch-ui_views_linux_ui_linux_ui_cc/1.1/Tue Mar 29 19:41:04 2022// | ||
| 1010 | /patch-ui_views_linux_ui_linux_ui_h/1.1/Tue Mar 29 19:41:04 2022// | ||
| 1011 | /patch-ui_views_style_platform_style_cc/1.24/Wed Mar 2 06:14:48 2022// | ||
| 1012 | /patch-ui_views_views_delegate_cc/1.26/Wed Mar 2 06:14:48 2022// | ||
| 1013 | /patch-ui_views_views_delegate_h/1.28/Wed Mar 2 06:14:48 2022// | ||
| 1014 | /patch-ui_views_widget_desktop_aura_desktop_screen_ozone_cc/1.9/Wed Mar 2 06:14:48 2022// | ||
| 1015 | /patch-ui_views_widget_desktop_aura_desktop_window_tree_host_platform_cc/1.23/Wed Mar 2 06:14:48 2022// | ||
| 1016 | /patch-ui_views_widget_native_widget_aura_cc/1.18/Wed Mar 2 06:14:48 2022// | ||
| 1017 | /patch-ui_views_widget_widget_cc/1.9/Tue Mar 29 19:41:04 2022// | ||
| 1018 | /patch-ui_views_window_custom_frame_view_cc/1.24/Wed Mar 2 06:14:48 2022// | ||
| 1019 | /patch-ui_views_window_dialog_delegate_cc/1.34/Wed Mar 2 06:14:48 2022// | ||
| 1020 | /patch-ui_views_window_frame_background_cc/1.9/Wed Mar 2 06:14:48 2022// | ||
| 1021 | /patch-ui_webui_resources_js_cr_js/1.13/Wed Feb 2 17:36:40 2022// | ||
| 1022 | /patch-v8_BUILD_gn/1.51/Tue Mar 29 19:41:04 2022// | ||
| 1023 | /patch-v8_include_v8config_h/1.12/Wed Feb 2 17:36:40 2022// | ||
| 1024 | /patch-v8_src_api_api_cc/1.25/Tue Mar 29 19:41:04 2022// | ||
| 1025 | /patch-v8_src_base_atomicops_h/1.7/Wed Mar 2 06:14:48 2022// | ||
| 1026 | /patch-v8_src_base_platform_platform-freebsd_cc/1.2/Wed Mar 2 06:14:48 2022// | ||
| 1027 | /patch-v8_src_base_platform_platform-openbsd_cc/1.11/Wed Feb 2 17:36:40 2022// | ||
| 1028 | /patch-v8_src_base_platform_platform-posix_cc/1.40/Tue Mar 29 19:41:04 2022// | ||
| 1029 | /patch-v8_src_base_sys-info_cc/1.7/Wed Feb 2 17:36:40 2022// | ||
| 1030 | /patch-v8_src_compiler_backend_ia32_instruction-selector-ia32_cc/1.6/Wed Feb 2 17:36:40 2022// | ||
| 1031 | /patch-v8_src_diagnostics_perf-jit_cc/1.8/Wed Feb 2 17:36:40 2022// | ||
| 1032 | /patch-v8_src_diagnostics_perf-jit_h/1.4/Wed Feb 2 17:36:40 2022// | ||
| 1033 | /patch-v8_src_trap-handler_handler-inside-posix_cc/1.13/Wed Feb 2 17:36:40 2022// | ||
| 1034 | /patch-v8_src_trap-handler_handler-inside-posix_h/1.5/Wed Feb 2 17:36:40 2022// | ||
| 1035 | /patch-v8_src_trap-handler_trap-handler_h/1.13/Wed Feb 2 17:36:40 2022// | ||
| 1036 | /patch-v8_src_wasm_baseline_ia32_liftoff-assembler-ia32_h/1.7/Tue Mar 29 19:41:04 2022// | ||
| 1037 | /patch-v8_tools_run_py/1.11/Wed Feb 2 17:36:40 2022// | ||
| 1038 | /patch-weblayer_browser_browser_main_parts_impl_cc/1.21/Tue Mar 29 19:41:04 2022// | ||
| 1039 | /patch-weblayer_browser_content_browser_client_impl_cc/1.23/Tue Mar 29 19:41:04 2022// | ||
| 1040 | /patch-weblayer_browser_content_browser_client_impl_h/1.22/Tue Mar 29 19:41:04 2022// | ||
| 1041 | /patch-weblayer_browser_system_network_context_manager_cc/1.14/Tue Mar 29 19:41:04 2022// | ||
| 1042 | /patch-weblayer_common_weblayer_paths_cc/1.11/Tue Mar 29 19:41:04 2022// | ||
| 1043 | D | ||
diff --git a/www/chromium/patches/CVS/Repository b/www/chromium/patches/CVS/Repository new file mode 100644 index 0000000..7e7c120 --- /dev/null +++ b/www/chromium/patches/CVS/Repository | |||
| @@ -0,0 +1 @@ | |||
| ports/www/chromium/patches | |||
diff --git a/www/chromium/patches/CVS/Root b/www/chromium/patches/CVS/Root new file mode 100644 index 0000000..3811072 --- /dev/null +++ b/www/chromium/patches/CVS/Root | |||
| @@ -0,0 +1 @@ | |||
| /cvs | |||
diff --git a/www/chromium/patches/patch-BUILD_gn b/www/chromium/patches/patch-BUILD_gn new file mode 100644 index 0000000..2c93c90 --- /dev/null +++ b/www/chromium/patches/patch-BUILD_gn | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | Index: BUILD.gn | ||
| 2 | --- BUILD.gn.orig | ||
| 3 | +++ BUILD.gn | ||
| 4 | @@ -53,7 +53,7 @@ declare_args() { | ||
| 5 | root_extra_deps = [] | ||
| 6 | } | ||
| 7 | |||
| 8 | -if (is_official_build) { | ||
| 9 | +if (is_official_build && !is_bsd) { | ||
| 10 | # An official (maximally optimized!) component (optimized for build times) | ||
| 11 | # build doesn't make sense and usually doesn't work. | ||
| 12 | assert(!is_component_build) | ||
| 13 | @@ -452,7 +452,7 @@ group("gn_all") { | ||
| 14 | ] | ||
| 15 | } | ||
| 16 | |||
| 17 | - if (is_linux || is_chromeos || is_android) { | ||
| 18 | + if ((is_linux && !is_bsd) || is_chromeos || is_android) { | ||
| 19 | deps += [ | ||
| 20 | "//third_party/breakpad:breakpad_unittests", | ||
| 21 | "//third_party/breakpad:core-2-minidump", | ||
| 22 | @@ -636,6 +636,15 @@ group("gn_all") { | ||
| 23 | } | ||
| 24 | } | ||
| 25 | |||
| 26 | + if (is_bsd) { | ||
| 27 | + deps -= [ | ||
| 28 | + "//third_party/breakpad:dump_syms($host_toolchain)", | ||
| 29 | + "//third_party/breakpad:microdump_stackwalk($host_toolchain)", | ||
| 30 | + "//third_party/breakpad:minidump_dump($host_toolchain)", | ||
| 31 | + "//third_party/breakpad:minidump_stackwalk($host_toolchain)", | ||
| 32 | + ] | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | if (is_mac) { | ||
| 36 | deps += [ | ||
| 37 | "//third_party/breakpad:crash_inspector", | ||
| 38 | @@ -685,7 +694,7 @@ group("gn_all") { | ||
| 39 | host_os == "win") { | ||
| 40 | deps += [ "//chrome/test/mini_installer:mini_installer_tests" ] | ||
| 41 | } | ||
| 42 | - } else if (!is_android && !is_ios && !is_fuchsia) { | ||
| 43 | + } else if (!is_android && !is_ios && !is_fuchsia && !is_bsd) { | ||
| 44 | deps += [ "//third_party/breakpad:symupload($host_toolchain)" ] | ||
| 45 | } | ||
| 46 | |||
| 47 | @@ -1147,7 +1156,7 @@ if (!is_ios) { | ||
| 48 | data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ] | ||
| 49 | } | ||
| 50 | |||
| 51 | - if (!is_win && !is_android) { | ||
| 52 | + if (!is_win && !is_android && !is_bsd) { | ||
| 53 | data_deps += | ||
| 54 | [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ] | ||
| 55 | } | ||
| 56 | @@ -1156,7 +1165,7 @@ if (!is_ios) { | ||
| 57 | data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] | ||
| 58 | } | ||
| 59 | |||
| 60 | - if (is_linux || is_chromeos) { | ||
| 61 | + if ((is_linux && !is_bsd) || is_chromeos) { | ||
| 62 | data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] | ||
| 63 | } | ||
| 64 | |||
| 65 | @@ -1531,7 +1540,7 @@ group("chromium_builder_perf") { | ||
| 66 | |||
| 67 | if (is_win) { | ||
| 68 | data_deps += [ "//chrome/installer/mini_installer:mini_installer" ] | ||
| 69 | - } else { | ||
| 70 | + } else if (!is_bsd) { | ||
| 71 | data_deps += | ||
| 72 | [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ] | ||
| 73 | } | ||
diff --git a/www/chromium/patches/patch-apps_ui_views_app_window_frame_view_cc b/www/chromium/patches/patch-apps_ui_views_app_window_frame_view_cc new file mode 100644 index 0000000..b55b73f --- /dev/null +++ b/www/chromium/patches/patch-apps_ui_views_app_window_frame_view_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: apps/ui/views/app_window_frame_view.cc | ||
| 2 | --- apps/ui/views/app_window_frame_view.cc.orig | ||
| 3 | +++ apps/ui/views/app_window_frame_view.cc | ||
| 4 | @@ -138,7 +138,7 @@ gfx::Rect AppWindowFrameView::GetWindowBoundsForClient | ||
| 5 | gfx::Rect window_bounds = client_bounds; | ||
| 6 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 7 | // complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Get the difference between the widget's client area bounds and window | ||
| 11 | // bounds, and grow |window_bounds| by that amount. | ||
| 12 | gfx::Insets native_frame_insets = | ||
diff --git a/www/chromium/patches/patch-ash_display_mirror_window_controller_cc b/www/chromium/patches/patch-ash_display_mirror_window_controller_cc new file mode 100644 index 0000000..20f7987 --- /dev/null +++ b/www/chromium/patches/patch-ash_display_mirror_window_controller_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: ash/display/mirror_window_controller.cc | ||
| 2 | --- ash/display/mirror_window_controller.cc.orig | ||
| 3 | +++ ash/display/mirror_window_controller.cc | ||
| 4 | @@ -296,7 +296,11 @@ void MirrorWindowController::UpdateWindow( | ||
| 5 | return info.id() == iter->first; | ||
| 6 | }) == display_info_list.end()) { | ||
| 7 | CloseAndDeleteHost(iter->second, true); | ||
| 8 | +#if defined(__llvm__) | ||
| 9 | + mirroring_host_info_map_.erase(iter++); | ||
| 10 | +#else | ||
| 11 | iter = mirroring_host_info_map_.erase(iter); | ||
| 12 | +#endif | ||
| 13 | } else { | ||
| 14 | ++iter; | ||
| 15 | } | ||
diff --git a/www/chromium/patches/patch-base_BUILD_gn b/www/chromium/patches/patch-base_BUILD_gn new file mode 100644 index 0000000..6f20478 --- /dev/null +++ b/www/chromium/patches/patch-base_BUILD_gn | |||
| @@ -0,0 +1,147 @@ | |||
| 1 | Index: base/BUILD.gn | ||
| 2 | --- base/BUILD.gn.orig | ||
| 3 | +++ base/BUILD.gn | ||
| 4 | @@ -999,7 +999,7 @@ mixed_component("base") { | ||
| 5 | "timer/hi_res_timer_manager_posix.cc", | ||
| 6 | ] | ||
| 7 | |||
| 8 | - if (!is_nacl && !is_apple) { | ||
| 9 | + if (!is_nacl && !is_apple && !is_bsd) { | ||
| 10 | sources += [ | ||
| 11 | "cpu_affinity_posix.cc", | ||
| 12 | "cpu_affinity_posix.h", | ||
| 13 | @@ -1010,6 +1010,12 @@ mixed_component("base") { | ||
| 14 | "profiler/thread_delegate_posix.h", | ||
| 15 | ] | ||
| 16 | } | ||
| 17 | + | ||
| 18 | + if (is_bsd) { | ||
| 19 | + sources += [ | ||
| 20 | + "profiler/stack_sampler_posix.cc", | ||
| 21 | + ] | ||
| 22 | + } | ||
| 23 | } | ||
| 24 | |||
| 25 | if (is_win) { | ||
| 26 | @@ -1478,11 +1484,23 @@ mixed_component("base") { | ||
| 27 | # building inside the cros_sdk environment - use host_toolchain as a | ||
| 28 | # more robust check for this. | ||
| 29 | if (!use_sysroot && | ||
| 30 | - (is_android || ((is_linux || is_chromeos) && !is_chromecast)) && | ||
| 31 | + (is_android || ((is_linux || is_chromeos) && !is_chromecast && !is_bsd)) && | ||
| 32 | host_toolchain != "//build/toolchain/cros:host") { | ||
| 33 | libs += [ "atomic" ] | ||
| 34 | } | ||
| 35 | |||
| 36 | + # *BSD needs libkvm | ||
| 37 | + if (is_bsd) { | ||
| 38 | + libs += [ "kvm" ] | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + if (is_freebsd) { | ||
| 42 | + libs += [ | ||
| 43 | + "execinfo", | ||
| 44 | + "util", | ||
| 45 | + ] | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | if (use_allocator_shim) { | ||
| 49 | sources += [ | ||
| 50 | "allocator/allocator_shim.cc", | ||
| 51 | @@ -1506,7 +1524,7 @@ mixed_component("base") { | ||
| 52 | ] | ||
| 53 | configs += [ "//base/allocator:mac_no_default_new_delete_symbols" ] | ||
| 54 | } | ||
| 55 | - if (is_chromeos || is_linux) { | ||
| 56 | + if (is_chromeos || (is_linux && !is_bsd)) { | ||
| 57 | sources += [ | ||
| 58 | "allocator/allocator_shim_override_cpp_symbols.h", | ||
| 59 | "allocator/allocator_shim_override_glibc_weak_symbols.h", | ||
| 60 | @@ -1563,7 +1581,7 @@ mixed_component("base") { | ||
| 61 | # Allow more direct string conversions on platforms with native utf8 | ||
| 62 | # strings | ||
| 63 | # TODO(crbug/1052397): Consider replacing is_ash with is_chromeos once lacros switches to target_os=chromeos | ||
| 64 | - if (is_apple || is_chromeos_ash || is_chromecast || is_fuchsia) { | ||
| 65 | + if (is_apple || is_chromeos_ash || is_chromecast || is_fuchsia || is_bsd) { | ||
| 66 | defines += [ "SYSTEM_NATIVE_UTF8" ] | ||
| 67 | } | ||
| 68 | |||
| 69 | @@ -2243,6 +2261,42 @@ mixed_component("base") { | ||
| 70 | } | ||
| 71 | } | ||
| 72 | |||
| 73 | + if (is_bsd) { | ||
| 74 | + sources -= [ | ||
| 75 | + "files/file_path_watcher_linux.cc", | ||
| 76 | + "files/file_util_linux.cc", | ||
| 77 | + "files/scoped_file_linux.cc", | ||
| 78 | + "process/memory_linux.cc", | ||
| 79 | + "process/process_linux.cc", | ||
| 80 | + "system/sys_info_linux.cc", | ||
| 81 | + "process/process_iterator_linux.cc", | ||
| 82 | + "process/process_metrics_linux.cc", | ||
| 83 | + "process/process_handle_linux.cc" | ||
| 84 | + ] | ||
| 85 | + sources += [ | ||
| 86 | + "process/memory_stubs.cc", | ||
| 87 | + "files/file_path_watcher_kqueue.cc", | ||
| 88 | + "files/file_path_watcher_kqueue.h", | ||
| 89 | + "files/file_path_watcher_bsd.cc", | ||
| 90 | + ] | ||
| 91 | + } | ||
| 92 | + | ||
| 93 | + if (is_openbsd) { | ||
| 94 | + sources += [ | ||
| 95 | + "process/process_handle_openbsd.cc", | ||
| 96 | + "process/process_iterator_openbsd.cc", | ||
| 97 | + "process/process_metrics_openbsd.cc", | ||
| 98 | + "system/sys_info_openbsd.cc", | ||
| 99 | + ] | ||
| 100 | + } else if (is_freebsd) { | ||
| 101 | + sources += [ | ||
| 102 | + "process/process_handle_freebsd.cc", | ||
| 103 | + "process/process_iterator_freebsd.cc", | ||
| 104 | + "process/process_metrics_freebsd.cc", | ||
| 105 | + "system/sys_info_freebsd.cc", | ||
| 106 | + ] | ||
| 107 | + } | ||
| 108 | + | ||
| 109 | # iOS | ||
| 110 | if (is_ios) { | ||
| 111 | sources -= [ | ||
| 112 | @@ -3495,7 +3549,7 @@ test("base_unittests") { | ||
| 113 | } | ||
| 114 | } | ||
| 115 | |||
| 116 | - if (is_linux || is_chromeos) { | ||
| 117 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 118 | sources += [ | ||
| 119 | "debug/proc_maps_linux_unittest.cc", | ||
| 120 | "files/scoped_file_linux_unittest.cc", | ||
| 121 | @@ -3543,7 +3597,7 @@ test("base_unittests") { | ||
| 122 | "posix/unix_domain_socket_unittest.cc", | ||
| 123 | "task/thread_pool/task_tracker_posix_unittest.cc", | ||
| 124 | ] | ||
| 125 | - if (!is_nacl && !is_apple) { | ||
| 126 | + if (!is_nacl && !is_apple && !is_bsd) { | ||
| 127 | sources += [ | ||
| 128 | "cpu_affinity_posix_unittest.cc", | ||
| 129 | "profiler/stack_copier_signal_unittest.cc", | ||
| 130 | @@ -3555,7 +3609,7 @@ test("base_unittests") { | ||
| 131 | # Allow more direct string conversions on platforms with native utf8 | ||
| 132 | # strings | ||
| 133 | # TODO(crbug/1052397): Consider replacing is_ash with is_chromeos once lacros switches to target_os=chromeos | ||
| 134 | - if (is_apple || is_chromeos_ash || is_chromecast || is_fuchsia) { | ||
| 135 | + if (is_apple || is_chromeos_ash || is_chromecast || is_fuchsia || is_bsd) { | ||
| 136 | defines += [ "SYSTEM_NATIVE_UTF8" ] | ||
| 137 | } | ||
| 138 | |||
| 139 | @@ -3724,7 +3778,7 @@ test("base_unittests") { | ||
| 140 | } | ||
| 141 | } | ||
| 142 | |||
| 143 | - if (is_fuchsia || is_linux || is_chromeos) { | ||
| 144 | + if ((is_fuchsia || is_linux || is_chromeos) && !is_bsd) { | ||
| 145 | sources += [ | ||
| 146 | "debug/elf_reader_unittest.cc", | ||
| 147 | "debug/test_elf_image_builder.cc", | ||
diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_address_space_randomization_h b/www/chromium/patches/patch-base_allocator_partition_allocator_address_space_randomization_h new file mode 100644 index 0000000..6dd1fcf --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_address_space_randomization_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/allocator/partition_allocator/address_space_randomization.h | ||
| 2 | --- base/allocator/partition_allocator/address_space_randomization.h.orig | ||
| 3 | +++ base/allocator/partition_allocator/address_space_randomization.h | ||
| 4 | @@ -38,7 +38,7 @@ AslrMask(uintptr_t bits) { | ||
| 5 | |||
| 6 | #if defined(ARCH_CPU_64_BITS) | ||
| 7 | |||
| 8 | - #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) | ||
| 9 | + #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) && !defined(OS_BSD) | ||
| 10 | |||
| 11 | // We shouldn't allocate system pages at all for sanitizer builds. However, | ||
| 12 | // we do, and if random hint addresses interfere with address ranges | ||
diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_h b/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_h new file mode 100644 index 0000000..40cdc8c --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/allocator/partition_allocator/page_allocator.h | ||
| 2 | --- base/allocator/partition_allocator/page_allocator.h.orig | ||
| 3 | +++ base/allocator/partition_allocator/page_allocator.h | ||
| 4 | @@ -194,7 +194,7 @@ BASE_EXPORT void DecommitAndZeroSystemPages(void* addr | ||
| 5 | // Whether decommitted memory is guaranteed to be zeroed when it is | ||
| 6 | // recommitted. Do not assume that this will not change over time. | ||
| 7 | constexpr BASE_EXPORT bool DecommittedMemoryIsAlwaysZeroed() { | ||
| 8 | -#if BUILDFLAG(IS_APPLE) | ||
| 9 | +#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) | ||
| 10 | return false; | ||
| 11 | #else | ||
| 12 | return true; | ||
diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_internals_posix_h b/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_internals_posix_h new file mode 100644 index 0000000..178d0be --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_internals_posix_h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: base/allocator/partition_allocator/page_allocator_internals_posix.h | ||
| 2 | --- base/allocator/partition_allocator/page_allocator_internals_posix.h.orig | ||
| 3 | +++ base/allocator/partition_allocator/page_allocator_internals_posix.h | ||
| 4 | @@ -352,8 +352,12 @@ bool TryRecommitSystemPagesInternal( | ||
| 5 | |||
| 6 | void DiscardSystemPagesInternal(uintptr_t address, size_t length) { | ||
| 7 | void* ptr = reinterpret_cast<void*>(address); | ||
| 8 | -#if BUILDFLAG(IS_APPLE) | ||
| 9 | +#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) | ||
| 10 | +#if BUILDFLAG(IS_BSD) | ||
| 11 | + int ret = madvise(ptr, length, MADV_FREE); | ||
| 12 | +#else | ||
| 13 | int ret = madvise(ptr, length, MADV_FREE_REUSABLE); | ||
| 14 | +#endif | ||
| 15 | if (ret) { | ||
| 16 | // MADV_FREE_REUSABLE sometimes fails, so fall back to MADV_DONTNEED. | ||
| 17 | ret = madvise(ptr, length, MADV_DONTNEED); | ||
diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_cc new file mode 100644 index 0000000..e867838 --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_cc | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: base/allocator/partition_allocator/partition_alloc.cc | ||
| 2 | --- base/allocator/partition_allocator/partition_alloc.cc.orig | ||
| 3 | +++ base/allocator/partition_allocator/partition_alloc.cc | ||
| 4 | @@ -56,7 +56,12 @@ void PartitionAllocGlobalInit(OomFunction on_out_of_me | ||
| 5 | "maximum direct mapped allocation"); | ||
| 6 | |||
| 7 | // Check that some of our zanier calculations worked out as expected. | ||
| 8 | +#if defined(__i386__) && defined(OS_FREEBSD) | ||
| 9 | + // alignof(std::max_align_t) is only 4 on FreeBSD/i386 | ||
| 10 | + static_assert(kSmallestBucket >= kAlignment, "generic smallest bucket"); | ||
| 11 | +#else | ||
| 12 | static_assert(kSmallestBucket == kAlignment, "generic smallest bucket"); | ||
| 13 | +#endif | ||
| 14 | static_assert(kMaxBucketed == 917504, "generic max bucketed"); | ||
| 15 | STATIC_ASSERT_OR_PA_CHECK( | ||
| 16 | MaxSystemPagesPerRegularSlotSpan() <= 16, | ||
diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_config_h b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_config_h new file mode 100644 index 0000000..aab5ef0 --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_config_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: base/allocator/partition_allocator/partition_alloc_config.h | ||
| 2 | --- base/allocator/partition_allocator/partition_alloc_config.h.orig | ||
| 3 | +++ base/allocator/partition_allocator/partition_alloc_config.h | ||
| 4 | @@ -59,7 +59,7 @@ static_assert(sizeof(void*) != 8, ""); | ||
| 5 | |||
| 6 | // POSIX is not only UNIX, e.g. macOS and other OSes. We do use Linux-specific | ||
| 7 | // features such as futex(2). | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | #define PA_HAS_LINUX_KERNEL | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -179,7 +179,7 @@ constexpr bool kUseLazyCommit = false; | ||
| 14 | |||
| 15 | // On these platforms, lock all the partitions before fork(), and unlock after. | ||
| 16 | // This may be required on more platforms in the future. | ||
| 17 | -#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | #define PA_HAS_ATFORK_HANDLER | ||
| 20 | #endif | ||
| 21 | |||
diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_page_h b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_page_h new file mode 100644 index 0000000..498663b --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_page_h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Index: base/allocator/partition_allocator/partition_page.h | ||
| 2 | --- base/allocator/partition_allocator/partition_page.h.orig | ||
| 3 | +++ base/allocator/partition_allocator/partition_page.h | ||
| 4 | @@ -128,7 +128,8 @@ struct __attribute__((packed)) SlotSpanMetadata { | ||
| 5 | PartitionBucket<thread_safe>* const bucket = nullptr; | ||
| 6 | |||
| 7 | // CHECK()ed in AllocNewSlotSpan(). | ||
| 8 | -#if defined(PA_HAS_64_BITS_POINTERS) && BUILDFLAG(IS_APPLE) | ||
| 9 | +#if (defined(PA_HAS_64_BITS_POINTERS) && BUILDFLAG(IS_APPLE)) || \ | ||
| 10 | + (BUILDFLAG(IS_FREEBSD) && defined(__i386__)) | ||
| 11 | // System page size is not a constant on Apple OSes, but is either 4 or 16kiB | ||
| 12 | // (1 << 12 or 1 << 14), as checked in PartitionRoot::Init(). And | ||
| 13 | // PartitionPageSize() is 4 times the OS page size. | ||
| 14 | @@ -142,7 +143,9 @@ struct __attribute__((packed)) SlotSpanMetadata { | ||
| 15 | #endif // defined(PA_HAS_64_BITS_POINTERS) && BUILDFLAG(IS_APPLE) | ||
| 16 | // The maximum number of bits needed to cover all currently supported OSes. | ||
| 17 | static constexpr size_t kMaxSlotsPerSlotSpanBits = 13; | ||
| 18 | +#if !BUILDFLAG(IS_FREEBSD) && defined(__i386__) | ||
| 19 | static_assert(kMaxSlotsPerSlotSpan < (1 << kMaxSlotsPerSlotSpanBits), ""); | ||
| 20 | +#endif | ||
| 21 | |||
| 22 | // |marked_full| isn't equivalent to being full. Slot span is marked as full | ||
| 23 | // iff it isn't on the active slot span list (or any other list). | ||
diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_root_h b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_root_h new file mode 100644 index 0000000..7c03b53 --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_root_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/allocator/partition_allocator/partition_root.h | ||
| 2 | --- base/allocator/partition_allocator/partition_root.h.orig | ||
| 3 | +++ base/allocator/partition_allocator/partition_root.h | ||
| 4 | @@ -1071,7 +1071,7 @@ ALWAYS_INLINE void PartitionRoot<thread_safe>::FreeNoH | ||
| 5 | // essentially). | ||
| 6 | #if BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC) && \ | ||
| 7 | ((BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMECAST)) || \ | ||
| 8 | - (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_64_BITS))) | ||
| 9 | + ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_64_BITS))) | ||
| 10 | PA_CHECK(IsManagedByPartitionAlloc(object_addr)); | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_spinning_mutex_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_spinning_mutex_cc new file mode 100644 index 0000000..113cf05 --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_spinning_mutex_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: base/allocator/partition_allocator/spinning_mutex.cc | ||
| 2 | --- base/allocator/partition_allocator/spinning_mutex.cc.orig | ||
| 3 | +++ base/allocator/partition_allocator/spinning_mutex.cc | ||
| 4 | @@ -17,7 +17,15 @@ | ||
| 5 | |||
| 6 | #if defined(PA_HAS_LINUX_KERNEL) | ||
| 7 | #include <errno.h> | ||
| 8 | +#if defined(OS_OPENBSD) | ||
| 9 | +#include <sys/futex.h> | ||
| 10 | +#elif defined(OS_FREEBSD) | ||
| 11 | +#include <sys/types.h> | ||
| 12 | +#include <sys/thr.h> | ||
| 13 | +#include <sys/umtx.h> | ||
| 14 | +#else | ||
| 15 | #include <linux/futex.h> | ||
| 16 | +#endif | ||
| 17 | #include <sys/syscall.h> | ||
| 18 | #include <unistd.h> | ||
| 19 | #endif // defined(PA_HAS_LINUX_KERNEL) | ||
| 20 | @@ -85,8 +93,13 @@ void SpinningMutex::FutexWait() { | ||
| 21 | // |kLockedContended| anymore. Note that even without spurious wakeups, the | ||
| 22 | // value of |state_| is not guaranteed when this returns, as another thread | ||
| 23 | // may get the lock before we get to run. | ||
| 24 | +#if defined(OS_FREEBSD) | ||
| 25 | + int err = _umtx_op(&state_, UMTX_OP_WAIT_UINT_PRIVATE, | ||
| 26 | + kLockedContended, nullptr, nullptr); | ||
| 27 | +#else | ||
| 28 | int err = syscall(SYS_futex, &state_, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, | ||
| 29 | kLockedContended, nullptr, nullptr, 0); | ||
| 30 | +#endif | ||
| 31 | |||
| 32 | if (err) { | ||
| 33 | // These are programming error, check them. | ||
| 34 | @@ -98,8 +111,14 @@ void SpinningMutex::FutexWait() { | ||
| 35 | |||
| 36 | void SpinningMutex::FutexWake() { | ||
| 37 | int saved_errno = errno; | ||
| 38 | +#if defined(OS_FREEBSD) | ||
| 39 | + long retval = _umtx_op(&state_, UMTX_OP_WAKE_PRIVATE, | ||
| 40 | + 1 /* wake up a single waiter */, nullptr, nullptr); | ||
| 41 | +#else | ||
| 42 | long retval = syscall(SYS_futex, &state_, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, | ||
| 43 | 1 /* wake up a single waiter */, nullptr, nullptr, 0); | ||
| 44 | +#endif | ||
| 45 | + | ||
| 46 | PA_CHECK(retval != -1); | ||
| 47 | errno = saved_errno; | ||
| 48 | } | ||
diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_starscan_stack_stack_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_starscan_stack_stack_cc new file mode 100644 index 0000000..19cdf22 --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_starscan_stack_stack_cc | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | Index: base/allocator/partition_allocator/starscan/stack/stack.cc | ||
| 2 | --- base/allocator/partition_allocator/starscan/stack/stack.cc.orig | ||
| 3 | +++ base/allocator/partition_allocator/starscan/stack/stack.cc | ||
| 4 | @@ -17,6 +17,10 @@ | ||
| 5 | #include <pthread.h> | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if defined(OS_BSD) | ||
| 9 | +#include <pthread_np.h> | ||
| 10 | +#endif | ||
| 11 | + | ||
| 12 | #if defined(LIBC_GLIBC) | ||
| 13 | extern "C" void* __libc_stack_end; | ||
| 14 | #endif | ||
| 15 | @@ -48,6 +52,36 @@ void* GetStackTop() { | ||
| 16 | |||
| 17 | void* GetStackTop() { | ||
| 18 | return pthread_get_stackaddr_np(pthread_self()); | ||
| 19 | +} | ||
| 20 | + | ||
| 21 | +#elif defined(OS_OPENBSD) | ||
| 22 | + | ||
| 23 | +void* GetStackTop() { | ||
| 24 | + stack_t ss; | ||
| 25 | + if (pthread_stackseg_np(pthread_self(), &ss) != 0) | ||
| 26 | + return nullptr; | ||
| 27 | + return reinterpret_cast<uint8_t*>(ss.ss_sp); | ||
| 28 | +} | ||
| 29 | + | ||
| 30 | +#elif defined(OS_FREEBSD) | ||
| 31 | + | ||
| 32 | +void* GetStackTop() { | ||
| 33 | + pthread_attr_t attr; | ||
| 34 | + int error = pthread_attr_init(&attr); | ||
| 35 | + if (error) { | ||
| 36 | + return nullptr; | ||
| 37 | + } | ||
| 38 | + error = pthread_attr_get_np(pthread_self(), &attr); | ||
| 39 | + if (!error) { | ||
| 40 | + void* base; | ||
| 41 | + size_t size; | ||
| 42 | + error = pthread_attr_getstack(&attr, &base, &size); | ||
| 43 | + PA_CHECK(!error); | ||
| 44 | + pthread_attr_destroy(&attr); | ||
| 45 | + return reinterpret_cast<uint8_t*>(base) + size; | ||
| 46 | + } | ||
| 47 | + pthread_attr_destroy(&attr); | ||
| 48 | + return nullptr; | ||
| 49 | } | ||
| 50 | |||
| 51 | #elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA) | ||
diff --git a/www/chromium/patches/patch-base_atomicops_h b/www/chromium/patches/patch-base_atomicops_h new file mode 100644 index 0000000..ff3d670 --- /dev/null +++ b/www/chromium/patches/patch-base_atomicops_h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: base/atomicops.h | ||
| 2 | --- base/atomicops.h.orig | ||
| 3 | +++ base/atomicops.h | ||
| 4 | @@ -57,7 +57,11 @@ typedef intptr_t Atomic64; | ||
| 5 | |||
| 6 | // Use AtomicWord for a machine-sized pointer. It will use the Atomic32 or | ||
| 7 | // Atomic64 routines below, depending on your architecture. | ||
| 8 | +#if !defined(OS_OPENBSD) && defined(__i386__) | ||
| 9 | +typedef Atomic32 AtomicWord; | ||
| 10 | +#else | ||
| 11 | typedef intptr_t AtomicWord; | ||
| 12 | +#endif | ||
| 13 | |||
| 14 | // Atomically execute: | ||
| 15 | // result = *ptr; | ||
diff --git a/www/chromium/patches/patch-base_base_paths_posix_cc b/www/chromium/patches/patch-base_base_paths_posix_cc new file mode 100644 index 0000000..6432c96 --- /dev/null +++ b/www/chromium/patches/patch-base_base_paths_posix_cc | |||
| @@ -0,0 +1,99 @@ | |||
| 1 | Index: base/base_paths_posix.cc | ||
| 2 | --- base/base_paths_posix.cc.orig | ||
| 3 | +++ base/base_paths_posix.cc | ||
| 4 | @@ -15,6 +15,7 @@ | ||
| 5 | #include <ostream> | ||
| 6 | #include <string> | ||
| 7 | |||
| 8 | +#include "base/command_line.h" | ||
| 9 | #include "base/environment.h" | ||
| 10 | #include "base/files/file_path.h" | ||
| 11 | #include "base/files/file_util.h" | ||
| 12 | @@ -25,9 +26,13 @@ | ||
| 13 | #include "base/process/process_metrics.h" | ||
| 14 | #include "build/build_config.h" | ||
| 15 | |||
| 16 | -#if BUILDFLAG(IS_FREEBSD) | ||
| 17 | +#if BUILDFLAG(IS_BSD) | ||
| 18 | #include <sys/param.h> | ||
| 19 | #include <sys/sysctl.h> | ||
| 20 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 21 | +#include <kvm.h> | ||
| 22 | +#define MAXTOKENS 2 | ||
| 23 | +#endif | ||
| 24 | #elif BUILDFLAG(IS_SOLARIS) || BUILDFLAG(IS_AIX) | ||
| 25 | #include <stdlib.h> | ||
| 26 | #endif | ||
| 27 | @@ -68,13 +73,65 @@ bool PathProviderPosix(int key, FilePath* result) { | ||
| 28 | *result = FilePath(bin_dir); | ||
| 29 | return true; | ||
| 30 | #elif BUILDFLAG(IS_OPENBSD) || BUILDFLAG(IS_AIX) | ||
| 31 | - // There is currently no way to get the executable path on OpenBSD | ||
| 32 | - char* cpath; | ||
| 33 | - if ((cpath = getenv("CHROME_EXE_PATH")) != NULL) | ||
| 34 | - *result = FilePath(cpath); | ||
| 35 | - else | ||
| 36 | - *result = FilePath("/usr/local/chrome/chrome"); | ||
| 37 | - return true; | ||
| 38 | + char *cpath; | ||
| 39 | +#if !BUILDFLAG(IS_AIX) | ||
| 40 | + struct kinfo_file *files; | ||
| 41 | + kvm_t *kd = NULL; | ||
| 42 | + char errbuf[_POSIX2_LINE_MAX]; | ||
| 43 | + static char retval[PATH_MAX]; | ||
| 44 | + int cnt; | ||
| 45 | + struct stat sb; | ||
| 46 | + pid_t cpid = getpid(); | ||
| 47 | + bool ret = false; | ||
| 48 | + | ||
| 49 | + const base::CommandLine* command_line = | ||
| 50 | + base::CommandLine::ForCurrentProcess(); | ||
| 51 | + | ||
| 52 | + VLOG(1) << "PathProviderPosix argv: " << command_line->argv()[0]; | ||
| 53 | + | ||
| 54 | + if (realpath(command_line->argv()[0].c_str(), retval) == NULL) | ||
| 55 | + goto out; | ||
| 56 | + | ||
| 57 | + if (stat(command_line->argv()[0].c_str(), &sb) < 0) | ||
| 58 | + goto out; | ||
| 59 | + | ||
| 60 | + if (!command_line->HasSwitch("no-sandbox")) { | ||
| 61 | + ret = true; | ||
| 62 | + *result = FilePath(retval); | ||
| 63 | + VLOG(1) << "PathProviderPosix (sandbox) result: " << retval; | ||
| 64 | + goto out; | ||
| 65 | + } | ||
| 66 | + | ||
| 67 | + if ((kd = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, errbuf)) == NULL) | ||
| 68 | + goto out; | ||
| 69 | + | ||
| 70 | + if ((files = kvm_getfiles(kd, KERN_FILE_BYPID, cpid, | ||
| 71 | + sizeof(struct kinfo_file), &cnt)) == NULL) | ||
| 72 | + goto out; | ||
| 73 | + | ||
| 74 | + for (int i = 0; i < cnt; i++) { | ||
| 75 | + if (files[i].fd_fd == KERN_FILE_TEXT && | ||
| 76 | + files[i].va_fsid == static_cast<uint32_t>(sb.st_dev) && | ||
| 77 | + files[i].va_fileid == sb.st_ino) { | ||
| 78 | + ret = true; | ||
| 79 | + *result = FilePath(retval); | ||
| 80 | + VLOG(1) << "PathProviderPosix result: " << retval; | ||
| 81 | + } | ||
| 82 | + } | ||
| 83 | +out: | ||
| 84 | + if (kd) | ||
| 85 | + kvm_close(kd); | ||
| 86 | + if (!ret) { | ||
| 87 | +#endif | ||
| 88 | + if ((cpath = getenv("CHROME_EXE_PATH")) != NULL) | ||
| 89 | + *result = FilePath(cpath); | ||
| 90 | + else | ||
| 91 | + *result = FilePath("/usr/local/chrome/chrome"); | ||
| 92 | + return true; | ||
| 93 | +#if !BUILDFLAG(IS_AIX) | ||
| 94 | + } | ||
| 95 | + return ret; | ||
| 96 | +#endif | ||
| 97 | #endif | ||
| 98 | } | ||
| 99 | case DIR_SRC_TEST_DATA_ROOT: { | ||
diff --git a/www/chromium/patches/patch-base_base_switches_cc b/www/chromium/patches/patch-base_base_switches_cc new file mode 100644 index 0000000..dc89103 --- /dev/null +++ b/www/chromium/patches/patch-base_base_switches_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/base_switches.cc | ||
| 2 | --- base/base_switches.cc.orig | ||
| 3 | +++ base/base_switches.cc | ||
| 4 | @@ -170,7 +170,7 @@ const char kForceFieldTrialParams[] = "force-fieldtria | ||
| 5 | |||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Controls whether or not retired instruction counts are surfaced for threads | ||
| 11 | // in trace events on Linux. | ||
| 12 | // | ||
diff --git a/www/chromium/patches/patch-base_base_switches_h b/www/chromium/patches/patch-base_base_switches_h new file mode 100644 index 0000000..ad72ea5 --- /dev/null +++ b/www/chromium/patches/patch-base_base_switches_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/base_switches.h | ||
| 2 | --- base/base_switches.h.orig | ||
| 3 | +++ base/base_switches.h | ||
| 4 | @@ -60,7 +60,7 @@ extern const char kEnableIdleTracing[]; | ||
| 5 | extern const char kForceFieldTrialParams[]; | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | extern const char kEnableThreadInstructionCount[]; | ||
| 11 | |||
| 12 | // TODO(crbug.com/1176772): Remove kEnableCrashpad and IsCrashpadEnabled() when | ||
diff --git a/www/chromium/patches/patch-base_compiler_specific_h b/www/chromium/patches/patch-base_compiler_specific_h new file mode 100644 index 0000000..d7c3ab4 --- /dev/null +++ b/www/chromium/patches/patch-base_compiler_specific_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/compiler_specific.h | ||
| 2 | --- base/compiler_specific.h.orig | ||
| 3 | +++ base/compiler_specific.h | ||
| 4 | @@ -328,7 +328,7 @@ inline constexpr bool AnalyzerAssumeTrue(bool arg) { | ||
| 5 | #endif // defined(__clang_analyzer__) | ||
| 6 | |||
| 7 | // Use nomerge attribute to disable optimization of merging multiple same calls. | ||
| 8 | -#if defined(__clang__) && __has_attribute(nomerge) | ||
| 9 | +#if defined(__clang__) && __has_attribute(nomerge) && !defined(OS_FREEBSD) | ||
| 10 | #define NOMERGE [[clang::nomerge]] | ||
| 11 | #else | ||
| 12 | #define NOMERGE | ||
diff --git a/www/chromium/patches/patch-base_cpu_h b/www/chromium/patches/patch-base_cpu_h new file mode 100644 index 0000000..90442cf --- /dev/null +++ b/www/chromium/patches/patch-base_cpu_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/cpu.h | ||
| 2 | --- base/cpu.h.orig | ||
| 3 | +++ base/cpu.h | ||
| 4 | @@ -108,7 +108,7 @@ class BASE_EXPORT CPU final { | ||
| 5 | const std::string& cpu_brand() const { return cpu_brand_; } | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 8 | - BUILDFLAG(IS_AIX) | ||
| 9 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 10 | enum class CoreType { | ||
| 11 | kUnknown = 0, | ||
| 12 | kOther, | ||
diff --git a/www/chromium/patches/patch-base_debug_debugger_posix_cc b/www/chromium/patches/patch-base_debug_debugger_posix_cc new file mode 100644 index 0000000..ad4ffd9 --- /dev/null +++ b/www/chromium/patches/patch-base_debug_debugger_posix_cc | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | Index: base/debug/debugger_posix.cc | ||
| 2 | --- base/debug/debugger_posix.cc.orig | ||
| 3 | +++ base/debug/debugger_posix.cc | ||
| 4 | @@ -36,6 +36,10 @@ | ||
| 5 | #include <sys/sysctl.h> | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#include <sys/proc.h> | ||
| 10 | +#endif | ||
| 11 | + | ||
| 12 | #if BUILDFLAG(IS_FREEBSD) | ||
| 13 | #include <sys/user.h> | ||
| 14 | #endif | ||
| 15 | @@ -96,32 +100,51 @@ bool BeingDebugged() { | ||
| 16 | |||
| 17 | // Caution: struct kinfo_proc is marked __APPLE_API_UNSTABLE. The source and | ||
| 18 | // binary interfaces may change. | ||
| 19 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 20 | + struct kinfo_proc *info; | ||
| 21 | + size_t info_size; | ||
| 22 | +#else | ||
| 23 | struct kinfo_proc info; | ||
| 24 | size_t info_size = sizeof(info); | ||
| 25 | +#endif | ||
| 26 | |||
| 27 | #if BUILDFLAG(IS_OPENBSD) | ||
| 28 | if (sysctl(mib, base::size(mib), NULL, &info_size, NULL, 0) < 0) | ||
| 29 | return -1; | ||
| 30 | |||
| 31 | mib[5] = (info_size / sizeof(struct kinfo_proc)); | ||
| 32 | + if ((info = reinterpret_cast<kinfo_proc*>(malloc(info_size))) == NULL) { | ||
| 33 | + is_set = true; | ||
| 34 | + being_debugged = false; | ||
| 35 | + return being_debugged; | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + int sysctl_result = sysctl(mib, base::size(mib), info, &info_size, NULL, 0); | ||
| 39 | #endif | ||
| 40 | |||
| 41 | +#if !BUILDFLAG(IS_OPENBSD) | ||
| 42 | int sysctl_result = sysctl(mib, base::size(mib), &info, &info_size, NULL, 0); | ||
| 43 | +#endif | ||
| 44 | DCHECK_EQ(sysctl_result, 0); | ||
| 45 | if (sysctl_result != 0) { | ||
| 46 | is_set = true; | ||
| 47 | being_debugged = false; | ||
| 48 | - return being_debugged; | ||
| 49 | + goto out; | ||
| 50 | } | ||
| 51 | |||
| 52 | // This process is being debugged if the P_TRACED flag is set. | ||
| 53 | is_set = true; | ||
| 54 | #if BUILDFLAG(IS_FREEBSD) | ||
| 55 | being_debugged = (info.ki_flag & P_TRACED) != 0; | ||
| 56 | -#elif BUILDFLAG(IS_BSD) | ||
| 57 | - being_debugged = (info.p_flag & P_TRACED) != 0; | ||
| 58 | +#elif BUILDFLAG(IS_OPENBSD) | ||
| 59 | + being_debugged = (info->p_psflags & PS_TRACED) != 0; | ||
| 60 | #else | ||
| 61 | being_debugged = (info.kp_proc.p_flag & P_TRACED) != 0; | ||
| 62 | +#endif | ||
| 63 | + | ||
| 64 | +out: | ||
| 65 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 66 | + free(info); | ||
| 67 | #endif | ||
| 68 | return being_debugged; | ||
| 69 | } | ||
diff --git a/www/chromium/patches/patch-base_debug_elf_reader_cc b/www/chromium/patches/patch-base_debug_elf_reader_cc new file mode 100644 index 0000000..5be4d51 --- /dev/null +++ b/www/chromium/patches/patch-base_debug_elf_reader_cc | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Index: base/debug/elf_reader.cc | ||
| 2 | --- base/debug/elf_reader.cc.orig | ||
| 3 | +++ base/debug/elf_reader.cc | ||
| 4 | @@ -76,6 +76,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base, | ||
| 5 | bool found = false; | ||
| 6 | while (current_section < section_end) { | ||
| 7 | current_note = reinterpret_cast<const Nhdr*>(current_section); | ||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | if (current_note->n_type == NT_GNU_BUILD_ID) { | ||
| 10 | StringPiece note_name(current_section + sizeof(Nhdr), | ||
| 11 | current_note->n_namesz); | ||
| 12 | @@ -85,6 +86,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base, | ||
| 13 | break; | ||
| 14 | } | ||
| 15 | } | ||
| 16 | +#endif | ||
| 17 | |||
| 18 | size_t section_size = bits::AlignUp(current_note->n_namesz, 4) + | ||
| 19 | bits::AlignUp(current_note->n_descsz, 4) + | ||
diff --git a/www/chromium/patches/patch-base_debug_proc_maps_linux_cc b/www/chromium/patches/patch-base_debug_proc_maps_linux_cc new file mode 100644 index 0000000..f3e4254 --- /dev/null +++ b/www/chromium/patches/patch-base_debug_proc_maps_linux_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/debug/proc_maps_linux.cc | ||
| 2 | --- base/debug/proc_maps_linux.cc.orig | ||
| 3 | +++ base/debug/proc_maps_linux.cc | ||
| 4 | @@ -13,7 +13,7 @@ | ||
| 5 | #include "base/strings/string_split.h" | ||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <inttypes.h> | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-base_debug_stack_trace_posix_cc b/www/chromium/patches/patch-base_debug_stack_trace_posix_cc new file mode 100644 index 0000000..d90d3f7 --- /dev/null +++ b/www/chromium/patches/patch-base_debug_stack_trace_posix_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: base/debug/stack_trace_posix.cc | ||
| 2 | --- base/debug/stack_trace_posix.cc.orig | ||
| 3 | +++ base/debug/stack_trace_posix.cc | ||
| 4 | @@ -38,7 +38,7 @@ | ||
| 5 | #include <AvailabilityMacros.h> | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/debug/proc_maps_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -695,6 +695,9 @@ class SandboxSymbolizeHelper { | ||
| 14 | // for the modules that are loaded in the current process. | ||
| 15 | // Returns true on success. | ||
| 16 | bool CacheMemoryRegions() { | ||
| 17 | +#if BUILDFLAG(IS_BSD) | ||
| 18 | + return false; | ||
| 19 | +#else | ||
| 20 | // Reads /proc/self/maps. | ||
| 21 | std::string contents; | ||
| 22 | if (!ReadProcMaps(&contents)) { | ||
| 23 | @@ -712,6 +715,7 @@ class SandboxSymbolizeHelper { | ||
| 24 | |||
| 25 | is_initialized_ = true; | ||
| 26 | return true; | ||
| 27 | +#endif | ||
| 28 | } | ||
| 29 | |||
| 30 | // Opens all object files and caches their file descriptors. | ||
| 31 | @@ -868,7 +872,7 @@ size_t CollectStackTrace(void** trace, size_t count) { | ||
| 32 | // If we do not have unwind tables, then try tracing using frame pointers. | ||
| 33 | return base::debug::TraceStackFramePointers(const_cast<const void**>(trace), | ||
| 34 | count, 0); | ||
| 35 | -#elif !defined(__UCLIBC__) && !defined(_AIX) | ||
| 36 | +#elif !defined(__UCLIBC__) && !defined(_AIX) && !BUILDFLAG(IS_BSD) | ||
| 37 | // Though the backtrace API man page does not list any possible negative | ||
| 38 | // return values, we take no chance. | ||
| 39 | return base::saturated_cast<size_t>(backtrace(trace, count)); | ||
diff --git a/www/chromium/patches/patch-base_files_file_path_watcher_bsd_cc b/www/chromium/patches/patch-base_files_file_path_watcher_bsd_cc new file mode 100644 index 0000000..a31d16f --- /dev/null +++ b/www/chromium/patches/patch-base_files_file_path_watcher_bsd_cc | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | Index: base/files/file_path_watcher_bsd.cc | ||
| 2 | --- base/files/file_path_watcher_bsd.cc.orig | ||
| 3 | +++ base/files/file_path_watcher_bsd.cc | ||
| 4 | @@ -0,0 +1,54 @@ | ||
| 5 | +// Copyright 2021 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#include <memory> | ||
| 10 | + | ||
| 11 | +#include "base/files/file_path_watcher.h" | ||
| 12 | +#include "base/files/file_path_watcher_kqueue.h" | ||
| 13 | +#include "base/memory/ptr_util.h" | ||
| 14 | +#include "build/build_config.h" | ||
| 15 | + | ||
| 16 | +namespace base { | ||
| 17 | + | ||
| 18 | +namespace { | ||
| 19 | + | ||
| 20 | +class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { | ||
| 21 | + public: | ||
| 22 | + FilePathWatcherImpl() = default; | ||
| 23 | + FilePathWatcherImpl(const FilePathWatcherImpl&) = delete; | ||
| 24 | + FilePathWatcherImpl& operator=(const FilePathWatcherImpl&) = delete; | ||
| 25 | + ~FilePathWatcherImpl() override = default; | ||
| 26 | + | ||
| 27 | + bool Watch(const FilePath& path, | ||
| 28 | + Type type, | ||
| 29 | + const FilePathWatcher::Callback& callback) override { | ||
| 30 | + DCHECK(!impl_.get()); | ||
| 31 | + if (type == Type::kRecursive) { | ||
| 32 | + if (!FilePathWatcher::RecursiveWatchAvailable()) | ||
| 33 | + return false; | ||
| 34 | + } else { | ||
| 35 | + impl_ = std::make_unique<FilePathWatcherKQueue>(); | ||
| 36 | + } | ||
| 37 | + DCHECK(impl_.get()); | ||
| 38 | + return impl_->Watch(path, type, callback); | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + void Cancel() override { | ||
| 42 | + if (impl_.get()) | ||
| 43 | + impl_->Cancel(); | ||
| 44 | + set_cancelled(); | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + private: | ||
| 48 | + std::unique_ptr<PlatformDelegate> impl_; | ||
| 49 | +}; | ||
| 50 | + | ||
| 51 | +} // namespace | ||
| 52 | + | ||
| 53 | +FilePathWatcher::FilePathWatcher() { | ||
| 54 | + sequence_checker_.DetachFromSequence(); | ||
| 55 | + impl_ = std::make_unique<FilePathWatcherImpl>(); | ||
| 56 | +} | ||
| 57 | + | ||
| 58 | +} // namespace base | ||
diff --git a/www/chromium/patches/patch-base_files_file_path_watcher_kqueue_h b/www/chromium/patches/patch-base_files_file_path_watcher_kqueue_h new file mode 100644 index 0000000..51e7a56 --- /dev/null +++ b/www/chromium/patches/patch-base_files_file_path_watcher_kqueue_h | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: base/files/file_path_watcher_kqueue.h | ||
| 2 | --- base/files/file_path_watcher_kqueue.h.orig | ||
| 3 | +++ base/files/file_path_watcher_kqueue.h | ||
| 4 | @@ -5,6 +5,7 @@ | ||
| 5 | #ifndef BASE_FILES_FILE_PATH_WATCHER_KQUEUE_H_ | ||
| 6 | #define BASE_FILES_FILE_PATH_WATCHER_KQUEUE_H_ | ||
| 7 | |||
| 8 | +#include <sys/time.h> | ||
| 9 | #include <sys/event.h> | ||
| 10 | |||
| 11 | #include <memory> | ||
diff --git a/www/chromium/patches/patch-base_files_file_path_watcher_unittest_cc b/www/chromium/patches/patch-base_files_file_path_watcher_unittest_cc new file mode 100644 index 0000000..7b439a8 --- /dev/null +++ b/www/chromium/patches/patch-base_files_file_path_watcher_unittest_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: base/files/file_path_watcher_unittest.cc | ||
| 2 | --- base/files/file_path_watcher_unittest.cc.orig | ||
| 3 | +++ base/files/file_path_watcher_unittest.cc | ||
| 4 | @@ -450,7 +450,7 @@ TEST_F(FilePathWatcherTest, WatchDirectory) { | ||
| 5 | VLOG(1) << "Waiting for file1 creation"; | ||
| 6 | ASSERT_TRUE(WaitForEvents()); | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_APPLE) | ||
| 9 | +#if !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) | ||
| 10 | // Mac implementation does not detect files modified in a directory. | ||
| 11 | ASSERT_TRUE(WriteFile(file1, "content v2")); | ||
| 12 | VLOG(1) << "Waiting for file1 modification"; | ||
| 13 | @@ -1038,7 +1038,7 @@ enum Permission { | ||
| 14 | Execute | ||
| 15 | }; | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_APPLE) | ||
| 18 | +#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) | ||
| 19 | bool ChangeFilePermissions(const FilePath& path, Permission perm, bool allow) { | ||
| 20 | struct stat stat_buf; | ||
| 21 | |||
| 22 | @@ -1069,7 +1069,7 @@ bool ChangeFilePermissions(const FilePath& path, Permi | ||
| 23 | } | ||
| 24 | #endif // BUILDFLAG(IS_APPLE) | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_APPLE) | ||
| 27 | +#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) | ||
| 28 | // Linux implementation of FilePathWatcher doesn't catch attribute changes. | ||
| 29 | // http://crbug.com/78043 | ||
| 30 | // Windows implementation of FilePathWatcher catches attribute changes that | ||
diff --git a/www/chromium/patches/patch-base_files_file_util_posix_cc b/www/chromium/patches/patch-base_files_file_util_posix_cc new file mode 100644 index 0000000..1631cb3 --- /dev/null +++ b/www/chromium/patches/patch-base_files_file_util_posix_cc | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | Index: base/files/file_util_posix.cc | ||
| 2 | --- base/files/file_util_posix.cc.orig | ||
| 3 | +++ base/files/file_util_posix.cc | ||
| 4 | @@ -694,32 +694,34 @@ bool CreateDirectoryAndGetError(const FilePath& full_p | ||
| 5 | File::Error* error) { | ||
| 6 | ScopedBlockingCall scoped_blocking_call( | ||
| 7 | FROM_HERE, BlockingType::MAY_BLOCK); // For call to mkdir(). | ||
| 8 | + const FilePath kFileSystemRoot("/"); | ||
| 9 | std::vector<FilePath> subpaths; | ||
| 10 | |||
| 11 | // Collect a list of all parent directories. | ||
| 12 | FilePath last_path = full_path; | ||
| 13 | - subpaths.push_back(full_path); | ||
| 14 | + if (full_path != kFileSystemRoot) | ||
| 15 | + subpaths.push_back(full_path); | ||
| 16 | for (FilePath path = full_path.DirName(); | ||
| 17 | - path.value() != last_path.value(); path = path.DirName()) { | ||
| 18 | + (path.value() != last_path.value() && | ||
| 19 | + (path != kFileSystemRoot)); path = path.DirName()) { | ||
| 20 | subpaths.push_back(path); | ||
| 21 | last_path = path; | ||
| 22 | } | ||
| 23 | |||
| 24 | // Iterate through the parents and create the missing ones. | ||
| 25 | for (auto i = subpaths.rbegin(); i != subpaths.rend(); ++i) { | ||
| 26 | - if (DirectoryExists(*i)) | ||
| 27 | - continue; | ||
| 28 | - if (mkdir(i->value().c_str(), 0700) == 0) | ||
| 29 | - continue; | ||
| 30 | - // Mkdir failed, but it might have failed with EEXIST, or some other error | ||
| 31 | - // due to the directory appearing out of thin air. This can occur if | ||
| 32 | - // two processes are trying to create the same file system tree at the same | ||
| 33 | - // time. Check to see if it exists and make sure it is a directory. | ||
| 34 | - int saved_errno = errno; | ||
| 35 | - if (!DirectoryExists(*i)) { | ||
| 36 | - if (error) | ||
| 37 | - *error = File::OSErrorToFileError(saved_errno); | ||
| 38 | - return false; | ||
| 39 | + if (!PathExists(*i)) { | ||
| 40 | + if ((mkdir(i->value().c_str(), 0700) == -1) && | ||
| 41 | + ((full_path != *i) ? (errno != ENOENT) : (-1))) { | ||
| 42 | + int saved_errno = errno; | ||
| 43 | + if (error) | ||
| 44 | + *error = File::OSErrorToFileError(saved_errno); | ||
| 45 | + return false; | ||
| 46 | + } | ||
| 47 | + } else if (!DirectoryExists(*i)) { | ||
| 48 | + if (error) | ||
| 49 | + *error = File::OSErrorToFileError(ENOTDIR); | ||
| 50 | + return false; | ||
| 51 | } | ||
| 52 | } | ||
| 53 | return true; | ||
diff --git a/www/chromium/patches/patch-base_files_file_util_unittest_cc b/www/chromium/patches/patch-base_files_file_util_unittest_cc new file mode 100644 index 0000000..b0eb087 --- /dev/null +++ b/www/chromium/patches/patch-base_files_file_util_unittest_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: base/files/file_util_unittest.cc | ||
| 2 | --- base/files/file_util_unittest.cc.orig | ||
| 3 | +++ base/files/file_util_unittest.cc | ||
| 4 | @@ -3524,7 +3524,7 @@ TEST_F(FileUtilTest, ReadFileToStringWithNamedPipe) { | ||
| 5 | } | ||
| 6 | #endif // BUILDFLAG(IS_WIN) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE) | ||
| 9 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) | ||
| 10 | TEST_F(FileUtilTest, ReadFileToStringWithProcFileSystem) { | ||
| 11 | FilePath file_path("/proc/cpuinfo"); | ||
| 12 | std::string data = "temp"; | ||
| 13 | @@ -4240,7 +4240,7 @@ TEST(FileUtilMultiThreadedTest, MultiThreadedTempFiles | ||
| 14 | NULL); | ||
| 15 | #else | ||
| 16 | size_t bytes_written = | ||
| 17 | - ::write(::fileno(output_file.get()), content.c_str(), content.length()); | ||
| 18 | + ::write(fileno(output_file.get()), content.c_str(), content.length()); | ||
| 19 | #endif | ||
| 20 | EXPECT_EQ(content.length(), bytes_written); | ||
| 21 | ::fflush(output_file.get()); | ||
diff --git a/www/chromium/patches/patch-base_files_important_file_writer_cleaner_cc b/www/chromium/patches/patch-base_files_important_file_writer_cleaner_cc new file mode 100644 index 0000000..02a4b5c --- /dev/null +++ b/www/chromium/patches/patch-base_files_important_file_writer_cleaner_cc | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: base/files/important_file_writer_cleaner.cc | ||
| 2 | --- base/files/important_file_writer_cleaner.cc.orig | ||
| 3 | +++ base/files/important_file_writer_cleaner.cc | ||
| 4 | @@ -25,7 +25,8 @@ namespace base { | ||
| 5 | namespace { | ||
| 6 | |||
| 7 | base::Time GetUpperBoundTime() { | ||
| 8 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | +// needed because of .CreationTime() pledge | ||
| 10 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 11 | // If process creation time is not available then use instance creation | ||
| 12 | // time as the upper-bound for old files. Modification times may be | ||
| 13 | // rounded-down to coarse-grained increments, e.g. FAT has 2s granularity, | ||
diff --git a/www/chromium/patches/patch-base_files_scoped_file_cc b/www/chromium/patches/patch-base_files_scoped_file_cc new file mode 100644 index 0000000..626c88c --- /dev/null +++ b/www/chromium/patches/patch-base_files_scoped_file_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/files/scoped_file.cc | ||
| 2 | --- base/files/scoped_file.cc.orig | ||
| 3 | +++ base/files/scoped_file.cc | ||
| 4 | @@ -31,7 +31,7 @@ void ScopedFDCloseTraits::Free(int fd) { | ||
| 5 | int ret = IGNORE_EINTR(close(fd)); | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_APPLE) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_ANDROID) | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | // NB: Some file descriptors can return errors from close() e.g. network | ||
| 11 | // filesystems such as NFS and Linux input devices. On Linux, macOS, and | ||
| 12 | // Fuchsia's POSIX layer, errors from close other than EBADF do not indicate | ||
diff --git a/www/chromium/patches/patch-base_i18n_icu_util_cc b/www/chromium/patches/patch-base_i18n_icu_util_cc new file mode 100644 index 0000000..c690e10 --- /dev/null +++ b/www/chromium/patches/patch-base_i18n_icu_util_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: base/i18n/icu_util.cc | ||
| 2 | --- base/i18n/icu_util.cc.orig | ||
| 3 | +++ base/i18n/icu_util.cc | ||
| 4 | @@ -52,7 +52,7 @@ | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 8 | - ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ | ||
| 9 | + ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && \ | ||
| 10 | !BUILDFLAG(IS_CHROMECAST)) | ||
| 11 | #include "third_party/icu/source/i18n/unicode/timezone.h" | ||
| 12 | #endif | ||
| 13 | @@ -346,7 +346,7 @@ void InitializeIcuTimeZone() { | ||
| 14 | FuchsiaIntlProfileWatcher::GetPrimaryTimeZoneIdForIcuInitialization(); | ||
| 15 | icu::TimeZone::adoptDefault( | ||
| 16 | icu::TimeZone::createTimeZone(icu::UnicodeString::fromUTF8(zone_id))); | ||
| 17 | -#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ | ||
| 18 | +#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && \ | ||
| 19 | !BUILDFLAG(IS_CHROMECAST) | ||
| 20 | // To respond to the time zone change properly, the default time zone | ||
| 21 | // cache in ICU has to be populated on starting up. | ||
diff --git a/www/chromium/patches/patch-base_linux_util_cc b/www/chromium/patches/patch-base_linux_util_cc new file mode 100644 index 0000000..0559632 --- /dev/null +++ b/www/chromium/patches/patch-base_linux_util_cc | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | Index: base/linux_util.cc | ||
| 2 | --- base/linux_util.cc.orig | ||
| 3 | +++ base/linux_util.cc | ||
| 4 | @@ -15,6 +15,7 @@ | ||
| 5 | |||
| 6 | #include <iomanip> | ||
| 7 | #include <memory> | ||
| 8 | +#include <sstream> | ||
| 9 | |||
| 10 | #include "base/files/dir_reader_posix.h" | ||
| 11 | #include "base/files/file_util.h" | ||
| 12 | @@ -134,6 +135,9 @@ void SetLinuxDistro(const std::string& distro) { | ||
| 13 | } | ||
| 14 | |||
| 15 | bool GetThreadsForProcess(pid_t pid, std::vector<pid_t>* tids) { | ||
| 16 | +#if defined(OS_BSD) | ||
| 17 | + return false; | ||
| 18 | +#else | ||
| 19 | // 25 > strlen("/proc//task") + strlen(std::to_string(INT_MAX)) + 1 = 22 | ||
| 20 | char buf[25]; | ||
| 21 | strings::SafeSPrintf(buf, "/proc/%d/task", pid); | ||
| 22 | @@ -153,6 +157,7 @@ bool GetThreadsForProcess(pid_t pid, std::vector<pid_t | ||
| 23 | } | ||
| 24 | |||
| 25 | return true; | ||
| 26 | +#endif | ||
| 27 | } | ||
| 28 | |||
| 29 | pid_t FindThreadIDWithSyscall(pid_t pid, const std::string& expected_data, | ||
diff --git a/www/chromium/patches/patch-base_logging_unittest_cc b/www/chromium/patches/patch-base_logging_unittest_cc new file mode 100644 index 0000000..afe025d --- /dev/null +++ b/www/chromium/patches/patch-base_logging_unittest_cc | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Index: base/logging_unittest.cc | ||
| 2 | --- base/logging_unittest.cc.orig | ||
| 3 | +++ base/logging_unittest.cc | ||
| 4 | @@ -32,7 +32,7 @@ | ||
| 5 | #include "base/posix/eintr_wrapper.h" | ||
| 6 | #endif // BUILDFLAG(IS_POSIX) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FREEBSD) | ||
| 10 | #include <ucontext.h> | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -552,14 +552,18 @@ void CheckCrashTestSighandler(int, siginfo_t* info, vo | ||
| 14 | // need the arch-specific boilerplate below, which is inspired by breakpad. | ||
| 15 | // At the same time, on OSX, ucontext.h is deprecated but si_addr works fine. | ||
| 16 | uintptr_t crash_addr = 0; | ||
| 17 | -#if BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FREEBSD) | ||
| 19 | crash_addr = reinterpret_cast<uintptr_t>(info->si_addr); | ||
| 20 | #else // OS_* | ||
| 21 | ucontext_t* context = reinterpret_cast<ucontext_t*>(context_ptr); | ||
| 22 | #if defined(ARCH_CPU_X86) | ||
| 23 | crash_addr = static_cast<uintptr_t>(context->uc_mcontext.gregs[REG_EIP]); | ||
| 24 | #elif defined(ARCH_CPU_X86_64) | ||
| 25 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 26 | + crash_addr = static_cast<uintptr_t>(context->sc_rip); | ||
| 27 | +#else | ||
| 28 | crash_addr = static_cast<uintptr_t>(context->uc_mcontext.gregs[REG_RIP]); | ||
| 29 | +#endif | ||
| 30 | #elif defined(ARCH_CPU_ARMEL) | ||
| 31 | crash_addr = static_cast<uintptr_t>(context->uc_mcontext.arm_pc); | ||
| 32 | #elif defined(ARCH_CPU_ARM64) | ||
diff --git a/www/chromium/patches/patch-base_memory_discardable_memory_cc b/www/chromium/patches/patch-base_memory_discardable_memory_cc new file mode 100644 index 0000000..9b7da38 --- /dev/null +++ b/www/chromium/patches/patch-base_memory_discardable_memory_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: base/memory/discardable_memory.cc | ||
| 2 | --- base/memory/discardable_memory.cc.orig | ||
| 3 | +++ base/memory/discardable_memory.cc | ||
| 4 | @@ -24,7 +24,7 @@ const base::Feature kMadvFreeDiscardableMemory{ | ||
| 5 | "MadvFreeDiscardableMemory", base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 6 | #endif // BUILDFLAG(IS_POSIX) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | const base::Feature kDiscardableMemoryBackingTrial{ | ||
| 11 | "DiscardableMemoryBackingTrial", base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 12 | |||
| 13 | @@ -49,7 +49,7 @@ const base::FeatureParam<DiscardableMemoryTrialGroup> | ||
| 14 | |||
| 15 | namespace { | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | |||
| 20 | DiscardableMemoryBacking GetBackingForFieldTrial() { | ||
| 21 | DiscardableMemoryTrialGroup trial_group = | ||
| 22 | @@ -68,7 +68,7 @@ DiscardableMemoryBacking GetBackingForFieldTrial() { | ||
| 23 | |||
| 24 | } // namespace | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | |||
| 29 | // Probe capabilities of this device to determine whether we should participate | ||
| 30 | // in the discardable memory backing trial. | ||
| 31 | @@ -98,7 +98,7 @@ DiscardableMemory::DiscardableMemory() = default; | ||
| 32 | DiscardableMemory::~DiscardableMemory() = default; | ||
| 33 | |||
| 34 | DiscardableMemoryBacking GetDiscardableMemoryBacking() { | ||
| 35 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | if (DiscardableMemoryBackingFieldTrialIsEnabled()) { | ||
| 38 | return GetBackingForFieldTrial(); | ||
| 39 | } | ||
diff --git a/www/chromium/patches/patch-base_memory_discardable_memory_internal_h b/www/chromium/patches/patch-base_memory_discardable_memory_internal_h new file mode 100644 index 0000000..3864790 --- /dev/null +++ b/www/chromium/patches/patch-base_memory_discardable_memory_internal_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/memory/discardable_memory_internal.h | ||
| 2 | --- base/memory/discardable_memory_internal.h.orig | ||
| 3 | +++ base/memory/discardable_memory_internal.h | ||
| 4 | @@ -10,7 +10,7 @@ | ||
| 5 | #include "base/metrics/field_trial_params.h" | ||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | namespace base { | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-base_memory_madv_free_discardable_memory_posix_cc b/www/chromium/patches/patch-base_memory_madv_free_discardable_memory_posix_cc new file mode 100644 index 0000000..9427b68 --- /dev/null +++ b/www/chromium/patches/patch-base_memory_madv_free_discardable_memory_posix_cc | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Index: base/memory/madv_free_discardable_memory_posix.cc | ||
| 2 | --- base/memory/madv_free_discardable_memory_posix.cc.orig | ||
| 3 | +++ base/memory/madv_free_discardable_memory_posix.cc | ||
| 4 | @@ -294,6 +294,10 @@ void MadvFreeDiscardableMemoryPosix::SetKeepMemoryForT | ||
| 5 | |||
| 6 | bool MadvFreeDiscardableMemoryPosix::IsResident() const { | ||
| 7 | DFAKE_SCOPED_RECURSIVE_LOCK(thread_collision_warner_); | ||
| 8 | +// XXX mincore | ||
| 9 | +#if BUILDFLAG(IS_BSD) | ||
| 10 | + return false; | ||
| 11 | +#else | ||
| 12 | #if BUILDFLAG(IS_APPLE) | ||
| 13 | std::vector<char> vec(allocated_pages_); | ||
| 14 | #else | ||
| 15 | @@ -309,6 +313,7 @@ bool MadvFreeDiscardableMemoryPosix::IsResident() cons | ||
| 16 | return false; | ||
| 17 | } | ||
| 18 | return true; | ||
| 19 | +#endif | ||
| 20 | } | ||
| 21 | |||
| 22 | bool MadvFreeDiscardableMemoryPosix::IsDiscarded() const { | ||
diff --git a/www/chromium/patches/patch-base_memory_platform_shared_memory_region_h b/www/chromium/patches/patch-base_memory_platform_shared_memory_region_h new file mode 100644 index 0000000..c75ce98 --- /dev/null +++ b/www/chromium/patches/patch-base_memory_platform_shared_memory_region_h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: base/memory/platform_shared_memory_region.h | ||
| 2 | --- base/memory/platform_shared_memory_region.h.orig | ||
| 3 | +++ base/memory/platform_shared_memory_region.h | ||
| 4 | @@ -23,7 +23,7 @@ | ||
| 5 | #include "base/files/scoped_file.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | namespace content { | ||
| 11 | class SandboxIPCHandler; | ||
| 12 | } | ||
| 13 | @@ -116,7 +116,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { | ||
| 14 | kMaxValue = GET_SHMEM_TEMP_DIR_FAILURE | ||
| 15 | }; | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Structure to limit access to executable region creation. | ||
| 20 | struct ExecutableRegion { | ||
| 21 | private: | ||
| 22 | @@ -263,7 +263,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { | ||
| 23 | CheckPlatformHandlePermissionsCorrespondToMode); | ||
| 24 | static PlatformSharedMemoryRegion Create(Mode mode, | ||
| 25 | size_t size | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | , | ||
| 29 | bool executable = false | ||
| 30 | #endif | ||
diff --git a/www/chromium/patches/patch-base_memory_platform_shared_memory_region_posix_cc b/www/chromium/patches/patch-base_memory_platform_shared_memory_region_posix_cc new file mode 100644 index 0000000..bd334f1 --- /dev/null +++ b/www/chromium/patches/patch-base_memory_platform_shared_memory_region_posix_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: base/memory/platform_shared_memory_region_posix.cc | ||
| 2 | --- base/memory/platform_shared_memory_region_posix.cc.orig | ||
| 3 | +++ base/memory/platform_shared_memory_region_posix.cc | ||
| 4 | @@ -70,7 +70,7 @@ FDPair ScopedFDPair::get() const { | ||
| 5 | return {fd.get(), readonly_fd.get()}; | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // static | ||
| 11 | ScopedFD PlatformSharedMemoryRegion::ExecutableRegion::CreateFD(size_t size) { | ||
| 12 | PlatformSharedMemoryRegion region = | ||
| 13 | @@ -204,7 +204,7 @@ bool PlatformSharedMemoryRegion::MapAtInternal(off_t o | ||
| 14 | // static | ||
| 15 | PlatformSharedMemoryRegion PlatformSharedMemoryRegion::Create(Mode mode, | ||
| 16 | size_t size | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | , | ||
| 20 | bool executable | ||
| 21 | #endif | ||
| 22 | @@ -233,7 +233,7 @@ PlatformSharedMemoryRegion PlatformSharedMemoryRegion: | ||
| 23 | // flag. | ||
| 24 | FilePath directory; | ||
| 25 | if (!GetShmemTempDir( | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | executable, | ||
| 29 | #else | ||
| 30 | false /* executable */, | ||
diff --git a/www/chromium/patches/patch-base_message_loop_message_pump_glib_cc b/www/chromium/patches/patch-base_message_loop_message_pump_glib_cc new file mode 100644 index 0000000..a9f1e85 --- /dev/null +++ b/www/chromium/patches/patch-base_message_loop_message_pump_glib_cc | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | Index: base/message_loop/message_pump_glib.cc | ||
| 2 | --- base/message_loop/message_pump_glib.cc.orig | ||
| 3 | +++ base/message_loop/message_pump_glib.cc | ||
| 4 | @@ -8,6 +8,11 @@ | ||
| 5 | #include <glib.h> | ||
| 6 | #include <math.h> | ||
| 7 | |||
| 8 | +#if BUILDFLAG(IS_BSD) | ||
| 9 | +#include <pthread.h> | ||
| 10 | +#include <pthread_np.h> | ||
| 11 | +#endif | ||
| 12 | + | ||
| 13 | #include "base/logging.h" | ||
| 14 | #include "base/notreached.h" | ||
| 15 | #include "base/numerics/safe_conversions.h" | ||
| 16 | @@ -50,9 +55,13 @@ int GetTimeIntervalMilliseconds(TimeTicks next_task_ti | ||
| 17 | } | ||
| 18 | |||
| 19 | bool RunningOnMainThread() { | ||
| 20 | +#if BUILDFLAG(IS_BSD) | ||
| 21 | + return pthread_main_np(); | ||
| 22 | +#else | ||
| 23 | auto pid = getpid(); | ||
| 24 | auto tid = PlatformThread::CurrentId(); | ||
| 25 | return pid > 0 && tid > 0 && pid == tid; | ||
| 26 | +#endif | ||
| 27 | } | ||
| 28 | |||
| 29 | // A brief refresher on GLib: | ||
diff --git a/www/chromium/patches/patch-base_native_library_posix_cc b/www/chromium/patches/patch-base_native_library_posix_cc new file mode 100644 index 0000000..5431b74 --- /dev/null +++ b/www/chromium/patches/patch-base_native_library_posix_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/native_library_posix.cc | ||
| 2 | --- base/native_library_posix.cc.orig | ||
| 3 | +++ base/native_library_posix.cc | ||
| 4 | @@ -32,7 +32,7 @@ NativeLibrary LoadNativeLibraryWithOptions(const FileP | ||
| 5 | // http://crbug.com/17943, http://crbug.com/17557, http://crbug.com/36892, | ||
| 6 | // and http://crbug.com/40794. | ||
| 7 | int flags = RTLD_LAZY; | ||
| 8 | -#if BUILDFLAG(IS_ANDROID) || !defined(RTLD_DEEPBIND) | ||
| 9 | +#if BUILDFLAG(IS_ANDROID) || !defined(RTLD_DEEPBIND) || BUILDFLAG(IS_BSD) | ||
| 10 | // Certain platforms don't define RTLD_DEEPBIND. Android dlopen() requires | ||
| 11 | // further investigation, as it might vary across versions. Crash here to | ||
| 12 | // warn developers that they're trying to rely on uncertain behavior. | ||
diff --git a/www/chromium/patches/patch-base_native_library_unittest_cc b/www/chromium/patches/patch-base_native_library_unittest_cc new file mode 100644 index 0000000..db3d2c3 --- /dev/null +++ b/www/chromium/patches/patch-base_native_library_unittest_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/native_library_unittest.cc | ||
| 2 | --- base/native_library_unittest.cc.orig | ||
| 3 | +++ base/native_library_unittest.cc | ||
| 4 | @@ -119,7 +119,7 @@ TEST(NativeLibraryTest, LoadLibrary) { | ||
| 5 | // versions with respect to symbol resolution scope. | ||
| 6 | // TSan and MSan error out on RTLD_DEEPBIND, https://crbug.com/705255 | ||
| 7 | #if !BUILDFLAG(IS_ANDROID) && !defined(THREAD_SANITIZER) && \ | ||
| 8 | - !defined(MEMORY_SANITIZER) | ||
| 9 | + !defined(MEMORY_SANITIZER) && !BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | // Verifies that the |prefer_own_symbols| option satisfies its guarantee that | ||
| 12 | // a loaded library will always prefer local symbol resolution before | ||
diff --git a/www/chromium/patches/patch-base_posix_can_lower_nice_to_cc b/www/chromium/patches/patch-base_posix_can_lower_nice_to_cc new file mode 100644 index 0000000..a5b5845 --- /dev/null +++ b/www/chromium/patches/patch-base_posix_can_lower_nice_to_cc | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: base/posix/can_lower_nice_to.cc | ||
| 2 | --- base/posix/can_lower_nice_to.cc.orig | ||
| 3 | +++ base/posix/can_lower_nice_to.cc | ||
| 4 | @@ -11,8 +11,12 @@ | ||
| 5 | |||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | +#if BUILDFLAG(IS_FREEBSD) | ||
| 9 | +#include <sys/param.h> | ||
| 10 | +#endif | ||
| 11 | + | ||
| 12 | // Not defined on AIX by default. | ||
| 13 | -#if BUILDFLAG(IS_AIX) | ||
| 14 | +#if BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 15 | #if defined(RLIMIT_NICE) | ||
| 16 | #error Assumption about OS_AIX is incorrect | ||
| 17 | #endif | ||
diff --git a/www/chromium/patches/patch-base_posix_unix_domain_socket_cc b/www/chromium/patches/patch-base_posix_unix_domain_socket_cc new file mode 100644 index 0000000..fc106de --- /dev/null +++ b/www/chromium/patches/patch-base_posix_unix_domain_socket_cc | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | Index: base/posix/unix_domain_socket.cc | ||
| 2 | --- base/posix/unix_domain_socket.cc.orig | ||
| 3 | +++ base/posix/unix_domain_socket.cc | ||
| 4 | @@ -50,7 +50,7 @@ bool CreateSocketPair(ScopedFD* one, ScopedFD* two) { | ||
| 5 | |||
| 6 | // static | ||
| 7 | bool UnixDomainSocket::EnableReceiveProcessId(int fd) { | ||
| 8 | -#if !BUILDFLAG(IS_APPLE) | ||
| 9 | +#if !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) | ||
| 10 | const int enable = 1; | ||
| 11 | return setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &enable, sizeof(enable)) == 0; | ||
| 12 | #else | ||
| 13 | @@ -140,7 +140,7 @@ ssize_t UnixDomainSocket::RecvMsgWithFlags(int fd, | ||
| 14 | |||
| 15 | const size_t kControlBufferSize = | ||
| 16 | CMSG_SPACE(sizeof(int) * kMaxFileDescriptors) | ||
| 17 | -#if !BUILDFLAG(IS_APPLE) | ||
| 18 | +#if !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) | ||
| 19 | // macOS does not support ucred. | ||
| 20 | // macOS supports xucred, but this structure is insufficient. | ||
| 21 | + CMSG_SPACE(sizeof(struct ucred)) | ||
| 22 | @@ -168,7 +168,7 @@ ssize_t UnixDomainSocket::RecvMsgWithFlags(int fd, | ||
| 23 | wire_fds = reinterpret_cast<int*>(CMSG_DATA(cmsg)); | ||
| 24 | wire_fds_len = payload_len / sizeof(int); | ||
| 25 | } | ||
| 26 | -#if !BUILDFLAG(IS_APPLE) | ||
| 27 | +#if !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) | ||
| 28 | // macOS does not support SCM_CREDENTIALS. | ||
| 29 | if (cmsg->cmsg_level == SOL_SOCKET && | ||
| 30 | cmsg->cmsg_type == SCM_CREDENTIALS) { | ||
| 31 | @@ -202,6 +202,9 @@ ssize_t UnixDomainSocket::RecvMsgWithFlags(int fd, | ||
| 32 | socklen_t pid_size = sizeof(pid); | ||
| 33 | if (getsockopt(fd, SOL_LOCAL, LOCAL_PEERPID, &pid, &pid_size) != 0) | ||
| 34 | pid = -1; | ||
| 35 | +#elif BUILDFLAG(IS_BSD) | ||
| 36 | + NOTIMPLEMENTED(); | ||
| 37 | + pid = -1; | ||
| 38 | #else | ||
| 39 | // |pid| will legitimately be -1 if we read EOF, so only DCHECK if we | ||
| 40 | // actually received a message. Unfortunately, Linux allows sending zero | ||
diff --git a/www/chromium/patches/patch-base_posix_unix_domain_socket_unittest_cc b/www/chromium/patches/patch-base_posix_unix_domain_socket_unittest_cc new file mode 100644 index 0000000..39cd9bd --- /dev/null +++ b/www/chromium/patches/patch-base_posix_unix_domain_socket_unittest_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/posix/unix_domain_socket_unittest.cc | ||
| 2 | --- base/posix/unix_domain_socket_unittest.cc.orig | ||
| 3 | +++ base/posix/unix_domain_socket_unittest.cc | ||
| 4 | @@ -10,6 +10,8 @@ | ||
| 5 | #include <sys/types.h> | ||
| 6 | #include <unistd.h> | ||
| 7 | |||
| 8 | +#include <signal.h> | ||
| 9 | + | ||
| 10 | #include "base/bind.h" | ||
| 11 | #include "base/callback_helpers.h" | ||
| 12 | #include "base/files/file_util.h" | ||
diff --git a/www/chromium/patches/patch-base_process_kill_h b/www/chromium/patches/patch-base_process_kill_h new file mode 100644 index 0000000..67a7b27 --- /dev/null +++ b/www/chromium/patches/patch-base_process_kill_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/process/kill.h | ||
| 2 | --- base/process/kill.h.orig | ||
| 3 | +++ base/process/kill.h | ||
| 4 | @@ -112,7 +112,7 @@ BASE_EXPORT TerminationStatus GetTerminationStatus(Pro | ||
| 5 | BASE_EXPORT TerminationStatus GetKnownDeadTerminationStatus( | ||
| 6 | ProcessHandle handle, int* exit_code); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Spawns a thread to wait asynchronously for the child |process| to exit | ||
| 11 | // and then reaps it. | ||
| 12 | BASE_EXPORT void EnsureProcessGetsReaped(Process process); | ||
diff --git a/www/chromium/patches/patch-base_process_kill_posix_cc b/www/chromium/patches/patch-base_process_kill_posix_cc new file mode 100644 index 0000000..c086144 --- /dev/null +++ b/www/chromium/patches/patch-base_process_kill_posix_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/process/kill_posix.cc | ||
| 2 | --- base/process/kill_posix.cc.orig | ||
| 3 | +++ base/process/kill_posix.cc | ||
| 4 | @@ -159,7 +159,7 @@ void EnsureProcessTerminated(Process process) { | ||
| 5 | 0, new BackgroundReaper(std::move(process), Seconds(2))); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | void EnsureProcessGetsReaped(Process process) { | ||
| 11 | DCHECK(!process.is_current()); | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-base_process_launch_h b/www/chromium/patches/patch-base_process_launch_h new file mode 100644 index 0000000..006dd17 --- /dev/null +++ b/www/chromium/patches/patch-base_process_launch_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/process/launch.h | ||
| 2 | --- base/process/launch.h.orig | ||
| 3 | +++ base/process/launch.h | ||
| 4 | @@ -195,7 +195,7 @@ struct BASE_EXPORT LaunchOptions { | ||
| 5 | bool clear_environment = false; | ||
| 6 | #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // If non-zero, start the process using clone(), using flags as provided. | ||
| 11 | // Unlike in clone, clone_flags may not contain a custom termination signal | ||
| 12 | // that is sent to the parent when the child dies. The termination signal will | ||
diff --git a/www/chromium/patches/patch-base_process_launch_posix_cc b/www/chromium/patches/patch-base_process_launch_posix_cc new file mode 100644 index 0000000..a0f05ab --- /dev/null +++ b/www/chromium/patches/patch-base_process_launch_posix_cc | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: base/process/launch_posix.cc | ||
| 2 | --- base/process/launch_posix.cc.orig | ||
| 3 | +++ base/process/launch_posix.cc | ||
| 4 | @@ -64,6 +64,9 @@ | ||
| 5 | #error "macOS should use launch_mac.cc" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if defined(OS_FREEBSD) | ||
| 9 | +#pragma weak environ | ||
| 10 | +#endif | ||
| 11 | extern char** environ; | ||
| 12 | |||
| 13 | namespace base { | ||
diff --git a/www/chromium/patches/patch-base_process_memory_cc b/www/chromium/patches/patch-base_process_memory_cc new file mode 100644 index 0000000..b69323e --- /dev/null +++ b/www/chromium/patches/patch-base_process_memory_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: base/process/memory.cc | ||
| 2 | --- base/process/memory.cc.orig | ||
| 3 | +++ base/process/memory.cc | ||
| 4 | @@ -65,14 +65,16 @@ NOINLINE void OnNoMemoryInternal(size_t size) { | ||
| 5 | |||
| 6 | } // namespace internal | ||
| 7 | |||
| 8 | +#if !BUILDFLAG(IS_BSD) | ||
| 9 | void TerminateBecauseOutOfMemory(size_t size) { | ||
| 10 | internal::OnNoMemoryInternal(size); | ||
| 11 | } | ||
| 12 | +#endif | ||
| 13 | |||
| 14 | // Defined in memory_mac.mm for macOS + use_allocator="none". In case of | ||
| 15 | // USE_PARTITION_ALLOC_AS_MALLOC, no need to route the call to the system | ||
| 16 | // default calloc of macOS. | ||
| 17 | -#if !BUILDFLAG(IS_APPLE) || BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC) | ||
| 18 | +#if (!BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD)) || BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC) | ||
| 19 | |||
| 20 | bool UncheckedCalloc(size_t num_items, size_t size, void** result) { | ||
| 21 | const size_t alloc_size = num_items * size; | ||
diff --git a/www/chromium/patches/patch-base_process_process_handle_cc b/www/chromium/patches/patch-base_process_process_handle_cc new file mode 100644 index 0000000..786e506 --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_handle_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/process/process_handle.cc | ||
| 2 | --- base/process/process_handle.cc.orig | ||
| 3 | +++ base/process/process_handle.cc | ||
| 4 | @@ -30,7 +30,7 @@ UniqueProcId GetUniqueIdForProcess() { | ||
| 5 | : UniqueProcId(GetCurrentProcId()); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_AIX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | void InitUniqueIdForProcessInPidNamespace(ProcessId pid_outside_of_namespace) { | ||
| 12 | DCHECK(pid_outside_of_namespace != kNullProcessId); | ||
diff --git a/www/chromium/patches/patch-base_process_process_handle_freebsd_cc b/www/chromium/patches/patch-base_process_process_handle_freebsd_cc new file mode 100644 index 0000000..44a2e47 --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_handle_freebsd_cc | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | Index: base/process/process_handle_freebsd.cc | ||
| 2 | --- base/process/process_handle_freebsd.cc.orig | ||
| 3 | +++ base/process/process_handle_freebsd.cc | ||
| 4 | @@ -12,15 +12,19 @@ | ||
| 5 | #include <unistd.h> | ||
| 6 | |||
| 7 | #include "base/cxx17_backports.h" | ||
| 8 | +#include "base/files/file_path.h" | ||
| 9 | |||
| 10 | namespace base { | ||
| 11 | |||
| 12 | ProcessId GetParentProcessId(ProcessHandle process) { | ||
| 13 | struct kinfo_proc info; | ||
| 14 | - size_t length; | ||
| 15 | + size_t length = sizeof(struct kinfo_proc); | ||
| 16 | int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process }; | ||
| 17 | |||
| 18 | if (sysctl(mib, base::size(mib), &info, &length, NULL, 0) < 0) | ||
| 19 | + return -1; | ||
| 20 | + | ||
| 21 | + if (length < sizeof(struct kinfo_proc)) | ||
| 22 | return -1; | ||
| 23 | |||
| 24 | return info.ki_ppid; | ||
diff --git a/www/chromium/patches/patch-base_process_process_handle_h b/www/chromium/patches/patch-base_process_process_handle_h new file mode 100644 index 0000000..eb86f99 --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_handle_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/process/process_handle.h | ||
| 2 | --- base/process/process_handle.h.orig | ||
| 3 | +++ base/process/process_handle.h | ||
| 4 | @@ -106,7 +106,7 @@ BASE_EXPORT ProcessId GetCurrentProcId(); | ||
| 5 | // processes may be reused. | ||
| 6 | BASE_EXPORT UniqueProcId GetUniqueIdForProcess(); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // When a process is started in a different PID namespace from the browser | ||
| 11 | // process, this function must be called with the process's PID in the browser's | ||
| 12 | // PID namespace in order to initialize its unique ID. Not thread safe. | ||
diff --git a/www/chromium/patches/patch-base_process_process_handle_openbsd_cc b/www/chromium/patches/patch-base_process_process_handle_openbsd_cc new file mode 100644 index 0000000..c9d9093 --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_handle_openbsd_cc | |||
| @@ -0,0 +1,90 @@ | |||
| 1 | Index: base/process/process_handle_openbsd.cc | ||
| 2 | --- base/process/process_handle_openbsd.cc.orig | ||
| 3 | +++ base/process/process_handle_openbsd.cc | ||
| 4 | @@ -3,8 +3,11 @@ | ||
| 5 | // found in the LICENSE file. | ||
| 6 | |||
| 7 | #include "base/process/process_handle.h" | ||
| 8 | +#include "base/files/file_util.h" | ||
| 9 | |||
| 10 | #include <stddef.h> | ||
| 11 | +#include <sys/param.h> | ||
| 12 | +#include <sys/proc.h> | ||
| 13 | #include <sys/sysctl.h> | ||
| 14 | #include <sys/types.h> | ||
| 15 | #include <unistd.h> | ||
| 16 | @@ -14,39 +17,59 @@ | ||
| 17 | namespace base { | ||
| 18 | |||
| 19 | ProcessId GetParentProcessId(ProcessHandle process) { | ||
| 20 | - struct kinfo_proc info; | ||
| 21 | + struct kinfo_proc *info; | ||
| 22 | size_t length; | ||
| 23 | + pid_t ppid; | ||
| 24 | int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process, | ||
| 25 | sizeof(struct kinfo_proc), 0 }; | ||
| 26 | |||
| 27 | if (sysctl(mib, base::size(mib), NULL, &length, NULL, 0) < 0) | ||
| 28 | return -1; | ||
| 29 | |||
| 30 | + info = (struct kinfo_proc *)malloc(length); | ||
| 31 | + | ||
| 32 | mib[5] = (length / sizeof(struct kinfo_proc)); | ||
| 33 | |||
| 34 | - if (sysctl(mib, base::size(mib), &info, &length, NULL, 0) < 0) | ||
| 35 | - return -1; | ||
| 36 | + if (sysctl(mib, base::size(mib), info, &length, NULL, 0) < 0) { | ||
| 37 | + ppid = -1; | ||
| 38 | + goto out; | ||
| 39 | + } | ||
| 40 | |||
| 41 | - return info.p_ppid; | ||
| 42 | + ppid = info->p_ppid; | ||
| 43 | + | ||
| 44 | +out: | ||
| 45 | + free(info); | ||
| 46 | + return ppid; | ||
| 47 | } | ||
| 48 | |||
| 49 | FilePath GetProcessExecutablePath(ProcessHandle process) { | ||
| 50 | - struct kinfo_proc kp; | ||
| 51 | - size_t len; | ||
| 52 | + struct kinfo_proc *info; | ||
| 53 | + size_t length; | ||
| 54 | + char *path = NULL; | ||
| 55 | int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process, | ||
| 56 | sizeof(struct kinfo_proc), 0 }; | ||
| 57 | |||
| 58 | - if (sysctl(mib, base::size(mib), NULL, &len, NULL, 0) == -1) | ||
| 59 | + if (sysctl(mib, base::size(mib), NULL, &length, NULL, 0) == -1) | ||
| 60 | return FilePath(); | ||
| 61 | - mib[5] = (len / sizeof(struct kinfo_proc)); | ||
| 62 | - if (sysctl(mib, base::size(mib), &kp, &len, NULL, 0) < 0) | ||
| 63 | - return FilePath(); | ||
| 64 | - if ((kp.p_flag & P_SYSTEM) != 0) | ||
| 65 | - return FilePath(); | ||
| 66 | - if (strcmp(kp.p_comm, "chrome") == 0) | ||
| 67 | - return FilePath(kp.p_comm); | ||
| 68 | |||
| 69 | - return FilePath(); | ||
| 70 | + info = (struct kinfo_proc *)malloc(length); | ||
| 71 | + | ||
| 72 | + mib[5] = (length / sizeof(struct kinfo_proc)); | ||
| 73 | + | ||
| 74 | + if (sysctl(mib, base::size(mib), info, &length, NULL, 0) < 0) | ||
| 75 | + goto out; | ||
| 76 | + | ||
| 77 | + if ((info->p_flag & P_SYSTEM) != 0) | ||
| 78 | + goto out; | ||
| 79 | + | ||
| 80 | + if (strcmp(info->p_comm, "chrome") == 0) { | ||
| 81 | + path = info->p_comm; | ||
| 82 | + goto out; | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | +out: | ||
| 86 | + free(info); | ||
| 87 | + return FilePath(path); | ||
| 88 | } | ||
| 89 | |||
| 90 | } // namespace base | ||
diff --git a/www/chromium/patches/patch-base_process_process_iterator_freebsd_cc b/www/chromium/patches/patch-base_process_process_iterator_freebsd_cc new file mode 100644 index 0000000..0a2b3cf --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_iterator_freebsd_cc | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | Index: base/process/process_iterator_freebsd.cc | ||
| 2 | --- base/process/process_iterator_freebsd.cc.orig | ||
| 3 | +++ base/process/process_iterator_freebsd.cc | ||
| 4 | @@ -21,7 +21,7 @@ ProcessIterator::ProcessIterator(const ProcessFilter* | ||
| 5 | : index_of_kinfo_proc_(), | ||
| 6 | filter_(filter) { | ||
| 7 | |||
| 8 | - int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, getuid() }; | ||
| 9 | + int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, (int) getuid() }; | ||
| 10 | |||
| 11 | bool done = false; | ||
| 12 | int try_num = 1; | ||
| 13 | @@ -40,7 +40,7 @@ ProcessIterator::ProcessIterator(const ProcessFilter* | ||
| 14 | num_of_kinfo_proc += 16; | ||
| 15 | kinfo_procs_.resize(num_of_kinfo_proc); | ||
| 16 | len = num_of_kinfo_proc * sizeof(struct kinfo_proc); | ||
| 17 | - if (sysctl(mib, base::size(mib), &kinfo_procs_[0], &len, NULL, 0) < 0) { | ||
| 18 | + if (sysctl(mib, base::size(mib), kinfo_procs_.data(), &len, NULL, 0) < 0) { | ||
| 19 | // If we get a mem error, it just means we need a bigger buffer, so | ||
| 20 | // loop around again. Anything else is a real error and give up. | ||
| 21 | if (errno != ENOMEM) { | ||
| 22 | @@ -50,7 +50,7 @@ ProcessIterator::ProcessIterator(const ProcessFilter* | ||
| 23 | } | ||
| 24 | } else { | ||
| 25 | // Got the list, just make sure we're sized exactly right | ||
| 26 | - size_t num_of_kinfo_proc = len / sizeof(struct kinfo_proc); | ||
| 27 | + num_of_kinfo_proc = len / sizeof(struct kinfo_proc); | ||
| 28 | kinfo_procs_.resize(num_of_kinfo_proc); | ||
| 29 | done = true; | ||
| 30 | } | ||
| 31 | @@ -72,18 +72,13 @@ bool ProcessIterator::CheckForNextProcess() { | ||
| 32 | for (; index_of_kinfo_proc_ < kinfo_procs_.size(); ++index_of_kinfo_proc_) { | ||
| 33 | size_t length; | ||
| 34 | struct kinfo_proc kinfo = kinfo_procs_[index_of_kinfo_proc_]; | ||
| 35 | - int mib[] = { CTL_KERN, KERN_PROC_ARGS, kinfo.ki_pid }; | ||
| 36 | + int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_ARGS, kinfo.ki_pid }; | ||
| 37 | |||
| 38 | if ((kinfo.ki_pid > 0) && (kinfo.ki_stat == SZOMB)) | ||
| 39 | continue; | ||
| 40 | |||
| 41 | - length = 0; | ||
| 42 | - if (sysctl(mib, base::size(mib), NULL, &length, NULL, 0) < 0) { | ||
| 43 | - LOG(ERROR) << "failed to figure out the buffer size for a command line"; | ||
| 44 | - continue; | ||
| 45 | - } | ||
| 46 | - | ||
| 47 | - data.resize(length); | ||
| 48 | + data.resize(ARG_MAX); | ||
| 49 | + length = ARG_MAX; | ||
| 50 | |||
| 51 | if (sysctl(mib, base::size(mib), &data[0], &length, NULL, 0) < 0) { | ||
| 52 | LOG(ERROR) << "failed to fetch a commandline"; | ||
diff --git a/www/chromium/patches/patch-base_process_process_iterator_openbsd_cc b/www/chromium/patches/patch-base_process_process_iterator_openbsd_cc new file mode 100644 index 0000000..20fd4c7 --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_iterator_openbsd_cc | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | Index: base/process/process_iterator_openbsd.cc | ||
| 2 | --- base/process/process_iterator_openbsd.cc.orig | ||
| 3 | +++ base/process/process_iterator_openbsd.cc | ||
| 4 | @@ -6,6 +6,9 @@ | ||
| 5 | |||
| 6 | #include <errno.h> | ||
| 7 | #include <stddef.h> | ||
| 8 | +#include <unistd.h> | ||
| 9 | +#include <sys/param.h> | ||
| 10 | +#include <sys/proc.h> | ||
| 11 | #include <sys/sysctl.h> | ||
| 12 | |||
| 13 | #include "base/cxx17_backports.h" | ||
| 14 | @@ -19,12 +22,13 @@ ProcessIterator::ProcessIterator(const ProcessFilter* | ||
| 15 | : index_of_kinfo_proc_(), | ||
| 16 | filter_(filter) { | ||
| 17 | |||
| 18 | - int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, getuid(), | ||
| 19 | + int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, static_cast<int>(getuid()), | ||
| 20 | sizeof(struct kinfo_proc), 0 }; | ||
| 21 | |||
| 22 | bool done = false; | ||
| 23 | int try_num = 1; | ||
| 24 | const int max_tries = 10; | ||
| 25 | + size_t num_of_kinfo_proc; | ||
| 26 | |||
| 27 | do { | ||
| 28 | size_t len = 0; | ||
| 29 | @@ -33,7 +37,7 @@ ProcessIterator::ProcessIterator(const ProcessFilter* | ||
| 30 | kinfo_procs_.resize(0); | ||
| 31 | done = true; | ||
| 32 | } else { | ||
| 33 | - size_t num_of_kinfo_proc = len / sizeof(struct kinfo_proc); | ||
| 34 | + num_of_kinfo_proc = len / sizeof(struct kinfo_proc); | ||
| 35 | // Leave some spare room for process table growth (more could show up | ||
| 36 | // between when we check and now) | ||
| 37 | num_of_kinfo_proc += 16; | ||
| 38 | @@ -49,7 +53,7 @@ ProcessIterator::ProcessIterator(const ProcessFilter* | ||
| 39 | } | ||
| 40 | } else { | ||
| 41 | // Got the list, just make sure we're sized exactly right | ||
| 42 | - size_t num_of_kinfo_proc = len / sizeof(struct kinfo_proc); | ||
| 43 | + num_of_kinfo_proc = len / sizeof(struct kinfo_proc); | ||
| 44 | kinfo_procs_.resize(num_of_kinfo_proc); | ||
| 45 | done = true; | ||
| 46 | } | ||
diff --git a/www/chromium/patches/patch-base_process_process_metrics_cc b/www/chromium/patches/patch-base_process_process_metrics_cc new file mode 100644 index 0000000..d6ed431 --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_metrics_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: base/process/process_metrics.cc | ||
| 2 | --- base/process/process_metrics.cc.orig | ||
| 3 | +++ base/process/process_metrics.cc | ||
| 4 | @@ -18,7 +18,7 @@ namespace base { | ||
| 5 | namespace { | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_AIX) | ||
| 9 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 10 | int CalculateEventsPerSecond(uint64_t event_count, | ||
| 11 | uint64_t* last_event_count, | ||
| 12 | base::TimeTicks* last_calculated) { | ||
| 13 | @@ -55,7 +55,7 @@ SystemMetrics SystemMetrics::Sample() { | ||
| 14 | SystemMetrics system_metrics; | ||
| 15 | |||
| 16 | system_metrics.committed_memory_ = GetSystemCommitCharge(); | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 19 | GetSystemMemoryInfo(&system_metrics.memory_info_); | ||
| 20 | GetVmStatInfo(&system_metrics.vmstat_info_); | ||
| 21 | GetSystemDiskInfo(&system_metrics.disk_info_); | ||
| 22 | @@ -74,7 +74,7 @@ Value SystemMetrics::ToValue() const { | ||
| 23 | Value res(Value::Type::DICTIONARY); | ||
| 24 | |||
| 25 | res.SetIntKey("committed_memory", static_cast<int>(committed_memory_)); | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 28 | Value meminfo = memory_info_.ToValue(); | ||
| 29 | Value vmstat = vmstat_info_.ToValue(); | ||
| 30 | meminfo.MergeDictionary(&vmstat); | ||
| 31 | @@ -100,7 +100,7 @@ std::unique_ptr<ProcessMetrics> ProcessMetrics::Create | ||
| 32 | #endif // !BUILDFLAG(IS_MAC) | ||
| 33 | } | ||
| 34 | |||
| 35 | -#if !BUILDFLAG(IS_FREEBSD) || !BUILDFLAG(IS_POSIX) | ||
| 36 | +#if !BUILDFLAG(IS_BSD) || !BUILDFLAG(IS_POSIX) | ||
| 37 | double ProcessMetrics::GetPlatformIndependentCPUUsage() { | ||
| 38 | TimeDelta cumulative_cpu = GetCumulativeCPUUsage(); | ||
| 39 | TimeTicks time = TimeTicks::Now(); | ||
| 40 | @@ -126,7 +126,7 @@ double ProcessMetrics::GetPlatformIndependentCPUUsage( | ||
| 41 | #endif | ||
| 42 | |||
| 43 | #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 44 | - BUILDFLAG(IS_AIX) | ||
| 45 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 46 | int ProcessMetrics::CalculateIdleWakeupsPerSecond( | ||
| 47 | uint64_t absolute_idle_wakeups) { | ||
| 48 | return CalculateEventsPerSecond(absolute_idle_wakeups, | ||
diff --git a/www/chromium/patches/patch-base_process_process_metrics_freebsd_cc b/www/chromium/patches/patch-base_process_process_metrics_freebsd_cc new file mode 100644 index 0000000..f812314 --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_metrics_freebsd_cc | |||
| @@ -0,0 +1,293 @@ | |||
| 1 | Index: base/process/process_metrics_freebsd.cc | ||
| 2 | --- base/process/process_metrics_freebsd.cc.orig | ||
| 3 | +++ base/process/process_metrics_freebsd.cc | ||
| 4 | @@ -3,21 +3,41 @@ | ||
| 5 | // found in the LICENSE file. | ||
| 6 | |||
| 7 | #include "base/process/process_metrics.h" | ||
| 8 | +#include "base/notreached.h" | ||
| 9 | |||
| 10 | #include <stddef.h> | ||
| 11 | +#include <sys/types.h> | ||
| 12 | #include <sys/sysctl.h> | ||
| 13 | #include <sys/user.h> | ||
| 14 | #include <unistd.h> | ||
| 15 | |||
| 16 | +#include <fcntl.h> /* O_RDONLY */ | ||
| 17 | +#include <kvm.h> | ||
| 18 | +#include <libutil.h> | ||
| 19 | + | ||
| 20 | #include "base/cxx17_backports.h" | ||
| 21 | #include "base/memory/ptr_util.h" | ||
| 22 | #include "base/process/process_metrics_iocounters.h" | ||
| 23 | +#include "base/values.h" | ||
| 24 | |||
| 25 | namespace base { | ||
| 26 | +namespace { | ||
| 27 | |||
| 28 | +int GetPageShift() { | ||
| 29 | + int pagesize = getpagesize(); | ||
| 30 | + int pageshift = 0; | ||
| 31 | + | ||
| 32 | + while (pagesize > 1) { | ||
| 33 | + pageshift++; | ||
| 34 | + pagesize >>= 1; | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + return pageshift; | ||
| 38 | +} | ||
| 39 | +} | ||
| 40 | + | ||
| 41 | ProcessMetrics::ProcessMetrics(ProcessHandle process) | ||
| 42 | - : process_(process), | ||
| 43 | - last_cpu_(0) {} | ||
| 44 | + : process_(process) {} | ||
| 45 | |||
| 46 | // static | ||
| 47 | std::unique_ptr<ProcessMetrics> ProcessMetrics::CreateProcessMetrics( | ||
| 48 | @@ -27,17 +47,18 @@ std::unique_ptr<ProcessMetrics> ProcessMetrics::Create | ||
| 49 | |||
| 50 | double ProcessMetrics::GetPlatformIndependentCPUUsage() { | ||
| 51 | struct kinfo_proc info; | ||
| 52 | - int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, process_}; | ||
| 53 | - size_t length = sizeof(info); | ||
| 54 | + size_t length = sizeof(struct kinfo_proc); | ||
| 55 | |||
| 56 | + int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, process_ }; | ||
| 57 | + | ||
| 58 | if (sysctl(mib, base::size(mib), &info, &length, NULL, 0) < 0) | ||
| 59 | - return 0; | ||
| 60 | + return 0.0; | ||
| 61 | |||
| 62 | - return (info.ki_pctcpu / FSCALE) * 100.0; | ||
| 63 | + return static_cast<double>((info.ki_pctcpu * 100.0) / FSCALE); | ||
| 64 | } | ||
| 65 | |||
| 66 | TimeDelta ProcessMetrics::GetCumulativeCPUUsage() { | ||
| 67 | - NOTREACHED(); | ||
| 68 | + NOTIMPLEMENTED(); | ||
| 69 | return TimeDelta(); | ||
| 70 | } | ||
| 71 | |||
| 72 | @@ -68,4 +89,221 @@ size_t GetSystemCommitCharge() { | ||
| 73 | return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize); | ||
| 74 | } | ||
| 75 | |||
| 76 | +int GetNumberOfThreads(ProcessHandle process) { | ||
| 77 | + // Taken from FreeBSD top (usr.bin/top/machine.c) | ||
| 78 | + | ||
| 79 | + kvm_t* kd = kvm_open(NULL, "/dev/null", NULL, O_RDONLY, "kvm_open"); | ||
| 80 | + if (kd == NULL) | ||
| 81 | + return 0; | ||
| 82 | + | ||
| 83 | + struct kinfo_proc* pbase; | ||
| 84 | + int nproc; | ||
| 85 | + pbase = kvm_getprocs(kd, KERN_PROC_PID, process, &nproc); | ||
| 86 | + if (pbase == NULL) | ||
| 87 | + return 0; | ||
| 88 | + | ||
| 89 | + if (kvm_close(kd) == -1) | ||
| 90 | + return 0; | ||
| 91 | + | ||
| 92 | + return nproc; | ||
| 93 | +} | ||
| 94 | + | ||
| 95 | +bool GetSystemMemoryInfo(SystemMemoryInfoKB *meminfo) { | ||
| 96 | + unsigned int mem_total, mem_free, swap_total, swap_used; | ||
| 97 | + size_t length; | ||
| 98 | + int pagesizeKB; | ||
| 99 | + | ||
| 100 | + pagesizeKB = getpagesize() / 1024; | ||
| 101 | + | ||
| 102 | + length = sizeof(mem_total); | ||
| 103 | + if (sysctlbyname("vm.stats.vm.v_page_count", &mem_total, | ||
| 104 | + &length, NULL, 0) != 0 || length != sizeof(mem_total)) | ||
| 105 | + return false; | ||
| 106 | + | ||
| 107 | + length = sizeof(mem_free); | ||
| 108 | + if (sysctlbyname("vm.stats.vm.v_free_count", &mem_free, &length, NULL, 0) | ||
| 109 | + != 0 || length != sizeof(mem_free)) | ||
| 110 | + return false; | ||
| 111 | + | ||
| 112 | + length = sizeof(swap_total); | ||
| 113 | + if (sysctlbyname("vm.swap_size", &swap_total, &length, NULL, 0) | ||
| 114 | + != 0 || length != sizeof(swap_total)) | ||
| 115 | + return false; | ||
| 116 | + | ||
| 117 | + length = sizeof(swap_used); | ||
| 118 | + if (sysctlbyname("vm.swap_anon_use", &swap_used, &length, NULL, 0) | ||
| 119 | + != 0 || length != sizeof(swap_used)) | ||
| 120 | + return false; | ||
| 121 | + | ||
| 122 | + meminfo->total = mem_total * pagesizeKB; | ||
| 123 | + meminfo->free = mem_free * pagesizeKB; | ||
| 124 | + meminfo->swap_total = swap_total * pagesizeKB; | ||
| 125 | + meminfo->swap_free = (swap_total - swap_used) * pagesizeKB; | ||
| 126 | + | ||
| 127 | + return true; | ||
| 128 | +} | ||
| 129 | + | ||
| 130 | +int ProcessMetrics::GetOpenFdCount() const { | ||
| 131 | + struct kinfo_file * kif; | ||
| 132 | + int cnt; | ||
| 133 | + | ||
| 134 | + if ((kif = kinfo_getfile(process_, &cnt)) == NULL) | ||
| 135 | + return -1; | ||
| 136 | + | ||
| 137 | + free(kif); | ||
| 138 | + | ||
| 139 | + return cnt; | ||
| 140 | +} | ||
| 141 | + | ||
| 142 | +int ProcessMetrics::GetOpenFdSoftLimit() const { | ||
| 143 | + size_t length; | ||
| 144 | + int total_count = 0; | ||
| 145 | + int mib[] = { CTL_KERN, KERN_MAXFILESPERPROC }; | ||
| 146 | + | ||
| 147 | + length = sizeof(total_count); | ||
| 148 | + | ||
| 149 | + if (sysctl(mib, base::size(mib), &total_count, &length, NULL, 0) < 0) { | ||
| 150 | + total_count = -1; | ||
| 151 | + } | ||
| 152 | + | ||
| 153 | + return total_count; | ||
| 154 | +} | ||
| 155 | + | ||
| 156 | +size_t ProcessMetrics::GetResidentSetSize() const { | ||
| 157 | + kvm_t *kd = kvm_open(nullptr, "/dev/null", nullptr, O_RDONLY, "kvm_open"); | ||
| 158 | + | ||
| 159 | + if (kd == nullptr) | ||
| 160 | + return 0; | ||
| 161 | + | ||
| 162 | + struct kinfo_proc *pp; | ||
| 163 | + int nproc; | ||
| 164 | + | ||
| 165 | + if ((pp = kvm_getprocs(kd, KERN_PROC_PID, process_, &nproc)) == nullptr) { | ||
| 166 | + kvm_close(kd); | ||
| 167 | + return 0; | ||
| 168 | + } | ||
| 169 | + | ||
| 170 | + size_t rss; | ||
| 171 | + | ||
| 172 | + if (nproc > 0) { | ||
| 173 | + rss = pp->ki_rssize << GetPageShift(); | ||
| 174 | + } else { | ||
| 175 | + rss = 0; | ||
| 176 | + } | ||
| 177 | + | ||
| 178 | + kvm_close(kd); | ||
| 179 | + return rss; | ||
| 180 | +} | ||
| 181 | + | ||
| 182 | +uint64_t ProcessMetrics::GetVmSwapBytes() const { | ||
| 183 | + kvm_t *kd = kvm_open(nullptr, "/dev/null", nullptr, O_RDONLY, "kvm_open"); | ||
| 184 | + | ||
| 185 | + if (kd == nullptr) | ||
| 186 | + return 0; | ||
| 187 | + | ||
| 188 | + struct kinfo_proc *pp; | ||
| 189 | + int nproc; | ||
| 190 | + | ||
| 191 | + if ((pp = kvm_getprocs(kd, KERN_PROC_PID, process_, &nproc)) == nullptr) { | ||
| 192 | + kvm_close(kd); | ||
| 193 | + return 0; | ||
| 194 | + } | ||
| 195 | + | ||
| 196 | + size_t swrss; | ||
| 197 | + | ||
| 198 | + if (nproc > 0) { | ||
| 199 | + swrss = pp->ki_swrss > pp->ki_rssize | ||
| 200 | + ? (pp->ki_swrss - pp->ki_rssize) << GetPageShift() | ||
| 201 | + : 0; | ||
| 202 | + } else { | ||
| 203 | + swrss = 0; | ||
| 204 | + } | ||
| 205 | + | ||
| 206 | + kvm_close(kd); | ||
| 207 | + return swrss; | ||
| 208 | +} | ||
| 209 | + | ||
| 210 | +int ProcessMetrics::GetIdleWakeupsPerSecond() { | ||
| 211 | + NOTIMPLEMENTED(); | ||
| 212 | + return 0; | ||
| 213 | +} | ||
| 214 | + | ||
| 215 | +bool GetSystemDiskInfo(SystemDiskInfo* diskinfo) { | ||
| 216 | + NOTIMPLEMENTED(); | ||
| 217 | + return false; | ||
| 218 | +} | ||
| 219 | + | ||
| 220 | +bool GetVmStatInfo(VmStatInfo* vmstat) { | ||
| 221 | + NOTIMPLEMENTED(); | ||
| 222 | + return false; | ||
| 223 | +} | ||
| 224 | + | ||
| 225 | +SystemDiskInfo::SystemDiskInfo() { | ||
| 226 | + reads = 0; | ||
| 227 | + reads_merged = 0; | ||
| 228 | + sectors_read = 0; | ||
| 229 | + read_time = 0; | ||
| 230 | + writes = 0; | ||
| 231 | + writes_merged = 0; | ||
| 232 | + sectors_written = 0; | ||
| 233 | + write_time = 0; | ||
| 234 | + io = 0; | ||
| 235 | + io_time = 0; | ||
| 236 | + weighted_io_time = 0; | ||
| 237 | +} | ||
| 238 | + | ||
| 239 | +SystemDiskInfo::SystemDiskInfo(const SystemDiskInfo& other) = default; | ||
| 240 | + | ||
| 241 | +SystemDiskInfo& SystemDiskInfo::operator=(const SystemDiskInfo&) = default; | ||
| 242 | + | ||
| 243 | +Value SystemDiskInfo::ToValue() const { | ||
| 244 | + Value res(Value::Type::DICTIONARY); | ||
| 245 | + | ||
| 246 | + // Write out uint64_t variables as doubles. | ||
| 247 | + // Note: this may discard some precision, but for JS there's no other option. | ||
| 248 | + res.SetDoubleKey("reads", static_cast<double>(reads)); | ||
| 249 | + res.SetDoubleKey("reads_merged", static_cast<double>(reads_merged)); | ||
| 250 | + res.SetDoubleKey("sectors_read", static_cast<double>(sectors_read)); | ||
| 251 | + res.SetDoubleKey("read_time", static_cast<double>(read_time)); | ||
| 252 | + res.SetDoubleKey("writes", static_cast<double>(writes)); | ||
| 253 | + res.SetDoubleKey("writes_merged", static_cast<double>(writes_merged)); | ||
| 254 | + res.SetDoubleKey("sectors_written", static_cast<double>(sectors_written)); | ||
| 255 | + res.SetDoubleKey("write_time", static_cast<double>(write_time)); | ||
| 256 | + res.SetDoubleKey("io", static_cast<double>(io)); | ||
| 257 | + res.SetDoubleKey("io_time", static_cast<double>(io_time)); | ||
| 258 | + res.SetDoubleKey("weighted_io_time", static_cast<double>(weighted_io_time)); | ||
| 259 | + | ||
| 260 | + return res; | ||
| 261 | +} | ||
| 262 | + | ||
| 263 | +Value SystemMemoryInfoKB::ToValue() const { | ||
| 264 | + Value res(Value::Type::DICTIONARY); | ||
| 265 | + | ||
| 266 | + res.SetIntKey("total", total); | ||
| 267 | + res.SetIntKey("free", free); | ||
| 268 | + res.SetIntKey("available", available); | ||
| 269 | + res.SetIntKey("buffers", buffers); | ||
| 270 | + res.SetIntKey("cached", cached); | ||
| 271 | + res.SetIntKey("active_anon", active_anon); | ||
| 272 | + res.SetIntKey("inactive_anon", inactive_anon); | ||
| 273 | + res.SetIntKey("active_file", active_file); | ||
| 274 | + res.SetIntKey("inactive_file", inactive_file); | ||
| 275 | + res.SetIntKey("swap_total", swap_total); | ||
| 276 | + res.SetIntKey("swap_free", swap_free); | ||
| 277 | + res.SetIntKey("swap_used", swap_total - swap_free); | ||
| 278 | + res.SetIntKey("dirty", dirty); | ||
| 279 | + res.SetIntKey("reclaimable", reclaimable); | ||
| 280 | + | ||
| 281 | + return res; | ||
| 282 | +} | ||
| 283 | + | ||
| 284 | +Value VmStatInfo::ToValue() const { | ||
| 285 | + Value res(Value::Type::DICTIONARY); | ||
| 286 | + | ||
| 287 | + res.SetIntKey("pswpin", pswpin); | ||
| 288 | + res.SetIntKey("pswpout", pswpout); | ||
| 289 | + res.SetIntKey("pgmajfault", pgmajfault); | ||
| 290 | + | ||
| 291 | + return res; | ||
| 292 | +} | ||
| 293 | } // namespace base | ||
diff --git a/www/chromium/patches/patch-base_process_process_metrics_h b/www/chromium/patches/patch-base_process_process_metrics_h new file mode 100644 index 0000000..07d8c68 --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_metrics_h | |||
| @@ -0,0 +1,120 @@ | |||
| 1 | Index: base/process/process_metrics.h | ||
| 2 | --- base/process/process_metrics.h.orig | ||
| 3 | +++ base/process/process_metrics.h | ||
| 4 | @@ -36,7 +36,7 @@ | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 8 | - BUILDFLAG(IS_AIX) | ||
| 9 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <string> | ||
| 11 | #include <utility> | ||
| 12 | #include <vector> | ||
| 13 | @@ -52,7 +52,7 @@ class Value; | ||
| 14 | // Full declaration is in process_metrics_iocounters.h. | ||
| 15 | struct IoCounters; | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 19 | // Minor and major page fault counts since the process creation. | ||
| 20 | // Both counts are process-wide, and exclude child processes. | ||
| 21 | // | ||
| 22 | @@ -107,7 +107,7 @@ class BASE_EXPORT ProcessMetrics { | ||
| 23 | // convenience wrapper for CreateProcessMetrics(). | ||
| 24 | static std::unique_ptr<ProcessMetrics> CreateCurrentProcessMetrics(); | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 28 | // Resident Set Size is a Linux/Android specific memory concept. Do not | ||
| 29 | // attempt to extend this to other platforms. | ||
| 30 | BASE_EXPORT size_t GetResidentSetSize() const; | ||
| 31 | @@ -134,7 +134,7 @@ class BASE_EXPORT ProcessMetrics { | ||
| 32 | [[nodiscard]] TimeDelta GetCumulativeCPUUsage(); | ||
| 33 | |||
| 34 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 35 | - BUILDFLAG(IS_AIX) | ||
| 36 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 37 | // Emits the cumulative CPU usage for all currently active threads since they | ||
| 38 | // were started into the output parameter (replacing its current contents). | ||
| 39 | // Threads that have already terminated will not be reported. Thus, the sum of | ||
| 40 | @@ -217,7 +217,7 @@ class BASE_EXPORT ProcessMetrics { | ||
| 41 | int GetOpenFdSoftLimit() const; | ||
| 42 | #endif // BUILDFLAG(IS_POSIX) | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 46 | // Bytes of swap as reported by /proc/[pid]/status. | ||
| 47 | uint64_t GetVmSwapBytes() const; | ||
| 48 | |||
| 49 | @@ -238,7 +238,7 @@ class BASE_EXPORT ProcessMetrics { | ||
| 50 | #endif // !BUILDFLAG(IS_MAC) | ||
| 51 | |||
| 52 | #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 53 | - BUILDFLAG(IS_AIX) | ||
| 54 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 55 | int CalculateIdleWakeupsPerSecond(uint64_t absolute_idle_wakeups); | ||
| 56 | #endif | ||
| 57 | #if BUILDFLAG(IS_APPLE) | ||
| 58 | @@ -249,7 +249,7 @@ class BASE_EXPORT ProcessMetrics { | ||
| 59 | #endif | ||
| 60 | |||
| 61 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 62 | - BUILDFLAG(IS_AIX) | ||
| 63 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 64 | CPU::CoreType GetCoreType(int core_index); | ||
| 65 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || | ||
| 66 | // BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_AIX) | ||
| 67 | @@ -274,7 +274,7 @@ class BASE_EXPORT ProcessMetrics { | ||
| 68 | uint64_t last_cumulative_disk_usage_ = 0; | ||
| 69 | |||
| 70 | #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 71 | - BUILDFLAG(IS_AIX) | ||
| 72 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 73 | // Same thing for idle wakeups. | ||
| 74 | TimeTicks last_idle_wakeups_time_; | ||
| 75 | uint64_t last_absolute_idle_wakeups_; | ||
| 76 | @@ -317,7 +317,7 @@ BASE_EXPORT void IncreaseFdLimitTo(unsigned int max_de | ||
| 77 | |||
| 78 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 79 | BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_AIX) || \ | ||
| 80 | - BUILDFLAG(IS_FUCHSIA) | ||
| 81 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 82 | // Data about system-wide memory consumption. Values are in KB. Available on | ||
| 83 | // Windows, Mac, Linux, Android and Chrome OS. | ||
| 84 | // | ||
| 85 | @@ -352,7 +352,7 @@ struct BASE_EXPORT SystemMemoryInfoKB { | ||
| 86 | #endif | ||
| 87 | |||
| 88 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 89 | - BUILDFLAG(IS_AIX) | ||
| 90 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 91 | // This provides an estimate of available memory as described here: | ||
| 92 | // https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773 | ||
| 93 | // NOTE: this is ONLY valid in kernels 3.14 and up. Its value will always | ||
| 94 | @@ -367,7 +367,7 @@ struct BASE_EXPORT SystemMemoryInfoKB { | ||
| 95 | #endif | ||
| 96 | |||
| 97 | #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 98 | - BUILDFLAG(IS_AIX) || BUILDFLAG(IS_FUCHSIA) | ||
| 99 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 100 | int buffers = 0; | ||
| 101 | int cached = 0; | ||
| 102 | int active_anon = 0; | ||
| 103 | @@ -404,7 +404,7 @@ BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoK | ||
| 104 | // BUILDFLAG(IS_FUCHSIA) | ||
| 105 | |||
| 106 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 107 | - BUILDFLAG(IS_AIX) | ||
| 108 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 109 | // Parse the data found in /proc/<pid>/stat and return the sum of the | ||
| 110 | // CPU-related ticks. Returns -1 on parse error. | ||
| 111 | // Exposed for testing. | ||
| 112 | @@ -591,7 +591,7 @@ class BASE_EXPORT SystemMetrics { | ||
| 113 | FRIEND_TEST_ALL_PREFIXES(SystemMetricsTest, SystemMetrics); | ||
| 114 | |||
| 115 | size_t committed_memory_; | ||
| 116 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 117 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 118 | SystemMemoryInfoKB memory_info_; | ||
| 119 | VmStatInfo vmstat_info_; | ||
| 120 | SystemDiskInfo disk_info_; | ||
diff --git a/www/chromium/patches/patch-base_process_process_metrics_openbsd_cc b/www/chromium/patches/patch-base_process_process_metrics_openbsd_cc new file mode 100644 index 0000000..f7f69cf --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_metrics_openbsd_cc | |||
| @@ -0,0 +1,236 @@ | |||
| 1 | Index: base/process/process_metrics_openbsd.cc | ||
| 2 | --- base/process/process_metrics_openbsd.cc.orig | ||
| 3 | +++ base/process/process_metrics_openbsd.cc | ||
| 4 | @@ -4,17 +4,36 @@ | ||
| 5 | |||
| 6 | #include "base/process/process_metrics.h" | ||
| 7 | |||
| 8 | +#include "base/files/file_util.h" | ||
| 9 | +#include "base/logging.h" | ||
| 10 | +#include "base/process/internal_linux.h" | ||
| 11 | +#include "base/strings/string_number_conversions.h" | ||
| 12 | +#include "base/strings/string_split.h" | ||
| 13 | +#include "base/strings/string_tokenizer.h" | ||
| 14 | +#include "base/strings/string_util.h" | ||
| 15 | +#include "base/system/sys_info.h" | ||
| 16 | +#include "base/threading/thread_restrictions.h" | ||
| 17 | +#include "base/notreached.h" | ||
| 18 | + | ||
| 19 | #include <stddef.h> | ||
| 20 | #include <stdint.h> | ||
| 21 | +#include <fcntl.h> | ||
| 22 | #include <sys/param.h> | ||
| 23 | #include <sys/sysctl.h> | ||
| 24 | +#include <sys/vmmeter.h> | ||
| 25 | |||
| 26 | +#include <kvm.h> | ||
| 27 | + | ||
| 28 | #include "base/cxx17_backports.h" | ||
| 29 | #include "base/memory/ptr_util.h" | ||
| 30 | #include "base/process/process_metrics_iocounters.h" | ||
| 31 | +#include "base/values.h" | ||
| 32 | |||
| 33 | namespace base { | ||
| 34 | |||
| 35 | +ProcessMetrics::ProcessMetrics(ProcessHandle process) | ||
| 36 | + : process_(process) {} | ||
| 37 | + | ||
| 38 | // static | ||
| 39 | std::unique_ptr<ProcessMetrics> ProcessMetrics::CreateProcessMetrics( | ||
| 40 | ProcessHandle process) { | ||
| 41 | @@ -25,49 +44,24 @@ bool ProcessMetrics::GetIOCounters(IoCounters* io_coun | ||
| 42 | return false; | ||
| 43 | } | ||
| 44 | |||
| 45 | -static int GetProcessCPU(pid_t pid) { | ||
| 46 | +double ProcessMetrics::GetPlatformIndependentCPUUsage() { | ||
| 47 | struct kinfo_proc info; | ||
| 48 | - size_t length; | ||
| 49 | - int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, pid, | ||
| 50 | - sizeof(struct kinfo_proc), 0 }; | ||
| 51 | + size_t length = sizeof(struct kinfo_proc); | ||
| 52 | |||
| 53 | - if (sysctl(mib, base::size(mib), NULL, &length, NULL, 0) < 0) | ||
| 54 | - return -1; | ||
| 55 | + int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process_, | ||
| 56 | + sizeof(struct kinfo_proc), 1 }; | ||
| 57 | |||
| 58 | - mib[5] = (length / sizeof(struct kinfo_proc)); | ||
| 59 | + if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) | ||
| 60 | + return 0.0; | ||
| 61 | |||
| 62 | - if (sysctl(mib, base::size(mib), &info, &length, NULL, 0) < 0) | ||
| 63 | - return 0; | ||
| 64 | - | ||
| 65 | - return info.p_pctcpu; | ||
| 66 | + return static_cast<double>((info.p_pctcpu * 100.0) / FSCALE); | ||
| 67 | } | ||
| 68 | |||
| 69 | -double ProcessMetrics::GetPlatformIndependentCPUUsage() { | ||
| 70 | - TimeTicks time = TimeTicks::Now(); | ||
| 71 | - | ||
| 72 | - if (last_cpu_time_.is_zero()) { | ||
| 73 | - // First call, just set the last values. | ||
| 74 | - last_cpu_time_ = time; | ||
| 75 | - return 0; | ||
| 76 | - } | ||
| 77 | - | ||
| 78 | - int cpu = GetProcessCPU(process_); | ||
| 79 | - | ||
| 80 | - last_cpu_time_ = time; | ||
| 81 | - double percentage = static_cast<double>((cpu * 100.0) / FSCALE); | ||
| 82 | - | ||
| 83 | - return percentage; | ||
| 84 | -} | ||
| 85 | - | ||
| 86 | TimeDelta ProcessMetrics::GetCumulativeCPUUsage() { | ||
| 87 | NOTREACHED(); | ||
| 88 | return TimeDelta(); | ||
| 89 | } | ||
| 90 | |||
| 91 | -ProcessMetrics::ProcessMetrics(ProcessHandle process) | ||
| 92 | - : process_(process), | ||
| 93 | - last_cpu_(0) {} | ||
| 94 | - | ||
| 95 | size_t GetSystemCommitCharge() { | ||
| 96 | int mib[] = { CTL_VM, VM_METER }; | ||
| 97 | int pagesize; | ||
| 98 | @@ -75,7 +69,7 @@ size_t GetSystemCommitCharge() { | ||
| 99 | unsigned long mem_total, mem_free, mem_inactive; | ||
| 100 | size_t len = sizeof(vmtotal); | ||
| 101 | |||
| 102 | - if (sysctl(mib, base::size(mib), &vmtotal, &len, NULL, 0) < 0) | ||
| 103 | + if (sysctl(mib, std::size(mib), &vmtotal, &len, NULL, 0) < 0) | ||
| 104 | return 0; | ||
| 105 | |||
| 106 | mem_total = vmtotal.t_vm; | ||
| 107 | @@ -85,6 +79,129 @@ size_t GetSystemCommitCharge() { | ||
| 108 | pagesize = getpagesize(); | ||
| 109 | |||
| 110 | return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize); | ||
| 111 | +} | ||
| 112 | + | ||
| 113 | +int ProcessMetrics::GetOpenFdCount() const { | ||
| 114 | + struct kinfo_file *files; | ||
| 115 | + kvm_t *kd = NULL; | ||
| 116 | + int total_count = 0; | ||
| 117 | + char errbuf[_POSIX2_LINE_MAX]; | ||
| 118 | + | ||
| 119 | + if ((kd = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, errbuf)) == NULL) | ||
| 120 | + goto out; | ||
| 121 | + | ||
| 122 | + if ((files = kvm_getfiles(kd, KERN_FILE_BYPID, process_, | ||
| 123 | + sizeof(struct kinfo_file), &total_count)) == NULL) { | ||
| 124 | + total_count = 0; | ||
| 125 | + goto out; | ||
| 126 | + } | ||
| 127 | + | ||
| 128 | + kvm_close(kd); | ||
| 129 | + | ||
| 130 | +out: | ||
| 131 | + return total_count; | ||
| 132 | +} | ||
| 133 | + | ||
| 134 | +int ProcessMetrics::GetOpenFdSoftLimit() const { | ||
| 135 | + return GetMaxFds(); | ||
| 136 | +} | ||
| 137 | + | ||
| 138 | +uint64_t ProcessMetrics::GetVmSwapBytes() const { | ||
| 139 | + NOTIMPLEMENTED(); | ||
| 140 | + return 0; | ||
| 141 | +} | ||
| 142 | + | ||
| 143 | +bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo) { | ||
| 144 | + NOTIMPLEMENTED_LOG_ONCE(); | ||
| 145 | + return false; | ||
| 146 | +} | ||
| 147 | + | ||
| 148 | +SystemDiskInfo::SystemDiskInfo() { | ||
| 149 | + reads = 0; | ||
| 150 | + reads_merged = 0; | ||
| 151 | + sectors_read = 0; | ||
| 152 | + read_time = 0; | ||
| 153 | + writes = 0; | ||
| 154 | + writes_merged = 0; | ||
| 155 | + sectors_written = 0; | ||
| 156 | + write_time = 0; | ||
| 157 | + io = 0; | ||
| 158 | + io_time = 0; | ||
| 159 | + weighted_io_time = 0; | ||
| 160 | +} | ||
| 161 | + | ||
| 162 | +SystemDiskInfo::SystemDiskInfo(const SystemDiskInfo& other) = default; | ||
| 163 | + | ||
| 164 | +bool GetSystemDiskInfo(SystemDiskInfo* diskinfo) { | ||
| 165 | + NOTIMPLEMENTED(); | ||
| 166 | + return false; | ||
| 167 | +} | ||
| 168 | + | ||
| 169 | +bool GetVmStatInfo(VmStatInfo* vmstat) { | ||
| 170 | + NOTIMPLEMENTED(); | ||
| 171 | + return false; | ||
| 172 | +} | ||
| 173 | + | ||
| 174 | +int ProcessMetrics::GetIdleWakeupsPerSecond() { | ||
| 175 | + NOTIMPLEMENTED(); | ||
| 176 | + return 0; | ||
| 177 | +} | ||
| 178 | + | ||
| 179 | +Value SystemMemoryInfoKB::ToValue() const { | ||
| 180 | + Value res(Value::Type::DICTIONARY); | ||
| 181 | + res.SetIntKey("total", total); | ||
| 182 | + res.SetIntKey("free", free); | ||
| 183 | + res.SetIntKey("available", available); | ||
| 184 | + res.SetIntKey("buffers", buffers); | ||
| 185 | + res.SetIntKey("cached", cached); | ||
| 186 | + res.SetIntKey("active_anon", active_anon); | ||
| 187 | + res.SetIntKey("inactive_anon", inactive_anon); | ||
| 188 | + res.SetIntKey("active_file", active_file); | ||
| 189 | + res.SetIntKey("inactive_file", inactive_file); | ||
| 190 | + res.SetIntKey("swap_total", swap_total); | ||
| 191 | + res.SetIntKey("swap_free", swap_free); | ||
| 192 | + res.SetIntKey("swap_used", swap_total - swap_free); | ||
| 193 | + res.SetIntKey("dirty", dirty); | ||
| 194 | + res.SetIntKey("reclaimable", reclaimable); | ||
| 195 | + | ||
| 196 | + NOTIMPLEMENTED(); | ||
| 197 | + | ||
| 198 | + return res; | ||
| 199 | +} | ||
| 200 | + | ||
| 201 | +Value VmStatInfo::ToValue() const { | ||
| 202 | + Value res(Value::Type::DICTIONARY); | ||
| 203 | + res.SetIntKey("pswpin", pswpin); | ||
| 204 | + res.SetIntKey("pswpout", pswpout); | ||
| 205 | + res.SetIntKey("pgmajfault", pgmajfault); | ||
| 206 | + | ||
| 207 | + NOTIMPLEMENTED(); | ||
| 208 | + | ||
| 209 | + return res; | ||
| 210 | +} | ||
| 211 | + | ||
| 212 | +SystemDiskInfo& SystemDiskInfo::operator=(const SystemDiskInfo&) = default; | ||
| 213 | + | ||
| 214 | +Value SystemDiskInfo::ToValue() const { | ||
| 215 | + Value res(Value::Type::DICTIONARY); | ||
| 216 | + | ||
| 217 | + // Write out uint64_t variables as doubles. | ||
| 218 | + // Note: this may discard some precision, but for JS there's no other option. | ||
| 219 | + res.SetDoubleKey("reads", static_cast<double>(reads)); | ||
| 220 | + res.SetDoubleKey("reads_merged", static_cast<double>(reads_merged)); | ||
| 221 | + res.SetDoubleKey("sectors_read", static_cast<double>(sectors_read)); | ||
| 222 | + res.SetDoubleKey("read_time", static_cast<double>(read_time)); | ||
| 223 | + res.SetDoubleKey("writes", static_cast<double>(writes)); | ||
| 224 | + res.SetDoubleKey("writes_merged", static_cast<double>(writes_merged)); | ||
| 225 | + res.SetDoubleKey("sectors_written", static_cast<double>(sectors_written)); | ||
| 226 | + res.SetDoubleKey("write_time", static_cast<double>(write_time)); | ||
| 227 | + res.SetDoubleKey("io", static_cast<double>(io)); | ||
| 228 | + res.SetDoubleKey("io_time", static_cast<double>(io_time)); | ||
| 229 | + res.SetDoubleKey("weighted_io_time", static_cast<double>(weighted_io_time)); | ||
| 230 | + | ||
| 231 | + NOTIMPLEMENTED(); | ||
| 232 | + | ||
| 233 | + return res; | ||
| 234 | } | ||
| 235 | |||
| 236 | } // namespace base | ||
diff --git a/www/chromium/patches/patch-base_process_process_metrics_posix_cc b/www/chromium/patches/patch-base_process_process_metrics_posix_cc new file mode 100644 index 0000000..c915ca3 --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_metrics_posix_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: base/process/process_metrics_posix.cc | ||
| 2 | --- base/process/process_metrics_posix.cc.orig | ||
| 3 | +++ base/process/process_metrics_posix.cc | ||
| 4 | @@ -20,6 +20,8 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_APPLE) | ||
| 7 | #include <malloc/malloc.h> | ||
| 8 | +#elif BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#include <stdlib.h> | ||
| 10 | #else | ||
| 11 | #include <malloc.h> | ||
| 12 | #endif | ||
| 13 | @@ -133,7 +135,7 @@ size_t ProcessMetrics::GetMallocUsage() { | ||
| 14 | return stats.size_in_use; | ||
| 15 | #elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 16 | return GetMallocUsageMallinfo(); | ||
| 17 | -#elif BUILDFLAG(IS_FUCHSIA) | ||
| 18 | +#elif BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | // TODO(fuchsia): Not currently exposed. https://crbug.com/735087. | ||
| 20 | return 0; | ||
| 21 | #endif | ||
diff --git a/www/chromium/patches/patch-base_process_process_posix_cc b/www/chromium/patches/patch-base_process_process_posix_cc new file mode 100644 index 0000000..5d24e6a --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_posix_cc | |||
| @@ -0,0 +1,94 @@ | |||
| 1 | Index: base/process/process_posix.cc | ||
| 2 | --- base/process/process_posix.cc.orig | ||
| 3 | +++ base/process/process_posix.cc | ||
| 4 | @@ -23,10 +23,15 @@ | ||
| 5 | #include "build/build_config.h" | ||
| 6 | #include "third_party/abseil-cpp/absl/types/optional.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <sys/event.h> | ||
| 11 | #endif | ||
| 12 | |||
| 13 | +#if defined(OS_BSD) | ||
| 14 | +#include <sys/types.h> | ||
| 15 | +#include <sys/sysctl.h> | ||
| 16 | +#endif | ||
| 17 | + | ||
| 18 | #if BUILDFLAG(CLANG_PROFILING) | ||
| 19 | #include "base/test/clang_profiling.h" | ||
| 20 | #endif | ||
| 21 | @@ -95,7 +100,7 @@ bool WaitpidWithTimeout(base::ProcessHandle handle, | ||
| 22 | return ret_pid > 0; | ||
| 23 | } | ||
| 24 | |||
| 25 | -#if BUILDFLAG(IS_MAC) | ||
| 26 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 27 | // Using kqueue on Mac so that we can wait on non-child processes. | ||
| 28 | // We can't use kqueues on child processes because we need to reap | ||
| 29 | // our own children using wait. | ||
| 30 | @@ -200,7 +205,7 @@ bool WaitForExitWithTimeoutImpl(base::ProcessHandle ha | ||
| 31 | const bool exited = (parent_pid < 0); | ||
| 32 | |||
| 33 | if (!exited && parent_pid != our_pid) { | ||
| 34 | -#if BUILDFLAG(IS_MAC) | ||
| 35 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 36 | // On Mac we can wait on non child processes. | ||
| 37 | return WaitForSingleNonChildProcess(handle, timeout); | ||
| 38 | #else | ||
| 39 | @@ -356,7 +361,55 @@ void Process::Exited(int exit_code) const {} | ||
| 40 | |||
| 41 | int Process::GetPriority() const { | ||
| 42 | DCHECK(IsValid()); | ||
| 43 | +// avoid pledge(2) violation | ||
| 44 | +#if defined(OS_BSD) | ||
| 45 | + return 0; | ||
| 46 | +#else | ||
| 47 | return getpriority(PRIO_PROCESS, process_); | ||
| 48 | +#endif | ||
| 49 | +} | ||
| 50 | + | ||
| 51 | +Time Process::CreationTime() const { | ||
| 52 | +// avoid ps pledge in the network process | ||
| 53 | +#if !defined(OS_BSD) | ||
| 54 | + int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, getpid(), | ||
| 55 | + sizeof(struct kinfo_proc), 0 }; | ||
| 56 | + struct kinfo_proc *info = nullptr; | ||
| 57 | + size_t info_size; | ||
| 58 | +#endif | ||
| 59 | + Time ct = Time(); | ||
| 60 | + | ||
| 61 | +#if !defined(OS_BSD) | ||
| 62 | + if (sysctl(mib, base::size(mib), NULL, &info_size, NULL, 0) < 0) | ||
| 63 | + goto out; | ||
| 64 | + | ||
| 65 | + mib[5] = (info_size / sizeof(struct kinfo_proc)); | ||
| 66 | + if ((info = reinterpret_cast<kinfo_proc*>(malloc(info_size))) == NULL) | ||
| 67 | + goto out; | ||
| 68 | + | ||
| 69 | + if (sysctl(mib, base::size(mib), info, &info_size, NULL, 0) < 0) | ||
| 70 | + goto out; | ||
| 71 | + | ||
| 72 | + ct = Time::FromTimeT(info->p_ustart_sec); | ||
| 73 | + | ||
| 74 | +out: | ||
| 75 | + if (info) | ||
| 76 | + free(info); | ||
| 77 | +#endif | ||
| 78 | + return ct; | ||
| 79 | +} | ||
| 80 | + | ||
| 81 | +bool Process::IsProcessBackgrounded() const { | ||
| 82 | + return false; | ||
| 83 | +} | ||
| 84 | + | ||
| 85 | +bool Process::SetProcessBackgrounded(bool value) { | ||
| 86 | + return false; | ||
| 87 | +} | ||
| 88 | + | ||
| 89 | +// static | ||
| 90 | +bool Process::CanBackgroundProcesses() { | ||
| 91 | + return false; | ||
| 92 | } | ||
| 93 | |||
| 94 | } // namespace base | ||
diff --git a/www/chromium/patches/patch-base_process_process_unittest_cc b/www/chromium/patches/patch-base_process_process_unittest_cc new file mode 100644 index 0000000..c0a75ef --- /dev/null +++ b/www/chromium/patches/patch-base_process_process_unittest_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/process/process_unittest.cc | ||
| 2 | --- base/process/process_unittest.cc.orig | ||
| 3 | +++ base/process/process_unittest.cc | ||
| 4 | @@ -140,7 +140,7 @@ TEST_F(ProcessTest, CreationTimeOtherProcess) { | ||
| 5 | // was spawned and a time recorded after it was spawned. However, since the | ||
| 6 | // base::Time and process creation clocks don't match, tolerate some error. | ||
| 7 | constexpr base::TimeDelta kTolerance = | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // On Linux, process creation time is relative to boot time which has a | ||
| 11 | // 1-second resolution. Tolerate 1 second for the imprecise boot time and | ||
| 12 | // 100 ms for the imprecise clock. | ||
diff --git a/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_test_util_cc b/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_test_util_cc new file mode 100644 index 0000000..c38b75d --- /dev/null +++ b/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_test_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/profiler/stack_sampling_profiler_test_util.cc | ||
| 2 | --- base/profiler/stack_sampling_profiler_test_util.cc.orig | ||
| 3 | +++ base/profiler/stack_sampling_profiler_test_util.cc | ||
| 4 | @@ -32,7 +32,7 @@ | ||
| 5 | // Fortunately, it provides _alloca, which functions identically. | ||
| 6 | #include <malloc.h> | ||
| 7 | #define alloca _alloca | ||
| 8 | -#else | ||
| 9 | +#elif !BUILDFLAG(IS_BSD) | ||
| 10 | #include <alloca.h> | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_unittest_cc b/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_unittest_cc new file mode 100644 index 0000000..0601674 --- /dev/null +++ b/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_unittest_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/profiler/stack_sampling_profiler_unittest.cc | ||
| 2 | --- base/profiler/stack_sampling_profiler_unittest.cc.orig | ||
| 3 | +++ base/profiler/stack_sampling_profiler_unittest.cc | ||
| 4 | @@ -41,7 +41,7 @@ | ||
| 5 | #include <intrin.h> | ||
| 6 | #include <malloc.h> | ||
| 7 | #include <windows.h> | ||
| 8 | -#else | ||
| 9 | +#elif !BUILDFLAG(IS_BSD) | ||
| 10 | #include <alloca.h> | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-base_rand_util_h b/www/chromium/patches/patch-base_rand_util_h new file mode 100644 index 0000000..230c4d7 --- /dev/null +++ b/www/chromium/patches/patch-base_rand_util_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/rand_util.h | ||
| 2 | --- base/rand_util.h.orig | ||
| 3 | +++ base/rand_util.h | ||
| 4 | @@ -81,7 +81,7 @@ void RandomShuffle(Itr first, Itr last) { | ||
| 5 | std::shuffle(first, last, RandomBitGenerator()); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_POSIX) | ||
| 9 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_OPENBSD) | ||
| 10 | BASE_EXPORT int GetUrandomFD(); | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-base_rand_util_posix_cc b/www/chromium/patches/patch-base_rand_util_posix_cc new file mode 100644 index 0000000..d962c3b --- /dev/null +++ b/www/chromium/patches/patch-base_rand_util_posix_cc | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | Index: base/rand_util_posix.cc | ||
| 2 | --- base/rand_util_posix.cc.orig | ||
| 3 | +++ base/rand_util_posix.cc | ||
| 4 | @@ -17,7 +17,7 @@ | ||
| 5 | #include "base/posix/eintr_wrapper.h" | ||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && !BUILDFLAG(IS_NACL) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_BSD) | ||
| 10 | #include "third_party/lss/linux_syscall_support.h" | ||
| 11 | #elif BUILDFLAG(IS_MAC) | ||
| 12 | // TODO(crbug.com/995996): Waiting for this header to appear in the iOS SDK. | ||
| 13 | @@ -34,6 +34,7 @@ static constexpr int kOpenFlags = O_RDONLY; | ||
| 14 | static constexpr int kOpenFlags = O_RDONLY | O_CLOEXEC; | ||
| 15 | #endif | ||
| 16 | |||
| 17 | +#if !BUILDFLAG(IS_OPENBSD) | ||
| 18 | // We keep the file descriptor for /dev/urandom around so we don't need to | ||
| 19 | // reopen it (which is expensive), and since we may not even be able to reopen | ||
| 20 | // it if we are later put in a sandbox. This class wraps the file descriptor so | ||
| 21 | @@ -51,6 +52,7 @@ class URandomFd { | ||
| 22 | private: | ||
| 23 | const int fd_; | ||
| 24 | }; | ||
| 25 | +#endif | ||
| 26 | |||
| 27 | } // namespace | ||
| 28 | |||
| 29 | @@ -62,6 +64,7 @@ namespace base { | ||
| 30 | // (https://chromium-review.googlesource.com/c/chromium/src/+/1545096) and land | ||
| 31 | // it or some form of it. | ||
| 32 | void RandBytes(void* output, size_t output_length) { | ||
| 33 | +#if !BUILDFLAG(IS_OPENBSD) | ||
| 34 | #if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && !BUILDFLAG(IS_NACL) | ||
| 35 | // We have to call `getrandom` via Linux Syscall Support, rather than through | ||
| 36 | // the libc wrapper, because we might not have an up-to-date libc (e.g. on | ||
| 37 | @@ -93,11 +96,16 @@ void RandBytes(void* output, size_t output_length) { | ||
| 38 | const bool success = | ||
| 39 | ReadFromFD(urandom_fd, static_cast<char*>(output), output_length); | ||
| 40 | CHECK(success); | ||
| 41 | +#else | ||
| 42 | + arc4random_buf(static_cast<char*>(output), output_length); | ||
| 43 | +#endif | ||
| 44 | } | ||
| 45 | |||
| 46 | +#if !BUILDFLAG(IS_OPENBSD) | ||
| 47 | int GetUrandomFD() { | ||
| 48 | static NoDestructor<URandomFd> urandom_fd; | ||
| 49 | return urandom_fd->fd(); | ||
| 50 | } | ||
| 51 | +#endif | ||
| 52 | |||
| 53 | } // namespace base | ||
diff --git a/www/chromium/patches/patch-base_strings_safe_sprintf_unittest_cc b/www/chromium/patches/patch-base_strings_safe_sprintf_unittest_cc new file mode 100644 index 0000000..c23ea54 --- /dev/null +++ b/www/chromium/patches/patch-base_strings_safe_sprintf_unittest_cc | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Index: base/strings/safe_sprintf_unittest.cc | ||
| 2 | --- base/strings/safe_sprintf_unittest.cc.orig | ||
| 3 | +++ base/strings/safe_sprintf_unittest.cc | ||
| 4 | @@ -731,6 +731,7 @@ TEST(SafeSPrintfTest, EmbeddedNul) { | ||
| 5 | #endif | ||
| 6 | } | ||
| 7 | |||
| 8 | +#if !BUILDFLAG(IS_BSD) | ||
| 9 | TEST(SafeSPrintfTest, EmitNULL) { | ||
| 10 | char buf[40]; | ||
| 11 | #if defined(__GNUC__) | ||
| 12 | @@ -747,6 +748,7 @@ TEST(SafeSPrintfTest, EmitNULL) { | ||
| 13 | #pragma GCC diagnostic pop | ||
| 14 | #endif | ||
| 15 | } | ||
| 16 | +#endif | ||
| 17 | |||
| 18 | TEST(SafeSPrintfTest, PointerSize) { | ||
| 19 | // The internal data representation is a 64bit value, independent of the | ||
diff --git a/www/chromium/patches/patch-base_synchronization_lock_impl_h b/www/chromium/patches/patch-base_synchronization_lock_impl_h new file mode 100644 index 0000000..61633bb --- /dev/null +++ b/www/chromium/patches/patch-base_synchronization_lock_impl_h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | Index: base/synchronization/lock_impl.h | ||
| 2 | --- base/synchronization/lock_impl.h.orig | ||
| 3 | +++ base/synchronization/lock_impl.h | ||
| 4 | @@ -107,6 +107,10 @@ void LockImpl::Unlock() { | ||
| 5 | } | ||
| 6 | |||
| 7 | #elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA) | ||
| 8 | +#if BUILDFLAG(IS_FREEBSD) | ||
| 9 | +#pragma GCC diagnostic push | ||
| 10 | +#pragma GCC diagnostic ignored "-Wthread-safety-analysis" | ||
| 11 | +#endif | ||
| 12 | |||
| 13 | BASE_EXPORT std::string SystemErrorCodeToString(int error_code); | ||
| 14 | |||
| 15 | @@ -121,6 +125,9 @@ void LockImpl::Unlock() { | ||
| 16 | int rv = pthread_mutex_unlock(&native_handle_); | ||
| 17 | DCHECK_EQ(rv, 0) << ". " << strerror(rv); | ||
| 18 | } | ||
| 19 | +#if BUILDFLAG(IS_FREEBSD) | ||
| 20 | +#pragma GCC diagnostic pop | ||
| 21 | +#endif | ||
| 22 | #endif | ||
| 23 | |||
| 24 | // This is an implementation used for AutoLock templated on the lock type. | ||
diff --git a/www/chromium/patches/patch-base_syslog_logging_cc b/www/chromium/patches/patch-base_syslog_logging_cc new file mode 100644 index 0000000..81ba76f --- /dev/null +++ b/www/chromium/patches/patch-base_syslog_logging_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: base/syslog_logging.cc | ||
| 2 | --- base/syslog_logging.cc.orig | ||
| 3 | +++ base/syslog_logging.cc | ||
| 4 | @@ -15,7 +15,7 @@ | ||
| 5 | #include "base/strings/string_util.h" | ||
| 6 | #include "base/win/scoped_handle.h" | ||
| 7 | #include "base/win/win_util.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // <syslog.h> defines LOG_INFO, LOG_WARNING macros that could conflict with | ||
| 11 | // base::LOG_INFO, base::LOG_WARNING. | ||
| 12 | #include <syslog.h> | ||
| 13 | @@ -147,7 +147,7 @@ EventLogMessage::~EventLogMessage() { | ||
| 14 | |||
| 15 | if (user_sid != nullptr) | ||
| 16 | ::LocalFree(user_sid); | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | const char kEventSource[] = "chrome"; | ||
| 20 | openlog(kEventSource, LOG_NOWAIT | LOG_PID, LOG_USER); | ||
| 21 | // We can't use the defined names for the logging severity from syslog.h | ||
diff --git a/www/chromium/patches/patch-base_system_sys_info_cc b/www/chromium/patches/patch-base_system_sys_info_cc new file mode 100644 index 0000000..d691407 --- /dev/null +++ b/www/chromium/patches/patch-base_system_sys_info_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/system/sys_info.cc | ||
| 2 | --- base/system/sys_info.cc.orig | ||
| 3 | +++ base/system/sys_info.cc | ||
| 4 | @@ -100,7 +100,7 @@ void SysInfo::GetHardwareInfo(base::OnceCallback<void( | ||
| 5 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_APPLE) | ||
| 6 | base::ThreadPool::PostTaskAndReplyWithResult( | ||
| 7 | FROM_HERE, {}, base::BindOnce(&GetHardwareInfoSync), std::move(callback)); | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | base::ThreadPool::PostTaskAndReplyWithResult( | ||
| 11 | FROM_HERE, {base::MayBlock()}, base::BindOnce(&GetHardwareInfoSync), | ||
| 12 | std::move(callback)); | ||
diff --git a/www/chromium/patches/patch-base_system_sys_info_freebsd_cc b/www/chromium/patches/patch-base_system_sys_info_freebsd_cc new file mode 100644 index 0000000..c0393f9 --- /dev/null +++ b/www/chromium/patches/patch-base_system_sys_info_freebsd_cc | |||
| @@ -0,0 +1,114 @@ | |||
| 1 | Index: base/system/sys_info_freebsd.cc | ||
| 2 | --- base/system/sys_info_freebsd.cc.orig | ||
| 3 | +++ base/system/sys_info_freebsd.cc | ||
| 4 | @@ -9,30 +9,106 @@ | ||
| 5 | #include <sys/sysctl.h> | ||
| 6 | |||
| 7 | #include "base/notreached.h" | ||
| 8 | +#include "base/process/process_metrics.h" | ||
| 9 | +#include "base/strings/string_util.h" | ||
| 10 | |||
| 11 | namespace base { | ||
| 12 | |||
| 13 | +int SysInfo::NumberOfProcessors() { | ||
| 14 | + int mib[] = {CTL_HW, HW_NCPU}; | ||
| 15 | + int ncpu; | ||
| 16 | + size_t size = sizeof(ncpu); | ||
| 17 | + if (sysctl(mib, base::size(mib), &ncpu, &size, NULL, 0) < 0) { | ||
| 18 | + NOTREACHED(); | ||
| 19 | + return 1; | ||
| 20 | + } | ||
| 21 | + return ncpu; | ||
| 22 | +} | ||
| 23 | + | ||
| 24 | int64_t SysInfo::AmountOfPhysicalMemoryImpl() { | ||
| 25 | - int pages, page_size; | ||
| 26 | + int pages, page_size, r = 0; | ||
| 27 | size_t size = sizeof(pages); | ||
| 28 | - sysctlbyname("vm.stats.vm.v_page_count", &pages, &size, NULL, 0); | ||
| 29 | - sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, NULL, 0); | ||
| 30 | - if (pages == -1 || page_size == -1) { | ||
| 31 | + | ||
| 32 | + if (r == 0) | ||
| 33 | + r = sysctlbyname("vm.stats.vm.v_page_count", &pages, &size, NULL, 0); | ||
| 34 | + if (r == 0) | ||
| 35 | + r = sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, NULL, 0); | ||
| 36 | + | ||
| 37 | + if (r == -1) { | ||
| 38 | NOTREACHED(); | ||
| 39 | return 0; | ||
| 40 | } | ||
| 41 | + | ||
| 42 | return static_cast<int64_t>(pages) * page_size; | ||
| 43 | } | ||
| 44 | |||
| 45 | +int64_t SysInfo::AmountOfAvailablePhysicalMemoryImpl() { | ||
| 46 | + int page_size, r = 0; | ||
| 47 | + unsigned int pgfree, pginact, pgcache; | ||
| 48 | + size_t size = sizeof(page_size); | ||
| 49 | + size_t szpg = sizeof(pgfree); | ||
| 50 | + | ||
| 51 | + if (r == 0) | ||
| 52 | + r = sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, NULL, 0); | ||
| 53 | + if (r == 0) | ||
| 54 | + r = sysctlbyname("vm.stats.vm.v_free_count", &pgfree, &szpg, NULL, 0); | ||
| 55 | + if (r == 0) | ||
| 56 | + r = sysctlbyname("vm.stats.vm.v_inactive_count", &pginact, &szpg, NULL, 0); | ||
| 57 | + if (r == 0) | ||
| 58 | + r = sysctlbyname("vm.stats.vm.v_cache_count", &pgcache, &szpg, NULL, 0); | ||
| 59 | + | ||
| 60 | + if (r == -1) { | ||
| 61 | + NOTREACHED(); | ||
| 62 | + return 0; | ||
| 63 | + } | ||
| 64 | + | ||
| 65 | + return static_cast<int64_t>((pgfree + pginact + pgcache) * page_size); | ||
| 66 | +} | ||
| 67 | + | ||
| 68 | // static | ||
| 69 | +int64_t SysInfo::AmountOfAvailablePhysicalMemory(const SystemMemoryInfoKB& info) { | ||
| 70 | + int64_t res_kb = info.available != 0 | ||
| 71 | + ? info.available - info.active_file | ||
| 72 | + : info.free + info.reclaimable + info.inactive_file; | ||
| 73 | + return res_kb * 1024; | ||
| 74 | +} | ||
| 75 | + | ||
| 76 | +// static | ||
| 77 | +std::string SysInfo::CPUModelName() { | ||
| 78 | + int mib[] = { CTL_HW, HW_MODEL }; | ||
| 79 | + char name[256]; | ||
| 80 | + size_t size = base::size(name); | ||
| 81 | + | ||
| 82 | + if (sysctl(mib, base::size(mib), &name, &size, NULL, 0) == 0) { | ||
| 83 | + return name; | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + return std::string(); | ||
| 87 | +} | ||
| 88 | + | ||
| 89 | +// static | ||
| 90 | uint64_t SysInfo::MaxSharedMemorySize() { | ||
| 91 | size_t limit; | ||
| 92 | size_t size = sizeof(limit); | ||
| 93 | + | ||
| 94 | if (sysctlbyname("kern.ipc.shmmax", &limit, &size, NULL, 0) < 0) { | ||
| 95 | NOTREACHED(); | ||
| 96 | return 0; | ||
| 97 | } | ||
| 98 | + | ||
| 99 | return static_cast<uint64_t>(limit); | ||
| 100 | +} | ||
| 101 | + | ||
| 102 | +SysInfo::HardwareInfo SysInfo::GetHardwareInfoSync() { | ||
| 103 | + HardwareInfo info; | ||
| 104 | + | ||
| 105 | + info.manufacturer = "FreeBSD"; | ||
| 106 | + info.model = HardwareModelName(); | ||
| 107 | + | ||
| 108 | + DCHECK(IsStringUTF8(info.manufacturer)); | ||
| 109 | + DCHECK(IsStringUTF8(info.model)); | ||
| 110 | + | ||
| 111 | + return info; | ||
| 112 | } | ||
| 113 | |||
| 114 | } // namespace base | ||
diff --git a/www/chromium/patches/patch-base_system_sys_info_h b/www/chromium/patches/patch-base_system_sys_info_h new file mode 100644 index 0000000..df3b762 --- /dev/null +++ b/www/chromium/patches/patch-base_system_sys_info_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: base/system/sys_info.h | ||
| 2 | --- base/system/sys_info.h.orig | ||
| 3 | +++ base/system/sys_info.h | ||
| 4 | @@ -212,6 +212,8 @@ class BASE_EXPORT SysInfo { | ||
| 5 | // On Desktop this returns true when memory <= 2GB. | ||
| 6 | static bool IsLowEndDevice(); | ||
| 7 | |||
| 8 | + static uint64_t MaxSharedMemorySize(); | ||
| 9 | + | ||
| 10 | private: | ||
| 11 | FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory); | ||
| 12 | FRIEND_TEST_ALL_PREFIXES(debug::SystemMetricsTest, ParseMeminfo); | ||
| 13 | @@ -222,7 +224,7 @@ class BASE_EXPORT SysInfo { | ||
| 14 | static HardwareInfo GetHardwareInfoSync(); | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 17 | - BUILDFLAG(IS_AIX) | ||
| 18 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 19 | static int64_t AmountOfAvailablePhysicalMemory( | ||
| 20 | const SystemMemoryInfoKB& meminfo); | ||
| 21 | #endif | ||
diff --git a/www/chromium/patches/patch-base_system_sys_info_openbsd_cc b/www/chromium/patches/patch-base_system_sys_info_openbsd_cc new file mode 100644 index 0000000..f796ae8 --- /dev/null +++ b/www/chromium/patches/patch-base_system_sys_info_openbsd_cc | |||
| @@ -0,0 +1,103 @@ | |||
| 1 | Index: base/system/sys_info_openbsd.cc | ||
| 2 | --- base/system/sys_info_openbsd.cc.orig | ||
| 3 | +++ base/system/sys_info_openbsd.cc | ||
| 4 | @@ -12,6 +12,7 @@ | ||
| 5 | |||
| 6 | #include "base/cxx17_backports.h" | ||
| 7 | #include "base/notreached.h" | ||
| 8 | +#include "base/strings/string_util.h" | ||
| 9 | |||
| 10 | namespace { | ||
| 11 | |||
| 12 | @@ -29,9 +30,15 @@ int64_t AmountOfMemory(int pages_name) { | ||
| 13 | |||
| 14 | namespace base { | ||
| 15 | |||
| 16 | +// pledge(2) | ||
| 17 | +int64_t aofpmem = 0; | ||
| 18 | +int64_t aofapmem = 0; | ||
| 19 | +int64_t shmmax = 0; | ||
| 20 | +char cpumodel[256]; | ||
| 21 | + | ||
| 22 | // static | ||
| 23 | int SysInfo::NumberOfProcessors() { | ||
| 24 | - int mib[] = {CTL_HW, HW_NCPU}; | ||
| 25 | + int mib[] = {CTL_HW, HW_NCPUONLINE}; | ||
| 26 | int ncpu; | ||
| 27 | size_t size = sizeof(ncpu); | ||
| 28 | if (sysctl(mib, base::size(mib), &ncpu, &size, NULL, 0) < 0) { | ||
| 29 | @@ -43,38 +50,62 @@ int SysInfo::NumberOfProcessors() { | ||
| 30 | |||
| 31 | // static | ||
| 32 | int64_t SysInfo::AmountOfPhysicalMemoryImpl() { | ||
| 33 | - return AmountOfMemory(_SC_PHYS_PAGES); | ||
| 34 | + // pledge(2) | ||
| 35 | + if (!aofpmem) | ||
| 36 | + aofpmem = AmountOfMemory(_SC_PHYS_PAGES); | ||
| 37 | + return aofpmem; | ||
| 38 | } | ||
| 39 | |||
| 40 | // static | ||
| 41 | int64_t SysInfo::AmountOfAvailablePhysicalMemoryImpl() { | ||
| 42 | // We should add inactive file-backed memory also but there is no such | ||
| 43 | // information from OpenBSD unfortunately. | ||
| 44 | - return AmountOfMemory(_SC_AVPHYS_PAGES); | ||
| 45 | + // pledge(2) | ||
| 46 | + if (!aofapmem) | ||
| 47 | + aofapmem = AmountOfMemory(_SC_AVPHYS_PAGES); | ||
| 48 | + return aofapmem; | ||
| 49 | } | ||
| 50 | |||
| 51 | // static | ||
| 52 | +std::string SysInfo::CPUModelName() { | ||
| 53 | + int mib[] = {CTL_HW, HW_MODEL}; | ||
| 54 | + size_t len = base::size(cpumodel); | ||
| 55 | + | ||
| 56 | + if (cpumodel[0] == '\0') { | ||
| 57 | + if (sysctl(mib, base::size(mib), cpumodel, &len, NULL, 0) < 0) | ||
| 58 | + return std::string(); | ||
| 59 | + } | ||
| 60 | + | ||
| 61 | + return std::string(cpumodel, len - 1); | ||
| 62 | +} | ||
| 63 | + | ||
| 64 | +// static | ||
| 65 | uint64_t SysInfo::MaxSharedMemorySize() { | ||
| 66 | int mib[] = {CTL_KERN, KERN_SHMINFO, KERN_SHMINFO_SHMMAX}; | ||
| 67 | size_t limit; | ||
| 68 | size_t size = sizeof(limit); | ||
| 69 | + // pledge(2) | ||
| 70 | + if (shmmax) | ||
| 71 | + goto out; | ||
| 72 | if (sysctl(mib, base::size(mib), &limit, &size, NULL, 0) < 0) { | ||
| 73 | NOTREACHED(); | ||
| 74 | return 0; | ||
| 75 | } | ||
| 76 | - return static_cast<uint64_t>(limit); | ||
| 77 | + shmmax = static_cast<uint64_t>(limit); | ||
| 78 | +out: | ||
| 79 | + return shmmax; | ||
| 80 | } | ||
| 81 | |||
| 82 | // static | ||
| 83 | -std::string SysInfo::CPUModelName() { | ||
| 84 | - int mib[] = {CTL_HW, HW_MODEL}; | ||
| 85 | - char name[256]; | ||
| 86 | - size_t len = base::size(name); | ||
| 87 | - if (sysctl(mib, base::size(mib), name, &len, NULL, 0) < 0) { | ||
| 88 | - NOTREACHED(); | ||
| 89 | - return std::string(); | ||
| 90 | - } | ||
| 91 | - return name; | ||
| 92 | +SysInfo::HardwareInfo SysInfo::GetHardwareInfoSync() { | ||
| 93 | + HardwareInfo info; | ||
| 94 | + // Set the manufacturer to "OpenBSD" and the model to | ||
| 95 | + // an empty string. | ||
| 96 | + info.manufacturer = "OpenBSD"; | ||
| 97 | + info.model = HardwareModelName(); | ||
| 98 | + DCHECK(IsStringUTF8(info.manufacturer)); | ||
| 99 | + DCHECK(IsStringUTF8(info.model)); | ||
| 100 | + return info; | ||
| 101 | } | ||
| 102 | |||
| 103 | } // namespace base | ||
diff --git a/www/chromium/patches/patch-base_system_sys_info_posix_cc b/www/chromium/patches/patch-base_system_sys_info_posix_cc new file mode 100644 index 0000000..4befd62 --- /dev/null +++ b/www/chromium/patches/patch-base_system_sys_info_posix_cc | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | Index: base/system/sys_info_posix.cc | ||
| 2 | --- base/system/sys_info_posix.cc.orig | ||
| 3 | +++ base/system/sys_info_posix.cc | ||
| 4 | @@ -37,7 +37,7 @@ | ||
| 5 | |||
| 6 | namespace { | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#if !BUILDFLAG(IS_BSD) | ||
| 10 | int NumberOfProcessors() { | ||
| 11 | // sysconf returns the number of "logical" (not "physical") processors on both | ||
| 12 | // Mac and Linux. So we get the number of max available "logical" processors. | ||
| 13 | @@ -77,7 +77,7 @@ int NumberOfProcessors() { | ||
| 14 | |||
| 15 | base::LazyInstance<base::internal::LazySysInfoValue<int, NumberOfProcessors>>:: | ||
| 16 | Leaky g_lazy_number_of_processors = LAZY_INSTANCE_INITIALIZER; | ||
| 17 | -#endif // !BUILDFLAG(IS_OPENBSD) | ||
| 18 | +#endif // !BUILDFLAG(IS_BSD) | ||
| 19 | |||
| 20 | int64_t AmountOfVirtualMemory() { | ||
| 21 | struct rlimit limit; | ||
| 22 | @@ -143,11 +143,11 @@ bool GetDiskSpaceInfo(const base::FilePath& path, | ||
| 23 | |||
| 24 | namespace base { | ||
| 25 | |||
| 26 | -#if !BUILDFLAG(IS_OPENBSD) | ||
| 27 | +#if !BUILDFLAG(IS_BSD) | ||
| 28 | int SysInfo::NumberOfProcessors() { | ||
| 29 | return g_lazy_number_of_processors.Get().value(); | ||
| 30 | } | ||
| 31 | -#endif // !BUILDFLAG(IS_OPENBSD) | ||
| 32 | +#endif // !BUILDFLAG(IS_BSD) | ||
| 33 | |||
| 34 | // static | ||
| 35 | int64_t SysInfo::AmountOfVirtualMemory() { | ||
| 36 | @@ -239,6 +239,8 @@ std::string SysInfo::OperatingSystemArchitecture() { | ||
| 37 | arch = "x86"; | ||
| 38 | } else if (arch == "amd64") { | ||
| 39 | arch = "x86_64"; | ||
| 40 | + } else if (arch == "arm64") { | ||
| 41 | + arch = "aarch64"; | ||
| 42 | } else if (std::string(info.sysname) == "AIX") { | ||
| 43 | arch = "ppc64"; | ||
| 44 | } | ||
diff --git a/www/chromium/patches/patch-base_system_sys_info_unittest_cc b/www/chromium/patches/patch-base_system_sys_info_unittest_cc new file mode 100644 index 0000000..24f16c5 --- /dev/null +++ b/www/chromium/patches/patch-base_system_sys_info_unittest_cc | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | Index: base/system/sys_info_unittest.cc | ||
| 2 | --- base/system/sys_info_unittest.cc.orig | ||
| 3 | +++ base/system/sys_info_unittest.cc | ||
| 4 | @@ -234,12 +234,15 @@ TEST_F(SysInfoTest, GetHardwareInfo) { | ||
| 5 | EXPECT_TRUE(IsStringUTF8(hardware_info->model)); | ||
| 6 | bool empty_result_expected = | ||
| 7 | #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_WIN) || \ | ||
| 8 | - BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | + BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | false; | ||
| 11 | #else | ||
| 12 | true; | ||
| 13 | #endif | ||
| 14 | EXPECT_EQ(hardware_info->manufacturer.empty(), empty_result_expected); | ||
| 15 | +#if BUILDFLAG(IS_BSD) | ||
| 16 | + empty_result_expected = true; | ||
| 17 | +#endif | ||
| 18 | EXPECT_EQ(hardware_info->model.empty(), empty_result_expected); | ||
| 19 | } | ||
| 20 | |||
diff --git a/www/chromium/patches/patch-base_task_thread_pool_environment_config_unittest_cc b/www/chromium/patches/patch-base_task_thread_pool_environment_config_unittest_cc new file mode 100644 index 0000000..880e47c --- /dev/null +++ b/www/chromium/patches/patch-base_task_thread_pool_environment_config_unittest_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/task/thread_pool/environment_config_unittest.cc | ||
| 2 | --- base/task/thread_pool/environment_config_unittest.cc.orig | ||
| 3 | +++ base/task/thread_pool/environment_config_unittest.cc | ||
| 4 | @@ -15,7 +15,7 @@ TEST(ThreadPoolEnvironmentConfig, CanUseBackgroundPrio | ||
| 5 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) | ||
| 6 | EXPECT_TRUE(CanUseBackgroundPriorityForWorkerThread()); | ||
| 7 | #elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_NACL) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_NACL) || BUILDFLAG(IS_BSD) | ||
| 10 | EXPECT_FALSE(CanUseBackgroundPriorityForWorkerThread()); | ||
| 11 | #else | ||
| 12 | #error Platform doesn't match any block | ||
diff --git a/www/chromium/patches/patch-base_test_launcher_test_launcher_cc b/www/chromium/patches/patch-base_test_launcher_test_launcher_cc new file mode 100644 index 0000000..a1d3d7b --- /dev/null +++ b/www/chromium/patches/patch-base_test_launcher_test_launcher_cc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: base/test/launcher/test_launcher.cc | ||
| 2 | --- base/test/launcher/test_launcher.cc.orig | ||
| 3 | +++ base/test/launcher/test_launcher.cc | ||
| 4 | @@ -63,6 +63,7 @@ | ||
| 5 | #include "testing/gtest/include/gtest/gtest.h" | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_POSIX) | ||
| 8 | +#include <signal.h> | ||
| 9 | #include <fcntl.h> | ||
| 10 | |||
| 11 | #include "base/files/file_descriptor_watcher_posix.h" | ||
diff --git a/www/chromium/patches/patch-base_test_test_file_util_linux_cc b/www/chromium/patches/patch-base_test_test_file_util_linux_cc new file mode 100644 index 0000000..2c72908 --- /dev/null +++ b/www/chromium/patches/patch-base_test_test_file_util_linux_cc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: base/test/test_file_util_linux.cc | ||
| 2 | --- base/test/test_file_util_linux.cc.orig | ||
| 3 | +++ base/test/test_file_util_linux.cc | ||
| 4 | @@ -54,8 +54,10 @@ bool EvictFileFromSystemCache(const FilePath& file) { | ||
| 5 | return false; | ||
| 6 | if (fdatasync(fd.get()) != 0) | ||
| 7 | return false; | ||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | if (posix_fadvise(fd.get(), 0, 0, POSIX_FADV_DONTNEED) != 0) | ||
| 10 | return false; | ||
| 11 | +#endif | ||
| 12 | return true; | ||
| 13 | } | ||
| 14 | |||
diff --git a/www/chromium/patches/patch-base_test_test_file_util_posix_cc b/www/chromium/patches/patch-base_test_test_file_util_posix_cc new file mode 100644 index 0000000..4b4d06c --- /dev/null +++ b/www/chromium/patches/patch-base_test_test_file_util_posix_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/test/test_file_util_posix.cc | ||
| 2 | --- base/test/test_file_util_posix.cc.orig | ||
| 3 | +++ base/test/test_file_util_posix.cc | ||
| 4 | @@ -88,7 +88,7 @@ void SyncPageCacheToDisk() { | ||
| 5 | } | ||
| 6 | |||
| 7 | #if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_APPLE) && \ | ||
| 8 | - !BUILDFLAG(IS_ANDROID) | ||
| 9 | + !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_BSD) | ||
| 10 | bool EvictFileFromSystemCache(const FilePath& file) { | ||
| 11 | // There doesn't seem to be a POSIX way to cool the disk cache. | ||
| 12 | NOTIMPLEMENTED(); | ||
diff --git a/www/chromium/patches/patch-base_third_party_libevent_BUILD_gn b/www/chromium/patches/patch-base_third_party_libevent_BUILD_gn new file mode 100644 index 0000000..86dea5d --- /dev/null +++ b/www/chromium/patches/patch-base_third_party_libevent_BUILD_gn | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | Index: base/third_party/libevent/BUILD.gn | ||
| 2 | --- base/third_party/libevent/BUILD.gn.orig | ||
| 3 | +++ base/third_party/libevent/BUILD.gn | ||
| 4 | @@ -43,13 +43,20 @@ static_library("libevent") { | ||
| 5 | "mac/event-config.h", | ||
| 6 | ] | ||
| 7 | include_dirs = [ "mac" ] | ||
| 8 | - } else if (is_linux || is_chromeos) { | ||
| 9 | + } else if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | sources += [ | ||
| 11 | "epoll.c", | ||
| 12 | "linux/config.h", | ||
| 13 | "linux/event-config.h", | ||
| 14 | ] | ||
| 15 | include_dirs = [ "linux" ] | ||
| 16 | + } else if (is_bsd) { | ||
| 17 | + sources += [ | ||
| 18 | + "kqueue.c", | ||
| 19 | + "freebsd/config.h", | ||
| 20 | + "freebsd/event-config.h", | ||
| 21 | + ] | ||
| 22 | + include_dirs = [ "freebsd" ] | ||
| 23 | } else if (is_android) { | ||
| 24 | sources += [ | ||
| 25 | "android/config.h", | ||
diff --git a/www/chromium/patches/patch-base_third_party_libevent_event-config_h b/www/chromium/patches/patch-base_third_party_libevent_event-config_h new file mode 100644 index 0000000..08bda0e --- /dev/null +++ b/www/chromium/patches/patch-base_third_party_libevent_event-config_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/third_party/libevent/event-config.h | ||
| 2 | --- base/third_party/libevent/event-config.h.orig | ||
| 3 | +++ base/third_party/libevent/event-config.h | ||
| 4 | @@ -13,6 +13,8 @@ | ||
| 5 | #include "base/third_party/libevent/linux/event-config.h" | ||
| 6 | #elif defined(__FreeBSD__) | ||
| 7 | #include "base/third_party/libevent/freebsd/event-config.h" | ||
| 8 | +#elif defined(__OpenBSD__) | ||
| 9 | +#include "base/third_party/libevent/openbsd/event-config.h" | ||
| 10 | #elif defined(__sun) | ||
| 11 | #include "base/third_party/libevent/solaris/event-config.h" | ||
| 12 | #elif defined(_AIX) | ||
diff --git a/www/chromium/patches/patch-base_third_party_libevent_openbsd_config_h b/www/chromium/patches/patch-base_third_party_libevent_openbsd_config_h new file mode 100644 index 0000000..94ddc37 --- /dev/null +++ b/www/chromium/patches/patch-base_third_party_libevent_openbsd_config_h | |||
| @@ -0,0 +1,280 @@ | |||
| 1 | Index: base/third_party/libevent/openbsd/config.h | ||
| 2 | --- base/third_party/libevent/openbsd/config.h.orig | ||
| 3 | +++ base/third_party/libevent/openbsd/config.h | ||
| 4 | @@ -0,0 +1,276 @@ | ||
| 5 | +/* config.h. Generated from config.h.in by configure. */ | ||
| 6 | +/* config.h.in. Generated from configure.in by autoheader. */ | ||
| 7 | + | ||
| 8 | +/* Define if clock_gettime is available in libc */ | ||
| 9 | +#define DNS_USE_CPU_CLOCK_FOR_ID 1 | ||
| 10 | + | ||
| 11 | +/* Define is no secure id variant is available */ | ||
| 12 | +/* #undef DNS_USE_GETTIMEOFDAY_FOR_ID */ | ||
| 13 | + | ||
| 14 | +/* Define to 1 if you have the `clock_gettime' function. */ | ||
| 15 | +#define HAVE_CLOCK_GETTIME 1 | ||
| 16 | + | ||
| 17 | +/* Define if /dev/poll is available */ | ||
| 18 | +/* #undef HAVE_DEVPOLL */ | ||
| 19 | + | ||
| 20 | +/* Define to 1 if you have the <dlfcn.h> header file. */ | ||
| 21 | +#define HAVE_DLFCN_H 1 | ||
| 22 | + | ||
| 23 | +/* Define if your system supports the epoll system calls */ | ||
| 24 | +/* #undef HAVE_EPOLL */ | ||
| 25 | + | ||
| 26 | +/* Define to 1 if you have the `epoll_ctl' function. */ | ||
| 27 | +/* #undef HAVE_EPOLL_CTL */ | ||
| 28 | + | ||
| 29 | +/* Define if your system supports event ports */ | ||
| 30 | +/* #undef HAVE_EVENT_PORTS */ | ||
| 31 | + | ||
| 32 | +/* Define to 1 if you have the `fcntl' function. */ | ||
| 33 | +#define HAVE_FCNTL 1 | ||
| 34 | + | ||
| 35 | +/* Define to 1 if you have the <fcntl.h> header file. */ | ||
| 36 | +#define HAVE_FCNTL_H 1 | ||
| 37 | + | ||
| 38 | +/* Define to 1 if the system has the type `fd_mask'. */ | ||
| 39 | +#define HAVE_FD_MASK 1 | ||
| 40 | + | ||
| 41 | +/* Define to 1 if you have the `getaddrinfo' function. */ | ||
| 42 | +#define HAVE_GETADDRINFO 1 | ||
| 43 | + | ||
| 44 | +/* Define to 1 if you have the `getegid' function. */ | ||
| 45 | +#define HAVE_GETEGID 1 | ||
| 46 | + | ||
| 47 | +/* Define to 1 if you have the `geteuid' function. */ | ||
| 48 | +#define HAVE_GETEUID 1 | ||
| 49 | + | ||
| 50 | +/* Define to 1 if you have the `getnameinfo' function. */ | ||
| 51 | +#define HAVE_GETNAMEINFO 1 | ||
| 52 | + | ||
| 53 | +/* Define to 1 if you have the `gettimeofday' function. */ | ||
| 54 | +#define HAVE_GETTIMEOFDAY 1 | ||
| 55 | + | ||
| 56 | +/* Define to 1 if you have the `inet_ntop' function. */ | ||
| 57 | +#define HAVE_INET_NTOP 1 | ||
| 58 | + | ||
| 59 | +/* Define to 1 if you have the <inttypes.h> header file. */ | ||
| 60 | +#define HAVE_INTTYPES_H 1 | ||
| 61 | + | ||
| 62 | +/* Define to 1 if you have the `issetugid' function. */ | ||
| 63 | +#define HAVE_ISSETUGID 1 | ||
| 64 | + | ||
| 65 | +/* Define to 1 if you have the `kqueue' function. */ | ||
| 66 | +#define HAVE_KQUEUE 1 | ||
| 67 | + | ||
| 68 | +/* Define to 1 if you have the `nsl' library (-lnsl). */ | ||
| 69 | +/* #undef HAVE_LIBNSL */ | ||
| 70 | + | ||
| 71 | +/* Define to 1 if you have the `resolv' library (-lresolv). */ | ||
| 72 | +/* #undef HAVE_LIBRESOLV */ | ||
| 73 | + | ||
| 74 | +/* Define to 1 if you have the `rt' library (-lrt). */ | ||
| 75 | +/* #undef HAVE_LIBRT */ | ||
| 76 | + | ||
| 77 | +/* Define to 1 if you have the `socket' library (-lsocket). */ | ||
| 78 | +/* #undef HAVE_LIBSOCKET */ | ||
| 79 | + | ||
| 80 | +/* Define to 1 if you have the <memory.h> header file. */ | ||
| 81 | +#define HAVE_MEMORY_H 1 | ||
| 82 | + | ||
| 83 | +/* Define to 1 if you have the <netinet/in6.h> header file. */ | ||
| 84 | +/* #undef HAVE_NETINET_IN6_H */ | ||
| 85 | + | ||
| 86 | +/* Define to 1 if you have the `poll' function. */ | ||
| 87 | +#define HAVE_POLL 1 | ||
| 88 | + | ||
| 89 | +/* Define to 1 if you have the <poll.h> header file. */ | ||
| 90 | +#define HAVE_POLL_H 1 | ||
| 91 | + | ||
| 92 | +/* Define to 1 if you have the `port_create' function. */ | ||
| 93 | +/* #undef HAVE_PORT_CREATE */ | ||
| 94 | + | ||
| 95 | +/* Define to 1 if you have the <port.h> header file. */ | ||
| 96 | +/* #undef HAVE_PORT_H */ | ||
| 97 | + | ||
| 98 | +/* Define to 1 if you have the `select' function. */ | ||
| 99 | +#define HAVE_SELECT 1 | ||
| 100 | + | ||
| 101 | +/* Define if F_SETFD is defined in <fcntl.h> */ | ||
| 102 | +#define HAVE_SETFD 1 | ||
| 103 | + | ||
| 104 | +/* Define to 1 if you have the `sigaction' function. */ | ||
| 105 | +#define HAVE_SIGACTION 1 | ||
| 106 | + | ||
| 107 | +/* Define to 1 if you have the `signal' function. */ | ||
| 108 | +#define HAVE_SIGNAL 1 | ||
| 109 | + | ||
| 110 | +/* Define to 1 if you have the <signal.h> header file. */ | ||
| 111 | +#define HAVE_SIGNAL_H 1 | ||
| 112 | + | ||
| 113 | +/* Define to 1 if you have the <stdarg.h> header file. */ | ||
| 114 | +#define HAVE_STDARG_H 1 | ||
| 115 | + | ||
| 116 | +/* Define to 1 if you have the <stdint.h> header file. */ | ||
| 117 | +#define HAVE_STDINT_H 1 | ||
| 118 | + | ||
| 119 | +/* Define to 1 if you have the <stdlib.h> header file. */ | ||
| 120 | +#define HAVE_STDLIB_H 1 | ||
| 121 | + | ||
| 122 | +/* Define to 1 if you have the <strings.h> header file. */ | ||
| 123 | +#define HAVE_STRINGS_H 1 | ||
| 124 | + | ||
| 125 | +/* Define to 1 if you have the <string.h> header file. */ | ||
| 126 | +#define HAVE_STRING_H 1 | ||
| 127 | + | ||
| 128 | +/* Define to 1 if you have the `strlcpy' function. */ | ||
| 129 | +#define HAVE_STRLCPY 1 | ||
| 130 | + | ||
| 131 | +/* Define to 1 if you have the `strsep' function. */ | ||
| 132 | +#define HAVE_STRSEP 1 | ||
| 133 | + | ||
| 134 | +/* Define to 1 if you have the `strtok_r' function. */ | ||
| 135 | +#define HAVE_STRTOK_R 1 | ||
| 136 | + | ||
| 137 | +/* Define to 1 if you have the `strtoll' function. */ | ||
| 138 | +#define HAVE_STRTOLL 1 | ||
| 139 | + | ||
| 140 | +/* Define to 1 if the system has the type `struct in6_addr'. */ | ||
| 141 | +#define HAVE_STRUCT_IN6_ADDR 1 | ||
| 142 | + | ||
| 143 | +/* Define to 1 if you have the <sys/devpoll.h> header file. */ | ||
| 144 | +/* #undef HAVE_SYS_DEVPOLL_H */ | ||
| 145 | + | ||
| 146 | +/* Define to 1 if you have the <sys/epoll.h> header file. */ | ||
| 147 | +/* #undef HAVE_SYS_EPOLL_H */ | ||
| 148 | + | ||
| 149 | +/* Define to 1 if you have the <sys/event.h> header file. */ | ||
| 150 | +#define HAVE_SYS_EVENT_H 1 | ||
| 151 | + | ||
| 152 | +/* Define to 1 if you have the <sys/ioctl.h> header file. */ | ||
| 153 | +#define HAVE_SYS_IOCTL_H 1 | ||
| 154 | + | ||
| 155 | +/* Define to 1 if you have the <sys/param.h> header file. */ | ||
| 156 | +#define HAVE_SYS_PARAM_H 1 | ||
| 157 | + | ||
| 158 | +/* Define to 1 if you have the <sys/queue.h> header file. */ | ||
| 159 | +#define HAVE_SYS_QUEUE_H 1 | ||
| 160 | + | ||
| 161 | +/* Define to 1 if you have the <sys/select.h> header file. */ | ||
| 162 | +#define HAVE_SYS_SELECT_H 1 | ||
| 163 | + | ||
| 164 | +/* Define to 1 if you have the <sys/socket.h> header file. */ | ||
| 165 | +#define HAVE_SYS_SOCKET_H 1 | ||
| 166 | + | ||
| 167 | +/* Define to 1 if you have the <sys/stat.h> header file. */ | ||
| 168 | +#define HAVE_SYS_STAT_H 1 | ||
| 169 | + | ||
| 170 | +/* Define to 1 if you have the <sys/time.h> header file. */ | ||
| 171 | +#define HAVE_SYS_TIME_H 1 | ||
| 172 | + | ||
| 173 | +/* Define to 1 if you have the <sys/types.h> header file. */ | ||
| 174 | +#define HAVE_SYS_TYPES_H 1 | ||
| 175 | + | ||
| 176 | +/* Define if TAILQ_FOREACH is defined in <sys/queue.h> */ | ||
| 177 | +#define HAVE_TAILQFOREACH 1 | ||
| 178 | + | ||
| 179 | +/* Define if timeradd is defined in <sys/time.h> */ | ||
| 180 | +#define HAVE_TIMERADD 1 | ||
| 181 | + | ||
| 182 | +/* Define if timerclear is defined in <sys/time.h> */ | ||
| 183 | +#define HAVE_TIMERCLEAR 1 | ||
| 184 | + | ||
| 185 | +/* Define if timercmp is defined in <sys/time.h> */ | ||
| 186 | +#define HAVE_TIMERCMP 1 | ||
| 187 | + | ||
| 188 | +/* Define if timerisset is defined in <sys/time.h> */ | ||
| 189 | +#define HAVE_TIMERISSET 1 | ||
| 190 | + | ||
| 191 | +/* Define to 1 if the system has the type `uint16_t'. */ | ||
| 192 | +#define HAVE_UINT16_T 1 | ||
| 193 | + | ||
| 194 | +/* Define to 1 if the system has the type `uint32_t'. */ | ||
| 195 | +#define HAVE_UINT32_T 1 | ||
| 196 | + | ||
| 197 | +/* Define to 1 if the system has the type `uint64_t'. */ | ||
| 198 | +#define HAVE_UINT64_T 1 | ||
| 199 | + | ||
| 200 | +/* Define to 1 if the system has the type `uint8_t'. */ | ||
| 201 | +#define HAVE_UINT8_T 1 | ||
| 202 | + | ||
| 203 | +/* Define to 1 if you have the <unistd.h> header file. */ | ||
| 204 | +#define HAVE_UNISTD_H 1 | ||
| 205 | + | ||
| 206 | +/* Define to 1 if you have the `vasprintf' function. */ | ||
| 207 | +#define HAVE_VASPRINTF 1 | ||
| 208 | + | ||
| 209 | +/* Define if kqueue works correctly with pipes */ | ||
| 210 | +#define HAVE_WORKING_KQUEUE 1 | ||
| 211 | + | ||
| 212 | +/* Define to the sub-directory in which libtool stores uninstalled libraries. | ||
| 213 | + */ | ||
| 214 | +#define LT_OBJDIR ".libs/" | ||
| 215 | + | ||
| 216 | +/* Numeric representation of the version */ | ||
| 217 | +#define NUMERIC_VERSION 0x01040f00 | ||
| 218 | + | ||
| 219 | +/* Name of package */ | ||
| 220 | +#define PACKAGE "libevent" | ||
| 221 | + | ||
| 222 | +/* Define to the address where bug reports for this package should be sent. */ | ||
| 223 | +#define PACKAGE_BUGREPORT "" | ||
| 224 | + | ||
| 225 | +/* Define to the full name of this package. */ | ||
| 226 | +#define PACKAGE_NAME "" | ||
| 227 | + | ||
| 228 | +/* Define to the full name and version of this package. */ | ||
| 229 | +#define PACKAGE_STRING "" | ||
| 230 | + | ||
| 231 | +/* Define to the one symbol short name of this package. */ | ||
| 232 | +#define PACKAGE_TARNAME "" | ||
| 233 | + | ||
| 234 | +/* Define to the home page for this package. */ | ||
| 235 | +#define PACKAGE_URL "" | ||
| 236 | + | ||
| 237 | +/* Define to the version of this package. */ | ||
| 238 | +#define PACKAGE_VERSION "" | ||
| 239 | + | ||
| 240 | +/* The size of `int', as computed by sizeof. */ | ||
| 241 | +#define SIZEOF_INT 4 | ||
| 242 | + | ||
| 243 | +/* The size of `long', as computed by sizeof. */ | ||
| 244 | +#define SIZEOF_LONG 8 | ||
| 245 | + | ||
| 246 | +/* The size of `long long', as computed by sizeof. */ | ||
| 247 | +#define SIZEOF_LONG_LONG 8 | ||
| 248 | + | ||
| 249 | +/* The size of `short', as computed by sizeof. */ | ||
| 250 | +#define SIZEOF_SHORT 2 | ||
| 251 | + | ||
| 252 | +/* Define to 1 if you have the ANSI C header files. */ | ||
| 253 | +#define STDC_HEADERS 1 | ||
| 254 | + | ||
| 255 | +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ | ||
| 256 | +#define TIME_WITH_SYS_TIME 1 | ||
| 257 | + | ||
| 258 | +/* Version number of package */ | ||
| 259 | +#define VERSION "1.4.15" | ||
| 260 | + | ||
| 261 | +/* Define to appropriate substitue if compiler doesnt have __func__ */ | ||
| 262 | +/* #undef __func__ */ | ||
| 263 | + | ||
| 264 | +/* Define to empty if `const' does not conform to ANSI C. */ | ||
| 265 | +/* #undef const */ | ||
| 266 | + | ||
| 267 | +/* Define to `__inline__' or `__inline' if that's what the C compiler | ||
| 268 | + calls it, or to nothing if 'inline' is not supported under any name. */ | ||
| 269 | +#ifndef __cplusplus | ||
| 270 | +/* #undef inline */ | ||
| 271 | +#endif | ||
| 272 | + | ||
| 273 | +/* Define to `int' if <sys/types.h> does not define. */ | ||
| 274 | +/* #undef pid_t */ | ||
| 275 | + | ||
| 276 | +/* Define to `unsigned int' if <sys/types.h> does not define. */ | ||
| 277 | +/* #undef size_t */ | ||
| 278 | + | ||
| 279 | +/* Define to unsigned int if you dont have it */ | ||
| 280 | +/* #undef socklen_t */ | ||
diff --git a/www/chromium/patches/patch-base_third_party_libevent_openbsd_event-config_h b/www/chromium/patches/patch-base_third_party_libevent_openbsd_event-config_h new file mode 100644 index 0000000..385421c --- /dev/null +++ b/www/chromium/patches/patch-base_third_party_libevent_openbsd_event-config_h | |||
| @@ -0,0 +1,288 @@ | |||
| 1 | Index: base/third_party/libevent/openbsd/event-config.h | ||
| 2 | --- base/third_party/libevent/openbsd/event-config.h.orig | ||
| 3 | +++ base/third_party/libevent/openbsd/event-config.h | ||
| 4 | @@ -0,0 +1,284 @@ | ||
| 5 | +/* event-config.h | ||
| 6 | + * Generated by autoconf; post-processed by libevent. | ||
| 7 | + * Do not edit this file. | ||
| 8 | + * Do not rely on macros in this file existing in later versions. | ||
| 9 | + */ | ||
| 10 | +#ifndef _EVENT_CONFIG_H_ | ||
| 11 | +#define _EVENT_CONFIG_H_ | ||
| 12 | +/* config.h. Generated from config.h.in by configure. */ | ||
| 13 | +/* config.h.in. Generated from configure.in by autoheader. */ | ||
| 14 | + | ||
| 15 | +/* Define if clock_gettime is available in libc */ | ||
| 16 | +#define _EVENT_DNS_USE_CPU_CLOCK_FOR_ID 1 | ||
| 17 | + | ||
| 18 | +/* Define is no secure id variant is available */ | ||
| 19 | +/* #undef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID */ | ||
| 20 | + | ||
| 21 | +/* Define to 1 if you have the `clock_gettime' function. */ | ||
| 22 | +#define _EVENT_HAVE_CLOCK_GETTIME 1 | ||
| 23 | + | ||
| 24 | +/* Define if /dev/poll is available */ | ||
| 25 | +/* #undef _EVENT_HAVE_DEVPOLL */ | ||
| 26 | + | ||
| 27 | +/* Define to 1 if you have the <dlfcn.h> header file. */ | ||
| 28 | +#define _EVENT_HAVE_DLFCN_H 1 | ||
| 29 | + | ||
| 30 | +/* Define if your system supports the epoll system calls */ | ||
| 31 | +/* #undef _EVENT_HAVE_EPOLL */ | ||
| 32 | + | ||
| 33 | +/* Define to 1 if you have the `epoll_ctl' function. */ | ||
| 34 | +/* #undef _EVENT_HAVE_EPOLL_CTL */ | ||
| 35 | + | ||
| 36 | +/* Define if your system supports event ports */ | ||
| 37 | +/* #undef _EVENT_HAVE_EVENT_PORTS */ | ||
| 38 | + | ||
| 39 | +/* Define to 1 if you have the `fcntl' function. */ | ||
| 40 | +#define _EVENT_HAVE_FCNTL 1 | ||
| 41 | + | ||
| 42 | +/* Define to 1 if you have the <fcntl.h> header file. */ | ||
| 43 | +#define _EVENT_HAVE_FCNTL_H 1 | ||
| 44 | + | ||
| 45 | +/* Define to 1 if the system has the type `fd_mask'. */ | ||
| 46 | +#define _EVENT_HAVE_FD_MASK 1 | ||
| 47 | + | ||
| 48 | +/* Define to 1 if you have the `getaddrinfo' function. */ | ||
| 49 | +#define _EVENT_HAVE_GETADDRINFO 1 | ||
| 50 | + | ||
| 51 | +/* Define to 1 if you have the `getegid' function. */ | ||
| 52 | +#define _EVENT_HAVE_GETEGID 1 | ||
| 53 | + | ||
| 54 | +/* Define to 1 if you have the `geteuid' function. */ | ||
| 55 | +#define _EVENT_HAVE_GETEUID 1 | ||
| 56 | + | ||
| 57 | +/* Define to 1 if you have the `getnameinfo' function. */ | ||
| 58 | +#define _EVENT_HAVE_GETNAMEINFO 1 | ||
| 59 | + | ||
| 60 | +/* Define to 1 if you have the `gettimeofday' function. */ | ||
| 61 | +#define _EVENT_HAVE_GETTIMEOFDAY 1 | ||
| 62 | + | ||
| 63 | +/* Define to 1 if you have the `inet_ntop' function. */ | ||
| 64 | +#define _EVENT_HAVE_INET_NTOP 1 | ||
| 65 | + | ||
| 66 | +/* Define to 1 if you have the <inttypes.h> header file. */ | ||
| 67 | +#define _EVENT_HAVE_INTTYPES_H 1 | ||
| 68 | + | ||
| 69 | +/* Define to 1 if you have the `issetugid' function. */ | ||
| 70 | +#define _EVENT_HAVE_ISSETUGID 1 | ||
| 71 | + | ||
| 72 | +/* Define to 1 if you have the `kqueue' function. */ | ||
| 73 | +#define _EVENT_HAVE_KQUEUE 1 | ||
| 74 | + | ||
| 75 | +/* Define to 1 if you have the `nsl' library (-lnsl). */ | ||
| 76 | +/* #undef _EVENT_HAVE_LIBNSL */ | ||
| 77 | + | ||
| 78 | +/* Define to 1 if you have the `resolv' library (-lresolv). */ | ||
| 79 | +/* #undef _EVENT_HAVE_LIBRESOLV */ | ||
| 80 | + | ||
| 81 | +/* Define to 1 if you have the `rt' library (-lrt). */ | ||
| 82 | +/* #undef _EVENT_HAVE_LIBRT */ | ||
| 83 | + | ||
| 84 | +/* Define to 1 if you have the `socket' library (-lsocket). */ | ||
| 85 | +/* #undef _EVENT_HAVE_LIBSOCKET */ | ||
| 86 | + | ||
| 87 | +/* Define to 1 if you have the <memory.h> header file. */ | ||
| 88 | +#define _EVENT_HAVE_MEMORY_H 1 | ||
| 89 | + | ||
| 90 | +/* Define to 1 if you have the <netinet/in6.h> header file. */ | ||
| 91 | +/* #undef _EVENT_HAVE_NETINET_IN6_H */ | ||
| 92 | + | ||
| 93 | +/* Define to 1 if you have the `poll' function. */ | ||
| 94 | +#define _EVENT_HAVE_POLL 1 | ||
| 95 | + | ||
| 96 | +/* Define to 1 if you have the <poll.h> header file. */ | ||
| 97 | +#define _EVENT_HAVE_POLL_H 1 | ||
| 98 | + | ||
| 99 | +/* Define to 1 if you have the `port_create' function. */ | ||
| 100 | +/* #undef _EVENT_HAVE_PORT_CREATE */ | ||
| 101 | + | ||
| 102 | +/* Define to 1 if you have the <port.h> header file. */ | ||
| 103 | +/* #undef _EVENT_HAVE_PORT_H */ | ||
| 104 | + | ||
| 105 | +/* Define to 1 if you have the `select' function. */ | ||
| 106 | +#define _EVENT_HAVE_SELECT 1 | ||
| 107 | + | ||
| 108 | +/* Define if F_SETFD is defined in <fcntl.h> */ | ||
| 109 | +#define _EVENT_HAVE_SETFD 1 | ||
| 110 | + | ||
| 111 | +/* Define to 1 if you have the `sigaction' function. */ | ||
| 112 | +#define _EVENT_HAVE_SIGACTION 1 | ||
| 113 | + | ||
| 114 | +/* Define to 1 if you have the `signal' function. */ | ||
| 115 | +#define _EVENT_HAVE_SIGNAL 1 | ||
| 116 | + | ||
| 117 | +/* Define to 1 if you have the <signal.h> header file. */ | ||
| 118 | +#define _EVENT_HAVE_SIGNAL_H 1 | ||
| 119 | + | ||
| 120 | +/* Define to 1 if you have the <stdarg.h> header file. */ | ||
| 121 | +#define _EVENT_HAVE_STDARG_H 1 | ||
| 122 | + | ||
| 123 | +/* Define to 1 if you have the <stdint.h> header file. */ | ||
| 124 | +#define _EVENT_HAVE_STDINT_H 1 | ||
| 125 | + | ||
| 126 | +/* Define to 1 if you have the <stdlib.h> header file. */ | ||
| 127 | +#define _EVENT_HAVE_STDLIB_H 1 | ||
| 128 | + | ||
| 129 | +/* Define to 1 if you have the <strings.h> header file. */ | ||
| 130 | +#define _EVENT_HAVE_STRINGS_H 1 | ||
| 131 | + | ||
| 132 | +/* Define to 1 if you have the <string.h> header file. */ | ||
| 133 | +#define _EVENT_HAVE_STRING_H 1 | ||
| 134 | + | ||
| 135 | +/* Define to 1 if you have the `strlcpy' function. */ | ||
| 136 | +#define _EVENT_HAVE_STRLCPY 1 | ||
| 137 | + | ||
| 138 | +/* Define to 1 if you have the `strsep' function. */ | ||
| 139 | +#define _EVENT_HAVE_STRSEP 1 | ||
| 140 | + | ||
| 141 | +/* Define to 1 if you have the `strtok_r' function. */ | ||
| 142 | +#define _EVENT_HAVE_STRTOK_R 1 | ||
| 143 | + | ||
| 144 | +/* Define to 1 if you have the `strtoll' function. */ | ||
| 145 | +#define _EVENT_HAVE_STRTOLL 1 | ||
| 146 | + | ||
| 147 | +/* Define to 1 if the system has the type `struct in6_addr'. */ | ||
| 148 | +#define _EVENT_HAVE_STRUCT_IN6_ADDR 1 | ||
| 149 | + | ||
| 150 | +/* Define to 1 if you have the <sys/devpoll.h> header file. */ | ||
| 151 | +/* #undef _EVENT_HAVE_SYS_DEVPOLL_H */ | ||
| 152 | + | ||
| 153 | +/* Define to 1 if you have the <sys/epoll.h> header file. */ | ||
| 154 | +/* #undef _EVENT_HAVE_SYS_EPOLL_H */ | ||
| 155 | + | ||
| 156 | +/* Define to 1 if you have the <sys/event.h> header file. */ | ||
| 157 | +#define _EVENT_HAVE_SYS_EVENT_H 1 | ||
| 158 | + | ||
| 159 | +/* Define to 1 if you have the <sys/ioctl.h> header file. */ | ||
| 160 | +#define _EVENT_HAVE_SYS_IOCTL_H 1 | ||
| 161 | + | ||
| 162 | +/* Define to 1 if you have the <sys/param.h> header file. */ | ||
| 163 | +#define _EVENT_HAVE_SYS_PARAM_H 1 | ||
| 164 | + | ||
| 165 | +/* Define to 1 if you have the <sys/queue.h> header file. */ | ||
| 166 | +#define _EVENT_HAVE_SYS_QUEUE_H 1 | ||
| 167 | + | ||
| 168 | +/* Define to 1 if you have the <sys/select.h> header file. */ | ||
| 169 | +#define _EVENT_HAVE_SYS_SELECT_H 1 | ||
| 170 | + | ||
| 171 | +/* Define to 1 if you have the <sys/socket.h> header file. */ | ||
| 172 | +#define _EVENT_HAVE_SYS_SOCKET_H 1 | ||
| 173 | + | ||
| 174 | +/* Define to 1 if you have the <sys/stat.h> header file. */ | ||
| 175 | +#define _EVENT_HAVE_SYS_STAT_H 1 | ||
| 176 | + | ||
| 177 | +/* Define to 1 if you have the <sys/time.h> header file. */ | ||
| 178 | +#define _EVENT_HAVE_SYS_TIME_H 1 | ||
| 179 | + | ||
| 180 | +/* Define to 1 if you have the <sys/types.h> header file. */ | ||
| 181 | +#define _EVENT_HAVE_SYS_TYPES_H 1 | ||
| 182 | + | ||
| 183 | +/* Define if TAILQ_FOREACH is defined in <sys/queue.h> */ | ||
| 184 | +#define _EVENT_HAVE_TAILQFOREACH 1 | ||
| 185 | + | ||
| 186 | +/* Define if timeradd is defined in <sys/time.h> */ | ||
| 187 | +#define _EVENT_HAVE_TIMERADD 1 | ||
| 188 | + | ||
| 189 | +/* Define if timerclear is defined in <sys/time.h> */ | ||
| 190 | +#define _EVENT_HAVE_TIMERCLEAR 1 | ||
| 191 | + | ||
| 192 | +/* Define if timercmp is defined in <sys/time.h> */ | ||
| 193 | +#define _EVENT_HAVE_TIMERCMP 1 | ||
| 194 | + | ||
| 195 | +/* Define if timerisset is defined in <sys/time.h> */ | ||
| 196 | +#define _EVENT_HAVE_TIMERISSET 1 | ||
| 197 | + | ||
| 198 | +/* Define to 1 if the system has the type `uint16_t'. */ | ||
| 199 | +#define _EVENT_HAVE_UINT16_T 1 | ||
| 200 | + | ||
| 201 | +/* Define to 1 if the system has the type `uint32_t'. */ | ||
| 202 | +#define _EVENT_HAVE_UINT32_T 1 | ||
| 203 | + | ||
| 204 | +/* Define to 1 if the system has the type `uint64_t'. */ | ||
| 205 | +#define _EVENT_HAVE_UINT64_T 1 | ||
| 206 | + | ||
| 207 | +/* Define to 1 if the system has the type `uint8_t'. */ | ||
| 208 | +#define _EVENT_HAVE_UINT8_T 1 | ||
| 209 | + | ||
| 210 | +/* Define to 1 if you have the <unistd.h> header file. */ | ||
| 211 | +#define _EVENT_HAVE_UNISTD_H 1 | ||
| 212 | + | ||
| 213 | +/* Define to 1 if you have the `vasprintf' function. */ | ||
| 214 | +#define _EVENT_HAVE_VASPRINTF 1 | ||
| 215 | + | ||
| 216 | +/* Define if kqueue works correctly with pipes */ | ||
| 217 | +#define _EVENT_HAVE_WORKING_KQUEUE 1 | ||
| 218 | + | ||
| 219 | +/* Define to the sub-directory in which libtool stores uninstalled libraries. | ||
| 220 | + */ | ||
| 221 | +#define _EVENT_LT_OBJDIR ".libs/" | ||
| 222 | + | ||
| 223 | +/* Numeric representation of the version */ | ||
| 224 | +#define _EVENT_NUMERIC_VERSION 0x01040f00 | ||
| 225 | + | ||
| 226 | +/* Name of package */ | ||
| 227 | +#define _EVENT_PACKAGE "libevent" | ||
| 228 | + | ||
| 229 | +/* Define to the address where bug reports for this package should be sent. */ | ||
| 230 | +#define _EVENT_PACKAGE_BUGREPORT "" | ||
| 231 | + | ||
| 232 | +/* Define to the full name of this package. */ | ||
| 233 | +#define _EVENT_PACKAGE_NAME "" | ||
| 234 | + | ||
| 235 | +/* Define to the full name and version of this package. */ | ||
| 236 | +#define _EVENT_PACKAGE_STRING "" | ||
| 237 | + | ||
| 238 | +/* Define to the one symbol short name of this package. */ | ||
| 239 | +#define _EVENT_PACKAGE_TARNAME "" | ||
| 240 | + | ||
| 241 | +/* Define to the home page for this package. */ | ||
| 242 | +#define _EVENT_PACKAGE_URL "" | ||
| 243 | + | ||
| 244 | +/* Define to the version of this package. */ | ||
| 245 | +#define _EVENT_PACKAGE_VERSION "" | ||
| 246 | + | ||
| 247 | +/* The size of `int', as computed by sizeof. */ | ||
| 248 | +#define _EVENT_SIZEOF_INT 4 | ||
| 249 | + | ||
| 250 | +/* The size of `long', as computed by sizeof. */ | ||
| 251 | +#define _EVENT_SIZEOF_LONG 8 | ||
| 252 | + | ||
| 253 | +/* The size of `long long', as computed by sizeof. */ | ||
| 254 | +#define _EVENT_SIZEOF_LONG_LONG 8 | ||
| 255 | + | ||
| 256 | +/* The size of `short', as computed by sizeof. */ | ||
| 257 | +#define _EVENT_SIZEOF_SHORT 2 | ||
| 258 | + | ||
| 259 | +/* Define to 1 if you have the ANSI C header files. */ | ||
| 260 | +#define _EVENT_STDC_HEADERS 1 | ||
| 261 | + | ||
| 262 | +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ | ||
| 263 | +#define _EVENT_TIME_WITH_SYS_TIME 1 | ||
| 264 | + | ||
| 265 | +/* Version number of package */ | ||
| 266 | +#define _EVENT_VERSION "1.4.15" | ||
| 267 | + | ||
| 268 | +/* Define to appropriate substitue if compiler doesnt have __func__ */ | ||
| 269 | +/* #undef _EVENT___func__ */ | ||
| 270 | + | ||
| 271 | +/* Define to empty if `const' does not conform to ANSI C. */ | ||
| 272 | +/* #undef _EVENT_const */ | ||
| 273 | + | ||
| 274 | +/* Define to `__inline__' or `__inline' if that's what the C compiler | ||
| 275 | + calls it, or to nothing if 'inline' is not supported under any name. */ | ||
| 276 | +#ifndef _EVENT___cplusplus | ||
| 277 | +/* #undef _EVENT_inline */ | ||
| 278 | +#endif | ||
| 279 | + | ||
| 280 | +/* Define to `int' if <sys/types.h> does not define. */ | ||
| 281 | +/* #undef _EVENT_pid_t */ | ||
| 282 | + | ||
| 283 | +/* Define to `unsigned int' if <sys/types.h> does not define. */ | ||
| 284 | +/* #undef _EVENT_size_t */ | ||
| 285 | + | ||
| 286 | +/* Define to unsigned int if you dont have it */ | ||
| 287 | +/* #undef _EVENT_socklen_t */ | ||
| 288 | +#endif | ||
diff --git a/www/chromium/patches/patch-base_third_party_symbolize_symbolize_cc b/www/chromium/patches/patch-base_third_party_symbolize_symbolize_cc new file mode 100644 index 0000000..23669ea --- /dev/null +++ b/www/chromium/patches/patch-base_third_party_symbolize_symbolize_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/third_party/symbolize/symbolize.cc | ||
| 2 | --- base/third_party/symbolize/symbolize.cc.orig | ||
| 3 | +++ base/third_party/symbolize/symbolize.cc | ||
| 4 | @@ -114,7 +114,7 @@ _END_GOOGLE_NAMESPACE_ | ||
| 5 | #if defined(HAVE_DLFCN_H) | ||
| 6 | #include <dlfcn.h> | ||
| 7 | #endif | ||
| 8 | -#if BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#if defined(__OpenBSD__) | ||
| 10 | #include <sys/exec_elf.h> | ||
| 11 | #else | ||
| 12 | #include <elf.h> | ||
diff --git a/www/chromium/patches/patch-base_threading_platform_thread_h b/www/chromium/patches/patch-base_threading_platform_thread_h new file mode 100644 index 0000000..a9f8838 --- /dev/null +++ b/www/chromium/patches/patch-base_threading_platform_thread_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/threading/platform_thread.h | ||
| 2 | --- base/threading/platform_thread.h.orig | ||
| 3 | +++ base/threading/platform_thread.h | ||
| 4 | @@ -205,7 +205,7 @@ class BASE_EXPORT PlatformThread { | ||
| 5 | // Returns a realtime period provided by `delegate`. | ||
| 6 | static TimeDelta GetRealtimePeriod(Delegate* delegate); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Toggles a specific thread's priority at runtime. This can be used to | ||
| 11 | // change the priority of a thread in a different process and will fail | ||
| 12 | // if the calling process does not have proper permissions. The | ||
diff --git a/www/chromium/patches/patch-base_threading_platform_thread_linux_cc b/www/chromium/patches/patch-base_threading_platform_thread_linux_cc new file mode 100644 index 0000000..62acd66 --- /dev/null +++ b/www/chromium/patches/patch-base_threading_platform_thread_linux_cc | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | Index: base/threading/platform_thread_linux.cc | ||
| 2 | --- base/threading/platform_thread_linux.cc.orig | ||
| 3 | +++ base/threading/platform_thread_linux.cc | ||
| 4 | @@ -29,7 +29,9 @@ | ||
| 5 | |||
| 6 | #if !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_AIX) | ||
| 7 | #include <pthread.h> | ||
| 8 | +#if !BUILDFLAG(IS_BSD) | ||
| 9 | #include <sys/prctl.h> | ||
| 10 | +#endif | ||
| 11 | #include <sys/resource.h> | ||
| 12 | #include <sys/time.h> | ||
| 13 | #include <sys/types.h> | ||
| 14 | @@ -132,7 +134,7 @@ int sched_setattr(pid_t pid, | ||
| 15 | #endif // !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_AIX) | ||
| 16 | #endif // BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 17 | |||
| 18 | -#if !BUILDFLAG(IS_NACL) | ||
| 19 | +#if !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_BSD) | ||
| 20 | const FilePath::CharType kCgroupDirectory[] = | ||
| 21 | FILE_PATH_LITERAL("/sys/fs/cgroup"); | ||
| 22 | |||
| 23 | @@ -286,7 +288,7 @@ void SetThreadCgroupsForThreadPriority(PlatformThreadI | ||
| 24 | namespace internal { | ||
| 25 | |||
| 26 | namespace { | ||
| 27 | -#if !BUILDFLAG(IS_NACL) | ||
| 28 | +#if !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_BSD) | ||
| 29 | const struct sched_param kRealTimePrio = {8}; | ||
| 30 | #endif | ||
| 31 | } // namespace | ||
| 32 | @@ -299,7 +301,7 @@ const ThreadPriorityToNiceValuePair kThreadPriorityToN | ||
| 33 | }; | ||
| 34 | |||
| 35 | bool CanSetThreadPriorityToRealtimeAudio() { | ||
| 36 | -#if !BUILDFLAG(IS_NACL) | ||
| 37 | +#if !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_BSD) | ||
| 38 | // A non-zero soft-limit on RLIMIT_RTPRIO is required to be allowed to invoke | ||
| 39 | // pthread_setschedparam in SetCurrentThreadPriorityForPlatform(). | ||
| 40 | struct rlimit rlim; | ||
| 41 | @@ -310,7 +312,7 @@ bool CanSetThreadPriorityToRealtimeAudio() { | ||
| 42 | } | ||
| 43 | |||
| 44 | bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority) { | ||
| 45 | -#if !BUILDFLAG(IS_NACL) | ||
| 46 | +#if !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_BSD) | ||
| 47 | // For legacy schedtune interface | ||
| 48 | SetThreadCgroupsForThreadPriority(PlatformThread::CurrentId(), priority); | ||
| 49 | |||
| 50 | @@ -328,7 +330,7 @@ bool SetCurrentThreadPriorityForPlatform(ThreadPriorit | ||
| 51 | } | ||
| 52 | |||
| 53 | absl::optional<ThreadPriority> GetCurrentThreadPriorityForPlatform() { | ||
| 54 | -#if !BUILDFLAG(IS_NACL) | ||
| 55 | +#if !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_BSD) | ||
| 56 | int maybe_sched_rr = 0; | ||
| 57 | struct sched_param maybe_realtime_prio = {0}; | ||
| 58 | if (pthread_getschedparam(pthread_self(), &maybe_sched_rr, | ||
| 59 | @@ -347,7 +349,7 @@ absl::optional<ThreadPriority> GetCurrentThreadPriorit | ||
| 60 | void PlatformThread::SetName(const std::string& name) { | ||
| 61 | ThreadIdNameManager::GetInstance()->SetName(name); | ||
| 62 | |||
| 63 | -#if !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_AIX) | ||
| 64 | +#if !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_AIX) && !BUILDFLAG(IS_BSD) | ||
| 65 | // On linux we can get the thread names to show up in the debugger by setting | ||
| 66 | // the process name for the LWP. We don't want to do this for the main | ||
| 67 | // thread because that would rename the process, causing tools like killall | ||
| 68 | @@ -377,8 +379,10 @@ void PlatformThread::SetThreadPriority(ProcessId proce | ||
| 69 | // priority. | ||
| 70 | CHECK_NE(thread_id, process_id); | ||
| 71 | |||
| 72 | +#if !BUILDFLAG(IS_BSD) | ||
| 73 | // For legacy schedtune interface | ||
| 74 | SetThreadCgroupsForThreadPriority(thread_id, priority); | ||
| 75 | +#endif | ||
| 76 | |||
| 77 | #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 78 | // For upstream uclamp interface. We try both legacy (schedtune, as done | ||
diff --git a/www/chromium/patches/patch-base_threading_platform_thread_posix_cc b/www/chromium/patches/patch-base_threading_platform_thread_posix_cc new file mode 100644 index 0000000..501dfe1 --- /dev/null +++ b/www/chromium/patches/patch-base_threading_platform_thread_posix_cc | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Index: base/threading/platform_thread_posix.cc | ||
| 2 | --- base/threading/platform_thread_posix.cc.orig | ||
| 3 | +++ base/threading/platform_thread_posix.cc | ||
| 4 | @@ -75,7 +75,7 @@ void* ThreadFunc(void* params) { | ||
| 5 | if (!thread_params->joinable) | ||
| 6 | base::DisallowSingleton(); | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_NACL) | ||
| 9 | +#if !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_BSD) | ||
| 10 | #if BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC) | ||
| 11 | internal::PCScan::NotifyThreadCreated(internal::GetStackPointer()); | ||
| 12 | #endif | ||
| 13 | @@ -362,6 +362,9 @@ bool PlatformThread::CanChangeThreadPriority(ThreadPri | ||
| 14 | // static | ||
| 15 | void PlatformThread::SetCurrentThreadPriorityImpl(ThreadPriority priority) { | ||
| 16 | #if BUILDFLAG(IS_NACL) | ||
| 17 | + NOTIMPLEMENTED(); | ||
| 18 | +// avoid pledge(2) violation | ||
| 19 | +#elif BUILDFLAG(IS_BSD) | ||
| 20 | NOTIMPLEMENTED(); | ||
| 21 | #else | ||
| 22 | if (internal::SetCurrentThreadPriorityForPlatform(priority)) | ||
diff --git a/www/chromium/patches/patch-base_threading_platform_thread_unittest_cc b/www/chromium/patches/patch-base_threading_platform_thread_unittest_cc new file mode 100644 index 0000000..712bfdc --- /dev/null +++ b/www/chromium/patches/patch-base_threading_platform_thread_unittest_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: base/threading/platform_thread_unittest.cc | ||
| 2 | --- base/threading/platform_thread_unittest.cc.orig | ||
| 3 | +++ base/threading/platform_thread_unittest.cc | ||
| 4 | @@ -30,7 +30,7 @@ | ||
| 5 | #include "base/time/time.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <pthread.h> | ||
| 11 | #include <sys/syscall.h> | ||
| 12 | #include <sys/types.h> | ||
| 13 | @@ -319,7 +319,7 @@ TEST(PlatformThreadTest, | ||
| 14 | // and hardcodes what we know. Please inform scheduler-dev@chromium.org if this | ||
| 15 | // proprerty changes for a given platform. | ||
| 16 | TEST(PlatformThreadTest, CanChangeThreadPriority) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // On Ubuntu, RLIMIT_NICE and RLIMIT_RTPRIO are 0 by default, so we won't be | ||
| 20 | // able to increase priority to any level. | ||
| 21 | constexpr bool kCanIncreasePriority = false; | ||
| 22 | @@ -417,7 +417,7 @@ TEST(PlatformThreadTest, SetHugeThreadName) { | ||
| 23 | TEST(PlatformThreadTest, GetDefaultThreadStackSize) { | ||
| 24 | size_t stack_size = PlatformThread::GetDefaultThreadStackSize(); | ||
| 25 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_IOS) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 26 | - ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ | ||
| 27 | + ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && \ | ||
| 28 | !defined(THREAD_SANITIZER)) || \ | ||
| 29 | (BUILDFLAG(IS_ANDROID) && !defined(ADDRESS_SANITIZER)) | ||
| 30 | EXPECT_EQ(0u, stack_size); | ||
| 31 | @@ -578,12 +578,16 @@ INSTANTIATE_TEST_SUITE_P( | ||
| 32 | |||
| 33 | #endif // BUILDFLAG(IS_APPLE) | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | |||
| 38 | namespace { | ||
| 39 | |||
| 40 | bool IsTidCacheCorrect() { | ||
| 41 | +#if BUILDFLAG(IS_BSD) | ||
| 42 | + return PlatformThread::CurrentId() == reinterpret_cast<int64_t>(pthread_self()); | ||
| 43 | +#else | ||
| 44 | return PlatformThread::CurrentId() == syscall(__NR_gettid); | ||
| 45 | +#endif | ||
| 46 | } | ||
| 47 | |||
| 48 | void* CheckTidCacheCorrectWrapper(void*) { | ||
diff --git a/www/chromium/patches/patch-base_time_time_cc b/www/chromium/patches/patch-base_time_time_cc new file mode 100644 index 0000000..f19f6e5 --- /dev/null +++ b/www/chromium/patches/patch-base_time_time_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/time/time.cc | ||
| 2 | --- base/time/time.cc.orig | ||
| 3 | +++ base/time/time.cc | ||
| 4 | @@ -6,7 +6,7 @@ | ||
| 5 | |||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // time.h is a widely included header and its size impacts build time. | ||
| 11 | // Try not to raise this limit unless necessary. See | ||
| 12 | // https://chromium.googlesource.com/chromium/src/+/HEAD/docs/wmax_tokens.md | ||
diff --git a/www/chromium/patches/patch-base_trace_event_malloc_dump_provider_cc b/www/chromium/patches/patch-base_trace_event_malloc_dump_provider_cc new file mode 100644 index 0000000..fad433a --- /dev/null +++ b/www/chromium/patches/patch-base_trace_event_malloc_dump_provider_cc | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Index: base/trace_event/malloc_dump_provider.cc | ||
| 2 | --- base/trace_event/malloc_dump_provider.cc.orig | ||
| 3 | +++ base/trace_event/malloc_dump_provider.cc | ||
| 4 | @@ -23,6 +23,8 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_APPLE) | ||
| 7 | #include <malloc/malloc.h> | ||
| 8 | +#elif defined(OS_BSD) | ||
| 9 | +#include <stdlib.h> | ||
| 10 | #else | ||
| 11 | #include <malloc.h> | ||
| 12 | #endif | ||
| 13 | @@ -220,6 +222,9 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDump | ||
| 14 | &allocated_objects_count); | ||
| 15 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 16 | // TODO(fuchsia): Port, see https://crbug.com/706592. | ||
| 17 | +#elif defined(OS_BSD) | ||
| 18 | + total_virtual_size = 0; | ||
| 19 | + allocated_objects_size = 0; | ||
| 20 | #else | ||
| 21 | #if defined(__GLIBC__) && defined(__GLIBC_PREREQ) | ||
| 22 | #if __GLIBC_PREREQ(2, 33) | ||
diff --git a/www/chromium/patches/patch-base_trace_event_memory_dump_manager_cc b/www/chromium/patches/patch-base_trace_event_memory_dump_manager_cc new file mode 100644 index 0000000..bb45ac7 --- /dev/null +++ b/www/chromium/patches/patch-base_trace_event_memory_dump_manager_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/trace_event/memory_dump_manager.cc | ||
| 2 | --- base/trace_event/memory_dump_manager.cc.orig | ||
| 3 | +++ base/trace_event/memory_dump_manager.cc | ||
| 4 | @@ -82,7 +82,7 @@ const char* const MemoryDumpManager::kSystemAllocatorP | ||
| 5 | #if defined(MALLOC_MEMORY_TRACING_SUPPORTED) | ||
| 6 | MallocDumpProvider::kAllocatedObjects; | ||
| 7 | #else | ||
| 8 | - nullptr; | ||
| 9 | + ""; | ||
| 10 | #endif | ||
| 11 | |||
| 12 | // static | ||
diff --git a/www/chromium/patches/patch-base_trace_event_process_memory_dump_cc b/www/chromium/patches/patch-base_trace_event_process_memory_dump_cc new file mode 100644 index 0000000..7c7e029 --- /dev/null +++ b/www/chromium/patches/patch-base_trace_event_process_memory_dump_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: base/trace_event/process_memory_dump.cc | ||
| 2 | --- base/trace_event/process_memory_dump.cc.orig | ||
| 3 | +++ base/trace_event/process_memory_dump.cc | ||
| 4 | @@ -105,7 +105,7 @@ absl::optional<size_t> ProcessMemoryDump::CountResiden | ||
| 5 | #if BUILDFLAG(IS_WIN) | ||
| 6 | std::unique_ptr<PSAPI_WORKING_SET_EX_INFORMATION[]> vec( | ||
| 7 | new PSAPI_WORKING_SET_EX_INFORMATION[max_vec_size]); | ||
| 8 | -#elif BUILDFLAG(IS_APPLE) | ||
| 9 | +#elif BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) | ||
| 10 | std::unique_ptr<char[]> vec(new char[max_vec_size]); | ||
| 11 | #elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA) | ||
| 12 | std::unique_ptr<unsigned char[]> vec(new unsigned char[max_vec_size]); | ||
| 13 | @@ -130,7 +130,7 @@ absl::optional<size_t> ProcessMemoryDump::CountResiden | ||
| 14 | |||
| 15 | for (size_t i = 0; i < page_count; i++) | ||
| 16 | resident_page_count += vec[i].VirtualAttributes.Valid; | ||
| 17 | -#elif BUILDFLAG(IS_FUCHSIA) | ||
| 18 | +#elif BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | // TODO(fuchsia): Port, see https://crbug.com/706592. | ||
| 20 | #elif BUILDFLAG(IS_APPLE) | ||
| 21 | // mincore in MAC does not fail with EAGAIN. | ||
diff --git a/www/chromium/patches/patch-base_tracing_trace_time_cc b/www/chromium/patches/patch-base_tracing_trace_time_cc new file mode 100644 index 0000000..9724f03 --- /dev/null +++ b/www/chromium/patches/patch-base_tracing_trace_time_cc | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | Index: base/tracing/trace_time.cc | ||
| 2 | --- base/tracing/trace_time.cc.orig | ||
| 3 | +++ base/tracing/trace_time.cc | ||
| 4 | @@ -8,13 +8,17 @@ | ||
| 5 | #include "build/build_config.h" | ||
| 6 | #include "third_party/perfetto/include/perfetto/base/time.h" | ||
| 7 | |||
| 8 | +#if BUILDFLAG(IS_FREEBSD) | ||
| 9 | +#define CLOCK_BOOTTIME CLOCK_UPTIME | ||
| 10 | +#endif | ||
| 11 | + | ||
| 12 | namespace base { | ||
| 13 | namespace tracing { | ||
| 14 | |||
| 15 | int64_t TraceBootTicksNow() { | ||
| 16 | // On Windows and Mac, TRACE_TIME_TICKS_NOW() behaves like boottime already. | ||
| 17 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 18 | - BUILDFLAG(IS_FUCHSIA) | ||
| 19 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 20 | struct timespec ts; | ||
| 21 | int res = clock_gettime(CLOCK_BOOTTIME, &ts); | ||
| 22 | if (res != -1) | ||
| 23 | @@ -24,4 +28,4 @@ int64_t TraceBootTicksNow() { | ||
| 24 | } | ||
| 25 | |||
| 26 | } // namespace tracing | ||
| 27 | -} // namespace base | ||
| 28 | \ No newline at end of file | ||
| 29 | +} // namespace base | ||
diff --git a/www/chromium/patches/patch-base_tracing_trace_time_h b/www/chromium/patches/patch-base_tracing_trace_time_h new file mode 100644 index 0000000..860b56a --- /dev/null +++ b/www/chromium/patches/patch-base_tracing_trace_time_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: base/tracing/trace_time.h | ||
| 2 | --- base/tracing/trace_time.h.orig | ||
| 3 | +++ base/tracing/trace_time.h | ||
| 4 | @@ -12,7 +12,7 @@ namespace base { | ||
| 5 | namespace tracing { | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | // Linux, Android, and Fuchsia all use CLOCK_MONOTONIC. See crbug.com/166153 | ||
| 11 | // about efforts to unify base::TimeTicks across all platforms. | ||
| 12 | constexpr perfetto::protos::pbzero::BuiltinClock kTraceClockId = | ||
diff --git a/www/chromium/patches/patch-build_config_BUILDCONFIG_gn b/www/chromium/patches/patch-build_config_BUILDCONFIG_gn new file mode 100644 index 0000000..c701339 --- /dev/null +++ b/www/chromium/patches/patch-build_config_BUILDCONFIG_gn | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | Index: build/config/BUILDCONFIG.gn | ||
| 2 | --- build/config/BUILDCONFIG.gn.orig | ||
| 3 | +++ build/config/BUILDCONFIG.gn | ||
| 4 | @@ -136,7 +136,8 @@ declare_args() { | ||
| 5 | is_official_build = false | ||
| 6 | |||
| 7 | # Set to true when compiling with the Clang compiler. | ||
| 8 | - is_clang = current_os != "linux" || | ||
| 9 | + is_clang = current_os != "linux" || current_os == "openbsd" || | ||
| 10 | + current_os == "freebsd" || | ||
| 11 | (current_cpu != "s390x" && current_cpu != "s390" && | ||
| 12 | current_cpu != "ppc64" && current_cpu != "ppc" && | ||
| 13 | current_cpu != "mips" && current_cpu != "mips64" && | ||
| 14 | @@ -218,6 +219,10 @@ if (host_toolchain == "") { | ||
| 15 | host_toolchain = "//build/toolchain/aix:$host_cpu" | ||
| 16 | } else if (host_os == "zos") { | ||
| 17 | host_toolchain = "//build/toolchain/zos:$host_cpu" | ||
| 18 | + } else if (host_os == "openbsd") { | ||
| 19 | + host_toolchain = "//build/toolchain/openbsd:clang_$host_cpu" | ||
| 20 | + } else if (host_os == "freebsd") { | ||
| 21 | + host_toolchain = "//build/toolchain/freebsd:clang_$host_cpu" | ||
| 22 | } else { | ||
| 23 | assert(false, "Unsupported host_os: $host_os") | ||
| 24 | } | ||
| 25 | @@ -262,6 +267,8 @@ if (target_os == "android") { | ||
| 26 | _default_toolchain = "//build/toolchain/aix:$target_cpu" | ||
| 27 | } else if (target_os == "zos") { | ||
| 28 | _default_toolchain = "//build/toolchain/zos:$target_cpu" | ||
| 29 | +} else if (target_os == "openbsd" || target_os == "freebsd") { | ||
| 30 | + _default_toolchain = host_toolchain | ||
| 31 | } else { | ||
| 32 | assert(false, "Unsupported target_os: $target_os") | ||
| 33 | } | ||
| 34 | @@ -296,7 +303,11 @@ is_android = current_os == "android" | ||
| 35 | is_chromeos = current_os == "chromeos" | ||
| 36 | is_fuchsia = current_os == "fuchsia" | ||
| 37 | is_ios = current_os == "ios" | ||
| 38 | -is_linux = current_os == "linux" | ||
| 39 | +is_linux = current_os == "linux" || current_os == "openbsd" || | ||
| 40 | + current_os == "freebsd" | ||
| 41 | +is_openbsd = current_os == "openbsd" | ||
| 42 | +is_freebsd = current_os == "freebsd" | ||
| 43 | +is_bsd = current_os == "openbsd" || current_os == "freebsd" | ||
| 44 | is_mac = current_os == "mac" | ||
| 45 | is_nacl = current_os == "nacl" | ||
| 46 | is_win = current_os == "win" || current_os == "winuwp" | ||
diff --git a/www/chromium/patches/patch-build_config_BUILD_gn b/www/chromium/patches/patch-build_config_BUILD_gn new file mode 100644 index 0000000..84ea981 --- /dev/null +++ b/www/chromium/patches/patch-build_config_BUILD_gn | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Index: build/config/BUILD.gn | ||
| 2 | --- build/config/BUILD.gn.orig | ||
| 3 | +++ build/config/BUILD.gn | ||
| 4 | @@ -218,13 +218,17 @@ config("default_libs") { | ||
| 5 | "CoreText.framework", | ||
| 6 | "Foundation.framework", | ||
| 7 | ] | ||
| 8 | - } else if (is_linux || is_chromeos) { | ||
| 9 | + } else if ((is_linux && !is_bsd) || is_chromeos) { | ||
| 10 | libs = [ | ||
| 11 | "dl", | ||
| 12 | "pthread", | ||
| 13 | "rt", | ||
| 14 | ] | ||
| 15 | - } | ||
| 16 | + } else if (is_bsd) { | ||
| 17 | + libs = [ | ||
| 18 | + "pthread", | ||
| 19 | + ] | ||
| 20 | + } | ||
| 21 | } | ||
| 22 | |||
| 23 | group("common_deps") { | ||
diff --git a/www/chromium/patches/patch-build_config_compiler_BUILD_gn b/www/chromium/patches/patch-build_config_compiler_BUILD_gn new file mode 100644 index 0000000..58c9625 --- /dev/null +++ b/www/chromium/patches/patch-build_config_compiler_BUILD_gn | |||
| @@ -0,0 +1,114 @@ | |||
| 1 | Index: build/config/compiler/BUILD.gn | ||
| 2 | --- build/config/compiler/BUILD.gn.orig | ||
| 3 | +++ build/config/compiler/BUILD.gn | ||
| 4 | @@ -236,13 +236,16 @@ config("default_include_dirs") { | ||
| 5 | # Compiler instrumentation can introduce dependencies in DSOs to symbols in | ||
| 6 | # the executable they are loaded into, so they are unresolved at link-time. | ||
| 7 | config("no_unresolved_symbols") { | ||
| 8 | - if (!using_sanitizer && | ||
| 9 | + if (!using_sanitizer && !is_bsd && | ||
| 10 | (is_linux || is_chromeos || is_android || is_fuchsia)) { | ||
| 11 | ldflags = [ | ||
| 12 | "-Wl,-z,defs", | ||
| 13 | "-Wl,--as-needed", | ||
| 14 | ] | ||
| 15 | } | ||
| 16 | + if (current_cpu == "x86" && is_openbsd) { | ||
| 17 | + ldflags = [ "-Wl,-z,notext" ] | ||
| 18 | + } | ||
| 19 | } | ||
| 20 | |||
| 21 | # compiler --------------------------------------------------------------------- | ||
| 22 | @@ -452,6 +455,10 @@ config("compiler") { | ||
| 23 | } | ||
| 24 | } | ||
| 25 | |||
| 26 | + if (is_openbsd) { | ||
| 27 | + ldflags += [ "-Wl,-z,wxneeded" ] | ||
| 28 | + } | ||
| 29 | + | ||
| 30 | # Linux-specific compiler flags setup. | ||
| 31 | # ------------------------------------ | ||
| 32 | if ((is_posix || is_fuchsia) && !is_apple && use_lld) { | ||
| 33 | @@ -534,7 +541,7 @@ config("compiler") { | ||
| 34 | ldflags += [ "-Wl,-z,keep-text-section-prefix" ] | ||
| 35 | } | ||
| 36 | |||
| 37 | - if (is_clang && !is_nacl && current_os != "zos") { | ||
| 38 | + if (is_clang && !is_nacl && current_os != "zos" && !is_bsd) { | ||
| 39 | cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ] | ||
| 40 | |||
| 41 | # TODO(hans): Remove this once Clang generates better optimized debug info | ||
| 42 | @@ -908,7 +915,7 @@ config("compiler_cpu_abi") { | ||
| 43 | ] | ||
| 44 | } | ||
| 45 | } else if (current_cpu == "arm") { | ||
| 46 | - if (is_clang && !is_android && !is_nacl) { | ||
| 47 | + if (is_clang && !is_android && !is_nacl && !is_bsd) { | ||
| 48 | cflags += [ "--target=arm-linux-gnueabihf" ] | ||
| 49 | ldflags += [ "--target=arm-linux-gnueabihf" ] | ||
| 50 | } | ||
| 51 | @@ -922,7 +929,7 @@ config("compiler_cpu_abi") { | ||
| 52 | cflags += [ "-mtune=$arm_tune" ] | ||
| 53 | } | ||
| 54 | } else if (current_cpu == "arm64") { | ||
| 55 | - if (is_clang && !is_android && !is_nacl && !is_fuchsia) { | ||
| 56 | + if (is_clang && !is_android && !is_nacl && !is_fuchsia && !is_bsd) { | ||
| 57 | cflags += [ "--target=aarch64-linux-gnu" ] | ||
| 58 | ldflags += [ "--target=aarch64-linux-gnu" ] | ||
| 59 | } | ||
| 60 | @@ -1243,7 +1250,7 @@ config("compiler_deterministic") { | ||
| 61 | # different build directory like "out/feature_a" and "out/feature_b" if | ||
| 62 | # we build same files with same compile flag. | ||
| 63 | # Other paths are already given in relative, no need to normalize them. | ||
| 64 | - if (is_nacl) { | ||
| 65 | + if (is_nacl || is_bsd) { | ||
| 66 | # TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here. | ||
| 67 | cflags += [ | ||
| 68 | "-Xclang", | ||
| 69 | @@ -1533,7 +1540,7 @@ config("default_warnings") { | ||
| 70 | "-Wno-ignored-pragma-optimize", | ||
| 71 | ] | ||
| 72 | |||
| 73 | - if (is_chromeos || default_toolchain == "//build/toolchain/cros:target") { | ||
| 74 | + if (is_chromeos || default_toolchain == "//build/toolchain/cros:target" || is_bsd) { | ||
| 75 | # TODO(https://crbug.com/1016945): Re-enable once ChromeOS toolchain is up to date | ||
| 76 | cflags += [ "-Wno-builtin-assume-aligned-alignment" ] | ||
| 77 | } | ||
| 78 | @@ -1725,7 +1732,7 @@ config("no_chromium_code") { | ||
| 79 | # third-party libraries. | ||
| 80 | "-Wno-c++11-narrowing", | ||
| 81 | ] | ||
| 82 | - if (!is_nacl) { | ||
| 83 | + if (!is_nacl && !is_freebsd) { | ||
| 84 | cflags += [ | ||
| 85 | # Disabled for similar reasons as -Wunused-variable. | ||
| 86 | "-Wno-unused-but-set-variable", | ||
| 87 | @@ -2239,7 +2246,7 @@ config("afdo_optimize_size") { | ||
| 88 | # There are some targeted places that AFDO regresses, so we provide a separate | ||
| 89 | # config to allow AFDO to be disabled per-target. | ||
| 90 | config("afdo") { | ||
| 91 | - if (is_clang) { | ||
| 92 | + if (is_clang && !is_bsd) { | ||
| 93 | cflags = [] | ||
| 94 | if (clang_emit_debug_info_for_profiling) { | ||
| 95 | # Add the following flags to generate debug info for profiling. | ||
| 96 | @@ -2255,7 +2262,7 @@ config("afdo") { | ||
| 97 | cflags += [ "-fprofile-sample-use=${rebased_clang_sample_profile}" ] | ||
| 98 | inputs = [ _clang_sample_profile ] | ||
| 99 | } | ||
| 100 | - } else if (auto_profile_path != "" && is_a_target_toolchain) { | ||
| 101 | + } else if (auto_profile_path != "" && is_a_target_toolchain && !is_bsd) { | ||
| 102 | cflags = [ "-fauto-profile=${auto_profile_path}" ] | ||
| 103 | inputs = [ auto_profile_path ] | ||
| 104 | } | ||
| 105 | @@ -2398,7 +2405,8 @@ config("symbols") { | ||
| 106 | } | ||
| 107 | } | ||
| 108 | |||
| 109 | - if (is_clang && (!is_nacl || is_nacl_saigo) && current_os != "zos") { | ||
| 110 | + if (is_clang && (!is_nacl || is_nacl_saigo) && current_os != "zos" && | ||
| 111 | + !is_bsd) { | ||
| 112 | if (is_apple) { | ||
| 113 | # TODO(https://crbug.com/1050118): Investigate missing debug info on mac. | ||
| 114 | # Make sure we don't use constructor homing on mac. | ||
diff --git a/www/chromium/patches/patch-build_config_compiler_pgo_pgo_gni b/www/chromium/patches/patch-build_config_compiler_pgo_pgo_gni new file mode 100644 index 0000000..4fe10dd --- /dev/null +++ b/www/chromium/patches/patch-build_config_compiler_pgo_pgo_gni | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: build/config/compiler/pgo/pgo.gni | ||
| 2 | --- build/config/compiler/pgo/pgo.gni.orig | ||
| 3 | +++ build/config/compiler/pgo/pgo.gni | ||
| 4 | @@ -16,7 +16,7 @@ declare_args() { | ||
| 5 | # TODO(crbug.com/1052397): Remove chromeos_is_browser_only once | ||
| 6 | # target_os switch for lacros-chrome is completed. | ||
| 7 | (is_win || is_mac || | ||
| 8 | - (is_linux && !chromeos_is_browser_only && !is_chromecast))) { | ||
| 9 | + (is_linux && !chromeos_is_browser_only && !is_chromecast && !is_bsd))) { | ||
| 10 | chrome_pgo_phase = 2 | ||
| 11 | } | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-build_config_linux_BUILD_gn b/www/chromium/patches/patch-build_config_linux_BUILD_gn new file mode 100644 index 0000000..4d775ef --- /dev/null +++ b/www/chromium/patches/patch-build_config_linux_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: build/config/linux/BUILD.gn | ||
| 2 | --- build/config/linux/BUILD.gn.orig | ||
| 3 | +++ build/config/linux/BUILD.gn | ||
| 4 | @@ -42,7 +42,7 @@ config("runtime_library") { | ||
| 5 | |||
| 6 | if ((!(is_chromeos_ash || is_chromeos_lacros) || | ||
| 7 | default_toolchain != "//build/toolchain/cros:target") && | ||
| 8 | - (!use_custom_libcxx || current_cpu == "mipsel")) { | ||
| 9 | + (!use_custom_libcxx || current_cpu == "mipsel") && !is_bsd) { | ||
| 10 | libs = [ "atomic" ] | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-build_config_linux_pkg-config_py b/www/chromium/patches/patch-build_config_linux_pkg-config_py new file mode 100644 index 0000000..5862bbc --- /dev/null +++ b/www/chromium/patches/patch-build_config_linux_pkg-config_py | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: build/config/linux/pkg-config.py | ||
| 2 | --- build/config/linux/pkg-config.py.orig | ||
| 3 | +++ build/config/linux/pkg-config.py | ||
| 4 | @@ -109,7 +109,7 @@ def main(): | ||
| 5 | # If this is run on non-Linux platforms, just return nothing and indicate | ||
| 6 | # success. This allows us to "kind of emulate" a Linux build from other | ||
| 7 | # platforms. | ||
| 8 | - if "linux" not in sys.platform: | ||
| 9 | + if not sys.platform.startswith(tuple(['linux', 'openbsd', 'freebsd'])): | ||
| 10 | print("[[],[],[],[],[]]") | ||
| 11 | return 0 | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-build_config_ozone_gni b/www/chromium/patches/patch-build_config_ozone_gni new file mode 100644 index 0000000..bf0d59c --- /dev/null +++ b/www/chromium/patches/patch-build_config_ozone_gni | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Index: build/config/ozone.gni | ||
| 2 | --- build/config/ozone.gni.orig | ||
| 3 | +++ build/config/ozone.gni | ||
| 4 | @@ -91,9 +91,17 @@ declare_args() { | ||
| 5 | } else if (is_chromeos_lacros) { | ||
| 6 | ozone_platform = "wayland" | ||
| 7 | ozone_platform_wayland = true | ||
| 8 | - } else if (is_linux) { | ||
| 9 | + } else if (is_linux && !is_bsd) { | ||
| 10 | ozone_platform = "x11" | ||
| 11 | ozone_platform_wayland = true | ||
| 12 | + ozone_platform_x11 = true | ||
| 13 | + } else if (is_openbsd) { | ||
| 14 | + ozone_platform = "x11" | ||
| 15 | + ozone_platform_wayland = false | ||
| 16 | + ozone_platform_x11 = true | ||
| 17 | + } else if (is_freebsd) { | ||
| 18 | + ozone_platform = "x11" | ||
| 19 | + ozone_platform_wayland = false | ||
| 20 | ozone_platform_x11 = true | ||
| 21 | } else if (is_win) { | ||
| 22 | ozone_platform = "windows" | ||
diff --git a/www/chromium/patches/patch-build_config_rust_gni b/www/chromium/patches/patch-build_config_rust_gni new file mode 100644 index 0000000..14c3656 --- /dev/null +++ b/www/chromium/patches/patch-build_config_rust_gni | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: build/config/rust.gni | ||
| 2 | --- build/config/rust.gni.orig | ||
| 3 | +++ build/config/rust.gni | ||
| 4 | @@ -116,7 +116,7 @@ if (enable_rust) { | ||
| 5 | rust_sysroot = "//third_party/rust-toolchain" | ||
| 6 | use_unverified_rust_toolchain = false | ||
| 7 | } else { | ||
| 8 | - if (host_os != "linux") { | ||
| 9 | + if (host_os != "linux" && host_os != "openbsd" && host_os != "freebsd") { | ||
| 10 | assert(false, | ||
| 11 | "Attempt to use Android Rust toolchain on an unsupported platform") | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-build_config_v8_target_cpu_gni b/www/chromium/patches/patch-build_config_v8_target_cpu_gni new file mode 100644 index 0000000..2175937 --- /dev/null +++ b/www/chromium/patches/patch-build_config_v8_target_cpu_gni | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: build/config/v8_target_cpu.gni | ||
| 2 | --- build/config/v8_target_cpu.gni.orig | ||
| 3 | +++ build/config/v8_target_cpu.gni | ||
| 4 | @@ -36,6 +36,10 @@ declare_args() { | ||
| 5 | if (v8_target_cpu == "") { | ||
| 6 | if (current_toolchain == "//build/toolchain/linux:clang_x64_v8_arm64") { | ||
| 7 | v8_target_cpu = "arm64" | ||
| 8 | + } else if (current_toolchain == "//build/toolchain/openbsd:clang_arm64") { | ||
| 9 | + v8_target_cpu = "arm64" | ||
| 10 | + } else if (current_toolchain == "//build/toolchain/freebsd:clang_arm64") { | ||
| 11 | + v8_target_cpu = "arm64" | ||
| 12 | } else if (current_toolchain == "//build/toolchain/linux:clang_x86_v8_arm") { | ||
| 13 | v8_target_cpu = "arm" | ||
| 14 | } else if (current_toolchain == | ||
diff --git a/www/chromium/patches/patch-build_detect_host_arch_py b/www/chromium/patches/patch-build_detect_host_arch_py new file mode 100644 index 0000000..a2f3a96 --- /dev/null +++ b/www/chromium/patches/patch-build_detect_host_arch_py | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: build/detect_host_arch.py | ||
| 2 | --- build/detect_host_arch.py.orig | ||
| 3 | +++ build/detect_host_arch.py | ||
| 4 | @@ -21,6 +21,8 @@ def HostArch(): | ||
| 5 | host_arch = 'ia32' | ||
| 6 | elif host_arch in ['x86_64', 'amd64']: | ||
| 7 | host_arch = 'x64' | ||
| 8 | + elif host_arch.startswith('arm64'): | ||
| 9 | + host_arch = 'arm64' | ||
| 10 | elif host_arch.startswith('arm'): | ||
| 11 | host_arch = 'arm' | ||
| 12 | elif host_arch.startswith('aarch64'): | ||
diff --git a/www/chromium/patches/patch-build_gn_run_binary_py b/www/chromium/patches/patch-build_gn_run_binary_py new file mode 100644 index 0000000..aa81c8f --- /dev/null +++ b/www/chromium/patches/patch-build_gn_run_binary_py | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: build/gn_run_binary.py | ||
| 2 | --- build/gn_run_binary.py.orig | ||
| 3 | +++ build/gn_run_binary.py | ||
| 4 | @@ -24,7 +24,7 @@ if not os.path.isabs(path): | ||
| 5 | # The rest of the arguments are passed directly to the executable. | ||
| 6 | args = [path] + sys.argv[2:] | ||
| 7 | |||
| 8 | -ret = subprocess.call(args) | ||
| 9 | +ret = subprocess.call(args, env={"CHROME_EXE_PATH":"${WRKSRC}/out/Release/chrome","LD_LIBRARY_PATH":"${WRKSRC}/out/Release"}) | ||
| 10 | if ret != 0: | ||
| 11 | if ret <= -100: | ||
| 12 | # Windows error codes such as 0xC0000005 and 0xC0000409 are much easier to | ||
diff --git a/www/chromium/patches/patch-build_linux_chrome_map b/www/chromium/patches/patch-build_linux_chrome_map new file mode 100644 index 0000000..fff7b69 --- /dev/null +++ b/www/chromium/patches/patch-build_linux_chrome_map | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: build/linux/chrome.map | ||
| 2 | --- build/linux/chrome.map.orig | ||
| 3 | +++ build/linux/chrome.map | ||
| 4 | @@ -20,6 +20,10 @@ global: | ||
| 5 | # Program entry point. | ||
| 6 | _start; | ||
| 7 | |||
| 8 | + # FreeBSD specific variables. | ||
| 9 | + __progname; | ||
| 10 | + environ; | ||
| 11 | + | ||
| 12 | # Memory allocation symbols. We want chrome and any libraries to | ||
| 13 | # share the same heap, so it is correct to export these symbols. | ||
| 14 | aligned_alloc; | ||
diff --git a/www/chromium/patches/patch-build_linux_strip_binary_py b/www/chromium/patches/patch-build_linux_strip_binary_py new file mode 100644 index 0000000..39c30d0 --- /dev/null +++ b/www/chromium/patches/patch-build_linux_strip_binary_py | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: build/linux/strip_binary.py | ||
| 2 | --- build/linux/strip_binary.py.orig | ||
| 3 | +++ build/linux/strip_binary.py | ||
| 4 | @@ -10,6 +10,7 @@ import sys | ||
| 5 | |||
| 6 | |||
| 7 | def main(): | ||
| 8 | + return 0 | ||
| 9 | argparser = argparse.ArgumentParser(description='eu-strip binary.') | ||
| 10 | |||
| 11 | argparser.add_argument('--eu-strip-binary-path', help='eu-strip path.') | ||
diff --git a/www/chromium/patches/patch-build_linux_unbundle_libusb_gn b/www/chromium/patches/patch-build_linux_unbundle_libusb_gn new file mode 100644 index 0000000..9c0d719 --- /dev/null +++ b/www/chromium/patches/patch-build_linux_unbundle_libusb_gn | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | Index: build/linux/unbundle/libusb.gn | ||
| 2 | --- build/linux/unbundle/libusb.gn.orig | ||
| 3 | +++ build/linux/unbundle/libusb.gn | ||
| 4 | @@ -0,0 +1,24 @@ | ||
| 5 | +# Copyright 2016 The Chromium Authors. All rights reserved. | ||
| 6 | +# Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +# found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +import("//build/config/linux/pkg_config.gni") | ||
| 10 | +import("//build/shim_headers.gni") | ||
| 11 | + | ||
| 12 | +pkg_config("system_libusb") { | ||
| 13 | + packages = [ "libusb-1.0" ] | ||
| 14 | +} | ||
| 15 | + | ||
| 16 | +shim_headers("libusb_shim") { | ||
| 17 | + root_path = "src/libusb" | ||
| 18 | + headers = [ | ||
| 19 | + "libusb.h", | ||
| 20 | + ] | ||
| 21 | +} | ||
| 22 | + | ||
| 23 | +source_set("libusb") { | ||
| 24 | + deps = [ | ||
| 25 | + ":libusb_shim", | ||
| 26 | + ] | ||
| 27 | + public_configs = [ ":system_libusb" ] | ||
| 28 | +} | ||
diff --git a/www/chromium/patches/patch-build_linux_unbundle_replace_gn_files_py b/www/chromium/patches/patch-build_linux_unbundle_replace_gn_files_py new file mode 100644 index 0000000..206c4a7 --- /dev/null +++ b/www/chromium/patches/patch-build_linux_unbundle_replace_gn_files_py | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: build/linux/unbundle/replace_gn_files.py | ||
| 2 | --- build/linux/unbundle/replace_gn_files.py.orig | ||
| 3 | +++ build/linux/unbundle/replace_gn_files.py | ||
| 4 | @@ -25,6 +25,7 @@ REPLACEMENTS = { | ||
| 5 | 'libevent': 'base/third_party/libevent/BUILD.gn', | ||
| 6 | 'libjpeg': 'third_party/libjpeg.gni', | ||
| 7 | 'libpng': 'third_party/libpng/BUILD.gn', | ||
| 8 | + 'libusb': 'third_party/libusb/BUILD.gn', | ||
| 9 | 'libvpx': 'third_party/libvpx/BUILD.gn', | ||
| 10 | 'libwebp': 'third_party/libwebp/BUILD.gn', | ||
| 11 | 'libxml': 'third_party/libxml/BUILD.gn', | ||
diff --git a/www/chromium/patches/patch-build_toolchain_freebsd_BUILD_gn b/www/chromium/patches/patch-build_toolchain_freebsd_BUILD_gn new file mode 100644 index 0000000..71bc098 --- /dev/null +++ b/www/chromium/patches/patch-build_toolchain_freebsd_BUILD_gn | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | Index: build/toolchain/freebsd/BUILD.gn | ||
| 2 | --- build/toolchain/freebsd/BUILD.gn.orig | ||
| 3 | +++ build/toolchain/freebsd/BUILD.gn | ||
| 4 | @@ -0,0 +1,66 @@ | ||
| 5 | +# Copyright 2013 The Chromium Authors. All rights reserved. | ||
| 6 | +# Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +# found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +import("//build/config/sysroot.gni") | ||
| 10 | +import("//build/toolchain/gcc_toolchain.gni") | ||
| 11 | + | ||
| 12 | +clang_toolchain("clang_x86") { | ||
| 13 | + toolchain_args = { | ||
| 14 | + current_cpu = "x86" | ||
| 15 | + current_os = "freebsd" | ||
| 16 | + } | ||
| 17 | +} | ||
| 18 | + | ||
| 19 | +gcc_toolchain("x86") { | ||
| 20 | + cc = "gcc" | ||
| 21 | + cxx = "g++" | ||
| 22 | + | ||
| 23 | + readelf = "readelf" | ||
| 24 | + nm = "nm" | ||
| 25 | + ar = "ar" | ||
| 26 | + ld = cxx | ||
| 27 | + | ||
| 28 | + toolchain_args = { | ||
| 29 | + current_cpu = "x86" | ||
| 30 | + current_os = "freebsd" | ||
| 31 | + is_clang = false | ||
| 32 | + } | ||
| 33 | +} | ||
| 34 | + | ||
| 35 | +clang_toolchain("clang_x64") { | ||
| 36 | + toolchain_args = { | ||
| 37 | + current_cpu = "x64" | ||
| 38 | + current_os = "freebsd" | ||
| 39 | + } | ||
| 40 | +} | ||
| 41 | + | ||
| 42 | +gcc_toolchain("x64") { | ||
| 43 | + cc = "gcc" | ||
| 44 | + cxx = "g++" | ||
| 45 | + | ||
| 46 | + readelf = "readelf" | ||
| 47 | + nm = "nm" | ||
| 48 | + ar = "ar" | ||
| 49 | + ld = cxx | ||
| 50 | + | ||
| 51 | + toolchain_args = { | ||
| 52 | + current_cpu = "x64" | ||
| 53 | + current_os = "freebsd" | ||
| 54 | + is_clang = false | ||
| 55 | + } | ||
| 56 | +} | ||
| 57 | + | ||
| 58 | +clang_toolchain("clang_arm") { | ||
| 59 | + toolchain_args = { | ||
| 60 | + current_cpu = "arm64" | ||
| 61 | + current_os = "freebsd" | ||
| 62 | + } | ||
| 63 | +} | ||
| 64 | + | ||
| 65 | +clang_toolchain("clang_arm64") { | ||
| 66 | + toolchain_args = { | ||
| 67 | + current_cpu = "arm64" | ||
| 68 | + current_os = "freebsd" | ||
| 69 | + } | ||
| 70 | +} | ||
diff --git a/www/chromium/patches/patch-build_toolchain_gcc_solink_wrapper_py b/www/chromium/patches/patch-build_toolchain_gcc_solink_wrapper_py new file mode 100644 index 0000000..f92fee6 --- /dev/null +++ b/www/chromium/patches/patch-build_toolchain_gcc_solink_wrapper_py | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: build/toolchain/gcc_solink_wrapper.py | ||
| 2 | --- build/toolchain/gcc_solink_wrapper.py.orig | ||
| 3 | +++ build/toolchain/gcc_solink_wrapper.py | ||
| 4 | @@ -39,7 +39,7 @@ def CollectDynSym(args): | ||
| 5 | """Replaces: nm --format=posix -g -D -p $sofile | cut -f1-2 -d' '""" | ||
| 6 | toc = '' | ||
| 7 | nm = subprocess.Popen(wrapper_utils.CommandToRun( | ||
| 8 | - [args.nm, '--format=posix', '-g', '-D', '-p', args.sofile]), | ||
| 9 | + [args.nm, '-g', '-D', '-p', args.sofile]), | ||
| 10 | stdout=subprocess.PIPE, | ||
| 11 | bufsize=-1, | ||
| 12 | universal_newlines=True) | ||
diff --git a/www/chromium/patches/patch-build_toolchain_gcc_toolchain_gni b/www/chromium/patches/patch-build_toolchain_gcc_toolchain_gni new file mode 100644 index 0000000..0fdc66b --- /dev/null +++ b/www/chromium/patches/patch-build_toolchain_gcc_toolchain_gni | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | Index: build/toolchain/gcc_toolchain.gni | ||
| 2 | --- build/toolchain/gcc_toolchain.gni.orig | ||
| 3 | +++ build/toolchain/gcc_toolchain.gni | ||
| 4 | @@ -53,6 +53,13 @@ if (enable_resource_allowlist_generation) { | ||
| 5 | "enable_resource_allowlist_generation=true does not work for target_os=$target_os") | ||
| 6 | } | ||
| 7 | |||
| 8 | +declare_args() { | ||
| 9 | + extra_cflags = "" | ||
| 10 | + extra_cppflags = "" | ||
| 11 | + extra_cxxflags = "" | ||
| 12 | + extra_ldflags = "" | ||
| 13 | +} | ||
| 14 | + | ||
| 15 | # This template defines a toolchain for something that works like gcc | ||
| 16 | # (including clang). | ||
| 17 | # | ||
| 18 | @@ -771,13 +778,12 @@ template("gcc_toolchain") { | ||
| 19 | # use_gold too. | ||
| 20 | template("clang_toolchain") { | ||
| 21 | gcc_toolchain(target_name) { | ||
| 22 | - prefix = rebase_path("$clang_base_path/bin", root_build_dir) | ||
| 23 | - cc = "${prefix}/clang" | ||
| 24 | - cxx = "${prefix}/clang++" | ||
| 25 | + cc = "cc" | ||
| 26 | + cxx = "c++" | ||
| 27 | ld = cxx | ||
| 28 | - readelf = "${prefix}/llvm-readelf" | ||
| 29 | - ar = "${prefix}/llvm-ar" | ||
| 30 | - nm = "${prefix}/llvm-nm" | ||
| 31 | + readelf = "readelf" | ||
| 32 | + ar = "ar" | ||
| 33 | + nm = "nm" | ||
| 34 | |||
| 35 | forward_variables_from(invoker, | ||
| 36 | [ | ||
diff --git a/www/chromium/patches/patch-build_toolchain_openbsd_BUILD_gn b/www/chromium/patches/patch-build_toolchain_openbsd_BUILD_gn new file mode 100644 index 0000000..8f74164 --- /dev/null +++ b/www/chromium/patches/patch-build_toolchain_openbsd_BUILD_gn | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | Index: build/toolchain/openbsd/BUILD.gn | ||
| 2 | --- build/toolchain/openbsd/BUILD.gn.orig | ||
| 3 | +++ build/toolchain/openbsd/BUILD.gn | ||
| 4 | @@ -0,0 +1,66 @@ | ||
| 5 | +# Copyright 2013 The Chromium Authors. All rights reserved. | ||
| 6 | +# Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +# found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +import("//build/config/sysroot.gni") | ||
| 10 | +import("//build/toolchain/gcc_toolchain.gni") | ||
| 11 | + | ||
| 12 | +clang_toolchain("clang_x86") { | ||
| 13 | + toolchain_args = { | ||
| 14 | + current_cpu = "x86" | ||
| 15 | + current_os = "openbsd" | ||
| 16 | + } | ||
| 17 | +} | ||
| 18 | + | ||
| 19 | +gcc_toolchain("x86") { | ||
| 20 | + cc = "gcc" | ||
| 21 | + cxx = "g++" | ||
| 22 | + | ||
| 23 | + readelf = "readelf" | ||
| 24 | + nm = "nm" | ||
| 25 | + ar = "ar" | ||
| 26 | + ld = cxx | ||
| 27 | + | ||
| 28 | + toolchain_args = { | ||
| 29 | + current_cpu = "x86" | ||
| 30 | + current_os = "openbsd" | ||
| 31 | + is_clang = false | ||
| 32 | + } | ||
| 33 | +} | ||
| 34 | + | ||
| 35 | +clang_toolchain("clang_x64") { | ||
| 36 | + toolchain_args = { | ||
| 37 | + current_cpu = "x64" | ||
| 38 | + current_os = "openbsd" | ||
| 39 | + } | ||
| 40 | +} | ||
| 41 | + | ||
| 42 | +gcc_toolchain("x64") { | ||
| 43 | + cc = "gcc" | ||
| 44 | + cxx = "g++" | ||
| 45 | + | ||
| 46 | + readelf = "readelf" | ||
| 47 | + nm = "nm" | ||
| 48 | + ar = "ar" | ||
| 49 | + ld = cxx | ||
| 50 | + | ||
| 51 | + toolchain_args = { | ||
| 52 | + current_cpu = "x64" | ||
| 53 | + current_os = "openbsd" | ||
| 54 | + is_clang = false | ||
| 55 | + } | ||
| 56 | +} | ||
| 57 | + | ||
| 58 | +clang_toolchain("clang_arm") { | ||
| 59 | + toolchain_args = { | ||
| 60 | + current_cpu = "arm64" | ||
| 61 | + current_os = "openbsd" | ||
| 62 | + } | ||
| 63 | +} | ||
| 64 | + | ||
| 65 | +clang_toolchain("clang_arm64") { | ||
| 66 | + toolchain_args = { | ||
| 67 | + current_cpu = "arm64" | ||
| 68 | + current_os = "openbsd" | ||
| 69 | + } | ||
| 70 | +} | ||
diff --git a/www/chromium/patches/patch-cc_BUILD_gn b/www/chromium/patches/patch-cc_BUILD_gn new file mode 100644 index 0000000..c6789c3 --- /dev/null +++ b/www/chromium/patches/patch-cc_BUILD_gn | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | Index: cc/BUILD.gn | ||
| 2 | --- cc/BUILD.gn.orig | ||
| 3 | +++ cc/BUILD.gn | ||
| 4 | @@ -664,7 +664,7 @@ cc_test_static_library("test_support") { | ||
| 5 | if (enable_vulkan) { | ||
| 6 | deps += [ "//gpu/vulkan/init" ] | ||
| 7 | } | ||
| 8 | - if (!is_android) { | ||
| 9 | + if (!is_android && !is_bsd) { | ||
| 10 | data_deps = [ "//third_party/mesa_headers" ] | ||
| 11 | } | ||
| 12 | } | ||
| 13 | @@ -891,7 +891,6 @@ cc_test("cc_unittests") { | ||
| 14 | data = [ "//components/viz/test/data/" ] | ||
| 15 | data_deps = [ | ||
| 16 | "//testing/buildbot/filters:cc_unittests_filters", | ||
| 17 | - "//third_party/mesa_headers", | ||
| 18 | ] | ||
| 19 | |||
| 20 | if (is_android && enable_chrome_android_internal) { | ||
diff --git a/www/chromium/patches/patch-chrome_app_chrome_command_ids_h b/www/chromium/patches/patch-chrome_app_chrome_command_ids_h new file mode 100644 index 0000000..cd4ec82 --- /dev/null +++ b/www/chromium/patches/patch-chrome_app_chrome_command_ids_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/app/chrome_command_ids.h | ||
| 2 | --- chrome/app/chrome_command_ids.h.orig | ||
| 3 | +++ chrome/app/chrome_command_ids.h | ||
| 4 | @@ -66,7 +66,7 @@ | ||
| 5 | #define IDC_NAME_WINDOW 34049 | ||
| 6 | |||
| 7 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #define IDC_USE_SYSTEM_TITLE_BAR 34051 | ||
| 11 | #define IDC_RESTORE_WINDOW 34052 | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_app_chrome_main_cc b/www/chromium/patches/patch-chrome_app_chrome_main_cc new file mode 100644 index 0000000..c501786 --- /dev/null +++ b/www/chromium/patches/patch-chrome_app_chrome_main_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/app/chrome_main.cc | ||
| 2 | --- chrome/app/chrome_main.cc.orig | ||
| 3 | +++ chrome/app/chrome_main.cc | ||
| 4 | @@ -25,7 +25,7 @@ | ||
| 5 | #include "chrome/app/notification_metrics.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/base_switches.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -146,7 +146,7 @@ int ChromeMain(int argc, const char** argv) { | ||
| 14 | headless::SetUpCommandLine(command_line); | ||
| 15 | } else { | ||
| 16 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 17 | - BUILDFLAG(IS_WIN) | ||
| 18 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 19 | if (command_line->HasSwitch(switches::kHeadless)) { | ||
| 20 | #if BUILDFLAG(GOOGLE_CHROME_BRANDING) | ||
| 21 | command_line->AppendSwitch(::headless::switches::kEnableCrashReporter); | ||
diff --git a/www/chromium/patches/patch-chrome_app_chrome_main_delegate_cc b/www/chromium/patches/patch-chrome_app_chrome_main_delegate_cc new file mode 100644 index 0000000..b35e391 --- /dev/null +++ b/www/chromium/patches/patch-chrome_app_chrome_main_delegate_cc | |||
| @@ -0,0 +1,108 @@ | |||
| 1 | Index: chrome/app/chrome_main_delegate.cc | ||
| 2 | --- chrome/app/chrome_main_delegate.cc.orig | ||
| 3 | +++ chrome/app/chrome_main_delegate.cc | ||
| 4 | @@ -114,7 +114,7 @@ | ||
| 5 | #include "chrome/app/chrome_crash_reporter_client.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(ENABLE_NACL) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 9 | +#if BUILDFLAG(ENABLE_NACL) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && !BUILDFLAG(IS_BSD) | ||
| 10 | #include "components/nacl/common/nacl_paths.h" | ||
| 11 | #include "components/nacl/zygote/nacl_fork_delegate_linux.h" | ||
| 12 | #endif | ||
| 13 | @@ -158,12 +158,12 @@ | ||
| 14 | #include "v8/include/v8.h" | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | #include "base/environment.h" | ||
| 20 | #endif | ||
| 21 | |||
| 22 | #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_ANDROID) || \ | ||
| 23 | - BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 24 | + BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 25 | #include "chrome/browser/policy/policy_path_parser.h" | ||
| 26 | #include "components/crash/core/app/crashpad.h" | ||
| 27 | #endif | ||
| 28 | @@ -311,7 +311,7 @@ void AdjustLinuxOOMScore(const std::string& process_ty | ||
| 29 | // and resources loaded. | ||
| 30 | bool SubprocessNeedsResourceBundle(const std::string& process_type) { | ||
| 31 | return | ||
| 32 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 33 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 34 | // The zygote process opens the resources for the renderers. | ||
| 35 | process_type == switches::kZygoteProcess || | ||
| 36 | #endif | ||
| 37 | @@ -351,7 +351,7 @@ bool HandleVersionSwitches(const base::CommandLine& co | ||
| 38 | |||
| 39 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 40 | // of lacros-chrome is complete. | ||
| 41 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 42 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 43 | // Show the man page if --help or -h is on the command line. | ||
| 44 | void HandleHelpSwitches(const base::CommandLine& command_line) { | ||
| 45 | if (command_line.HasSwitch(switches::kHelp) || | ||
| 46 | @@ -415,7 +415,7 @@ void InitializeUserDataDir(base::CommandLine* command_ | ||
| 47 | std::string process_type = | ||
| 48 | command_line->GetSwitchValueASCII(switches::kProcessType); | ||
| 49 | |||
| 50 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 51 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 52 | // On Linux, Chrome does not support running multiple copies under different | ||
| 53 | // DISPLAYs, so the profile directory can be specified in the environment to | ||
| 54 | // support the virtual desktop use-case. | ||
| 55 | @@ -499,7 +499,7 @@ void RecordMainStartupMetrics(base::TimeTicks applicat | ||
| 56 | #endif | ||
| 57 | |||
| 58 | #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \ | ||
| 59 | - BUILDFLAG(IS_CHROMEOS) | ||
| 60 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 61 | // Record the startup process creation time on supported platforms. On Android | ||
| 62 | // this is recorded in ChromeMainDelegateAndroid. | ||
| 63 | startup_metric_utils::RecordStartupProcessCreationTime( | ||
| 64 | @@ -680,6 +680,8 @@ void ChromeMainDelegate::PostFieldTrialInitialization( | ||
| 65 | // not always enabled on Linux/ChromeOS. | ||
| 66 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 67 | bool enable_gwp_asan = crash_reporter::IsCrashpadEnabled(); | ||
| 68 | +#elif BUILDFLAG(IS_BSD) | ||
| 69 | + bool enable_gwp_asan = false; | ||
| 70 | #else | ||
| 71 | bool enable_gwp_asan = true; | ||
| 72 | #endif | ||
| 73 | @@ -815,7 +817,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exi | ||
| 74 | } | ||
| 75 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 76 | // of lacros-chrome is complete. | ||
| 77 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 78 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 79 | // This will directly exit if the user asked for help. | ||
| 80 | HandleHelpSwitches(command_line); | ||
| 81 | #endif | ||
| 82 | @@ -846,7 +848,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exi | ||
| 83 | #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 84 | chromeos::dbus_paths::RegisterPathProvider(); | ||
| 85 | #endif | ||
| 86 | -#if BUILDFLAG(ENABLE_NACL) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 87 | +#if BUILDFLAG(ENABLE_NACL) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) | ||
| 88 | nacl::RegisterPathProvider(); | ||
| 89 | #endif | ||
| 90 | |||
| 91 | @@ -1161,7 +1163,7 @@ void ChromeMainDelegate::PreSandboxStartup() { | ||
| 92 | locale; | ||
| 93 | } | ||
| 94 | |||
| 95 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) | ||
| 96 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 97 | // Zygote needs to call InitCrashReporter() in RunZygote(). | ||
| 98 | if (process_type != switches::kZygoteProcess) { | ||
| 99 | #if BUILDFLAG(IS_ANDROID) | ||
| 100 | @@ -1237,7 +1239,7 @@ absl::variant<int, content::MainFunctionParams> Chrome | ||
| 101 | |||
| 102 | // This entry is not needed on Linux, where the NaCl loader | ||
| 103 | // process is launched via nacl_helper instead. | ||
| 104 | -#if BUILDFLAG(ENABLE_NACL) && !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 105 | +#if BUILDFLAG(ENABLE_NACL) && !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) | ||
| 106 | {switches::kNaClLoaderProcess, NaClMain}, | ||
| 107 | #else | ||
| 108 | {"<invalid>", nullptr}, // To avoid constant array of size 0 | ||
diff --git a/www/chromium/patches/patch-chrome_app_chromium_strings_grd b/www/chromium/patches/patch-chrome_app_chromium_strings_grd new file mode 100644 index 0000000..c55a78e --- /dev/null +++ b/www/chromium/patches/patch-chrome_app_chromium_strings_grd | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/app/chromium_strings.grd | ||
| 2 | --- chrome/app/chromium_strings.grd.orig | ||
| 3 | +++ chrome/app/chromium_strings.grd | ||
| 4 | @@ -298,7 +298,7 @@ If you update this file, be sure also to update google | ||
| 5 | Welcome to Chromium; new browser window opened | ||
| 6 | </message> | ||
| 7 | </if> | ||
| 8 | - <if expr="is_macosx or is_linux"> | ||
| 9 | + <if expr="is_macosx or is_posix"> | ||
| 10 | <message name="IDS_FIRST_RUN_DIALOG_WINDOW_TITLE" desc="Window title of First Run dialog on Mac and Linux, displayed in title bar"> | ||
| 11 | Welcome to Chromium | ||
| 12 | </message> | ||
| 13 | @@ -818,7 +818,7 @@ Permissions you've already given to websites and apps | ||
| 14 | </if> | ||
| 15 | |||
| 16 | <!-- about:browser-switch strings --> | ||
| 17 | - <if expr="is_win or is_macosx or is_fuchsia or (is_linux and not chromeos)"> | ||
| 18 | + <if expr="is_win or is_macosx or is_fuchsia or (is_posix and not chromeos)"> | ||
| 19 | <message name="IDS_ABOUT_BROWSER_SWITCH_DESCRIPTION_UNKNOWN_BROWSER" desc="Description shown while waiting for an alternative browser to open, when the browser name is not auto-detected"> | ||
| 20 | Your system administrator has configured Chromium to open an alternative browser to access <ph name="TARGET_URL_HOSTNAME">$1<ex>example.com</ex></ph>. | ||
| 21 | </message> | ||
| 22 | @@ -944,7 +944,7 @@ Permissions you've already given to websites and apps | ||
| 23 | </message> | ||
| 24 | |||
| 25 | <!-- ProcessSingleton --> | ||
| 26 | - <if expr="is_linux or is_macosx"> | ||
| 27 | + <if expr="is_posix or is_macosx"> | ||
| 28 | <message name="IDS_PROFILE_IN_USE_POSIX" desc="Message shown when the browser cannot start because the profile is in use on a different host."> | ||
| 29 | The profile appears to be in use by another Chromium process (<ph name="PROCESS_ID">$1<ex>12345</ex></ph>) on another computer (<ph name="HOST_NAME">$2<ex>example.com</ex></ph>). Chromium has locked the profile so that it doesn't get corrupted. If you are sure no other processes are using this profile, you can unlock the profile and relaunch Chromium. | ||
| 30 | </message> | ||
diff --git a/www/chromium/patches/patch-chrome_app_generated_resources_grd b/www/chromium/patches/patch-chrome_app_generated_resources_grd new file mode 100644 index 0000000..ad5e730 --- /dev/null +++ b/www/chromium/patches/patch-chrome_app_generated_resources_grd | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | Index: chrome/app/generated_resources.grd | ||
| 2 | --- chrome/app/generated_resources.grd.orig | ||
| 3 | +++ chrome/app/generated_resources.grd | ||
| 4 | @@ -2,7 +2,7 @@ | ||
| 5 | |||
| 6 | <!-- | ||
| 7 | This file contains definitions of resources that will be translated for each | ||
| 8 | -locale. The variables is_win, is_macosx, is_linux, and is_posix are available | ||
| 9 | +locale. The variables is_win, is_macosx, is_posix, and is_posix are available | ||
| 10 | for making strings OS specific. Other platform defines such as use_titlecase | ||
| 11 | are declared in tools/grit/grit_rule.gni. | ||
| 12 | --> | ||
| 13 | @@ -298,7 +298,7 @@ are declared in tools/grit/grit_rule.gni. | ||
| 14 | <part file="profiles_strings.grdp" /> | ||
| 15 | |||
| 16 | <!-- Web app intent picker strings --> | ||
| 17 | - <if expr="is_win or is_macosx or is_linux"> | ||
| 18 | + <if expr="is_win or is_macosx or is_posix"> | ||
| 19 | <part file="url_handler_intent_picker_strings.grdp" /> | ||
| 20 | </if> | ||
| 21 | |||
| 22 | @@ -2833,7 +2833,7 @@ are declared in tools/grit/grit_rule.gni. | ||
| 23 | </if> | ||
| 24 | |||
| 25 | <!-- Bluetooth Device Credentials (i.e. PIN/Passkey) dialog --> | ||
| 26 | - <if expr="is_win or is_linux"> | ||
| 27 | + <if expr="is_win or is_posix"> | ||
| 28 | <message name="IDS_BLUETOOTH_DEVICE_CREDENTIALS_TITLE" desc="Title of the Bluetooth device credentials prompt dialog."> | ||
| 29 | Device Credentials | ||
| 30 | </message> | ||
| 31 | @@ -5686,7 +5686,7 @@ Keep your key file in a safe place. You will need it t | ||
| 32 | </if> | ||
| 33 | |||
| 34 | <!-- chrome://browser-switch strings --> | ||
| 35 | - <if expr="is_win or is_macosx or is_fuchsia or (is_linux and not chromeos)"> | ||
| 36 | + <if expr="is_win or is_macosx or is_fuchsia or (is_posix and not chromeos)"> | ||
| 37 | <message name="IDS_ABOUT_BROWSER_SWITCH_TITLE" desc="about:browser-switch page title"> | ||
| 38 | Legacy Browser Support | ||
| 39 | </message> | ||
| 40 | @@ -8217,7 +8217,7 @@ Keep your key file in a safe place. You will need it t | ||
| 41 | Google Pay | ||
| 42 | </message> | ||
| 43 | |||
| 44 | - <if expr="is_linux and not chromeos and not lacros"> | ||
| 45 | + <if expr="is_posix and not chromeos and not lacros"> | ||
| 46 | <message name="IDS_SHOW_WINDOW_DECORATIONS" desc="The label of a radio button in the options dialog for using the system title bar and borders."> | ||
| 47 | Use system title bar and borders | ||
| 48 | </message> | ||
| 49 | @@ -9372,7 +9372,7 @@ Please help our engineers fix this problem. Tell us wh | ||
| 50 | Set as default | ||
| 51 | </message> | ||
| 52 | |||
| 53 | - <if expr="is_linux and not chromeos and not lacros"> | ||
| 54 | + <if expr="is_posix and not chromeos and not lacros"> | ||
| 55 | <message name="IDS_MINIMIZE_WINDOW_MENU" desc="The Linux browser window menu item text for minimizing the window."> | ||
| 56 | Minimize | ||
| 57 | </message> | ||
diff --git a/www/chromium/patches/patch-chrome_app_google_chrome_strings_grd b/www/chromium/patches/patch-chrome_app_google_chrome_strings_grd new file mode 100644 index 0000000..817489e --- /dev/null +++ b/www/chromium/patches/patch-chrome_app_google_chrome_strings_grd | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/app/google_chrome_strings.grd | ||
| 2 | --- chrome/app/google_chrome_strings.grd.orig | ||
| 3 | +++ chrome/app/google_chrome_strings.grd | ||
| 4 | @@ -303,7 +303,7 @@ chromium_strings.grd. --> | ||
| 5 | Welcome to Chrome; new browser window opened | ||
| 6 | </message> | ||
| 7 | </if> | ||
| 8 | - <if expr="is_macosx or is_linux"> | ||
| 9 | + <if expr="is_macosx or is_posix"> | ||
| 10 | <message name="IDS_FIRST_RUN_DIALOG_WINDOW_TITLE" desc="Window title of First Run dialog on Mac and Linux, displayed in title bar"> | ||
| 11 | Welcome to Google Chrome | ||
| 12 | </message> | ||
| 13 | @@ -863,7 +863,7 @@ Permissions you've already given to websites and apps | ||
| 14 | </if> | ||
| 15 | |||
| 16 | <!-- about:browser-switch strings --> | ||
| 17 | - <if expr="is_win or is_macosx or is_fuchsia or (is_linux and not chromeos)"> | ||
| 18 | + <if expr="is_win or is_macosx or is_fuchsia or (is_posix and not chromeos)"> | ||
| 19 | <message name="IDS_ABOUT_BROWSER_SWITCH_DESCRIPTION_UNKNOWN_BROWSER" desc="Description shown while waiting for an alternative browser to open, when the browser name is not auto-detected"> | ||
| 20 | Your system administrator has configured Google Chrome to open an alternative browser to access <ph name="TARGET_URL_HOSTNAME">$1<ex>example.com</ex></ph>. | ||
| 21 | </message> | ||
| 22 | @@ -1012,7 +1012,7 @@ Permissions you've already given to websites and apps | ||
| 23 | </message> | ||
| 24 | |||
| 25 | <!-- ProcessSingleton --> | ||
| 26 | - <if expr="is_linux or is_macosx"> | ||
| 27 | + <if expr="is_posix or is_macosx"> | ||
| 28 | <message name="IDS_PROFILE_IN_USE_POSIX" desc="Message shown when the browser cannot start because the profile is in use on a different host."> | ||
| 29 | The profile appears to be in use by another Google Chrome process (<ph name="PROCESS_ID">$1<ex>12345</ex></ph>) on another computer (<ph name="HOST_NAME">$2<ex>example.com</ex></ph>). Chrome has locked the profile so that it doesn't get corrupted. If you are sure no other processes are using this profile, you can unlock the profile and relaunch Chrome. | ||
| 30 | </message> | ||
diff --git a/www/chromium/patches/patch-chrome_app_profiles_strings_grdp b/www/chromium/patches/patch-chrome_app_profiles_strings_grdp new file mode 100644 index 0000000..4e52599 --- /dev/null +++ b/www/chromium/patches/patch-chrome_app_profiles_strings_grdp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/app/profiles_strings.grdp | ||
| 2 | --- chrome/app/profiles_strings.grdp.orig | ||
| 3 | +++ chrome/app/profiles_strings.grdp | ||
| 4 | @@ -66,7 +66,7 @@ | ||
| 5 | Add Profile... | ||
| 6 | </message> | ||
| 7 | </if> | ||
| 8 | - <if expr="is_linux"> | ||
| 9 | + <if expr="is_posix"> | ||
| 10 | <message name="IDS_PROFILES_ADD_PROFILE_LABEL" desc="Menu item for adding a new profile."> | ||
| 11 | Add profile... | ||
| 12 | </message> | ||
diff --git a/www/chromium/patches/patch-chrome_app_settings_strings_grdp b/www/chromium/patches/patch-chrome_app_settings_strings_grdp new file mode 100644 index 0000000..32a0feb --- /dev/null +++ b/www/chromium/patches/patch-chrome_app_settings_strings_grdp | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/app/settings_strings.grdp | ||
| 2 | --- chrome/app/settings_strings.grdp.orig | ||
| 3 | +++ chrome/app/settings_strings.grdp | ||
| 4 | @@ -131,7 +131,7 @@ | ||
| 5 | Theme | ||
| 6 | </message> | ||
| 7 | </if> | ||
| 8 | - <if expr="is_linux and not chromeos and not lacros"> | ||
| 9 | + <if expr="is_posix and not chromeos and not lacros"> | ||
| 10 | <message name="IDS_SETTINGS_SYSTEM_THEME" desc="Text of the label describing the system (GTK+) browser theme on Linux"> | ||
| 11 | GTK+ | ||
| 12 | </message> | ||
| 13 | @@ -145,7 +145,7 @@ | ||
| 14 | Use Classic | ||
| 15 | </message> | ||
| 16 | </if> | ||
| 17 | - <if expr="not is_linux or chromeos_ash or chromeos_lacros or is_fuchsia"> | ||
| 18 | + <if expr="not is_posix or chromeos_ash or chromeos_lacros or is_fuchsia"> | ||
| 19 | <message name="IDS_SETTINGS_RESET_TO_DEFAULT_THEME" desc="Name of the control which resets the browser theme back to the default theme."> | ||
| 20 | Reset to default | ||
| 21 | </message> | ||
diff --git a/www/chromium/patches/patch-chrome_app_theme_chrome_unscaled_resources_grd b/www/chromium/patches/patch-chrome_app_theme_chrome_unscaled_resources_grd new file mode 100644 index 0000000..c50a47c --- /dev/null +++ b/www/chromium/patches/patch-chrome_app_theme_chrome_unscaled_resources_grd | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | Index: chrome/app/theme/chrome_unscaled_resources.grd | ||
| 2 | --- chrome/app/theme/chrome_unscaled_resources.grd.orig | ||
| 3 | +++ chrome/app/theme/chrome_unscaled_resources.grd | ||
| 4 | @@ -15,12 +15,12 @@ | ||
| 5 | <release seq="1"> | ||
| 6 | <includes> | ||
| 7 | <if expr="_google_chrome"> | ||
| 8 | - <if expr="not is_linux"> | ||
| 9 | + <if expr="not is_posix"> | ||
| 10 | <include name="IDR_PRODUCT_LOGO_64" file="google_chrome/product_logo_64.png" type="BINDATA" /> | ||
| 11 | <include name="IDR_PRODUCT_LOGO_128" file="google_chrome/product_logo_128.png" type="BINDATA" /> | ||
| 12 | <include name="IDR_PRODUCT_LOGO_256" file="google_chrome/product_logo_256.png" type="BINDATA" /> | ||
| 13 | </if> | ||
| 14 | - <if expr="is_linux"> | ||
| 15 | + <if expr="is_posix"> | ||
| 16 | <include name="IDR_PRODUCT_LOGO_64" file="google_chrome/linux/product_logo_64.png" type="BINDATA" /> | ||
| 17 | <include name="IDR_PRODUCT_LOGO_128" file="google_chrome/linux/product_logo_128.png" type="BINDATA" /> | ||
| 18 | <include name="IDR_PRODUCT_LOGO_128_BETA" file="google_chrome/linux/product_logo_128_beta.png" type="BINDATA" /> | ||
| 19 | @@ -52,12 +52,12 @@ | ||
| 20 | </if> | ||
| 21 | </if> | ||
| 22 | <if expr="not _google_chrome"> | ||
| 23 | - <if expr="not is_linux"> | ||
| 24 | + <if expr="not is_posix"> | ||
| 25 | <include name="IDR_PRODUCT_LOGO_64" file="chromium/product_logo_64.png" type="BINDATA" /> | ||
| 26 | <include name="IDR_PRODUCT_LOGO_128" file="chromium/product_logo_128.png" type="BINDATA" /> | ||
| 27 | <include name="IDR_PRODUCT_LOGO_256" file="chromium/product_logo_256.png" type="BINDATA" /> | ||
| 28 | </if> | ||
| 29 | - <if expr="is_linux"> | ||
| 30 | + <if expr="is_posix"> | ||
| 31 | <include name="IDR_PRODUCT_LOGO_64" file="chromium/linux/product_logo_64.png" type="BINDATA" /> | ||
| 32 | <include name="IDR_PRODUCT_LOGO_128" file="chromium/linux/product_logo_128.png" type="BINDATA" /> | ||
| 33 | <include name="IDR_PRODUCT_LOGO_256" file="chromium/linux/product_logo_256.png" type="BINDATA" /> | ||
diff --git a/www/chromium/patches/patch-chrome_app_theme_theme_resources_grd b/www/chromium/patches/patch-chrome_app_theme_theme_resources_grd new file mode 100644 index 0000000..d26db47 --- /dev/null +++ b/www/chromium/patches/patch-chrome_app_theme_theme_resources_grd | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/app/theme/theme_resources.grd | ||
| 2 | --- chrome/app/theme/theme_resources.grd.orig | ||
| 3 | +++ chrome/app/theme/theme_resources.grd | ||
| 4 | @@ -25,7 +25,7 @@ | ||
| 5 | <!-- KEEP THESE IN ALPHABETICAL ORDER! DO NOT ADD TO RANDOM PLACES JUST | ||
| 6 | BECAUSE YOUR RESOURCES ARE FUNCTIONALLY RELATED OR FALL UNDER THE | ||
| 7 | SAME CONDITIONALS. --> | ||
| 8 | - <if expr="is_linux or is_win or chromeos"> | ||
| 9 | + <if expr="is_posix or is_win or chromeos"> | ||
| 10 | <structure type="chrome_scaled_image" name="IDR_ACCESSIBILITY_CAPTIONS_PREVIEW_BACKGROUND" file="common/captions-preview-bg.png" /> | ||
| 11 | </if> | ||
| 12 | <if expr="toolkit_views and not is_macosx"> | ||
diff --git a/www/chromium/patches/patch-chrome_browser_about_flags_cc b/www/chromium/patches/patch-chrome_browser_about_flags_cc new file mode 100644 index 0000000..2e9ed55 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_about_flags_cc | |||
| @@ -0,0 +1,129 @@ | |||
| 1 | Index: chrome/browser/about_flags.cc | ||
| 2 | --- chrome/browser/about_flags.cc.orig | ||
| 3 | +++ chrome/browser/about_flags.cc | ||
| 4 | @@ -206,7 +206,7 @@ | ||
| 5 | #include "ui/native_theme/native_theme_features.h" | ||
| 6 | #include "ui/ui_features.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/allocator/buildflags.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -275,7 +275,7 @@ | ||
| 14 | #include "chrome/browser/supervised_user/supervised_user_features/supervised_user_features.h" | ||
| 15 | #endif // ENABLE_SUPERVISED_USERS | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) | ||
| 19 | #include "ui/ozone/buildflags.h" | ||
| 20 | #include "ui/ozone/public/ozone_switches.h" | ||
| 21 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 22 | @@ -362,7 +362,7 @@ const FeatureEntry::Choice kUseAngleChoicesMac[] = { | ||
| 23 | gl::kANGLEImplementationMetalName}}; | ||
| 24 | #endif | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | const FeatureEntry::Choice kOzonePlatformHintRuntimeChoices[] = { | ||
| 29 | {flag_descriptions::kOzonePlatformHintChoiceDefault, "", ""}, | ||
| 30 | {flag_descriptions::kOzonePlatformHintChoiceAuto, | ||
| 31 | @@ -976,7 +976,7 @@ const FeatureEntry::FeatureVariation kPageContentAnnot | ||
| 32 | }; | ||
| 33 | |||
| 34 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 35 | - BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) | ||
| 36 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 37 | const FeatureEntry::FeatureParam kOmniboxDocumentProviderServerScoring[] = { | ||
| 38 | {"DocumentUseServerScore", "true"}, | ||
| 39 | {"DocumentUseClientScore", "false"}, | ||
| 40 | @@ -3424,7 +3424,7 @@ const FeatureEntry kFeatureEntries[] = { | ||
| 41 | FEATURE_VALUE_TYPE(chromeos::kLacrosTtsSupport)}, | ||
| 42 | #endif // BUILDFLAG(IS_CHROMEOS) | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 46 | { | ||
| 47 | "enable-accelerated-video-decode", | ||
| 48 | flag_descriptions::kAcceleratedVideoDecodeName, | ||
| 49 | @@ -3838,7 +3838,7 @@ const FeatureEntry kFeatureEntries[] = { | ||
| 50 | {"enable-login-detection", flag_descriptions::kEnableLoginDetectionName, | ||
| 51 | flag_descriptions::kEnableLoginDetectionDescription, kOsAll, | ||
| 52 | FEATURE_VALUE_TYPE(login_detection::kLoginDetection)}, | ||
| 53 | -#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) | ||
| 54 | +#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 55 | {"enable-navigation-predictor", | ||
| 56 | flag_descriptions::kEnableNavigationPredictorName, | ||
| 57 | flag_descriptions::kEnableNavigationPredictorDescription, | ||
| 58 | @@ -4031,7 +4031,7 @@ const FeatureEntry kFeatureEntries[] = { | ||
| 59 | FEATURE_VALUE_TYPE(features::kWebShare)}, | ||
| 60 | #endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 61 | |||
| 62 | -#if BUILDFLAG(IS_LINUX) | ||
| 63 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 64 | {"ozone-platform-hint", flag_descriptions::kOzonePlatformHintName, | ||
| 65 | flag_descriptions::kOzonePlatformHintDescription, kOsLinux, | ||
| 66 | MULTI_VALUE_TYPE(kOzonePlatformHintRuntimeChoices)}, | ||
| 67 | @@ -4050,7 +4050,7 @@ const FeatureEntry kFeatureEntries[] = { | ||
| 68 | password_manager::features::kForceInitialSyncWhenDecryptionFails)}, | ||
| 69 | #endif // BUILDFLAG(IS_LINUX) | ||
| 70 | |||
| 71 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) | ||
| 72 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 73 | {"skip-undecryptable-passwords", | ||
| 74 | flag_descriptions::kSkipUndecryptablePasswordsName, | ||
| 75 | flag_descriptions::kSkipUndecryptablePasswordsDescription, | ||
| 76 | @@ -4760,7 +4760,7 @@ const FeatureEntry kFeatureEntries[] = { | ||
| 77 | "OmniboxBundledExperimentV1")}, | ||
| 78 | |||
| 79 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 80 | - BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) | ||
| 81 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 82 | {"omnibox-experimental-keyword-mode", | ||
| 83 | flag_descriptions::kOmniboxExperimentalKeywordModeName, | ||
| 84 | flag_descriptions::kOmniboxExperimentalKeywordModeDescription, kOsDesktop, | ||
| 85 | @@ -5158,7 +5158,7 @@ const FeatureEntry kFeatureEntries[] = { | ||
| 86 | #endif // BUILDFLAG(IS_ANDROID) | ||
| 87 | |||
| 88 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 89 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 90 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 91 | {"webui-feedback", flag_descriptions::kWebuiFeedbackName, | ||
| 92 | flag_descriptions::kWebuiFeedbackDescription, kOsDesktop, | ||
| 93 | FEATURE_VALUE_TYPE(features::kWebUIFeedback)}, | ||
| 94 | @@ -6198,7 +6198,7 @@ const FeatureEntry kFeatureEntries[] = { | ||
| 95 | FEATURE_VALUE_TYPE(features::kMouseSubframeNoImplicitCapture)}, | ||
| 96 | |||
| 97 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 98 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 99 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 100 | {"global-media-controls-modern-ui", | ||
| 101 | flag_descriptions::kGlobalMediaControlsModernUIName, | ||
| 102 | flag_descriptions::kGlobalMediaControlsModernUIDescription, | ||
| 103 | @@ -6912,7 +6912,7 @@ const FeatureEntry kFeatureEntries[] = { | ||
| 104 | #endif | ||
| 105 | |||
| 106 | #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \ | ||
| 107 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 108 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 109 | {"incognito-clear-browsing-data-dialog-for-desktop", | ||
| 110 | flag_descriptions::kIncognitoClearBrowsingDataDialogForDesktopName, | ||
| 111 | flag_descriptions::kIncognitoClearBrowsingDataDialogForDesktopDescription, | ||
| 112 | @@ -7037,7 +7037,7 @@ const FeatureEntry kFeatureEntries[] = { | ||
| 113 | #endif | ||
| 114 | |||
| 115 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 116 | - BUILDFLAG(IS_FUCHSIA) | ||
| 117 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 118 | {"commander", flag_descriptions::kCommanderName, | ||
| 119 | flag_descriptions::kCommanderDescription, kOsDesktop, | ||
| 120 | FEATURE_VALUE_TYPE(features::kCommander)}, | ||
| 121 | @@ -7291,7 +7291,7 @@ const FeatureEntry kFeatureEntries[] = { | ||
| 122 | |||
| 123 | #if BUILDFLAG(IS_WIN) || \ | ||
| 124 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \ | ||
| 125 | - BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) | ||
| 126 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 127 | { | ||
| 128 | "ui-debug-tools", | ||
| 129 | flag_descriptions::kUIDebugToolsName, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_after_startup_task_utils_cc b/www/chromium/patches/patch-chrome_browser_after_startup_task_utils_cc new file mode 100644 index 0000000..918a2db --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_after_startup_task_utils_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/after_startup_task_utils.cc | ||
| 2 | --- chrome/browser/after_startup_task_utils.cc.orig | ||
| 3 | +++ chrome/browser/after_startup_task_utils.cc | ||
| 4 | @@ -25,7 +25,7 @@ | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/views/linux_ui/linux_ui.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -111,7 +111,7 @@ void SetBrowserStartupIsComplete() { | ||
| 14 | |||
| 15 | g_startup_complete_flag.Get().Set(); | ||
| 16 | #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_CHROMEOS) | ||
| 18 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Process::Current().CreationTime() is not available on all platforms. | ||
| 20 | const base::Time process_creation_time = | ||
| 21 | base::Process::Current().CreationTime(); | ||
| 22 | @@ -130,7 +130,7 @@ void SetBrowserStartupIsComplete() { | ||
| 23 | |||
| 24 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 25 | // of lacros-chrome is complete. | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 28 | // Make sure we complete the startup notification sequence, or launchers will | ||
| 29 | // get confused by not receiving the expected message from the main process. | ||
| 30 | views::LinuxUI* linux_ui = views::LinuxUI::instance(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_apps_platform_apps_api_music_manager_private_device_id_linux_cc b/www/chromium/patches/patch-chrome_browser_apps_platform_apps_api_music_manager_private_device_id_linux_cc new file mode 100644 index 0000000..ad6bd39 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_apps_platform_apps_api_music_manager_private_device_id_linux_cc | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | Index: chrome/browser/apps/platform_apps/api/music_manager_private/device_id_linux.cc | ||
| 2 | --- chrome/browser/apps/platform_apps/api/music_manager_private/device_id_linux.cc.orig | ||
| 3 | +++ chrome/browser/apps/platform_apps/api/music_manager_private/device_id_linux.cc | ||
| 4 | @@ -4,6 +4,15 @@ | ||
| 5 | |||
| 6 | #include "chrome/browser/apps/platform_apps/api/music_manager_private/device_id.h" | ||
| 7 | |||
| 8 | +#include "build/build_config.h" | ||
| 9 | + | ||
| 10 | +#if defined(OS_BSD) | ||
| 11 | +#include <sys/types.h> | ||
| 12 | +#include <net/if_dl.h> | ||
| 13 | +#include <netinet/in.h> | ||
| 14 | +#include <sys/socket.h> | ||
| 15 | +#endif | ||
| 16 | + | ||
| 17 | #include <ifaddrs.h> | ||
| 18 | #include <net/if.h> | ||
| 19 | #include <stddef.h> | ||
| 20 | @@ -106,11 +115,33 @@ class MacAddressProcessor { | ||
| 21 | const char* const prefixes[], | ||
| 22 | size_t prefixes_count) { | ||
| 23 | const int MAC_LENGTH = 6; | ||
| 24 | +#if defined(OS_BSD) | ||
| 25 | + struct ifaddrs *ifap, *ifinfo; | ||
| 26 | +#else | ||
| 27 | struct ifreq ifinfo; | ||
| 28 | +#endif | ||
| 29 | |||
| 30 | memset(&ifinfo, 0, sizeof(ifinfo)); | ||
| 31 | - strncpy(ifinfo.ifr_name, ifaddr->ifa_name, sizeof(ifinfo.ifr_name) - 1); | ||
| 32 | |||
| 33 | +#if defined(OS_BSD) | ||
| 34 | + int result = getifaddrs(&ifap); | ||
| 35 | + if (result != 0) | ||
| 36 | + return true; | ||
| 37 | + result = 1; // no MAC found yet | ||
| 38 | + for (ifinfo = ifap; ifinfo != NULL; ifinfo = ifinfo->ifa_next) { | ||
| 39 | + struct sockaddr* sa = ifinfo->ifa_addr; | ||
| 40 | + if (sa->sa_family == AF_LINK && | ||
| 41 | + !strncmp(ifinfo->ifa_name, ifaddr->ifa_name, | ||
| 42 | + sizeof(ifinfo->ifa_name) - 1)) { | ||
| 43 | + result = 0; | ||
| 44 | + break; | ||
| 45 | + } | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + char mac_address[6]; | ||
| 49 | + strncpy(mac_address, (const char*)LLADDR((struct sockaddr_dl*)ifinfo->ifa_addr), sizeof(mac_address)); | ||
| 50 | +#else | ||
| 51 | + strncpy(ifinfo.ifr_name, ifaddr->ifa_name, sizeof(ifinfo.ifr_name) - 1); | ||
| 52 | int sd = socket(AF_INET, SOCK_DGRAM, 0); | ||
| 53 | int result = ioctl(sd, SIOCGIFHWADDR, &ifinfo); | ||
| 54 | close(sd); | ||
| 55 | @@ -120,11 +151,17 @@ class MacAddressProcessor { | ||
| 56 | |||
| 57 | const char* mac_address = | ||
| 58 | static_cast<const char*>(ifinfo.ifr_hwaddr.sa_data); | ||
| 59 | +#endif | ||
| 60 | if (!is_valid_mac_address_.Run(mac_address, MAC_LENGTH)) | ||
| 61 | return true; | ||
| 62 | |||
| 63 | +#if defined(OS_BSD) | ||
| 64 | + if (!IsValidPrefix(ifinfo->ifa_name, prefixes, prefixes_count)) | ||
| 65 | + return true; | ||
| 66 | +#else | ||
| 67 | if (!IsValidPrefix(ifinfo.ifr_name, prefixes, prefixes_count)) | ||
| 68 | return true; | ||
| 69 | +#endif | ||
| 70 | |||
| 71 | // Got one! | ||
| 72 | found_mac_address_ = | ||
diff --git a/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_cc b/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_cc new file mode 100644 index 0000000..eb12227 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/apps/platform_apps/platform_app_launch.cc | ||
| 2 | --- chrome/browser/apps/platform_apps/platform_app_launch.cc.orig | ||
| 3 | +++ chrome/browser/apps/platform_apps/platform_app_launch.cc | ||
| 4 | @@ -18,7 +18,7 @@ | ||
| 5 | #include "extensions/common/constants.h" | ||
| 6 | #include "extensions/common/extension.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/ui/browser.h" | ||
| 11 | #include "chrome/browser/ui/browser_navigator.h" | ||
| 12 | #include "chrome/browser/ui/browser_window.h" | ||
| 13 | @@ -121,7 +121,7 @@ bool OpenExtensionApplicationTab(Profile* profile, con | ||
| 14 | return app_tab != nullptr; | ||
| 15 | } | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | bool OpenDeprecatedApplicationPrompt(Profile* profile, | ||
| 20 | const std::string& app_id) { | ||
| 21 | if (!extensions::IsExtensionUnsupportedDeprecatedApp(profile, app_id)) | ||
diff --git a/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_h b/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_h new file mode 100644 index 0000000..4fd3c3b --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/apps/platform_apps/platform_app_launch.h | ||
| 2 | --- chrome/browser/apps/platform_apps/platform_app_launch.h.orig | ||
| 3 | +++ chrome/browser/apps/platform_apps/platform_app_launch.h | ||
| 4 | @@ -36,7 +36,7 @@ bool OpenExtensionApplicationWindow(Profile* profile, | ||
| 5 | // and false otherwise. | ||
| 6 | bool OpenExtensionApplicationTab(Profile* profile, const std::string& app_id); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Opens the deprecated Chrome Apps flow if |app_id| refers to a Chrome App and | ||
| 11 | // Chrome Apps are deprecated on the |profile|. Returns true if that was the | ||
| 12 | // case, or false otherwise. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_autocomplete_chrome_autocomplete_scheme_classifier_cc b/www/chromium/patches/patch-chrome_browser_autocomplete_chrome_autocomplete_scheme_classifier_cc new file mode 100644 index 0000000..29c6716 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_autocomplete_chrome_autocomplete_scheme_classifier_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc | ||
| 2 | --- chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc.orig | ||
| 3 | +++ chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc | ||
| 4 | @@ -89,7 +89,7 @@ ChromeAutocompleteSchemeClassifier::GetInputTypeForSch | ||
| 5 | return metrics::OmniboxInputType::QUERY; | ||
| 6 | |||
| 7 | case ExternalProtocolHandler::UNKNOWN: { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Linux impl of GetApplicationNameForProtocol doesn't distinguish | ||
| 11 | // between URL schemes with handers and those without. This will | ||
| 12 | // make the default behaviour be search on Linux. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_background_background_mode_manager_cc b/www/chromium/patches/patch-chrome_browser_background_background_mode_manager_cc new file mode 100644 index 0000000..e59aed8 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_background_background_mode_manager_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/background/background_mode_manager.cc | ||
| 2 | --- chrome/browser/background/background_mode_manager.cc.orig | ||
| 3 | +++ chrome/browser/background/background_mode_manager.cc | ||
| 4 | @@ -899,7 +899,7 @@ gfx::ImageSkia GetStatusTrayIcon() { | ||
| 5 | return gfx::ImageSkia(); | ||
| 6 | |||
| 7 | return family->CreateExact(size).AsImageSkia(); | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | return *ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed( | ||
| 11 | IDR_PRODUCT_LOGO_128); | ||
| 12 | #elif BUILDFLAG(IS_MAC) | ||
diff --git a/www/chromium/patches/patch-chrome_browser_background_background_mode_optimizer_cc b/www/chromium/patches/patch-chrome_browser_background_background_mode_optimizer_cc new file mode 100644 index 0000000..6db6b71 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_background_background_mode_optimizer_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/background/background_mode_optimizer.cc | ||
| 2 | --- chrome/browser/background/background_mode_optimizer.cc.orig | ||
| 3 | +++ chrome/browser/background/background_mode_optimizer.cc | ||
| 4 | @@ -31,7 +31,7 @@ std::unique_ptr<BackgroundModeOptimizer> BackgroundMod | ||
| 5 | switches::kKeepAliveForTest)) | ||
| 6 | return nullptr; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | if (base::FeatureList::IsEnabled(features::kBackgroundModeAllowRestart)) | ||
| 11 | return base::WrapUnique(new BackgroundModeOptimizer()); | ||
| 12 | #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
diff --git a/www/chromium/patches/patch-chrome_browser_browser_features_cc b/www/chromium/patches/patch-chrome_browser_browser_features_cc new file mode 100644 index 0000000..18b0445 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_browser_features_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/browser_features.cc | ||
| 2 | --- chrome/browser/browser_features.cc.orig | ||
| 3 | +++ chrome/browser/browser_features.cc | ||
| 4 | @@ -29,7 +29,7 @@ const base::Feature kColorProviderRedirectionForThemeP | ||
| 5 | // the browser exits. | ||
| 6 | const base::Feature kDestroyProfileOnBrowserClose{ | ||
| 7 | "DestroyProfileOnBrowserClose", | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 10 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 11 | }; | ||
| 12 | #else | ||
diff --git a/www/chromium/patches/patch-chrome_browser_browser_process_impl_cc b/www/chromium/patches/patch-chrome_browser_browser_process_impl_cc new file mode 100644 index 0000000..13b665f --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_browser_process_impl_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/browser_process_impl.cc | ||
| 2 | --- chrome/browser/browser_process_impl.cc.orig | ||
| 3 | +++ chrome/browser/browser_process_impl.cc | ||
| 4 | @@ -208,7 +208,7 @@ | ||
| 5 | #include "components/enterprise/browser/controller/chrome_browser_cloud_management_controller.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/error_reporting/chrome_js_error_report_processor.h" // nogncheck | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -1157,7 +1157,7 @@ void BrowserProcessImpl::PreMainMessageLoopRun() { | ||
| 14 | |||
| 15 | ApplyMetricsReportingPolicy(); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | ChromeJsErrorReportProcessor::Create(); | ||
| 20 | #endif | ||
| 21 | |||
| 22 | @@ -1412,7 +1412,7 @@ void BrowserProcessImpl::Unpin() { | ||
| 23 | // Mac is currently not supported. | ||
| 24 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 25 | // complete. | ||
| 26 | -#if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 27 | +#if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) | ||
| 28 | |||
| 29 | bool BrowserProcessImpl::IsRunningInBackground() const { | ||
| 30 | // Check if browser is in the background. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_browser_process_impl_h b/www/chromium/patches/patch-chrome_browser_browser_process_impl_h new file mode 100644 index 0000000..1b6943c --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_browser_process_impl_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/browser_process_impl.h | ||
| 2 | --- chrome/browser/browser_process_impl.h.orig | ||
| 3 | +++ chrome/browser/browser_process_impl.h | ||
| 4 | @@ -367,7 +367,7 @@ class BrowserProcessImpl : public BrowserProcess, | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) | ||
| 10 | base::RepeatingTimer autoupdate_timer_; | ||
| 11 | |||
| 12 | // Gets called by autoupdate timer to see if browser needs restart and can be | ||
diff --git a/www/chromium/patches/patch-chrome_browser_chrome_browser_interface_binders_cc b/www/chromium/patches/patch-chrome_browser_chrome_browser_interface_binders_cc new file mode 100644 index 0000000..8c28b16 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_chrome_browser_interface_binders_cc | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | Index: chrome/browser/chrome_browser_interface_binders.cc | ||
| 2 | --- chrome/browser/chrome_browser_interface_binders.cc.orig | ||
| 3 | +++ chrome/browser/chrome_browser_interface_binders.cc | ||
| 4 | @@ -96,13 +96,13 @@ | ||
| 5 | #endif // BUILDFLAG(FULL_SAFE_BROWSING) | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/ui/webui/connectors_internals/connectors_internals.mojom.h" | ||
| 11 | #include "chrome/browser/ui/webui/connectors_internals/connectors_internals_ui.h" | ||
| 12 | #endif | ||
| 13 | |||
| 14 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 15 | - BUILDFLAG(IS_FUCHSIA) | ||
| 16 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 17 | #include "chrome/browser/ui/webui/app_settings/web_app_settings_ui.h" | ||
| 18 | #include "ui/webui/resources/cr_components/app_management/app_management.mojom.h" | ||
| 19 | #endif | ||
| 20 | @@ -172,7 +172,7 @@ | ||
| 21 | #endif // BUILDFLAG(IS_ANDROID) | ||
| 22 | |||
| 23 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 24 | - BUILDFLAG(IS_CHROMEOS) | ||
| 25 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 26 | #include "chrome/browser/ui/webui/discards/discards.mojom.h" | ||
| 27 | #include "chrome/browser/ui/webui/discards/discards_ui.h" | ||
| 28 | #include "chrome/browser/ui/webui/discards/site_data.mojom.h" | ||
| 29 | @@ -665,7 +665,7 @@ void PopulateChromeFrameBinders( | ||
| 30 | #endif | ||
| 31 | |||
| 32 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 33 | - BUILDFLAG(IS_CHROMEOS) | ||
| 34 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 35 | if (!render_frame_host->GetParent()) { | ||
| 36 | map->Add<chrome::mojom::DraggableRegions>( | ||
| 37 | base::BindRepeating(&DraggableRegionsHostImpl::CreateIfAllowed)); | ||
| 38 | @@ -673,7 +673,7 @@ void PopulateChromeFrameBinders( | ||
| 39 | #endif | ||
| 40 | |||
| 41 | #if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \ | ||
| 42 | - BUILDFLAG(IS_WIN) | ||
| 43 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 44 | if (base::FeatureList::IsEnabled(blink::features::kDesktopPWAsSubApps) && | ||
| 45 | !render_frame_host->GetParent()) { | ||
| 46 | map->Add<blink::mojom::SubAppsService>( | ||
| 47 | @@ -714,14 +714,14 @@ void PopulateChromeWebUIFrameBinders( | ||
| 48 | SegmentationInternalsUI>(map); | ||
| 49 | |||
| 50 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 51 | - BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 52 | + BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) | ||
| 53 | RegisterWebUIControllerInterfaceBinder< | ||
| 54 | connectors_internals::mojom::PageHandler, | ||
| 55 | enterprise_connectors::ConnectorsInternalsUI>(map); | ||
| 56 | #endif | ||
| 57 | |||
| 58 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 59 | - BUILDFLAG(IS_FUCHSIA) | ||
| 60 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 61 | RegisterWebUIControllerInterfaceBinder< | ||
| 62 | app_management::mojom::PageHandlerFactory, WebAppSettingsUI>(map); | ||
| 63 | #endif | ||
| 64 | @@ -1040,7 +1040,7 @@ void PopulateChromeWebUIFrameBinders( | ||
| 65 | #endif | ||
| 66 | |||
| 67 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 68 | - BUILDFLAG(IS_CHROMEOS) | ||
| 69 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 70 | RegisterWebUIControllerInterfaceBinder<discards::mojom::DetailsProvider, | ||
| 71 | DiscardsUI>(map); | ||
| 72 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_cc b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_cc new file mode 100644 index 0000000..7772303 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_cc | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | Index: chrome/browser/chrome_browser_main.cc | ||
| 2 | --- chrome/browser/chrome_browser_main.cc.orig | ||
| 3 | +++ chrome/browser/chrome_browser_main.cc | ||
| 4 | @@ -231,11 +231,11 @@ | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/first_run/upgrade_util_linux.h" | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 12 | |||
| 13 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 14 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 15 | #include "components/crash/core/app/breakpad_linux.h" | ||
| 16 | #include "components/crash/core/app/crashpad.h" | ||
| 17 | #endif | ||
| 18 | @@ -270,7 +270,7 @@ | ||
| 19 | |||
| 20 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 21 | // of lacros-chrome is complete. | ||
| 22 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 23 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 24 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 25 | #include "chrome/browser/metrics/desktop_session_duration/desktop_session_duration_tracker.h" | ||
| 26 | #include "chrome/browser/metrics/desktop_session_duration/touch_mode_stats_tracker.h" | ||
| 27 | @@ -1007,7 +1007,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { | ||
| 28 | AddFirstRunNewTabs(browser_creator_.get(), master_prefs_->new_tabs); | ||
| 29 | } | ||
| 30 | |||
| 31 | -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 32 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 33 | // Create directory for user-level Native Messaging manifest files. This | ||
| 34 | // makes it less likely that the directory will be created by third-party | ||
| 35 | // software with incorrect owner or permission. See crbug.com/725513 . | ||
| 36 | @@ -1020,7 +1020,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { | ||
| 37 | } | ||
| 38 | #endif // !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 39 | |||
| 40 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_OPENBSD) | ||
| 41 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 42 | // Set the product channel for crash reports. | ||
| 43 | if (!crash_reporter::IsCrashpadEnabled()) { | ||
| 44 | breakpad::SetChannelCrashKey( | ||
| 45 | @@ -1041,7 +1041,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { | ||
| 46 | |||
| 47 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 48 | // of lacros-chrome is complete. | ||
| 49 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 50 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 51 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 52 | metrics::DesktopSessionDurationTracker::Initialize(); | ||
| 53 | ProfileActivityMetricsRecorder::Initialize(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_extra_parts_linux_cc b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_extra_parts_linux_cc new file mode 100644 index 0000000..10e432c --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_extra_parts_linux_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/chrome_browser_main_extra_parts_linux.cc | ||
| 2 | --- chrome/browser/chrome_browser_main_extra_parts_linux.cc.orig | ||
| 3 | +++ chrome/browser/chrome_browser_main_extra_parts_linux.cc | ||
| 4 | @@ -120,7 +120,7 @@ ChromeBrowserMainExtraPartsLinux::ChromeBrowserMainExt | ||
| 5 | ChromeBrowserMainExtraPartsLinux::~ChromeBrowserMainExtraPartsLinux() = default; | ||
| 6 | |||
| 7 | void ChromeBrowserMainExtraPartsLinux::PreEarlyInitialization() { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // On the desktop, we fix the platform name if necessary. | ||
| 11 | // See https://crbug.com/1246928. | ||
| 12 | auto* const command_line = base::CommandLine::ForCurrentProcess(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_linux_cc b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_linux_cc new file mode 100644 index 0000000..84d03d8 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_linux_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/chrome_browser_main_linux.cc | ||
| 2 | --- chrome/browser/chrome_browser_main_linux.cc.orig | ||
| 3 | +++ chrome/browser/chrome_browser_main_linux.cc | ||
| 4 | @@ -57,7 +57,7 @@ ChromeBrowserMainPartsLinux::~ChromeBrowserMainPartsLi | ||
| 5 | } | ||
| 6 | |||
| 7 | void ChromeBrowserMainPartsLinux::PostCreateMainMessageLoop() { | ||
| 8 | -#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD) | ||
| 10 | // No-op: Ash and Lacros Bluetooth DBusManager initialization depend on | ||
| 11 | // FeatureList, and is done elsewhere. | ||
| 12 | #else | ||
| 13 | @@ -122,7 +122,7 @@ void ChromeBrowserMainPartsLinux::PostBrowserStart() { | ||
| 14 | #endif // defined(USE_DBUS) && !BUILDFLAG(IS_CHROMEOS) | ||
| 15 | |||
| 16 | void ChromeBrowserMainPartsLinux::PostDestroyThreads() { | ||
| 17 | -#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD) | ||
| 19 | // No-op; per PostBrowserStart() comment, this is done elsewhere. | ||
| 20 | #else | ||
| 21 | bluez::BluezDBusManager::Shutdown(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_posix_cc b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_posix_cc new file mode 100644 index 0000000..d829ea7 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_posix_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/chrome_browser_main_posix.cc | ||
| 2 | --- chrome/browser/chrome_browser_main_posix.cc.orig | ||
| 3 | +++ chrome/browser/chrome_browser_main_posix.cc | ||
| 4 | @@ -72,7 +72,7 @@ void ExitHandler::ExitWhenPossibleOnUIThread(int signa | ||
| 5 | } else { | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | switch (signal) { | ||
| 11 | case SIGINT: | ||
| 12 | case SIGHUP: | ||
diff --git a/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_cc b/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_cc new file mode 100644 index 0000000..888dbb9 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_cc | |||
| @@ -0,0 +1,160 @@ | |||
| 1 | Index: chrome/browser/chrome_content_browser_client.cc | ||
| 2 | --- chrome/browser/chrome_content_browser_client.cc.orig | ||
| 3 | +++ chrome/browser/chrome_content_browser_client.cc | ||
| 4 | @@ -374,7 +374,7 @@ | ||
| 5 | #include "services/service_manager/public/mojom/interface_provider_spec.mojom.h" | ||
| 6 | #include "storage/browser/file_system/external_mount_points.h" | ||
| 7 | #include "third_party/cros_system_api/switches/chrome_switches.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/chrome_browser_main_linux.h" | ||
| 11 | #elif BUILDFLAG(IS_ANDROID) | ||
| 12 | #include "base/android/application_status_listener.h" | ||
| 13 | @@ -444,17 +444,17 @@ | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 19 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 20 | #include "chrome/browser/browser_switcher/browser_switcher_navigation_throttle.h" | ||
| 21 | #endif | ||
| 22 | |||
| 23 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 24 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 25 | #include "components/crash/core/app/crash_switches.h" | ||
| 26 | #include "components/crash/core/app/crashpad.h" | ||
| 27 | #endif | ||
| 28 | |||
| 29 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) | ||
| 30 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 31 | #if !BUILDFLAG(IS_ANDROID) | ||
| 32 | #include "base/debug/leak_annotations.h" | ||
| 33 | #include "components/crash/core/app/breakpad_linux.h" | ||
| 34 | @@ -462,12 +462,12 @@ | ||
| 35 | #include "components/crash/content/browser/crash_handler_host_linux.h" | ||
| 36 | #endif | ||
| 37 | |||
| 38 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 39 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 40 | #include "chrome/browser/ui/webui/app_settings/web_app_settings_navigation_throttle.h" | ||
| 41 | #endif | ||
| 42 | |||
| 43 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || \ | ||
| 44 | - BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 45 | + BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) | ||
| 46 | #include "chrome/browser/enterprise/connectors/device_trust/navigation_throttle.h" | ||
| 47 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || | ||
| 48 | // BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 49 | @@ -489,11 +489,11 @@ | ||
| 50 | |||
| 51 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 52 | // of lacros-chrome is complete. | ||
| 53 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 54 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 55 | #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.h" | ||
| 56 | #endif | ||
| 57 | |||
| 58 | -#if BUILDFLAG(IS_LINUX) | ||
| 59 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 60 | #include "chrome/browser/chrome_browser_main_extra_parts_linux.h" | ||
| 61 | #elif defined(USE_OZONE) | ||
| 62 | #include "chrome/browser/chrome_browser_main_extra_parts_ozone.h" | ||
| 63 | @@ -880,7 +880,7 @@ blink::mojom::AutoplayPolicy GetAutoplayPolicyForWebCo | ||
| 64 | int GetCrashSignalFD(const base::CommandLine& command_line) { | ||
| 65 | return crashpad::CrashHandlerHost::Get()->GetDeathSignalSocket(); | ||
| 66 | } | ||
| 67 | -#elif BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) | ||
| 68 | +#elif BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 69 | breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( | ||
| 70 | const std::string& process_type) { | ||
| 71 | base::FilePath dumps_path; | ||
| 72 | @@ -1376,7 +1376,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts( | ||
| 73 | #elif BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 74 | main_parts = std::make_unique<ChromeBrowserMainPartsLacros>( | ||
| 75 | std::move(parameters), &startup_data_); | ||
| 76 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 77 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 78 | main_parts = std::make_unique<ChromeBrowserMainPartsLinux>( | ||
| 79 | std::move(parameters), &startup_data_); | ||
| 80 | #elif BUILDFLAG(IS_ANDROID) | ||
| 81 | @@ -1410,7 +1410,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts( | ||
| 82 | std::make_unique<ChromeBrowserMainExtraPartsViewsLacros>()); | ||
| 83 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 84 | // of lacros-chrome is complete. | ||
| 85 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 86 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 87 | main_parts->AddParts( | ||
| 88 | std::make_unique<ChromeBrowserMainExtraPartsViewsLinux>()); | ||
| 89 | #else | ||
| 90 | @@ -1427,7 +1427,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts( | ||
| 91 | main_parts->AddParts(std::make_unique<ChromeBrowserMainExtraPartsLacros>()); | ||
| 92 | #endif | ||
| 93 | |||
| 94 | -#if BUILDFLAG(IS_LINUX) | ||
| 95 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 96 | main_parts->AddParts(std::make_unique<ChromeBrowserMainExtraPartsLinux>()); | ||
| 97 | #elif defined(USE_OZONE) | ||
| 98 | main_parts->AddParts(std::make_unique<ChromeBrowserMainExtraPartsOzone>()); | ||
| 99 | @@ -2101,7 +2101,7 @@ bool ChromeContentBrowserClient::AreDirectSocketsAllow | ||
| 100 | Profile* profile = Profile::FromBrowserContext(context); | ||
| 101 | return profile && profile->GetPrefs()->GetBoolean( | ||
| 102 | policy::policy_prefs::kEnableDirectSockets); | ||
| 103 | -#elif BUILDFLAG(IS_LINUX) | ||
| 104 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 105 | // There are currently no reliable way to determine managed status on Linux. | ||
| 106 | return false; | ||
| 107 | #elif BUILDFLAG(IS_MAC) | ||
| 108 | @@ -2190,6 +2190,8 @@ void ChromeContentBrowserClient::AppendExtraCommandLin | ||
| 109 | #elif BUILDFLAG(IS_POSIX) | ||
| 110 | #if BUILDFLAG(IS_ANDROID) | ||
| 111 | bool enable_crash_reporter = true; | ||
| 112 | +#elif BUILDFLAG(IS_BSD) | ||
| 113 | + bool enable_crash_reporter = false; | ||
| 114 | #else | ||
| 115 | bool enable_crash_reporter = false; | ||
| 116 | if (crash_reporter::IsCrashpadEnabled()) { | ||
| 117 | @@ -2498,7 +2500,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin | ||
| 118 | ThreadProfilerConfiguration::Get()->AppendCommandLineSwitchForChildProcess( | ||
| 119 | command_line); | ||
| 120 | |||
| 121 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 122 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 123 | // Processes may only query perf_event_open with the BPF sandbox disabled. | ||
| 124 | if (browser_command_line.HasSwitch(switches::kEnableThreadInstructionCount) && | ||
| 125 | command_line->HasSwitch(sandbox::policy::switches::kNoSandbox)) { | ||
| 126 | @@ -3880,7 +3882,7 @@ void ChromeContentBrowserClient::GetAdditionalFileSyst | ||
| 127 | } | ||
| 128 | } | ||
| 129 | |||
| 130 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) | ||
| 131 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 132 | void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess( | ||
| 133 | const base::CommandLine& command_line, | ||
| 134 | int child_process_id, | ||
| 135 | @@ -4292,14 +4294,14 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati | ||
| 136 | &throttles); | ||
| 137 | } | ||
| 138 | |||
| 139 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 140 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 141 | MaybeAddThrottle( | ||
| 142 | WebAppSettingsNavigationThrottle::MaybeCreateThrottleFor(handle), | ||
| 143 | &throttles); | ||
| 144 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 145 | |||
| 146 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || \ | ||
| 147 | - BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 148 | + BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) | ||
| 149 | MaybeAddThrottle(enterprise_connectors::DeviceTrustNavigationThrottle:: | ||
| 150 | MaybeCreateThrottleFor(handle), | ||
| 151 | &throttles); | ||
| 152 | @@ -4332,7 +4334,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati | ||
| 153 | |||
| 154 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 155 | // of lacros-chrome is complete. | ||
| 156 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 157 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 158 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 159 | MaybeAddThrottle(browser_switcher::BrowserSwitcherNavigationThrottle:: | ||
| 160 | MaybeCreateThrottleFor(handle), | ||
diff --git a/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_h b/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_h new file mode 100644 index 0000000..accafa1 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/chrome_content_browser_client.h | ||
| 2 | --- chrome/browser/chrome_content_browser_client.h.orig | ||
| 3 | +++ chrome/browser/chrome_content_browser_client.h | ||
| 4 | @@ -417,7 +417,7 @@ class ChromeContentBrowserClient : public content::Con | ||
| 5 | void OverridePageVisibilityState( | ||
| 6 | content::RenderFrameHost* render_frame_host, | ||
| 7 | content::PageVisibilityState* visibility_state) override; | ||
| 8 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 10 | void GetAdditionalMappedFilesForChildProcess( | ||
| 11 | const base::CommandLine& command_line, | ||
| 12 | int child_process_id, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_crash_upload_list_crash_upload_list_cc b/www/chromium/patches/patch-chrome_browser_crash_upload_list_crash_upload_list_cc new file mode 100644 index 0000000..49fa71c --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_crash_upload_list_crash_upload_list_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/crash_upload_list/crash_upload_list.cc | ||
| 2 | --- chrome/browser/crash_upload_list/crash_upload_list.cc.orig | ||
| 3 | +++ chrome/browser/crash_upload_list/crash_upload_list.cc | ||
| 4 | @@ -52,7 +52,7 @@ scoped_refptr<UploadList> CreateCrashUploadList() { | ||
| 5 | // to log uploads in CrashUploadList::kReporterLogFilename. | ||
| 6 | // Linux is handled below. | ||
| 7 | #if !(BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS) || \ | ||
| 8 | - BUILDFLAG(IS_LINUX)) | ||
| 9 | + BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) | ||
| 10 | if (crash_reporter::IsCrashpadEnabled()) { | ||
| 11 | return new CrashUploadListCrashpad(); | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-chrome_browser_custom_handlers_chrome_protocol_handler_registry_delegate_cc b/www/chromium/patches/patch-chrome_browser_custom_handlers_chrome_protocol_handler_registry_delegate_cc new file mode 100644 index 0000000..1d979ff --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_custom_handlers_chrome_protocol_handler_registry_delegate_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/custom_handlers/chrome_protocol_handler_registry_delegate.cc | ||
| 2 | --- chrome/browser/custom_handlers/chrome_protocol_handler_registry_delegate.cc.orig | ||
| 3 | +++ chrome/browser/custom_handlers/chrome_protocol_handler_registry_delegate.cc | ||
| 4 | @@ -69,7 +69,7 @@ void ChromeProtocolHandlerRegistryDelegate::CheckDefau | ||
| 5 | // If true default protocol handlers will be removed if the OS level | ||
| 6 | // registration for a protocol is no longer Chrome. | ||
| 7 | bool ChromeProtocolHandlerRegistryDelegate::ShouldRemoveHandlersNotInOS() { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // We don't do this on Linux as the OS registration there is not reliable, | ||
| 11 | // and Chrome OS doesn't have any notion of OS registration. | ||
| 12 | // TODO(benwells): When Linux support is more reliable remove this | ||
diff --git a/www/chromium/patches/patch-chrome_browser_defaults_cc b/www/chromium/patches/patch-chrome_browser_defaults_cc new file mode 100644 index 0000000..9f0f7e3 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_defaults_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/defaults.cc | ||
| 2 | --- chrome/browser/defaults.cc.orig | ||
| 3 | +++ chrome/browser/defaults.cc | ||
| 4 | @@ -48,7 +48,7 @@ const bool kSyncAutoStarts = true; | ||
| 5 | const bool kSyncAutoStarts = false; | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | const bool kScrollEventChangesTab = true; | ||
| 11 | #else | ||
| 12 | const bool kScrollEventChangesTab = false; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_dev_ui_browser_resources_grd b/www/chromium/patches/patch-chrome_browser_dev_ui_browser_resources_grd new file mode 100644 index 0000000..75217a7 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_dev_ui_browser_resources_grd | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/dev_ui_browser_resources.grd | ||
| 2 | --- chrome/browser/dev_ui_browser_resources.grd.orig | ||
| 3 | +++ chrome/browser/dev_ui_browser_resources.grd | ||
| 4 | @@ -46,7 +46,7 @@ This file specifies browser resources for developer-fa | ||
| 5 | <include name="IDR_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_JS" file="resources\predictors\resource_prefetch_predictor.js" type="BINDATA" /> | ||
| 6 | <include name="IDR_MEDIA_SESSION_MOJOM_WEBUI_JS" file="${root_gen_dir}\mojom-webui\services\media_session\public\mojom\media_session.mojom-webui.js" use_base_dir="false" type="BINDATA" /> | ||
| 7 | |||
| 8 | - <if expr="is_android or is_linux"> | ||
| 9 | + <if expr="is_android or is_posix"> | ||
| 10 | <include name="IDR_SANDBOX_INTERNALS_HTML" file="resources\sandbox_internals\sandbox_internals.html" preprocess="true" type="BINDATA" /> | ||
| 11 | <include name="IDR_SANDBOX_INTERNALS_JS" file="resources\sandbox_internals\sandbox_internals.js" preprocess="true" type="BINDATA" /> | ||
| 12 | </if> | ||
diff --git a/www/chromium/patches/patch-chrome_browser_device_identity_device_oauth2_token_service_factory_cc b/www/chromium/patches/patch-chrome_browser_device_identity_device_oauth2_token_service_factory_cc new file mode 100644 index 0000000..c9fcc85 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_device_identity_device_oauth2_token_service_factory_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/device_identity/device_oauth2_token_service_factory.cc | ||
| 2 | --- chrome/browser/device_identity/device_oauth2_token_service_factory.cc.orig | ||
| 3 | +++ chrome/browser/device_identity/device_oauth2_token_service_factory.cc | ||
| 4 | @@ -28,7 +28,7 @@ std::unique_ptr<DeviceOAuth2TokenStore> CreatePlatform | ||
| 5 | return std::make_unique<chromeos::DeviceOAuth2TokenStoreChromeOS>( | ||
| 6 | local_state); | ||
| 7 | #elif BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 8 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) | ||
| 10 | return std::make_unique<DeviceOAuth2TokenStoreDesktop>(local_state); | ||
| 11 | #else | ||
| 12 | NOTREACHED(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_devtools_devtools_eye_dropper_cc b/www/chromium/patches/patch-chrome_browser_devtools_devtools_eye_dropper_cc new file mode 100644 index 0000000..4fef80e --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_devtools_devtools_eye_dropper_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/devtools/devtools_eye_dropper.cc | ||
| 2 | --- chrome/browser/devtools/devtools_eye_dropper.cc.orig | ||
| 3 | +++ chrome/browser/devtools/devtools_eye_dropper.cc | ||
| 4 | @@ -186,7 +186,7 @@ void DevToolsEyeDropper::UpdateCursor() { | ||
| 5 | // magnified projection only with centered hotspot. | ||
| 6 | // Mac Retina requires cursor to be > 120px in order to render smoothly. | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | const float kCursorSize = 63; | ||
| 11 | const float kDiameter = 63; | ||
| 12 | const float kHotspotOffset = 32; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_diagnostics_diagnostics_writer_h b/www/chromium/patches/patch-chrome_browser_diagnostics_diagnostics_writer_h new file mode 100644 index 0000000..5c71af3 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_diagnostics_diagnostics_writer_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/diagnostics/diagnostics_writer.h | ||
| 2 | --- chrome/browser/diagnostics/diagnostics_writer.h.orig | ||
| 3 | +++ chrome/browser/diagnostics/diagnostics_writer.h | ||
| 4 | @@ -14,6 +14,8 @@ namespace diagnostics { | ||
| 5 | // Console base class used internally. | ||
| 6 | class SimpleConsole; | ||
| 7 | |||
| 8 | +#undef MACHINE | ||
| 9 | + | ||
| 10 | class DiagnosticsWriter : public DiagnosticsModel::Observer { | ||
| 11 | public: | ||
| 12 | // The type of formatting done by this writer. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_download_chrome_download_manager_delegate_cc b/www/chromium/patches/patch-chrome_browser_download_chrome_download_manager_delegate_cc new file mode 100644 index 0000000..9cb41e3 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_download_chrome_download_manager_delegate_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: chrome/browser/download/chrome_download_manager_delegate.cc | ||
| 2 | --- chrome/browser/download/chrome_download_manager_delegate.cc.orig | ||
| 3 | +++ chrome/browser/download/chrome_download_manager_delegate.cc | ||
| 4 | @@ -1541,7 +1541,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe | ||
| 5 | target_info->is_filetype_handled_safely) | ||
| 6 | DownloadItemModel(item).SetShouldPreferOpeningInBrowser(true); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | if (item->GetOriginalMimeType() == "application/x-x509-user-cert") | ||
| 11 | DownloadItemModel(item).SetShouldPreferOpeningInBrowser(true); | ||
| 12 | #endif | ||
| 13 | @@ -1610,7 +1610,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe | ||
| 14 | bool ChromeDownloadManagerDelegate::IsOpenInBrowserPreferreredForFile( | ||
| 15 | const base::FilePath& path) { | ||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 17 | - BUILDFLAG(IS_MAC) | ||
| 18 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | if (path.MatchesExtension(FILE_PATH_LITERAL(".pdf"))) { | ||
| 20 | return !download_prefs_->ShouldOpenPdfInSystemReader(); | ||
| 21 | } | ||
| 22 | @@ -1718,7 +1718,7 @@ void ChromeDownloadManagerDelegate::CheckDownloadAllow | ||
| 23 | content::CheckDownloadAllowedCallback check_download_allowed_cb) { | ||
| 24 | DCHECK_CURRENTLY_ON(BrowserThread::UI); | ||
| 25 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 26 | - BUILDFLAG(IS_MAC) | ||
| 27 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | // Don't download pdf if it is a file URL, as that might cause an infinite | ||
| 29 | // download loop if Chrome is not the system pdf viewer. | ||
| 30 | if (url.SchemeIsFile() && download_prefs_->ShouldOpenPdfInSystemReader()) { | ||
| 31 | @@ -1760,7 +1760,7 @@ std::unique_ptr<download::DownloadItemRenameHandler> | ||
| 32 | ChromeDownloadManagerDelegate::GetRenameHandlerForDownload( | ||
| 33 | download::DownloadItem* download_item) { | ||
| 34 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 35 | - BUILDFLAG(IS_MAC) | ||
| 36 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 37 | return enterprise_connectors::FileSystemRenameHandler::CreateIfNeeded( | ||
| 38 | download_item); | ||
| 39 | #else | ||
| 40 | @@ -1776,7 +1776,7 @@ void ChromeDownloadManagerDelegate::CheckSavePackageAl | ||
| 41 | DCHECK(download_item->IsSavePackageDownload()); | ||
| 42 | |||
| 43 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 44 | - BUILDFLAG(IS_MAC) | ||
| 45 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 46 | if (!base::FeatureList::IsEnabled( | ||
| 47 | download::features::kAllowSavePackageScanning)) { | ||
| 48 | std::move(callback).Run(true); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_download_download_commands_cc b/www/chromium/patches/patch-chrome_browser_download_download_commands_cc new file mode 100644 index 0000000..620af95 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_download_download_commands_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/download/download_commands.cc | ||
| 2 | --- chrome/browser/download/download_commands.cc.orig | ||
| 3 | +++ chrome/browser/download/download_commands.cc | ||
| 4 | @@ -27,7 +27,7 @@ | ||
| 5 | #include "ui/base/clipboard/scoped_clipboard_writer.h" | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/ui/browser.h" | ||
| 11 | #include "chrome/browser/ui/browser_finder.h" | ||
| 12 | #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" | ||
| 13 | @@ -168,7 +168,7 @@ void DownloadCommands::ExecuteCommand(Command command) | ||
| 14 | } | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 18 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | |||
| 20 | Browser* DownloadCommands::GetBrowser() const { | ||
| 21 | if (!model_) | ||
diff --git a/www/chromium/patches/patch-chrome_browser_download_download_commands_h b/www/chromium/patches/patch-chrome_browser_download_download_commands_h new file mode 100644 index 0000000..c2f9032 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_download_download_commands_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/download/download_commands.h | ||
| 2 | --- chrome/browser/download/download_commands.h.orig | ||
| 3 | +++ chrome/browser/download/download_commands.h | ||
| 4 | @@ -54,7 +54,7 @@ class DownloadCommands { | ||
| 5 | void ExecuteCommand(Command command); | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | bool IsDownloadPdf() const; | ||
| 11 | bool CanOpenPdfInSystemViewer() const; | ||
| 12 | Browser* GetBrowser() const; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_download_download_item_model_cc b/www/chromium/patches/patch-chrome_browser_download_download_item_model_cc new file mode 100644 index 0000000..20c1dd7 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_download_download_item_model_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/download/download_item_model.cc | ||
| 2 | --- chrome/browser/download/download_item_model.cc.orig | ||
| 3 | +++ chrome/browser/download/download_item_model.cc | ||
| 4 | @@ -640,7 +640,7 @@ bool DownloadItemModel::IsCommandChecked( | ||
| 5 | download_crx_util::IsExtensionDownload(*download_); | ||
| 6 | case DownloadCommands::ALWAYS_OPEN_TYPE: | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_MAC) | ||
| 9 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | if (download_commands->CanOpenPdfInSystemViewer()) { | ||
| 11 | DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext(profile()); | ||
| 12 | return prefs->ShouldOpenPdfInSystemReader(); | ||
| 13 | @@ -681,7 +681,7 @@ void DownloadItemModel::ExecuteCommand(DownloadCommand | ||
| 14 | DownloadCommands::ALWAYS_OPEN_TYPE); | ||
| 15 | DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext(profile()); | ||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 17 | - BUILDFLAG(IS_MAC) | ||
| 18 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | if (download_commands->CanOpenPdfInSystemViewer()) { | ||
| 20 | prefs->SetShouldOpenPdfInSystemReader(!is_checked); | ||
| 21 | SetShouldPreferOpeningInBrowser(is_checked); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_download_download_prefs_cc b/www/chromium/patches/patch-chrome_browser_download_download_prefs_cc new file mode 100644 index 0000000..29dd288 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_download_download_prefs_cc | |||
| @@ -0,0 +1,100 @@ | |||
| 1 | Index: chrome/browser/download/download_prefs.cc | ||
| 2 | --- chrome/browser/download/download_prefs.cc.orig | ||
| 3 | +++ chrome/browser/download/download_prefs.cc | ||
| 4 | @@ -13,6 +13,7 @@ | ||
| 5 | #include "base/callback_helpers.h" | ||
| 6 | #include "base/check.h" | ||
| 7 | #include "base/cxx17_backports.h" | ||
| 8 | +#include "base/command_line.h" | ||
| 9 | #include "base/feature_list.h" | ||
| 10 | #include "base/files/file_util.h" | ||
| 11 | #include "base/no_destructor.h" | ||
| 12 | @@ -60,6 +61,10 @@ | ||
| 13 | #include "chrome/browser/ui/pdf/adobe_reader_info_win.h" | ||
| 14 | #endif | ||
| 15 | |||
| 16 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 17 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 18 | +#endif | ||
| 19 | + | ||
| 20 | using content::BrowserContext; | ||
| 21 | using content::BrowserThread; | ||
| 22 | using content::DownloadManager; | ||
| 23 | @@ -70,7 +75,7 @@ namespace { | ||
| 24 | // Consider downloads 'dangerous' if they go to the home directory on Linux and | ||
| 25 | // to the desktop on any platform. | ||
| 26 | bool DownloadPathIsDangerous(const base::FilePath& download_path) { | ||
| 27 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 28 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 29 | base::FilePath home_dir = base::GetHomeDir(); | ||
| 30 | if (download_path == home_dir) { | ||
| 31 | return true; | ||
| 32 | @@ -168,7 +173,7 @@ DownloadPrefs::DownloadPrefs(Profile* profile) : profi | ||
| 33 | #endif // BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 34 | |||
| 35 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 36 | - BUILDFLAG(IS_MAC) | ||
| 37 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 38 | should_open_pdf_in_system_reader_ = | ||
| 39 | prefs->GetBoolean(prefs::kOpenPdfDownloadInSystemReader); | ||
| 40 | #endif | ||
| 41 | @@ -287,7 +292,7 @@ void DownloadPrefs::RegisterProfilePrefs( | ||
| 42 | registry->RegisterFilePathPref(prefs::kSaveFileDefaultDirectory, | ||
| 43 | default_download_path); | ||
| 44 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 45 | - BUILDFLAG(IS_MAC) | ||
| 46 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 47 | registry->RegisterBooleanPref(prefs::kOpenPdfDownloadInSystemReader, false); | ||
| 48 | #endif | ||
| 49 | #if BUILDFLAG(IS_ANDROID) | ||
| 50 | @@ -421,7 +426,7 @@ bool DownloadPrefs::IsDownloadPathManaged() const { | ||
| 51 | |||
| 52 | bool DownloadPrefs::IsAutoOpenByUserUsed() const { | ||
| 53 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 54 | - BUILDFLAG(IS_MAC) | ||
| 55 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 56 | if (ShouldOpenPdfInSystemReader()) | ||
| 57 | return true; | ||
| 58 | #endif | ||
| 59 | @@ -436,7 +441,7 @@ bool DownloadPrefs::IsAutoOpenEnabled(const GURL& url, | ||
| 60 | DCHECK(extension[0] == base::FilePath::kExtensionSeparator); | ||
| 61 | extension.erase(0, 1); | ||
| 62 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 63 | - BUILDFLAG(IS_MAC) | ||
| 64 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 65 | if (base::FilePath::CompareEqualIgnoreCase(extension, | ||
| 66 | FILE_PATH_LITERAL("pdf")) && | ||
| 67 | ShouldOpenPdfInSystemReader()) | ||
| 68 | @@ -491,7 +496,7 @@ void DownloadPrefs::DisableAutoOpenByUserBasedOnExtens | ||
| 69 | } | ||
| 70 | |||
| 71 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 72 | - BUILDFLAG(IS_MAC) | ||
| 73 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 74 | void DownloadPrefs::SetShouldOpenPdfInSystemReader(bool should_open) { | ||
| 75 | if (should_open_pdf_in_system_reader_ == should_open) | ||
| 76 | return; | ||
| 77 | @@ -513,7 +518,7 @@ bool DownloadPrefs::ShouldOpenPdfInSystemReader() cons | ||
| 78 | |||
| 79 | void DownloadPrefs::ResetAutoOpenByUser() { | ||
| 80 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 81 | - BUILDFLAG(IS_MAC) | ||
| 82 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 83 | SetShouldOpenPdfInSystemReader(false); | ||
| 84 | #endif | ||
| 85 | auto_open_by_user_.clear(); | ||
| 86 | @@ -653,7 +658,14 @@ base::FilePath DownloadPrefs::SanitizeDownloadTargetPa | ||
| 87 | #else | ||
| 88 | // If the stored download directory is an absolute path, we presume it's | ||
| 89 | // correct; there's not really much more validation we can do here. | ||
| 90 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 91 | + // If unveil(2) is used, force the file dialog directory to something we | ||
| 92 | + // know is available. | ||
| 93 | + auto* sandbox = sandbox::policy::SandboxLinux::GetInstance(); | ||
| 94 | + if (!sandbox->unveil_initialized() && path.IsAbsolute()) | ||
| 95 | +#else | ||
| 96 | if (path.IsAbsolute()) | ||
| 97 | +#endif | ||
| 98 | return path; | ||
| 99 | |||
| 100 | // When the default download directory is *not* an absolute path, we use the | ||
diff --git a/www/chromium/patches/patch-chrome_browser_download_download_prefs_h b/www/chromium/patches/patch-chrome_browser_download_download_prefs_h new file mode 100644 index 0000000..3fa5d3a --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_download_download_prefs_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/download/download_prefs.h | ||
| 2 | --- chrome/browser/download/download_prefs.h.orig | ||
| 3 | +++ chrome/browser/download/download_prefs.h | ||
| 4 | @@ -122,7 +122,7 @@ class DownloadPrefs { | ||
| 5 | void DisableAutoOpenByUserBasedOnExtension(const base::FilePath& file_name); | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_MAC) | ||
| 9 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | // Store the user preference to disk. If |should_open| is true, also disable | ||
| 11 | // the built-in PDF plugin. If |should_open| is false, enable the PDF plugin. | ||
| 12 | void SetShouldOpenPdfInSystemReader(bool should_open); | ||
| 13 | @@ -181,7 +181,7 @@ class DownloadPrefs { | ||
| 14 | std::unique_ptr<policy::URLBlocklist> auto_open_allowed_by_urls_; | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 17 | - BUILDFLAG(IS_MAC) | ||
| 18 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | bool should_open_pdf_in_system_reader_; | ||
| 20 | #endif | ||
| 21 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_connector_service_factory_cc b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_connector_service_factory_cc new file mode 100644 index 0000000..d07efff --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_connector_service_factory_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/enterprise/connectors/device_trust/device_trust_connector_service_factory.cc | ||
| 2 | --- chrome/browser/enterprise/connectors/device_trust/device_trust_connector_service_factory.cc.orig | ||
| 3 | +++ chrome/browser/enterprise/connectors/device_trust/device_trust_connector_service_factory.cc | ||
| 4 | @@ -12,7 +12,7 @@ | ||
| 5 | #include "components/keyed_service/content/browser_context_dependency_manager.h" | ||
| 6 | #include "components/keyed_service/core/keyed_service.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/browser_process.h" | ||
| 11 | #include "chrome/browser/enterprise/connectors/device_trust/browser/browser_device_trust_connector_service.h" | ||
| 12 | #include "chrome/browser/policy/chrome_browser_policy_connector.h" | ||
| 13 | @@ -37,7 +37,7 @@ DeviceTrustConnectorService* DeviceTrustConnectorServi | ||
| 14 | |||
| 15 | bool DeviceTrustConnectorServiceFactory::ServiceIsCreatedWithBrowserContext() | ||
| 16 | const { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | return IsDeviceTrustConnectorFeatureEnabled(); | ||
| 20 | #else | ||
| 21 | return false; | ||
| 22 | @@ -58,7 +58,7 @@ KeyedService* DeviceTrustConnectorServiceFactory::Buil | ||
| 23 | |||
| 24 | DeviceTrustConnectorService* service = nullptr; | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | if (IsDeviceTrustConnectorFeatureEnabled()) { | ||
| 29 | auto* key_manager = g_browser_process->browser_policy_connector() | ||
| 30 | ->chrome_browser_cloud_management_controller() | ||
diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_service_factory_cc b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_service_factory_cc new file mode 100644 index 0000000..4798d54 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_service_factory_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/enterprise/connectors/device_trust/device_trust_service_factory.cc | ||
| 2 | --- chrome/browser/enterprise/connectors/device_trust/device_trust_service_factory.cc.orig | ||
| 3 | +++ chrome/browser/enterprise/connectors/device_trust/device_trust_service_factory.cc | ||
| 4 | @@ -21,7 +21,7 @@ | ||
| 5 | #include "components/policy/content/policy_blocklist_service.h" | ||
| 6 | #include "content/public/browser/browser_context.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/browser_process.h" | ||
| 11 | #include "chrome/browser/enterprise/connectors/device_trust/attestation/desktop/desktop_attestation_service.h" | ||
| 12 | #include "chrome/browser/policy/chrome_browser_policy_connector.h" | ||
diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_signals_signals_service_factory_cc b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_signals_signals_service_factory_cc new file mode 100644 index 0000000..d9b9e19 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_signals_signals_service_factory_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/enterprise/connectors/device_trust/signals/signals_service_factory.cc | ||
| 2 | --- chrome/browser/enterprise/connectors/device_trust/signals/signals_service_factory.cc.orig | ||
| 3 | +++ chrome/browser/enterprise/connectors/device_trust/signals/signals_service_factory.cc | ||
| 4 | @@ -14,7 +14,7 @@ | ||
| 5 | #include "chrome/browser/enterprise/connectors/device_trust/signals/signals_service_impl.h" | ||
| 6 | #include "chrome/browser/profiles/profile.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/check.h" | ||
| 11 | #include "chrome/browser/enterprise/connectors/device_trust/signals/decorators/browser/browser_signals_decorator.h" | ||
| 12 | #include "chrome/browser/policy/chrome_browser_policy_connector.h" | ||
| 13 | @@ -44,7 +44,7 @@ std::unique_ptr<SignalsService> CreateSignalsService( | ||
| 14 | decorators.push_back( | ||
| 15 | std::make_unique<ContentSignalsDecorator>(policy_blocklist_service)); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | policy::ChromeBrowserPolicyConnector* browser_policy_connector = | ||
| 20 | g_browser_process->browser_policy_connector(); | ||
| 21 | DCHECK(browser_policy_connector); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_remote_commands_cbcm_remote_commands_factory_cc b/www/chromium/patches/patch-chrome_browser_enterprise_remote_commands_cbcm_remote_commands_factory_cc new file mode 100644 index 0000000..930327b --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_enterprise_remote_commands_cbcm_remote_commands_factory_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/enterprise/remote_commands/cbcm_remote_commands_factory.cc | ||
| 2 | --- chrome/browser/enterprise/remote_commands/cbcm_remote_commands_factory.cc.orig | ||
| 3 | +++ chrome/browser/enterprise/remote_commands/cbcm_remote_commands_factory.cc | ||
| 4 | @@ -11,7 +11,7 @@ | ||
| 5 | #include "chrome/browser/profiles/profile_manager.h" | ||
| 6 | #include "components/policy/core/common/remote_commands/remote_command_job.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/enterprise/connectors/device_trust/device_trust_features.h" | ||
| 11 | #include "chrome/browser/enterprise/remote_commands/rotate_attestation_credential_job.h" | ||
| 12 | #include "chrome/browser/policy/chrome_browser_policy_connector.h" | ||
| 13 | @@ -31,7 +31,7 @@ CBCMRemoteCommandsFactory::BuildJobForType( | ||
| 14 | g_browser_process->profile_manager()); | ||
| 15 | } | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | if (enterprise_connectors::IsDeviceTrustConnectorFeatureEnabled() && | ||
| 20 | type == enterprise_management:: | ||
| 21 | RemoteCommand_Type_BROWSER_ROTATE_ATTESTATION_CREDENTIAL) { | ||
diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_signals_device_info_fetcher_cc b/www/chromium/patches/patch-chrome_browser_enterprise_signals_device_info_fetcher_cc new file mode 100644 index 0000000..2547aef --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_enterprise_signals_device_info_fetcher_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/enterprise/signals/device_info_fetcher.cc | ||
| 2 | --- chrome/browser/enterprise/signals/device_info_fetcher.cc.orig | ||
| 3 | +++ chrome/browser/enterprise/signals/device_info_fetcher.cc | ||
| 4 | @@ -10,7 +10,7 @@ | ||
| 5 | #include "chrome/browser/enterprise/signals/device_info_fetcher_mac.h" | ||
| 6 | #elif BUILDFLAG(IS_WIN) | ||
| 7 | #include "chrome/browser/enterprise/signals/device_info_fetcher_win.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/enterprise/signals/device_info_fetcher_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -70,7 +70,7 @@ std::unique_ptr<DeviceInfoFetcher> DeviceInfoFetcher:: | ||
| 14 | return std::make_unique<DeviceInfoFetcherMac>(); | ||
| 15 | #elif BUILDFLAG(IS_WIN) | ||
| 16 | return std::make_unique<DeviceInfoFetcherWin>(); | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | return std::make_unique<DeviceInfoFetcherLinux>(); | ||
| 20 | #else | ||
| 21 | return std::make_unique<StubDeviceFetcher>(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_signals_device_info_fetcher_linux_cc b/www/chromium/patches/patch-chrome_browser_enterprise_signals_device_info_fetcher_linux_cc new file mode 100644 index 0000000..e4179b1 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_enterprise_signals_device_info_fetcher_linux_cc | |||
| @@ -0,0 +1,79 @@ | |||
| 1 | Index: chrome/browser/enterprise/signals/device_info_fetcher_linux.cc | ||
| 2 | --- chrome/browser/enterprise/signals/device_info_fetcher_linux.cc.orig | ||
| 3 | +++ chrome/browser/enterprise/signals/device_info_fetcher_linux.cc | ||
| 4 | @@ -4,12 +4,23 @@ | ||
| 5 | |||
| 6 | #include "chrome/browser/enterprise/signals/device_info_fetcher_linux.h" | ||
| 7 | |||
| 8 | +#include "build/build_config.h" | ||
| 9 | + | ||
| 10 | #if defined(USE_GIO) | ||
| 11 | #include <gio/gio.h> | ||
| 12 | #endif // defined(USE_GIO) | ||
| 13 | #include <sys/stat.h> | ||
| 14 | +#if !defined(OS_BSD) | ||
| 15 | #include <sys/sysmacros.h> | ||
| 16 | +#endif | ||
| 17 | |||
| 18 | +#if defined(OS_BSD) | ||
| 19 | +#include <sys/types.h> | ||
| 20 | +#include <sys/socket.h> | ||
| 21 | +#include <ifaddrs.h> | ||
| 22 | +#include <net/if_dl.h> | ||
| 23 | +#endif | ||
| 24 | + | ||
| 25 | #include <string> | ||
| 26 | |||
| 27 | #include "base/environment.h" | ||
| 28 | @@ -118,6 +129,7 @@ SettingValue GetScreenlockSecured() { | ||
| 29 | // Implements the logic from the native host installation script. First find the | ||
| 30 | // root device identifier, then locate its parent and get its type. | ||
| 31 | SettingValue GetDiskEncrypted() { | ||
| 32 | +#if !defined(OS_BSD) | ||
| 33 | struct stat info; | ||
| 34 | // First figure out the device identifier. Fail fast if this fails. | ||
| 35 | if (stat("/", &info) != 0) | ||
| 36 | @@ -139,11 +151,35 @@ SettingValue GetDiskEncrypted() { | ||
| 37 | } | ||
| 38 | return SettingValue::UNKNOWN; | ||
| 39 | } | ||
| 40 | +#endif | ||
| 41 | return SettingValue::DISABLED; | ||
| 42 | } | ||
| 43 | |||
| 44 | std::vector<std::string> GetMacAddresses() { | ||
| 45 | std::vector<std::string> result; | ||
| 46 | +#if defined(OS_BSD) | ||
| 47 | + struct ifaddrs* ifa = nullptr; | ||
| 48 | + | ||
| 49 | + if (getifaddrs(&ifa) != 0) | ||
| 50 | + return result; | ||
| 51 | + | ||
| 52 | + struct ifaddrs* interface = ifa; | ||
| 53 | + for (; interface != nullptr; interface = interface->ifa_next) { | ||
| 54 | + if (interface->ifa_addr == nullptr || | ||
| 55 | + interface->ifa_addr->sa_family != AF_LINK) { | ||
| 56 | + continue; | ||
| 57 | + } | ||
| 58 | + struct sockaddr_dl* sdl = | ||
| 59 | + reinterpret_cast<struct sockaddr_dl*>(interface->ifa_addr); | ||
| 60 | + if (!sdl || sdl->sdl_alen != 6) | ||
| 61 | + continue; | ||
| 62 | + char* link_address = static_cast<char*>(LLADDR(sdl)); | ||
| 63 | + result.push_back(base::StringPrintf( | ||
| 64 | + "%02x:%02x:%02x:%02x:%02x:%02x", link_address[0] & 0xff, | ||
| 65 | + link_address[1] & 0xff, link_address[2] & 0xff, link_address[3] & 0xff, | ||
| 66 | + link_address[4] & 0xff, link_address[5] & 0xff)); | ||
| 67 | + } | ||
| 68 | +#else | ||
| 69 | base::DirReaderPosix reader("/sys/class/net"); | ||
| 70 | if (!reader.IsValid()) | ||
| 71 | return result; | ||
| 72 | @@ -166,6 +202,7 @@ std::vector<std::string> GetMacAddresses() { | ||
| 73 | &address); | ||
| 74 | result.push_back(address); | ||
| 75 | } | ||
| 76 | +#endif | ||
| 77 | return result; | ||
| 78 | } | ||
| 79 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_extensions_BUILD_gn b/www/chromium/patches/patch-chrome_browser_extensions_BUILD_gn new file mode 100644 index 0000000..39603a4 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_extensions_BUILD_gn | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: chrome/browser/extensions/BUILD.gn | ||
| 2 | --- chrome/browser/extensions/BUILD.gn.orig | ||
| 3 | +++ chrome/browser/extensions/BUILD.gn | ||
| 4 | @@ -1299,6 +1299,10 @@ static_library("extensions") { | ||
| 5 | deps += [ "//chrome/services/printing/public/mojom" ] | ||
| 6 | } | ||
| 7 | |||
| 8 | + if (is_bsd) { | ||
| 9 | + sources -= [ "api/image_writer_private/removable_storage_provider_linux.cc" ] | ||
| 10 | + } | ||
| 11 | + | ||
| 12 | if (enable_service_discovery) { | ||
| 13 | sources += [ | ||
| 14 | "api/mdns/mdns_api.cc", | ||
diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_enterprise_reporting_private_api_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_enterprise_reporting_private_api_cc new file mode 100644 index 0000000..df363f1 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_enterprise_reporting_private_api_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc | ||
| 2 | --- chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc.orig | ||
| 3 | +++ chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc | ||
| 4 | @@ -155,7 +155,7 @@ EnterpriseReportingPrivateGetDeviceIdFunction:: | ||
| 5 | |||
| 6 | // getPersistentSecret | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_LINUX) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | EnterpriseReportingPrivateGetPersistentSecretFunction:: | ||
| 12 | EnterpriseReportingPrivateGetPersistentSecretFunction() = default; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_enterprise_reporting_private_api_h b/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_enterprise_reporting_private_api_h new file mode 100644 index 0000000..e78d52f --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_enterprise_reporting_private_api_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.h | ||
| 2 | --- chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.h.orig | ||
| 3 | +++ chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.h | ||
| 4 | @@ -45,7 +45,7 @@ class EnterpriseReportingPrivateGetDeviceIdFunction : | ||
| 5 | ~EnterpriseReportingPrivateGetDeviceIdFunction() override; | ||
| 6 | }; | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_LINUX) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | class EnterpriseReportingPrivateGetPersistentSecretFunction | ||
| 12 | : public ExtensionFunction { | ||
diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_image_writer_private_removable_storage_provider_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_image_writer_private_removable_storage_provider_cc new file mode 100644 index 0000000..25b5833 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_image_writer_private_removable_storage_provider_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/extensions/api/image_writer_private/removable_storage_provider.cc | ||
| 2 | --- chrome/browser/extensions/api/image_writer_private/removable_storage_provider.cc.orig | ||
| 3 | +++ chrome/browser/extensions/api/image_writer_private/removable_storage_provider.cc | ||
| 4 | @@ -22,6 +22,7 @@ static base::LazyInstance<scoped_refptr<StorageDeviceL | ||
| 5 | |||
| 6 | void RemovableStorageProvider::GetAllDevices(DeviceListReadyCallback callback) { | ||
| 7 | DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | ||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | if (g_test_device_list.Get().get() != nullptr) { | ||
| 10 | base::ThreadTaskRunnerHandle::Get()->PostTask( | ||
| 11 | FROM_HERE, | ||
| 12 | @@ -35,6 +36,9 @@ void RemovableStorageProvider::GetAllDevices(DeviceLis | ||
| 13 | base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN}, | ||
| 14 | base::BindOnce(&RemovableStorageProvider::PopulateDeviceList), | ||
| 15 | std::move(callback)); | ||
| 16 | +#else | ||
| 17 | + NOTIMPLEMENTED(); | ||
| 18 | +#endif | ||
| 19 | } | ||
| 20 | |||
| 21 | // static | ||
diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_messaging_native_process_launcher_posix_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_messaging_native_process_launcher_posix_cc new file mode 100644 index 0000000..0a62109 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_messaging_native_process_launcher_posix_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc | ||
| 2 | --- chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc.orig | ||
| 3 | +++ chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc | ||
| 4 | @@ -82,7 +82,7 @@ bool NativeProcessLauncher::LaunchNativeProcess( | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Don't use no_new_privs mode, e.g. in case the host needs to use sudo. | ||
| 11 | options.allow_new_privs = true; | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_settings_private_prefs_util_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_settings_private_prefs_util_cc new file mode 100644 index 0000000..3844d9a --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_settings_private_prefs_util_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/extensions/api/settings_private/prefs_util.cc | ||
| 2 | --- chrome/browser/extensions/api/settings_private/prefs_util.cc.orig | ||
| 3 | +++ chrome/browser/extensions/api/settings_private/prefs_util.cc | ||
| 4 | @@ -182,7 +182,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetAllowlist | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | (*s_allowlist)[::prefs::kUseCustomChromeFrame] = | ||
| 11 | settings_api::PrefType::PREF_TYPE_BOOLEAN; | ||
| 12 | #endif | ||
| 13 | @@ -196,7 +196,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetAllowlist | ||
| 14 | settings_api::PrefType::PREF_TYPE_NUMBER; | ||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | (*s_allowlist)[::prefs::kUsesSystemTheme] = | ||
| 20 | settings_api::PrefType::PREF_TYPE_BOOLEAN; | ||
| 21 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_webrtc_logging_private_webrtc_logging_private_api_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_webrtc_logging_private_webrtc_logging_private_api_cc new file mode 100644 index 0000000..460a1ad --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_webrtc_logging_private_webrtc_logging_private_api_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc | ||
| 2 | --- chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc.orig | ||
| 3 | +++ chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc | ||
| 4 | @@ -30,7 +30,7 @@ | ||
| 5 | #include "extensions/browser/process_manager.h" | ||
| 6 | #include "extensions/common/error_utils.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "extensions/common/permissions/permissions_data.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -39,7 +39,7 @@ namespace { | ||
| 14 | bool CanEnableAudioDebugRecordingsFromExtension( | ||
| 15 | const extensions::Extension* extension) { | ||
| 16 | bool enabled_by_permissions = false; | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | if (extension) { | ||
| 20 | enabled_by_permissions = | ||
| 21 | extension->permissions_data()->active_permissions().HasAPIPermission( | ||
| 22 | @@ -580,7 +580,7 @@ void WebrtcLoggingPrivateStartEventLoggingFunction::Fi | ||
| 23 | |||
| 24 | ExtensionFunction::ResponseAction | ||
| 25 | WebrtcLoggingPrivateGetLogsDirectoryFunction::Run() { | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | // Unlike other WebrtcLoggingPrivate functions that take a RequestInfo object, | ||
| 29 | // this function shouldn't be called by a component extension on behalf of | ||
| 30 | // some web code. It returns a DirectoryEntry for use directly in the calling | ||
diff --git a/www/chromium/patches/patch-chrome_browser_extensions_browser_context_keyed_service_factories_cc b/www/chromium/patches/patch-chrome_browser_extensions_browser_context_keyed_service_factories_cc new file mode 100644 index 0000000..1aa0340 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_extensions_browser_context_keyed_service_factories_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/extensions/browser_context_keyed_service_factories.cc | ||
| 2 | --- chrome/browser/extensions/browser_context_keyed_service_factories.cc.orig | ||
| 3 | +++ chrome/browser/extensions/browser_context_keyed_service_factories.cc | ||
| 4 | @@ -52,7 +52,7 @@ | ||
| 5 | #include "extensions/browser/api/networking_private/networking_private_delegate_factory.h" | ||
| 6 | #include "ppapi/buildflags/buildflags.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/extensions/api/system_indicator/system_indicator_manager_factory.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -124,7 +124,7 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt() | ||
| 14 | extensions::SettingsPrivateEventRouterFactory::GetInstance(); | ||
| 15 | extensions::SettingsOverridesAPI::GetFactoryInstance(); | ||
| 16 | extensions::SignedInDevicesManager::GetFactoryInstance(); | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 19 | extensions::SystemIndicatorManagerFactory::GetInstance(); | ||
| 20 | #endif | ||
| 21 | extensions::TabGroupsEventRouterFactory::GetInstance(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_extensions_external_provider_impl_cc b/www/chromium/patches/patch-chrome_browser_extensions_external_provider_impl_cc new file mode 100644 index 0000000..761ce84 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_extensions_external_provider_impl_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/extensions/external_provider_impl.cc | ||
| 2 | --- chrome/browser/extensions/external_provider_impl.cc.orig | ||
| 3 | +++ chrome/browser/extensions/external_provider_impl.cc | ||
| 4 | @@ -818,7 +818,7 @@ void ExternalProviderImpl::CreateExternalProviders( | ||
| 5 | if (!profile->GetPrefs()->GetBoolean(pref_names::kBlockExternalExtensions)) { | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | provider_list->push_back(std::make_unique<ExternalProviderImpl>( | ||
| 11 | service, | ||
| 12 | base::MakeRefCounted<ExternalPrefLoader>( | ||
| 13 | @@ -846,7 +846,7 @@ void ExternalProviderImpl::CreateExternalProviders( | ||
| 14 | bundled_extension_creation_flags)); | ||
| 15 | |||
| 16 | // Define a per-user source of external extensions. | ||
| 17 | -#if BUILDFLAG(IS_MAC) || ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ | ||
| 18 | +#if BUILDFLAG(IS_MAC) || ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && \ | ||
| 19 | BUILDFLAG(CHROMIUM_BRANDING)) | ||
| 20 | provider_list->push_back(std::make_unique<ExternalProviderImpl>( | ||
| 21 | service, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_file_system_access_chrome_file_system_access_permission_context_cc b/www/chromium/patches/patch-chrome_browser_file_system_access_chrome_file_system_access_permission_context_cc new file mode 100644 index 0000000..6781af6 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_file_system_access_chrome_file_system_access_permission_context_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc | ||
| 2 | --- chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc.orig | ||
| 3 | +++ chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc | ||
| 4 | @@ -217,7 +217,7 @@ const struct { | ||
| 5 | {base::DIR_HOME, FILE_PATH_LITERAL("Library/Mobile Documents"), | ||
| 6 | kDontBlockChildren}, | ||
| 7 | #endif | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // On Linux also block access to devices via /dev, as well as security | ||
| 11 | // sensitive data in /sys and /proc. | ||
| 12 | {kNoBasePathKey, FILE_PATH_LITERAL("/dev"), kBlockAllChildren}, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_first_run_first_run_dialog_h b/www/chromium/patches/patch-chrome_browser_first_run_first_run_dialog_h new file mode 100644 index 0000000..7385c73 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_first_run_first_run_dialog_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/first_run/first_run_dialog.h | ||
| 2 | --- chrome/browser/first_run/first_run_dialog.h.orig | ||
| 3 | +++ chrome/browser/first_run/first_run_dialog.h | ||
| 4 | @@ -12,7 +12,7 @@ | ||
| 5 | // Hide this function on platforms where the dialog does not exist. | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | +#if BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | class Profile; | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_first_run_first_run_internal_h b/www/chromium/patches/patch-chrome_browser_first_run_first_run_internal_h new file mode 100644 index 0000000..da8d924 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_first_run_first_run_internal_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/first_run/first_run_internal.h | ||
| 2 | --- chrome/browser/first_run/first_run_internal.h.orig | ||
| 3 | +++ chrome/browser/first_run/first_run_internal.h | ||
| 4 | @@ -58,7 +58,7 @@ FirstRunState DetermineFirstRunState(bool has_sentinel | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | +#if BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) | ||
| 10 | // For testing, forces the first run dialog to either be shown or not. If not | ||
| 11 | // called, the decision to show the dialog or not will be made by Chrome based | ||
| 12 | // on a number of factors (such as install type, whether it's a Chrome-branded | ||
diff --git a/www/chromium/patches/patch-chrome_browser_flag_descriptions_cc b/www/chromium/patches/patch-chrome_browser_flag_descriptions_cc new file mode 100644 index 0000000..6472f57 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_flag_descriptions_cc | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | Index: chrome/browser/flag_descriptions.cc | ||
| 2 | --- chrome/browser/flag_descriptions.cc.orig | ||
| 3 | +++ chrome/browser/flag_descriptions.cc | ||
| 4 | @@ -5508,7 +5508,7 @@ const char kDownloadShelfWebUIDescription[] = | ||
| 5 | // Random platform combinations ----------------------------------------------- | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | const char kWebuiFeedbackName[] = "WebUI Feedback"; | ||
| 12 | const char kWebuiFeedbackDescription[] = | ||
| 13 | @@ -5519,7 +5519,7 @@ const char kWebuiFeedbackDescription[] = | ||
| 14 | // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_FUCHSIA) | ||
| 18 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | |||
| 20 | const char kCommanderName[] = "Commander"; | ||
| 21 | const char kCommanderDescription[] = | ||
| 22 | @@ -5545,7 +5545,7 @@ const char kWebShareDescription[] = | ||
| 23 | "platforms."; | ||
| 24 | #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) || BUILDFLAG(IS_BSD) | ||
| 28 | const char kOzonePlatformHintChoiceDefault[] = "Default"; | ||
| 29 | const char kOzonePlatformHintChoiceAuto[] = "Auto"; | ||
| 30 | const char kOzonePlatformHintChoiceX11[] = "X11"; | ||
| 31 | @@ -5557,7 +5557,7 @@ const char kOzonePlatformHintDescription[] = | ||
| 32 | "\"X11\". \"Auto\" selects Wayland if possible, X11 otherwise. "; | ||
| 33 | #endif // BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 37 | const char kCleanUndecryptablePasswordsLinuxName[] = | ||
| 38 | "Cleanup local undecryptable passwords during initial sync flow"; | ||
| 39 | const char kCleanUndecryptablePasswordsLinuxDescription[] = | ||
| 40 | @@ -5570,7 +5570,7 @@ const char kForcePasswordInitialSyncWhenDecryptionFail | ||
| 41 | "storage and requests initial sync."; | ||
| 42 | #endif // BUILDFLAG(IS_LINUX) | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 46 | const char kSkipUndecryptablePasswordsName[] = | ||
| 47 | "Skip undecryptable passwords to use the available decryptable " | ||
| 48 | "passwords."; | ||
| 49 | @@ -5687,7 +5687,7 @@ const char kElasticOverscrollDescription[] = | ||
| 50 | |||
| 51 | #if BUILDFLAG(IS_WIN) || \ | ||
| 52 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \ | ||
| 53 | - BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) | ||
| 54 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 55 | const char kUIDebugToolsName[] = "Debugging tools for UI"; | ||
| 56 | const char kUIDebugToolsDescription[] = | ||
| 57 | "Enables additional keyboard shortcuts to help debugging."; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_flag_descriptions_h b/www/chromium/patches/patch-chrome_browser_flag_descriptions_h new file mode 100644 index 0000000..cd0cf57 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_flag_descriptions_h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: chrome/browser/flag_descriptions.h | ||
| 2 | --- chrome/browser/flag_descriptions.h.orig | ||
| 3 | +++ chrome/browser/flag_descriptions.h | ||
| 4 | @@ -3178,7 +3178,7 @@ extern const char kDownloadShelfWebUIDescription[]; | ||
| 5 | // Random platform combinations ----------------------------------------------- | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | extern const char kWebuiFeedbackName[]; | ||
| 12 | extern const char kWebuiFeedbackDescription[]; | ||
| 13 | @@ -3187,7 +3187,7 @@ extern const char kWebuiFeedbackDescription[]; | ||
| 14 | // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_FUCHSIA) | ||
| 18 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | |||
| 20 | extern const char kCommanderName[]; | ||
| 21 | extern const char kCommanderDescription[]; | ||
| 22 | @@ -3206,7 +3206,7 @@ extern const char kWebShareName[]; | ||
| 23 | extern const char kWebShareDescription[]; | ||
| 24 | #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | extern const char kOzonePlatformHintChoiceDefault[]; | ||
| 29 | extern const char kOzonePlatformHintChoiceAuto[]; | ||
| 30 | extern const char kOzonePlatformHintChoiceX11[]; | ||
| 31 | @@ -3222,7 +3222,7 @@ extern const char kForcePasswordInitialSyncWhenDecrypt | ||
| 32 | extern const char kForcePasswordInitialSyncWhenDecryptionFailsDescription[]; | ||
| 33 | #endif // BUILDFLAG(IS_LINUX) | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 37 | extern const char kSkipUndecryptablePasswordsName[]; | ||
| 38 | extern const char kSkipUndecryptablePasswordsDescription[]; | ||
| 39 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) | ||
| 40 | @@ -3304,7 +3304,7 @@ extern const char kElasticOverscrollDescription[]; | ||
| 41 | |||
| 42 | #if BUILDFLAG(IS_WIN) || \ | ||
| 43 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \ | ||
| 44 | - BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) | ||
| 45 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 46 | extern const char kUIDebugToolsName[]; | ||
| 47 | extern const char kUIDebugToolsDescription[]; | ||
| 48 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_headless_headless_mode_util_cc b/www/chromium/patches/patch-chrome_browser_headless_headless_mode_util_cc new file mode 100644 index 0000000..c8f53fb --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_headless_headless_mode_util_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/headless/headless_mode_util.cc | ||
| 2 | --- chrome/browser/headless/headless_mode_util.cc.orig | ||
| 3 | +++ chrome/browser/headless/headless_mode_util.cc | ||
| 4 | @@ -9,7 +9,7 @@ | ||
| 5 | // Native headless is currently available on Linux, Windows and Mac platforms. | ||
| 6 | // More platforms will be added later, so avoid function level clutter by | ||
| 7 | // providing stub implementations at the end of the file. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | #include <cstdlib> | ||
| 12 | #include <vector> | ||
| 13 | @@ -17,7 +17,7 @@ | ||
| 14 | #include "base/base_switches.h" | ||
| 15 | #include "ui/gfx/switches.h" | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | #include "ui/ozone/public/ozone_switches.h" | ||
| 20 | #endif // BUILDFLAG(IS_LINUX) | ||
| 21 | |||
| 22 | @@ -51,7 +51,7 @@ void SetUpCommandLine(const base::CommandLine* command | ||
| 23 | base::CommandLine::ForCurrentProcess()->AppendSwitch( | ||
| 24 | ::switches::kNoErrorDialogs); | ||
| 25 | } | ||
| 26 | -#if BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | // Native headless chrome on Linux relies on ozone/headless platform. | ||
| 29 | base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( | ||
| 30 | ::switches::kOzonePlatform, switches::kHeadless); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_intranet_redirect_detector_h b/www/chromium/patches/patch-chrome_browser_intranet_redirect_detector_h new file mode 100644 index 0000000..e563825 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_intranet_redirect_detector_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/intranet_redirect_detector.h | ||
| 2 | --- chrome/browser/intranet_redirect_detector.h.orig | ||
| 3 | +++ chrome/browser/intranet_redirect_detector.h | ||
| 4 | @@ -27,7 +27,7 @@ class SimpleURLLoader; | ||
| 5 | class PrefRegistrySimple; | ||
| 6 | |||
| 7 | #if !(BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)) | ||
| 10 | #error "IntranetRedirectDetector should only be built on Desktop platforms." | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_media_audio_service_util_cc b/www/chromium/patches/patch-chrome_browser_media_audio_service_util_cc new file mode 100644 index 0000000..b4cf44b --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_media_audio_service_util_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/media/audio_service_util.cc | ||
| 2 | --- chrome/browser/media/audio_service_util.cc.orig | ||
| 3 | +++ chrome/browser/media/audio_service_util.cc | ||
| 4 | @@ -21,7 +21,7 @@ | ||
| 5 | |||
| 6 | namespace { | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 10 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 11 | bool GetPolicyOrFeature(const char* policy_name, const base::Feature& feature) { | ||
| 12 | const policy::PolicyMap& policies = | ||
| 13 | @@ -41,7 +41,7 @@ bool GetPolicyOrFeature(const char* policy_name, const | ||
| 14 | bool IsAudioServiceSandboxEnabled() { | ||
| 15 | // TODO(crbug.com/1052397): Remove !IS_CHROMEOS_LACROS once lacros starts being | ||
| 16 | // built with OS_CHROMEOS instead of OS_LINUX. | ||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 19 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 20 | return GetPolicyOrFeature(policy::key::kAudioSandboxEnabled, | ||
| 21 | features::kAudioServiceSandbox); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_media_galleries_fileapi_mtp_device_map_service_cc b/www/chromium/patches/patch-chrome_browser_media_galleries_fileapi_mtp_device_map_service_cc new file mode 100644 index 0000000..6741ede --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_media_galleries_fileapi_mtp_device_map_service_cc | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc | ||
| 2 | --- chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc.orig | ||
| 3 | +++ chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc | ||
| 4 | @@ -39,10 +39,12 @@ void MTPDeviceMapService::RegisterMTPFileSystem( | ||
| 5 | // Note that this initializes the delegate asynchronously, but since | ||
| 6 | // the delegate will only be used from the IO thread, it is guaranteed | ||
| 7 | // to be created before use of it expects it to be there. | ||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | CreateMTPDeviceAsyncDelegate( | ||
| 10 | device_location, read_only, | ||
| 11 | base::BindOnce(&MTPDeviceMapService::AddAsyncDelegate, | ||
| 12 | base::Unretained(this), device_location, read_only)); | ||
| 13 | +#endif | ||
| 14 | mtp_device_usage_map_[key] = 0; | ||
| 15 | } | ||
| 16 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_media_galleries_media_file_system_registry_cc b/www/chromium/patches/patch-chrome_browser_media_galleries_media_file_system_registry_cc new file mode 100644 index 0000000..9e61dda --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_media_galleries_media_file_system_registry_cc | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: chrome/browser/media_galleries/media_file_system_registry.cc | ||
| 2 | --- chrome/browser/media_galleries/media_file_system_registry.cc.orig | ||
| 3 | +++ chrome/browser/media_galleries/media_file_system_registry.cc | ||
| 4 | @@ -744,7 +744,12 @@ class MediaFileSystemRegistry::MediaFileSystemContextI | ||
| 5 | // Constructor in 'private' section because depends on private class definition. | ||
| 6 | MediaFileSystemRegistry::MediaFileSystemRegistry() | ||
| 7 | : file_system_context_(new MediaFileSystemContextImpl) { | ||
| 8 | - StorageMonitor::GetInstance()->AddObserver(this); | ||
| 9 | + /* | ||
| 10 | + * This conditional is needed for shutdown. Destructors | ||
| 11 | + * try to get the media file system registry. | ||
| 12 | + */ | ||
| 13 | + if (StorageMonitor::GetInstance()) | ||
| 14 | + StorageMonitor::GetInstance()->AddObserver(this); | ||
| 15 | } | ||
| 16 | |||
| 17 | MediaFileSystemRegistry::~MediaFileSystemRegistry() { | ||
diff --git a/www/chromium/patches/patch-chrome_browser_media_router_discovery_BUILD_gn b/www/chromium/patches/patch-chrome_browser_media_router_discovery_BUILD_gn new file mode 100644 index 0000000..12458a5 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_media_router_discovery_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/media/router/discovery/BUILD.gn | ||
| 2 | --- chrome/browser/media/router/discovery/BUILD.gn.orig | ||
| 3 | +++ chrome/browser/media/router/discovery/BUILD.gn | ||
| 4 | @@ -94,7 +94,7 @@ static_library("discovery") { | ||
| 5 | "media_sink_discovery_metrics.h", | ||
| 6 | ] | ||
| 7 | |||
| 8 | - if (is_linux || is_chromeos) { | ||
| 9 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | sources += [ "discovery_network_list_wifi_linux.cc" ] | ||
| 11 | } | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_media_router_discovery_discovery_network_list_posix_cc b/www/chromium/patches/patch-chrome_browser_media_router_discovery_discovery_network_list_posix_cc new file mode 100644 index 0000000..d9584f3 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_media_router_discovery_discovery_network_list_posix_cc | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | Index: chrome/browser/media/router/discovery/discovery_network_list_posix.cc | ||
| 2 | --- chrome/browser/media/router/discovery/discovery_network_list_posix.cc.orig | ||
| 3 | +++ chrome/browser/media/router/discovery/discovery_network_list_posix.cc | ||
| 4 | @@ -5,11 +5,12 @@ | ||
| 5 | #include "chrome/browser/media/router/discovery/discovery_network_list.h" | ||
| 6 | |||
| 7 | #include <ifaddrs.h> | ||
| 8 | +#include <sys/socket.h> | ||
| 9 | +#include <sys/types.h> | ||
| 10 | +#include <sys/time.h> | ||
| 11 | #include <net/if.h> | ||
| 12 | #include <net/if_arp.h> | ||
| 13 | #include <netinet/in.h> | ||
| 14 | -#include <sys/socket.h> | ||
| 15 | -#include <sys/types.h> | ||
| 16 | |||
| 17 | #include <algorithm> | ||
| 18 | |||
| 19 | @@ -18,7 +19,7 @@ | ||
| 20 | #include "chrome/browser/media/router/discovery/discovery_network_list_wifi.h" | ||
| 21 | #include "net/base/net_errors.h" | ||
| 22 | |||
| 23 | -#if !BUILDFLAG(IS_MAC) | ||
| 24 | +#if !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 25 | #include <netpacket/packet.h> | ||
| 26 | #else | ||
| 27 | #include <net/if_dl.h> | ||
| 28 | @@ -27,7 +28,7 @@ | ||
| 29 | namespace media_router { | ||
| 30 | namespace { | ||
| 31 | |||
| 32 | -#if !BUILDFLAG(IS_MAC) | ||
| 33 | +#if !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 34 | using sll = struct sockaddr_ll; | ||
| 35 | #define SOCKET_ARP_TYPE(s) ((s)->sll_hatype) | ||
| 36 | #define SOCKET_ADDRESS_LEN(s) ((s)->sll_halen) | ||
| 37 | @@ -38,6 +39,12 @@ using sll = struct sockaddr_dl; | ||
| 38 | #define SOCKET_ARP_TYPE(s) ((s)->sdl_type) | ||
| 39 | #define SOCKET_ADDRESS_LEN(s) ((s)->sdl_alen) | ||
| 40 | #define SOCKET_ADDRESS(s) (LLADDR(s)) | ||
| 41 | +#endif | ||
| 42 | + | ||
| 43 | +#if BUILDFLAG(IS_BSD) | ||
| 44 | +bool MaybeGetWifiSSID(const std::string& if_name, std::string* ssid_out) { | ||
| 45 | + return false; | ||
| 46 | +} | ||
| 47 | #endif | ||
| 48 | |||
| 49 | void GetDiscoveryNetworkInfoListImpl( | ||
diff --git a/www/chromium/patches/patch-chrome_browser_media_router_discovery_discovery_network_list_wifi_linux_cc b/www/chromium/patches/patch-chrome_browser_media_router_discovery_discovery_network_list_wifi_linux_cc new file mode 100644 index 0000000..104df84 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_media_router_discovery_discovery_network_list_wifi_linux_cc | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | Index: chrome/browser/media/router/discovery/discovery_network_list_wifi_linux.cc | ||
| 2 | --- chrome/browser/media/router/discovery/discovery_network_list_wifi_linux.cc.orig | ||
| 3 | +++ chrome/browser/media/router/discovery/discovery_network_list_wifi_linux.cc | ||
| 4 | @@ -9,7 +9,11 @@ | ||
| 5 | #include <sys/socket.h> | ||
| 6 | #include <sys/types.h> | ||
| 7 | |||
| 8 | +#include "build/build_config.h" | ||
| 9 | + | ||
| 10 | +#if !defined(OS_BSD) | ||
| 11 | #include <linux/wireless.h> | ||
| 12 | +#endif | ||
| 13 | |||
| 14 | #include "base/check.h" | ||
| 15 | #include "base/files/scoped_file.h" | ||
| 16 | @@ -20,6 +24,7 @@ namespace media_router { | ||
| 17 | bool MaybeGetWifiSSID(const std::string& if_name, std::string* ssid_out) { | ||
| 18 | DCHECK(ssid_out); | ||
| 19 | |||
| 20 | +#if !defined(OS_BSD) | ||
| 21 | base::ScopedFD ioctl_socket(socket(AF_INET, SOCK_DGRAM, 0)); | ||
| 22 | if (!ioctl_socket.is_valid()) { | ||
| 23 | // AF_INET is for IPv4, so it may fail for IPv6-only hosts even when there | ||
| 24 | @@ -41,6 +46,7 @@ bool MaybeGetWifiSSID(const std::string& if_name, std: | ||
| 25 | ssid_out->assign(ssid); | ||
| 26 | return true; | ||
| 27 | } | ||
| 28 | +#endif | ||
| 29 | return false; | ||
| 30 | } | ||
| 31 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_event_log_uploader_cc b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_event_log_uploader_cc new file mode 100644 index 0000000..f7d7828 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_event_log_uploader_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/media/webrtc/webrtc_event_log_uploader.cc | ||
| 2 | --- chrome/browser/media/webrtc/webrtc_event_log_uploader.cc.orig | ||
| 3 | +++ chrome/browser/media/webrtc/webrtc_event_log_uploader.cc | ||
| 4 | @@ -40,7 +40,7 @@ const char kProduct[] = "Chrome"; | ||
| 5 | const char kProduct[] = "Chrome_Mac"; | ||
| 6 | #elif BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 7 | const char kProduct[] = "Chrome_ChromeOS"; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | const char kProduct[] = "Chrome_Linux"; | ||
| 11 | #elif BUILDFLAG(IS_ANDROID) | ||
| 12 | const char kProduct[] = "Chrome_Android"; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_log_uploader_cc b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_log_uploader_cc new file mode 100644 index 0000000..2d63de2 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_log_uploader_cc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: chrome/browser/media/webrtc/webrtc_log_uploader.cc | ||
| 2 | --- chrome/browser/media/webrtc/webrtc_log_uploader.cc.orig | ||
| 3 | +++ chrome/browser/media/webrtc/webrtc_log_uploader.cc | ||
| 4 | @@ -363,6 +363,10 @@ void WebRtcLogUploader::SetupMultipart( | ||
| 5 | const char product[] = "Chrome_ChromeOS"; | ||
| 6 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 7 | const char product[] = "Chrome_Fuchsia"; | ||
| 8 | +#elif defined(OS_OPENBSD) | ||
| 9 | + const char product[] = "Chrome_OpenBSD"; | ||
| 10 | +#elif defined(OS_FREEBSD) | ||
| 11 | + const char product[] = "Chrome_FreeBSD"; | ||
| 12 | #else | ||
| 13 | #error Platform not supported. | ||
| 14 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_cc b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_cc new file mode 100644 index 0000000..e6ee6af --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_cc | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | Index: chrome/browser/media/webrtc/webrtc_logging_controller.cc | ||
| 2 | --- chrome/browser/media/webrtc/webrtc_logging_controller.cc.orig | ||
| 3 | +++ chrome/browser/media/webrtc/webrtc_logging_controller.cc | ||
| 4 | @@ -25,10 +25,10 @@ | ||
| 5 | #include "content/public/browser/browser_context.h" | ||
| 6 | #include "content/public/browser/render_process_host.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "content/public/browser/child_process_security_policy.h" | ||
| 11 | #include "storage/browser/file_system/isolated_context.h" | ||
| 12 | -#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 13 | +#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 14 | |||
| 15 | using webrtc_event_logging::WebRtcEventLogManager; | ||
| 16 | |||
| 17 | @@ -282,7 +282,7 @@ void WebRtcLoggingController::StartEventLogging( | ||
| 18 | web_app_id, callback); | ||
| 19 | } | ||
| 20 | |||
| 21 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 22 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 23 | void WebRtcLoggingController::GetLogsDirectory( | ||
| 24 | LogsDirectoryCallback callback, | ||
| 25 | LogsDirectoryErrorCallback error_callback) { | ||
| 26 | @@ -328,7 +328,7 @@ void WebRtcLoggingController::GrantLogsDirectoryAccess | ||
| 27 | FROM_HERE, | ||
| 28 | base::BindOnce(std::move(callback), file_system.id(), registered_name)); | ||
| 29 | } | ||
| 30 | -#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 31 | +#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 32 | |||
| 33 | void WebRtcLoggingController::OnRtpPacket( | ||
| 34 | std::unique_ptr<uint8_t[]> packet_header, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_h b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_h new file mode 100644 index 0000000..5c4c83b --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/media/webrtc/webrtc_logging_controller.h | ||
| 2 | --- chrome/browser/media/webrtc/webrtc_logging_controller.h.orig | ||
| 3 | +++ chrome/browser/media/webrtc/webrtc_logging_controller.h | ||
| 4 | @@ -132,7 +132,7 @@ class WebRtcLoggingController | ||
| 5 | size_t web_app_id, | ||
| 6 | const StartEventLoggingCallback& callback); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Ensures that the WebRTC Logs directory exists and then grants render | ||
| 11 | // process access to the 'WebRTC Logs' directory, and invokes |callback| with | ||
| 12 | // the ids necessary to create a DirectoryEntry object. | ||
| 13 | @@ -191,7 +191,7 @@ class WebRtcLoggingController | ||
| 14 | bool success, | ||
| 15 | const std::string& error_message); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Grants the render process access to the 'WebRTC Logs' directory, and | ||
| 20 | // invokes |callback| with the ids necessary to create a DirectoryEntry | ||
| 21 | // object. If the |logs_path| couldn't be created or found, |error_callback| | ||
diff --git a/www/chromium/patches/patch-chrome_browser_memory_details_cc b/www/chromium/patches/patch-chrome_browser_memory_details_cc new file mode 100644 index 0000000..955f08d --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_memory_details_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/memory_details.cc | ||
| 2 | --- chrome/browser/memory_details.cc.orig | ||
| 3 | +++ chrome/browser/memory_details.cc | ||
| 4 | @@ -38,7 +38,7 @@ | ||
| 5 | #include "services/resource_coordinator/public/cpp/memory_instrumentation/memory_instrumentation.h" | ||
| 6 | #include "ui/base/l10n/l10n_util.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_BSD) | ||
| 10 | #include "content/public/browser/zygote_host/zygote_host_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -329,7 +329,7 @@ void MemoryDetails::CollectChildInfoOnUIThread() { | ||
| 14 | std::ref(process))); | ||
| 15 | } | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_ANDROID) | ||
| 18 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_BSD) | ||
| 19 | if (content::ZygoteHost::GetInstance()->IsZygotePid(process.pid)) { | ||
| 20 | process.process_type = content::PROCESS_TYPE_ZYGOTE; | ||
| 21 | } | ||
diff --git a/www/chromium/patches/patch-chrome_browser_memory_details_linux_cc b/www/chromium/patches/patch-chrome_browser_memory_details_linux_cc new file mode 100644 index 0000000..b5edf24 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_memory_details_linux_cc | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | Index: chrome/browser/memory_details_linux.cc | ||
| 2 | --- chrome/browser/memory_details_linux.cc.orig | ||
| 3 | +++ chrome/browser/memory_details_linux.cc | ||
| 4 | @@ -13,6 +13,7 @@ | ||
| 5 | #include <set> | ||
| 6 | |||
| 7 | #include "base/bind.h" | ||
| 8 | +#include "base/command_line.h" | ||
| 9 | #include "base/files/file_util.h" | ||
| 10 | #include "base/process/process_iterator.h" | ||
| 11 | #include "base/process/process_metrics.h" | ||
| 12 | @@ -27,6 +28,7 @@ | ||
| 13 | #include "content/public/browser/browser_task_traits.h" | ||
| 14 | #include "content/public/browser/browser_thread.h" | ||
| 15 | #include "content/public/common/process_type.h" | ||
| 16 | +#include "sandbox/policy/switches.h" | ||
| 17 | #include "ui/base/l10n/l10n_util.h" | ||
| 18 | |||
| 19 | using base::ProcessEntry; | ||
| 20 | @@ -70,9 +72,18 @@ ProcessData GetProcessDataMemoryInformation( | ||
| 21 | |||
| 22 | std::unique_ptr<base::ProcessMetrics> metrics( | ||
| 23 | base::ProcessMetrics::CreateProcessMetrics(pid)); | ||
| 24 | + | ||
| 25 | + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | ||
| 26 | + if (!command_line->HasSwitch(sandbox::policy::switches::kNoSandbox)) { | ||
| 27 | + pmi.num_open_fds = 0; | ||
| 28 | + pmi.open_fds_soft_limit = 0; | ||
| 29 | + goto out; | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | pmi.num_open_fds = metrics->GetOpenFdCount(); | ||
| 33 | pmi.open_fds_soft_limit = metrics->GetOpenFdSoftLimit(); | ||
| 34 | |||
| 35 | +out: | ||
| 36 | process_data.processes.push_back(pmi); | ||
| 37 | } | ||
| 38 | return process_data; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_cc b/www/chromium/patches/patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_cc new file mode 100644 index 0000000..d3cda38 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_cc | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | Index: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc | ||
| 2 | --- chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc.orig | ||
| 3 | +++ chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc | ||
| 4 | @@ -57,8 +57,10 @@ | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | +#if !BUILDFLAG(IS_BSD) | ||
| 11 | #include <gnu/libc-version.h> | ||
| 12 | +#endif | ||
| 13 | |||
| 14 | #include "base/linux_util.h" | ||
| 15 | #include "base/strings/string_split.h" | ||
| 16 | @@ -223,7 +225,7 @@ void RecordStartupMetrics() { | ||
| 17 | |||
| 18 | // Record whether Chrome is the default browser or not. | ||
| 19 | // Disabled on Linux due to hanging browser tests, see crbug.com/1216328. | ||
| 20 | -#if !BUILDFLAG(IS_LINUX) | ||
| 21 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD) | ||
| 22 | shell_integration::DefaultWebClientState default_state = | ||
| 23 | shell_integration::GetDefaultBrowser(); | ||
| 24 | base::UmaHistogramEnumeration("DefaultBrowser.State", default_state, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_metrics_chrome_metrics_service_client_cc b/www/chromium/patches/patch-chrome_browser_metrics_chrome_metrics_service_client_cc new file mode 100644 index 0000000..0f1a87d --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_metrics_chrome_metrics_service_client_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/metrics/chrome_metrics_service_client.cc | ||
| 2 | --- chrome/browser/metrics/chrome_metrics_service_client.cc.orig | ||
| 3 | +++ chrome/browser/metrics/chrome_metrics_service_client.cc | ||
| 4 | @@ -773,7 +773,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 10 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 11 | metrics_service_->RegisterMetricsProvider( | ||
| 12 | std::make_unique<DesktopPlatformFeaturesMetricsProvider>()); | ||
| 13 | @@ -869,7 +869,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic | ||
| 14 | std::make_unique<PowerMetricsProvider>()); | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | metrics_service_->RegisterMetricsProvider( | ||
| 20 | metrics::CreateDesktopSessionMetricsProvider()); | ||
| 21 | #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) | ||
| 22 | @@ -1045,7 +1045,7 @@ bool ChromeMetricsServiceClient::RegisterForProfileEve | ||
| 23 | #endif | ||
| 24 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 25 | // of lacros-chrome is complete. | ||
| 26 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 27 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 28 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 29 | // This creates the DesktopProfileSessionDurationsServices if it didn't exist | ||
| 30 | // already. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_metrics_perf_cpu_identity_cc b/www/chromium/patches/patch-chrome_browser_metrics_perf_cpu_identity_cc new file mode 100644 index 0000000..ecbf452 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_metrics_perf_cpu_identity_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/metrics/perf/cpu_identity.cc | ||
| 2 | --- chrome/browser/metrics/perf/cpu_identity.cc.orig | ||
| 3 | +++ chrome/browser/metrics/perf/cpu_identity.cc | ||
| 4 | @@ -106,7 +106,7 @@ CPUIdentity GetCPUIdentity() { | ||
| 5 | result.release = | ||
| 6 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 7 | base::SysInfo::KernelVersion(); | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | base::SysInfo::OperatingSystemVersion(); | ||
| 11 | #else | ||
| 12 | #error "Unsupported configuration" | ||
diff --git a/www/chromium/patches/patch-chrome_browser_net_system_network_context_manager_cc b/www/chromium/patches/patch-chrome_browser_net_system_network_context_manager_cc new file mode 100644 index 0000000..285e14a --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_net_system_network_context_manager_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: chrome/browser/net/system_network_context_manager.cc | ||
| 2 | --- chrome/browser/net/system_network_context_manager.cc.orig | ||
| 3 | +++ chrome/browser/net/system_network_context_manager.cc | ||
| 4 | @@ -84,7 +84,7 @@ | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/common/chrome_paths_internal.h" | ||
| 11 | #include "chrome/grit/chromium_strings.h" | ||
| 12 | #include "ui/base/l10n/l10n_util.h" | ||
| 13 | @@ -144,7 +144,7 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAut | ||
| 14 | auth_dynamic_params->basic_over_http_enabled = | ||
| 15 | local_state->GetBoolean(prefs::kBasicAuthOverHttpEnabled); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | auth_dynamic_params->delegate_by_kdc_policy = | ||
| 20 | local_state->GetBoolean(prefs::kAuthNegotiateDelegateByKdcPolicy); | ||
| 21 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) | ||
| 22 | @@ -377,7 +377,7 @@ SystemNetworkContextManager::SystemNetworkContextManag | ||
| 23 | pref_change_registrar_.Add(prefs::kAllHttpAuthSchemesAllowedForOrigins, | ||
| 24 | auth_pref_callback); | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | pref_change_registrar_.Add(prefs::kAuthNegotiateDelegateByKdcPolicy, | ||
| 29 | auth_pref_callback); | ||
| 30 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) | ||
| 31 | @@ -437,7 +437,7 @@ void SystemNetworkContextManager::RegisterPrefs(PrefRe | ||
| 32 | registry->RegisterStringPref(prefs::kAuthServerAllowlist, std::string()); | ||
| 33 | registry->RegisterStringPref(prefs::kAuthNegotiateDelegateAllowlist, | ||
| 34 | std::string()); | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | registry->RegisterBooleanPref(prefs::kAuthNegotiateDelegateByKdcPolicy, | ||
| 38 | false); | ||
| 39 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) | ||
diff --git a/www/chromium/patches/patch-chrome_browser_new_tab_page_modules_drive_drive_service_cc b/www/chromium/patches/patch-chrome_browser_new_tab_page_modules_drive_drive_service_cc new file mode 100644 index 0000000..1a11f4e --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_new_tab_page_modules_drive_drive_service_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/new_tab_page/modules/drive/drive_service.cc | ||
| 2 | --- chrome/browser/new_tab_page/modules/drive/drive_service.cc.orig | ||
| 3 | +++ chrome/browser/new_tab_page/modules/drive/drive_service.cc | ||
| 4 | @@ -28,7 +28,7 @@ | ||
| 5 | #include "services/network/public/cpp/resource_request.h" | ||
| 6 | |||
| 7 | namespace { | ||
| 8 | -#if OS_LINUX | ||
| 9 | +#if defined(OS_LINUX) || defined(OS_BSD) | ||
| 10 | constexpr char kPlatform[] = "LINUX"; | ||
| 11 | #elif OS_WIN | ||
| 12 | constexpr char kPlatform[] = "WINDOWS"; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_notifications_notification_display_service_impl_cc b/www/chromium/patches/patch-chrome_browser_notifications_notification_display_service_impl_cc new file mode 100644 index 0000000..33a11ba --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_notifications_notification_display_service_impl_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: chrome/browser/notifications/notification_display_service_impl.cc | ||
| 2 | --- chrome/browser/notifications/notification_display_service_impl.cc.orig | ||
| 3 | +++ chrome/browser/notifications/notification_display_service_impl.cc | ||
| 4 | @@ -32,7 +32,7 @@ | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 8 | - BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/send_tab_to_self/desktop_notification_handler.h" | ||
| 11 | #include "chrome/browser/sharing/sharing_notification_handler.h" | ||
| 12 | #endif | ||
| 13 | @@ -65,7 +65,7 @@ NotificationDisplayServiceImpl* NotificationDisplaySer | ||
| 14 | // static | ||
| 15 | void NotificationDisplayServiceImpl::RegisterProfilePrefs( | ||
| 16 | user_prefs::PrefRegistrySyncable* registry) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | registry->RegisterBooleanPref(prefs::kAllowNativeNotifications, true); | ||
| 20 | registry->RegisterBooleanPref(prefs::kAllowSystemNotifications, true); | ||
| 21 | #endif | ||
| 22 | @@ -82,7 +82,7 @@ NotificationDisplayServiceImpl::NotificationDisplaySer | ||
| 23 | std::make_unique<PersistentNotificationHandler>()); | ||
| 24 | |||
| 25 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 26 | - BUILDFLAG(IS_WIN) | ||
| 27 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 28 | AddNotificationHandler( | ||
| 29 | NotificationHandler::Type::SEND_TAB_TO_SELF, | ||
| 30 | std::make_unique<send_tab_to_self::DesktopNotificationHandler>( | ||
| 31 | @@ -90,7 +90,7 @@ NotificationDisplayServiceImpl::NotificationDisplaySer | ||
| 32 | #endif | ||
| 33 | |||
| 34 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 35 | - BUILDFLAG(IS_WIN) | ||
| 36 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 37 | AddNotificationHandler( | ||
| 38 | NotificationHandler::Type::TAILORED_SECURITY, | ||
| 39 | std::make_unique<safe_browsing::TailoredSecurityNotificationHandler>()); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_notifications_notification_platform_bridge_delegator_cc b/www/chromium/patches/patch-chrome_browser_notifications_notification_platform_bridge_delegator_cc new file mode 100644 index 0000000..764848b --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_notifications_notification_platform_bridge_delegator_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/notifications/notification_platform_bridge_delegator.cc | ||
| 2 | --- chrome/browser/notifications/notification_platform_bridge_delegator.cc.orig | ||
| 3 | +++ chrome/browser/notifications/notification_platform_bridge_delegator.cc | ||
| 4 | @@ -57,7 +57,7 @@ bool SystemNotificationsEnabled(Profile* profile) { | ||
| 5 | #elif BUILDFLAG(IS_WIN) | ||
| 6 | return NotificationPlatformBridgeWin::SystemNotificationEnabled(); | ||
| 7 | #else | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | if (profile) { | ||
| 11 | // Prefs take precedence over flags. | ||
| 12 | PrefService* prefs = profile->GetPrefs(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_password_manager_password_reuse_manager_factory_cc b/www/chromium/patches/patch-chrome_browser_password_manager_password_reuse_manager_factory_cc new file mode 100644 index 0000000..a2dbc21 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_password_manager_password_reuse_manager_factory_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/password_manager/password_reuse_manager_factory.cc | ||
| 2 | --- chrome/browser/password_manager/password_reuse_manager_factory.cc.orig | ||
| 3 | +++ chrome/browser/password_manager/password_reuse_manager_factory.cc | ||
| 4 | @@ -94,7 +94,7 @@ KeyedService* PasswordReuseManagerFactory::BuildServic | ||
| 5 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 6 | // of lacros-chrome is complete. | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | std::unique_ptr<password_manager::PasswordStoreSigninNotifier> notifier = | ||
| 11 | std::make_unique<password_manager::PasswordStoreSigninNotifierImpl>( | ||
| 12 | IdentityManagerFactory::GetForProfile(profile)); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_performance_manager_policies_high_pmf_discard_policy_cc b/www/chromium/patches/patch-chrome_browser_performance_manager_policies_high_pmf_discard_policy_cc new file mode 100644 index 0000000..3d68dd5 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_performance_manager_policies_high_pmf_discard_policy_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/performance_manager/policies/high_pmf_discard_policy.cc | ||
| 2 | --- chrome/browser/performance_manager/policies/high_pmf_discard_policy.cc.orig | ||
| 3 | +++ chrome/browser/performance_manager/policies/high_pmf_discard_policy.cc | ||
| 4 | @@ -17,7 +17,7 @@ | ||
| 5 | #include "content/public/browser/browser_task_traits.h" | ||
| 6 | #include "content/public/browser/browser_thread.h" | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_LINUX) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/memory/memory_pressure_monitor.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -122,7 +122,7 @@ void HighPMFDiscardPolicy::OnProcessMemoryMetricsAvail | ||
| 14 | |||
| 15 | if (should_discard) { | ||
| 16 | discard_attempt_in_progress_ = true; | ||
| 17 | -#if !BUILDFLAG(IS_LINUX) | ||
| 18 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD) | ||
| 19 | // Record the memory pressure level before discarding a tab. | ||
| 20 | content::GetUIThreadTaskRunner({})->PostTask( | ||
| 21 | FROM_HERE, base::BindOnce([]() { | ||
diff --git a/www/chromium/patches/patch-chrome_browser_performance_monitor_process_metrics_recorder_util_cc b/www/chromium/patches/patch-chrome_browser_performance_monitor_process_metrics_recorder_util_cc new file mode 100644 index 0000000..a1fd18f --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_performance_monitor_process_metrics_recorder_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/performance_monitor/process_metrics_recorder_util.cc | ||
| 2 | --- chrome/browser/performance_monitor/process_metrics_recorder_util.cc.orig | ||
| 3 | +++ chrome/browser/performance_monitor/process_metrics_recorder_util.cc | ||
| 4 | @@ -39,7 +39,7 @@ void RecordProcessHistograms(const char* histogram_suf | ||
| 5 | metrics.cpu_usage * kCPUUsageFactor, kCPUUsageHistogramMin, | ||
| 6 | kCPUUsageHistogramMax, kCPUUsageHistogramBucketCount); | ||
| 7 | #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_AIX) | ||
| 9 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 10 | base::UmaHistogramCounts10000( | ||
| 11 | base::JoinString({"PerformanceMonitor.IdleWakeups.", histogram_suffix}, | ||
| 12 | ""), | ||
diff --git a/www/chromium/patches/patch-chrome_browser_performance_monitor_process_monitor_cc b/www/chromium/patches/patch-chrome_browser_performance_monitor_process_monitor_cc new file mode 100644 index 0000000..dcfb318 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_performance_monitor_process_monitor_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/performance_monitor/process_monitor.cc | ||
| 2 | --- chrome/browser/performance_monitor/process_monitor.cc.orig | ||
| 3 | +++ chrome/browser/performance_monitor/process_monitor.cc | ||
| 4 | @@ -82,7 +82,7 @@ ProcessMonitor::Metrics& operator+=(ProcessMonitor::Me | ||
| 5 | lhs.cpu_usage += rhs.cpu_usage; | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_AIX) | ||
| 9 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 10 | lhs.idle_wakeups += rhs.idle_wakeups; | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_performance_monitor_process_monitor_h b/www/chromium/patches/patch-chrome_browser_performance_monitor_process_monitor_h new file mode 100644 index 0000000..efb2fb9 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_performance_monitor_process_monitor_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/performance_monitor/process_monitor.h | ||
| 2 | --- chrome/browser/performance_monitor/process_monitor.h.orig | ||
| 3 | +++ chrome/browser/performance_monitor/process_monitor.h | ||
| 4 | @@ -52,7 +52,7 @@ class ProcessMonitor { | ||
| 5 | double cpu_usage = 0.0; | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_AIX) | ||
| 9 | + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Returns the number of average idle cpu wakeups per second since the last | ||
| 11 | // time the metric was sampled. | ||
| 12 | int idle_wakeups = 0; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_platform_util_linux_cc b/www/chromium/patches/patch-chrome_browser_platform_util_linux_cc new file mode 100644 index 0000000..8e674e0 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_platform_util_linux_cc | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: chrome/browser/platform_util_linux.cc | ||
| 2 | --- chrome/browser/platform_util_linux.cc.orig | ||
| 3 | +++ chrome/browser/platform_util_linux.cc | ||
| 4 | @@ -298,7 +298,9 @@ void RunCommand(const std::string& command, | ||
| 5 | |||
| 6 | base::LaunchOptions options; | ||
| 7 | options.current_directory = working_directory; | ||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | options.allow_new_privs = true; | ||
| 10 | +#endif | ||
| 11 | // xdg-open can fall back on mailcap which eventually might plumb through | ||
| 12 | // to a command that needs a terminal. Set the environment variable telling | ||
| 13 | // it that we definitely don't have a terminal available and that it should | ||
diff --git a/www/chromium/patches/patch-chrome_browser_plugins_plugins_resource_service_cc b/www/chromium/patches/patch-chrome_browser_plugins_plugins_resource_service_cc new file mode 100644 index 0000000..c5fb769 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_plugins_plugins_resource_service_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/plugins/plugins_resource_service.cc | ||
| 2 | --- chrome/browser/plugins/plugins_resource_service.cc.orig | ||
| 3 | +++ chrome/browser/plugins/plugins_resource_service.cc | ||
| 4 | @@ -62,7 +62,7 @@ GURL GetPluginsServerURL() { | ||
| 5 | filename = "plugins_win.json"; | ||
| 6 | #elif BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 7 | filename = "plugins_chromeos.json"; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | filename = "plugins_linux.json"; | ||
| 11 | #elif BUILDFLAG(IS_MAC) | ||
| 12 | filename = "plugins_mac.json"; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_policy_browser_signin_policy_handler_cc b/www/chromium/patches/patch-chrome_browser_policy_browser_signin_policy_handler_cc new file mode 100644 index 0000000..d5e1016 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_policy_browser_signin_policy_handler_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/policy/browser_signin_policy_handler.cc | ||
| 2 | --- chrome/browser/policy/browser_signin_policy_handler.cc.orig | ||
| 3 | +++ chrome/browser/policy/browser_signin_policy_handler.cc | ||
| 4 | @@ -43,7 +43,7 @@ void BrowserSigninPolicyHandler::ApplyPolicySettings(c | ||
| 5 | const base::Value* value = policies.GetValue(policy_name()); | ||
| 6 | switch (static_cast<BrowserSigninMode>(value->GetInt())) { | ||
| 7 | case BrowserSigninMode::kForced: | ||
| 8 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) | ||
| 10 | prefs->SetValue(prefs::kForceBrowserSignin, base::Value(true)); | ||
| 11 | #endif | ||
| 12 | [[fallthrough]]; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_policy_chrome_browser_cloud_management_controller_desktop_cc b/www/chromium/patches/patch-chrome_browser_policy_chrome_browser_cloud_management_controller_desktop_cc new file mode 100644 index 0000000..a1efb69 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_policy_chrome_browser_cloud_management_controller_desktop_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: chrome/browser/policy/chrome_browser_cloud_management_controller_desktop.cc | ||
| 2 | --- chrome/browser/policy/chrome_browser_cloud_management_controller_desktop.cc.orig | ||
| 3 | +++ chrome/browser/policy/chrome_browser_cloud_management_controller_desktop.cc | ||
| 4 | @@ -46,7 +46,7 @@ | ||
| 5 | #include "chrome/browser/policy/browser_dm_token_storage_mac.h" | ||
| 6 | #endif // BUILDFLAG(IS_MAC) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/policy/browser_dm_token_storage_linux.h" | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 12 | |||
| 13 | @@ -55,7 +55,7 @@ | ||
| 14 | #include "chrome/install_static/install_util.h" | ||
| 15 | #endif // BUILDFLAG(IS_WIN) | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | #include "chrome/browser/enterprise/connectors/device_trust/device_trust_features.h" | ||
| 20 | #include "chrome/browser/enterprise/connectors/device_trust/key_management/browser/device_trust_key_manager_impl.h" | ||
| 21 | #include "chrome/browser/enterprise/connectors/device_trust/key_management/browser/key_rotation_launcher.h" | ||
| 22 | @@ -88,7 +88,7 @@ void ChromeBrowserCloudManagementControllerDesktop:: | ||
| 23 | |||
| 24 | #if BUILDFLAG(IS_MAC) | ||
| 25 | storage_delegate = std::make_unique<BrowserDMTokenStorageMac>(); | ||
| 26 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | storage_delegate = std::make_unique<BrowserDMTokenStorageLinux>(); | ||
| 29 | #elif BUILDFLAG(IS_WIN) | ||
| 30 | storage_delegate = std::make_unique<BrowserDMTokenStorageWin>(); | ||
| 31 | @@ -243,7 +243,7 @@ ChromeBrowserCloudManagementControllerDesktop::CreateC | ||
| 32 | |||
| 33 | std::unique_ptr<enterprise_connectors::DeviceTrustKeyManager> | ||
| 34 | ChromeBrowserCloudManagementControllerDesktop::CreateDeviceTrustKeyManager() { | ||
| 35 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) | ||
| 36 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 37 | if (enterprise_connectors::IsDeviceTrustConnectorFeatureEnabled()) { | ||
| 38 | auto key_rotation_launcher = | ||
| 39 | enterprise_connectors::KeyRotationLauncher::Create( | ||
diff --git a/www/chromium/patches/patch-chrome_browser_policy_configuration_policy_handler_list_factory_cc b/www/chromium/patches/patch-chrome_browser_policy_configuration_policy_handler_list_factory_cc new file mode 100644 index 0000000..f340f88 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_policy_configuration_policy_handler_list_factory_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc | ||
| 2 | --- chrome/browser/policy/configuration_policy_handler_list_factory.cc.orig | ||
| 3 | +++ chrome/browser/policy/configuration_policy_handler_list_factory.cc | ||
| 4 | @@ -1456,7 +1456,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = | ||
| 5 | base::Value::Type::BOOLEAN }, | ||
| 6 | #endif // !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_CHROMEOS) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | { key::kAuthNegotiateDelegateByKdcPolicy, | ||
| 11 | prefs::kAuthNegotiateDelegateByKdcPolicy, | ||
| 12 | base::Value::Type::BOOLEAN }, | ||
| 13 | @@ -1565,7 +1565,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = | ||
| 14 | base::Value::Type::BOOLEAN }, | ||
| 15 | #endif // BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 16 | |||
| 17 | -#if BUILDFLAG(ENABLE_EXTENSIONS) && (BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)) | ||
| 18 | +#if BUILDFLAG(ENABLE_EXTENSIONS) && (BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) | ||
| 19 | { key::kChromeAppsEnabled, | ||
| 20 | extensions::pref_names::kChromeAppsEnabled, | ||
| 21 | base::Value::Type::BOOLEAN }, | ||
| 22 | @@ -1885,7 +1885,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH | ||
| 23 | #endif // BUILDFLAG(IS_ANDROID) | ||
| 24 | |||
| 25 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || \ | ||
| 26 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 27 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 28 | handlers->AddHandler( | ||
| 29 | std::make_unique< | ||
| 30 | enterprise_connectors::EnterpriseConnectorsPolicyHandler>( | ||
| 31 | @@ -2256,7 +2256,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH | ||
| 32 | SimpleSchemaValidatingPolicyHandler::MANDATORY_ALLOWED)); | ||
| 33 | |||
| 34 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 35 | - BUILDFLAG(IS_FUCHSIA) | ||
| 36 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 37 | handlers->AddHandler(std::make_unique<SimpleSchemaValidatingPolicyHandler>( | ||
| 38 | key::kWebAppSettings, prefs::kWebAppSettings, chrome_schema, | ||
| 39 | SCHEMA_ALLOW_UNKNOWN, | ||
| 40 | @@ -2287,7 +2287,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH | ||
| 41 | policy::key::kSpellcheckLanguageBlocklist)); | ||
| 42 | #endif // BUILDFLAG(ENABLE_SPELLCHECK) | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 46 | handlers->AddHandler(std::make_unique<SimpleDeprecatingPolicyHandler>( | ||
| 47 | std::make_unique<SimplePolicyHandler>(key::kAllowNativeNotifications, | ||
| 48 | prefs::kAllowNativeNotifications, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_policy_device_management_service_configuration_cc b/www/chromium/patches/patch-chrome_browser_policy_device_management_service_configuration_cc new file mode 100644 index 0000000..714c7f0 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_policy_device_management_service_configuration_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/policy/device_management_service_configuration.cc | ||
| 2 | --- chrome/browser/policy/device_management_service_configuration.cc.orig | ||
| 3 | +++ chrome/browser/policy/device_management_service_configuration.cc | ||
| 4 | @@ -21,7 +21,7 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 7 | ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ | ||
| 8 | - !BUILDFLAG(IS_ANDROID)) | ||
| 9 | + !BUILDFLAG(IS_ANDROID)) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/enterprise/connectors/common.h" | ||
| 11 | #include "chrome/browser/enterprise/connectors/connectors_service.h" | ||
| 12 | #endif | ||
| 13 | @@ -100,7 +100,7 @@ DeviceManagementServiceConfiguration::GetReportingConn | ||
| 14 | content::BrowserContext* context) const { | ||
| 15 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 16 | ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ | ||
| 17 | - !BUILDFLAG(IS_ANDROID)) | ||
| 18 | + !BUILDFLAG(IS_ANDROID)) || BUILDFLAG(IS_BSD) | ||
| 19 | auto* service = | ||
| 20 | enterprise_connectors::ConnectorsServiceFactory::GetForBrowserContext( | ||
| 21 | context); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_prefs_browser_prefs_cc b/www/chromium/patches/patch-chrome_browser_prefs_browser_prefs_cc new file mode 100644 index 0000000..e05d8cf --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_prefs_browser_prefs_cc | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | Index: chrome/browser/prefs/browser_prefs.cc | ||
| 2 | --- chrome/browser/prefs/browser_prefs.cc.orig | ||
| 3 | +++ chrome/browser/prefs/browser_prefs.cc | ||
| 4 | @@ -418,14 +418,14 @@ | ||
| 5 | #include "components/os_crypt/os_crypt.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 10 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 11 | #include "chrome/browser/web_applications/url_handler_prefs.h" | ||
| 12 | #endif | ||
| 13 | |||
| 14 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 15 | // of lacros-chrome is complete. | ||
| 16 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 17 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 18 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 19 | #include "chrome/browser/browser_switcher/browser_switcher_prefs.h" | ||
| 20 | #endif | ||
| 21 | @@ -1139,7 +1139,7 @@ void RegisterLocalState(PrefRegistrySimple* registry) | ||
| 22 | // TODO(crbug/1169547) Remove `BUILDFLAG(IS_CHROMEOS_LACROS)` once the | ||
| 23 | // migration is complete. | ||
| 24 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || \ | ||
| 25 | - BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 26 | + BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 27 | enterprise_connectors::RegisterLocalPrefs(registry); | ||
| 28 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 29 | |||
| 30 | @@ -1171,7 +1171,7 @@ void RegisterLocalState(PrefRegistrySimple* registry) | ||
| 31 | #endif // BUILDFLAG(GOOGLE_CHROME_BRANDING) | ||
| 32 | #endif // BUILDFLAG(IS_WIN) | ||
| 33 | |||
| 34 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 35 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 36 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 37 | web_app::url_handler_prefs::RegisterLocalStatePrefs(registry); | ||
| 38 | #endif | ||
| 39 | @@ -1469,7 +1469,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySync | ||
| 40 | |||
| 41 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 42 | // of lacros-chrome is complete. | ||
| 43 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 44 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 45 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 46 | browser_switcher::BrowserSwitcherPrefs::RegisterProfilePrefs(registry); | ||
| 47 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_prefs_pref_service_incognito_allowlist_cc b/www/chromium/patches/patch-chrome_browser_prefs_pref_service_incognito_allowlist_cc new file mode 100644 index 0000000..242d0c5 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_prefs_pref_service_incognito_allowlist_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/prefs/pref_service_incognito_allowlist.cc | ||
| 2 | --- chrome/browser/prefs/pref_service_incognito_allowlist.cc.orig | ||
| 3 | +++ chrome/browser/prefs/pref_service_incognito_allowlist.cc | ||
| 4 | @@ -139,7 +139,7 @@ const char* const kPersistentPrefNames[] = { | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Toggleing custom frames affects all open windows in the profile, hence | ||
| 11 | // should be written to the regular profile when changed in incognito mode. | ||
| 12 | prefs::kUseCustomChromeFrame, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_printing_print_job_worker_cc b/www/chromium/patches/patch-chrome_browser_printing_print_job_worker_cc new file mode 100644 index 0000000..5360e67 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_printing_print_job_worker_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/printing/print_job_worker.cc | ||
| 2 | --- chrome/browser/printing/print_job_worker.cc.orig | ||
| 3 | +++ chrome/browser/printing/print_job_worker.cc | ||
| 4 | @@ -225,7 +225,7 @@ void PrintJobWorker::UpdatePrintSettings(base::Value n | ||
| 5 | crash_key = std::make_unique<crash_keys::ScopedPrinterInfo>( | ||
| 6 | print_backend->GetPrinterDriverInfo(printer_name)); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) && defined(USE_CUPS) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(USE_CUPS) | ||
| 10 | PrinterBasicInfo basic_info; | ||
| 11 | if (print_backend->GetPrinterBasicInfo(printer_name, &basic_info) == | ||
| 12 | mojom::ResultCode::kSuccess) { | ||
diff --git a/www/chromium/patches/patch-chrome_browser_process_singleton_posix_cc b/www/chromium/patches/patch-chrome_browser_process_singleton_posix_cc new file mode 100644 index 0000000..43c053a --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_process_singleton_posix_cc | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | Index: chrome/browser/process_singleton_posix.cc | ||
| 2 | --- chrome/browser/process_singleton_posix.cc.orig | ||
| 3 | +++ chrome/browser/process_singleton_posix.cc | ||
| 4 | @@ -98,12 +98,12 @@ | ||
| 5 | #include "net/base/network_interfaces.h" | ||
| 6 | #include "ui/base/l10n/l10n_util.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/ui/process_singleton_dialog_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | #if defined(TOOLKIT_VIEWS) && \ | ||
| 14 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 15 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 16 | #include "ui/views/linux_ui/linux_ui.h" | ||
| 17 | #endif | ||
| 18 | |||
| 19 | @@ -357,7 +357,7 @@ bool DisplayProfileInUseError(const base::FilePath& lo | ||
| 20 | if (g_disable_prompt) | ||
| 21 | return g_user_opted_unlock_in_use_profile; | ||
| 22 | |||
| 23 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 24 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 25 | std::u16string relaunch_button_text = | ||
| 26 | l10n_util::GetStringUTF16(IDS_PROFILE_IN_USE_LINUX_RELAUNCH); | ||
| 27 | return ShowProcessSingletonDialog(error, relaunch_button_text); | ||
| 28 | @@ -926,7 +926,7 @@ ProcessSingleton::NotifyResult ProcessSingleton::Notif | ||
| 29 | return PROCESS_NONE; | ||
| 30 | } else if (strncmp(buf, kACKToken, base::size(kACKToken) - 1) == 0) { | ||
| 31 | #if defined(TOOLKIT_VIEWS) && \ | ||
| 32 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 33 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 34 | // Likely NULL in unit tests. | ||
| 35 | views::LinuxUI* linux_ui = views::LinuxUI::instance(); | ||
| 36 | if (linux_ui) | ||
diff --git a/www/chromium/patches/patch-chrome_browser_profiles_chrome_browser_main_extra_parts_profiles_cc b/www/chromium/patches/patch-chrome_browser_profiles_chrome_browser_main_extra_parts_profiles_cc new file mode 100644 index 0000000..70a0e61 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_profiles_chrome_browser_main_extra_parts_profiles_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc | ||
| 2 | --- chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc.orig | ||
| 3 | +++ chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc | ||
| 4 | @@ -393,7 +393,7 @@ void ChromeBrowserMainExtraPartsProfiles:: | ||
| 5 | #endif | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 10 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 11 | metrics::DesktopProfileSessionDurationsServiceFactory::GetInstance(); | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_profiles_profile_impl_cc b/www/chromium/patches/patch-chrome_browser_profiles_profile_impl_cc new file mode 100644 index 0000000..c0a2f4a --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_profiles_profile_impl_cc | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Index: chrome/browser/profiles/profile_impl.cc | ||
| 2 | --- chrome/browser/profiles/profile_impl.cc.orig | ||
| 3 | +++ chrome/browser/profiles/profile_impl.cc | ||
| 4 | @@ -263,6 +263,10 @@ | ||
| 5 | #include "chrome/browser/spellchecker/spellcheck_service.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 10 | +#endif | ||
| 11 | + | ||
| 12 | using bookmarks::BookmarkModel; | ||
| 13 | using content::BrowserThread; | ||
| 14 | using content::DownloadManagerDelegate; | ||
| 15 | @@ -848,7 +852,17 @@ void ProfileImpl::DoFinalInit(CreateMode create_mode) | ||
| 16 | } | ||
| 17 | |||
| 18 | base::FilePath ProfileImpl::last_selected_directory() { | ||
| 19 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 20 | + // If unveil(2) is used, force the file dialog directory to something we | ||
| 21 | + // know is available. | ||
| 22 | + auto* sandbox = sandbox::policy::SandboxLinux::GetInstance(); | ||
| 23 | + if (sandbox->unveil_initialized()) | ||
| 24 | + return GetPrefs()->GetFilePath(prefs::kDownloadDefaultDirectory); | ||
| 25 | + else | ||
| 26 | + return GetPrefs()->GetFilePath(prefs::kSelectFileLastDirectory); | ||
| 27 | +#else | ||
| 28 | return GetPrefs()->GetFilePath(prefs::kSelectFileLastDirectory); | ||
| 29 | +#endif | ||
| 30 | } | ||
| 31 | |||
| 32 | void ProfileImpl::set_last_selected_directory(const base::FilePath& path) { | ||
diff --git a/www/chromium/patches/patch-chrome_browser_profiles_profiles_state_cc b/www/chromium/patches/patch-chrome_browser_profiles_profiles_state_cc new file mode 100644 index 0000000..7040230 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_profiles_profiles_state_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/profiles/profiles_state.cc | ||
| 2 | --- chrome/browser/profiles/profiles_state.cc.orig | ||
| 3 | +++ chrome/browser/profiles/profiles_state.cc | ||
| 4 | @@ -176,7 +176,7 @@ bool IsGuestModeRequested(const base::CommandLine& com | ||
| 5 | PrefService* local_state, | ||
| 6 | bool show_warning) { | ||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || \ | ||
| 8 | - BUILDFLAG(IS_MAC) | ||
| 9 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | DCHECK(local_state); | ||
| 11 | |||
| 12 | // Check if guest mode enforcement commandline switch or policy are provided. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_renderer_preferences_util_cc b/www/chromium/patches/patch-chrome_browser_renderer_preferences_util_cc new file mode 100644 index 0000000..20c87e8 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_renderer_preferences_util_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/renderer_preferences_util.cc | ||
| 2 | --- chrome/browser/renderer_preferences_util.cc.orig | ||
| 3 | +++ chrome/browser/renderer_preferences_util.cc | ||
| 4 | @@ -37,7 +37,7 @@ | ||
| 5 | #include "ui/views/controls/textfield/textfield.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | +#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 10 | #include "chrome/browser/themes/theme_service.h" | ||
| 11 | #include "chrome/browser/themes/theme_service_factory.h" | ||
| 12 | #include "ui/views/linux_ui/linux_ui.h" | ||
| 13 | @@ -159,7 +159,7 @@ void UpdateFromSystemSettings(blink::RendererPreferenc | ||
| 14 | prefs->caret_blink_interval = views::Textfield::GetCaretBlinkInterval(); | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 18 | +#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 19 | views::LinuxUI* linux_ui = views::LinuxUI::instance(); | ||
| 20 | if (linux_ui) { | ||
| 21 | if (ThemeServiceFactory::GetForProfile(profile)->UsingSystemTheme()) { | ||
| 22 | @@ -179,7 +179,7 @@ void UpdateFromSystemSettings(blink::RendererPreferenc | ||
| 23 | #endif | ||
| 24 | |||
| 25 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 26 | - BUILDFLAG(IS_WIN) | ||
| 27 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 28 | content::UpdateFontRendererPreferencesFromSystemSettings(prefs); | ||
| 29 | #endif | ||
| 30 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_resources_plugin_metadata_plugins_linux_json b/www/chromium/patches/patch-chrome_browser_resources_plugin_metadata_plugins_linux_json new file mode 100644 index 0000000..cd83003 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_resources_plugin_metadata_plugins_linux_json | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Index: chrome/browser/resources/plugin_metadata/plugins_linux.json | ||
| 2 | --- chrome/browser/resources/plugin_metadata/plugins_linux.json.orig | ||
| 3 | +++ chrome/browser/resources/plugin_metadata/plugins_linux.json | ||
| 4 | @@ -1,28 +1,5 @@ | ||
| 5 | { | ||
| 6 | "x-version": 46, | ||
| 7 | - "adobe-flash-player": { | ||
| 8 | - "mime_types": [ | ||
| 9 | - "application/futuresplash", | ||
| 10 | - "application/x-shockwave-flash" | ||
| 11 | - ], | ||
| 12 | - "matching_mime_types": [ | ||
| 13 | - "application/futuresplash" | ||
| 14 | - ], | ||
| 15 | - "versions": [ | ||
| 16 | - { | ||
| 17 | - "version": "32.0.0.445", | ||
| 18 | - "status": "up_to_date", | ||
| 19 | - "reference": "https://helpx.adobe.com/security/products/flash-player/apsb20-58.html" | ||
| 20 | - } | ||
| 21 | - ], | ||
| 22 | - "lang": "en-US", | ||
| 23 | - "name": "Adobe Flash Player", | ||
| 24 | - "help_url": "https://support.google.com/chrome/?p=plugin_flash", | ||
| 25 | - "url": "https://support.google.com/chrome/answer/6258784", | ||
| 26 | - "displayurl": true, | ||
| 27 | - "group_name_matcher": "*Shockwave Flash*", | ||
| 28 | - "plugin_is_deprecated": true | ||
| 29 | - }, | ||
| 30 | "google-chrome-pdf": { | ||
| 31 | "mime_types": [ | ||
| 32 | ], | ||
diff --git a/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_browser_proxy_ts b/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_browser_proxy_ts new file mode 100644 index 0000000..accc43f --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_browser_proxy_ts | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.ts | ||
| 2 | --- chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.ts.orig | ||
| 3 | +++ chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.ts | ||
| 4 | @@ -16,7 +16,7 @@ export interface AppearanceBrowserProxy { | ||
| 5 | |||
| 6 | useDefaultTheme(): void; | ||
| 7 | |||
| 8 | - // <if expr="is_linux and not chromeos"> | ||
| 9 | + // <if expr="is_bsd and not chromeos"> | ||
| 10 | useSystemTheme(): void; | ||
| 11 | // </if> | ||
| 12 | |||
| 13 | @@ -44,7 +44,7 @@ export class AppearanceBrowserProxyImpl implements App | ||
| 14 | chrome.send('useDefaultTheme'); | ||
| 15 | } | ||
| 16 | |||
| 17 | - // <if expr="is_linux and not chromeos"> | ||
| 18 | + // <if expr="is_bsd and not chromeos"> | ||
| 19 | useSystemTheme() { | ||
| 20 | chrome.send('useSystemTheme'); | ||
| 21 | } | ||
diff --git a/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_page_html b/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_page_html new file mode 100644 index 0000000..ac7bc58 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_page_html | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/resources/settings/appearance_page/appearance_page.html | ||
| 2 | --- chrome/browser/resources/settings/appearance_page/appearance_page.html.orig | ||
| 3 | +++ chrome/browser/resources/settings/appearance_page/appearance_page.html | ||
| 4 | @@ -27,7 +27,7 @@ | ||
| 5 | <cr-link-row class="first" hidden="[[!pageVisibility.setTheme]]" | ||
| 6 | label="$i18n{themes}" sub-label="[[themeSublabel_]]" | ||
| 7 | on-click="openThemeUrl_" external></cr-link-row> | ||
| 8 | -<if expr="not is_linux or chromeos_ash or chromeos_lacros"> | ||
| 9 | +<if expr="not is_posix or chromeos_ash or chromeos_lacros"> | ||
| 10 | <template is="dom-if" if="[[prefs.extensions.theme.id.value]]"> | ||
| 11 | <div class="separator"></div> | ||
| 12 | <cr-button id="useDefault" on-click="onUseDefaultTap_"> | ||
| 13 | @@ -35,7 +35,7 @@ | ||
| 14 | </cr-button> | ||
| 15 | </template> | ||
| 16 | </if> | ||
| 17 | -<if expr="is_linux and not chromeos and not lacros"> | ||
| 18 | +<if expr="is_posix and not chromeos and not lacros"> | ||
| 19 | <div class="settings-row continuation" | ||
| 20 | hidden="[[!showThemesSecondary_( | ||
| 21 | prefs.extensions.theme.id.value, useSystemTheme_)]]" | ||
| 22 | @@ -109,7 +109,7 @@ | ||
| 23 | pref="{{prefs.bookmark_bar.show_on_all_tabs}}" | ||
| 24 | label="$i18n{showBookmarksBar}"> | ||
| 25 | </settings-toggle-button> | ||
| 26 | -<if expr="is_linux and not chromeos and not lacros"> | ||
| 27 | +<if expr="is_posix and not chromeos and not lacros"> | ||
| 28 | <div class="hr" hidden="[[!pageVisibility.bookmarksBar]]"></div> | ||
| 29 | <settings-toggle-button | ||
| 30 | hidden="[[!showCustomChromeFrame_]]" | ||
diff --git a/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_page_ts b/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_page_ts new file mode 100644 index 0000000..bef9bd1 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_page_ts | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | Index: chrome/browser/resources/settings/appearance_page/appearance_page.ts | ||
| 2 | --- chrome/browser/resources/settings/appearance_page/appearance_page.ts.orig | ||
| 3 | +++ chrome/browser/resources/settings/appearance_page/appearance_page.ts | ||
| 4 | @@ -146,7 +146,7 @@ export class SettingsAppearancePageElement extends | ||
| 5 | 'prefs.autogenerated.theme.policy.color.controlledBy)', | ||
| 6 | }, | ||
| 7 | |||
| 8 | - // <if expr="is_linux and not chromeos and not lacros"> | ||
| 9 | + // <if expr="is_posix and not chromeos and not lacros"> | ||
| 10 | /** | ||
| 11 | * Whether to show the "Custom Chrome Frame" setting. | ||
| 12 | */ | ||
| 13 | @@ -168,7 +168,7 @@ export class SettingsAppearancePageElement extends | ||
| 14 | 'themeChanged_(' + | ||
| 15 | 'prefs.extensions.theme.id.value, useSystemTheme_, isForcedTheme_)', | ||
| 16 | |||
| 17 | - // <if expr="is_linux and not chromeos"> | ||
| 18 | + // <if expr="is_posix and not chromeos"> | ||
| 19 | // NOTE: this pref only exists on Linux. | ||
| 20 | 'useSystemThemePrefChanged_(prefs.extensions.theme.use_system.value)', | ||
| 21 | // </if> | ||
| 22 | @@ -187,7 +187,7 @@ export class SettingsAppearancePageElement extends | ||
| 23 | private showReaderModeOption_: boolean; | ||
| 24 | private isForcedTheme_: boolean; | ||
| 25 | |||
| 26 | - // <if expr="is_linux and not chromeos and not lacros"> | ||
| 27 | + // <if expr="is_posix and not chromeos and not lacros"> | ||
| 28 | private showCustomChromeFrame_: boolean; | ||
| 29 | // </if> | ||
| 30 | |||
| 31 | @@ -265,7 +265,7 @@ export class SettingsAppearancePageElement extends | ||
| 32 | this.appearanceBrowserProxy_.useDefaultTheme(); | ||
| 33 | } | ||
| 34 | |||
| 35 | - // <if expr="is_linux and not chromeos"> | ||
| 36 | + // <if expr="is_posix and not chromeos"> | ||
| 37 | private useSystemThemePrefChanged_(useSystemTheme: boolean) { | ||
| 38 | this.useSystemTheme_ = useSystemTheme; | ||
| 39 | } | ||
| 40 | @@ -326,10 +326,10 @@ export class SettingsAppearancePageElement extends | ||
| 41 | } | ||
| 42 | |||
| 43 | let i18nId; | ||
| 44 | - // <if expr="is_linux and not chromeos and not lacros"> | ||
| 45 | + // <if expr="is_posix and not chromeos and not lacros"> | ||
| 46 | i18nId = useSystemTheme ? 'systemTheme' : 'classicTheme'; | ||
| 47 | // </if> | ||
| 48 | - // <if expr="not is_linux or chromeos_ash or chromeos_lacros"> | ||
| 49 | + // <if expr="not is_posix or chromeos_ash or chromeos_lacros"> | ||
| 50 | i18nId = 'chooseFromWebStore'; | ||
| 51 | // </if> | ||
| 52 | this.themeSublabel_ = this.i18n(i18nId); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_resources_settings_autofill_page_passwords_shared_css_html b/www/chromium/patches/patch-chrome_browser_resources_settings_autofill_page_passwords_shared_css_html new file mode 100644 index 0000000..fac27a9 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_resources_settings_autofill_page_passwords_shared_css_html | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/resources/settings/autofill_page/passwords_shared_css.html | ||
| 2 | --- chrome/browser/resources/settings/autofill_page/passwords_shared_css.html.orig | ||
| 3 | +++ chrome/browser/resources/settings/autofill_page/passwords_shared_css.html | ||
| 4 | @@ -64,7 +64,7 @@ | ||
| 5 | * necessary to prevent Chrome from using the operating system's font | ||
| 6 | * instead of the Material Design font. | ||
| 7 | * TODO(dbeam): why not font: inherit? */ | ||
| 8 | -<if expr="chromeos_ash or chromeos_lacros or is_linux"> | ||
| 9 | +<if expr="chromeos_ash or chromeos_lacros or is_posix"> | ||
| 10 | font-family: 'DejaVu Sans Mono', monospace; | ||
| 11 | </if> | ||
| 12 | <if expr="is_win"> | ||
diff --git a/www/chromium/patches/patch-chrome_browser_resources_settings_route_ts b/www/chromium/patches/patch-chrome_browser_resources_settings_route_ts new file mode 100644 index 0000000..60b9613 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_resources_settings_route_ts | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/resources/settings/route.ts | ||
| 2 | --- chrome/browser/resources/settings/route.ts.orig | ||
| 3 | +++ chrome/browser/resources/settings/route.ts | ||
| 4 | @@ -185,7 +185,7 @@ function createBrowserSettingsRoutes(): SettingsRoutes | ||
| 5 | |||
| 6 | r.ACCESSIBILITY = r.ADVANCED.createSection('/accessibility', 'a11y'); | ||
| 7 | |||
| 8 | - // <if expr="is_linux"> | ||
| 9 | + // <if expr="is_posix"> | ||
| 10 | r.CAPTIONS = r.ACCESSIBILITY.createChild('/captions'); | ||
| 11 | // </if> | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_resources_signin_signin_shared_css_html b/www/chromium/patches/patch-chrome_browser_resources_signin_signin_shared_css_html new file mode 100644 index 0000000..a39ecc3 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_resources_signin_signin_shared_css_html | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/resources/signin/signin_shared_css.html | ||
| 2 | --- chrome/browser/resources/signin/signin_shared_css.html.orig | ||
| 3 | +++ chrome/browser/resources/signin/signin_shared_css.html | ||
| 4 | @@ -30,7 +30,7 @@ | ||
| 5 | margin-inline-start: 8px; | ||
| 6 | } | ||
| 7 | |||
| 8 | -<if expr="is_macosx or is_linux"> | ||
| 9 | +<if expr="is_macosx or is_posix"> | ||
| 10 | .action-container { | ||
| 11 | flex-flow: row-reverse; | ||
| 12 | justify-content: flex-start; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_safe_browsing_download_protection_file_analyzer_cc b/www/chromium/patches/patch-chrome_browser_safe_browsing_download_protection_file_analyzer_cc new file mode 100644 index 0000000..69f6d1f --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_safe_browsing_download_protection_file_analyzer_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/safe_browsing/download_protection/file_analyzer.cc | ||
| 2 | --- chrome/browser/safe_browsing/download_protection/file_analyzer.cc.orig | ||
| 3 | +++ chrome/browser/safe_browsing/download_protection/file_analyzer.cc | ||
| 4 | @@ -21,7 +21,7 @@ | ||
| 5 | #include "content/public/browser/browser_thread.h" | ||
| 6 | #include "url/gurl.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) | BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/safe_browsing/download_protection/document_analysis_service.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -102,7 +102,7 @@ void FileAnalyzer::Start(const base::FilePath& target_ | ||
| 14 | } else if (inspection_type == DownloadFileType::DMG) { | ||
| 15 | StartExtractDmgFeatures(); | ||
| 16 | #endif | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 19 | } else if (base::FeatureList::IsEnabled( | ||
| 20 | safe_browsing::kClientSideDetectionDocumentScanning) && | ||
| 21 | inspection_type == DownloadFileType::OFFICE_DOCUMENT) { | ||
| 22 | @@ -286,7 +286,7 @@ void FileAnalyzer::OnDmgAnalysisFinished( | ||
| 23 | } | ||
| 24 | #endif // BUILDFLAG(IS_MAC) | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 28 | void FileAnalyzer::StartExtractDocumentFeatures() { | ||
| 29 | DCHECK_CURRENTLY_ON(BrowserThread::UI); | ||
| 30 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_safe_browsing_download_protection_file_analyzer_h b/www/chromium/patches/patch-chrome_browser_safe_browsing_download_protection_file_analyzer_h new file mode 100644 index 0000000..8892312 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_safe_browsing_download_protection_file_analyzer_h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/safe_browsing/download_protection/file_analyzer.h | ||
| 2 | --- chrome/browser/safe_browsing/download_protection/file_analyzer.h.orig | ||
| 3 | +++ chrome/browser/safe_browsing/download_protection/file_analyzer.h | ||
| 4 | @@ -16,7 +16,7 @@ | ||
| 5 | #include "components/safe_browsing/core/common/proto/csd.pb.h" | ||
| 6 | #include "third_party/protobuf/src/google/protobuf/repeated_field.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/services/file_util/public/cpp/sandboxed_document_analyzer.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -111,7 +111,7 @@ class FileAnalyzer { | ||
| 14 | const safe_browsing::ArchiveAnalyzerResults& archive_results); | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 19 | void StartExtractDocumentFeatures(); | ||
| 20 | void OnDocumentAnalysisFinished( | ||
| 21 | const DocumentAnalyzerResults& document_results); | ||
| 22 | @@ -131,7 +131,7 @@ class FileAnalyzer { | ||
| 23 | scoped_refptr<SandboxedDMGAnalyzer> dmg_analyzer_; | ||
| 24 | #endif | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 28 | scoped_refptr<SandboxedDocumentAnalyzer> document_analyzer_; | ||
| 29 | base::TimeTicks document_analysis_start_time_; | ||
| 30 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_safe_browsing_incident_reporting_incident_reporting_service_cc b/www/chromium/patches/patch-chrome_browser_safe_browsing_incident_reporting_incident_reporting_service_cc new file mode 100644 index 0000000..8c2d094 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_safe_browsing_incident_reporting_incident_reporting_service_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc | ||
| 2 | --- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc.orig | ||
| 3 | +++ chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc | ||
| 4 | @@ -709,7 +709,7 @@ void IncidentReportingService::OnEnvironmentDataCollec | ||
| 5 | |||
| 6 | // Process::Current().CreationTime() is missing on some platforms. | ||
| 7 | #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | base::TimeDelta uptime = | ||
| 11 | first_incident_time_ - base::Process::Current().CreationTime(); | ||
| 12 | environment_data->mutable_process()->set_uptime_msec(uptime.InMilliseconds()); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_send_tab_to_self_receiving_ui_handler_registry_cc b/www/chromium/patches/patch-chrome_browser_send_tab_to_self_receiving_ui_handler_registry_cc new file mode 100644 index 0000000..465df1b --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_send_tab_to_self_receiving_ui_handler_registry_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/send_tab_to_self/receiving_ui_handler_registry.cc | ||
| 2 | --- chrome/browser/send_tab_to_self/receiving_ui_handler_registry.cc.orig | ||
| 3 | +++ chrome/browser/send_tab_to_self/receiving_ui_handler_registry.cc | ||
| 4 | @@ -16,7 +16,7 @@ | ||
| 5 | #include "components/send_tab_to_self/features.h" | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 8 | - BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/send_tab_to_self/desktop_notification_handler.h" | ||
| 11 | #include "chrome/browser/ui/send_tab_to_self/send_tab_to_self_toolbar_icon_controller.h" | ||
| 12 | #endif | ||
| 13 | @@ -48,7 +48,7 @@ SendTabToSelfToolbarIconController* | ||
| 14 | ReceivingUiHandlerRegistry::GetToolbarButtonControllerForProfile( | ||
| 15 | Profile* profile) { | ||
| 16 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 17 | - BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) | ||
| 18 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | for (const std::unique_ptr<ReceivingUiHandler>& handler : | ||
| 20 | applicable_handlers_) { | ||
| 21 | auto* button_controller = | ||
diff --git a/www/chromium/patches/patch-chrome_browser_send_tab_to_self_send_tab_to_self_client_service_cc b/www/chromium/patches/patch-chrome_browser_send_tab_to_self_send_tab_to_self_client_service_cc new file mode 100644 index 0000000..c780741 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_send_tab_to_self_send_tab_to_self_client_service_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/send_tab_to_self/send_tab_to_self_client_service.cc | ||
| 2 | --- chrome/browser/send_tab_to_self/send_tab_to_self_client_service.cc.orig | ||
| 3 | +++ chrome/browser/send_tab_to_self/send_tab_to_self_client_service.cc | ||
| 4 | @@ -17,7 +17,7 @@ | ||
| 5 | #include "components/send_tab_to_self/send_tab_to_self_model.h" | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 8 | - BUILDFLAG(IS_WIN) | ||
| 9 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/ui/send_tab_to_self/send_tab_to_self_toolbar_icon_controller.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -51,7 +51,7 @@ void SendTabToSelfClientService::EntriesAddedRemotely( | ||
| 14 | const std::vector<const SendTabToSelfEntry*>& new_entries) { | ||
| 15 | for (const std::unique_ptr<ReceivingUiHandler>& handler : GetHandlers()) { | ||
| 16 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 17 | - BUILDFLAG(IS_WIN) | ||
| 18 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 19 | // Only respond to notifications corresponding to this service's profile | ||
| 20 | // for these OSes; mobile does not have a Profile. | ||
| 21 | // Cast note: on desktop, handlers are guaranteed to be the derived class | ||
diff --git a/www/chromium/patches/patch-chrome_browser_sharing_sharing_device_registration_cc b/www/chromium/patches/patch-chrome_browser_sharing_sharing_device_registration_cc new file mode 100644 index 0000000..aee4e9d --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_sharing_sharing_device_registration_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/sharing/sharing_device_registration.cc | ||
| 2 | --- chrome/browser/sharing/sharing_device_registration.cc.orig | ||
| 3 | +++ chrome/browser/sharing/sharing_device_registration.cc | ||
| 4 | @@ -327,7 +327,7 @@ bool SharingDeviceRegistration::IsSmsFetcherSupported( | ||
| 5 | |||
| 6 | bool SharingDeviceRegistration::IsRemoteCopySupported() const { | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | return true; | ||
| 11 | #else | ||
| 12 | return false; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_sharing_sharing_handler_registry_impl_cc b/www/chromium/patches/patch-chrome_browser_sharing_sharing_handler_registry_impl_cc new file mode 100644 index 0000000..923e366 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_sharing_sharing_handler_registry_impl_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/sharing/sharing_handler_registry_impl.cc | ||
| 2 | --- chrome/browser/sharing/sharing_handler_registry_impl.cc.orig | ||
| 3 | +++ chrome/browser/sharing/sharing_handler_registry_impl.cc | ||
| 4 | @@ -24,7 +24,7 @@ | ||
| 5 | #endif // BUILDFLAG(IS_ANDROID) | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/sharing/shared_clipboard/remote_copy_message_handler.h" | ||
| 11 | #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) || | ||
| 12 | // BUILDFLAG(IS_CHROMEOS_LACROS)) BUILDFLAG(IS_CHROMEOS) | ||
| 13 | @@ -77,7 +77,7 @@ SharingHandlerRegistryImpl::SharingHandlerRegistryImpl | ||
| 14 | } | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_CHROMEOS) | ||
| 18 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | if (sharing_device_registration->IsRemoteCopySupported()) { | ||
| 20 | AddSharingHandler( | ||
| 21 | std::make_unique<RemoteCopyMessageHandler>(profile), | ||
diff --git a/www/chromium/patches/patch-chrome_browser_shutdown_signal_handlers_posix_cc b/www/chromium/patches/patch-chrome_browser_shutdown_signal_handlers_posix_cc new file mode 100644 index 0000000..9cffbc0 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_shutdown_signal_handlers_posix_cc | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Index: chrome/browser/shutdown_signal_handlers_posix.cc | ||
| 2 | --- chrome/browser/shutdown_signal_handlers_posix.cc.orig | ||
| 3 | +++ chrome/browser/shutdown_signal_handlers_posix.cc | ||
| 4 | @@ -187,12 +187,18 @@ void InstallShutdownSignalHandlers( | ||
| 5 | g_pipe_pid = getpid(); | ||
| 6 | g_shutdown_pipe_read_fd = pipefd[0]; | ||
| 7 | g_shutdown_pipe_write_fd = pipefd[1]; | ||
| 8 | +#if defined(OS_BSD) | ||
| 9 | + // PTHREAD_STACK_MIN causes chromium to crash under *BSD, | ||
| 10 | + // we request the default pthread stack size by specifying 0 here. | ||
| 11 | + const size_t kShutdownDetectorThreadStackSize = 0; | ||
| 12 | +#else | ||
| 13 | #if !defined(ADDRESS_SANITIZER) | ||
| 14 | const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 2; | ||
| 15 | #else | ||
| 16 | // ASan instrumentation bloats the stack frames, so we need to increase the | ||
| 17 | // stack size to avoid hitting the guard page. | ||
| 18 | const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 4; | ||
| 19 | +#endif | ||
| 20 | #endif | ||
| 21 | ShutdownDetector* detector = new ShutdownDetector( | ||
| 22 | g_shutdown_pipe_read_fd, std::move(shutdown_callback), task_runner); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_signin_signin_util_cc b/www/chromium/patches/patch-chrome_browser_signin_signin_util_cc new file mode 100644 index 0000000..41b6908 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_signin_signin_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/signin/signin_util.cc | ||
| 2 | --- chrome/browser/signin/signin_util.cc.orig | ||
| 3 | +++ chrome/browser/signin/signin_util.cc | ||
| 4 | @@ -39,7 +39,7 @@ | ||
| 5 | #include "ui/base/l10n/l10n_util.h" | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_MAC) | ||
| 9 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/ui/browser_finder.h" | ||
| 11 | #include "chrome/browser/ui/browser_list.h" | ||
| 12 | #include "chrome/browser/ui/browser_list_observer.h" | ||
diff --git a/www/chromium/patches/patch-chrome_browser_sync_chrome_sync_client_cc b/www/chromium/patches/patch-chrome_browser_sync_chrome_sync_client_cc new file mode 100644 index 0000000..f95e204 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_sync_chrome_sync_client_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/sync/chrome_sync_client.cc | ||
| 2 | --- chrome/browser/sync/chrome_sync_client.cc.orig | ||
| 3 | +++ chrome/browser/sync/chrome_sync_client.cc | ||
| 4 | @@ -412,7 +412,7 @@ ChromeSyncClient::CreateDataTypeControllers(syncer::Sy | ||
| 5 | |||
| 6 | // Chrome prefers OS provided spell checkers where they exist. So only sync the | ||
| 7 | // custom dictionary on platforms that typically don't provide one. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 10 | // Dictionary sync is enabled by default. | ||
| 11 | if (GetPrefService()->GetBoolean(spellcheck::prefs::kSpellCheckEnable)) { | ||
| 12 | controllers.push_back( | ||
diff --git a/www/chromium/patches/patch-chrome_browser_sync_device_info_sync_client_impl_cc b/www/chromium/patches/patch-chrome_browser_sync_device_info_sync_client_impl_cc new file mode 100644 index 0000000..1243b33 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_sync_device_info_sync_client_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/sync/device_info_sync_client_impl.cc | ||
| 2 | --- chrome/browser/sync/device_info_sync_client_impl.cc.orig | ||
| 3 | +++ chrome/browser/sync/device_info_sync_client_impl.cc | ||
| 4 | @@ -38,7 +38,7 @@ std::string DeviceInfoSyncClientImpl::GetSigninScopedD | ||
| 5 | // in lacros-chrome once build flag switch of lacros-chrome is | ||
| 6 | // complete. | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 8 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 10 | syncer::SyncPrefs prefs(profile_->GetPrefs()); | ||
| 11 | if (prefs.IsLocalSyncEnabled()) { | ||
| 12 | return "local_device"; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_group_cc b/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_group_cc new file mode 100644 index 0000000..90264d8 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_group_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: chrome/browser/task_manager/sampling/task_group.cc | ||
| 2 | --- chrome/browser/task_manager/sampling/task_group.cc.orig | ||
| 3 | +++ chrome/browser/task_manager/sampling/task_group.cc | ||
| 4 | @@ -37,7 +37,7 @@ const int kBackgroundRefreshTypesMask = | ||
| 5 | #if BUILDFLAG(IS_WIN) | ||
| 6 | REFRESH_TYPE_START_TIME | REFRESH_TYPE_CPU_TIME | | ||
| 7 | #endif // BUILDFLAG(IS_WIN) | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | REFRESH_TYPE_FD_COUNT | | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 12 | #if BUILDFLAG(ENABLE_NACL) | ||
| 13 | @@ -122,7 +122,7 @@ TaskGroup::TaskGroup( | ||
| 14 | #if BUILDFLAG(ENABLE_NACL) | ||
| 15 | nacl_debug_stub_port_(nacl::kGdbDebugStubPortUnknown), | ||
| 16 | #endif // BUILDFLAG(ENABLE_NACL) | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | open_fd_count_(-1), | ||
| 20 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 21 | idle_wakeups_per_second_(-1), | ||
| 22 | @@ -141,7 +141,7 @@ TaskGroup::TaskGroup( | ||
| 23 | weak_ptr_factory_.GetWeakPtr()), | ||
| 24 | base::BindRepeating(&TaskGroup::OnIdleWakeupsRefreshDone, | ||
| 25 | weak_ptr_factory_.GetWeakPtr()), | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | base::BindRepeating(&TaskGroup::OnOpenFdCountRefreshDone, | ||
| 29 | weak_ptr_factory_.GetWeakPtr()), | ||
| 30 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 31 | @@ -321,7 +321,7 @@ void TaskGroup::OnRefreshNaClDebugStubPortDone(int nac | ||
| 32 | } | ||
| 33 | #endif // BUILDFLAG(ENABLE_NACL) | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 37 | void TaskGroup::OnOpenFdCountRefreshDone(int open_fd_count) { | ||
| 38 | DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | ||
| 39 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_group_h b/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_group_h new file mode 100644 index 0000000..d34e4b2 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_group_h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: chrome/browser/task_manager/sampling/task_group.h | ||
| 2 | --- chrome/browser/task_manager/sampling/task_group.h.orig | ||
| 3 | +++ chrome/browser/task_manager/sampling/task_group.h | ||
| 4 | @@ -42,7 +42,7 @@ constexpr int kUnsupportedVMRefreshFlags = | ||
| 5 | REFRESH_TYPE_WEBCACHE_STATS | REFRESH_TYPE_NETWORK_USAGE | | ||
| 6 | REFRESH_TYPE_NACL | REFRESH_TYPE_IDLE_WAKEUPS | REFRESH_TYPE_HANDLES | | ||
| 7 | REFRESH_TYPE_START_TIME | REFRESH_TYPE_CPU_TIME | REFRESH_TYPE_PRIORITY | | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | REFRESH_TYPE_FD_COUNT | | ||
| 11 | #endif | ||
| 12 | REFRESH_TYPE_HARD_FAULTS; | ||
| 13 | @@ -148,7 +148,7 @@ class TaskGroup { | ||
| 14 | } | ||
| 15 | #endif // BUILDFLAG(ENABLE_NACL) | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | int open_fd_count() const { return open_fd_count_; } | ||
| 20 | void set_open_fd_count(int open_fd_count) { open_fd_count_ = open_fd_count; } | ||
| 21 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 22 | @@ -168,7 +168,7 @@ class TaskGroup { | ||
| 23 | void RefreshNaClDebugStubPort(int child_process_unique_id); | ||
| 24 | void OnRefreshNaClDebugStubPortDone(int port); | ||
| 25 | #endif | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | void OnOpenFdCountRefreshDone(int open_fd_count); | ||
| 29 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 30 | |||
| 31 | @@ -240,7 +240,7 @@ class TaskGroup { | ||
| 32 | #if BUILDFLAG(ENABLE_NACL) | ||
| 33 | int nacl_debug_stub_port_; | ||
| 34 | #endif // BUILDFLAG(ENABLE_NACL) | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 37 | // The number of file descriptors currently open by the process. | ||
| 38 | int open_fd_count_; | ||
| 39 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
diff --git a/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_group_sampler_cc b/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_group_sampler_cc new file mode 100644 index 0000000..7831ae0 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_group_sampler_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: chrome/browser/task_manager/sampling/task_group_sampler.cc | ||
| 2 | --- chrome/browser/task_manager/sampling/task_group_sampler.cc.orig | ||
| 3 | +++ chrome/browser/task_manager/sampling/task_group_sampler.cc | ||
| 4 | @@ -44,7 +44,7 @@ TaskGroupSampler::TaskGroupSampler( | ||
| 5 | const OnCpuRefreshCallback& on_cpu_refresh, | ||
| 6 | const OnSwappedMemRefreshCallback& on_swapped_mem_refresh, | ||
| 7 | const OnIdleWakeupsCallback& on_idle_wakeups, | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | const OnOpenFdCountCallback& on_open_fd_count, | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 12 | const OnProcessPriorityCallback& on_process_priority) | ||
| 13 | @@ -54,7 +54,7 @@ TaskGroupSampler::TaskGroupSampler( | ||
| 14 | on_cpu_refresh_callback_(on_cpu_refresh), | ||
| 15 | on_swapped_mem_refresh_callback_(on_swapped_mem_refresh), | ||
| 16 | on_idle_wakeups_callback_(on_idle_wakeups), | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | on_open_fd_count_callback_(on_open_fd_count), | ||
| 20 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 21 | on_process_priority_callback_(on_process_priority) { | ||
| 22 | @@ -86,7 +86,7 @@ void TaskGroupSampler::Refresh(int64_t refresh_flags) | ||
| 23 | base::BindOnce(on_swapped_mem_refresh_callback_)); | ||
| 24 | } | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | if (TaskManagerObserver::IsResourceRefreshEnabled(REFRESH_TYPE_IDLE_WAKEUPS, | ||
| 29 | refresh_flags)) { | ||
| 30 | base::PostTaskAndReplyWithResult( | ||
| 31 | @@ -96,7 +96,7 @@ void TaskGroupSampler::Refresh(int64_t refresh_flags) | ||
| 32 | } | ||
| 33 | #endif // BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 37 | if (TaskManagerObserver::IsResourceRefreshEnabled(REFRESH_TYPE_FD_COUNT, | ||
| 38 | refresh_flags)) { | ||
| 39 | base::PostTaskAndReplyWithResult( | ||
| 40 | @@ -146,7 +146,7 @@ int TaskGroupSampler::RefreshIdleWakeupsPerSecond() { | ||
| 41 | return process_metrics_->GetIdleWakeupsPerSecond(); | ||
| 42 | } | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 46 | int TaskGroupSampler::RefreshOpenFdCount() { | ||
| 47 | DCHECK(worker_pool_sequenced_checker_.CalledOnValidSequence()); | ||
| 48 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_group_sampler_h b/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_group_sampler_h new file mode 100644 index 0000000..b20a461 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_group_sampler_h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: chrome/browser/task_manager/sampling/task_group_sampler.h | ||
| 2 | --- chrome/browser/task_manager/sampling/task_group_sampler.h.orig | ||
| 3 | +++ chrome/browser/task_manager/sampling/task_group_sampler.h | ||
| 4 | @@ -31,7 +31,7 @@ class TaskGroupSampler : public base::RefCountedThread | ||
| 5 | using OnCpuRefreshCallback = base::RepeatingCallback<void(double)>; | ||
| 6 | using OnSwappedMemRefreshCallback = base::RepeatingCallback<void(int64_t)>; | ||
| 7 | using OnIdleWakeupsCallback = base::RepeatingCallback<void(int)>; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | using OnOpenFdCountCallback = base::RepeatingCallback<void(int)>; | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 12 | using OnProcessPriorityCallback = base::RepeatingCallback<void(bool)>; | ||
| 13 | @@ -42,7 +42,7 @@ class TaskGroupSampler : public base::RefCountedThread | ||
| 14 | const OnCpuRefreshCallback& on_cpu_refresh, | ||
| 15 | const OnSwappedMemRefreshCallback& on_memory_refresh, | ||
| 16 | const OnIdleWakeupsCallback& on_idle_wakeups, | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | const OnOpenFdCountCallback& on_open_fd_count, | ||
| 20 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 21 | const OnProcessPriorityCallback& on_process_priority); | ||
| 22 | @@ -62,7 +62,7 @@ class TaskGroupSampler : public base::RefCountedThread | ||
| 23 | double RefreshCpuUsage(); | ||
| 24 | int64_t RefreshSwappedMem(); | ||
| 25 | int RefreshIdleWakeupsPerSecond(); | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | int RefreshOpenFdCount(); | ||
| 29 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 30 | bool RefreshProcessPriority(); | ||
| 31 | @@ -86,7 +86,7 @@ class TaskGroupSampler : public base::RefCountedThread | ||
| 32 | const OnCpuRefreshCallback on_cpu_refresh_callback_; | ||
| 33 | const OnSwappedMemRefreshCallback on_swapped_mem_refresh_callback_; | ||
| 34 | const OnIdleWakeupsCallback on_idle_wakeups_callback_; | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 37 | const OnOpenFdCountCallback on_open_fd_count_callback_; | ||
| 38 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 39 | const OnProcessPriorityCallback on_process_priority_callback_; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_manager_impl_cc b/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_manager_impl_cc new file mode 100644 index 0000000..58c9c44 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_task_manager_sampling_task_manager_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/task_manager/sampling/task_manager_impl.cc | ||
| 2 | --- chrome/browser/task_manager/sampling/task_manager_impl.cc.orig | ||
| 3 | +++ chrome/browser/task_manager/sampling/task_manager_impl.cc | ||
| 4 | @@ -217,7 +217,7 @@ void TaskManagerImpl::GetUSERHandles(TaskId task_id, | ||
| 5 | } | ||
| 6 | |||
| 7 | int TaskManagerImpl::GetOpenFdCount(TaskId task_id) const { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | return GetTaskGroupByTaskId(task_id)->open_fd_count(); | ||
| 11 | #else | ||
| 12 | return -1; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_task_manager_task_manager_observer_h b/www/chromium/patches/patch-chrome_browser_task_manager_task_manager_observer_h new file mode 100644 index 0000000..31d8b6c --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_task_manager_task_manager_observer_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/task_manager/task_manager_observer.h | ||
| 2 | --- chrome/browser/task_manager/task_manager_observer.h.orig | ||
| 3 | +++ chrome/browser/task_manager/task_manager_observer.h | ||
| 4 | @@ -47,7 +47,7 @@ enum RefreshType { | ||
| 5 | // or backgrounded. | ||
| 6 | REFRESH_TYPE_PRIORITY = 1 << 13, | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | // For observers interested in getting the number of open file descriptors of | ||
| 11 | // processes. | ||
| 12 | REFRESH_TYPE_FD_COUNT = 1 << 14, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_themes_theme_helper_cc b/www/chromium/patches/patch-chrome_browser_themes_theme_helper_cc new file mode 100644 index 0000000..fbb9f27 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_themes_theme_helper_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/themes/theme_helper.cc | ||
| 2 | --- chrome/browser/themes/theme_helper.cc.orig | ||
| 3 | +++ chrome/browser/themes/theme_helper.cc | ||
| 4 | @@ -297,7 +297,7 @@ bool ThemeHelper::ShouldUseIncreasedContrastThemeSuppl | ||
| 5 | ui::NativeTheme* native_theme) const { | ||
| 6 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 7 | // complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // On Linux the GTK system theme provides the high contrast colors, | ||
| 11 | // so don't use the IncreasedContrastThemeSupplier. | ||
| 12 | return false; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_themes_theme_service_factory_cc b/www/chromium/patches/patch-chrome_browser_themes_theme_service_factory_cc new file mode 100644 index 0000000..ac1449c --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_themes_theme_service_factory_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/themes/theme_service_factory.cc | ||
| 2 | --- chrome/browser/themes/theme_service_factory.cc.orig | ||
| 3 | +++ chrome/browser/themes/theme_service_factory.cc | ||
| 4 | @@ -25,7 +25,7 @@ | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/themes/theme_service_aura_linux.h" | ||
| 11 | #include "ui/views/linux_ui/linux_ui.h" | ||
| 12 | #endif | ||
| 13 | @@ -82,7 +82,7 @@ KeyedService* ThemeServiceFactory::BuildServiceInstanc | ||
| 14 | content::BrowserContext* profile) const { | ||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | using ThemeService = ThemeServiceAuraLinux; | ||
| 20 | #endif | ||
| 21 | |||
| 22 | @@ -96,7 +96,7 @@ void ThemeServiceFactory::RegisterProfilePrefs( | ||
| 23 | user_prefs::PrefRegistrySyncable* registry) { | ||
| 24 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 25 | // of lacros-chrome is complete. | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 28 | bool default_uses_system_theme = false; | ||
| 29 | |||
| 30 | const views::LinuxUI* linux_ui = views::LinuxUI::instance(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_browser_command_controller_cc b/www/chromium/patches/patch-chrome_browser_ui_browser_command_controller_cc new file mode 100644 index 0000000..e30e162 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_browser_command_controller_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: chrome/browser/ui/browser_command_controller.cc | ||
| 2 | --- chrome/browser/ui/browser_command_controller.cc.orig | ||
| 3 | +++ chrome/browser/ui/browser_command_controller.cc | ||
| 4 | @@ -88,7 +88,7 @@ | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/base/ime/linux/text_edit_key_bindings_delegate_auralinux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -277,7 +277,7 @@ bool BrowserCommandController::IsReservedCommandOrKey( | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | // If this key was registered by the user as a content editing hotkey, then | ||
| 20 | // it is not reserved. | ||
| 21 | ui::TextEditKeyBindingsDelegateAuraLinux* delegate = | ||
| 22 | @@ -513,7 +513,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo | ||
| 23 | |||
| 24 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 25 | // of lacros-chrome is complete. | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 28 | case IDC_MINIMIZE_WINDOW: | ||
| 29 | browser_->window()->Minimize(); | ||
| 30 | break; | ||
| 31 | @@ -1040,7 +1040,7 @@ void BrowserCommandController::InitCommandState() { | ||
| 32 | #endif | ||
| 33 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 34 | // of lacros-chrome is complete. | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 37 | command_updater_.UpdateCommandEnabled(IDC_MINIMIZE_WINDOW, true); | ||
| 38 | command_updater_.UpdateCommandEnabled(IDC_MAXIMIZE_WINDOW, true); | ||
| 39 | command_updater_.UpdateCommandEnabled(IDC_RESTORE_WINDOW, true); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_browser_dialogs_h b/www/chromium/patches/patch-chrome_browser_ui_browser_dialogs_h new file mode 100644 index 0000000..00c5c4b --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_browser_dialogs_h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/ui/browser_dialogs.h | ||
| 2 | --- chrome/browser/ui/browser_dialogs.h.orig | ||
| 3 | +++ chrome/browser/ui/browser_dialogs.h | ||
| 4 | @@ -26,7 +26,7 @@ | ||
| 5 | #include "ui/base/models/dialog_model.h" | ||
| 6 | #include "ui/gfx/native_widget_types.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 10 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 11 | #include "chrome/browser/web_applications/web_app_id.h" | ||
| 12 | #endif | ||
| 13 | @@ -80,7 +80,7 @@ class WebDialogDelegate; | ||
| 14 | struct SelectedFileInfo; | ||
| 15 | } // namespace ui | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 19 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 20 | namespace web_app { | ||
| 21 | struct UrlHandlerLaunchParams; | ||
| 22 | @@ -207,7 +207,7 @@ void ShowWebAppFileLaunchDialog(const std::vector<base | ||
| 23 | WebAppLaunchAcceptanceCallback close_callback); | ||
| 24 | #endif // !BUILDFLAG(IS_ANDROID) | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 27 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 28 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 29 | // Callback that runs when the Web App URL Handler Intent Picker dialog is | ||
| 30 | // closed. `accepted` is true when the dialog is accepted, false otherwise. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_browser_view_prefs_cc b/www/chromium/patches/patch-chrome_browser_ui_browser_view_prefs_cc new file mode 100644 index 0000000..c9bc518 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_browser_view_prefs_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/ui/browser_view_prefs.cc | ||
| 2 | --- chrome/browser/ui/browser_view_prefs.cc.orig | ||
| 3 | +++ chrome/browser/ui/browser_view_prefs.cc | ||
| 4 | @@ -17,7 +17,7 @@ namespace { | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | bool GetCustomFramePrefDefault() { | ||
| 11 | #if defined(USE_OZONE) | ||
| 12 | return ui::OzonePlatform::GetInstance() | ||
| 13 | @@ -35,7 +35,7 @@ void RegisterBrowserViewProfilePrefs( | ||
| 14 | user_prefs::PrefRegistrySyncable* registry) { | ||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | registry->RegisterBooleanPref(prefs::kUseCustomChromeFrame, | ||
| 20 | GetCustomFramePrefDefault()); | ||
| 21 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_chrome_pages_cc b/www/chromium/patches/patch-chrome_browser_ui_chrome_pages_cc new file mode 100644 index 0000000..8f6dafe --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_chrome_pages_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/chrome_pages.cc | ||
| 2 | --- chrome/browser/ui/chrome_pages.cc.orig | ||
| 3 | +++ chrome/browser/ui/chrome_pages.cc | ||
| 4 | @@ -550,7 +550,7 @@ void ShowBrowserSigninOrSettings(Browser* browser, | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | void ShowWebAppSettings(Browser* browser, | ||
| 11 | const std::string& app_id, | ||
| 12 | web_app::AppSettingsPageEntryPoint entry_point) { | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_chrome_pages_h b/www/chromium/patches/patch-chrome_browser_ui_chrome_pages_h new file mode 100644 index 0000000..bfc3fc2 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_chrome_pages_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/ui/chrome_pages.h | ||
| 2 | --- chrome/browser/ui/chrome_pages.h.orig | ||
| 3 | +++ chrome/browser/ui/chrome_pages.h | ||
| 4 | @@ -26,7 +26,7 @@ | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/web_applications/web_app_utils.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -201,7 +201,7 @@ void ShowBrowserSigninOrSettings(Browser* browser, | ||
| 14 | #endif | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_FUCHSIA) | ||
| 18 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | // Show chrome://app-settings/<app-id> page. | ||
| 20 | void ShowWebAppSettings(Browser* browser, | ||
| 21 | const std::string& app_id, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_color_native_chrome_color_mixer_cc b/www/chromium/patches/patch-chrome_browser_ui_color_native_chrome_color_mixer_cc new file mode 100644 index 0000000..239c6e1 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_color_native_chrome_color_mixer_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/color/native_chrome_color_mixer.cc | ||
| 2 | --- chrome/browser/ui/color/native_chrome_color_mixer.cc.orig | ||
| 3 | +++ chrome/browser/ui/color/native_chrome_color_mixer.cc | ||
| 4 | @@ -6,7 +6,7 @@ | ||
| 5 | |||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_WIN) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_BSD) | ||
| 10 | void AddNativeChromeColorMixer(ui::ColorProvider* provider, | ||
| 11 | const ui::ColorProviderManager::Key& key) {} | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_exclusive_access_exclusive_access_bubble_cc b/www/chromium/patches/patch-chrome_browser_ui_exclusive_access_exclusive_access_bubble_cc new file mode 100644 index 0000000..61373f9 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_exclusive_access_exclusive_access_bubble_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/exclusive_access/exclusive_access_bubble.cc | ||
| 2 | --- chrome/browser/ui/exclusive_access/exclusive_access_bubble.cc.orig | ||
| 3 | +++ chrome/browser/ui/exclusive_access/exclusive_access_bubble.cc | ||
| 4 | @@ -16,7 +16,7 @@ | ||
| 5 | |||
| 6 | // NOTE(koz): Linux doesn't use the thick shadowed border, so we add padding | ||
| 7 | // here. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | const int ExclusiveAccessBubble::kPaddingPx = 8; | ||
| 11 | #else | ||
| 12 | const int ExclusiveAccessBubble::kPaddingPx = 15; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_sad_tab_cc b/www/chromium/patches/patch-chrome_browser_ui_sad_tab_cc new file mode 100644 index 0000000..660793e --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_sad_tab_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/sad_tab.cc | ||
| 2 | --- chrome/browser/ui/sad_tab.cc.orig | ||
| 3 | +++ chrome/browser/ui/sad_tab.cc | ||
| 4 | @@ -188,7 +188,7 @@ std::vector<int> SadTab::GetSubMessages() { | ||
| 5 | // Only show Incognito suggestion if not already in Incognito mode. | ||
| 6 | if (!web_contents_->GetBrowserContext()->IsOffTheRecord()) | ||
| 7 | message_ids.insert(message_ids.begin(), IDS_SAD_TAB_RELOAD_INCOGNITO); | ||
| 8 | -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Note: on macOS, Linux and ChromeOS, the first bullet is either one of | ||
| 11 | // IDS_SAD_TAB_RELOAD_CLOSE_TABS or IDS_SAD_TAB_RELOAD_CLOSE_NOTABS | ||
| 12 | // followed by one of the above suggestions. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_signin_view_controller_cc b/www/chromium/patches/patch-chrome_browser_ui_signin_view_controller_cc new file mode 100644 index 0000000..d5c2e9a --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_signin_view_controller_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/signin_view_controller.cc | ||
| 2 | --- chrome/browser/ui/signin_view_controller.cc.orig | ||
| 3 | +++ chrome/browser/ui/signin_view_controller.cc | ||
| 4 | @@ -259,7 +259,7 @@ void SigninViewController::ShowModalEnterpriseConfirma | ||
| 5 | SkColor profile_color, | ||
| 6 | base::OnceCallback<void(bool)> callback) { | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | CloseModalSignin(); | ||
| 11 | dialog_ = std::make_unique<SigninModalDialogImpl>( | ||
| 12 | SigninViewControllerDelegate::CreateEnterpriseConfirmationDelegate( | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_signin_view_controller_delegate_h b/www/chromium/patches/patch-chrome_browser_ui_signin_view_controller_delegate_h new file mode 100644 index 0000000..9b874c5 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_signin_view_controller_delegate_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/signin_view_controller_delegate.h | ||
| 2 | --- chrome/browser/ui/signin_view_controller_delegate.h.orig | ||
| 3 | +++ chrome/browser/ui/signin_view_controller_delegate.h | ||
| 4 | @@ -74,7 +74,7 @@ class SigninViewControllerDelegate { | ||
| 5 | #endif // BUILDFLAG(ENABLE_DICE_SUPPORT) | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Returns a platform-specific SigninViewContolllerDelegate instance that | ||
| 11 | // displays the enterprise confirmation modal dialog. The returned object | ||
| 12 | // should delete itself when the window it's managing is closed. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_startup_bad_flags_prompt_cc b/www/chromium/patches/patch-chrome_browser_ui_startup_bad_flags_prompt_cc new file mode 100644 index 0000000..9db369d --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_startup_bad_flags_prompt_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/startup/bad_flags_prompt.cc | ||
| 2 | --- chrome/browser/ui/startup/bad_flags_prompt.cc.orig | ||
| 3 | +++ chrome/browser/ui/startup/bad_flags_prompt.cc | ||
| 4 | @@ -90,7 +90,7 @@ static const char* kBadFlags[] = { | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Speech dispatcher is buggy, it can crash and it can make Chrome freeze. | ||
| 11 | // http://crbug.com/327295 | ||
| 12 | switches::kEnableSpeechDispatcher, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_startup_startup_browser_creator_cc b/www/chromium/patches/patch-chrome_browser_ui_startup_startup_browser_creator_cc new file mode 100644 index 0000000..a6c911d --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_startup_startup_browser_creator_cc | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | Index: chrome/browser/ui/startup/startup_browser_creator.cc | ||
| 2 | --- chrome/browser/ui/startup/startup_browser_creator.cc.orig | ||
| 3 | +++ chrome/browser/ui/startup/startup_browser_creator.cc | ||
| 4 | @@ -126,12 +126,12 @@ | ||
| 5 | #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) | ||
| 6 | #endif // BUILDFLAG(IS_WIN) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 10 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 11 | #include "chrome/browser/ui/startup/web_app_url_handling_startup_utils.h" | ||
| 12 | #endif | ||
| 13 | |||
| 14 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 15 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 16 | #include "chrome/browser/ui/startup/web_app_info_recorder_utils.h" | ||
| 17 | #endif | ||
| 18 | |||
| 19 | @@ -518,7 +518,7 @@ bool MaybeLaunchAppShortcutWindow(const base::CommandL | ||
| 20 | return false; | ||
| 21 | } | ||
| 22 | |||
| 23 | -#if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 24 | +#if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) | ||
| 25 | bool MaybeLaunchUrlHandlerWebAppFromCmd( | ||
| 26 | const base::CommandLine& command_line, | ||
| 27 | const base::FilePath& cur_dir, | ||
| 28 | @@ -989,7 +989,7 @@ bool StartupBrowserCreator::ProcessCmdLineImpl( | ||
| 29 | silent_launch = true; | ||
| 30 | } | ||
| 31 | |||
| 32 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 33 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 34 | // Writes open and installed web apps to the specified file without | ||
| 35 | // launching a new browser window or tab. | ||
| 36 | if (base::FeatureList::IsEnabled(features::kListWebAppsSwitch) && | ||
| 37 | @@ -1181,7 +1181,7 @@ bool StartupBrowserCreator::ProcessCmdLineImpl( | ||
| 38 | CHECK_EQ(profile_info.mode, StartupProfileMode::kBrowserWindow) | ||
| 39 | << "Failed launch with app: couldn't pick a profile"; | ||
| 40 | std::string app_id = command_line.GetSwitchValueASCII(switches::kAppId); | ||
| 41 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 42 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 43 | // If Chrome Apps are deprecated and |app_id| is a Chrome App, display the | ||
| 44 | // deprecation UI instead of launching the app. | ||
| 45 | if (apps::OpenDeprecatedApplicationPrompt(privacy_safe_profile, app_id)) | ||
| 46 | @@ -1220,7 +1220,7 @@ bool StartupBrowserCreator::ProcessCmdLineImpl( | ||
| 47 | web_app::startup::MaybeHandleWebAppLaunch( | ||
| 48 | command_line, cur_dir, privacy_safe_profile, is_first_run); | ||
| 49 | |||
| 50 | -#if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 51 | +#if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) | ||
| 52 | handled_as_app = handled_as_app || | ||
| 53 | // Give web apps a chance to handle a URL. | ||
| 54 | MaybeLaunchUrlHandlerWebAppFromCmd( | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_tab_helpers_cc b/www/chromium/patches/patch-chrome_browser_ui_tab_helpers_cc new file mode 100644 index 0000000..4a35375 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_tab_helpers_cc | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | Index: chrome/browser/ui/tab_helpers.cc | ||
| 2 | --- chrome/browser/ui/tab_helpers.cc.orig | ||
| 3 | +++ chrome/browser/ui/tab_helpers.cc | ||
| 4 | @@ -179,7 +179,7 @@ | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/ui/blocked_content/framebust_block_tab_helper.h" | ||
| 11 | #include "chrome/browser/ui/browser_finder.h" | ||
| 12 | #include "chrome/browser/ui/hats/hats_helper.h" | ||
| 13 | @@ -500,13 +500,13 @@ void TabHelpers::AttachTabHelpers(WebContents* web_con | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 19 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 20 | metrics::DesktopSessionDurationObserver::CreateForWebContents(web_contents); | ||
| 21 | #endif | ||
| 22 | |||
| 23 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 24 | - BUILDFLAG(IS_CHROMEOS) | ||
| 25 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 26 | if (base::FeatureList::IsEnabled( | ||
| 27 | features::kHappinessTrackingSurveysForDesktopDemo) || | ||
| 28 | base::FeatureList::IsEnabled(features::kTrustSafetySentimentSurvey) || | ||
| 29 | @@ -517,7 +517,7 @@ void TabHelpers::AttachTabHelpers(WebContents* web_con | ||
| 30 | #endif | ||
| 31 | |||
| 32 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 33 | - BUILDFLAG(IS_CHROMEOS) | ||
| 34 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 35 | SharedHighlightingPromo::CreateForWebContents(web_contents); | ||
| 36 | #endif | ||
| 37 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_task_manager_task_manager_columns_cc b/www/chromium/patches/patch-chrome_browser_ui_task_manager_task_manager_columns_cc new file mode 100644 index 0000000..f647aac --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_task_manager_task_manager_columns_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/task_manager/task_manager_columns.cc | ||
| 2 | --- chrome/browser/ui/task_manager/task_manager_columns.cc.orig | ||
| 3 | +++ chrome/browser/ui/task_manager/task_manager_columns.cc | ||
| 4 | @@ -94,7 +94,7 @@ const TableColumnData kColumns[] = { | ||
| 5 | base::size("100000") * kCharWidth, -1, true, false, false}, | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | {IDS_TASK_MANAGER_OPEN_FD_COUNT_COLUMN, ui::TableColumn::RIGHT, -1, 0, | ||
| 11 | base::size("999") * kCharWidth, -1, true, false, false}, | ||
| 12 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_task_manager_task_manager_table_model_cc b/www/chromium/patches/patch-chrome_browser_ui_task_manager_task_manager_table_model_cc new file mode 100644 index 0000000..3d319a4 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_task_manager_task_manager_table_model_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/ui/task_manager/task_manager_table_model.cc | ||
| 2 | --- chrome/browser/ui/task_manager/task_manager_table_model.cc.orig | ||
| 3 | +++ chrome/browser/ui/task_manager/task_manager_table_model.cc | ||
| 4 | @@ -451,7 +451,7 @@ std::u16string TaskManagerTableModel::GetText(int row, | ||
| 5 | ? stringifier_->backgrounded_string() | ||
| 6 | : stringifier_->foregrounded_string(); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | case IDS_TASK_MANAGER_OPEN_FD_COUNT_COLUMN: { | ||
| 11 | const int fd_count = observed_task_manager()->GetOpenFdCount(tasks_[row]); | ||
| 12 | return fd_count >= 0 ? base::FormatNumber(fd_count) | ||
| 13 | @@ -618,7 +618,7 @@ int TaskManagerTableModel::CompareValues(int row1, | ||
| 14 | return BooleanCompare(is_proc1_bg, is_proc2_bg); | ||
| 15 | } | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | case IDS_TASK_MANAGER_OPEN_FD_COUNT_COLUMN: { | ||
| 20 | const int proc1_fd_count = | ||
| 21 | observed_task_manager()->GetOpenFdCount(tasks_[row1]); | ||
| 22 | @@ -792,7 +792,7 @@ void TaskManagerTableModel::UpdateRefreshTypes(int col | ||
| 23 | type = REFRESH_TYPE_KEEPALIVE_COUNT; | ||
| 24 | break; | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | case IDS_TASK_MANAGER_OPEN_FD_COUNT_COLUMN: | ||
| 29 | type = REFRESH_TYPE_FD_COUNT; | ||
| 30 | break; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_accelerator_table_cc b/www/chromium/patches/patch-chrome_browser_ui_views_accelerator_table_cc new file mode 100644 index 0000000..fb0fb16 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_accelerator_table_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/ui/views/accelerator_table.cc | ||
| 2 | --- chrome/browser/ui/views/accelerator_table.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/accelerator_table.cc | ||
| 4 | @@ -62,7 +62,7 @@ const AcceleratorMapping kAcceleratorMap[] = { | ||
| 5 | {ui::VKEY_NUMPAD9, ui::EF_PLATFORM_ACCELERATOR, IDC_SELECT_LAST_TAB}, | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | {ui::VKEY_9, ui::EF_ALT_DOWN, IDC_SELECT_LAST_TAB}, | ||
| 11 | {ui::VKEY_NUMPAD9, ui::EF_ALT_DOWN, IDC_SELECT_LAST_TAB}, | ||
| 12 | {ui::VKEY_NEXT, ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN, IDC_MOVE_TAB_NEXT}, | ||
| 13 | @@ -94,7 +94,7 @@ const AcceleratorMapping kAcceleratorMap[] = { | ||
| 14 | {ui::VKEY_NUMPAD8, ui::EF_PLATFORM_ACCELERATOR, IDC_SELECT_TAB_7}, | ||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | {ui::VKEY_1, ui::EF_ALT_DOWN, IDC_SELECT_TAB_0}, | ||
| 20 | {ui::VKEY_NUMPAD1, ui::EF_ALT_DOWN, IDC_SELECT_TAB_0}, | ||
| 21 | {ui::VKEY_2, ui::EF_ALT_DOWN, IDC_SELECT_TAB_1}, | ||
| 22 | @@ -139,7 +139,7 @@ const AcceleratorMapping kAcceleratorMap[] = { | ||
| 23 | IDC_SHOW_AVATAR_MENU}, | ||
| 24 | |||
| 25 | // Platform-specific key maps. | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | {ui::VKEY_BROWSER_BACK, ui::EF_NONE, IDC_BACK}, | ||
| 29 | {ui::VKEY_BROWSER_FORWARD, ui::EF_NONE, IDC_FORWARD}, | ||
| 30 | {ui::VKEY_BROWSER_HOME, ui::EF_NONE, IDC_HOME}, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_apps_chrome_native_app_window_views_aura_cc b/www/chromium/patches/patch-chrome_browser_ui_views_apps_chrome_native_app_window_views_aura_cc new file mode 100644 index 0000000..e3a5990 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_apps_chrome_native_app_window_views_aura_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc | ||
| 2 | --- chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc | ||
| 4 | @@ -19,7 +19,7 @@ | ||
| 5 | #include "ui/gfx/image/image_skia.h" | ||
| 6 | #include "ui/views/widget/widget.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/shell_integration_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -56,7 +56,7 @@ void ChromeNativeAppWindowViewsAura::OnBeforeWidgetIni | ||
| 14 | const AppWindow::CreateParams& create_params, | ||
| 15 | views::Widget::InitParams* init_params, | ||
| 16 | views::Widget* widget) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | std::string app_name = | ||
| 20 | web_app::GenerateApplicationNameFromAppId(app_window()->extension_id()); | ||
| 21 | // Set up a custom WM_CLASS for app windows. This allows task switchers in | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_chrome_browser_main_extra_parts_views_cc b/www/chromium/patches/patch-chrome_browser_ui_views_chrome_browser_main_extra_parts_views_cc new file mode 100644 index 0000000..ba45a68 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_chrome_browser_main_extra_parts_views_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc | ||
| 2 | --- chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc | ||
| 4 | @@ -41,7 +41,7 @@ | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <sys/stat.h> | ||
| 11 | #include <sys/types.h> | ||
| 12 | #include <unistd.h> | ||
| 13 | @@ -136,7 +136,7 @@ void ChromeBrowserMainExtraPartsViews::PreProfileInit( | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | // On the Linux desktop, we want to prevent the user from logging in as root, | ||
| 20 | // so that we don't destroy the profile. Now that we have some minimal ui | ||
| 21 | // initialized, check to see if we're running as root and bail if we are. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_chrome_views_delegate_h b/www/chromium/patches/patch-chrome_browser_ui_views_chrome_views_delegate_h new file mode 100644 index 0000000..9f398c8 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_chrome_views_delegate_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/chrome_views_delegate.h | ||
| 2 | --- chrome/browser/ui/views/chrome_views_delegate.h.orig | ||
| 3 | +++ chrome/browser/ui/views/chrome_views_delegate.h | ||
| 4 | @@ -51,7 +51,7 @@ class ChromeViewsDelegate : public views::ViewsDelegat | ||
| 5 | base::OnceClosure callback) override; | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | gfx::ImageSkia* GetDefaultWindowIcon() const override; | ||
| 11 | bool WindowManagerProvidesTitleBar(bool maximized) override; | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_download_download_item_view_cc b/www/chromium/patches/patch-chrome_browser_ui_views_download_download_item_view_cc new file mode 100644 index 0000000..2669f5a --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_download_download_item_view_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/ui/views/download/download_item_view.cc | ||
| 2 | --- chrome/browser/ui/views/download/download_item_view.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/download/download_item_view.cc | ||
| 4 | @@ -195,7 +195,7 @@ bool UseNewWarnings() { | ||
| 5 | } | ||
| 6 | |||
| 7 | int GetFilenameStyle(const views::Label& label) { | ||
| 8 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) | ||
| 10 | if (UseNewWarnings()) | ||
| 11 | return STYLE_EMPHASIZED; | ||
| 12 | #endif | ||
| 13 | @@ -203,7 +203,7 @@ int GetFilenameStyle(const views::Label& label) { | ||
| 14 | } | ||
| 15 | |||
| 16 | int GetFilenameStyle(const views::StyledLabel& label) { | ||
| 17 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) | ||
| 19 | if (UseNewWarnings()) | ||
| 20 | return STYLE_EMPHASIZED; | ||
| 21 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_eye_dropper_eye_dropper_view_aura_cc b/www/chromium/patches/patch-chrome_browser_ui_views_eye_dropper_eye_dropper_view_aura_cc new file mode 100644 index 0000000..2c35ad7 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_eye_dropper_eye_dropper_view_aura_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/eye_dropper/eye_dropper_view_aura.cc | ||
| 2 | --- chrome/browser/ui/views/eye_dropper/eye_dropper_view_aura.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/eye_dropper/eye_dropper_view_aura.cc | ||
| 4 | @@ -81,7 +81,7 @@ void EyeDropperView::MoveViewToFront() { | ||
| 5 | } | ||
| 6 | |||
| 7 | void EyeDropperView::CaptureInputIfNeeded() { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // The eye dropper needs to capture input since it is not activated | ||
| 11 | // in order to avoid dismissing the color picker. | ||
| 12 | GetWidget()->GetNativeWindow()->SetCapture(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_eye_dropper_eye_dropper_view_cc b/www/chromium/patches/patch-chrome_browser_ui_views_eye_dropper_eye_dropper_view_cc new file mode 100644 index 0000000..e2fa327 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_eye_dropper_eye_dropper_view_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/eye_dropper/eye_dropper_view.cc | ||
| 2 | --- chrome/browser/ui/views/eye_dropper/eye_dropper_view.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/eye_dropper/eye_dropper_view.cc | ||
| 4 | @@ -155,7 +155,7 @@ EyeDropperView::EyeDropperView(content::RenderFrameHos | ||
| 5 | // EyeDropper/WidgetDelegate. | ||
| 6 | set_owned_by_client(); | ||
| 7 | SetPreferredSize(GetSize()); | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Use TYPE_MENU for Linux to ensure that the eye dropper view is displayed | ||
| 11 | // above the color picker. | ||
| 12 | views::Widget::InitParams params(views::Widget::InitParams::TYPE_MENU); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_first_run_dialog_cc b/www/chromium/patches/patch-chrome_browser_ui_views_first_run_dialog_cc new file mode 100644 index 0000000..ebba689 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_first_run_dialog_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/ui/views/first_run_dialog.cc | ||
| 2 | --- chrome/browser/ui/views/first_run_dialog.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/first_run_dialog.cc | ||
| 4 | @@ -38,7 +38,7 @@ | ||
| 5 | |||
| 6 | namespace { | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_MAC) | ||
| 9 | +#if !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 10 | void InitCrashReporterIfEnabled(bool enabled) { | ||
| 11 | if (!crash_reporter::IsCrashpadEnabled() && enabled) | ||
| 12 | breakpad::InitCrashReporter(std::string()); | ||
| 13 | @@ -122,7 +122,7 @@ bool FirstRunDialog::Accept() { | ||
| 14 | |||
| 15 | #if BUILDFLAG(IS_MAC) | ||
| 16 | ChangeMetricsReportingState(report_crashes_->GetChecked()); | ||
| 17 | -#else | ||
| 18 | +#elif !BUILDFLAG(IS_BSD) | ||
| 19 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 20 | metrics::structured::NeutrinoDevicesLog( | ||
| 21 | metrics::structured::NeutrinoDevicesLocation::kFirstRunDialog); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_desktop_window_tree_host_linux_cc b/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_desktop_window_tree_host_linux_cc new file mode 100644 index 0000000..dd73106 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_desktop_window_tree_host_linux_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/frame/browser_desktop_window_tree_host_linux.cc | ||
| 2 | --- chrome/browser/ui/views/frame/browser_desktop_window_tree_host_linux.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/frame/browser_desktop_window_tree_host_linux.cc | ||
| 4 | @@ -150,7 +150,7 @@ bool BrowserDesktopWindowTreeHostLinux::SupportsClient | ||
| 5 | } | ||
| 6 | |||
| 7 | void BrowserDesktopWindowTreeHostLinux::UpdateFrameHints() { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | auto* view = static_cast<BrowserFrameViewLinux*>( | ||
| 11 | native_frame_->browser_frame()->GetFrameView()); | ||
| 12 | auto* layout = view->layout(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_desktop_window_tree_host_linux_h b/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_desktop_window_tree_host_linux_h new file mode 100644 index 0000000..869f415 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_desktop_window_tree_host_linux_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/frame/browser_desktop_window_tree_host_linux.h | ||
| 2 | --- chrome/browser/ui/views/frame/browser_desktop_window_tree_host_linux.h.orig | ||
| 3 | +++ chrome/browser/ui/views/frame/browser_desktop_window_tree_host_linux.h | ||
| 4 | @@ -95,7 +95,7 @@ class BrowserDesktopWindowTreeHostLinux | ||
| 5 | // browser_desktop_window_tree_host_lacros.cc. | ||
| 6 | #if BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 7 | using DesktopBrowserFrameAuraPlatform = DesktopBrowserFrameLacros; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | using DesktopBrowserFrameAuraPlatform = DesktopBrowserFrameAuraLinux; | ||
| 11 | #else | ||
| 12 | #error Unknown platform | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_frame_cc b/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_frame_cc new file mode 100644 index 0000000..e439e72 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_frame_cc | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | Index: chrome/browser/ui/views/frame/browser_frame.cc | ||
| 2 | --- chrome/browser/ui/views/frame/browser_frame.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/frame/browser_frame.cc | ||
| 4 | @@ -49,11 +49,11 @@ | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/display/screen.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | -#if BUILDFLAG(IS_LINUX) | ||
| 14 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 15 | #include "ui/views/linux_ui/linux_ui.h" | ||
| 16 | #endif | ||
| 17 | |||
| 18 | @@ -62,7 +62,7 @@ namespace { | ||
| 19 | bool IsUsingGtkTheme(Profile* profile) { | ||
| 20 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 21 | // of lacros-chrome is complete. | ||
| 22 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 23 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 24 | return ThemeServiceFactory::GetForProfile(profile)->UsingSystemTheme(); | ||
| 25 | #else | ||
| 26 | return false; | ||
| 27 | @@ -268,7 +268,7 @@ void BrowserFrame::OnNativeWidgetWorkspaceChanged() { | ||
| 28 | IsVisibleOnAllWorkspaces()); | ||
| 29 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 30 | // of lacros-chrome is complete. | ||
| 31 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 32 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 33 | // If the window was sent to a different workspace, prioritize it if | ||
| 34 | // it was sent to the current workspace and deprioritize it | ||
| 35 | // otherwise. This is done by MoveBrowsersInWorkspaceToFront() | ||
| 36 | @@ -381,7 +381,7 @@ void BrowserFrame::SelectNativeTheme() { | ||
| 37 | return; | ||
| 38 | } | ||
| 39 | |||
| 40 | -#if BUILDFLAG(IS_LINUX) | ||
| 41 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 42 | const views::LinuxUI* linux_ui = views::LinuxUI::instance(); | ||
| 43 | // Ignore GTK+ for web apps with window-controls-overlay as the | ||
| 44 | // display_override so the web contents can blend with the overlay by using | ||
| 45 | @@ -400,7 +400,7 @@ bool BrowserFrame::RegenerateFrameOnThemeChange( | ||
| 46 | bool need_regenerate = false; | ||
| 47 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag | ||
| 48 | // switch of lacros-chrome is complete. | ||
| 49 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 50 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 51 | // GTK and user theme changes can both change frame buttons, so the frame | ||
| 52 | // always needs to be regenerated on Linux. | ||
| 53 | need_regenerate = true; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_non_client_frame_view_factory_views_cc b/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_non_client_frame_view_factory_views_cc new file mode 100644 index 0000000..91b0378 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_non_client_frame_view_factory_views_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_factory_views.cc | ||
| 2 | --- chrome/browser/ui/views/frame/browser_non_client_frame_view_factory_views.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/frame/browser_non_client_frame_view_factory_views.cc | ||
| 4 | @@ -15,7 +15,7 @@ | ||
| 5 | #include "chrome/browser/ui/views/frame/glass_browser_frame_view.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/ui/views/frame/browser_frame_view_layout_linux.h" | ||
| 11 | #include "chrome/browser/ui/views/frame/browser_frame_view_layout_linux_native.h" | ||
| 12 | #include "chrome/browser/ui/views/frame/browser_frame_view_linux.h" | ||
| 13 | @@ -33,7 +33,7 @@ namespace { | ||
| 14 | std::unique_ptr<OpaqueBrowserFrameView> CreateOpaqueBrowserFrameView( | ||
| 15 | BrowserFrame* frame, | ||
| 16 | BrowserView* browser_view) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | auto* linux_ui = views::LinuxUI::instance(); | ||
| 20 | auto* profile = browser_view->browser()->profile(); | ||
| 21 | auto* theme_service_factory = ThemeServiceFactory::GetForProfile(profile); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_view_cc b/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_view_cc new file mode 100644 index 0000000..0ce5c52 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_view_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/frame/browser_view.cc | ||
| 2 | --- chrome/browser/ui/views/frame/browser_view.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/frame/browser_view.cc | ||
| 4 | @@ -1825,7 +1825,7 @@ void BrowserView::TabDraggingStatusChanged(bool is_dra | ||
| 5 | // CrOS cleanup is done. | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | +#if !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 10 | contents_web_view_->SetFastResize(is_dragging); | ||
| 11 | if (!is_dragging) { | ||
| 12 | // When tab dragging is ended, we need to make sure the web contents get | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_cc b/www/chromium/patches/patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_cc new file mode 100644 index 0000000..214fa5f --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc | ||
| 2 | --- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/frame/opaque_browser_frame_view.cc | ||
| 4 | @@ -53,7 +53,7 @@ | ||
| 5 | #include "ui/views/window/vector_icons/vector_icons.h" | ||
| 6 | #include "ui/views/window/window_shape.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/views/controls/menu/menu_runner.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -541,7 +541,7 @@ OpaqueBrowserFrameView::FrameButtonStyle | ||
| 14 | OpaqueBrowserFrameView::GetFrameButtonStyle() const { | ||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | return FrameButtonStyle::kMdButton; | ||
| 20 | #else | ||
| 21 | return FrameButtonStyle::kImageButton; | ||
| 22 | @@ -751,7 +751,7 @@ gfx::Rect OpaqueBrowserFrameView::GetIconBounds() cons | ||
| 23 | } | ||
| 24 | |||
| 25 | void OpaqueBrowserFrameView::WindowIconPressed() { | ||
| 26 | -#if BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | // Chrome OS doesn't show the window icon, and Windows handles this on its own | ||
| 29 | // due to the hit test being HTSYSMENU. | ||
| 30 | menu_runner_ = std::make_unique<views::MenuRunner>( | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_h b/www/chromium/patches/patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_h new file mode 100644 index 0000000..2b77ddf --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.h | ||
| 2 | --- chrome/browser/ui/views/frame/opaque_browser_frame_view.h.orig | ||
| 3 | +++ chrome/browser/ui/views/frame/opaque_browser_frame_view.h | ||
| 4 | @@ -224,7 +224,7 @@ class OpaqueBrowserFrameView : public BrowserNonClient | ||
| 5 | // Background painter for the window frame. | ||
| 6 | std::unique_ptr<views::FrameBackground> frame_background_; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | std::unique_ptr<views::MenuRunner> menu_runner_; | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_frame_system_menu_model_builder_cc b/www/chromium/patches/patch-chrome_browser_ui_views_frame_system_menu_model_builder_cc new file mode 100644 index 0000000..1cdbe0d --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_frame_system_menu_model_builder_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/ui/views/frame/system_menu_model_builder.cc | ||
| 2 | --- chrome/browser/ui/views/frame/system_menu_model_builder.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/frame/system_menu_model_builder.cc | ||
| 4 | @@ -77,7 +77,7 @@ void SystemMenuModelBuilder::BuildSystemMenuForBrowser | ||
| 5 | ui::SimpleMenuModel* model) { | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 10 | model->AddItemWithStringId(IDC_MINIMIZE_WINDOW, IDS_MINIMIZE_WINDOW_MENU); | ||
| 11 | model->AddItemWithStringId(IDC_MAXIMIZE_WINDOW, IDS_MAXIMIZE_WINDOW_MENU); | ||
| 12 | model->AddItemWithStringId(IDC_RESTORE_WINDOW, IDS_RESTORE_WINDOW_MENU); | ||
| 13 | @@ -93,7 +93,7 @@ void SystemMenuModelBuilder::BuildSystemMenuForBrowser | ||
| 14 | } | ||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 19 | model->AddSeparator(ui::NORMAL_SEPARATOR); | ||
| 20 | bool supports_server_side_decorations = true; | ||
| 21 | #if defined(USE_OZONE) && \ | ||
| 22 | @@ -148,7 +148,7 @@ void SystemMenuModelBuilder::BuildSystemMenuForAppOrPo | ||
| 23 | } | ||
| 24 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 25 | // of lacros-chrome is complete. | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 28 | model->AddSeparator(ui::NORMAL_SEPARATOR); | ||
| 29 | model->AddItemWithStringId(IDC_CLOSE_WINDOW, IDS_CLOSE); | ||
| 30 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_frame_system_menu_model_delegate_cc b/www/chromium/patches/patch-chrome_browser_ui_views_frame_system_menu_model_delegate_cc new file mode 100644 index 0000000..2166543 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_frame_system_menu_model_delegate_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/ui/views/frame/system_menu_model_delegate.cc | ||
| 2 | --- chrome/browser/ui/views/frame/system_menu_model_delegate.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/frame/system_menu_model_delegate.cc | ||
| 4 | @@ -23,7 +23,7 @@ | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/common/pref_names.h" | ||
| 11 | #include "components/prefs/pref_service.h" | ||
| 12 | #endif | ||
| 13 | @@ -40,7 +40,7 @@ SystemMenuModelDelegate::~SystemMenuModelDelegate() {} | ||
| 14 | bool SystemMenuModelDelegate::IsCommandIdChecked(int command_id) const { | ||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | if (command_id == IDC_USE_SYSTEM_TITLE_BAR) { | ||
| 20 | PrefService* prefs = browser_->profile()->GetPrefs(); | ||
| 21 | return !prefs->GetBoolean(prefs::kUseCustomChromeFrame); | ||
| 22 | @@ -62,7 +62,7 @@ bool SystemMenuModelDelegate::IsCommandIdEnabled(int c | ||
| 23 | bool SystemMenuModelDelegate::IsCommandIdVisible(int command_id) const { | ||
| 24 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 25 | // of lacros-chrome is complete. | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 28 | bool is_maximized = browser_->window()->IsMaximized(); | ||
| 29 | switch (command_id) { | ||
| 30 | case IDC_MAXIMIZE_WINDOW: | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_hung_renderer_view_cc b/www/chromium/patches/patch-chrome_browser_ui_views_hung_renderer_view_cc new file mode 100644 index 0000000..5ef65a5 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_hung_renderer_view_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/hung_renderer_view.cc | ||
| 2 | --- chrome/browser/ui/views/hung_renderer_view.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/hung_renderer_view.cc | ||
| 4 | @@ -403,7 +403,7 @@ void HungRendererDialogView::ForceCrashHungRenderer() | ||
| 5 | content::RenderProcessHost* rph = | ||
| 6 | hung_pages_table_model_->GetRenderWidgetHost()->GetProcess(); | ||
| 7 | if (rph) { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // A generic |CrashDumpHungChildProcess()| is not implemented for Linux. | ||
| 11 | // Instead we send an explicit IPC to crash on the renderer's IO thread. | ||
| 12 | rph->ForceCrash(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_profiles_profile_menu_view_base_cc b/www/chromium/patches/patch-chrome_browser_ui_views_profiles_profile_menu_view_base_cc new file mode 100644 index 0000000..fc7c56c --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_profiles_profile_menu_view_base_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/profiles/profile_menu_view_base.cc | ||
| 2 | --- chrome/browser/ui/views/profiles/profile_menu_view_base.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/profiles/profile_menu_view_base.cc | ||
| 4 | @@ -611,7 +611,7 @@ void ProfileMenuViewBase::SetProfileIdentityInfo( | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 7 | // complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // crbug.com/1161166: Orca does not read the accessible window title of the | ||
| 11 | // bubble, so we duplicate it in the top-level menu item. To be revisited | ||
| 12 | // after considering other options, including fixes on the AT side. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_profiles_signin_view_controller_delegate_views_cc b/www/chromium/patches/patch-chrome_browser_ui_views_profiles_signin_view_controller_delegate_views_cc new file mode 100644 index 0000000..99cd263 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_profiles_signin_view_controller_delegate_views_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc | ||
| 2 | --- chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc | ||
| 4 | @@ -137,7 +137,7 @@ SigninViewControllerDelegateViews::CreateProfileCustom | ||
| 5 | #endif // BUILDFLAG(ENABLE_DICE_SUPPORT) | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // static | ||
| 11 | std::unique_ptr<views::WebView> | ||
| 12 | SigninViewControllerDelegateViews::CreateEnterpriseConfirmationWebView( | ||
| 13 | @@ -413,7 +413,7 @@ SigninViewControllerDelegate::CreateProfileCustomizati | ||
| 14 | #endif // BUILDFLAG(ENABLE_DICE_SUPPORT) | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | + BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | // static | ||
| 20 | SigninViewControllerDelegate* | ||
| 21 | SigninViewControllerDelegate::CreateEnterpriseConfirmationDelegate( | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_profiles_signin_view_controller_delegate_views_h b/www/chromium/patches/patch-chrome_browser_ui_views_profiles_signin_view_controller_delegate_views_h new file mode 100644 index 0000000..6d04deb --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_profiles_signin_view_controller_delegate_views_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.h | ||
| 2 | --- chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.h.orig | ||
| 3 | +++ chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.h | ||
| 4 | @@ -71,7 +71,7 @@ class SigninViewControllerDelegateViews | ||
| 5 | #endif // BUILDFLAG(ENABLE_DICE_SUPPORT) | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | static std::unique_ptr<views::WebView> CreateEnterpriseConfirmationWebView( | ||
| 11 | Browser* browser, | ||
| 12 | const AccountInfo& account_info, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_tabs_new_tab_button_cc b/www/chromium/patches/patch-chrome_browser_ui_views_tabs_new_tab_button_cc new file mode 100644 index 0000000..dea0208 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_tabs_new_tab_button_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/tabs/new_tab_button.cc | ||
| 2 | --- chrome/browser/ui/views/tabs/new_tab_button.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/tabs/new_tab_button.cc | ||
| 4 | @@ -59,7 +59,7 @@ NewTabButton::NewTabButton(TabStrip* tab_strip, Presse | ||
| 5 | SetAnimateOnStateChange(true); | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | SetTriggerableEventFlags(GetTriggerableEventFlags() | | ||
| 11 | ui::EF_MIDDLE_MOUSE_BUTTON); | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_tabs_tab_cc b/www/chromium/patches/patch-chrome_browser_ui_views_tabs_tab_cc new file mode 100644 index 0000000..93b300d --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_tabs_tab_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/tabs/tab.cc | ||
| 2 | --- chrome/browser/ui/views/tabs/tab.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/tabs/tab.cc | ||
| 4 | @@ -580,7 +580,7 @@ void Tab::MaybeUpdateHoverStatus(const ui::MouseEvent& | ||
| 5 | if (mouse_hovered_ || !GetWidget()->IsMouseEventsEnabled()) | ||
| 6 | return; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Move the hit test area for hovering up so that it is not overlapped by tab | ||
| 11 | // hover cards when they are shown. | ||
| 12 | // TODO(crbug.com/978134): Once Linux/CrOS widget transparency is solved, | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_tabs_tab_drag_controller_cc b/www/chromium/patches/patch-chrome_browser_ui_views_tabs_tab_drag_controller_cc new file mode 100644 index 0000000..78bb062 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_tabs_tab_drag_controller_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/ui/views/tabs/tab_drag_controller.cc | ||
| 2 | --- chrome/browser/ui/views/tabs/tab_drag_controller.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/tabs/tab_drag_controller.cc | ||
| 4 | @@ -480,7 +480,7 @@ void TabDragController::Init(TabDragContext* source_co | ||
| 5 | // synchronous on desktop Linux, so use that. | ||
| 6 | // - Chrome OS | ||
| 7 | // Releasing capture on Ash cancels gestures so avoid it. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | can_release_capture_ = false; | ||
| 11 | #endif | ||
| 12 | start_point_in_screen_ = gfx::Point(source_view_offset, mouse_offset.y()); | ||
| 13 | @@ -1021,7 +1021,7 @@ TabDragController::DragBrowserToNewTabStrip(TabDragCon | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 18 | +#if !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 19 | // EndMoveLoop is going to snap the window back to its original location. | ||
| 20 | // Hide it so users don't see this. Hiding a window in Linux aura causes | ||
| 21 | // it to lose capture so skip it. | ||
| 22 | @@ -2350,7 +2350,7 @@ TabDragController::Liveness TabDragController::GetLoca | ||
| 23 | } | ||
| 24 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 25 | // of lacros-chrome is complete. | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 28 | // Exclude windows which are pending deletion via Browser::TabStripEmpty(). | ||
| 29 | // These windows can be returned in the Linux Aura port because the browser | ||
| 30 | // window which was used for dragging is not hidden once all of its tabs are | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_views_tabs_tab_hover_card_controller_cc b/www/chromium/patches/patch-chrome_browser_ui_views_tabs_tab_hover_card_controller_cc new file mode 100644 index 0000000..1d49cc0 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_views_tabs_tab_hover_card_controller_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/views/tabs/tab_hover_card_controller.cc | ||
| 2 | --- chrome/browser/ui/views/tabs/tab_hover_card_controller.cc.orig | ||
| 3 | +++ chrome/browser/ui/views/tabs/tab_hover_card_controller.cc | ||
| 4 | @@ -36,7 +36,7 @@ namespace { | ||
| 5 | // Fetches the Omnibox drop-down widget, or returns null if the drop-down is | ||
| 6 | // not visible. | ||
| 7 | void FixWidgetStackOrder(views::Widget* widget, const Browser* browser) { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Ensure the hover card Widget assumes the highest z-order to avoid occlusion | ||
| 11 | // by other secondary UI Widgets (such as the omnibox Widget, see | ||
| 12 | // crbug.com/1226536). | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_webui_about_ui_cc b/www/chromium/patches/patch-chrome_browser_ui_webui_about_ui_cc new file mode 100644 index 0000000..9df2d0b --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_webui_about_ui_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/ui/webui/about_ui.cc | ||
| 2 | --- chrome/browser/ui/webui/about_ui.cc.orig | ||
| 3 | +++ chrome/browser/ui/webui/about_ui.cc | ||
| 4 | @@ -603,7 +603,7 @@ std::string ChromeURLs() { | ||
| 5 | return html; | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | std::string AboutLinuxProxyConfig() { | ||
| 11 | std::string data; | ||
| 12 | AppendHeader(&data, | ||
| 13 | @@ -661,7 +661,7 @@ void AboutUIHTMLSource::StartDataRequest( | ||
| 14 | response = | ||
| 15 | ui::ResourceBundle::GetSharedInstance().LoadDataResourceString(idr); | ||
| 16 | } | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_OPENBSD) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | } else if (source_name_ == chrome::kChromeUILinuxProxyConfigHost) { | ||
| 20 | response = AboutLinuxProxyConfig(); | ||
| 21 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_webui_chrome_web_ui_controller_factory_cc b/www/chromium/patches/patch-chrome_browser_ui_webui_chrome_web_ui_controller_factory_cc new file mode 100644 index 0000000..c238074 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_webui_chrome_web_ui_controller_factory_cc | |||
| @@ -0,0 +1,99 @@ | |||
| 1 | Index: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc | ||
| 2 | --- chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc.orig | ||
| 3 | +++ chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc | ||
| 4 | @@ -296,7 +296,7 @@ | ||
| 5 | #include "chrome/browser/ui/webui/app_launcher_page_ui.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/ui/webui/webui_js_error/webui_js_error_ui.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -320,22 +320,22 @@ | ||
| 14 | #endif | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_CHROMEOS) | ||
| 18 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | #include "chrome/browser/ui/webui/discards/discards_ui.h" | ||
| 20 | #endif | ||
| 21 | |||
| 22 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 23 | - BUILDFLAG(IS_ANDROID) | ||
| 24 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 25 | #include "chrome/browser/ui/webui/sandbox/sandbox_internals_ui.h" | ||
| 26 | #endif | ||
| 27 | |||
| 28 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 29 | - BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 30 | + BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) | ||
| 31 | #include "chrome/browser/ui/webui/connectors_internals/connectors_internals_ui.h" | ||
| 32 | #endif | ||
| 33 | |||
| 34 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 35 | - BUILDFLAG(IS_FUCHSIA) | ||
| 36 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 37 | #include "chrome/browser/ui/webui/app_settings/web_app_settings_ui.h" | ||
| 38 | #endif | ||
| 39 | |||
| 40 | @@ -661,7 +661,7 @@ bool IsAboutUI(const GURL& url) { | ||
| 41 | #if !BUILDFLAG(IS_ANDROID) | ||
| 42 | || url.host_piece() == chrome::kChromeUITermsHost | ||
| 43 | #endif | ||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_OPENBSD) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | || url.host_piece() == chrome::kChromeUILinuxProxyConfigHost | ||
| 47 | #endif | ||
| 48 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 49 | @@ -1073,7 +1073,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we | ||
| 50 | return &NewWebUI<ash::SampleSystemWebAppUI>; | ||
| 51 | #endif // !defined(OFFICIAL_BUILD) | ||
| 52 | #endif // BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 53 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 54 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 55 | if (url.host_piece() == chrome::kChromeUIWebUIJsErrorHost) | ||
| 56 | return &NewWebUI<WebUIJsErrorUI>; | ||
| 57 | #endif | ||
| 58 | @@ -1131,7 +1131,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we | ||
| 59 | if (url.host_piece() == chrome::kChromeUINaClHost) | ||
| 60 | return &NewWebUI<NaClUI>; | ||
| 61 | #endif | ||
| 62 | -#if ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ | ||
| 63 | +#if ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && \ | ||
| 64 | defined(TOOLKIT_VIEWS)) || \ | ||
| 65 | defined(USE_AURA) | ||
| 66 | if (url.host_piece() == chrome::kChromeUITabModalConfirmDialogHost) | ||
| 67 | @@ -1187,27 +1187,27 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we | ||
| 68 | } | ||
| 69 | #endif | ||
| 70 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 71 | - BUILDFLAG(IS_ANDROID) | ||
| 72 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 73 | if (url.host_piece() == chrome::kChromeUISandboxHost) { | ||
| 74 | return &NewWebUI<SandboxInternalsUI>; | ||
| 75 | } | ||
| 76 | #endif | ||
| 77 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 78 | - BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 79 | + BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) | ||
| 80 | if (url.host_piece() == chrome::kChromeUIConnectorsInternalsHost) | ||
| 81 | return &NewWebUI<enterprise_connectors::ConnectorsInternalsUI>; | ||
| 82 | #endif | ||
| 83 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 84 | - BUILDFLAG(IS_CHROMEOS) | ||
| 85 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 86 | if (url.host_piece() == chrome::kChromeUIDiscardsHost) | ||
| 87 | return &NewWebUI<DiscardsUI>; | ||
| 88 | #endif | ||
| 89 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 90 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 91 | if (url.host_piece() == chrome::kChromeUIBrowserSwitchHost) | ||
| 92 | return &NewWebUI<BrowserSwitchUI>; | ||
| 93 | #endif | ||
| 94 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 95 | - BUILDFLAG(IS_FUCHSIA) | ||
| 96 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 97 | if (base::FeatureList::IsEnabled(features::kDesktopPWAsWebAppSettingsPage) && | ||
| 98 | url.host_piece() == chrome::kChromeUIWebAppSettingsHost) { | ||
| 99 | return &NewWebUI<WebAppSettingsUI>; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_webui_connectors_internals_zero_trust_utils_cc b/www/chromium/patches/patch-chrome_browser_ui_webui_connectors_internals_zero_trust_utils_cc new file mode 100644 index 0000000..aaaf02d --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_webui_connectors_internals_zero_trust_utils_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/ui/webui/connectors_internals/zero_trust_utils.cc | ||
| 2 | --- chrome/browser/ui/webui/connectors_internals/zero_trust_utils.cc.orig | ||
| 3 | +++ chrome/browser/ui/webui/connectors_internals/zero_trust_utils.cc | ||
| 4 | @@ -9,7 +9,7 @@ | ||
| 5 | #include "base/strings/string_util.h" | ||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/browser_process.h" | ||
| 11 | #include "chrome/browser/policy/chrome_browser_policy_connector.h" | ||
| 12 | #include "components/enterprise/browser/controller/chrome_browser_cloud_management_controller.h" | ||
| 13 | @@ -66,7 +66,7 @@ void TrySetSignal(base::flat_map<std::string, std::str | ||
| 14 | std::vector<base::StringPiece>(values.begin(), values.end()), ", "); | ||
| 15 | } | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | |||
| 20 | connectors_internals::mojom::KeyTrustLevel ParseTrustLevel( | ||
| 21 | BPKUR::KeyTrustLevel trust_level) { | ||
| 22 | @@ -171,7 +171,7 @@ base::flat_map<std::string, std::string> SignalsToMap( | ||
| 23 | } | ||
| 24 | |||
| 25 | connectors_internals::mojom::KeyInfoPtr GetKeyInfo() { | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | auto* key_manager = g_browser_process->browser_policy_connector() | ||
| 29 | ->chrome_browser_cloud_management_controller() | ||
| 30 | ->GetDeviceTrustKeyManager(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_webui_ntp_app_launcher_handler_cc b/www/chromium/patches/patch-chrome_browser_ui_webui_ntp_app_launcher_handler_cc new file mode 100644 index 0000000..b00299c --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_webui_ntp_app_launcher_handler_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/ui/webui/ntp/app_launcher_handler.cc | ||
| 2 | --- chrome/browser/ui/webui/ntp/app_launcher_handler.cc.orig | ||
| 3 | +++ chrome/browser/ui/webui/ntp/app_launcher_handler.cc | ||
| 4 | @@ -313,7 +313,7 @@ void AppLauncherHandler::CreateExtensionInfo(const Ext | ||
| 5 | base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode)); | ||
| 6 | |||
| 7 | bool is_deprecated_app = false; | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | is_deprecated_app = extensions::IsExtensionUnsupportedDeprecatedApp( | ||
| 11 | extension_service_->GetBrowserContext(), extension->id()); | ||
| 12 | #endif | ||
| 13 | @@ -756,7 +756,7 @@ void AppLauncherHandler::HandleLaunchApp(const base::L | ||
| 14 | |||
| 15 | Profile* profile = extension_service_->profile(); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | if (extensions::IsExtensionUnsupportedDeprecatedApp(profile, extension_id)) { | ||
| 20 | // TODO(crbug.com/1225779): Show the deprecated apps dialog. | ||
| 21 | return; | ||
| 22 | @@ -1348,7 +1348,7 @@ void AppLauncherHandler::InstallOsHooks(const web_app: | ||
| 23 | options.os_hooks[web_app::OsHookType::kUninstallationViaOsSettings] = | ||
| 24 | web_app->CanUserUninstallWebApp(); | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 27 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 28 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 29 | options.os_hooks[web_app::OsHookType::kUrlHandlers] = true; | ||
| 30 | #else | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_webui_settings_appearance_handler_cc b/www/chromium/patches/patch-chrome_browser_ui_webui_settings_appearance_handler_cc new file mode 100644 index 0000000..f39a391 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_webui_settings_appearance_handler_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/ui/webui/settings/appearance_handler.cc | ||
| 2 | --- chrome/browser/ui/webui/settings/appearance_handler.cc.orig | ||
| 3 | +++ chrome/browser/ui/webui/settings/appearance_handler.cc | ||
| 4 | @@ -31,7 +31,7 @@ void AppearanceHandler::RegisterMessages() { | ||
| 5 | base::Unretained(this))); | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) | ||
| 10 | web_ui()->RegisterMessageCallback( | ||
| 11 | "useSystemTheme", | ||
| 12 | base::BindRepeating(&AppearanceHandler::HandleUseSystemTheme, | ||
| 13 | @@ -45,7 +45,7 @@ void AppearanceHandler::HandleUseDefaultTheme(base::Va | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) | ||
| 19 | void AppearanceHandler::HandleUseSystemTheme(base::Value::ConstListView args) { | ||
| 20 | if (profile_->IsChild()) | ||
| 21 | NOTREACHED(); | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_webui_settings_appearance_handler_h b/www/chromium/patches/patch-chrome_browser_ui_webui_settings_appearance_handler_h new file mode 100644 index 0000000..c30ee11 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_webui_settings_appearance_handler_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/webui/settings/appearance_handler.h | ||
| 2 | --- chrome/browser/ui/webui/settings/appearance_handler.h.orig | ||
| 3 | +++ chrome/browser/ui/webui/settings/appearance_handler.h | ||
| 4 | @@ -40,7 +40,7 @@ class AppearanceHandler : public SettingsPageUIHandler | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Changes the UI theme of the browser to the system (GTK+) theme. | ||
| 11 | void HandleUseSystemTheme(base::Value::ConstListView args); | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_webui_settings_settings_localized_strings_provider_cc b/www/chromium/patches/patch-chrome_browser_ui_webui_settings_settings_localized_strings_provider_cc new file mode 100644 index 0000000..bfcbdf1 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_webui_settings_settings_localized_strings_provider_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc | ||
| 2 | --- chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc.orig | ||
| 3 | +++ chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc | ||
| 4 | @@ -118,7 +118,7 @@ | ||
| 5 | #include "chrome/browser/ui/webui/settings/chromeos/constants/routes.mojom.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 10 | #include "ui/display/screen.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -138,7 +138,7 @@ | ||
| 14 | #include "chrome/browser/ui/webui/certificate_manager_localized_strings_provider.h" | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | #include "ui/ozone/public/ozone_platform.h" | ||
| 20 | #endif | ||
| 21 | |||
| 22 | @@ -371,7 +371,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht | ||
| 23 | {"huge", IDS_SETTINGS_HUGE_FONT_SIZE}, | ||
| 24 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 25 | // of lacros-chrome is complete. | ||
| 26 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 27 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 28 | {"systemTheme", IDS_SETTINGS_SYSTEM_THEME}, | ||
| 29 | {"useSystemTheme", IDS_SETTINGS_USE_SYSTEM_THEME}, | ||
| 30 | {"classicTheme", IDS_SETTINGS_CLASSIC_THEME}, | ||
| 31 | @@ -379,7 +379,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht | ||
| 32 | #else | ||
| 33 | {"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME}, | ||
| 34 | #endif | ||
| 35 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 36 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 37 | {"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS}, | ||
| 38 | #endif | ||
| 39 | #if BUILDFLAG(IS_MAC) | ||
| 40 | @@ -400,7 +400,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht | ||
| 41 | |||
| 42 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 43 | // of lacros-chrome is complete. | ||
| 44 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 45 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 46 | bool show_custom_chrome_frame = ui::OzonePlatform::GetInstance() | ||
| 47 | ->GetPlatformRuntimeProperties() | ||
| 48 | .supports_server_side_window_decorations; | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_webui_settings_settings_ui_cc b/www/chromium/patches/patch-chrome_browser_ui_webui_settings_settings_ui_cc new file mode 100644 index 0000000..3a93ca5 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_webui_settings_settings_ui_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/ui/webui/settings/settings_ui.cc | ||
| 2 | --- chrome/browser/ui/webui/settings/settings_ui.cc.orig | ||
| 3 | +++ chrome/browser/ui/webui/settings/settings_ui.cc | ||
| 4 | @@ -140,7 +140,7 @@ | ||
| 5 | #include "chrome/browser/ui/webui/settings/native_certificates_handler.h" | ||
| 6 | #endif // BUILDFLAG(USE_NSS_CERTS) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 10 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 11 | #include "chrome/browser/ui/webui/settings/url_handlers_handler.h" | ||
| 12 | #include "chrome/browser/web_applications/web_app_provider.h" | ||
| 13 | @@ -243,7 +243,7 @@ SettingsUI::SettingsUI(content::WebUI* web_ui) | ||
| 14 | AddSettingsPageUIHandler(std::make_unique<ChromeCleanupHandler>(profile)); | ||
| 15 | #endif // BUILDFLAG(IS_WIN) | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 19 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 20 | if (web_app::WebAppProvider::GetForWebApps(profile) != nullptr) { | ||
| 21 | AddSettingsPageUIHandler(std::make_unique<UrlHandlersHandler>( | ||
diff --git a/www/chromium/patches/patch-chrome_browser_ui_window_sizer_window_sizer_cc b/www/chromium/patches/patch-chrome_browser_ui_window_sizer_window_sizer_cc new file mode 100644 index 0000000..5661ce7 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_ui_window_sizer_window_sizer_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/ui/window_sizer/window_sizer.cc | ||
| 2 | --- chrome/browser/ui/window_sizer/window_sizer.cc.orig | ||
| 3 | +++ chrome/browser/ui/window_sizer/window_sizer.cc | ||
| 4 | @@ -173,7 +173,7 @@ void WindowSizer::GetBrowserWindowBoundsAndShowState( | ||
| 5 | browser, window_bounds, show_state); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_LINUX) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Linux has its own implementation, see WindowSizerLinux. | ||
| 11 | // static | ||
| 12 | void WindowSizer::GetBrowserWindowBoundsAndShowState( | ||
diff --git a/www/chromium/patches/patch-chrome_browser_web_applications_extension_status_utils_h b/www/chromium/patches/patch-chrome_browser_web_applications_extension_status_utils_h new file mode 100644 index 0000000..be4ae5d --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_web_applications_extension_status_utils_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/web_applications/extension_status_utils.h | ||
| 2 | --- chrome/browser/web_applications/extension_status_utils.h.orig | ||
| 3 | +++ chrome/browser/web_applications/extension_status_utils.h | ||
| 4 | @@ -42,7 +42,7 @@ bool IsExtensionDefaultInstalled(content::BrowserConte | ||
| 5 | bool IsExternalExtensionUninstalled(content::BrowserContext* context, | ||
| 6 | const std::string& extension_id); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Returns whether |extension_id| is a Chrome App and should be blocked by the | ||
| 11 | // Chrome Apps Deprecation. Policy installed Chrome Apps are still allowed, and | ||
| 12 | // all apps are allowed if the deprecation feature flag is not enabled. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_web_applications_extensions_extension_status_utils_cc b/www/chromium/patches/patch-chrome_browser_web_applications_extensions_extension_status_utils_cc new file mode 100644 index 0000000..a747928 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_web_applications_extensions_extension_status_utils_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/web_applications/extensions/extension_status_utils.cc | ||
| 2 | --- chrome/browser/web_applications/extensions/extension_status_utils.cc.orig | ||
| 3 | +++ chrome/browser/web_applications/extensions/extension_status_utils.cc | ||
| 4 | @@ -87,7 +87,7 @@ bool IsExternalExtensionUninstalled(content::BrowserCo | ||
| 5 | return prefs && prefs->IsExternalExtensionUninstalled(extension_id); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | bool IsExtensionUnsupportedDeprecatedApp(content::BrowserContext* context, | ||
| 11 | const std::string& extension_id) { | ||
| 12 | if (!base::FeatureList::IsEnabled(features::kChromeAppsDeprecation)) | ||
diff --git a/www/chromium/patches/patch-chrome_browser_web_applications_os_integration_web_app_file_handler_registration_h b/www/chromium/patches/patch-chrome_browser_web_applications_os_integration_web_app_file_handler_registration_h new file mode 100644 index 0000000..537fe55 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_web_applications_os_integration_web_app_file_handler_registration_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/web_applications/os_integration/web_app_file_handler_registration.h | ||
| 2 | --- chrome/browser/web_applications/os_integration/web_app_file_handler_registration.h.orig | ||
| 3 | +++ chrome/browser/web_applications/os_integration/web_app_file_handler_registration.h | ||
| 4 | @@ -44,7 +44,7 @@ void UnregisterFileHandlersWithOs(const AppId& app_id, | ||
| 5 | Profile* profile, | ||
| 6 | ResultCallback callback); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Exposed for testing purposes. Register the set of | ||
| 11 | // MIME-type-to-file-extensions mappings corresponding to |file_handlers|. File | ||
| 12 | // I/O and a a callout to the Linux shell are performed asynchronously. | ||
diff --git a/www/chromium/patches/patch-chrome_browser_web_applications_os_integration_web_app_shortcut_cc b/www/chromium/patches/patch-chrome_browser_web_applications_os_integration_web_app_shortcut_cc new file mode 100644 index 0000000..7bb4303 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_web_applications_os_integration_web_app_shortcut_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: chrome/browser/web_applications/os_integration/web_app_shortcut.cc | ||
| 2 | --- chrome/browser/web_applications/os_integration/web_app_shortcut.cc.orig | ||
| 3 | +++ chrome/browser/web_applications/os_integration/web_app_shortcut.cc | ||
| 4 | @@ -43,7 +43,7 @@ namespace { | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_MAC) | ||
| 7 | const int kDesiredIconSizesForShortcut[] = {16, 32, 128, 256, 512}; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Linux supports icons of any size. FreeDesktop Icon Theme Specification states | ||
| 11 | // that "Minimally you should install a 48x48 icon in the hicolor theme." | ||
| 12 | const int kDesiredIconSizesForShortcut[] = {16, 32, 48, 128, 256, 512}; | ||
| 13 | @@ -133,7 +133,7 @@ ScopedShortcutOverrideForTesting::~ScopedShortcutOverr | ||
| 14 | } | ||
| 15 | } | ||
| 16 | } | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | directories = {&desktop}; | ||
| 20 | #endif | ||
| 21 | for (base::ScopedTempDir* dir : directories) { | ||
| 22 | @@ -177,7 +177,7 @@ std::unique_ptr<ScopedShortcutOverrideForTesting> Over | ||
| 23 | scoped_override->chrome_apps_folder.CreateUniqueTempDirUnderPath( | ||
| 24 | base_path); | ||
| 25 | DCHECK(success); | ||
| 26 | -#elif BUILDFLAG(IS_LINUX) | ||
| 27 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | bool success = | ||
| 29 | scoped_override->desktop.CreateUniqueTempDirUnderPath(base_path); | ||
| 30 | DCHECK(success); | ||
| 31 | @@ -195,7 +195,7 @@ std::unique_ptr<ScopedShortcutOverrideForTesting> Over | ||
| 32 | #elif BUILDFLAG(IS_MAC) | ||
| 33 | bool success = scoped_override->chrome_apps_folder.CreateUniqueTempDir(); | ||
| 34 | DCHECK(success); | ||
| 35 | -#elif BUILDFLAG(IS_LINUX) | ||
| 36 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 37 | bool success = scoped_override->desktop.CreateUniqueTempDir(); | ||
| 38 | DCHECK(success); | ||
| 39 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_web_applications_os_integration_web_app_shortcut_h b/www/chromium/patches/patch-chrome_browser_web_applications_os_integration_web_app_shortcut_h new file mode 100644 index 0000000..0b03aee --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_web_applications_os_integration_web_app_shortcut_h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/browser/web_applications/os_integration/web_app_shortcut.h | ||
| 2 | --- chrome/browser/web_applications/os_integration/web_app_shortcut.h.orig | ||
| 3 | +++ chrome/browser/web_applications/os_integration/web_app_shortcut.h | ||
| 4 | @@ -19,7 +19,7 @@ | ||
| 5 | #include "ui/gfx/image/image_family.h" | ||
| 6 | #include "url/gurl.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/browser/web_applications/os_integration/web_app_shortcut_linux.h" | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) | ||
| 12 | |||
| 13 | @@ -47,7 +47,7 @@ struct ScopedShortcutOverrideForTesting { | ||
| 14 | base::ScopedTempDir startup; | ||
| 15 | #elif BUILDFLAG(IS_MAC) | ||
| 16 | base::ScopedTempDir chrome_apps_folder; | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | base::ScopedTempDir desktop; | ||
| 20 | #endif | ||
| 21 | }; | ||
| 22 | @@ -89,7 +89,7 @@ struct ShortcutInfo { | ||
| 23 | std::set<std::string> file_handler_extensions; | ||
| 24 | std::set<std::string> file_handler_mime_types; | ||
| 25 | std::set<std::string> protocol_handlers; | ||
| 26 | -#if BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | std::set<DesktopActionInfo> actions; | ||
| 29 | #endif // BUILDFLAG(IS_LINUX) | ||
| 30 | |||
diff --git a/www/chromium/patches/patch-chrome_browser_web_applications_os_integration_web_app_shortcut_manager_cc b/www/chromium/patches/patch-chrome_browser_web_applications_os_integration_web_app_shortcut_manager_cc new file mode 100644 index 0000000..731e4b3 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_web_applications_os_integration_web_app_shortcut_manager_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/browser/web_applications/os_integration/web_app_shortcut_manager.cc | ||
| 2 | --- chrome/browser/web_applications/os_integration/web_app_shortcut_manager.cc.orig | ||
| 3 | +++ chrome/browser/web_applications/os_integration/web_app_shortcut_manager.cc | ||
| 4 | @@ -35,7 +35,7 @@ namespace web_app { | ||
| 5 | |||
| 6 | namespace { | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Aligns with other platform implementations that only support 10 items. | ||
| 11 | constexpr int kMaxApplicationDockMenuItems = 10; | ||
| 12 | #endif // BUILDFLAG(IS_LINUX) | ||
| 13 | @@ -382,7 +382,7 @@ std::unique_ptr<ShortcutInfo> WebAppShortcutManager::B | ||
| 14 | } | ||
| 15 | } | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | const std::vector<WebAppShortcutsMenuItemInfo>& shortcuts_menu_item_infos = | ||
| 20 | app->shortcuts_menu_item_infos(); | ||
| 21 | int num_entries = std::min(static_cast<int>(shortcuts_menu_item_infos.size()), | ||
diff --git a/www/chromium/patches/patch-chrome_browser_web_applications_web_app_provider_cc b/www/chromium/patches/patch-chrome_browser_web_applications_web_app_provider_cc new file mode 100644 index 0000000..5eeaf99 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_web_applications_web_app_provider_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/web_applications/web_app_provider.cc | ||
| 2 | --- chrome/browser/web_applications/web_app_provider.cc.orig | ||
| 3 | +++ chrome/browser/web_applications/web_app_provider.cc | ||
| 4 | @@ -289,7 +289,7 @@ void WebAppProvider::CreateSubsystems(Profile* profile | ||
| 5 | protocol_handler_manager.get()); | ||
| 6 | |||
| 7 | std::unique_ptr<UrlHandlerManager> url_handler_manager; | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 10 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 11 | url_handler_manager = std::make_unique<UrlHandlerManagerImpl>(profile); | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_browser_webauthn_chrome_authenticator_request_delegate_cc b/www/chromium/patches/patch-chrome_browser_webauthn_chrome_authenticator_request_delegate_cc new file mode 100644 index 0000000..1ad0676 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_webauthn_chrome_authenticator_request_delegate_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/browser/webauthn/chrome_authenticator_request_delegate.cc | ||
| 2 | --- chrome/browser/webauthn/chrome_authenticator_request_delegate.cc.orig | ||
| 3 | +++ chrome/browser/webauthn/chrome_authenticator_request_delegate.cc | ||
| 4 | @@ -749,7 +749,7 @@ bool ChromeAuthenticatorRequestDelegate::ShouldPermitC | ||
| 5 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag | ||
| 6 | // switch of lacros-chrome is complete. If updating this, also update | ||
| 7 | // kWebAuthCableServerLink. | ||
| 8 | -#if BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | // caBLEv1 is disabled on these platforms. It never launched on them because | ||
| 12 | // it causes problems in bluez. Rather than disabling caBLE completely, which | ||
diff --git a/www/chromium/patches/patch-chrome_common_channel_info_h b/www/chromium/patches/patch-chrome_common_channel_info_h new file mode 100644 index 0000000..83025a7 --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_channel_info_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/common/channel_info.h | ||
| 2 | --- chrome/common/channel_info.h.orig | ||
| 3 | +++ chrome/common/channel_info.h | ||
| 4 | @@ -107,7 +107,7 @@ std::string GetChannelSuffixForDataDir(); | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Returns the channel-specific filename of the desktop shortcut used to launch | ||
| 11 | // the browser. | ||
| 12 | std::string GetDesktopName(base::Environment* env); | ||
diff --git a/www/chromium/patches/patch-chrome_common_channel_info_posix_cc b/www/chromium/patches/patch-chrome_common_channel_info_posix_cc new file mode 100644 index 0000000..c40cd6a --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_channel_info_posix_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/common/channel_info_posix.cc | ||
| 2 | --- chrome/common/channel_info_posix.cc.orig | ||
| 3 | +++ chrome/common/channel_info_posix.cc | ||
| 4 | @@ -93,7 +93,7 @@ std::string GetChannelSuffixForDataDir() { | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | std::string GetDesktopName(base::Environment* env) { | ||
| 11 | #if BUILDFLAG(GOOGLE_CHROME_BRANDING) | ||
| 12 | // Google Chrome packaged as a snap is a special case: the application name | ||
diff --git a/www/chromium/patches/patch-chrome_common_chrome_features_cc b/www/chromium/patches/patch-chrome_common_chrome_features_cc new file mode 100644 index 0000000..ab70a2b --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_chrome_features_cc | |||
| @@ -0,0 +1,93 @@ | |||
| 1 | Index: chrome/common/chrome_features.cc | ||
| 2 | --- chrome/common/chrome_features.cc.orig | ||
| 3 | +++ chrome/common/chrome_features.cc | ||
| 4 | @@ -105,7 +105,7 @@ const base::Feature kAsyncDns { | ||
| 5 | }; | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | // Enables or disables the Autofill survey triggered by opening a prompt to | ||
| 11 | // save address info. | ||
| 12 | const base::Feature kAutofillAddressSurvey{"AutofillAddressSurvey", | ||
| 13 | @@ -120,7 +120,7 @@ const base::Feature kAutofillPasswordSurvey{"AutofillP | ||
| 14 | base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Enables the Restart background mode optimization. When all Chrome UI is | ||
| 20 | // closed and it goes in the background, allows to restart the browser to | ||
| 21 | // discard memory. | ||
| 22 | @@ -142,7 +142,7 @@ const base::Feature kBorealis{"Borealis", base::FEATUR | ||
| 23 | const base::Feature kChangePictureVideoMode{"ChangePictureVideoMode", | ||
| 24 | base::FEATURE_ENABLED_BY_DEFAULT}; | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | // Controls whether Chrome Apps are supported. See https://crbug.com/1221251. | ||
| 29 | // If the feature is disabled, Chrome Apps continue to work. If enabled, Chrome | ||
| 30 | // Apps will not launch and will be marked in the UI as deprecated. | ||
| 31 | @@ -298,7 +298,7 @@ const base::Feature kDesktopPWAsNotificationIconAndTit | ||
| 32 | // Enables or disables Desktop PWAs to be auto-started on OS login. | ||
| 33 | const base::Feature kDesktopPWAsRunOnOsLogin { | ||
| 34 | "DesktopPWAsRunOnOsLogin", | ||
| 35 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 36 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 37 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 38 | #else | ||
| 39 | base::FEATURE_DISABLED_BY_DEFAULT | ||
| 40 | @@ -320,7 +320,7 @@ const base::Feature kDesktopPWAsWebBundles{"DesktopPWA | ||
| 41 | base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 42 | |||
| 43 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 44 | - BUILDFLAG(IS_FUCHSIA) | ||
| 45 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 46 | // Serves web app settings at chrome://app-settings/<app-id>. | ||
| 47 | const base::Feature kDesktopPWAsWebAppSettingsPage{ | ||
| 48 | "DesktopPWAsWebAppSettingsPage", base::FEATURE_ENABLED_BY_DEFAULT}; | ||
| 49 | @@ -330,7 +330,7 @@ const base::Feature kDesktopPWAsWebAppSettingsPage{ | ||
| 50 | const base::Feature kDnsOverHttps { | ||
| 51 | "DnsOverHttps", | ||
| 52 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 53 | - BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) | ||
| 54 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 55 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 56 | #else | ||
| 57 | base::FEATURE_DISABLED_BY_DEFAULT | ||
| 58 | @@ -352,7 +352,7 @@ const base::FeatureParam<bool> kDnsOverHttpsFallbackPa | ||
| 59 | const base::FeatureParam<bool> kDnsOverHttpsShowUiParam { | ||
| 60 | &kDnsOverHttps, "ShowUi", | ||
| 61 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 62 | - BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) | ||
| 63 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 64 | true | ||
| 65 | #else | ||
| 66 | false | ||
| 67 | @@ -624,7 +624,7 @@ const base::Feature kIncognitoNtpRevamp{"IncognitoNtpR | ||
| 68 | base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 69 | |||
| 70 | #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \ | ||
| 71 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 72 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 73 | // When enabled, removes any theme or background customization done by the user | ||
| 74 | // on the Incognito UI. | ||
| 75 | const base::Feature kIncognitoBrandConsistencyForDesktop{ | ||
| 76 | @@ -658,7 +658,7 @@ const base::Feature kLinkCapturingUiUpdate{"LinkCaptur | ||
| 77 | base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 78 | #endif | ||
| 79 | |||
| 80 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 81 | +#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) || BUILDFLAG(IS_BSD) | ||
| 82 | COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 83 | const base::Feature kLinuxLowMemoryMonitor{"LinuxLowMemoryMonitor", | ||
| 84 | base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 85 | @@ -671,7 +671,7 @@ constexpr base::FeatureParam<int> kLinuxLowMemoryMonit | ||
| 86 | &kLinuxLowMemoryMonitor, "critical_level", 255}; | ||
| 87 | #endif // BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 88 | |||
| 89 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 90 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 91 | const base::Feature kListWebAppsSwitch{"ListWebAppsSwitch", | ||
| 92 | base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 93 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_common_chrome_features_h b/www/chromium/patches/patch-chrome_common_chrome_features_h new file mode 100644 index 0000000..1686932 --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_chrome_features_h | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | Index: chrome/common/chrome_features.h | ||
| 2 | --- chrome/common/chrome_features.h.orig | ||
| 3 | +++ chrome/common/chrome_features.h | ||
| 4 | @@ -90,7 +90,7 @@ extern const base::Feature kArcPiGhostWindow; | ||
| 5 | COMPONENT_EXPORT(CHROME_FEATURES) extern const base::Feature kAsyncDns; | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 11 | extern const base::Feature kAutofillAddressSurvey; | ||
| 12 | COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 13 | @@ -99,7 +99,7 @@ COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 14 | extern const base::Feature kAutofillPasswordSurvey; | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 20 | extern const base::Feature kBackgroundModeAllowRestart; | ||
| 21 | #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 22 | @@ -121,7 +121,7 @@ extern const base::Feature kBrowserAppInstanceTracking | ||
| 23 | COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 24 | extern const base::Feature kChangePictureVideoMode; | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 29 | extern const base::Feature kChromeAppsDeprecation; | ||
| 30 | #endif | ||
| 31 | @@ -219,7 +219,7 @@ COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 32 | extern const base::Feature kDesktopPWAsWebBundles; | ||
| 33 | |||
| 34 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 35 | - BUILDFLAG(IS_FUCHSIA) | ||
| 36 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 37 | COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 38 | extern const base::Feature kDesktopPWAsWebAppSettingsPage; | ||
| 39 | #endif | ||
| 40 | @@ -425,7 +425,7 @@ COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 41 | extern const base::Feature kIncognitoNtpRevamp; | ||
| 42 | |||
| 43 | #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \ | ||
| 44 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 45 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 46 | COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 47 | extern const base::Feature kIncognitoBrandConsistencyForDesktop; | ||
| 48 | |||
| 49 | @@ -452,7 +452,7 @@ COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 50 | extern const base::Feature kLinkCapturingUiUpdate; | ||
| 51 | #endif | ||
| 52 | |||
| 53 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 54 | +#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) || BUILDFLAG(IS_BSD) | ||
| 55 | COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 56 | extern const base::Feature kLinuxLowMemoryMonitor; | ||
| 57 | COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 58 | @@ -461,7 +461,7 @@ COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 59 | extern const base::FeatureParam<int> kLinuxLowMemoryMonitorCriticalLevel; | ||
| 60 | #endif // BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 61 | |||
| 62 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 63 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 64 | COMPONENT_EXPORT(CHROME_FEATURES) | ||
| 65 | extern const base::Feature kListWebAppsSwitch; | ||
| 66 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_common_chrome_paths_cc b/www/chromium/patches/patch-chrome_common_chrome_paths_cc new file mode 100644 index 0000000..e35cc32 --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_chrome_paths_cc | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | Index: chrome/common/chrome_paths.cc | ||
| 2 | --- chrome/common/chrome_paths.cc.orig | ||
| 3 | +++ chrome/common/chrome_paths.cc | ||
| 4 | @@ -44,14 +44,14 @@ | ||
| 5 | |||
| 6 | namespace { | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // The path to the external extension <id>.json files. | ||
| 11 | // /usr/share seems like a good choice, see: http://www.pathname.com/fhs/ | ||
| 12 | const base::FilePath::CharType kFilepathSinglePrefExtensions[] = | ||
| 13 | #if BUILDFLAG(GOOGLE_CHROME_BRANDING) | ||
| 14 | - FILE_PATH_LITERAL("/usr/share/google-chrome/extensions"); | ||
| 15 | + FILE_PATH_LITERAL("/usr/local/share/chromium/extensions"); | ||
| 16 | #else | ||
| 17 | - FILE_PATH_LITERAL("/usr/share/chromium/extensions"); | ||
| 18 | + FILE_PATH_LITERAL("/usr/local/share/chromium/extensions"); | ||
| 19 | #endif // BUILDFLAG(GOOGLE_CHROME_BRANDING) | ||
| 20 | |||
| 21 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 22 | @@ -178,7 +178,7 @@ bool PathProvider(int key, base::FilePath* result) { | ||
| 23 | return false; | ||
| 24 | break; | ||
| 25 | case chrome::DIR_DEFAULT_DOWNLOADS_SAFE: | ||
| 26 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | if (!GetUserDownloadsDirectorySafe(&cur)) | ||
| 29 | return false; | ||
| 30 | break; | ||
| 31 | @@ -407,10 +407,12 @@ bool PathProvider(int key, base::FilePath* result) { | ||
| 32 | if (!base::PathExists(cur)) // We don't want to create this | ||
| 33 | return false; | ||
| 34 | break; | ||
| 35 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_OPENBSD) | ||
| 36 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) | ||
| 37 | case chrome::DIR_POLICY_FILES: { | ||
| 38 | #if BUILDFLAG(GOOGLE_CHROME_BRANDING) | ||
| 39 | cur = base::FilePath(FILE_PATH_LITERAL("/etc/opt/chrome/policies")); | ||
| 40 | +#elif BUILDFLAG(IS_FREEBSD) | ||
| 41 | + cur = base::FilePath(FILE_PATH_LITERAL("/usr/local/etc/chromium/policies")); | ||
| 42 | #else | ||
| 43 | cur = base::FilePath(FILE_PATH_LITERAL("/etc/chromium/policies")); | ||
| 44 | #endif | ||
| 45 | @@ -422,7 +424,7 @@ bool PathProvider(int key, base::FilePath* result) { | ||
| 46 | #if BUILDFLAG(IS_CHROMEOS_ASH) || \ | ||
| 47 | ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) && \ | ||
| 48 | BUILDFLAG(CHROMIUM_BRANDING)) || \ | ||
| 49 | - BUILDFLAG(IS_MAC) | ||
| 50 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 51 | case chrome::DIR_USER_EXTERNAL_EXTENSIONS: { | ||
| 52 | if (!base::PathService::Get(chrome::DIR_USER_DATA, &cur)) | ||
| 53 | return false; | ||
| 54 | @@ -430,7 +432,7 @@ bool PathProvider(int key, base::FilePath* result) { | ||
| 55 | break; | ||
| 56 | } | ||
| 57 | #endif | ||
| 58 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 59 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 60 | case chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS: { | ||
| 61 | cur = base::FilePath(kFilepathSinglePrefExtensions); | ||
| 62 | break; | ||
| 63 | @@ -475,7 +477,7 @@ bool PathProvider(int key, base::FilePath* result) { | ||
| 64 | break; | ||
| 65 | #endif | ||
| 66 | |||
| 67 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 68 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 69 | case chrome::DIR_NATIVE_MESSAGING: | ||
| 70 | #if BUILDFLAG(IS_MAC) | ||
| 71 | #if BUILDFLAG(GOOGLE_CHROME_BRANDING) | ||
| 72 | @@ -489,6 +491,9 @@ bool PathProvider(int key, base::FilePath* result) { | ||
| 73 | #if BUILDFLAG(GOOGLE_CHROME_BRANDING) | ||
| 74 | cur = base::FilePath(FILE_PATH_LITERAL( | ||
| 75 | "/etc/opt/chrome/native-messaging-hosts")); | ||
| 76 | +#elif BUILDFLAG(IS_FREEBSD) | ||
| 77 | + cur = base::FilePath(FILE_PATH_LITERAL( | ||
| 78 | + "/usr/local/etc/chromium/native-messaging-hosts")); | ||
| 79 | #else | ||
| 80 | cur = base::FilePath(FILE_PATH_LITERAL( | ||
| 81 | "/etc/chromium/native-messaging-hosts")); | ||
diff --git a/www/chromium/patches/patch-chrome_common_chrome_paths_h b/www/chromium/patches/patch-chrome_common_chrome_paths_h new file mode 100644 index 0000000..a74520f --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_chrome_paths_h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/common/chrome_paths.h | ||
| 2 | --- chrome/common/chrome_paths.h.orig | ||
| 3 | +++ chrome/common/chrome_paths.h | ||
| 4 | @@ -56,7 +56,7 @@ enum { | ||
| 5 | #if BUILDFLAG(IS_CHROMEOS_ASH) || \ | ||
| 6 | ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) && \ | ||
| 7 | BUILDFLAG(CHROMIUM_BRANDING)) || \ | ||
| 8 | - BUILDFLAG(IS_MAC) | ||
| 9 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | DIR_USER_EXTERNAL_EXTENSIONS, // Directory for per-user external extensions | ||
| 11 | // on Chrome Mac and Chromium Linux. | ||
| 12 | // On Chrome OS, this path is used for OEM | ||
| 13 | @@ -64,7 +64,7 @@ enum { | ||
| 14 | // create it. | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | DIR_STANDALONE_EXTERNAL_EXTENSIONS, // Directory for 'per-extension' | ||
| 20 | // definition manifest files that | ||
| 21 | // describe extensions which are to be | ||
| 22 | @@ -105,7 +105,7 @@ enum { | ||
| 23 | DIR_CHROMEOS_CUSTOM_WALLPAPERS, // Directory where custom wallpapers | ||
| 24 | // reside. | ||
| 25 | #endif | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | DIR_NATIVE_MESSAGING, // System directory where native messaging host | ||
| 29 | // manifest files are stored. | ||
| 30 | DIR_USER_NATIVE_MESSAGING, // Directory with Native Messaging Hosts | ||
diff --git a/www/chromium/patches/patch-chrome_common_chrome_paths_internal_h b/www/chromium/patches/patch-chrome_common_chrome_paths_internal_h new file mode 100644 index 0000000..5054ecc --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_chrome_paths_internal_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/common/chrome_paths_internal.h | ||
| 2 | --- chrome/common/chrome_paths_internal.h.orig | ||
| 3 | +++ chrome/common/chrome_paths_internal.h | ||
| 4 | @@ -45,7 +45,7 @@ void GetUserCacheDirectory(const base::FilePath& profi | ||
| 5 | // Get the path to the user's documents directory. | ||
| 6 | bool GetUserDocumentsDirectory(base::FilePath* result); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Gets the path to a safe default download directory for a user. | ||
| 11 | bool GetUserDownloadsDirectorySafe(base::FilePath* result); | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_common_chrome_switches_cc b/www/chromium/patches/patch-chrome_common_chrome_switches_cc new file mode 100644 index 0000000..d4aeeaf --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_chrome_switches_cc | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | Index: chrome/common/chrome_switches.cc | ||
| 2 | --- chrome/common/chrome_switches.cc.orig | ||
| 3 | +++ chrome/common/chrome_switches.cc | ||
| 4 | @@ -794,14 +794,14 @@ const char kAllowNaClSocketAPI[] = "allow-n | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 8 | - BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | const char kEnableNewAppMenuIcon[] = "enable-new-app-menu-icon"; | ||
| 11 | |||
| 12 | // Causes the browser to launch directly in guest mode. | ||
| 13 | const char kGuest[] = "guest"; | ||
| 14 | #endif | ||
| 15 | |||
| 16 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 17 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 18 | // Writes open and installed web apps for each profile to the specified file | ||
| 19 | // without launching a new browser window or tab. Pass a absolute file path to | ||
| 20 | // specify where to output the information. Can be used together with optional | ||
diff --git a/www/chromium/patches/patch-chrome_common_chrome_switches_h b/www/chromium/patches/patch-chrome_common_chrome_switches_h new file mode 100644 index 0000000..5747869 --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_chrome_switches_h | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | Index: chrome/common/chrome_switches.h | ||
| 2 | --- chrome/common/chrome_switches.h.orig | ||
| 3 | +++ chrome/common/chrome_switches.h | ||
| 4 | @@ -248,12 +248,12 @@ extern const char kAllowNaClSocketAPI[]; | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 8 | - BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | extern const char kEnableNewAppMenuIcon[]; | ||
| 11 | extern const char kGuest[]; | ||
| 12 | #endif | ||
| 13 | |||
| 14 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 15 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 16 | extern const char kListApps[]; | ||
| 17 | extern const char kProfileBaseName[]; | ||
| 18 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_common_extensions_command_cc b/www/chromium/patches/patch-chrome_common_extensions_command_cc new file mode 100644 index 0000000..35b1ec3 --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_extensions_command_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/common/extensions/command.cc | ||
| 2 | --- chrome/common/extensions/command.cc.orig | ||
| 3 | +++ chrome/common/extensions/command.cc | ||
| 4 | @@ -295,7 +295,7 @@ std::string Command::CommandPlatform() { | ||
| 5 | return values::kKeybindingPlatformMac; | ||
| 6 | #elif BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 7 | return values::kKeybindingPlatformChromeOs; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | return values::kKeybindingPlatformLinux; | ||
| 11 | #else | ||
| 12 | return ""; | ||
diff --git a/www/chromium/patches/patch-chrome_common_media_cdm_host_file_path_cc b/www/chromium/patches/patch-chrome_common_media_cdm_host_file_path_cc new file mode 100644 index 0000000..f3acc02 --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_media_cdm_host_file_path_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/common/media/cdm_host_file_path.cc | ||
| 2 | --- chrome/common/media/cdm_host_file_path.cc.orig | ||
| 3 | +++ chrome/common/media/cdm_host_file_path.cc | ||
| 4 | @@ -95,7 +95,7 @@ void AddCdmHostFilePaths( | ||
| 5 | cdm_host_file_paths->emplace_back(chrome_framework_path, | ||
| 6 | chrome_framework_sig_path); | ||
| 7 | |||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | base::FilePath chrome_exe_dir; | ||
| 12 | if (!base::PathService::Get(base::DIR_EXE, &chrome_exe_dir)) | ||
diff --git a/www/chromium/patches/patch-chrome_common_pref_names_cc b/www/chromium/patches/patch-chrome_common_pref_names_cc new file mode 100644 index 0000000..a97a08a --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_pref_names_cc | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | Index: chrome/common/pref_names.cc | ||
| 2 | --- chrome/common/pref_names.cc.orig | ||
| 3 | +++ chrome/common/pref_names.cc | ||
| 4 | @@ -1188,7 +1188,7 @@ const char kUseAshProxy[] = "lacros.proxy.use_ash_prox | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Linux specific preference on whether we should match the system theme. | ||
| 11 | const char kUsesSystemTheme[] = "extensions.theme.use_system"; | ||
| 12 | #endif | ||
| 13 | @@ -1291,7 +1291,7 @@ const char kShowUpdatePromotionInfoBar[] = | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Boolean that is false if we should show window manager decorations. If | ||
| 20 | // true, we draw a custom chrome frame (thicker title bar and blue border). | ||
| 21 | const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame"; | ||
| 22 | @@ -1780,7 +1780,7 @@ const char kDownloadDefaultDirectory[] = "download.def | ||
| 23 | const char kDownloadDirUpgraded[] = "download.directory_upgrade"; | ||
| 24 | |||
| 25 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 26 | - BUILDFLAG(IS_MAC) | ||
| 27 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | const char kOpenPdfDownloadInSystemReader[] = | ||
| 29 | "download.open_pdf_in_system_reader"; | ||
| 30 | #endif | ||
| 31 | @@ -2069,7 +2069,7 @@ const char kWebAppsPreferences[] = "web_apps.web_app_i | ||
| 32 | // its isolation requirements. | ||
| 33 | const char kWebAppsIsolationState[] = "web_apps.isolation_state"; | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 36 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 37 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 38 | // Dictionary that maps origins to web apps that can act as URL handlers. | ||
| 39 | const char kWebAppsUrlHandlerInfo[] = "web_apps.url_handler_info"; | ||
| 40 | @@ -2199,7 +2199,7 @@ const char kAmbientAuthenticationInPrivateModesEnabled | ||
| 41 | // requests. | ||
| 42 | const char kBasicAuthOverHttpEnabled[] = "auth.basic_over_http_enabled"; | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | // Boolean that specifies whether OK-AS-DELEGATE flag from KDC is respected | ||
| 47 | // along with kAuthNegotiateDelegateAllowlist. | ||
| 48 | const char kAuthNegotiateDelegateByKdcPolicy[] = | ||
| 49 | @@ -3129,7 +3129,7 @@ const char kBlockAutoplayEnabled[] = "media.block_auto | ||
| 50 | const char kSandboxExternalProtocolBlocked[] = | ||
| 51 | "profile.sandbox_external_protocol_blocked"; | ||
| 52 | |||
| 53 | -#if BUILDFLAG(IS_LINUX) | ||
| 54 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 55 | // Boolean that indicates if native notifications are allowed to be used in | ||
| 56 | // place of Chrome notifications. Will be replaced by kAllowSystemNotifications. | ||
| 57 | const char kAllowNativeNotifications[] = "native_notifications.allowed"; | ||
diff --git a/www/chromium/patches/patch-chrome_common_pref_names_h b/www/chromium/patches/patch-chrome_common_pref_names_h new file mode 100644 index 0000000..e533780 --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_pref_names_h | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | Index: chrome/common/pref_names.h | ||
| 2 | --- chrome/common/pref_names.h.orig | ||
| 3 | +++ chrome/common/pref_names.h | ||
| 4 | @@ -372,7 +372,7 @@ extern const char kUseAshProxy[]; | ||
| 5 | #endif // BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | extern const char kUsesSystemTheme[]; | ||
| 11 | #endif | ||
| 12 | extern const char kCurrentThemePackFilename[]; | ||
| 13 | @@ -401,7 +401,7 @@ extern const char kShowUpdatePromotionInfoBar[]; | ||
| 14 | #endif | ||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | extern const char kUseCustomChromeFrame[]; | ||
| 20 | #endif | ||
| 21 | #if BUILDFLAG(ENABLE_PLUGINS) | ||
| 22 | @@ -584,7 +584,7 @@ extern const char kDownloadExtensionsToOpenByPolicy[]; | ||
| 23 | extern const char kDownloadAllowedURLsForOpenByPolicy[]; | ||
| 24 | extern const char kDownloadDirUpgraded[]; | ||
| 25 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 26 | - BUILDFLAG(IS_MAC) | ||
| 27 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | extern const char kOpenPdfDownloadInSystemReader[]; | ||
| 29 | #endif | ||
| 30 | #if BUILDFLAG(IS_ANDROID) | ||
| 31 | @@ -691,7 +691,7 @@ extern const char kWebAppsUninstalledDefaultChromeApps | ||
| 32 | extern const char kWebAppsPreferences[]; | ||
| 33 | extern const char kWebAppsIsolationState[]; | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 36 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 37 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 38 | extern const char kWebAppsUrlHandlerInfo[]; | ||
| 39 | #endif | ||
| 40 | @@ -830,7 +830,7 @@ extern const char kGloballyScopeHTTPAuthCacheEnabled[] | ||
| 41 | extern const char kAmbientAuthenticationInPrivateModesEnabled[]; | ||
| 42 | extern const char kBasicAuthOverHttpEnabled[]; | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | extern const char kAuthNegotiateDelegateByKdcPolicy[]; | ||
| 47 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) | ||
| 48 | |||
| 49 | @@ -1068,7 +1068,7 @@ extern const char kBlockAutoplayEnabled[]; | ||
| 50 | #endif | ||
| 51 | extern const char kSandboxExternalProtocolBlocked[]; | ||
| 52 | |||
| 53 | -#if BUILDFLAG(IS_LINUX) | ||
| 54 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 55 | extern const char kAllowNativeNotifications[]; | ||
| 56 | extern const char kAllowSystemNotifications[]; | ||
| 57 | #endif | ||
diff --git a/www/chromium/patches/patch-chrome_common_webui_url_constants_cc b/www/chromium/patches/patch-chrome_common_webui_url_constants_cc new file mode 100644 index 0000000..ea1dcd3 --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_webui_url_constants_cc | |||
| @@ -0,0 +1,95 @@ | |||
| 1 | Index: chrome/common/webui_url_constants.cc | ||
| 2 | --- chrome/common/webui_url_constants.cc.orig | ||
| 3 | +++ chrome/common/webui_url_constants.cc | ||
| 4 | @@ -434,18 +434,18 @@ const char kOsUIFlagsURL[] = "os://flags"; | ||
| 5 | const char kOsUIVersionURL[] = "os://version"; | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | const char kChromeUIWebUIJsErrorHost[] = "webuijserror"; | ||
| 11 | const char kChromeUIWebUIJsErrorURL[] = "chrome://webuijserror/"; | ||
| 12 | #endif | ||
| 13 | |||
| 14 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 15 | - BUILDFLAG(IS_CHROMEOS) | ||
| 16 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 17 | const char kChromeUIConnectorsInternalsHost[] = "connectors-internals"; | ||
| 18 | #endif | ||
| 19 | |||
| 20 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 21 | - BUILDFLAG(IS_CHROMEOS) | ||
| 22 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 23 | const char kChromeUIDiscardsHost[] = "discards"; | ||
| 24 | const char kChromeUIDiscardsURL[] = "chrome://discards/"; | ||
| 25 | #endif | ||
| 26 | @@ -460,14 +460,14 @@ const char kChromeUILinuxProxyConfigHost[] = "linux-pr | ||
| 27 | #endif | ||
| 28 | |||
| 29 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 30 | - BUILDFLAG(IS_ANDROID) | ||
| 31 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 32 | const char kChromeUISandboxHost[] = "sandbox"; | ||
| 33 | #endif | ||
| 34 | |||
| 35 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 36 | // of lacros-chrome is complete. | ||
| 37 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 38 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 39 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) | ||
| 40 | const char kChromeUIBrowserSwitchHost[] = "browser-switch"; | ||
| 41 | const char kChromeUIBrowserSwitchURL[] = "chrome://browser-switch/"; | ||
| 42 | const char kChromeUIEnterpriseProfileWelcomeHost[] = | ||
| 43 | @@ -482,7 +482,7 @@ const char kChromeUIProfilePickerUrl[] = "chrome://pro | ||
| 44 | const char kChromeUIProfilePickerStartupQuery[] = "startup"; | ||
| 45 | #endif | ||
| 46 | |||
| 47 | -#if ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ | ||
| 48 | +#if ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && \ | ||
| 49 | defined(TOOLKIT_VIEWS)) || \ | ||
| 50 | defined(USE_AURA) | ||
| 51 | const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; | ||
| 52 | @@ -554,7 +554,7 @@ const char kPrivacySandboxSubPagePath[] = "/privacySan | ||
| 53 | #endif | ||
| 54 | |||
| 55 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 56 | - BUILDFLAG(IS_FUCHSIA) | ||
| 57 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 58 | const char kChromeUIWebAppSettingsURL[] = "chrome://app-settings/"; | ||
| 59 | const char kChromeUIWebAppSettingsHost[] = "app-settings"; | ||
| 60 | #endif | ||
| 61 | @@ -678,21 +678,21 @@ const char* const kChromeHostURLs[] = { | ||
| 62 | kChromeUIAssistantOptInHost, | ||
| 63 | #endif | ||
| 64 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 65 | - BUILDFLAG(IS_CHROMEOS) | ||
| 66 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 67 | kChromeUIConnectorsInternalsHost, | ||
| 68 | #endif | ||
| 69 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 70 | - BUILDFLAG(IS_CHROMEOS) | ||
| 71 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 72 | kChromeUIDiscardsHost, | ||
| 73 | #endif | ||
| 74 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 75 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 76 | kChromeUIWebAppSettingsHost, | ||
| 77 | #endif | ||
| 78 | #if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_ANDROID) | ||
| 79 | kChromeUILinuxProxyConfigHost, | ||
| 80 | #endif | ||
| 81 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 82 | - BUILDFLAG(IS_ANDROID) | ||
| 83 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 84 | kChromeUISandboxHost, | ||
| 85 | #endif | ||
| 86 | #if BUILDFLAG(IS_WIN) | ||
| 87 | @@ -749,7 +749,7 @@ const char* const kChromeDebugURLs[] = { | ||
| 88 | blink::kChromeUIGpuJavaCrashURL, | ||
| 89 | kChromeUIJavaCrashURL, | ||
| 90 | #endif | ||
| 91 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 92 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 93 | kChromeUIWebUIJsErrorURL, | ||
| 94 | #endif | ||
| 95 | kChromeUIQuitURL, | ||
diff --git a/www/chromium/patches/patch-chrome_common_webui_url_constants_h b/www/chromium/patches/patch-chrome_common_webui_url_constants_h new file mode 100644 index 0000000..194342a --- /dev/null +++ b/www/chromium/patches/patch-chrome_common_webui_url_constants_h | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | Index: chrome/common/webui_url_constants.h | ||
| 2 | --- chrome/common/webui_url_constants.h.orig | ||
| 3 | +++ chrome/common/webui_url_constants.h | ||
| 4 | @@ -371,24 +371,24 @@ extern const char kOsUIFlagsURL[]; | ||
| 5 | extern const char kOsUIVersionURL[]; | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | extern const char kChromeUIWebUIJsErrorHost[]; | ||
| 11 | extern const char kChromeUIWebUIJsErrorURL[]; | ||
| 12 | #endif | ||
| 13 | |||
| 14 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 15 | - BUILDFLAG(IS_CHROMEOS) | ||
| 16 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 17 | extern const char kChromeUIConnectorsInternalsHost[]; | ||
| 18 | #endif | ||
| 19 | |||
| 20 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 21 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 22 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 23 | extern const char kChromeUIDiscardsHost[]; | ||
| 24 | extern const char kChromeUIDiscardsURL[]; | ||
| 25 | #endif | ||
| 26 | |||
| 27 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 28 | - BUILDFLAG(IS_FUCHSIA) | ||
| 29 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 30 | extern const char kChromeUIWebAppSettingsURL[]; | ||
| 31 | extern const char kChromeUIWebAppSettingsHost[]; | ||
| 32 | #endif | ||
| 33 | @@ -403,14 +403,14 @@ extern const char kChromeUILinuxProxyConfigHost[]; | ||
| 34 | #endif | ||
| 35 | |||
| 36 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 37 | - BUILDFLAG(IS_ANDROID) | ||
| 38 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 39 | extern const char kChromeUISandboxHost[]; | ||
| 40 | #endif | ||
| 41 | |||
| 42 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 43 | // of lacros-chrome is complete. | ||
| 44 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 45 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 46 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) | ||
| 47 | extern const char kChromeUIBrowserSwitchHost[]; | ||
| 48 | extern const char kChromeUIBrowserSwitchURL[]; | ||
| 49 | extern const char kChromeUIEnterpriseProfileWelcomeHost[]; | ||
| 50 | @@ -422,7 +422,7 @@ extern const char kChromeUIProfilePickerUrl[]; | ||
| 51 | extern const char kChromeUIProfilePickerStartupQuery[]; | ||
| 52 | #endif | ||
| 53 | |||
| 54 | -#if ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ | ||
| 55 | +#if ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && \ | ||
| 56 | defined(TOOLKIT_VIEWS)) || \ | ||
| 57 | defined(USE_AURA) | ||
| 58 | extern const char kChromeUITabModalConfirmDialogHost[]; | ||
diff --git a/www/chromium/patches/patch-chrome_renderer_chrome_render_frame_observer_cc b/www/chromium/patches/patch-chrome_renderer_chrome_render_frame_observer_cc new file mode 100644 index 0000000..12e47ff --- /dev/null +++ b/www/chromium/patches/patch-chrome_renderer_chrome_render_frame_observer_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/renderer/chrome_render_frame_observer.cc | ||
| 2 | --- chrome/renderer/chrome_render_frame_observer.cc.orig | ||
| 3 | +++ chrome/renderer/chrome_render_frame_observer.cc | ||
| 4 | @@ -280,7 +280,7 @@ void ChromeRenderFrameObserver::OnDestruct() { | ||
| 5 | |||
| 6 | void ChromeRenderFrameObserver::DraggableRegionsChanged() { | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Only the main frame is allowed to control draggable regions, to avoid other | ||
| 11 | // frames manipulate the regions in the browser process. | ||
| 12 | if (!render_frame()->IsMainFrame()) | ||
diff --git a/www/chromium/patches/patch-chrome_renderer_pepper_pepper_flash_font_file_host_cc b/www/chromium/patches/patch-chrome_renderer_pepper_pepper_flash_font_file_host_cc new file mode 100644 index 0000000..99de8ba --- /dev/null +++ b/www/chromium/patches/patch-chrome_renderer_pepper_pepper_flash_font_file_host_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/renderer/pepper/pepper_flash_font_file_host.cc | ||
| 2 | --- chrome/renderer/pepper/pepper_flash_font_file_host.cc.orig | ||
| 3 | +++ chrome/renderer/pepper/pepper_flash_font_file_host.cc | ||
| 4 | @@ -16,7 +16,7 @@ | ||
| 5 | #include "ppapi/proxy/ppapi_messages.h" | ||
| 6 | #include "ppapi/proxy/serialized_structs.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "components/services/font/public/cpp/font_loader.h" | ||
| 11 | #include "pdf/font_table_linux.h" | ||
| 12 | #elif BUILDFLAG(IS_WIN) | ||
| 13 | @@ -30,7 +30,7 @@ PepperFlashFontFileHost::PepperFlashFontFileHost( | ||
| 14 | const ppapi::proxy::SerializedFontDescription& description, | ||
| 15 | PP_PrivateFontCharset charset) | ||
| 16 | : ResourceHost(host->GetPpapiHost(), instance, resource) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // The global SkFontConfigInterface is configured and initialized with a | ||
| 20 | // SkFontconfigInterface compatible font_service::FontLoader in | ||
| 21 | // RendererBlinkPlatformImpl (called from RenderThreadImpl::Init) at startup | ||
| 22 | @@ -75,7 +75,7 @@ bool PepperFlashFontFileHost::GetFontData(uint32_t tab | ||
| 23 | void* buffer, | ||
| 24 | size_t* length) { | ||
| 25 | bool result = false; | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | if (font_file_.IsValid()) { | ||
| 29 | result = | ||
| 30 | pdf::GetFontTable(font_file_.GetPlatformFile(), table, /*offset=*/0, | ||
diff --git a/www/chromium/patches/patch-chrome_renderer_pepper_pepper_flash_font_file_host_h b/www/chromium/patches/patch-chrome_renderer_pepper_pepper_flash_font_file_host_h new file mode 100644 index 0000000..fec312b --- /dev/null +++ b/www/chromium/patches/patch-chrome_renderer_pepper_pepper_flash_font_file_host_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/renderer/pepper/pepper_flash_font_file_host.h | ||
| 2 | --- chrome/renderer/pepper/pepper_flash_font_file_host.h.orig | ||
| 3 | +++ chrome/renderer/pepper/pepper_flash_font_file_host.h | ||
| 4 | @@ -12,7 +12,7 @@ | ||
| 5 | #include "ppapi/c/private/pp_private_font_charset.h" | ||
| 6 | #include "ppapi/host/resource_host.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/files/file.h" | ||
| 11 | #elif BUILDFLAG(IS_WIN) | ||
| 12 | #include "third_party/skia/include/core/SkRefCnt.h" | ||
| 13 | @@ -52,7 +52,7 @@ class PepperFlashFontFileHost : public ppapi::host::Re | ||
| 14 | uint32_t table); | ||
| 15 | bool GetFontData(uint32_t table, void* buffer, size_t* length); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | base::File font_file_; | ||
| 20 | #elif BUILDFLAG(IS_WIN) | ||
| 21 | sk_sp<SkTypeface> typeface_; | ||
diff --git a/www/chromium/patches/patch-chrome_services_file_util_public_mojom_safe_document_analyzer_mojom_traits_h b/www/chromium/patches/patch-chrome_services_file_util_public_mojom_safe_document_analyzer_mojom_traits_h new file mode 100644 index 0000000..b755fb4 --- /dev/null +++ b/www/chromium/patches/patch-chrome_services_file_util_public_mojom_safe_document_analyzer_mojom_traits_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/services/file_util/public/mojom/safe_document_analyzer_mojom_traits.h | ||
| 2 | --- chrome/services/file_util/public/mojom/safe_document_analyzer_mojom_traits.h.orig | ||
| 3 | +++ chrome/services/file_util/public/mojom/safe_document_analyzer_mojom_traits.h | ||
| 4 | @@ -15,7 +15,7 @@ | ||
| 5 | #include "mojo/public/cpp/bindings/struct_traits.h" | ||
| 6 | |||
| 7 | #if !BUILDFLAG(FULL_SAFE_BROWSING) || \ | ||
| 8 | - (!BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_WIN)) | ||
| 9 | + (!BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_BSD)) | ||
| 10 | #error BUILDFLAG(FULL_SAFE_BROWSING) should be set and either OS_LINUX or OS_WIN defined. | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-chrome_services_printing_print_backend_service_impl_cc b/www/chromium/patches/patch-chrome_services_printing_print_backend_service_impl_cc new file mode 100644 index 0000000..9f84a1a --- /dev/null +++ b/www/chromium/patches/patch-chrome_services_printing_print_backend_service_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/services/printing/print_backend_service_impl.cc | ||
| 2 | --- chrome/services/printing/print_backend_service_impl.cc.orig | ||
| 3 | +++ chrome/services/printing/print_backend_service_impl.cc | ||
| 4 | @@ -510,7 +510,7 @@ void PrintBackendServiceImpl::UpdatePrintSettings( | ||
| 5 | crash_keys_ = std::make_unique<crash_keys::ScopedPrinterInfo>( | ||
| 6 | print_backend_->GetPrinterDriverInfo(printer_name)); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) && defined(USE_CUPS) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(USE_CUPS) | ||
| 10 | // Try to fill in advanced settings based upon basic info options. | ||
| 11 | PrinterBasicInfo basic_info; | ||
| 12 | if (print_backend_->GetPrinterBasicInfo(printer_name, &basic_info) == | ||
diff --git a/www/chromium/patches/patch-chrome_services_speech_audio_source_fetcher_impl_cc b/www/chromium/patches/patch-chrome_services_speech_audio_source_fetcher_impl_cc new file mode 100644 index 0000000..f0d1c09 --- /dev/null +++ b/www/chromium/patches/patch-chrome_services_speech_audio_source_fetcher_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/services/speech/audio_source_fetcher_impl.cc | ||
| 2 | --- chrome/services/speech/audio_source_fetcher_impl.cc.orig | ||
| 3 | +++ chrome/services/speech/audio_source_fetcher_impl.cc | ||
| 4 | @@ -68,7 +68,7 @@ void AudioSourceFetcherImpl::Start( | ||
| 5 | |||
| 6 | // TODO(crbug.com/1185978): Check implementation / sandbox policy on Mac and | ||
| 7 | // Windows. | ||
| 8 | -#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | is_started_ = true; | ||
| 11 | // Initialize the AudioCapturerSource with |this| as the CaptureCallback, | ||
| 12 | // get the parameters for the device ID, then start audio capture. | ||
diff --git a/www/chromium/patches/patch-chrome_test_BUILD_gn b/www/chromium/patches/patch-chrome_test_BUILD_gn new file mode 100644 index 0000000..41e4ef4 --- /dev/null +++ b/www/chromium/patches/patch-chrome_test_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/test/BUILD.gn | ||
| 2 | --- chrome/test/BUILD.gn.orig | ||
| 3 | +++ chrome/test/BUILD.gn | ||
| 4 | @@ -9110,7 +9110,7 @@ test("chrome_app_unittests") { | ||
| 5 | "//components/safe_browsing:buildflags", | ||
| 6 | "//pdf:pdf_ppapi", | ||
| 7 | ] | ||
| 8 | - if (!is_fuchsia) { | ||
| 9 | + if (!is_fuchsia && !is_bsd) { | ||
| 10 | deps += [ "//third_party/breakpad:client" ] | ||
| 11 | } | ||
| 12 | if (enable_gwp_asan) { | ||
diff --git a/www/chromium/patches/patch-chrome_test_chromedriver_chrome_chrome_finder_cc b/www/chromium/patches/patch-chrome_test_chromedriver_chrome_chrome_finder_cc new file mode 100644 index 0000000..0e0d7fb --- /dev/null +++ b/www/chromium/patches/patch-chrome_test_chromedriver_chrome_chrome_finder_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/test/chromedriver/chrome/chrome_finder.cc | ||
| 2 | --- chrome/test/chromedriver/chrome/chrome_finder.cc.orig | ||
| 3 | +++ chrome/test/chromedriver/chrome/chrome_finder.cc | ||
| 4 | @@ -54,7 +54,7 @@ void GetApplicationDirs(std::vector<base::FilePath>* l | ||
| 5 | installation_locations[i].Append(L"Chromium\\Application")); | ||
| 6 | } | ||
| 7 | } | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | void GetApplicationDirs(std::vector<base::FilePath>* locations) { | ||
| 11 | // TODO: Respect users' PATH variables. | ||
| 12 | // Until then, we use an approximation of the most common defaults. | ||
| 13 | @@ -139,7 +139,7 @@ bool FindChrome(base::FilePath* browser_exe) { | ||
| 14 | base::FilePath browser_exes_array[] = { | ||
| 15 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 16 | base::FilePath(chrome::kBrowserProcessExecutablePath), | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | base::FilePath("google-chrome"), | ||
| 20 | base::FilePath(chrome::kBrowserProcessExecutablePath), | ||
| 21 | base::FilePath("chromium"), | ||
diff --git a/www/chromium/patches/patch-chrome_test_chromedriver_chrome_launcher_cc b/www/chromium/patches/patch-chrome_test_chromedriver_chrome_launcher_cc new file mode 100644 index 0000000..780cdea --- /dev/null +++ b/www/chromium/patches/patch-chrome_test_chromedriver_chrome_launcher_cc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: chrome/test/chromedriver/chrome_launcher.cc | ||
| 2 | --- chrome/test/chromedriver/chrome_launcher.cc.orig | ||
| 3 | +++ chrome/test/chromedriver/chrome_launcher.cc | ||
| 4 | @@ -65,6 +65,7 @@ | ||
| 5 | #include <fcntl.h> | ||
| 6 | #include <sys/stat.h> | ||
| 7 | #include <sys/types.h> | ||
| 8 | +#include <sys/wait.h> | ||
| 9 | #include <unistd.h> | ||
| 10 | #elif BUILDFLAG(IS_WIN) | ||
| 11 | #include "chrome/test/chromedriver/keycode_text_conversion.h" | ||
diff --git a/www/chromium/patches/patch-chrome_test_chromedriver_key_converter_unittest_cc b/www/chromium/patches/patch-chrome_test_chromedriver_key_converter_unittest_cc new file mode 100644 index 0000000..9bc1873 --- /dev/null +++ b/www/chromium/patches/patch-chrome_test_chromedriver_key_converter_unittest_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/test/chromedriver/key_converter_unittest.cc | ||
| 2 | --- chrome/test/chromedriver/key_converter_unittest.cc.orig | ||
| 3 | +++ chrome/test/chromedriver/key_converter_unittest.cc | ||
| 4 | @@ -246,7 +246,7 @@ TEST(KeyConverter, ToggleModifiers) { | ||
| 5 | CheckEventsReleaseModifiers(keys, key_events); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Fails on bots: crbug.com/174962 | ||
| 11 | #define MAYBE_AllEnglishKeyboardSymbols DISABLED_AllEnglishKeyboardSymbols | ||
| 12 | #else | ||
| 13 | @@ -303,7 +303,7 @@ TEST(KeyConverter, AllEnglishKeyboardTextChars) { | ||
| 14 | TEST(KeyConverter, AllSpecialWebDriverKeysOnEnglishKeyboard) { | ||
| 15 | ui::ScopedKeyboardLayout keyboard_layout(ui::KEYBOARD_LAYOUT_ENGLISH_US); | ||
| 16 | const char kTextForKeys[] = { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | 0, 0, 0, 0, '\t', 0, '\r', '\r', 0, 0, 0, 0, 0, | ||
| 20 | #else | ||
| 21 | 0, 0, 0, 0, 0, 0, '\r', '\r', 0, 0, 0, 0, 0, | ||
diff --git a/www/chromium/patches/patch-chrome_test_chromedriver_keycode_text_conversion_unittest_cc b/www/chromium/patches/patch-chrome_test_chromedriver_keycode_text_conversion_unittest_cc new file mode 100644 index 0000000..5ea679a --- /dev/null +++ b/www/chromium/patches/patch-chrome_test_chromedriver_keycode_text_conversion_unittest_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chrome/test/chromedriver/keycode_text_conversion_unittest.cc | ||
| 2 | --- chrome/test/chromedriver/keycode_text_conversion_unittest.cc.orig | ||
| 3 | +++ chrome/test/chromedriver/keycode_text_conversion_unittest.cc | ||
| 4 | @@ -64,7 +64,7 @@ std::string ConvertKeyCodeToTextNoError(ui::KeyboardCo | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Fails on bots: crbug.com/174962 | ||
| 11 | #define MAYBE_KeyCodeToText DISABLED_KeyCodeToText | ||
| 12 | #else | ||
| 13 | @@ -101,7 +101,7 @@ TEST(KeycodeTextConversionTest, MAYBE_KeyCodeToText) { | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Fails on bots: crbug.com/174962 | ||
| 20 | #define MAYBE_CharToKeyCode DISABLED_CharToKeyCode | ||
| 21 | #else | ||
diff --git a/www/chromium/patches/patch-chrome_updater_app_app_install_cc b/www/chromium/patches/patch-chrome_updater_app_app_install_cc new file mode 100644 index 0000000..d5e998b --- /dev/null +++ b/www/chromium/patches/patch-chrome_updater_app_app_install_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/updater/app/app_install.cc | ||
| 2 | --- chrome/updater/app/app_install.cc.orig | ||
| 3 | +++ chrome/updater/app/app_install.cc | ||
| 4 | @@ -166,7 +166,7 @@ void AppInstall::WakeCandidate() { | ||
| 5 | update_service_internal, base::WrapRefCounted(this))); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // TODO(crbug.com/1276114) - implement. | ||
| 11 | void AppInstall::WakeCandidateDone() { | ||
| 12 | NOTIMPLEMENTED(); | ||
diff --git a/www/chromium/patches/patch-chrome_updater_app_app_uninstall_cc b/www/chromium/patches/patch-chrome_updater_app_app_uninstall_cc new file mode 100644 index 0000000..5011310 --- /dev/null +++ b/www/chromium/patches/patch-chrome_updater_app_app_uninstall_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/updater/app/app_uninstall.cc | ||
| 2 | --- chrome/updater/app/app_uninstall.cc.orig | ||
| 3 | +++ chrome/updater/app/app_uninstall.cc | ||
| 4 | @@ -32,7 +32,7 @@ | ||
| 5 | #include "chrome/updater/win/setup/uninstall.h" | ||
| 6 | #elif BUILDFLAG(IS_MAC) | ||
| 7 | #include "chrome/updater/mac/setup/setup.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/updater/linux/setup/setup.h" | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-chrome_updater_configurator_cc b/www/chromium/patches/patch-chrome_updater_configurator_cc new file mode 100644 index 0000000..f4ce53a --- /dev/null +++ b/www/chromium/patches/patch-chrome_updater_configurator_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/updater/configurator.cc | ||
| 2 | --- chrome/updater/configurator.cc.orig | ||
| 3 | +++ chrome/updater/configurator.cc | ||
| 4 | @@ -39,7 +39,7 @@ | ||
| 5 | #include "chrome/updater/win/net/network.h" | ||
| 6 | #elif BUILDFLAG(IS_MAC) | ||
| 7 | #include "chrome/updater/mac/net/network.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/updater/linux/net/network.h" | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-chrome_updater_device_management_cloud_policy_util_cc b/www/chromium/patches/patch-chrome_updater_device_management_cloud_policy_util_cc new file mode 100644 index 0000000..61286b8 --- /dev/null +++ b/www/chromium/patches/patch-chrome_updater_device_management_cloud_policy_util_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: chrome/updater/device_management/cloud_policy_util.cc | ||
| 2 | --- chrome/updater/device_management/cloud_policy_util.cc.orig | ||
| 3 | +++ chrome/updater/device_management/cloud_policy_util.cc | ||
| 4 | @@ -22,7 +22,7 @@ | ||
| 5 | #include <wincred.h> | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <pwd.h> | ||
| 11 | #include <sys/types.h> | ||
| 12 | #include <unistd.h> | ||
| 13 | @@ -36,7 +36,7 @@ | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | #include <limits.h> // For HOST_NAME_MAX | ||
| 20 | #endif | ||
| 21 | |||
| 22 | @@ -63,7 +63,7 @@ | ||
| 23 | |||
| 24 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 25 | // of lacros-chrome is complete. | ||
| 26 | -#if BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | #include "base/system/sys_info.h" | ||
| 29 | #endif | ||
| 30 | |||
| 31 | @@ -111,7 +111,7 @@ std::string GetPolicyVerificationKey() { | ||
| 32 | std::string GetMachineName() { | ||
| 33 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 34 | // of lacros-chrome is complete. | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 37 | char hostname[HOST_NAME_MAX]; | ||
| 38 | if (gethostname(hostname, HOST_NAME_MAX) == 0) // Success. | ||
| 39 | return hostname; | ||
| 40 | @@ -161,7 +161,7 @@ std::string GetMachineName() { | ||
| 41 | } | ||
| 42 | |||
| 43 | std::string GetOSVersion() { | ||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 46 | return base::SysInfo::OperatingSystemVersion(); | ||
| 47 | #elif BUILDFLAG(IS_WIN) | ||
| 48 | base::win::OSInfo::VersionNumber version_number = | ||
diff --git a/www/chromium/patches/patch-chrome_updater_device_management_dm_client_cc b/www/chromium/patches/patch-chrome_updater_device_management_dm_client_cc new file mode 100644 index 0000000..8f917c8 --- /dev/null +++ b/www/chromium/patches/patch-chrome_updater_device_management_dm_client_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/updater/device_management/dm_client.cc | ||
| 2 | --- chrome/updater/device_management/dm_client.cc.orig | ||
| 3 | +++ chrome/updater/device_management/dm_client.cc | ||
| 4 | @@ -36,7 +36,7 @@ | ||
| 5 | #include "chrome/updater/win/net/network.h" | ||
| 6 | #elif BUILDFLAG(IS_MAC) | ||
| 7 | #include "chrome/updater/mac/net/network.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/updater/linux/net/network.h" | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-chrome_updater_device_management_dm_storage_cc b/www/chromium/patches/patch-chrome_updater_device_management_dm_storage_cc new file mode 100644 index 0000000..e147867 --- /dev/null +++ b/www/chromium/patches/patch-chrome_updater_device_management_dm_storage_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/updater/device_management/dm_storage.cc | ||
| 2 | --- chrome/updater/device_management/dm_storage.cc.orig | ||
| 3 | +++ chrome/updater/device_management/dm_storage.cc | ||
| 4 | @@ -70,7 +70,7 @@ bool DeleteObsoletePolicies(const base::FilePath& cach | ||
| 5 | |||
| 6 | } // namespace | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // crbug.com/1276162 - implement. | ||
| 11 | DMStorage::DMStorage(const base::FilePath& policy_cache_root) | ||
| 12 | : policy_cache_root_(policy_cache_root) { | ||
diff --git a/www/chromium/patches/patch-chrome_updater_installer_cc b/www/chromium/patches/patch-chrome_updater_installer_cc new file mode 100644 index 0000000..5764c38 --- /dev/null +++ b/www/chromium/patches/patch-chrome_updater_installer_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/updater/installer.cc | ||
| 2 | --- chrome/updater/installer.cc.orig | ||
| 3 | +++ chrome/updater/installer.cc | ||
| 4 | @@ -225,7 +225,7 @@ absl::optional<base::FilePath> Installer::GetCurrentIn | ||
| 5 | return path->AppendASCII(pv_.GetString()); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | Installer::Result Installer::RunApplicationInstaller( | ||
| 11 | const base::FilePath& /*app_installer*/, | ||
| 12 | const std::string& /*arguments*/, | ||
diff --git a/www/chromium/patches/patch-chrome_updater_lib_util_cc b/www/chromium/patches/patch-chrome_updater_lib_util_cc new file mode 100644 index 0000000..b2577b0 --- /dev/null +++ b/www/chromium/patches/patch-chrome_updater_lib_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/updater/lib_util.cc | ||
| 2 | --- chrome/updater/lib_util.cc.orig | ||
| 3 | +++ chrome/updater/lib_util.cc | ||
| 4 | @@ -11,7 +11,7 @@ | ||
| 5 | |||
| 6 | namespace updater { | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | std::string UnescapeURLComponent(base::StringPiece escaped_text) { | ||
| 12 | return base::UnescapeURLComponent( | ||
diff --git a/www/chromium/patches/patch-chrome_updater_updater_cc b/www/chromium/patches/patch-chrome_updater_updater_cc new file mode 100644 index 0000000..e6fc24f --- /dev/null +++ b/www/chromium/patches/patch-chrome_updater_updater_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/updater/updater.cc | ||
| 2 | --- chrome/updater/updater.cc.orig | ||
| 3 | +++ chrome/updater/updater.cc | ||
| 4 | @@ -41,7 +41,7 @@ | ||
| 5 | #include "chrome/updater/win/win_util.h" | ||
| 6 | #elif BUILDFLAG(IS_MAC) | ||
| 7 | #include "chrome/updater/app/server/mac/server.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chrome/updater/app/server/linux/server.h" | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-chrome_updater_util_cc b/www/chromium/patches/patch-chrome_updater_util_cc new file mode 100644 index 0000000..4ac43be --- /dev/null +++ b/www/chromium/patches/patch-chrome_updater_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chrome/updater/util.cc | ||
| 2 | --- chrome/updater/util.cc.orig | ||
| 3 | +++ chrome/updater/util.cc | ||
| 4 | @@ -253,7 +253,7 @@ GURL AppendQueryParameter(const GURL& url, | ||
| 5 | return url.ReplaceComponents(replacements); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | // TODO(crbug.com/1276188) - implement the functions below. | ||
| 12 | absl::optional<base::FilePath> GetUpdaterFolderPath(UpdaterScope scope) { | ||
diff --git a/www/chromium/patches/patch-chrome_utility_services_cc b/www/chromium/patches/patch-chrome_utility_services_cc new file mode 100644 index 0000000..75bf2c2 --- /dev/null +++ b/www/chromium/patches/patch-chrome_utility_services_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chrome/utility/services.cc | ||
| 2 | --- chrome/utility/services.cc.orig | ||
| 3 | +++ chrome/utility/services.cc | ||
| 4 | @@ -63,7 +63,7 @@ | ||
| 5 | #include "chrome/services/file_util/file_util_service.h" // nogncheck | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(FULL_SAFE_BROWSING) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)) | ||
| 9 | +#if BUILDFLAG(FULL_SAFE_BROWSING) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)) | ||
| 10 | #include "chrome/services/file_util/document_analysis_service.h" // nogncheck | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -216,7 +216,7 @@ auto RunCupsIppParser( | ||
| 14 | } | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(FULL_SAFE_BROWSING) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)) | ||
| 18 | +#if BUILDFLAG(FULL_SAFE_BROWSING) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)) | ||
| 19 | auto RunDocumentAnalysis( | ||
| 20 | mojo::PendingReceiver<chrome::mojom::DocumentAnalysisService> receiver) { | ||
| 21 | return std::make_unique<DocumentAnalysisService>(std::move(receiver)); | ||
| 22 | @@ -382,7 +382,7 @@ void RegisterMainThreadServices(mojo::ServiceFactory& | ||
| 23 | services.Add(RunFileUtil); | ||
| 24 | #endif | ||
| 25 | |||
| 26 | -#if BUILDFLAG(FULL_SAFE_BROWSING) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)) | ||
| 27 | +#if BUILDFLAG(FULL_SAFE_BROWSING) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)) | ||
| 28 | services.Add(RunDocumentAnalysis); | ||
| 29 | #endif | ||
| 30 | |||
diff --git a/www/chromium/patches/patch-chromecast_browser_cast_browser_main_parts_cc b/www/chromium/patches/patch-chromecast_browser_cast_browser_main_parts_cc new file mode 100644 index 0000000..3796914 --- /dev/null +++ b/www/chromium/patches/patch-chromecast_browser_cast_browser_main_parts_cc | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | Index: chromecast/browser/cast_browser_main_parts.cc | ||
| 2 | --- chromecast/browser/cast_browser_main_parts.cc.orig | ||
| 3 | +++ chromecast/browser/cast_browser_main_parts.cc | ||
| 4 | @@ -93,7 +93,7 @@ | ||
| 5 | #include "ui/base/ui_base_switches.h" | ||
| 6 | #include "ui/gl/gl_switches.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <fontconfig/fontconfig.h> | ||
| 11 | #include <signal.h> | ||
| 12 | #include <sys/prctl.h> | ||
| 13 | @@ -148,7 +148,7 @@ | ||
| 14 | #include "extensions/browser/extension_prefs.h" // nogncheck | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_OZONE) | ||
| 18 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(USE_OZONE) | ||
| 19 | #include "chromecast/browser/exo/wayland_server_controller.h" | ||
| 20 | #endif | ||
| 21 | |||
| 22 | @@ -284,7 +284,7 @@ class CastViewsDelegate : public views::ViewsDelegate | ||
| 23 | |||
| 24 | #endif // defined(USE_AURA) | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | |||
| 29 | base::FilePath GetApplicationFontsDir() { | ||
| 30 | std::unique_ptr<base::Environment> env(base::Environment::Create()); | ||
| 31 | @@ -330,7 +330,7 @@ const DefaultCommandLineSwitch kDefaultSwitches[] = { | ||
| 32 | {cc::switches::kDisableThreadedAnimation, ""}, | ||
| 33 | #endif // BUILDFLAG(IS_ANDROID) | ||
| 34 | #endif // BUILDFLAG(IS_CAST_AUDIO_ONLY) | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | #if defined(ARCH_CPU_X86_FAMILY) | ||
| 38 | // This is needed for now to enable the x11 Ozone platform to work with | ||
| 39 | // current Linux/NVidia OpenGL drivers. | ||
| 40 | @@ -522,7 +522,7 @@ void CastBrowserMainParts::ToolkitInitialized() { | ||
| 41 | views_delegate_ = std::make_unique<CastViewsDelegate>(); | ||
| 42 | #endif // defined(USE_AURA) | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | base::FilePath dir_font = GetApplicationFontsDir(); | ||
| 47 | const FcChar8 *dir_font_char8 = reinterpret_cast<const FcChar8*>(dir_font.value().data()); | ||
| 48 | if (!FcConfigAppFontAddDir(gfx::GetGlobalFontConfig(), dir_font_char8)) { | ||
| 49 | @@ -753,7 +753,7 @@ int CastBrowserMainParts::PreMainMessageLoopRun() { | ||
| 50 | cast_browser_process_->browser_context()); | ||
| 51 | #endif | ||
| 52 | |||
| 53 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_OZONE) | ||
| 54 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(USE_OZONE) | ||
| 55 | wayland_server_controller_ = | ||
| 56 | std::make_unique<WaylandServerController>(window_manager_.get()); | ||
| 57 | #endif | ||
| 58 | @@ -828,7 +828,7 @@ void CastBrowserMainParts::PostMainMessageLoopRun() { | ||
| 59 | |||
| 60 | cast_browser_process_->cast_service()->Stop(); | ||
| 61 | |||
| 62 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_OZONE) | ||
| 63 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(USE_OZONE) | ||
| 64 | wayland_server_controller_.reset(); | ||
| 65 | #endif | ||
| 66 | #if BUILDFLAG(ENABLE_CHROMECAST_EXTENSIONS) | ||
diff --git a/www/chromium/patches/patch-chromecast_browser_cast_content_browser_client_cc b/www/chromium/patches/patch-chromecast_browser_cast_content_browser_client_cc new file mode 100644 index 0000000..88196ac --- /dev/null +++ b/www/chromium/patches/patch-chromecast_browser_cast_content_browser_client_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: chromecast/browser/cast_content_browser_client.cc | ||
| 2 | --- chromecast/browser/cast_content_browser_client.cc.orig | ||
| 3 | +++ chromecast/browser/cast_content_browser_client.cc | ||
| 4 | @@ -135,7 +135,7 @@ | ||
| 5 | #include "extensions/common/constants.h" // nogncheck | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_OZONE) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(USE_OZONE) | ||
| 10 | #include "chromecast/browser/webview/webview_controller.h" | ||
| 11 | #endif // (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_OZONE) | ||
| 12 | |||
| 13 | @@ -476,7 +476,7 @@ void CastContentBrowserClient::AppendExtraCommandLineS | ||
| 14 | switches::kAudioOutputChannels)); | ||
| 15 | } | ||
| 16 | } else if (process_type == switches::kGpuProcess) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Necessary for accelerated 2d canvas. By default on Linux, Chromium | ||
| 20 | // assumes GLES2 contexts can be lost to a power-save mode, which breaks GPU | ||
| 21 | // canvas apps. | ||
| 22 | @@ -872,7 +872,7 @@ CastContentBrowserClient::CreateThrottlesForNavigation | ||
| 23 | handle, general_audience_browsing_service_.get())); | ||
| 24 | } | ||
| 25 | |||
| 26 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_OZONE) | ||
| 27 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(USE_OZONE) | ||
| 28 | auto webview_throttle = WebviewController::MaybeGetNavigationThrottle(handle); | ||
| 29 | if (webview_throttle) { | ||
| 30 | throttles.push_back(std::move(webview_throttle)); | ||
diff --git a/www/chromium/patches/patch-chromecast_browser_cast_content_browser_client_receiver_bindings_cc b/www/chromium/patches/patch-chromecast_browser_cast_content_browser_client_receiver_bindings_cc new file mode 100644 index 0000000..ab022da --- /dev/null +++ b/www/chromium/patches/patch-chromecast_browser_cast_content_browser_client_receiver_bindings_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chromecast/browser/cast_content_browser_client_receiver_bindings.cc | ||
| 2 | --- chromecast/browser/cast_content_browser_client_receiver_bindings.cc.orig | ||
| 3 | +++ chromecast/browser/cast_content_browser_client_receiver_bindings.cc | ||
| 4 | @@ -35,7 +35,7 @@ | ||
| 5 | #include "media/mojo/services/media_service.h" // nogncheck | ||
| 6 | #endif // BUILDFLAG(ENABLE_CAST_RENDERER) | ||
| 7 | |||
| 8 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_OZONE) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(USE_OZONE) | ||
| 10 | #include "chromecast/browser/webview/js_channel_service.h" | ||
| 11 | #include "chromecast/common/mojom/js_channel.mojom.h" | ||
| 12 | #endif | ||
| 13 | @@ -234,7 +234,7 @@ void CastContentBrowserClient::RunServiceInstance( | ||
| 14 | void CastContentBrowserClient::BindHostReceiverForRenderer( | ||
| 15 | content::RenderProcessHost* render_process_host, | ||
| 16 | mojo::GenericPendingReceiver receiver) { | ||
| 17 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_OZONE) | ||
| 18 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(USE_OZONE) | ||
| 19 | if (auto r = receiver.As<::chromecast::mojom::JsChannelBindingProvider>()) { | ||
| 20 | JsChannelService::Create(render_process_host, std::move(r), | ||
| 21 | base::ThreadTaskRunnerHandle::Get()); | ||
diff --git a/www/chromium/patches/patch-chromecast_media_base_default_monotonic_clock_cc b/www/chromium/patches/patch-chromecast_media_base_default_monotonic_clock_cc new file mode 100644 index 0000000..037d9b0 --- /dev/null +++ b/www/chromium/patches/patch-chromecast_media_base_default_monotonic_clock_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: chromecast/media/base/default_monotonic_clock.cc | ||
| 2 | --- chromecast/media/base/default_monotonic_clock.cc.orig | ||
| 3 | +++ chromecast/media/base/default_monotonic_clock.cc | ||
| 4 | @@ -11,7 +11,7 @@ | ||
| 5 | #include "base/time/time.h" | ||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "chromecast/media/base/buildflags.h" | ||
| 11 | #endif // BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || | ||
| 12 | // BUILDFLAG(IS_CHROMEOS) | ||
| 13 | @@ -28,7 +28,7 @@ std::unique_ptr<MonotonicClock> MonotonicClock::Create | ||
| 14 | return std::make_unique<DefaultMonotonicClock>(); | ||
| 15 | } | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | int64_t MonotonicClockNow() { | ||
| 20 | timespec now = {0, 0}; | ||
| 21 | #if BUILDFLAG(MEDIA_CLOCK_MONOTONIC_RAW) | ||
diff --git a/www/chromium/patches/patch-chromecast_renderer_cast_content_renderer_client_cc b/www/chromium/patches/patch-chromecast_renderer_cast_content_renderer_client_cc new file mode 100644 index 0000000..45c3c7e --- /dev/null +++ b/www/chromium/patches/patch-chromecast_renderer_cast_content_renderer_client_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: chromecast/renderer/cast_content_renderer_client.cc | ||
| 2 | --- chromecast/renderer/cast_content_renderer_client.cc.orig | ||
| 3 | +++ chromecast/renderer/cast_content_renderer_client.cc | ||
| 4 | @@ -194,7 +194,7 @@ void CastContentRendererClient::RenderFrameCreated( | ||
| 5 | dispatcher->OnRenderFrameCreated(render_frame); | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_OZONE) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(USE_OZONE) | ||
| 10 | // JsChannelBindings destroys itself when the RenderFrame is destroyed. | ||
| 11 | JsChannelBindings::Create(render_frame); | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-components_autofill_core_browser_autofill_external_delegate_cc b/www/chromium/patches/patch-components_autofill_core_browser_autofill_external_delegate_cc new file mode 100644 index 0000000..9f78504 --- /dev/null +++ b/www/chromium/patches/patch-components_autofill_core_browser_autofill_external_delegate_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/autofill/core/browser/autofill_external_delegate.cc | ||
| 2 | --- components/autofill/core/browser/autofill_external_delegate.cc.orig | ||
| 3 | +++ components/autofill/core/browser/autofill_external_delegate.cc | ||
| 4 | @@ -130,7 +130,7 @@ void AutofillExternalDelegate::OnSuggestionsReturned( | ||
| 5 | // Append the "Hide Suggestions" menu item for only Autofill Address and | ||
| 6 | // Autocomplete popups. | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_APPLE) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | if (base::FeatureList::IsEnabled( | ||
| 11 | features::kAutofillEnableHideSuggestionsUI)) { | ||
| 12 | // If the user has selected a suggestion, it indicates the suggestions are | ||
diff --git a/www/chromium/patches/patch-components_autofill_core_browser_personal_data_manager_cc b/www/chromium/patches/patch-components_autofill_core_browser_personal_data_manager_cc new file mode 100644 index 0000000..dde6e96 --- /dev/null +++ b/www/chromium/patches/patch-components_autofill_core_browser_personal_data_manager_cc | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: components/autofill/core/browser/personal_data_manager.cc | ||
| 2 | --- components/autofill/core/browser/personal_data_manager.cc.orig | ||
| 3 | +++ components/autofill/core/browser/personal_data_manager.cc | ||
| 4 | @@ -1986,7 +1986,8 @@ bool PersonalDataManager::ShouldShowCardsFromAccountOp | ||
| 5 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 6 | // of lacros-chrome is complete. | ||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || \ | ||
| 8 | - BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 10 | + BUILDFLAG(IS_BSD) | ||
| 11 | // This option should only be shown for users that have not enabled the Sync | ||
| 12 | // Feature and that have server credit cards available. | ||
| 13 | if (!sync_service_ || sync_service_->IsSyncFeatureEnabled() || | ||
diff --git a/www/chromium/patches/patch-components_autofill_core_common_autofill_payments_features_cc b/www/chromium/patches/patch-components_autofill_core_common_autofill_payments_features_cc new file mode 100644 index 0000000..ab81036 --- /dev/null +++ b/www/chromium/patches/patch-components_autofill_core_common_autofill_payments_features_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/autofill/core/common/autofill_payments_features.cc | ||
| 2 | --- components/autofill/core/common/autofill_payments_features.cc.orig | ||
| 3 | +++ components/autofill/core/common/autofill_payments_features.cc | ||
| 4 | @@ -192,7 +192,7 @@ const base::Feature kAutofillUpstreamAllowAllEmailDoma | ||
| 5 | bool ShouldShowImprovedUserConsentForCreditCardSave() { | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || \ | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) || \ | ||
| 10 | (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 11 | // The new user consent UI is fully launched on MacOS, Windows and Linux. | ||
| 12 | return true; | ||
diff --git a/www/chromium/patches/patch-components_autofill_core_common_autofill_util_cc b/www/chromium/patches/patch-components_autofill_core_common_autofill_util_cc new file mode 100644 index 0000000..9cf5886 --- /dev/null +++ b/www/chromium/patches/patch-components_autofill_core_common_autofill_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/autofill/core/common/autofill_util.cc | ||
| 2 | --- components/autofill/core/common/autofill_util.cc.orig | ||
| 3 | +++ components/autofill/core/common/autofill_util.cc | ||
| 4 | @@ -154,7 +154,7 @@ bool SanitizedFieldIsEmpty(const std::u16string& value | ||
| 5 | |||
| 6 | bool ShouldAutoselectFirstSuggestionOnArrowDown() { | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | return true; | ||
| 11 | #else | ||
| 12 | return false; | ||
diff --git a/www/chromium/patches/patch-components_autofill_payments_strings_grdp b/www/chromium/patches/patch-components_autofill_payments_strings_grdp new file mode 100644 index 0000000..998c1ad --- /dev/null +++ b/www/chromium/patches/patch-components_autofill_payments_strings_grdp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/autofill_payments_strings.grdp | ||
| 2 | --- components/autofill_payments_strings.grdp.orig | ||
| 3 | +++ components/autofill_payments_strings.grdp | ||
| 4 | @@ -118,7 +118,7 @@ | ||
| 5 | <message name="IDS_AUTOFILL_FIX_FLOW_PROMPT_SAVE_CARD_LABEL" desc="Text to show on the button to save the card to Google when the fix flow dialog is shown after the Autofill save card prompt." formatter_data="android_java"> | ||
| 6 | Save card | ||
| 7 | </message> | ||
| 8 | - <if expr="is_linux and not chromeos"> | ||
| 9 | + <if expr="is_posix and not chromeos"> | ||
| 10 | <then> | ||
| 11 | <message name="IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_TO_CLOUD" desc="Title text for the Autofill save card prompt when the card is to be saved by uploading it to Google Payments and also saved locally. The prompt can be either a bubble or an infobar."> | ||
| 12 | Do you want to save this card to your Google Account? | ||
diff --git a/www/chromium/patches/patch-components_cast_channel_cast_message_util_cc b/www/chromium/patches/patch-components_cast_channel_cast_message_util_cc new file mode 100644 index 0000000..c880b80 --- /dev/null +++ b/www/chromium/patches/patch-components_cast_channel_cast_message_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/cast_channel/cast_message_util.cc | ||
| 2 | --- components/cast_channel/cast_message_util.cc.orig | ||
| 3 | +++ components/cast_channel/cast_message_util.cc | ||
| 4 | @@ -168,7 +168,7 @@ int GetVirtualConnectPlatformValue() { | ||
| 5 | return 4; | ||
| 6 | #elif BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 7 | return 5; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | return 6; | ||
| 11 | #else | ||
| 12 | return 0; | ||
diff --git a/www/chromium/patches/patch-components_content_settings_core_browser_website_settings_registry_cc b/www/chromium/patches/patch-components_content_settings_core_browser_website_settings_registry_cc new file mode 100644 index 0000000..d93b243 --- /dev/null +++ b/www/chromium/patches/patch-components_content_settings_core_browser_website_settings_registry_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/content_settings/core/browser/website_settings_registry.cc | ||
| 2 | --- components/content_settings/core/browser/website_settings_registry.cc.orig | ||
| 3 | +++ components/content_settings/core/browser/website_settings_registry.cc | ||
| 4 | @@ -66,7 +66,7 @@ const WebsiteSettingsInfo* WebsiteSettingsRegistry::Re | ||
| 5 | #if BUILDFLAG(IS_WIN) | ||
| 6 | if (!(platform & PLATFORM_WINDOWS)) | ||
| 7 | return nullptr; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | if (!(platform & PLATFORM_LINUX)) | ||
| 11 | return nullptr; | ||
| 12 | #elif BUILDFLAG(IS_MAC) | ||
diff --git a/www/chromium/patches/patch-components_cookie_config_cookie_store_util_cc b/www/chromium/patches/patch-components_cookie_config_cookie_store_util_cc new file mode 100644 index 0000000..19243cc --- /dev/null +++ b/www/chromium/patches/patch-components_cookie_config_cookie_store_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/cookie_config/cookie_store_util.cc | ||
| 2 | --- components/cookie_config/cookie_store_util.cc.orig | ||
| 3 | +++ components/cookie_config/cookie_store_util.cc | ||
| 4 | @@ -12,7 +12,7 @@ | ||
| 5 | namespace cookie_config { | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | namespace { | ||
| 11 | |||
| 12 | // Use the operating system's mechanisms to encrypt cookies before writing | ||
diff --git a/www/chromium/patches/patch-components_crash_content_browser_BUILD_gn b/www/chromium/patches/patch-components_crash_content_browser_BUILD_gn new file mode 100644 index 0000000..8f5f818 --- /dev/null +++ b/www/chromium/patches/patch-components_crash_content_browser_BUILD_gn | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: components/crash/content/browser/BUILD.gn | ||
| 2 | --- components/crash/content/browser/BUILD.gn.orig | ||
| 3 | +++ components/crash/content/browser/BUILD.gn | ||
| 4 | @@ -21,7 +21,7 @@ source_set("browser") { | ||
| 5 | "//content/public/common", | ||
| 6 | ] | ||
| 7 | |||
| 8 | - if (is_linux || is_chromeos || is_android) { | ||
| 9 | + if ((is_linux && !is_bsd) || is_chromeos || is_android) { | ||
| 10 | # Want this file on both Linux and Android. | ||
| 11 | sources += [ | ||
| 12 | "crash_handler_host_linux.cc", | ||
| 13 | @@ -37,7 +37,7 @@ source_set("browser") { | ||
| 14 | |||
| 15 | # This is not in the GYP build but this target includes breakpad client | ||
| 16 | # headers, so add the dependency here. | ||
| 17 | - if ((is_posix && !is_ios) || is_fuchsia) { | ||
| 18 | + if ((is_posix && !is_ios && !is_bsd) || is_fuchsia) { | ||
| 19 | configs += [ "//third_party/breakpad:client_config" ] | ||
| 20 | public_configs = [ "//third_party/breakpad:client_config" ] | ||
| 21 | } | ||
| 22 | @@ -59,7 +59,7 @@ source_set("browser") { | ||
| 23 | "//components/crash/android:jni_headers", | ||
| 24 | "//mojo/public/cpp/bindings", | ||
| 25 | ] | ||
| 26 | - } else { | ||
| 27 | + } else if (!is_bsd) { | ||
| 28 | deps += [ "//third_party/breakpad:client" ] | ||
| 29 | } | ||
| 30 | } | ||
diff --git a/www/chromium/patches/patch-components_crash_core_app_BUILD_gn b/www/chromium/patches/patch-components_crash_core_app_BUILD_gn new file mode 100644 index 0000000..25c2b42 --- /dev/null +++ b/www/chromium/patches/patch-components_crash_core_app_BUILD_gn | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | Index: components/crash/core/app/BUILD.gn | ||
| 2 | --- components/crash/core/app/BUILD.gn.orig | ||
| 3 | +++ components/crash/core/app/BUILD.gn | ||
| 4 | @@ -52,7 +52,7 @@ static_library("app") { | ||
| 5 | "crashpad.h", | ||
| 6 | ] | ||
| 7 | |||
| 8 | - if (is_linux || is_chromeos) { | ||
| 9 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | sources += [ | ||
| 11 | "breakpad_linux.cc", | ||
| 12 | "breakpad_linux.h", | ||
| 13 | @@ -61,6 +61,10 @@ static_library("app") { | ||
| 14 | ] | ||
| 15 | } | ||
| 16 | |||
| 17 | + if (is_bsd) { | ||
| 18 | + sources -= [ "crashpad.cc" ] | ||
| 19 | + } | ||
| 20 | + | ||
| 21 | defines = [ "CRASH_IMPLEMENTATION" ] | ||
| 22 | |||
| 23 | public_deps = [ ":lib" ] | ||
| 24 | @@ -88,7 +92,7 @@ static_library("app") { | ||
| 25 | libs = [ "log" ] | ||
| 26 | } | ||
| 27 | |||
| 28 | - if (is_android || is_linux || is_chromeos) { | ||
| 29 | + if ((is_android || is_linux || is_chromeos) && !is_bsd) { | ||
| 30 | deps += [ | ||
| 31 | "//base:base_static", | ||
| 32 | "//components/crash/core/common", | ||
| 33 | @@ -96,7 +100,7 @@ static_library("app") { | ||
| 34 | ] | ||
| 35 | } | ||
| 36 | |||
| 37 | - if (is_linux || is_chromeos) { | ||
| 38 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 39 | deps += [ "//third_party/breakpad:client" ] | ||
| 40 | } | ||
| 41 | |||
| 42 | @@ -216,11 +220,6 @@ if (is_mac || is_android || is_linux || is_chromeos) { | ||
| 43 | # define custom UserStreamDataSources. | ||
| 44 | executable("chrome_crashpad_handler") { | ||
| 45 | sources = [ "chrome_crashpad_handler.cc" ] | ||
| 46 | - | ||
| 47 | - deps = [ | ||
| 48 | - ":crashpad_handler_main", | ||
| 49 | - "//third_party/crashpad/crashpad/handler", | ||
| 50 | - ] | ||
| 51 | |||
| 52 | if (is_mac && (is_component_build || is_asan)) { | ||
| 53 | ldflags = [ | ||
diff --git a/www/chromium/patches/patch-components_crash_core_app_chrome_crashpad_handler_cc b/www/chromium/patches/patch-components_crash_core_app_chrome_crashpad_handler_cc new file mode 100644 index 0000000..f943e7d --- /dev/null +++ b/www/chromium/patches/patch-components_crash_core_app_chrome_crashpad_handler_cc | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: components/crash/core/app/chrome_crashpad_handler.cc | ||
| 2 | --- components/crash/core/app/chrome_crashpad_handler.cc.orig | ||
| 3 | +++ components/crash/core/app/chrome_crashpad_handler.cc | ||
| 4 | @@ -6,5 +6,9 @@ | ||
| 5 | extern "C" int CrashpadHandlerMain(int argc, char* argv[]); | ||
| 6 | |||
| 7 | int main(int argc, char* argv[]) { | ||
| 8 | +#if defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 9 | + return -1; | ||
| 10 | +#else | ||
| 11 | return CrashpadHandlerMain(argc, argv); | ||
| 12 | +#endif | ||
| 13 | } | ||
diff --git a/www/chromium/patches/patch-components_crash_core_browser_crash_upload_list_crashpad_cc b/www/chromium/patches/patch-components_crash_core_browser_crash_upload_list_crashpad_cc new file mode 100644 index 0000000..d0d697a --- /dev/null +++ b/www/chromium/patches/patch-components_crash_core_browser_crash_upload_list_crashpad_cc | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: components/crash/core/browser/crash_upload_list_crashpad.cc | ||
| 2 | --- components/crash/core/browser/crash_upload_list_crashpad.cc.orig | ||
| 3 | +++ components/crash/core/browser/crash_upload_list_crashpad.cc | ||
| 4 | @@ -51,9 +51,13 @@ std::vector<UploadList::UploadInfo> CrashUploadListCra | ||
| 5 | |||
| 6 | void CrashUploadListCrashpad::ClearUploadList(const base::Time& begin, | ||
| 7 | const base::Time& end) { | ||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | crash_reporter::ClearReportsBetween(begin, end); | ||
| 10 | +#endif | ||
| 11 | } | ||
| 12 | |||
| 13 | void CrashUploadListCrashpad::RequestSingleUpload(const std::string& local_id) { | ||
| 14 | +#if !defined(OS_BSD) | ||
| 15 | crash_reporter::RequestSingleCrashUpload(local_id); | ||
| 16 | +#endif | ||
| 17 | } | ||
diff --git a/www/chromium/patches/patch-components_crash_core_common_BUILD_gn b/www/chromium/patches/patch-components_crash_core_common_BUILD_gn new file mode 100644 index 0000000..443b4c8 --- /dev/null +++ b/www/chromium/patches/patch-components_crash_core_common_BUILD_gn | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: components/crash/core/common/BUILD.gn | ||
| 2 | --- components/crash/core/common/BUILD.gn.orig | ||
| 3 | +++ components/crash/core/common/BUILD.gn | ||
| 4 | @@ -8,7 +8,7 @@ import("//components/gwp_asan/buildflags/buildflags.gn | ||
| 5 | |||
| 6 | declare_args() { | ||
| 7 | # If set to true, this will stub out and disable the entire crash key system. | ||
| 8 | - use_crash_key_stubs = is_fuchsia | ||
| 9 | + use_crash_key_stubs = is_fuchsia || is_bsd | ||
| 10 | } | ||
| 11 | |||
| 12 | group("common") { | ||
| 13 | @@ -190,7 +190,7 @@ source_set("unit_tests") { | ||
| 14 | sources += [ "crash_key_breakpad_ios_unittest.cc" ] | ||
| 15 | deps += [ "//third_party/breakpad:client" ] | ||
| 16 | include_dirs = [ "//third_party/breakpad/breakpad/src/" ] | ||
| 17 | - } else if (!is_mac && !is_win && !is_fuchsia && !is_android) { | ||
| 18 | + } else if (!is_mac && !is_win && !is_fuchsia && !is_android && !is_bsd) { | ||
| 19 | include_dirs = [ "//third_party/breakpad/breakpad/src/" ] | ||
| 20 | sources += [ "crash_key_breakpad_unittest.cc" ] | ||
| 21 | } | ||
diff --git a/www/chromium/patches/patch-components_discardable_memory_service_discardable_shared_memory_manager_cc b/www/chromium/patches/patch-components_discardable_memory_service_discardable_shared_memory_manager_cc new file mode 100644 index 0000000..856f3fb --- /dev/null +++ b/www/chromium/patches/patch-components_discardable_memory_service_discardable_shared_memory_manager_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/discardable_memory/service/discardable_shared_memory_manager.cc | ||
| 2 | --- components/discardable_memory/service/discardable_shared_memory_manager.cc.orig | ||
| 3 | +++ components/discardable_memory/service/discardable_shared_memory_manager.cc | ||
| 4 | @@ -171,7 +171,7 @@ int64_t GetDefaultMemoryLimit() { | ||
| 5 | // Limits the number of FDs used to 32, assuming a 4MB allocation size. | ||
| 6 | int64_t max_default_memory_limit = 128 * kMegabyte; | ||
| 7 | #else | ||
| 8 | - int64_t max_default_memory_limit = 512 * kMegabyte; | ||
| 9 | + int64_t max_default_memory_limit = 128 * kMegabyte; | ||
| 10 | #endif | ||
| 11 | |||
| 12 | // Use 1/8th of discardable memory on low-end devices. | ||
diff --git a/www/chromium/patches/patch-components_embedder_support_user_agent_utils_unittest_cc b/www/chromium/patches/patch-components_embedder_support_user_agent_utils_unittest_cc new file mode 100644 index 0000000..1a70d26 --- /dev/null +++ b/www/chromium/patches/patch-components_embedder_support_user_agent_utils_unittest_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: components/embedder_support/user_agent_utils_unittest.cc | ||
| 2 | --- components/embedder_support/user_agent_utils_unittest.cc.orig | ||
| 3 | +++ components/embedder_support/user_agent_utils_unittest.cc | ||
| 4 | @@ -54,7 +54,7 @@ namespace { | ||
| 5 | static constexpr char kChromeProductVersionRegex[] = | ||
| 6 | "Chrome/([0-9]+).([0-9]+).([0-9]+).([0-9]+)"; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | std::string GetMachine() { | ||
| 11 | struct utsname unixinfo; | ||
| 12 | uname(&unixinfo); | ||
| 13 | @@ -162,7 +162,7 @@ void CheckUserAgentStringOrdering(bool mobile_device) | ||
| 14 | int value; | ||
| 15 | ASSERT_TRUE(base::StringToInt(pieces[i], &value)); | ||
| 16 | } | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | // X11; Linux x86_64 | ||
| 20 | ASSERT_EQ(2u, pieces.size()); | ||
| 21 | ASSERT_EQ("X11", pieces[0]); | ||
diff --git a/www/chromium/patches/patch-components_feature_engagement_public_event_constants_cc b/www/chromium/patches/patch-components_feature_engagement_public_event_constants_cc new file mode 100644 index 0000000..bee4ddd --- /dev/null +++ b/www/chromium/patches/patch-components_feature_engagement_public_event_constants_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/feature_engagement/public/event_constants.cc | ||
| 2 | --- components/feature_engagement/public/event_constants.cc.orig | ||
| 3 | +++ components/feature_engagement/public/event_constants.cc | ||
| 4 | @@ -11,7 +11,7 @@ namespace feature_engagement { | ||
| 5 | namespace events { | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | const char kNewTabOpened[] = "new_tab_opened"; | ||
| 11 | const char kSixthTabOpened[] = "sixth_tab_opened"; | ||
| 12 | const char kTabGroupCreated[] = "tab_group_created"; | ||
diff --git a/www/chromium/patches/patch-components_feature_engagement_public_event_constants_h b/www/chromium/patches/patch-components_feature_engagement_public_event_constants_h new file mode 100644 index 0000000..e837399 --- /dev/null +++ b/www/chromium/patches/patch-components_feature_engagement_public_event_constants_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/feature_engagement/public/event_constants.h | ||
| 2 | --- components/feature_engagement/public/event_constants.h.orig | ||
| 3 | +++ components/feature_engagement/public/event_constants.h | ||
| 4 | @@ -13,7 +13,7 @@ namespace events { | ||
| 5 | |||
| 6 | // Desktop | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | // The user has explicitly opened a new tab via an entry point from inside of | ||
| 11 | // Chrome. | ||
| 12 | extern const char kNewTabOpened[]; | ||
diff --git a/www/chromium/patches/patch-components_feature_engagement_public_feature_configurations_cc b/www/chromium/patches/patch-components_feature_engagement_public_feature_configurations_cc new file mode 100644 index 0000000..a214e8e --- /dev/null +++ b/www/chromium/patches/patch-components_feature_engagement_public_feature_configurations_cc | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Index: components/feature_engagement/public/feature_configurations.cc | ||
| 2 | --- components/feature_engagement/public/feature_configurations.cc.orig | ||
| 3 | +++ components/feature_engagement/public/feature_configurations.cc | ||
| 4 | @@ -35,7 +35,7 @@ FeatureConfig CreateAlwaysTriggerConfig(const base::Fe | ||
| 5 | absl::optional<FeatureConfig> GetClientSideFeatureConfig( | ||
| 6 | const base::Feature* feature) { | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | if (kIPHPasswordsAccountStorageFeature.name == feature->name) { | ||
| 11 | absl::optional<FeatureConfig> config = FeatureConfig(); | ||
| 12 | config->valid = true; | ||
| 13 | @@ -834,7 +834,8 @@ absl::optional<FeatureConfig> GetClientSideFeatureConf | ||
| 14 | #endif // BUILDFLAG(IS_ANDROID) | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) | ||
| 18 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 19 | + BUILDFLAG(IS_BSD) | ||
| 20 | if (kIPHAutofillVirtualCardSuggestionFeature.name == feature->name) { | ||
| 21 | // A config that allows the virtual card credit card suggestion IPH to be | ||
| 22 | // shown when: | ||
diff --git a/www/chromium/patches/patch-components_feature_engagement_public_feature_constants_cc b/www/chromium/patches/patch-components_feature_engagement_public_feature_constants_cc new file mode 100644 index 0000000..baeb18b --- /dev/null +++ b/www/chromium/patches/patch-components_feature_engagement_public_feature_constants_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: components/feature_engagement/public/feature_constants.cc | ||
| 2 | --- components/feature_engagement/public/feature_constants.cc.orig | ||
| 3 | +++ components/feature_engagement/public/feature_constants.cc | ||
| 4 | @@ -22,7 +22,7 @@ const base::Feature kIPHDummyFeature{"IPH_Dummy", | ||
| 5 | base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | const base::Feature kIPHDesktopSharedHighlightingFeature{ | ||
| 11 | "IPH_DesktopSharedHighlighting", base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 12 | const base::Feature kIPHDesktopTabGroupsNewGroupFeature{ | ||
| 13 | @@ -286,7 +286,7 @@ const base::Feature kIPHDefaultSiteViewFeature{ | ||
| 14 | "IPH_DefaultSiteView", base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 15 | #endif // BUILDFLAG(IS_IOS) | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) || \ | ||
| 19 | BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) | ||
| 20 | const base::Feature kIPHAutofillVirtualCardSuggestionFeature{ | ||
| 21 | "IPH_AutofillVirtualCardSuggestion", base::FEATURE_ENABLED_BY_DEFAULT}; | ||
diff --git a/www/chromium/patches/patch-components_feature_engagement_public_feature_constants_h b/www/chromium/patches/patch-components_feature_engagement_public_feature_constants_h new file mode 100644 index 0000000..def712c --- /dev/null +++ b/www/chromium/patches/patch-components_feature_engagement_public_feature_constants_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: components/feature_engagement/public/feature_constants.h | ||
| 2 | --- components/feature_engagement/public/feature_constants.h.orig | ||
| 3 | +++ components/feature_engagement/public/feature_constants.h | ||
| 4 | @@ -30,7 +30,7 @@ extern const base::Feature kUseClientConfigIPH; | ||
| 5 | extern const base::Feature kIPHDummyFeature; | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | extern const base::Feature kIPHDesktopSharedHighlightingFeature; | ||
| 11 | extern const base::Feature kIPHDesktopTabGroupsNewGroupFeature; | ||
| 12 | extern const base::Feature kIPHFocusHelpBubbleScreenReaderPromoFeature; | ||
| 13 | @@ -174,7 +174,7 @@ extern const base::Feature kIPHDiscoverFeedHeaderFeatu | ||
| 14 | extern const base::Feature kIPHDefaultSiteViewFeature; | ||
| 15 | #endif // BUILDFLAG(IS_IOS) | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) || \ | ||
| 19 | BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) | ||
| 20 | extern const base::Feature kIPHAutofillVirtualCardSuggestionFeature; | ||
| 21 | extern const base::Feature kIPHUpdatedConnectionSecurityIndicatorsFeature; | ||
diff --git a/www/chromium/patches/patch-components_feature_engagement_public_feature_list_cc b/www/chromium/patches/patch-components_feature_engagement_public_feature_list_cc new file mode 100644 index 0000000..4cfc1fc --- /dev/null +++ b/www/chromium/patches/patch-components_feature_engagement_public_feature_list_cc | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Index: components/feature_engagement/public/feature_list.cc | ||
| 2 | --- components/feature_engagement/public/feature_list.cc.orig | ||
| 3 | +++ components/feature_engagement/public/feature_list.cc | ||
| 4 | @@ -121,7 +121,7 @@ const base::Feature* const kAllFeatures[] = { | ||
| 5 | &kIPHDefaultSiteViewFeature, | ||
| 6 | #endif // BUILDFLAG(IS_IOS) | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | &kIPHDesktopTabGroupsNewGroupFeature, | ||
| 11 | &kIPHFocusHelpBubbleScreenReaderPromoFeature, | ||
| 12 | &kIPHGMCCastStartStopFeature, | ||
| 13 | @@ -143,7 +143,8 @@ const base::Feature* const kAllFeatures[] = { | ||
| 14 | // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) | ||
| 18 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 19 | + BUILDFLAG(IS_BSD) | ||
| 20 | &kIPHAutofillVirtualCardSuggestionFeature, | ||
| 21 | #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || | ||
| 22 | // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || | ||
diff --git a/www/chromium/patches/patch-components_feature_engagement_public_feature_list_h b/www/chromium/patches/patch-components_feature_engagement_public_feature_list_h new file mode 100644 index 0000000..5182ca1 --- /dev/null +++ b/www/chromium/patches/patch-components_feature_engagement_public_feature_list_h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | Index: components/feature_engagement/public/feature_list.h | ||
| 2 | --- components/feature_engagement/public/feature_list.h.orig | ||
| 3 | +++ components/feature_engagement/public/feature_list.h | ||
| 4 | @@ -224,7 +224,7 @@ DEFINE_VARIATION_PARAM(kIPHDefaultSiteViewFeature, "IP | ||
| 5 | #endif // BUILDFLAG(IS_IOS) | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | DEFINE_VARIATION_PARAM(kIPHDesktopTabGroupsNewGroupFeature, | ||
| 11 | "IPH_DesktopTabGroupsNewGroup"); | ||
| 12 | DEFINE_VARIATION_PARAM(kIPHFocusModeFeature, "IPH_FocusMode"); | ||
| 13 | @@ -254,7 +254,8 @@ DEFINE_VARIATION_PARAM(kIPHDesktopSharedHighlightingFe | ||
| 14 | // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) | ||
| 18 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 19 | + BUILDFLAG(IS_BSD) | ||
| 20 | DEFINE_VARIATION_PARAM(kIPHAutofillVirtualCardSuggestionFeature, | ||
| 21 | "IPH_AutofillVirtualCardSuggestion"); | ||
| 22 | #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || | ||
| 23 | @@ -359,7 +360,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation | ||
| 24 | VARIATION_ENTRY(kIPHDiscoverFeedHeaderFeature), | ||
| 25 | VARIATION_ENTRY(kIPHDefaultSiteViewFeature), | ||
| 26 | #elif BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 27 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 28 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 29 | VARIATION_ENTRY(kIPHDesktopTabGroupsNewGroupFeature), | ||
| 30 | VARIATION_ENTRY(kIPHFocusModeFeature), | ||
| 31 | VARIATION_ENTRY(kIPHGlobalMediaControls), | ||
| 32 | @@ -382,7 +383,8 @@ constexpr flags_ui::FeatureEntry::FeatureVariation | ||
| 33 | // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 34 | |||
| 35 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \ | ||
| 36 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) | ||
| 37 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 38 | + BUILDFLAG(IS_BSD) | ||
| 39 | VARIATION_ENTRY(kIPHAutofillVirtualCardSuggestionFeature), | ||
| 40 | #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || | ||
| 41 | // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || | ||
diff --git a/www/chromium/patches/patch-components_feed_core_proto_v2_wire_version_proto b/www/chromium/patches/patch-components_feed_core_proto_v2_wire_version_proto new file mode 100644 index 0000000..f1baaf2 --- /dev/null +++ b/www/chromium/patches/patch-components_feed_core_proto_v2_wire_version_proto | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: components/feed/core/proto/v2/wire/version.proto | ||
| 2 | --- components/feed/core/proto/v2/wire/version.proto.orig | ||
| 3 | +++ components/feed/core/proto/v2/wire/version.proto | ||
| 4 | @@ -25,8 +25,8 @@ message Version { | ||
| 5 | BETA = 3; | ||
| 6 | RELEASE = 4; | ||
| 7 | } | ||
| 8 | - optional int32 major = 1; | ||
| 9 | - optional int32 minor = 2; | ||
| 10 | + optional int32 gmajor = 1; | ||
| 11 | + optional int32 gminor = 2; | ||
| 12 | optional int32 build = 3; | ||
| 13 | optional int32 revision = 4; | ||
| 14 | optional Architecture architecture = 5; | ||
diff --git a/www/chromium/patches/patch-components_feed_core_v2_feed_network_impl_unittest_cc b/www/chromium/patches/patch-components_feed_core_v2_feed_network_impl_unittest_cc new file mode 100644 index 0000000..ad79f84 --- /dev/null +++ b/www/chromium/patches/patch-components_feed_core_v2_feed_network_impl_unittest_cc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: components/feed/core/v2/feed_network_impl_unittest.cc | ||
| 2 | --- components/feed/core/v2/feed_network_impl_unittest.cc.orig | ||
| 3 | +++ components/feed/core/v2/feed_network_impl_unittest.cc | ||
| 4 | @@ -678,8 +678,8 @@ TEST_F(FeedNetworkTest, SendApiRequest_DecodesClientIn | ||
| 5 | |||
| 6 | EXPECT_EQ(feedwire::ClientInfo::CHROME_ANDROID, client_info.app_type()); | ||
| 7 | EXPECT_EQ(feedwire::Version::RELEASE, client_info.app_version().build_type()); | ||
| 8 | - EXPECT_EQ(1, client_info.app_version().major()); | ||
| 9 | - EXPECT_EQ(2, client_info.app_version().minor()); | ||
| 10 | + EXPECT_EQ(1, client_info.app_version().gmajor()); | ||
| 11 | + EXPECT_EQ(2, client_info.app_version().gminor()); | ||
| 12 | EXPECT_EQ(3, client_info.app_version().build()); | ||
| 13 | EXPECT_EQ(4, client_info.app_version().revision()); | ||
| 14 | EXPECT_FALSE(client_info.chrome_client_info().start_surface()); | ||
diff --git a/www/chromium/patches/patch-components_feed_core_v2_proto_util_cc b/www/chromium/patches/patch-components_feed_core_v2_proto_util_cc new file mode 100644 index 0000000..c35c4cb --- /dev/null +++ b/www/chromium/patches/patch-components_feed_core_v2_proto_util_cc | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | Index: components/feed/core/v2/proto_util.cc | ||
| 2 | --- components/feed/core/v2/proto_util.cc.orig | ||
| 3 | +++ components/feed/core/v2/proto_util.cc | ||
| 4 | @@ -88,8 +88,8 @@ feedwire::Version GetPlatformVersionMessage() { | ||
| 5 | |||
| 6 | int32_t major, minor, revision; | ||
| 7 | base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &revision); | ||
| 8 | - result.set_major(major); | ||
| 9 | - result.set_minor(minor); | ||
| 10 | + result.set_gmajor(major); | ||
| 11 | + result.set_gminor(minor); | ||
| 12 | result.set_revision(revision); | ||
| 13 | #if BUILDFLAG(IS_ANDROID) | ||
| 14 | result.set_api_version(base::android::BuildInfo::GetInstance()->sdk_int()); | ||
| 15 | @@ -104,8 +104,8 @@ feedwire::Version GetAppVersionMessage(const ChromeInf | ||
| 16 | // Chrome's version is in the format: MAJOR,MINOR,BUILD,PATCH. | ||
| 17 | const std::vector<uint32_t>& numbers = chrome_info.version.components(); | ||
| 18 | if (numbers.size() > 3) { | ||
| 19 | - result.set_major(static_cast<int32_t>(numbers[0])); | ||
| 20 | - result.set_minor(static_cast<int32_t>(numbers[1])); | ||
| 21 | + result.set_gmajor(static_cast<int32_t>(numbers[0])); | ||
| 22 | + result.set_gminor(static_cast<int32_t>(numbers[1])); | ||
| 23 | result.set_build(static_cast<int32_t>(numbers[2])); | ||
| 24 | result.set_revision(static_cast<int32_t>(numbers[3])); | ||
| 25 | } | ||
diff --git a/www/chromium/patches/patch-components_feed_core_v2_proto_util_unittest_cc b/www/chromium/patches/patch-components_feed_core_v2_proto_util_unittest_cc new file mode 100644 index 0000000..ebddceb --- /dev/null +++ b/www/chromium/patches/patch-components_feed_core_v2_proto_util_unittest_cc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: components/feed/core/v2/proto_util_unittest.cc | ||
| 2 | --- components/feed/core/v2/proto_util_unittest.cc.orig | ||
| 3 | +++ components/feed/core/v2/proto_util_unittest.cc | ||
| 4 | @@ -39,8 +39,8 @@ TEST(ProtoUtilTest, CreateClientInfo) { | ||
| 5 | feedwire::ClientInfo result = CreateClientInfo(request_metadata); | ||
| 6 | EXPECT_EQ(feedwire::ClientInfo::CHROME_ANDROID, result.app_type()); | ||
| 7 | EXPECT_EQ(feedwire::Version::RELEASE, result.app_version().build_type()); | ||
| 8 | - EXPECT_EQ(1, result.app_version().major()); | ||
| 9 | - EXPECT_EQ(2, result.app_version().minor()); | ||
| 10 | + EXPECT_EQ(1, result.app_version().gmajor()); | ||
| 11 | + EXPECT_EQ(2, result.app_version().gminor()); | ||
| 12 | EXPECT_EQ(3, result.app_version().build()); | ||
| 13 | EXPECT_EQ(4, result.app_version().revision()); | ||
| 14 | EXPECT_FALSE(result.chrome_client_info().start_surface()); | ||
diff --git a/www/chromium/patches/patch-components_feed_core_v2_test_proto_printer_cc b/www/chromium/patches/patch-components_feed_core_v2_test_proto_printer_cc new file mode 100644 index 0000000..2af4628 --- /dev/null +++ b/www/chromium/patches/patch-components_feed_core_v2_test_proto_printer_cc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: components/feed/core/v2/test/proto_printer.cc | ||
| 2 | --- components/feed/core/v2/test/proto_printer.cc.orig | ||
| 3 | +++ components/feed/core/v2/test/proto_printer.cc | ||
| 4 | @@ -157,8 +157,8 @@ class TextProtoPrinter { | ||
| 5 | } | ||
| 6 | TextProtoPrinter& operator<<(const feedwire::Version& v) { | ||
| 7 | BeginMessage(); | ||
| 8 | - PRINT_FIELD(major); | ||
| 9 | - PRINT_FIELD(minor); | ||
| 10 | + PRINT_FIELD(gmajor); | ||
| 11 | + PRINT_FIELD(gminor); | ||
| 12 | PRINT_FIELD(build); | ||
| 13 | PRINT_FIELD(revision); | ||
| 14 | PRINT_FIELD(architecture); | ||
diff --git a/www/chromium/patches/patch-components_flags_ui_flags_state_cc b/www/chromium/patches/patch-components_flags_ui_flags_state_cc new file mode 100644 index 0000000..38ba56b --- /dev/null +++ b/www/chromium/patches/patch-components_flags_ui_flags_state_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/flags_ui/flags_state.cc | ||
| 2 | --- components/flags_ui/flags_state.cc.orig | ||
| 3 | +++ components/flags_ui/flags_state.cc | ||
| 4 | @@ -622,7 +622,7 @@ unsigned short FlagsState::GetCurrentPlatform() { | ||
| 5 | #elif BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 6 | return kOsCrOS; | ||
| 7 | #elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \ | ||
| 8 | - BUILDFLAG(IS_OPENBSD) | ||
| 9 | + BUILDFLAG(IS_BSD) | ||
| 10 | return kOsLinux; | ||
| 11 | #elif BUILDFLAG(IS_ANDROID) | ||
| 12 | return kOsAndroid; | ||
diff --git a/www/chromium/patches/patch-components_gwp_asan_BUILD_gn b/www/chromium/patches/patch-components_gwp_asan_BUILD_gn new file mode 100644 index 0000000..f34860c --- /dev/null +++ b/www/chromium/patches/patch-components_gwp_asan_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/gwp_asan/BUILD.gn | ||
| 2 | --- components/gwp_asan/BUILD.gn.orig | ||
| 3 | +++ components/gwp_asan/BUILD.gn | ||
| 4 | @@ -14,7 +14,7 @@ test("gwp_asan_unittests") { | ||
| 5 | "//components/gwp_asan/common:unit_tests", | ||
| 6 | "//testing/gtest", | ||
| 7 | ] | ||
| 8 | - if (is_win || is_mac || is_linux || is_chromeos || is_android) { | ||
| 9 | + if ((is_win || is_mac || is_linux || is_chromeos || is_android) && !is_bsd) { | ||
| 10 | deps += [ | ||
| 11 | "//components/gwp_asan/client:unit_tests", | ||
| 12 | "//components/gwp_asan/crash_handler:unit_tests", | ||
diff --git a/www/chromium/patches/patch-components_gwp_asan_crash_handler_crash_analyzer_cc b/www/chromium/patches/patch-components_gwp_asan_crash_handler_crash_analyzer_cc new file mode 100644 index 0000000..ab2bbdd --- /dev/null +++ b/www/chromium/patches/patch-components_gwp_asan_crash_handler_crash_analyzer_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: components/gwp_asan/crash_handler/crash_analyzer.cc | ||
| 2 | --- components/gwp_asan/crash_handler/crash_analyzer.cc.orig | ||
| 3 | +++ components/gwp_asan/crash_handler/crash_analyzer.cc | ||
| 4 | @@ -26,7 +26,7 @@ | ||
| 5 | #include "third_party/crashpad/crashpad/snapshot/process_snapshot.h" | ||
| 6 | #include "third_party/crashpad/crashpad/util/process/process_memory.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <signal.h> | ||
| 11 | #elif BUILDFLAG(IS_APPLE) | ||
| 12 | #include <mach/exception_types.h> | ||
| 13 | @@ -81,7 +81,7 @@ bool CrashAnalyzer::GetExceptionInfo( | ||
| 14 | |||
| 15 | crashpad::VMAddress CrashAnalyzer::GetAccessAddress( | ||
| 16 | const crashpad::ExceptionSnapshot& exception) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 19 | if (exception.Exception() == SIGSEGV || exception.Exception() == SIGBUS) | ||
| 20 | return exception.ExceptionAddress(); | ||
| 21 | #elif BUILDFLAG(IS_APPLE) | ||
diff --git a/www/chromium/patches/patch-components_invalidation_impl_invalidation_switches_cc b/www/chromium/patches/patch-components_invalidation_impl_invalidation_switches_cc new file mode 100644 index 0000000..c432301 --- /dev/null +++ b/www/chromium/patches/patch-components_invalidation_impl_invalidation_switches_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/invalidation/impl/invalidation_switches.cc | ||
| 2 | --- components/invalidation/impl/invalidation_switches.cc.orig | ||
| 3 | +++ components/invalidation/impl/invalidation_switches.cc | ||
| 4 | @@ -21,7 +21,7 @@ const int kDefaultInstanceIDTokenTTLSeconds = 14 * 24 | ||
| 5 | const base::Feature kSyncInstanceIDTokenTTL { | ||
| 6 | "SyncInstanceIDTokenTTL", | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_IOS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_IOS) || BUILDFLAG(IS_BSD) | ||
| 10 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 11 | #else | ||
| 12 | base::FEATURE_DISABLED_BY_DEFAULT | ||
diff --git a/www/chromium/patches/patch-components_metrics_drive_metrics_provider_linux_cc b/www/chromium/patches/patch-components_metrics_drive_metrics_provider_linux_cc new file mode 100644 index 0000000..6594925 --- /dev/null +++ b/www/chromium/patches/patch-components_metrics_drive_metrics_provider_linux_cc | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: components/metrics/drive_metrics_provider_linux.cc | ||
| 2 | --- components/metrics/drive_metrics_provider_linux.cc.orig | ||
| 3 | +++ components/metrics/drive_metrics_provider_linux.cc | ||
| 4 | @@ -4,7 +4,13 @@ | ||
| 5 | |||
| 6 | #include "components/metrics/drive_metrics_provider.h" | ||
| 7 | |||
| 8 | +#if defined(OS_BSD) | ||
| 9 | +#include <sys/types.h> | ||
| 10 | +#define MAJOR(dev) major(dev) | ||
| 11 | +#define MINOR(dev) minor(dev) | ||
| 12 | +#else | ||
| 13 | #include <linux/kdev_t.h> // For MAJOR()/MINOR(). | ||
| 14 | +#endif | ||
| 15 | #include <sys/stat.h> | ||
| 16 | #include <string> | ||
| 17 | |||
diff --git a/www/chromium/patches/patch-components_neterror_resources_neterror_js b/www/chromium/patches/patch-components_neterror_resources_neterror_js new file mode 100644 index 0000000..14399e1 --- /dev/null +++ b/www/chromium/patches/patch-components_neterror_resources_neterror_js | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/neterror/resources/neterror.js | ||
| 2 | --- components/neterror/resources/neterror.js.orig | ||
| 3 | +++ components/neterror/resources/neterror.js | ||
| 4 | @@ -129,7 +129,7 @@ function detailsButtonClick() { | ||
| 5 | } | ||
| 6 | |||
| 7 | let primaryControlOnLeft = true; | ||
| 8 | -// <if expr="is_macosx or is_ios or is_linux or is_android"> | ||
| 9 | +// <if expr="is_macosx or is_ios or is_linux or is_android or is_bsd"> | ||
| 10 | primaryControlOnLeft = false; | ||
| 11 | // </if> | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-components_network_session_configurator_browser_network_session_configurator_cc b/www/chromium/patches/patch-components_network_session_configurator_browser_network_session_configurator_cc new file mode 100644 index 0000000..7b4cf1b --- /dev/null +++ b/www/chromium/patches/patch-components_network_session_configurator_browser_network_session_configurator_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/network_session_configurator/browser/network_session_configurator.cc | ||
| 2 | --- components/network_session_configurator/browser/network_session_configurator.cc.orig | ||
| 3 | +++ components/network_session_configurator/browser/network_session_configurator.cc | ||
| 4 | @@ -784,7 +784,7 @@ net::URLRequestContextBuilder::HttpCacheParams::Type C | ||
| 5 | } | ||
| 6 | #endif // #if !BUILDFLAG(IS_ANDROID) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | return net::URLRequestContextBuilder::HttpCacheParams::DISK_SIMPLE; | ||
| 11 | #else | ||
| 12 | return net::URLRequestContextBuilder::HttpCacheParams::DISK_BLOCKFILE; | ||
diff --git a/www/chromium/patches/patch-components_network_session_configurator_browser_network_session_configurator_unittest_cc b/www/chromium/patches/patch-components_network_session_configurator_browser_network_session_configurator_unittest_cc new file mode 100644 index 0000000..d614a2c --- /dev/null +++ b/www/chromium/patches/patch-components_network_session_configurator_browser_network_session_configurator_unittest_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/network_session_configurator/browser/network_session_configurator_unittest.cc | ||
| 2 | --- components/network_session_configurator/browser/network_session_configurator_unittest.cc.orig | ||
| 3 | +++ components/network_session_configurator/browser/network_session_configurator_unittest.cc | ||
| 4 | @@ -776,7 +776,7 @@ TEST_F(NetworkSessionConfiguratorTest, HostRules) { | ||
| 5 | } | ||
| 6 | |||
| 7 | TEST_F(NetworkSessionConfiguratorTest, DefaultCacheBackend) { | ||
| 8 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | EXPECT_EQ(net::URLRequestContextBuilder::HttpCacheParams::DISK_SIMPLE, | ||
| 11 | ChooseCacheType()); | ||
| 12 | #elif BUILDFLAG(IS_MAC) | ||
diff --git a/www/chromium/patches/patch-components_new_or_sad_tab_strings_grdp b/www/chromium/patches/patch-components_new_or_sad_tab_strings_grdp new file mode 100644 index 0000000..4d4adde --- /dev/null +++ b/www/chromium/patches/patch-components_new_or_sad_tab_strings_grdp | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: components/new_or_sad_tab_strings.grdp | ||
| 2 | --- components/new_or_sad_tab_strings.grdp.orig | ||
| 3 | +++ components/new_or_sad_tab_strings.grdp | ||
| 4 | @@ -51,7 +51,7 @@ | ||
| 5 | Open page in a new Incognito window (⇧⌘N) | ||
| 6 | </message> | ||
| 7 | </if> | ||
| 8 | - <if expr="is_win or is_linux or is_fuchsia or chromeos"> | ||
| 9 | + <if expr="is_win or is_posix or is_fuchsia or chromeos"> | ||
| 10 | <message name="IDS_SAD_TAB_RELOAD_INCOGNITO" desc="One of the bullet points displayed on the web page if a reload failed to fix the issue, advising the user to open the web page in Chrome's Incognito mode."> | ||
| 11 | Open page in a new Incognito window (Ctrl-Shift-N) | ||
| 12 | </message> | ||
| 13 | @@ -66,7 +66,7 @@ | ||
| 14 | Close other tabs or apps | ||
| 15 | </message> | ||
| 16 | </if> | ||
| 17 | - <if expr="is_linux and not chromeos"> | ||
| 18 | + <if expr="is_posix and not chromeos"> | ||
| 19 | <message name="IDS_SAD_TAB_RELOAD_CLOSE_TABS" desc="One of the bullet points displayed on the web page if a reload failed to fix the issue, advising the user to close other Chrome tabs or programs running on their computer."> | ||
| 20 | Close other tabs or programs | ||
| 21 | </message> | ||
| 22 | @@ -76,7 +76,7 @@ | ||
| 23 | Close other apps | ||
| 24 | </message> | ||
| 25 | </if> | ||
| 26 | - <if expr="is_linux and not chromeos"> | ||
| 27 | + <if expr="is_posix and not chromeos"> | ||
| 28 | <message name="IDS_SAD_TAB_RELOAD_CLOSE_NOTABS" desc="One of the bullet points displayed on the web page if a reload failed to fix the issue, advising the user to close other programs running on their computer (Linux)."> | ||
| 29 | Close other programs | ||
| 30 | </message> | ||
| 31 | @@ -91,7 +91,7 @@ | ||
| 32 | Restart Chromium | ||
| 33 | </message> | ||
| 34 | </if> | ||
| 35 | - <if expr="is_win or is_linux or is_macosx or is_fuchsia or chromeos"> | ||
| 36 | + <if expr="is_win or is_posix or is_macosx or is_fuchsia or chromeos"> | ||
| 37 | <message name="IDS_SAD_TAB_RELOAD_RESTART_DEVICE" desc="One of the bullet points displayed on the web page if a reload failed to fix the issue, advising the user to restart their computer."> | ||
| 38 | Restart your computer | ||
| 39 | </message> | ||
| 40 | @@ -106,7 +106,7 @@ | ||
| 41 | Learn more | ||
| 42 | </message> | ||
| 43 | </if> | ||
| 44 | - <if expr="is_win or is_linux or is_macosx or is_fuchsia or chromeos"> | ||
| 45 | + <if expr="is_win or is_posix or is_macosx or is_fuchsia or chromeos"> | ||
| 46 | <message name="IDS_SAD_TAB_ERROR_CODE" desc="The message displayed on the crashed web page indicating the type of the crash."> | ||
| 47 | Error code: <ph name="ERROR_CODE">$1<ex>STATUS_ACCESS_VIOLATION</ex></ph> | ||
| 48 | </message> | ||
diff --git a/www/chromium/patches/patch-components_os_crypt_keyring_util_linux_cc b/www/chromium/patches/patch-components_os_crypt_keyring_util_linux_cc new file mode 100644 index 0000000..b8f2290 --- /dev/null +++ b/www/chromium/patches/patch-components_os_crypt_keyring_util_linux_cc | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | Index: components/os_crypt/keyring_util_linux.cc | ||
| 2 | --- components/os_crypt/keyring_util_linux.cc.orig | ||
| 3 | +++ components/os_crypt/keyring_util_linux.cc | ||
| 4 | @@ -69,12 +69,12 @@ bool GnomeKeyringLoader::LoadGnomeKeyring() { | ||
| 5 | if (keyring_loaded) | ||
| 6 | return true; | ||
| 7 | |||
| 8 | - void* handle = dlopen("libgnome-keyring.so.0", RTLD_NOW | RTLD_GLOBAL); | ||
| 9 | + void* handle = dlopen("libgnome-keyring.so", RTLD_NOW | RTLD_GLOBAL); | ||
| 10 | if (!handle) { | ||
| 11 | // We wanted to use GNOME Keyring, but we couldn't load it. Warn, because | ||
| 12 | // either the user asked for this, or we autodetected it incorrectly. (Or | ||
| 13 | // the system has broken libraries, which is also good to warn about.) | ||
| 14 | - LOG(WARNING) << "Could not load libgnome-keyring.so.0: " << dlerror(); | ||
| 15 | + LOG(WARNING) << "Could not load libgnome-keyring.so: " << dlerror(); | ||
| 16 | return false; | ||
| 17 | } | ||
| 18 | |||
diff --git a/www/chromium/patches/patch-components_os_crypt_libsecret_util_linux_cc b/www/chromium/patches/patch-components_os_crypt_libsecret_util_linux_cc new file mode 100644 index 0000000..5b9009f --- /dev/null +++ b/www/chromium/patches/patch-components_os_crypt_libsecret_util_linux_cc | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Index: components/os_crypt/libsecret_util_linux.cc | ||
| 2 | --- components/os_crypt/libsecret_util_linux.cc.orig | ||
| 3 | +++ components/os_crypt/libsecret_util_linux.cc | ||
| 4 | @@ -101,13 +101,13 @@ bool LibsecretLoader::LoadLibsecret() { | ||
| 5 | if (libsecret_loaded_) | ||
| 6 | return true; | ||
| 7 | |||
| 8 | - static void* handle = dlopen("libsecret-1.so.0", RTLD_NOW | RTLD_GLOBAL); | ||
| 9 | + static void* handle = dlopen("libsecret-1.so", RTLD_NOW | RTLD_GLOBAL); | ||
| 10 | if (!handle) { | ||
| 11 | // We wanted to use libsecret, but we couldn't load it. Warn, because | ||
| 12 | // either the user asked for this, or we autodetected it incorrectly. (Or | ||
| 13 | // the system has broken libraries, which is also good to warn about.) | ||
| 14 | // TODO(crbug.com/607435): Channel this message to the user-facing log | ||
| 15 | - VLOG(1) << "Could not load libsecret-1.so.0: " << dlerror(); | ||
| 16 | + VLOG(1) << "Could not load libsecret-1.so: " << dlerror(); | ||
| 17 | return false; | ||
| 18 | } | ||
| 19 | |||
diff --git a/www/chromium/patches/patch-components_os_crypt_os_crypt_h b/www/chromium/patches/patch-components_os_crypt_os_crypt_h new file mode 100644 index 0000000..f340e17 --- /dev/null +++ b/www/chromium/patches/patch-components_os_crypt_os_crypt_h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: components/os_crypt/os_crypt.h | ||
| 2 | --- components/os_crypt/os_crypt.h.orig | ||
| 3 | +++ components/os_crypt/os_crypt.h | ||
| 4 | @@ -14,7 +14,7 @@ | ||
| 5 | #include "build/build_config.h" | ||
| 6 | #include "build/chromecast_buildflags.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | class KeyStorageLinux; | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) | ||
| 12 | |||
| 13 | @@ -37,7 +37,7 @@ class OSCrypt { | ||
| 14 | OSCrypt(const OSCrypt&) = delete; | ||
| 15 | OSCrypt& operator=(const OSCrypt&) = delete; | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | // Set the configuration of OSCrypt. | ||
| 20 | // This method, or SetRawEncryptionKey(), must be called before using | ||
| 21 | // EncryptString() and DecryptString(). | ||
| 22 | @@ -149,7 +149,7 @@ class OSCrypt { | ||
| 23 | static COMPONENT_EXPORT(OS_CRYPT) void ResetStateForTesting(); | ||
| 24 | #endif | ||
| 25 | |||
| 26 | -#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMECAST)) | ||
| 27 | +#if ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && !BUILDFLAG(IS_CHROMECAST)) | ||
| 28 | // For unit testing purposes, inject methods to be used. | ||
| 29 | // |get_key_storage_mock| provides the desired |KeyStorage| implementation. | ||
| 30 | // If the provider returns |nullptr|, a hardcoded password will be used. | ||
diff --git a/www/chromium/patches/patch-components_paint_preview_browser_paint_preview_client_cc b/www/chromium/patches/patch-components_paint_preview_browser_paint_preview_client_cc new file mode 100644 index 0000000..d3aec10 --- /dev/null +++ b/www/chromium/patches/patch-components_paint_preview_browser_paint_preview_client_cc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: components/paint_preview/browser/paint_preview_client.cc | ||
| 2 | --- components/paint_preview/browser/paint_preview_client.cc.orig | ||
| 3 | +++ components/paint_preview/browser/paint_preview_client.cc | ||
| 4 | @@ -313,8 +313,8 @@ void PaintPreviewClient::CapturePaintPreview( | ||
| 5 | metadata->set_url(url.spec()); | ||
| 6 | metadata->set_version(kPaintPreviewVersion); | ||
| 7 | auto* chromeVersion = metadata->mutable_chrome_version(); | ||
| 8 | - chromeVersion->set_major(CHROME_VERSION_MAJOR); | ||
| 9 | - chromeVersion->set_minor(CHROME_VERSION_MINOR); | ||
| 10 | + chromeVersion->set_gmajor(CHROME_VERSION_MAJOR); | ||
| 11 | + chromeVersion->set_gminor(CHROME_VERSION_MINOR); | ||
| 12 | chromeVersion->set_build(CHROME_VERSION_BUILD); | ||
| 13 | chromeVersion->set_patch(CHROME_VERSION_PATCH); | ||
| 14 | document_data.callback = std::move(callback); | ||
diff --git a/www/chromium/patches/patch-components_paint_preview_browser_paint_preview_client_unittest_cc b/www/chromium/patches/patch-components_paint_preview_browser_paint_preview_client_unittest_cc new file mode 100644 index 0000000..e897a34 --- /dev/null +++ b/www/chromium/patches/patch-components_paint_preview_browser_paint_preview_client_unittest_cc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: components/paint_preview/browser/paint_preview_client_unittest.cc | ||
| 2 | --- components/paint_preview/browser/paint_preview_client_unittest.cc.orig | ||
| 3 | +++ components/paint_preview/browser/paint_preview_client_unittest.cc | ||
| 4 | @@ -171,8 +171,8 @@ TEST_P(PaintPreviewClientRenderViewHostTest, CaptureMa | ||
| 5 | metadata->set_url(expected_url.spec()); | ||
| 6 | metadata->set_version(kPaintPreviewVersion); | ||
| 7 | auto* chromeVersion = metadata->mutable_chrome_version(); | ||
| 8 | - chromeVersion->set_major(CHROME_VERSION_MAJOR); | ||
| 9 | - chromeVersion->set_minor(CHROME_VERSION_MINOR); | ||
| 10 | + chromeVersion->set_gmajor(CHROME_VERSION_MAJOR); | ||
| 11 | + chromeVersion->set_gminor(CHROME_VERSION_MINOR); | ||
| 12 | chromeVersion->set_build(CHROME_VERSION_BUILD); | ||
| 13 | chromeVersion->set_patch(CHROME_VERSION_PATCH); | ||
| 14 | PaintPreviewFrameProto* main_frame = expected_proto.mutable_root_frame(); | ||
diff --git a/www/chromium/patches/patch-components_paint_preview_common_proto_paint_preview_proto b/www/chromium/patches/patch-components_paint_preview_common_proto_paint_preview_proto new file mode 100644 index 0000000..1f5e664 --- /dev/null +++ b/www/chromium/patches/patch-components_paint_preview_common_proto_paint_preview_proto | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: components/paint_preview/common/proto/paint_preview.proto | ||
| 2 | --- components/paint_preview/common/proto/paint_preview.proto.orig | ||
| 3 | +++ components/paint_preview/common/proto/paint_preview.proto | ||
| 4 | @@ -82,8 +82,8 @@ message PaintPreviewFrameProto { | ||
| 5 | // Stores Chrome version. | ||
| 6 | // NEXT_TAG = 5 | ||
| 7 | message ChromeVersionProto { | ||
| 8 | - optional uint64 major = 1; | ||
| 9 | - optional uint64 minor = 2; | ||
| 10 | + optional uint64 gmajor = 1; | ||
| 11 | + optional uint64 gminor = 2; | ||
| 12 | optional uint64 build = 3; | ||
| 13 | optional uint64 patch = 4; | ||
| 14 | } | ||
diff --git a/www/chromium/patches/patch-components_paint_preview_player_player_compositor_delegate_cc b/www/chromium/patches/patch-components_paint_preview_player_player_compositor_delegate_cc new file mode 100644 index 0000000..60c435e --- /dev/null +++ b/www/chromium/patches/patch-components_paint_preview_player_player_compositor_delegate_cc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: components/paint_preview/player/player_compositor_delegate.cc | ||
| 2 | --- components/paint_preview/player/player_compositor_delegate.cc.orig | ||
| 3 | +++ components/paint_preview/player/player_compositor_delegate.cc | ||
| 4 | @@ -445,8 +445,8 @@ void PlayerCompositorDelegate::ValidateProtoAndLoadAXT | ||
| 5 | // use the AXTreeUpdate. | ||
| 6 | auto chrome_version = capture_result_->proto.metadata().chrome_version(); | ||
| 7 | if (capture_result_->proto.metadata().has_chrome_version() && | ||
| 8 | - chrome_version.major() == CHROME_VERSION_MAJOR && | ||
| 9 | - chrome_version.minor() == CHROME_VERSION_MINOR && | ||
| 10 | + chrome_version.gmajor() == CHROME_VERSION_MAJOR && | ||
| 11 | + chrome_version.gminor() == CHROME_VERSION_MINOR && | ||
| 12 | chrome_version.build() == CHROME_VERSION_BUILD && | ||
| 13 | chrome_version.patch() == CHROME_VERSION_PATCH) { | ||
| 14 | paint_preview_service_->GetFileMixin()->GetAXTreeUpdate( | ||
diff --git a/www/chromium/patches/patch-components_password_manager_core_browser_login_database_cc b/www/chromium/patches/patch-components_password_manager_core_browser_login_database_cc new file mode 100644 index 0000000..21d1fac --- /dev/null +++ b/www/chromium/patches/patch-components_password_manager_core_browser_login_database_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: components/password_manager/core/browser/login_database.cc | ||
| 2 | --- components/password_manager/core/browser/login_database.cc.orig | ||
| 3 | +++ components/password_manager/core/browser/login_database.cc | ||
| 4 | @@ -664,7 +664,7 @@ std::string GeneratePlaceholders(size_t count) { | ||
| 5 | return result; | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Fills |form| with necessary data required to be removed from the database | ||
| 11 | // and returns it. | ||
| 12 | PasswordForm GetFormForRemoval(sql::Statement& statement) { | ||
| 13 | @@ -681,7 +681,7 @@ PasswordForm GetFormForRemoval(sql::Statement& stateme | ||
| 14 | // Whether we should try to return the decryptable passwords while the | ||
| 15 | // encryption service fails for some passwords. | ||
| 16 | bool ShouldReturnPartialPasswords() { | ||
| 17 | -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | return base::FeatureList::IsEnabled(features::kSkipUndecryptablePasswords); | ||
| 20 | #else | ||
| 21 | return false; | ||
| 22 | @@ -1488,7 +1488,7 @@ bool LoginDatabase::DeleteAndRecreateDatabaseFile() { | ||
| 23 | } | ||
| 24 | |||
| 25 | DatabaseCleanupResult LoginDatabase::DeleteUndecryptableLogins() { | ||
| 26 | -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | TRACE_EVENT0("passwords", "LoginDatabase::DeleteUndecryptableLogins"); | ||
| 29 | // If the Keychain in MacOS or the real secret key in Linux is unavailable, | ||
| 30 | // don't delete any logins. | ||
diff --git a/www/chromium/patches/patch-components_password_manager_core_browser_login_database_unittest_cc b/www/chromium/patches/patch-components_password_manager_core_browser_login_database_unittest_cc new file mode 100644 index 0000000..021cc47 --- /dev/null +++ b/www/chromium/patches/patch-components_password_manager_core_browser_login_database_unittest_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: components/password_manager/core/browser/login_database_unittest.cc | ||
| 2 | --- components/password_manager/core/browser/login_database_unittest.cc.orig | ||
| 3 | +++ components/password_manager/core/browser/login_database_unittest.cc | ||
| 4 | @@ -2090,7 +2090,7 @@ TEST_F(LoginDatabaseUndecryptableLoginsTest, DeleteUnd | ||
| 5 | base::HistogramTester histogram_tester; | ||
| 6 | ASSERT_TRUE(db.Init()); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMECAST)) | ||
| 9 | +#if BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMECAST)) || BUILDFLAG(IS_BSD) | ||
| 10 | // Make sure that we can't get any logins when database is corrupted. | ||
| 11 | // Disabling the checks in chromecast because encryption is unavailable. | ||
| 12 | std::vector<std::unique_ptr<PasswordForm>> result; | ||
| 13 | @@ -2116,7 +2116,7 @@ TEST_F(LoginDatabaseUndecryptableLoginsTest, DeleteUnd | ||
| 14 | #endif | ||
| 15 | |||
| 16 | // Check histograms. | ||
| 17 | -#if BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMECAST)) | ||
| 18 | +#if BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMECAST)) || BUILDFLAG(IS_BSD) | ||
| 19 | histogram_tester.ExpectUniqueSample("PasswordManager.CleanedUpPasswords", 2, | ||
| 20 | 1); | ||
| 21 | histogram_tester.ExpectUniqueSample( | ||
| 22 | @@ -2168,7 +2168,7 @@ TEST_F(LoginDatabaseUndecryptableLoginsTest, KeychainL | ||
| 23 | } | ||
| 24 | #endif // BUILDFLAG(IS_MAC) | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | // Test getting auto sign in logins when there are undecryptable ones | ||
| 29 | TEST_F(LoginDatabaseUndecryptableLoginsTest, GetAutoSignInLogins) { | ||
| 30 | PrimaryKeyToFormMap key_to_form_map; | ||
diff --git a/www/chromium/patches/patch-components_password_manager_core_browser_sync_password_sync_bridge_cc b/www/chromium/patches/patch-components_password_manager_core_browser_sync_password_sync_bridge_cc new file mode 100644 index 0000000..d1dd751 --- /dev/null +++ b/www/chromium/patches/patch-components_password_manager_core_browser_sync_password_sync_bridge_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: components/password_manager/core/browser/sync/password_sync_bridge.cc | ||
| 2 | --- components/password_manager/core/browser/sync/password_sync_bridge.cc.orig | ||
| 3 | +++ components/password_manager/core/browser/sync/password_sync_bridge.cc | ||
| 4 | @@ -185,7 +185,7 @@ bool ShouldRecoverPasswordsDuringMerge() { | ||
| 5 | // Delete the local undecryptable copy when this is MacOS only. | ||
| 6 | #if BUILDFLAG(IS_MAC) | ||
| 7 | return true; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | return base::FeatureList::IsEnabled( | ||
| 11 | features::kSyncUndecryptablePasswordsLinux); | ||
| 12 | #else | ||
| 13 | @@ -194,7 +194,7 @@ bool ShouldRecoverPasswordsDuringMerge() { | ||
| 14 | } | ||
| 15 | |||
| 16 | bool ShouldCleanSyncMetadataDuringStartupWhenDecryptionFails() { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | return ShouldRecoverPasswordsDuringMerge() && | ||
| 20 | base::FeatureList::IsEnabled( | ||
| 21 | features::kForceInitialSyncWhenDecryptionFails); | ||
diff --git a/www/chromium/patches/patch-components_password_manager_core_common_password_manager_features_cc b/www/chromium/patches/patch-components_password_manager_core_common_password_manager_features_cc new file mode 100644 index 0000000..fcc1960 --- /dev/null +++ b/www/chromium/patches/patch-components_password_manager_core_common_password_manager_features_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: components/password_manager/core/common/password_manager_features.cc | ||
| 2 | --- components/password_manager/core/common/password_manager_features.cc.orig | ||
| 3 | +++ components/password_manager/core/common/password_manager_features.cc | ||
| 4 | @@ -63,7 +63,7 @@ const base::Feature kFillingAcrossAffiliatedWebsites{ | ||
| 5 | const base::Feature kFillOnAccountSelect = {"fill-on-account-select", | ||
| 6 | base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // When enabled, initial sync will be forced during startup if the password | ||
| 11 | // store has encryption service failures. | ||
| 12 | const base::Feature kForceInitialSyncWhenDecryptionFails = { | ||
| 13 | @@ -145,7 +145,7 @@ const base::Feature kReparseServerPredictionsFollowing | ||
| 14 | const base::Feature kSecondaryServerFieldPredictions = { | ||
| 15 | "SecondaryServerFieldPredictions", base::FEATURE_ENABLED_BY_DEFAULT}; | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | // Displays at least the decryptable and never saved logins in the password | ||
| 20 | // manager | ||
| 21 | const base::Feature kSkipUndecryptablePasswords = { | ||
| 22 | @@ -157,7 +157,7 @@ const base::Feature kSkipUndecryptablePasswords = { | ||
| 23 | const base::Feature kSupportForAddPasswordsInSettings = { | ||
| 24 | "SupportForAddPasswordsInSettings", base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | // When enabled, all undecryptable passwords are deleted from the local database | ||
| 29 | // during initial sync flow. | ||
| 30 | const base::Feature kSyncUndecryptablePasswordsLinux = { | ||
diff --git a/www/chromium/patches/patch-components_password_manager_core_common_password_manager_features_h b/www/chromium/patches/patch-components_password_manager_core_common_password_manager_features_h new file mode 100644 index 0000000..bf449b4 --- /dev/null +++ b/www/chromium/patches/patch-components_password_manager_core_common_password_manager_features_h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Index: components/password_manager/core/common/password_manager_features.h | ||
| 2 | --- components/password_manager/core/common/password_manager_features.h.orig | ||
| 3 | +++ components/password_manager/core/common/password_manager_features.h | ||
| 4 | @@ -27,7 +27,7 @@ extern const base::Feature kEnablePasswordsAccountStor | ||
| 5 | extern const base::Feature KEnablePasswordGenerationForClearTextFields; | ||
| 6 | extern const base::Feature kFillingAcrossAffiliatedWebsites; | ||
| 7 | extern const base::Feature kFillOnAccountSelect; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | extern const base::Feature kForceInitialSyncWhenDecryptionFails; | ||
| 11 | #endif | ||
| 12 | extern const base::Feature kInferConfirmationPasswordField; | ||
| 13 | @@ -46,11 +46,11 @@ extern const base::Feature kPasswordScriptsFetching; | ||
| 14 | extern const base::Feature kRecoverFromNeverSaveAndroid; | ||
| 15 | extern const base::Feature kReparseServerPredictionsFollowingFormChange; | ||
| 16 | extern const base::Feature kSecondaryServerFieldPredictions; | ||
| 17 | -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | extern const base::Feature kSkipUndecryptablePasswords; | ||
| 20 | #endif | ||
| 21 | extern const base::Feature kSupportForAddPasswordsInSettings; | ||
| 22 | -#if BUILDFLAG(IS_LINUX) | ||
| 23 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 24 | extern const base::Feature kSyncUndecryptablePasswordsLinux; | ||
| 25 | #endif | ||
| 26 | #if BUILDFLAG(IS_ANDROID) | ||
diff --git a/www/chromium/patches/patch-components_performance_manager_features_cc b/www/chromium/patches/patch-components_performance_manager_features_cc new file mode 100644 index 0000000..61c94a7 --- /dev/null +++ b/www/chromium/patches/patch-components_performance_manager_features_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/performance_manager/features.cc | ||
| 2 | --- components/performance_manager/features.cc.orig | ||
| 3 | +++ components/performance_manager/features.cc | ||
| 4 | @@ -21,7 +21,7 @@ const base::Feature kUrgentDiscardingFromPerformanceMa | ||
| 5 | "UrgentDiscardingFromPerformanceManager", | ||
| 6 | // Ash Chrome uses memory pressure evaluator instead of performance manager to | ||
| 7 | // discard tabs. | ||
| 8 | -#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | base::FEATURE_DISABLED_BY_DEFAULT | ||
| 11 | #else | ||
| 12 | base::FEATURE_ENABLED_BY_DEFAULT | ||
diff --git a/www/chromium/patches/patch-components_permissions_prediction_service_prediction_common_cc b/www/chromium/patches/patch-components_permissions_prediction_service_prediction_common_cc new file mode 100644 index 0000000..3875090 --- /dev/null +++ b/www/chromium/patches/patch-components_permissions_prediction_service_prediction_common_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: components/permissions/prediction_service/prediction_common.cc | ||
| 2 | --- components/permissions/prediction_service/prediction_common.cc.orig | ||
| 3 | +++ components/permissions/prediction_service/prediction_common.cc | ||
| 4 | @@ -36,7 +36,7 @@ int BucketizeValue(int count) { | ||
| 5 | |||
| 6 | ClientFeatures_Platform GetCurrentPlatformProto() { | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_MAC) | ||
| 9 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | return permissions::ClientFeatures_Platform_PLATFORM_DESKTOP; | ||
| 11 | #elif BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) | ||
| 12 | return permissions::ClientFeatures_Platform_PLATFORM_MOBILE; | ||
| 13 | @@ -47,7 +47,7 @@ ClientFeatures_Platform GetCurrentPlatformProto() { | ||
| 14 | |||
| 15 | ClientFeatures_PlatformEnum GetCurrentPlatformEnumProto() { | ||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 17 | - BUILDFLAG(IS_MAC) | ||
| 18 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | return permissions::ClientFeatures_PlatformEnum_PLATFORM_DESKTOP_V2; | ||
| 20 | #elif BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) | ||
| 21 | return permissions::ClientFeatures_PlatformEnum_PLATFORM_MOBILE_V2; | ||
diff --git a/www/chromium/patches/patch-components_policy_core_browser_policy_pref_mapping_test_cc b/www/chromium/patches/patch-components_policy_core_browser_policy_pref_mapping_test_cc new file mode 100644 index 0000000..696d83d --- /dev/null +++ b/www/chromium/patches/patch-components_policy_core_browser_policy_pref_mapping_test_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/policy/core/browser/policy_pref_mapping_test.cc | ||
| 2 | --- components/policy/core/browser/policy_pref_mapping_test.cc.orig | ||
| 3 | +++ components/policy/core/browser/policy_pref_mapping_test.cc | ||
| 4 | @@ -342,7 +342,7 @@ class PolicyTestCase { | ||
| 5 | const std::string os("chromeos_lacros"); | ||
| 6 | #elif BUILDFLAG(IS_IOS) | ||
| 7 | const std::string os("ios"); | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | const std::string os("linux"); | ||
| 11 | #elif BUILDFLAG(IS_MAC) | ||
| 12 | const std::string os("mac"); | ||
diff --git a/www/chromium/patches/patch-components_policy_core_common_cloud_cloud_policy_client_cc b/www/chromium/patches/patch-components_policy_core_common_cloud_cloud_policy_client_cc new file mode 100644 index 0000000..2477f0d --- /dev/null +++ b/www/chromium/patches/patch-components_policy_core_common_cloud_cloud_policy_client_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/policy/core/common/cloud/cloud_policy_client.cc | ||
| 2 | --- components/policy/core/common/cloud/cloud_policy_client.cc.orig | ||
| 3 | +++ components/policy/core/common/cloud/cloud_policy_client.cc | ||
| 4 | @@ -417,7 +417,7 @@ void CloudPolicyClient::FetchPolicy() { | ||
| 5 | fetch_request->set_invalidation_payload(invalidation_payload_); | ||
| 6 | } | ||
| 7 | } | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Only set browser device identifier for CBCM Chrome cloud policy on | ||
| 11 | // desktop. | ||
| 12 | if (base::FeatureList::IsEnabled( | ||
diff --git a/www/chromium/patches/patch-components_policy_core_common_cloud_cloud_policy_util_cc b/www/chromium/patches/patch-components_policy_core_common_cloud_cloud_policy_util_cc new file mode 100644 index 0000000..dfcb3c5 --- /dev/null +++ b/www/chromium/patches/patch-components_policy_core_common_cloud_cloud_policy_util_cc | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | Index: components/policy/core/common/cloud/cloud_policy_util.cc | ||
| 2 | --- components/policy/core/common/cloud/cloud_policy_util.cc.orig | ||
| 3 | +++ components/policy/core/common/cloud/cloud_policy_util.cc | ||
| 4 | @@ -19,7 +19,7 @@ | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || \ | ||
| 8 | - BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <pwd.h> | ||
| 11 | #include <sys/types.h> | ||
| 12 | #include <unistd.h> | ||
| 13 | @@ -34,10 +34,14 @@ | ||
| 14 | #import <SystemConfiguration/SCDynamicStoreCopySpecific.h> | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | #include <limits.h> // For HOST_NAME_MAX | ||
| 20 | #endif | ||
| 21 | |||
| 22 | +#if BUILDFLAG(IS_FREEBSD) | ||
| 23 | +#define HOST_NAME_MAX MAXHOSTNAMELEN | ||
| 24 | +#endif | ||
| 25 | + | ||
| 26 | #include <utility> | ||
| 27 | |||
| 28 | #include "base/check.h" | ||
| 29 | @@ -77,7 +81,7 @@ namespace em = enterprise_management; | ||
| 30 | |||
| 31 | std::string GetMachineName() { | ||
| 32 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || \ | ||
| 33 | - BUILDFLAG(IS_FUCHSIA) | ||
| 34 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 35 | char hostname[HOST_NAME_MAX]; | ||
| 36 | if (gethostname(hostname, HOST_NAME_MAX) == 0) // Success. | ||
| 37 | return hostname; | ||
| 38 | @@ -135,7 +139,7 @@ std::string GetMachineName() { | ||
| 39 | |||
| 40 | std::string GetOSVersion() { | ||
| 41 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_APPLE) || \ | ||
| 42 | - BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) | ||
| 43 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 44 | return base::SysInfo::OperatingSystemVersion(); | ||
| 45 | #elif BUILDFLAG(IS_WIN) | ||
| 46 | base::win::OSInfo::VersionNumber version_number = | ||
| 47 | @@ -158,7 +162,7 @@ std::string GetOSArchitecture() { | ||
| 48 | } | ||
| 49 | |||
| 50 | std::string GetOSUsername() { | ||
| 51 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_APPLE) | ||
| 52 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) | ||
| 53 | struct passwd* creds = getpwuid(getuid()); | ||
| 54 | if (!creds || !creds->pw_name) | ||
| 55 | return std::string(); | ||
diff --git a/www/chromium/patches/patch-components_policy_resources_policy_templates_json b/www/chromium/patches/patch-components_policy_resources_policy_templates_json new file mode 100644 index 0000000..8ba55ec --- /dev/null +++ b/www/chromium/patches/patch-components_policy_resources_policy_templates_json | |||
| @@ -0,0 +1,192 @@ | |||
| 1 | Index: components/policy/resources/policy_templates.json | ||
| 2 | --- components/policy/resources/policy_templates.json.orig | ||
| 3 | +++ components/policy/resources/policy_templates.json | ||
| 4 | @@ -1430,7 +1430,7 @@ | ||
| 5 | 'owners': ['file://components/policy/resources/OWNERS', 'pastarmovj@chromium.org'], | ||
| 6 | 'type': 'main', | ||
| 7 | 'schema': { 'type': 'boolean' }, | ||
| 8 | - 'supported_on': ['chrome.win7:11-', 'chrome.mac:11-', 'chrome.linux:11-'], | ||
| 9 | + 'supported_on': ['chrome.win7:11-', 'chrome.mac:11-', 'chrome.linux:11-', 'chrome.openbsd:11-', 'chrome.freebsd:11-'], | ||
| 10 | 'features': { | ||
| 11 | 'dynamic_refresh': True, | ||
| 12 | 'per_profile': False, | ||
| 13 | @@ -2534,7 +2534,7 @@ | ||
| 14 | 'owners': ['file://remoting/OWNERS', 'jamiewalch@chromium.org'], | ||
| 15 | 'type': 'main', | ||
| 16 | 'schema': { 'type': 'boolean' }, | ||
| 17 | - 'supported_on': ['chrome.linux:25-', 'chrome.mac:25-'], | ||
| 18 | + 'supported_on': ['chrome.linux:25-', 'chrome.mac:25-', 'chrome.openbsd:25-', 'chrome.freebsd:25-'], | ||
| 19 | 'features': { | ||
| 20 | 'dynamic_refresh': True, | ||
| 21 | 'per_profile': False, | ||
| 22 | @@ -4300,7 +4300,7 @@ | ||
| 23 | 'owners': ['file://components/policy/resources/OWNERS', 'pastarmovj@chromium.org'], | ||
| 24 | 'type': 'main', | ||
| 25 | 'schema': { 'type': 'boolean' }, | ||
| 26 | - 'supported_on': ['chrome.win:57-', 'chrome.mac:88-', 'chrome.linux:88-'], | ||
| 27 | + 'supported_on': ['chrome.win:57-', 'chrome.mac:88-', 'chrome.linux:88-', 'chrome.openbsd:88-', 'chrome.freebsd:88-'], | ||
| 28 | 'features': { | ||
| 29 | 'dynamic_refresh': False, | ||
| 30 | 'per_profile': False, | ||
| 31 | @@ -4329,7 +4329,7 @@ | ||
| 32 | 'owners': ['file://components/policy/resources/OWNERS', 'pastarmovj@chromium.org'], | ||
| 33 | 'type': 'string', | ||
| 34 | 'schema': { 'type': 'string' }, | ||
| 35 | - 'supported_on': ['chrome.win:57-', 'chrome.mac:88-', 'chrome.linux:88-'], | ||
| 36 | + 'supported_on': ['chrome.win:57-', 'chrome.mac:88-', 'chrome.linux:88-', 'chrome.openbsd:88-', 'chrome.freebsd:88-'], | ||
| 37 | 'features': { | ||
| 38 | 'dynamic_refresh': False, | ||
| 39 | 'per_profile': False, | ||
| 40 | @@ -5262,7 +5262,7 @@ | ||
| 41 | 'owners': ['file://components/policy/resources/OWNERS', 'rsorokin@chromium.org'], | ||
| 42 | 'type': 'main', | ||
| 43 | 'schema': { 'type': 'boolean' }, | ||
| 44 | - 'supported_on': ['chrome.linux:74-','chrome.mac:74-','chrome_os:74-'], | ||
| 45 | + 'supported_on': ['chrome.linux:74-','chrome.mac:74-','chrome_os:74-','chrome.openbsd:74-','chrome.freebsd:74-'], | ||
| 46 | 'features': { | ||
| 47 | 'dynamic_refresh': True, | ||
| 48 | 'per_profile': False, | ||
| 49 | @@ -5323,7 +5323,7 @@ | ||
| 50 | 'owners': ['file://components/policy/resources/OWNERS', 'rsorokin@chromium.org'], | ||
| 51 | 'type': 'string', | ||
| 52 | 'schema': { 'type': 'string' }, | ||
| 53 | - 'supported_on': ['chrome.linux:9-'], | ||
| 54 | + 'supported_on': ['chrome.linux:9-','chrome.openbsd:9-','chrome.freebsd:9-'], | ||
| 55 | 'features': { | ||
| 56 | 'dynamic_refresh': False, | ||
| 57 | 'per_profile': False, | ||
| 58 | @@ -5389,7 +5389,7 @@ | ||
| 59 | 'owners': ['file://components/policy/resources/OWNERS', 'rsorokin@chromium.org'], | ||
| 60 | 'type': 'main', | ||
| 61 | 'schema': { 'type': 'boolean' }, | ||
| 62 | - 'supported_on': ['chrome.linux:63-','chrome.mac:63-','chrome_os:63-','android:63-','webview_android:63-'], | ||
| 63 | + 'supported_on': ['chrome.linux:63-','chrome.mac:63-','chrome_os:63-','android:63-','webview_android:63-','chrome.openbsd:63-','chrome.freebsd:63-'], | ||
| 64 | 'features': { | ||
| 65 | 'dynamic_refresh': True, | ||
| 66 | 'per_profile': False, | ||
| 67 | @@ -10460,7 +10460,7 @@ | ||
| 68 | 'owners': ['file://net/cert/OWNERS', 'rsleevi@chromium.org'], | ||
| 69 | 'type': 'main', | ||
| 70 | 'schema': { 'type': 'boolean' }, | ||
| 71 | - 'supported_on': ['chrome_os:30-', 'chrome.linux:30-', 'chrome.win:30-'], | ||
| 72 | + 'supported_on': ['chrome_os:30-', 'chrome.linux:30-', 'chrome.win:30-', 'chrome.openbsd:30-', 'chrome.freebsd:30-'], | ||
| 73 | 'features': { | ||
| 74 | 'dynamic_refresh': True, | ||
| 75 | 'per_profile': False, | ||
| 76 | @@ -10554,7 +10554,7 @@ | ||
| 77 | 'owners': ['file://components/policy/resources/OWNERS', 'pmarko@chromium.org'], | ||
| 78 | 'type': 'main', | ||
| 79 | 'schema': { 'type': 'boolean' }, | ||
| 80 | - 'supported_on': ['chrome_os:77-83', 'chrome.linux:79-83', 'chrome.mac:83-'], | ||
| 81 | + 'supported_on': ['chrome_os:77-83', 'chrome.linux:79-83', 'chrome.mac:83-', 'chrome.openbsd:79-83', 'chrome.freebsd:79-83'], | ||
| 82 | 'features': { | ||
| 83 | 'dynamic_refresh': False, | ||
| 84 | 'per_profile': False, | ||
| 85 | @@ -12551,7 +12551,7 @@ | ||
| 86 | 'owners': ['file://components/policy/resources/OWNERS', 'pmarko@chromium.org'], | ||
| 87 | 'type': 'main', | ||
| 88 | 'schema': { 'type': 'boolean' }, | ||
| 89 | - 'supported_on': ['chrome.win:19-', 'chrome.linux:19-'], | ||
| 90 | + 'supported_on': ['chrome.win:19-', 'chrome.linux:19-', 'chrome.openbsd:19-', 'chrome.freebsd:19-'], | ||
| 91 | 'features': { | ||
| 92 | 'can_be_recommended': True, | ||
| 93 | 'dynamic_refresh': True, | ||
| 94 | @@ -13409,7 +13409,7 @@ | ||
| 95 | 'owners': ['file://components/policy/resources/OWNERS', 'bartfab@chromium.org'], | ||
| 96 | 'type': 'main', | ||
| 97 | 'schema': { 'type': 'boolean' }, | ||
| 98 | - 'supported_on': ['chrome.win:31-', 'chrome.linux:31-', 'chrome_os:31-'], | ||
| 99 | + 'supported_on': ['chrome.win:31-', 'chrome.linux:31-', 'chrome_os:31-', 'chrome.openbsd:31-', 'chrome.freebsd:31-'], | ||
| 100 | 'features': { | ||
| 101 | 'dynamic_refresh': True, | ||
| 102 | 'per_profile': True, | ||
| 103 | @@ -20284,7 +20284,7 @@ | ||
| 104 | 'items': { 'type': 'string' } | ||
| 105 | }, | ||
| 106 | # Spell checking is provided by macOS, so can't be controlled on Mac. | ||
| 107 | - 'supported_on': ['chrome.win:65-', 'chrome.linux:65-', 'chrome_os:65-'], | ||
| 108 | + 'supported_on': ['chrome.win:65-', 'chrome.linux:65-', 'chrome_os:65-', 'chrome.openbsd:65-', 'chrome.freebsd:65-'], | ||
| 109 | 'features': { | ||
| 110 | 'can_be_recommended': False, | ||
| 111 | 'dynamic_refresh': True, | ||
| 112 | @@ -20315,7 +20315,7 @@ | ||
| 113 | 'items': { 'type': 'string' } | ||
| 114 | }, | ||
| 115 | # Spell checking is provided by macOS, so can't be controlled on Mac. | ||
| 116 | - 'supported_on': ['chrome.win:75-', 'chrome.linux:75-', 'chrome_os:75-'], | ||
| 117 | + 'supported_on': ['chrome.win:75-', 'chrome.linux:75-', 'chrome_os:75-', 'chrome.openbsd:75-', 'chrome.freebsd:75-'], | ||
| 118 | 'deprecated': True, | ||
| 119 | 'features': { | ||
| 120 | 'can_be_recommended': False, | ||
| 121 | @@ -20349,7 +20349,7 @@ | ||
| 122 | 'items': { 'type': 'string' } | ||
| 123 | }, | ||
| 124 | # Spell checking is provided by macOS, so can't be controlled on Mac. | ||
| 125 | - 'supported_on': ['chrome.win:86-', 'chrome.linux:86-', 'chrome_os:86-'], | ||
| 126 | + 'supported_on': ['chrome.win:86-', 'chrome.linux:86-', 'chrome_os:86-', 'chrome.openbsd:86-', 'chrome.freebsd:86-'], | ||
| 127 | 'features': { | ||
| 128 | 'can_be_recommended': False, | ||
| 129 | 'dynamic_refresh': True, | ||
| 130 | @@ -21087,7 +21087,7 @@ | ||
| 131 | 'owners': ['fbeaufort@chromium.org', 'beccahughes@chromium.org'], | ||
| 132 | 'type': 'main', | ||
| 133 | 'schema': { 'type': 'boolean' }, | ||
| 134 | - 'supported_on': ['chrome.win:66-', 'chrome.linux:66-', 'chrome.mac:66-', 'chrome_os:66-'], | ||
| 135 | + 'supported_on': ['chrome.win:66-', 'chrome.linux:66-', 'chrome.mac:66-', 'chrome_os:66-', 'chrome.openbsd:66-', 'chrome.freebsd:66-'], | ||
| 136 | 'features': { | ||
| 137 | 'dynamic_refresh': True, | ||
| 138 | 'per_profile': True, | ||
| 139 | @@ -25361,7 +25361,7 @@ | ||
| 140 | 'owners': ['file://services/audio/OWNERS', 'dalecurtis@chromium.org'], | ||
| 141 | 'type': 'main', | ||
| 142 | 'schema': { 'type': 'boolean' }, | ||
| 143 | - 'supported_on': ['chrome.win:79-', 'chrome.linux:79-', 'chrome.mac:79-'], | ||
| 144 | + 'supported_on': ['chrome.win:79-', 'chrome.linux:79-', 'chrome.mac:79-', 'chrome.openbsd:79-', 'chrome.freebsd:79-'], | ||
| 145 | 'features': { | ||
| 146 | 'dynamic_refresh': False, | ||
| 147 | 'per_profile': False, | ||
| 148 | @@ -26703,7 +26703,7 @@ If this policy is left unset, privacy screen is disabl | ||
| 149 | 'owners': ['file://chrome/browser/notifications/OWNERS', 'knollr@chromium.org'], | ||
| 150 | 'type': 'main', | ||
| 151 | 'schema': { 'type': 'boolean' }, | ||
| 152 | - 'supported_on': ['chrome.linux:83-'], | ||
| 153 | + 'supported_on': ['chrome.linux:83-','chrome.openbsd:83-','chrome.freebsd:83-'], | ||
| 154 | 'features': { | ||
| 155 | 'dynamic_refresh': True, | ||
| 156 | 'per_profile': True, | ||
| 157 | @@ -26727,7 +26727,7 @@ If set to False, <ph name="PRODUCT_NAME">$1<ex>Google | ||
| 158 | 'owners': ['file://chrome/browser/notifications/OWNERS'], | ||
| 159 | 'type': 'main', | ||
| 160 | 'schema': { 'type': 'boolean' }, | ||
| 161 | - 'supported_on': ['chrome.linux:90-'], | ||
| 162 | + 'supported_on': ['chrome.linux:90-','chrome.openbsd:90-','chrome.freebsd:90-'], | ||
| 163 | 'features': { | ||
| 164 | 'dynamic_refresh': True, | ||
| 165 | 'per_profile': True, | ||
| 166 | @@ -27796,7 +27796,7 @@ If you disable this policy, web page scrolling to spec | ||
| 167 | 'owners': ['asumaneev@google.com'], | ||
| 168 | 'type': 'main', | ||
| 169 | 'schema': { 'type': 'boolean' }, | ||
| 170 | - 'supported_on': ['chrome.linux:91-92', 'chrome_os:91-'], | ||
| 171 | + 'supported_on': ['chrome.linux:91-92', 'chrome_os:91-', 'chrome.openbsd:91-', 'chrome.freebsd:91-'], | ||
| 172 | 'features': { | ||
| 173 | 'dynamic_refresh': True, | ||
| 174 | 'per_profile': False, | ||
| 175 | @@ -29032,7 +29032,7 @@ When this policy is set, <ph name="PRODUCT_OS_NAME">$2 | ||
| 176 | }, | ||
| 177 | ], | ||
| 178 | 'default': True, | ||
| 179 | - 'supported_on': ['chrome.win:93-', 'chrome.linux:93-', 'chrome.mac:93-'], | ||
| 180 | + 'supported_on': ['chrome.win:93-', 'chrome.linux:93-', 'chrome.mac:93-', 'chrome.openbsd:93-', 'chrome.freebsd:93-'], | ||
| 181 | 'features': { | ||
| 182 | 'dynamic_refresh': True, | ||
| 183 | 'per_profile': True, | ||
| 184 | @@ -29165,7 +29165,7 @@ When this policy is set, <ph name="PRODUCT_OS_NAME">$2 | ||
| 185 | 'owners': ['mattm@chromium.org'], | ||
| 186 | 'type': 'main', | ||
| 187 | 'schema': { 'type': 'boolean' }, | ||
| 188 | - 'future_on': ['chrome.win', 'chrome.mac', 'chrome.linux'], | ||
| 189 | + 'future_on': ['chrome.win', 'chrome.mac', 'chrome.linux', 'chrome.openbsd', 'chrome.freebsd'], | ||
| 190 | 'features': { | ||
| 191 | 'dynamic_refresh': True, | ||
| 192 | 'per_profile': True, | ||
diff --git a/www/chromium/patches/patch-components_policy_tools_generate_policy_source_py b/www/chromium/patches/patch-components_policy_tools_generate_policy_source_py new file mode 100644 index 0000000..64a98be --- /dev/null +++ b/www/chromium/patches/patch-components_policy_tools_generate_policy_source_py | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: components/policy/tools/generate_policy_source.py | ||
| 2 | --- components/policy/tools/generate_policy_source.py.orig | ||
| 3 | +++ components/policy/tools/generate_policy_source.py | ||
| 4 | @@ -49,8 +49,10 @@ PLATFORM_STRINGS = { | ||
| 5 | 'ios': ['ios'], | ||
| 6 | 'chrome.win': ['win'], | ||
| 7 | 'chrome.linux': ['linux'], | ||
| 8 | + 'chrome.openbsd': ['openbsd'], | ||
| 9 | + 'chrome.freebsd': ['freebsd'], | ||
| 10 | 'chrome.mac': ['mac'], | ||
| 11 | - 'chrome.*': ['win', 'mac', 'linux', 'fuchsia'], | ||
| 12 | + 'chrome.*': ['win', 'mac', 'linux', 'fuchsia', 'openbsd', 'freebsd'], | ||
| 13 | 'chrome.win7': ['win'], | ||
| 14 | } | ||
| 15 | |||
diff --git a/www/chromium/patches/patch-components_safe_browsing_content_common_file_type_policies_unittest_cc b/www/chromium/patches/patch-components_safe_browsing_content_common_file_type_policies_unittest_cc new file mode 100644 index 0000000..71fe88b --- /dev/null +++ b/www/chromium/patches/patch-components_safe_browsing_content_common_file_type_policies_unittest_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/safe_browsing/content/common/file_type_policies_unittest.cc | ||
| 2 | --- components/safe_browsing/content/common/file_type_policies_unittest.cc.orig | ||
| 3 | +++ components/safe_browsing/content/common/file_type_policies_unittest.cc | ||
| 4 | @@ -139,7 +139,7 @@ TEST_F(FileTypePoliciesTest, UnpackResourceBundle) { | ||
| 5 | EXPECT_EQ(DownloadFileType::FULL_PING, file_type.ping_setting()); | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | EXPECT_EQ(DownloadFileType::ALLOW_ON_USER_GESTURE, | ||
| 11 | file_type.platform_settings(0).danger_level()); | ||
| 12 | EXPECT_EQ(DownloadFileType::DISALLOW_AUTO_OPEN, | ||
diff --git a/www/chromium/patches/patch-components_safe_browsing_content_resources_gen_file_type_proto_py b/www/chromium/patches/patch-components_safe_browsing_content_resources_gen_file_type_proto_py new file mode 100644 index 0000000..2744e48 --- /dev/null +++ b/www/chromium/patches/patch-components_safe_browsing_content_resources_gen_file_type_proto_py | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | Index: components/safe_browsing/content/resources/gen_file_type_proto.py | ||
| 2 | --- components/safe_browsing/content/resources/gen_file_type_proto.py.orig | ||
| 3 | +++ components/safe_browsing/content/resources/gen_file_type_proto.py | ||
| 4 | @@ -35,6 +35,7 @@ def PlatformTypes(): | ||
| 5 | download_file_types_pb2.DownloadFileType.PLATFORM_CHROME_OS, | ||
| 6 | "fuchsia": download_file_types_pb2.DownloadFileType.PLATFORM_FUCHSIA, | ||
| 7 | "linux": download_file_types_pb2.DownloadFileType.PLATFORM_LINUX, | ||
| 8 | + "openbsd": download_file_types_pb2.DownloadFileType.PLATFORM_LINUX, | ||
| 9 | "mac": download_file_types_pb2.DownloadFileType.PLATFORM_MAC, | ||
| 10 | "win": download_file_types_pb2.DownloadFileType.PLATFORM_WINDOWS, | ||
| 11 | } | ||
| 12 | @@ -179,7 +180,7 @@ class DownloadFileTypeProtoGenerator(BinaryProtoGenera | ||
| 13 | '-t', | ||
| 14 | '--type', | ||
| 15 | help='The platform type. One of android, chromeos, ' + | ||
| 16 | - 'linux, mac, win') | ||
| 17 | + 'linux, mac, win, openbsd') | ||
| 18 | |||
| 19 | def AddExtraCommandLineArgsForVirtualEnvRun(self, opts, command): | ||
| 20 | if opts.type is not None: | ||
diff --git a/www/chromium/patches/patch-components_safe_browsing_core_browser_db_v4_protocol_manager_util_cc b/www/chromium/patches/patch-components_safe_browsing_core_browser_db_v4_protocol_manager_util_cc new file mode 100644 index 0000000..2176750 --- /dev/null +++ b/www/chromium/patches/patch-components_safe_browsing_core_browser_db_v4_protocol_manager_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/safe_browsing/core/browser/db/v4_protocol_manager_util.cc | ||
| 2 | --- components/safe_browsing/core/browser/db/v4_protocol_manager_util.cc.orig | ||
| 3 | +++ components/safe_browsing/core/browser/db/v4_protocol_manager_util.cc | ||
| 4 | @@ -115,7 +115,7 @@ std::ostream& operator<<(std::ostream& os, const ListI | ||
| 5 | PlatformType GetCurrentPlatformType() { | ||
| 6 | #if BUILDFLAG(IS_WIN) | ||
| 7 | return WINDOWS_PLATFORM; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | return LINUX_PLATFORM; | ||
| 11 | #elif BUILDFLAG(IS_IOS) | ||
| 12 | return IOS_PLATFORM; | ||
diff --git a/www/chromium/patches/patch-components_safe_browsing_core_browser_realtime_url_lookup_service_base_cc b/www/chromium/patches/patch-components_safe_browsing_core_browser_realtime_url_lookup_service_base_cc new file mode 100644 index 0000000..cd1326f --- /dev/null +++ b/www/chromium/patches/patch-components_safe_browsing_core_browser_realtime_url_lookup_service_base_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc | ||
| 2 | --- components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc.orig | ||
| 3 | +++ components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc | ||
| 4 | @@ -109,7 +109,7 @@ RTLookupRequest::OSType GetRTLookupRequestOSType() { | ||
| 5 | return RTLookupRequest::OS_TYPE_FUCHSIA; | ||
| 6 | #elif BUILDFLAG(IS_IOS) | ||
| 7 | return RTLookupRequest::OS_TYPE_IOS; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | return RTLookupRequest::OS_TYPE_LINUX; | ||
| 11 | #elif BUILDFLAG(IS_MAC) | ||
| 12 | return RTLookupRequest::OS_TYPE_MAC; | ||
diff --git a/www/chromium/patches/patch-components_security_interstitials_content_utils_cc b/www/chromium/patches/patch-components_security_interstitials_content_utils_cc new file mode 100644 index 0000000..c47fe7b --- /dev/null +++ b/www/chromium/patches/patch-components_security_interstitials_content_utils_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/security_interstitials/content/utils.cc | ||
| 2 | --- components/security_interstitials/content/utils.cc.orig | ||
| 3 | +++ components/security_interstitials/content/utils.cc | ||
| 4 | @@ -34,7 +34,7 @@ void LaunchDateAndTimeSettings() { | ||
| 5 | #if BUILDFLAG(IS_ANDROID) | ||
| 6 | JNIEnv* env = base::android::AttachCurrentThread(); | ||
| 7 | Java_DateAndTimeSettingsHelper_openDateAndTimeSettings(env); | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | struct ClockCommand { | ||
| 11 | const char* const pathname; | ||
| 12 | const char* const argument; | ||
diff --git a/www/chromium/patches/patch-components_services_paint_preview_compositor_paint_preview_compositor_collection_impl_cc b/www/chromium/patches/patch-components_services_paint_preview_compositor_paint_preview_compositor_collection_impl_cc new file mode 100644 index 0000000..f068bf0 --- /dev/null +++ b/www/chromium/patches/patch-components_services_paint_preview_compositor_paint_preview_compositor_collection_impl_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: components/services/paint_preview_compositor/paint_preview_compositor_collection_impl.cc | ||
| 2 | --- components/services/paint_preview_compositor/paint_preview_compositor_collection_impl.cc.orig | ||
| 3 | +++ components/services/paint_preview_compositor/paint_preview_compositor_collection_impl.cc | ||
| 4 | @@ -19,7 +19,7 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_WIN) | ||
| 7 | #include "content/public/child/dwrite_font_proxy_init_win.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "components/services/font/public/cpp/font_loader.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -64,7 +64,7 @@ PaintPreviewCompositorCollectionImpl::PaintPreviewComp | ||
| 14 | // Initialize font access for Skia. | ||
| 15 | #if BUILDFLAG(IS_WIN) | ||
| 16 | content::InitializeDWriteFontProxy(); | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | mojo::PendingRemote<font_service::mojom::FontService> font_service; | ||
| 20 | content::UtilityThread::Get()->BindHostReceiver( | ||
| 21 | font_service.InitWithNewPipeAndPassReceiver()); | ||
| 22 | @@ -87,7 +87,7 @@ PaintPreviewCompositorCollectionImpl::PaintPreviewComp | ||
| 23 | base::BindOnce([] { SkFontMgr::RefDefault(); })); | ||
| 24 | |||
| 25 | // Sanity check that fonts are working. | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | // No WebSandbox is provided on Linux so the local fonts aren't accessible. | ||
| 29 | // This is fine since since the subsetted fonts are provided in the SkPicture. | ||
| 30 | // However, we still need to check that the SkFontMgr starts as it is used by | ||
diff --git a/www/chromium/patches/patch-components_services_paint_preview_compositor_paint_preview_compositor_collection_impl_h b/www/chromium/patches/patch-components_services_paint_preview_compositor_paint_preview_compositor_collection_impl_h new file mode 100644 index 0000000..fae9bac --- /dev/null +++ b/www/chromium/patches/patch-components_services_paint_preview_compositor_paint_preview_compositor_collection_impl_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: components/services/paint_preview_compositor/paint_preview_compositor_collection_impl.h | ||
| 2 | --- components/services/paint_preview_compositor/paint_preview_compositor_collection_impl.h.orig | ||
| 3 | +++ components/services/paint_preview_compositor/paint_preview_compositor_collection_impl.h | ||
| 4 | @@ -21,7 +21,7 @@ | ||
| 5 | #include "mojo/public/cpp/bindings/pending_receiver.h" | ||
| 6 | #include "mojo/public/cpp/bindings/receiver.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "components/services/font/public/cpp/font_loader.h" | ||
| 11 | #include "third_party/skia/include/core/SkRefCnt.h" | ||
| 12 | #endif | ||
| 13 | @@ -73,7 +73,7 @@ class PaintPreviewCompositorCollectionImpl | ||
| 14 | std::unique_ptr<PaintPreviewCompositorImpl>> | ||
| 15 | compositors_; | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | sk_sp<font_service::FontLoader> font_loader_; | ||
| 20 | #endif | ||
| 21 | |||
diff --git a/www/chromium/patches/patch-components_startup_metric_utils_browser_startup_metric_utils_cc b/www/chromium/patches/patch-components_startup_metric_utils_browser_startup_metric_utils_cc new file mode 100644 index 0000000..2f635ce --- /dev/null +++ b/www/chromium/patches/patch-components_startup_metric_utils_browser_startup_metric_utils_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: components/startup_metric_utils/browser/startup_metric_utils.cc | ||
| 2 | --- components/startup_metric_utils/browser/startup_metric_utils.cc.orig | ||
| 3 | +++ components/startup_metric_utils/browser/startup_metric_utils.cc | ||
| 4 | @@ -347,7 +347,7 @@ base::TimeTicks StartupTimeToTimeTicks(base::Time time | ||
| 5 | |||
| 6 | // Enabling this logic on OS X causes a significant performance regression. | ||
| 7 | // https://crbug.com/601270 | ||
| 8 | -#if !BUILDFLAG(IS_APPLE) | ||
| 9 | +#if !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) | ||
| 10 | static bool statics_initialized = false; | ||
| 11 | |||
| 12 | base::ThreadPriority previous_priority = base::ThreadPriority::NORMAL; | ||
| 13 | @@ -361,7 +361,7 @@ base::TimeTicks StartupTimeToTimeTicks(base::Time time | ||
| 14 | static const base::Time time_base = base::Time::Now(); | ||
| 15 | static const base::TimeTicks trace_ticks_base = base::TimeTicks::Now(); | ||
| 16 | |||
| 17 | -#if !BUILDFLAG(IS_APPLE) | ||
| 18 | +#if !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) | ||
| 19 | if (!statics_initialized) { | ||
| 20 | base::PlatformThread::SetCurrentThreadPriority(previous_priority); | ||
| 21 | } | ||
diff --git a/www/chromium/patches/patch-components_storage_monitor_BUILD_gn b/www/chromium/patches/patch-components_storage_monitor_BUILD_gn new file mode 100644 index 0000000..745d1bd --- /dev/null +++ b/www/chromium/patches/patch-components_storage_monitor_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/storage_monitor/BUILD.gn | ||
| 2 | --- components/storage_monitor/BUILD.gn.orig | ||
| 3 | +++ components/storage_monitor/BUILD.gn | ||
| 4 | @@ -174,7 +174,7 @@ source_set("unit_tests") { | ||
| 5 | "mtp_manager_client_chromeos_unittest.cc", | ||
| 6 | "storage_monitor_chromeos_unittest.cc", | ||
| 7 | ] | ||
| 8 | - } else if (is_linux || is_chromeos_lacros) { | ||
| 9 | + } else if ((is_linux || is_chromeos_lacros) && !is_bsd) { | ||
| 10 | sources += [ "storage_monitor_linux_unittest.cc" ] | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-components_storage_monitor_removable_device_constants_cc b/www/chromium/patches/patch-components_storage_monitor_removable_device_constants_cc new file mode 100644 index 0000000..3d235e2 --- /dev/null +++ b/www/chromium/patches/patch-components_storage_monitor_removable_device_constants_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/storage_monitor/removable_device_constants.cc | ||
| 2 | --- components/storage_monitor/removable_device_constants.cc.orig | ||
| 3 | +++ components/storage_monitor/removable_device_constants.cc | ||
| 4 | @@ -10,7 +10,7 @@ namespace storage_monitor { | ||
| 5 | const char kFSUniqueIdPrefix[] = "UUID:"; | ||
| 6 | const char kVendorModelSerialPrefix[] = "VendorModelSerial:"; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | const char kVendorModelVolumeStoragePrefix[] = "VendorModelVolumeStorage:"; | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-components_storage_monitor_removable_device_constants_h b/www/chromium/patches/patch-components_storage_monitor_removable_device_constants_h new file mode 100644 index 0000000..801e906 --- /dev/null +++ b/www/chromium/patches/patch-components_storage_monitor_removable_device_constants_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/storage_monitor/removable_device_constants.h | ||
| 2 | --- components/storage_monitor/removable_device_constants.h.orig | ||
| 3 | +++ components/storage_monitor/removable_device_constants.h | ||
| 4 | @@ -14,7 +14,7 @@ namespace storage_monitor { | ||
| 5 | extern const char kFSUniqueIdPrefix[]; | ||
| 6 | extern const char kVendorModelSerialPrefix[]; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | extern const char kVendorModelVolumeStoragePrefix[]; | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-components_sync_device_info_local_device_info_util_cc b/www/chromium/patches/patch-components_sync_device_info_local_device_info_util_cc new file mode 100644 index 0000000..df32e4d --- /dev/null +++ b/www/chromium/patches/patch-components_sync_device_info_local_device_info_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/sync_device_info/local_device_info_util.cc | ||
| 2 | --- components/sync_device_info/local_device_info_util.cc.orig | ||
| 3 | +++ components/sync_device_info/local_device_info_util.cc | ||
| 4 | @@ -75,7 +75,7 @@ std::string GetPersonalizableDeviceNameInternal(); | ||
| 5 | sync_pb::SyncEnums::DeviceType GetLocalDeviceType() { | ||
| 6 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 7 | return sync_pb::SyncEnums_DeviceType_TYPE_CROS; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | return sync_pb::SyncEnums_DeviceType_TYPE_LINUX; | ||
| 11 | #elif BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS) | ||
| 12 | return ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_TABLET | ||
diff --git a/www/chromium/patches/patch-components_sync_device_info_local_device_info_util_linux_cc b/www/chromium/patches/patch-components_sync_device_info_local_device_info_util_linux_cc new file mode 100644 index 0000000..bde0e1c --- /dev/null +++ b/www/chromium/patches/patch-components_sync_device_info_local_device_info_util_linux_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: components/sync_device_info/local_device_info_util_linux.cc | ||
| 2 | --- components/sync_device_info/local_device_info_util_linux.cc.orig | ||
| 3 | +++ components/sync_device_info/local_device_info_util_linux.cc | ||
| 4 | @@ -14,6 +14,11 @@ | ||
| 5 | #include "ash/constants/devicetype.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if defined(__FreeBSD__) | ||
| 9 | +#include <sys/param.h> | ||
| 10 | +#define HOST_NAME_MAX MAXHOSTNAMELEN | ||
| 11 | +#endif | ||
| 12 | + | ||
| 13 | namespace syncer { | ||
| 14 | |||
| 15 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
diff --git a/www/chromium/patches/patch-components_translate_core_browser_translate_prefs_cc b/www/chromium/patches/patch-components_translate_core_browser_translate_prefs_cc new file mode 100644 index 0000000..90ba6cb --- /dev/null +++ b/www/chromium/patches/patch-components_translate_core_browser_translate_prefs_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/translate/core/browser/translate_prefs.cc | ||
| 2 | --- components/translate/core/browser/translate_prefs.cc.orig | ||
| 3 | +++ components/translate/core/browser/translate_prefs.cc | ||
| 4 | @@ -905,7 +905,7 @@ bool TranslatePrefs::CanTranslateLanguage( | ||
| 5 | bool TranslatePrefs::IsDetailedLanguageSettingsEnabled() { | ||
| 6 | #if BUILDFLAG(IS_ANDROID) | ||
| 7 | return base::FeatureList::IsEnabled(language::kDetailedLanguageSettings); | ||
| 8 | -#elif BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | return base::FeatureList::IsEnabled( | ||
| 11 | language::kDesktopDetailedLanguageSettings); | ||
| 12 | #else | ||
diff --git a/www/chromium/patches/patch-components_translate_core_common_translate_util_cc b/www/chromium/patches/patch-components_translate_core_common_translate_util_cc new file mode 100644 index 0000000..a71ac26 --- /dev/null +++ b/www/chromium/patches/patch-components_translate_core_common_translate_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/translate/core/common/translate_util.cc | ||
| 2 | --- components/translate/core/common/translate_util.cc.orig | ||
| 3 | +++ components/translate/core/common/translate_util.cc | ||
| 4 | @@ -34,7 +34,7 @@ const base::Feature kTranslateSubFrames{"TranslateSubF | ||
| 5 | const base::Feature kTFLiteLanguageDetectionEnabled{ | ||
| 6 | "TFLiteLanguageDetectionEnabled", | ||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || \ | ||
| 8 | - BUILDFLAG(IS_MAC) || BUILDFLAG(IS_ANDROID) | ||
| 9 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 11 | #else | ||
| 12 | base::FEATURE_DISABLED_BY_DEFAULT | ||
diff --git a/www/chromium/patches/patch-components_update_client_update_query_params_cc b/www/chromium/patches/patch-components_update_client_update_query_params_cc new file mode 100644 index 0000000..6965525 --- /dev/null +++ b/www/chromium/patches/patch-components_update_client_update_query_params_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/update_client/update_query_params.cc | ||
| 2 | --- components/update_client/update_query_params.cc.orig | ||
| 3 | +++ components/update_client/update_query_params.cc | ||
| 4 | @@ -40,6 +40,8 @@ const char kOs[] = | ||
| 5 | "fuchsia"; | ||
| 6 | #elif BUILDFLAG(IS_OPENBSD) | ||
| 7 | "openbsd"; | ||
| 8 | +#elif defined(OS_FREEBSD) | ||
| 9 | + "freebsd"; | ||
| 10 | #else | ||
| 11 | #error "unknown os" | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-components_url_formatter_spoof_checks_idn_spoof_checker_cc b/www/chromium/patches/patch-components_url_formatter_spoof_checks_idn_spoof_checker_cc new file mode 100644 index 0000000..912f0d9 --- /dev/null +++ b/www/chromium/patches/patch-components_url_formatter_spoof_checks_idn_spoof_checker_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/url_formatter/spoof_checks/idn_spoof_checker.cc | ||
| 2 | --- components/url_formatter/spoof_checks/idn_spoof_checker.cc.orig | ||
| 3 | +++ components/url_formatter/spoof_checks/idn_spoof_checker.cc | ||
| 4 | @@ -285,7 +285,7 @@ IDNSpoofChecker::IDNSpoofChecker() { | ||
| 5 | // The ideal fix would be to change the omnibox font used for Thai. In | ||
| 6 | // that case, the Linux-only list should be revisited and potentially | ||
| 7 | // removed. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | "[ทนบพรหเแ๐ดลปฟม]", | ||
| 11 | #else | ||
| 12 | "[บพเแ๐]", | ||
diff --git a/www/chromium/patches/patch-components_viz_common_features_cc b/www/chromium/patches/patch-components_viz_common_features_cc new file mode 100644 index 0000000..736edda --- /dev/null +++ b/www/chromium/patches/patch-components_viz_common_features_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/viz/common/features.cc | ||
| 2 | --- components/viz/common/features.cc.orig | ||
| 3 | +++ components/viz/common/features.cc | ||
| 4 | @@ -67,7 +67,7 @@ const base::Feature kUseSkiaRenderer { | ||
| 5 | "UseSkiaRenderer", | ||
| 6 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_ANDROID) || \ | ||
| 7 | BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_MAC) | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 11 | #else | ||
| 12 | base::FEATURE_DISABLED_BY_DEFAULT | ||
diff --git a/www/chromium/patches/patch-components_viz_common_gpu_dawn_context_provider_cc b/www/chromium/patches/patch-components_viz_common_gpu_dawn_context_provider_cc new file mode 100644 index 0000000..d3b37d2 --- /dev/null +++ b/www/chromium/patches/patch-components_viz_common_gpu_dawn_context_provider_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/viz/common/gpu/dawn_context_provider.cc | ||
| 2 | --- components/viz/common/gpu/dawn_context_provider.cc.orig | ||
| 3 | +++ components/viz/common/gpu/dawn_context_provider.cc | ||
| 4 | @@ -20,7 +20,7 @@ namespace { | ||
| 5 | wgpu::BackendType GetDefaultBackendType() { | ||
| 6 | #if BUILDFLAG(IS_WIN) | ||
| 7 | return wgpu::BackendType::D3D12; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | return wgpu::BackendType::Vulkan; | ||
| 11 | #else | ||
| 12 | NOTREACHED(); | ||
diff --git a/www/chromium/patches/patch-components_viz_host_host_display_client_cc b/www/chromium/patches/patch-components_viz_host_host_display_client_cc new file mode 100644 index 0000000..9dcf873 --- /dev/null +++ b/www/chromium/patches/patch-components_viz_host_host_display_client_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/viz/host/host_display_client.cc | ||
| 2 | --- components/viz/host/host_display_client.cc.orig | ||
| 3 | +++ components/viz/host/host_display_client.cc | ||
| 4 | @@ -61,7 +61,7 @@ void HostDisplayClient::CreateLayeredWindowUpdater( | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | void HostDisplayClient::DidCompleteSwapWithNewSize(const gfx::Size& size) { | ||
| 11 | NOTIMPLEMENTED(); | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-components_viz_host_host_display_client_h b/www/chromium/patches/patch-components_viz_host_host_display_client_h new file mode 100644 index 0000000..ec7445f --- /dev/null +++ b/www/chromium/patches/patch-components_viz_host_host_display_client_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/viz/host/host_display_client.h | ||
| 2 | --- components/viz/host/host_display_client.h.orig | ||
| 3 | +++ components/viz/host/host_display_client.h | ||
| 4 | @@ -48,7 +48,7 @@ class VIZ_HOST_EXPORT HostDisplayClient : public mojom | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | void DidCompleteSwapWithNewSize(const gfx::Size& size) override; | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-components_viz_host_renderer_settings_creation_cc b/www/chromium/patches/patch-components_viz_host_renderer_settings_creation_cc new file mode 100644 index 0000000..bd9403a --- /dev/null +++ b/www/chromium/patches/patch-components_viz_host_renderer_settings_creation_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/viz/host/renderer_settings_creation.cc | ||
| 2 | --- components/viz/host/renderer_settings_creation.cc.orig | ||
| 3 | +++ components/viz/host/renderer_settings_creation.cc | ||
| 4 | @@ -52,7 +52,7 @@ RendererSettings CreateRendererSettings() { | ||
| 5 | renderer_settings.partial_swap_enabled = | ||
| 6 | !command_line->HasSwitch(switches::kUIDisablePartialSwap); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Simple frame rate throttling only works on macOS and Linux | ||
| 11 | renderer_settings.apply_simple_frame_rate_throttling = | ||
| 12 | features::IsSimpleFrameRateThrottlingEnabled(); | ||
diff --git a/www/chromium/patches/patch-components_viz_service_display_embedder_skia_output_surface_impl_cc b/www/chromium/patches/patch-components_viz_service_display_embedder_skia_output_surface_impl_cc new file mode 100644 index 0000000..700dd18 --- /dev/null +++ b/www/chromium/patches/patch-components_viz_service_display_embedder_skia_output_surface_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/viz/service/display_embedder/skia_output_surface_impl.cc | ||
| 2 | --- components/viz/service/display_embedder/skia_output_surface_impl.cc.orig | ||
| 3 | +++ components/viz/service/display_embedder/skia_output_surface_impl.cc | ||
| 4 | @@ -1171,7 +1171,7 @@ GrBackendFormat SkiaOutputSurfaceImpl::GetGrBackendFor | ||
| 5 | ->GetDeviceQueue() | ||
| 6 | ->GetVulkanPhysicalDevice(), | ||
| 7 | VK_IMAGE_TILING_OPTIMAL, ycbcr_info); | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Textures that were allocated _on linux_ with ycbcr info came from | ||
| 11 | // VaapiVideoDecoder, which exports using DRM format modifiers. | ||
| 12 | return GrBackendFormat::MakeVk(gr_ycbcr_info, | ||
diff --git a/www/chromium/patches/patch-components_viz_service_display_embedder_software_output_surface_cc b/www/chromium/patches/patch-components_viz_service_display_embedder_software_output_surface_cc new file mode 100644 index 0000000..6662f09 --- /dev/null +++ b/www/chromium/patches/patch-components_viz_service_display_embedder_software_output_surface_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: components/viz/service/display_embedder/software_output_surface.cc | ||
| 2 | --- components/viz/service/display_embedder/software_output_surface.cc.orig | ||
| 3 | +++ components/viz/service/display_embedder/software_output_surface.cc | ||
| 4 | @@ -118,7 +118,7 @@ void SoftwareOutputSurface::SwapBuffersCallback(base:: | ||
| 5 | now.SnappedToNextTick(refresh_timebase_, refresh_interval_) - now; | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | if (needs_swap_size_notifications_) | ||
| 11 | client_->DidSwapWithSize(pixel_size); | ||
| 12 | #endif | ||
| 13 | @@ -149,7 +149,7 @@ gfx::OverlayTransform SoftwareOutputSurface::GetDispla | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | void SoftwareOutputSurface::SetNeedsSwapSizeNotifications( | ||
| 20 | bool needs_swap_size_notifications) { | ||
| 21 | needs_swap_size_notifications_ = needs_swap_size_notifications; | ||
diff --git a/www/chromium/patches/patch-components_viz_service_display_embedder_software_output_surface_h b/www/chromium/patches/patch-components_viz_service_display_embedder_software_output_surface_h new file mode 100644 index 0000000..a5643be --- /dev/null +++ b/www/chromium/patches/patch-components_viz_service_display_embedder_software_output_surface_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: components/viz/service/display_embedder/software_output_surface.h | ||
| 2 | --- components/viz/service/display_embedder/software_output_surface.h.orig | ||
| 3 | +++ components/viz/service/display_embedder/software_output_surface.h | ||
| 4 | @@ -56,7 +56,7 @@ class VIZ_SERVICE_EXPORT SoftwareOutputSurface : publi | ||
| 5 | gfx::OverlayTransform GetDisplayTransform() override; | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | void SetNeedsSwapSizeNotifications( | ||
| 11 | bool needs_swap_size_notifications) override; | ||
| 12 | #endif | ||
| 13 | @@ -78,7 +78,7 @@ class VIZ_SERVICE_EXPORT SoftwareOutputSurface : publi | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | bool needs_swap_size_notifications_ = false; | ||
| 20 | #endif | ||
| 21 | |||
diff --git a/www/chromium/patches/patch-components_viz_service_frame_sinks_root_compositor_frame_sink_impl_cc b/www/chromium/patches/patch-components_viz_service_frame_sinks_root_compositor_frame_sink_impl_cc new file mode 100644 index 0000000..7f7c4e5 --- /dev/null +++ b/www/chromium/patches/patch-components_viz_service_frame_sinks_root_compositor_frame_sink_impl_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: components/viz/service/frame_sinks/root_compositor_frame_sink_impl.cc | ||
| 2 | --- components/viz/service/frame_sinks/root_compositor_frame_sink_impl.cc.orig | ||
| 3 | +++ components/viz/service/frame_sinks/root_compositor_frame_sink_impl.cc | ||
| 4 | @@ -97,7 +97,7 @@ RootCompositorFrameSinkImpl::Create( | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // For X11, we need notify client about swap completion after resizing, so the | ||
| 11 | // client can use it for synchronize with X11 WM. | ||
| 12 | output_surface->SetNeedsSwapSizeNotifications(true); | ||
| 13 | @@ -569,7 +569,7 @@ void RootCompositorFrameSinkImpl::DisplayDidCompleteSw | ||
| 14 | display_client_->DidCompleteSwapWithSize(pixel_size); | ||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | if (display_client_ && pixel_size != last_swap_pixel_size_) { | ||
| 20 | last_swap_pixel_size_ = pixel_size; | ||
| 21 | display_client_->DidCompleteSwapWithNewSize(last_swap_pixel_size_); | ||
diff --git a/www/chromium/patches/patch-components_viz_service_frame_sinks_root_compositor_frame_sink_impl_h b/www/chromium/patches/patch-components_viz_service_frame_sinks_root_compositor_frame_sink_impl_h new file mode 100644 index 0000000..af112d3 --- /dev/null +++ b/www/chromium/patches/patch-components_viz_service_frame_sinks_root_compositor_frame_sink_impl_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/viz/service/frame_sinks/root_compositor_frame_sink_impl.h | ||
| 2 | --- components/viz/service/frame_sinks/root_compositor_frame_sink_impl.h.orig | ||
| 3 | +++ components/viz/service/frame_sinks/root_compositor_frame_sink_impl.h | ||
| 4 | @@ -196,7 +196,7 @@ class VIZ_SERVICE_EXPORT RootCompositorFrameSinkImpl | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | gfx::Size last_swap_pixel_size_; | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-components_viz_test_fake_display_client_cc b/www/chromium/patches/patch-components_viz_test_fake_display_client_cc new file mode 100644 index 0000000..8b59323 --- /dev/null +++ b/www/chromium/patches/patch-components_viz_test_fake_display_client_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/viz/test/fake_display_client.cc | ||
| 2 | --- components/viz/test/fake_display_client.cc.orig | ||
| 3 | +++ components/viz/test/fake_display_client.cc | ||
| 4 | @@ -25,7 +25,7 @@ void FakeDisplayClient::CreateLayeredWindowUpdater( | ||
| 5 | mojo::PendingReceiver<mojom::LayeredWindowUpdater> receiver) {} | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | void FakeDisplayClient::DidCompleteSwapWithNewSize(const gfx::Size& size) {} | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-components_viz_test_fake_display_client_h b/www/chromium/patches/patch-components_viz_test_fake_display_client_h new file mode 100644 index 0000000..b97d2cf --- /dev/null +++ b/www/chromium/patches/patch-components_viz_test_fake_display_client_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/viz/test/fake_display_client.h | ||
| 2 | --- components/viz/test/fake_display_client.h.orig | ||
| 3 | +++ components/viz/test/fake_display_client.h | ||
| 4 | @@ -34,7 +34,7 @@ class FakeDisplayClient : public mojom::DisplayClient | ||
| 5 | mojo::PendingReceiver<mojom::LayeredWindowUpdater> receiver) override; | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | void DidCompleteSwapWithNewSize(const gfx::Size& size) override; | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-components_viz_test_mock_display_client_h b/www/chromium/patches/patch-components_viz_test_mock_display_client_h new file mode 100644 index 0000000..be28fc0 --- /dev/null +++ b/www/chromium/patches/patch-components_viz_test_mock_display_client_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: components/viz/test/mock_display_client.h | ||
| 2 | --- components/viz/test/mock_display_client.h.orig | ||
| 3 | +++ components/viz/test/mock_display_client.h | ||
| 4 | @@ -44,7 +44,7 @@ class MockDisplayClient : public mojom::DisplayClient | ||
| 5 | #endif | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | MOCK_METHOD1(DidCompleteSwapWithNewSize, void(const gfx::Size&)); | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-content_app_content_main_cc b/www/chromium/patches/patch-content_app_content_main_cc new file mode 100644 index 0000000..3dbc9f0 --- /dev/null +++ b/www/chromium/patches/patch-content_app_content_main_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/app/content_main.cc | ||
| 2 | --- content/app/content_main.cc.orig | ||
| 3 | +++ content/app/content_main.cc | ||
| 4 | @@ -254,7 +254,7 @@ RunContentProcess(ContentMainParams params, | ||
| 5 | base::allocator::InstallDanglingRawPtrChecks(); | ||
| 6 | base::EnableTerminationOnOutOfMemory(); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // The various desktop environments set this environment variable that | ||
| 11 | // allows the dbus client library to connect directly to the bus. When this | ||
| 12 | // variable is not set (test environments like xvfb-run), the dbus client | ||
diff --git a/www/chromium/patches/patch-content_app_content_main_runner_impl_cc b/www/chromium/patches/patch-content_app_content_main_runner_impl_cc new file mode 100644 index 0000000..46571a5 --- /dev/null +++ b/www/chromium/patches/patch-content_app_content_main_runner_impl_cc | |||
| @@ -0,0 +1,121 @@ | |||
| 1 | Index: content/app/content_main_runner_impl.cc | ||
| 2 | --- content/app/content_main_runner_impl.cc.orig | ||
| 3 | +++ content/app/content_main_runner_impl.cc | ||
| 4 | @@ -130,13 +130,13 @@ | ||
| 5 | #include "base/posix/global_descriptors.h" | ||
| 6 | #include "content/public/common/content_descriptors.h" | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_MAC) | ||
| 9 | +#if !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 10 | #include "content/public/common/zygote/zygote_fork_delegate_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | #endif // BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA) | ||
| 14 | |||
| 15 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 16 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 17 | #include "base/native_library.h" | ||
| 18 | #include "base/rand_util.h" | ||
| 19 | #include "content/public/common/zygote/sandbox_support_linux.h" | ||
| 20 | @@ -170,6 +170,10 @@ | ||
| 21 | #include "media/base/media_switches.h" | ||
| 22 | #endif | ||
| 23 | |||
| 24 | +#if BUILDFLAG(IS_BSD) | ||
| 25 | +#include "base/system/sys_info.h" | ||
| 26 | +#endif | ||
| 27 | + | ||
| 28 | #if BUILDFLAG(IS_ANDROID) | ||
| 29 | #include "base/system/sys_info.h" | ||
| 30 | #include "components/power_scheduler/power_scheduler.h" | ||
| 31 | @@ -340,7 +344,7 @@ void InitializeZygoteSandboxForBrowserProcess( | ||
| 32 | } | ||
| 33 | #endif // BUILDFLAG(USE_ZYGOTE_HANDLE) | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | |||
| 38 | #if BUILDFLAG(ENABLE_PLUGINS) | ||
| 39 | // Loads the (native) libraries but does not initialize them (i.e., does not | ||
| 40 | @@ -376,7 +380,7 @@ void PreloadLibraryCdms() { | ||
| 41 | } | ||
| 42 | #endif // BUILDFLAG(ENABLE_LIBRARY_CDMS) | ||
| 43 | |||
| 44 | -#if BUILDFLAG(USE_ZYGOTE_HANDLE) | ||
| 45 | +#if BUILDFLAG(USE_ZYGOTE_HANDLE) || BUILDFLAG(IS_BSD) | ||
| 46 | void PreSandboxInit() { | ||
| 47 | // Pre-acquire resources needed by BoringSSL. See | ||
| 48 | // https://boringssl.googlesource.com/boringssl/+/HEAD/SANDBOXING.md | ||
| 49 | @@ -392,6 +396,11 @@ void PreSandboxInit() { | ||
| 50 | #endif | ||
| 51 | InitializeWebRtcModule(); | ||
| 52 | |||
| 53 | +#if BUILDFLAG(IS_BSD) | ||
| 54 | + // "cache" the amount of physical memory before pledge(2) | ||
| 55 | + base::SysInfo::AmountOfPhysicalMemoryMB(); | ||
| 56 | +#endif | ||
| 57 | + | ||
| 58 | // Set the android SkFontMgr for blink. We need to ensure this is done | ||
| 59 | // before the sandbox is initialized to allow the font manager to access | ||
| 60 | // font configuration files on disk. | ||
| 61 | @@ -561,7 +570,7 @@ int NO_STACK_PROTECTOR RunZygote(ContentMainDelegate* | ||
| 62 | delegate->ZygoteStarting(&zygote_fork_delegates); | ||
| 63 | media::InitializeMediaLibrary(); | ||
| 64 | |||
| 65 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 66 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 67 | PreSandboxInit(); | ||
| 68 | #endif | ||
| 69 | |||
| 70 | @@ -747,11 +756,10 @@ int ContentMainRunnerImpl::Initialize(ContentMainParam | ||
| 71 | kFieldTrialDescriptor + base::GlobalDescriptors::kBaseDescriptor); | ||
| 72 | #endif // !BUILDFLAG(IS_ANDROID) | ||
| 73 | |||
| 74 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_OPENBSD) | ||
| 75 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 76 | g_fds->Set(kCrashDumpSignal, | ||
| 77 | kCrashDumpSignal + base::GlobalDescriptors::kBaseDescriptor); | ||
| 78 | -#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || | ||
| 79 | - // BUILDFLAG(IS_OPENBSD) | ||
| 80 | +#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 81 | |||
| 82 | #endif // !BUILDFLAG(IS_WIN) | ||
| 83 | |||
| 84 | @@ -949,6 +957,16 @@ int ContentMainRunnerImpl::Initialize(ContentMainParam | ||
| 85 | } | ||
| 86 | #endif | ||
| 87 | |||
| 88 | +#if BUILDFLAG(IS_BSD) | ||
| 89 | + if (process_type.empty()) { | ||
| 90 | + sandbox::policy::SandboxLinux::Options sandbox_options; | ||
| 91 | + sandbox::policy::SandboxLinux::GetInstance()->InitializeSandbox( | ||
| 92 | + sandbox::policy::SandboxTypeFromCommandLine( | ||
| 93 | + *base::CommandLine::ForCurrentProcess()), | ||
| 94 | + sandbox::policy::SandboxLinux::PreSandboxHook(), sandbox_options); | ||
| 95 | + } | ||
| 96 | +#endif | ||
| 97 | + | ||
| 98 | delegate_->SandboxInitialized(process_type); | ||
| 99 | |||
| 100 | #if BUILDFLAG(USE_ZYGOTE_HANDLE) | ||
| 101 | @@ -1004,7 +1022,7 @@ int NO_STACK_PROTECTOR ContentMainRunnerImpl::Run() { | ||
| 102 | mojo::core::InitFeatures(); | ||
| 103 | } | ||
| 104 | |||
| 105 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 106 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 107 | // If dynamic Mojo Core is being used, ensure that it's loaded very early in | ||
| 108 | // the child/zygote process, before any sandbox is initialized. The library | ||
| 109 | // is not fully initialized with IPC support until a ChildProcess is later | ||
| 110 | @@ -1037,6 +1055,11 @@ int NO_STACK_PROTECTOR ContentMainRunnerImpl::Run() { | ||
| 111 | content_main_params_.reset(); | ||
| 112 | |||
| 113 | RegisterMainThreadFactories(); | ||
| 114 | + | ||
| 115 | +#if BUILDFLAG(IS_BSD) | ||
| 116 | + if (!process_type.empty()) | ||
| 117 | + PreSandboxInit(); | ||
| 118 | +#endif | ||
| 119 | |||
| 120 | if (process_type.empty()) | ||
| 121 | return RunBrowser(std::move(main_params), start_minimal_browser); | ||
diff --git a/www/chromium/patches/patch-content_browser_BUILD_gn b/www/chromium/patches/patch-content_browser_BUILD_gn new file mode 100644 index 0000000..c2568bd --- /dev/null +++ b/www/chromium/patches/patch-content_browser_BUILD_gn | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: content/browser/BUILD.gn | ||
| 2 | --- content/browser/BUILD.gn.orig | ||
| 3 | +++ content/browser/BUILD.gn | ||
| 4 | @@ -2331,6 +2331,13 @@ source_set("browser") { | ||
| 5 | ] | ||
| 6 | } | ||
| 7 | |||
| 8 | + if (is_bsd) { | ||
| 9 | + sources -= [ | ||
| 10 | + "sandbox_ipc_linux.cc", | ||
| 11 | + "sandbox_ipc_linux.h", | ||
| 12 | + ] | ||
| 13 | + } | ||
| 14 | + | ||
| 15 | if (is_chromeos) { | ||
| 16 | deps += [ "//components/value_store:value_store" ] | ||
| 17 | sources += [ | ||
diff --git a/www/chromium/patches/patch-content_browser_browser_child_process_host_impl_cc b/www/chromium/patches/patch-content_browser_browser_child_process_host_impl_cc new file mode 100644 index 0000000..84329e2 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_browser_child_process_host_impl_cc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: content/browser/browser_child_process_host_impl.cc | ||
| 2 | --- content/browser/browser_child_process_host_impl.cc.orig | ||
| 3 | +++ content/browser/browser_child_process_host_impl.cc | ||
| 4 | @@ -292,6 +292,7 @@ void BrowserChildProcessHostImpl::LaunchWithoutExtraCo | ||
| 5 | switches::kDisableBestEffortTasks, | ||
| 6 | switches::kDisableLogging, | ||
| 7 | switches::kEnableLogging, | ||
| 8 | + switches::kDisableUnveil, | ||
| 9 | switches::kIPCConnectionTimeout, | ||
| 10 | switches::kLogBestEffortTasks, | ||
| 11 | switches::kLogFile, | ||
diff --git a/www/chromium/patches/patch-content_browser_browser_main_loop_cc b/www/chromium/patches/patch-content_browser_browser_main_loop_cc new file mode 100644 index 0000000..0740433 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_browser_main_loop_cc | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | Index: content/browser/browser_main_loop.cc | ||
| 2 | --- content/browser/browser_main_loop.cc.orig | ||
| 3 | +++ content/browser/browser_main_loop.cc | ||
| 4 | @@ -240,6 +240,12 @@ | ||
| 5 | #include "mojo/public/cpp/bindings/lib/test_random_mojo_delays.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if BUILDFLAG(IS_BSD) | ||
| 9 | +#include "content/browser/sandbox_host_linux.h" | ||
| 10 | +#include "content/public/common/zygote/sandbox_support_linux.h" | ||
| 11 | +#include "sandbox/policy/sandbox.h" | ||
| 12 | +#endif | ||
| 13 | + | ||
| 14 | // One of the linux specific headers defines this as a macro. | ||
| 15 | #ifdef DestroyAll | ||
| 16 | #undef DestroyAll | ||
| 17 | @@ -547,6 +553,12 @@ int BrowserMainLoop::EarlyInitialization() { | ||
| 18 | // by now since a thread to start the ServiceManager has been created | ||
| 19 | // before the browser main loop starts. | ||
| 20 | DCHECK(SandboxHostLinux::GetInstance()->IsInitialized()); | ||
| 21 | +#elif BUILDFLAG(IS_BSD) | ||
| 22 | + base::FileHandleMappingVector additional_remapped_fds; | ||
| 23 | + base::LaunchOptions options; | ||
| 24 | + SandboxHostLinux::GetInstance()->Init(); | ||
| 25 | + const int sfd = SandboxHostLinux::GetInstance()->GetChildSocket(); | ||
| 26 | + options.fds_to_remap.push_back(std::make_pair(sfd, GetSandboxFD())); | ||
| 27 | #endif | ||
| 28 | |||
| 29 | // GLib's spawning of new processes is buggy, so it's important that at this | ||
| 30 | @@ -574,7 +586,7 @@ int BrowserMainLoop::EarlyInitialization() { | ||
| 31 | |||
| 32 | // Up the priority of the UI thread unless it was already high (since Mac | ||
| 33 | // and recent versions of Android (O+) do this automatically). | ||
| 34 | -#if !BUILDFLAG(IS_MAC) | ||
| 35 | +#if !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 36 | if (base::FeatureList::IsEnabled( | ||
| 37 | features::kBrowserUseDisplayThreadPriority) && | ||
| 38 | base::PlatformThread::GetCurrentThreadPriority() < | ||
| 39 | @@ -585,7 +597,7 @@ int BrowserMainLoop::EarlyInitialization() { | ||
| 40 | #endif // !BUILDFLAG(IS_MAC) | ||
| 41 | |||
| 42 | #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 43 | - BUILDFLAG(IS_ANDROID) | ||
| 44 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 45 | // We use quite a few file descriptors for our IPC as well as disk the disk | ||
| 46 | // cache,and the default limit on the Mac is low (256), so bump it up. | ||
| 47 | |||
diff --git a/www/chromium/patches/patch-content_browser_child_process_launcher_helper_linux_cc b/www/chromium/patches/patch-content_browser_child_process_launcher_helper_linux_cc new file mode 100644 index 0000000..45fa41f --- /dev/null +++ b/www/chromium/patches/patch-content_browser_child_process_launcher_helper_linux_cc | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | Index: content/browser/child_process_launcher_helper_linux.cc | ||
| 2 | --- content/browser/child_process_launcher_helper_linux.cc.orig | ||
| 3 | +++ content/browser/child_process_launcher_helper_linux.cc | ||
| 4 | @@ -19,7 +19,9 @@ | ||
| 5 | #include "content/public/common/result_codes.h" | ||
| 6 | #include "content/public/common/sandboxed_process_launcher_delegate.h" | ||
| 7 | #include "content/public/common/zygote/sandbox_support_linux.h" | ||
| 8 | +#if !BUILDFLAG(IS_BSD) | ||
| 9 | #include "content/public/common/zygote/zygote_handle.h" | ||
| 10 | +#endif | ||
| 11 | #include "sandbox/policy/linux/sandbox_linux.h" | ||
| 12 | |||
| 13 | namespace content { | ||
| 14 | @@ -68,6 +70,7 @@ ChildProcessLauncherHelper::LaunchProcessOnLauncherThr | ||
| 15 | int* launch_result) { | ||
| 16 | *is_synchronous_launch = true; | ||
| 17 | |||
| 18 | +#if !BUILDFLAG(IS_BSD) | ||
| 19 | ZygoteHandle zygote_handle = | ||
| 20 | base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kNoZygote) | ||
| 21 | ? nullptr | ||
| 22 | @@ -81,7 +84,6 @@ ChildProcessLauncherHelper::LaunchProcessOnLauncherThr | ||
| 23 | GetProcessType()); | ||
| 24 | *launch_result = LAUNCH_RESULT_SUCCESS; | ||
| 25 | |||
| 26 | -#if !BUILDFLAG(IS_OPENBSD) | ||
| 27 | if (handle) { | ||
| 28 | // It could be a renderer process or an utility process. | ||
| 29 | int oom_score = content::kMiscOomScore; | ||
| 30 | @@ -90,13 +92,13 @@ ChildProcessLauncherHelper::LaunchProcessOnLauncherThr | ||
| 31 | oom_score = content::kLowestRendererOomScore; | ||
| 32 | ZygoteHostImpl::GetInstance()->AdjustRendererOOMScore(handle, oom_score); | ||
| 33 | } | ||
| 34 | -#endif | ||
| 35 | |||
| 36 | Process process; | ||
| 37 | process.process = base::Process(handle); | ||
| 38 | process.zygote = zygote_handle; | ||
| 39 | return process; | ||
| 40 | } | ||
| 41 | +#endif | ||
| 42 | |||
| 43 | Process process; | ||
| 44 | process.process = base::LaunchProcess(*command_line(), options); | ||
| 45 | @@ -114,10 +116,14 @@ ChildProcessTerminationInfo ChildProcessLauncherHelper | ||
| 46 | const ChildProcessLauncherHelper::Process& process, | ||
| 47 | bool known_dead) { | ||
| 48 | ChildProcessTerminationInfo info; | ||
| 49 | +#if !BUILDFLAG(IS_BSD) | ||
| 50 | if (process.zygote) { | ||
| 51 | info.status = process.zygote->GetTerminationStatus( | ||
| 52 | process.process.Handle(), known_dead, &info.exit_code); | ||
| 53 | } else if (known_dead) { | ||
| 54 | +#else | ||
| 55 | + if (known_dead) { | ||
| 56 | +#endif | ||
| 57 | info.status = base::GetKnownDeadTerminationStatus(process.process.Handle(), | ||
| 58 | &info.exit_code); | ||
| 59 | } else { | ||
| 60 | @@ -141,13 +147,17 @@ void ChildProcessLauncherHelper::ForceNormalProcessTer | ||
| 61 | DCHECK(CurrentlyOnProcessLauncherTaskRunner()); | ||
| 62 | process.process.Terminate(RESULT_CODE_NORMAL_EXIT, false); | ||
| 63 | // On POSIX, we must additionally reap the child. | ||
| 64 | +#if !BUILDFLAG(IS_BSD) | ||
| 65 | if (process.zygote) { | ||
| 66 | // If the renderer was created via a zygote, we have to proxy the reaping | ||
| 67 | // through the zygote process. | ||
| 68 | process.zygote->EnsureProcessTerminated(process.process.Handle()); | ||
| 69 | } else { | ||
| 70 | +#endif | ||
| 71 | base::EnsureProcessTerminated(std::move(process.process)); | ||
| 72 | +#if !BUILDFLAG(IS_BSD) | ||
| 73 | } | ||
| 74 | +#endif | ||
| 75 | } | ||
| 76 | |||
| 77 | void ChildProcessLauncherHelper::SetProcessPriorityOnLauncherThread( | ||
diff --git a/www/chromium/patches/patch-content_browser_compositor_viz_process_transport_factory_cc b/www/chromium/patches/patch-content_browser_compositor_viz_process_transport_factory_cc new file mode 100644 index 0000000..17c25cd --- /dev/null +++ b/www/chromium/patches/patch-content_browser_compositor_viz_process_transport_factory_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/browser/compositor/viz_process_transport_factory.cc | ||
| 2 | --- content/browser/compositor/viz_process_transport_factory.cc.orig | ||
| 3 | +++ content/browser/compositor/viz_process_transport_factory.cc | ||
| 4 | @@ -112,7 +112,7 @@ class HostDisplayClient : public viz::HostDisplayClien | ||
| 5 | // viz::HostDisplayClient: | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | void DidCompleteSwapWithNewSize(const gfx::Size& size) override { | ||
| 11 | compositor_->OnCompleteSwapWithNewSize(size); | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-content_browser_compute_pressure_cpu_probe_cc b/www/chromium/patches/patch-content_browser_compute_pressure_cpu_probe_cc new file mode 100644 index 0000000..01db364 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_compute_pressure_cpu_probe_cc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: content/browser/compute_pressure/cpu_probe.cc | ||
| 2 | --- content/browser/compute_pressure/cpu_probe.cc.orig | ||
| 3 | +++ content/browser/compute_pressure/cpu_probe.cc | ||
| 4 | @@ -53,6 +53,7 @@ std::unique_ptr<CpuProbe> CpuProbe::Create() { | ||
| 5 | #elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 6 | return CpuProbeLinux::Create(); | ||
| 7 | #else | ||
| 8 | + NOTIMPLEMENTED(); | ||
| 9 | return std::make_unique<NullCpuProbe>(); | ||
| 10 | #endif // BUILDFLAG(IS_ANDROID) | ||
| 11 | } | ||
diff --git a/www/chromium/patches/patch-content_browser_devtools_protocol_system_info_handler_cc b/www/chromium/patches/patch-content_browser_devtools_protocol_system_info_handler_cc new file mode 100644 index 0000000..77525e1 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_devtools_protocol_system_info_handler_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/browser/devtools/protocol/system_info_handler.cc | ||
| 2 | --- content/browser/devtools/protocol/system_info_handler.cc.orig | ||
| 3 | +++ content/browser/devtools/protocol/system_info_handler.cc | ||
| 4 | @@ -50,7 +50,7 @@ std::unique_ptr<SystemInfo::Size> GfxSizeToSystemInfoS | ||
| 5 | // Windows builds need more time -- see Issue 873112 and 1004472. | ||
| 6 | // Mac builds need more time - see Issue angleproject:6182. | ||
| 7 | #if ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && !defined(NDEBUG)) || \ | ||
| 8 | - BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || defined(USE_OZONE) | ||
| 9 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || defined(USE_OZONE) || BUILDFLAG(IS_BSD) | ||
| 10 | static constexpr int kGPUInfoWatchdogTimeoutMultiplierOS = 3; | ||
| 11 | #else | ||
| 12 | static constexpr int kGPUInfoWatchdogTimeoutMultiplierOS = 1; | ||
diff --git a/www/chromium/patches/patch-content_browser_download_download_manager_impl_cc b/www/chromium/patches/patch-content_browser_download_download_manager_impl_cc new file mode 100644 index 0000000..e0259d9 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_download_download_manager_impl_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: content/browser/download/download_manager_impl.cc | ||
| 2 | --- content/browser/download/download_manager_impl.cc.orig | ||
| 3 | +++ content/browser/download/download_manager_impl.cc | ||
| 4 | @@ -89,7 +89,7 @@ | ||
| 5 | #include "third_party/blink/public/common/storage_key/storage_key.h" | ||
| 6 | #include "url/origin.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/nix/xdg_util.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -217,7 +217,7 @@ class DownloadItemFactoryImpl : public download::Downl | ||
| 14 | } | ||
| 15 | }; | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | base::FilePath GetTemporaryDownloadDirectory() { | ||
| 20 | std::unique_ptr<base::Environment> env(base::Environment::Create()); | ||
| 21 | return base::nix::GetXDGDirectory(env.get(), "XDG_DATA_HOME", ".local/share"); | ||
| 22 | @@ -653,7 +653,7 @@ bool DownloadManagerImpl::InterceptDownload( | ||
| 23 | |||
| 24 | base::FilePath DownloadManagerImpl::GetDefaultDownloadDirectory() { | ||
| 25 | base::FilePath default_download_directory; | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | // TODO(thomasanderson,crbug.com/784010): Remove this when all Linux | ||
| 29 | // distros with versions of GTK lower than 3.14.7 are no longer | ||
| 30 | // supported. This should happen when support for Ubuntu Trusty and | ||
diff --git a/www/chromium/patches/patch-content_browser_font_access_font_enumeration_data_source_cc b/www/chromium/patches/patch-content_browser_font_access_font_enumeration_data_source_cc new file mode 100644 index 0000000..0160104 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_font_access_font_enumeration_data_source_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: content/browser/font_access/font_enumeration_data_source.cc | ||
| 2 | --- content/browser/font_access/font_enumeration_data_source.cc.orig | ||
| 3 | +++ content/browser/font_access/font_enumeration_data_source.cc | ||
| 4 | @@ -16,7 +16,7 @@ | ||
| 5 | #include "content/browser/font_access/font_enumeration_data_source_win.h" | ||
| 6 | #elif BUILDFLAG(IS_MAC) | ||
| 7 | #include "content/browser/font_access/font_enumeration_data_source_mac.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "content/browser/font_access/font_enumeration_data_source_linux.h" | ||
| 11 | #endif // BUILDFLAG(IS_WIN) | ||
| 12 | |||
| 13 | @@ -61,7 +61,7 @@ std::unique_ptr<FontEnumerationDataSource> FontEnumera | ||
| 14 | return std::make_unique<FontEnumerationDataSourceWin>(); | ||
| 15 | #elif BUILDFLAG(IS_MAC) | ||
| 16 | return std::make_unique<FontEnumerationDataSourceMac>(); | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | return std::make_unique<FontEnumerationDataSourceLinux>(); | ||
| 20 | #else | ||
| 21 | return std::make_unique<FontEnumerationDataSourceNull>(); | ||
| 22 | @@ -76,7 +76,7 @@ bool FontEnumerationDataSource::IsOsSupportedForTestin | ||
| 23 | return true; | ||
| 24 | #elif BUILDFLAG(IS_MAC) | ||
| 25 | return true; | ||
| 26 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | return true; | ||
| 29 | #else | ||
| 30 | return false; | ||
diff --git a/www/chromium/patches/patch-content_browser_gpu_compositor_util_cc b/www/chromium/patches/patch-content_browser_gpu_compositor_util_cc new file mode 100644 index 0000000..ebc4651 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_gpu_compositor_util_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: content/browser/gpu/compositor_util.cc | ||
| 2 | --- content/browser/gpu/compositor_util.cc.orig | ||
| 3 | +++ content/browser/gpu/compositor_util.cc | ||
| 4 | @@ -145,7 +145,7 @@ const GpuFeatureData GetGpuFeatureData( | ||
| 5 | {"video_decode", | ||
| 6 | SafeGetFeatureStatus(gpu_feature_info, | ||
| 7 | gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | !base::FeatureList::IsEnabled(media::kVaapiVideoDecodeLinux), | ||
| 11 | #else | ||
| 12 | command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), | ||
| 13 | @@ -157,7 +157,7 @@ const GpuFeatureData GetGpuFeatureData( | ||
| 14 | {"video_encode", | ||
| 15 | SafeGetFeatureStatus(gpu_feature_info, | ||
| 16 | gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE), | ||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | !base::FeatureList::IsEnabled(media::kVaapiVideoEncodeLinux), | ||
| 20 | #else | ||
| 21 | command_line.HasSwitch(switches::kDisableAcceleratedVideoEncode), | ||
diff --git a/www/chromium/patches/patch-content_browser_gpu_gpu_process_host_cc b/www/chromium/patches/patch-content_browser_gpu_gpu_process_host_cc new file mode 100644 index 0000000..f9d4170 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_gpu_gpu_process_host_cc | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | Index: content/browser/gpu/gpu_process_host.cc | ||
| 2 | --- content/browser/gpu/gpu_process_host.cc.orig | ||
| 3 | +++ content/browser/gpu/gpu_process_host.cc | ||
| 4 | @@ -100,7 +100,7 @@ | ||
| 5 | #include "ui/ozone/public/ozone_switches.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/gfx/switches.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -252,6 +252,7 @@ static const char* const kSwitchNames[] = { | ||
| 14 | switches::kEnableBackgroundThreadPool, | ||
| 15 | switches::kEnableGpuRasterization, | ||
| 16 | switches::kEnableLogging, | ||
| 17 | + switches::kDisableUnveil, | ||
| 18 | switches::kEnableDeJelly, | ||
| 19 | switches::kDeJellyScreenWidth, | ||
| 20 | switches::kDocumentTransitionSlowdownFactor, | ||
| 21 | @@ -289,7 +290,7 @@ static const char* const kSwitchNames[] = { | ||
| 22 | switches::kOzoneDumpFile, | ||
| 23 | switches::kDisableBufferBWCompression, | ||
| 24 | #endif | ||
| 25 | -#if BUILDFLAG(IS_LINUX) | ||
| 26 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 27 | switches::kX11Display, | ||
| 28 | switches::kNoXshm, | ||
| 29 | #endif | ||
diff --git a/www/chromium/patches/patch-content_browser_media_media_keys_listener_manager_impl_cc b/www/chromium/patches/patch-content_browser_media_media_keys_listener_manager_impl_cc new file mode 100644 index 0000000..dade126 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_media_media_keys_listener_manager_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/browser/media/media_keys_listener_manager_impl.cc | ||
| 2 | --- content/browser/media/media_keys_listener_manager_impl.cc.orig | ||
| 3 | +++ content/browser/media/media_keys_listener_manager_impl.cc | ||
| 4 | @@ -232,7 +232,7 @@ void MediaKeysListenerManagerImpl::StartListeningForMe | ||
| 5 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 6 | // complete. | ||
| 7 | #if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \ | ||
| 8 | - BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 9 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | system_media_controls_ = system_media_controls::SystemMediaControls::Create( | ||
| 11 | media::AudioManager::GetGlobalAppName()); | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-content_browser_ppapi_plugin_process_host_receiver_bindings_cc b/www/chromium/patches/patch-content_browser_ppapi_plugin_process_host_receiver_bindings_cc new file mode 100644 index 0000000..c3d2a04 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_ppapi_plugin_process_host_receiver_bindings_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: content/browser/ppapi_plugin_process_host_receiver_bindings.cc | ||
| 2 | --- content/browser/ppapi_plugin_process_host_receiver_bindings.cc.orig | ||
| 3 | +++ content/browser/ppapi_plugin_process_host_receiver_bindings.cc | ||
| 4 | @@ -8,7 +8,7 @@ | ||
| 5 | |||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "components/services/font/public/mojom/font_service.mojom.h" // nogncheck | ||
| 11 | #include "content/browser/font_service.h" // nogncheck | ||
| 12 | #endif | ||
| 13 | @@ -17,7 +17,7 @@ namespace content { | ||
| 14 | |||
| 15 | void PpapiPluginProcessHost::BindHostReceiver( | ||
| 16 | mojo::GenericPendingReceiver receiver) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | if (auto font_receiver = receiver.As<font_service::mojom::FontService>()) | ||
| 20 | ConnectToFontService(std::move(font_receiver)); | ||
| 21 | #endif | ||
diff --git a/www/chromium/patches/patch-content_browser_renderer_host_delegated_frame_host_cc b/www/chromium/patches/patch-content_browser_renderer_host_delegated_frame_host_cc new file mode 100644 index 0000000..b958c8c --- /dev/null +++ b/www/chromium/patches/patch-content_browser_renderer_host_delegated_frame_host_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/browser/renderer_host/delegated_frame_host.cc | ||
| 2 | --- content/browser/renderer_host/delegated_frame_host.cc.orig | ||
| 3 | +++ content/browser/renderer_host/delegated_frame_host.cc | ||
| 4 | @@ -288,7 +288,7 @@ void DelegatedFrameHost::EmbedSurface( | ||
| 5 | |||
| 6 | if (!primary_surface_id || | ||
| 7 | primary_surface_id->local_surface_id() != local_surface_id_) { | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // On Windows and Linux, we would like to produce new content as soon as | ||
| 11 | // possible or the OS will create an additional black gutter. Until we can | ||
| 12 | // block resize on surface synchronization on these platforms, we will not | ||
diff --git a/www/chromium/patches/patch-content_browser_renderer_host_input_input_device_change_observer_cc b/www/chromium/patches/patch-content_browser_renderer_host_input_input_device_change_observer_cc new file mode 100644 index 0000000..c63d06a --- /dev/null +++ b/www/chromium/patches/patch-content_browser_renderer_host_input_input_device_change_observer_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: content/browser/renderer_host/input/input_device_change_observer.cc | ||
| 2 | --- content/browser/renderer_host/input/input_device_change_observer.cc.orig | ||
| 3 | +++ content/browser/renderer_host/input/input_device_change_observer.cc | ||
| 4 | @@ -9,7 +9,7 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_WIN) | ||
| 7 | #include "ui/events/devices/input_device_observer_win.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/events/devices/device_data_manager.h" | ||
| 11 | #elif BUILDFLAG(IS_ANDROID) | ||
| 12 | #include "ui/events/devices/input_device_observer_android.h" | ||
| 13 | @@ -21,7 +21,7 @@ InputDeviceChangeObserver::InputDeviceChangeObserver(R | ||
| 14 | render_view_host_impl_ = rvhi; | ||
| 15 | #if BUILDFLAG(IS_WIN) | ||
| 16 | ui::InputDeviceObserverWin::GetInstance()->AddObserver(this); | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | ui::DeviceDataManager::GetInstance()->AddObserver(this); | ||
| 20 | #elif BUILDFLAG(IS_ANDROID) | ||
| 21 | ui::InputDeviceObserverAndroid::GetInstance()->AddObserver(this); | ||
| 22 | @@ -31,7 +31,7 @@ InputDeviceChangeObserver::InputDeviceChangeObserver(R | ||
| 23 | InputDeviceChangeObserver::~InputDeviceChangeObserver() { | ||
| 24 | #if BUILDFLAG(IS_WIN) | ||
| 25 | ui::InputDeviceObserverWin::GetInstance()->RemoveObserver(this); | ||
| 26 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | ui::DeviceDataManager::GetInstance()->RemoveObserver(this); | ||
| 29 | #elif BUILDFLAG(IS_ANDROID) | ||
| 30 | ui::InputDeviceObserverAndroid::GetInstance()->RemoveObserver(this); | ||
diff --git a/www/chromium/patches/patch-content_browser_renderer_host_pepper_pepper_file_io_host_cc b/www/chromium/patches/patch-content_browser_renderer_host_pepper_pepper_file_io_host_cc new file mode 100644 index 0000000..fcf4378 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_renderer_host_pepper_pepper_file_io_host_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: content/browser/renderer_host/pepper/pepper_file_io_host.cc | ||
| 2 | --- content/browser/renderer_host/pepper/pepper_file_io_host.cc.orig | ||
| 3 | +++ content/browser/renderer_host/pepper/pepper_file_io_host.cc | ||
| 4 | @@ -456,7 +456,7 @@ void PepperFileIOHost::OnLocalFileOpened( | ||
| 5 | ppapi::host::ReplyMessageContext reply_context, | ||
| 6 | const base::FilePath& path, | ||
| 7 | base::File::Error error_code) { | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Quarantining a file before its contents are available is only supported on | ||
| 11 | // Windows and Linux. | ||
| 12 | if (!FileOpenForWrite(open_flags_) || error_code != base::File::FILE_OK) { | ||
| 13 | @@ -490,7 +490,7 @@ void PepperFileIOHost::OnLocalFileOpened( | ||
| 14 | #endif | ||
| 15 | } | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | void PepperFileIOHost::OnLocalFileQuarantined( | ||
| 20 | ppapi::host::ReplyMessageContext reply_context, | ||
| 21 | const base::FilePath& path, | ||
diff --git a/www/chromium/patches/patch-content_browser_renderer_host_render_message_filter_cc b/www/chromium/patches/patch-content_browser_renderer_host_render_message_filter_cc new file mode 100644 index 0000000..cd3e518 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_renderer_host_render_message_filter_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: content/browser/renderer_host/render_message_filter.cc | ||
| 2 | --- content/browser/renderer_host/render_message_filter.cc.orig | ||
| 3 | +++ content/browser/renderer_host/render_message_filter.cc | ||
| 4 | @@ -67,7 +67,7 @@ | ||
| 5 | #if BUILDFLAG(IS_MAC) | ||
| 6 | #include "ui/accelerated_widget_mac/window_resize_helper_mac.h" | ||
| 7 | #endif | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/linux_util.h" | ||
| 11 | #include "base/threading/platform_thread.h" | ||
| 12 | #endif | ||
| 13 | @@ -129,7 +129,7 @@ void RenderMessageFilter::GenerateFrameRoutingID( | ||
| 14 | std::move(callback).Run(routing_id, frame_token, devtools_frame_token); | ||
| 15 | } | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | void RenderMessageFilter::SetThreadPriorityOnFileThread( | ||
| 20 | base::PlatformThreadId ns_tid, | ||
| 21 | base::ThreadPriority priority) { | ||
| 22 | @@ -150,7 +150,7 @@ void RenderMessageFilter::SetThreadPriorityOnFileThrea | ||
| 23 | } | ||
| 24 | #endif | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | void RenderMessageFilter::SetThreadPriority(int32_t ns_tid, | ||
| 29 | base::ThreadPriority priority) { | ||
| 30 | constexpr base::TaskTraits kTraits = { | ||
diff --git a/www/chromium/patches/patch-content_browser_renderer_host_render_message_filter_h b/www/chromium/patches/patch-content_browser_renderer_host_render_message_filter_h new file mode 100644 index 0000000..cb8610a --- /dev/null +++ b/www/chromium/patches/patch-content_browser_renderer_host_render_message_filter_h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | Index: content/browser/renderer_host/render_message_filter.h | ||
| 2 | --- content/browser/renderer_host/render_message_filter.h.orig | ||
| 3 | +++ content/browser/renderer_host/render_message_filter.h | ||
| 4 | @@ -78,14 +78,14 @@ class RenderMessageFilter | ||
| 5 | void GenerateRoutingID(GenerateRoutingIDCallback routing_id) override; | ||
| 6 | void GenerateFrameRoutingID(GenerateFrameRoutingIDCallback callback) override; | ||
| 7 | void HasGpuProcess(HasGpuProcessCallback callback) override; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | void SetThreadPriority(int32_t ns_tid, | ||
| 11 | base::ThreadPriority priority) override; | ||
| 12 | #endif | ||
| 13 | |||
| 14 | void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); | ||
| 15 | |||
| 16 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 17 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 18 | void SetThreadPriorityOnFileThread(base::PlatformThreadId ns_tid, | ||
| 19 | base::ThreadPriority priority); | ||
| 20 | #endif | ||
diff --git a/www/chromium/patches/patch-content_browser_renderer_host_render_process_host_impl_cc b/www/chromium/patches/patch-content_browser_renderer_host_render_process_host_impl_cc new file mode 100644 index 0000000..ff05f47 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_renderer_host_render_process_host_impl_cc | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | Index: content/browser/renderer_host/render_process_host_impl.cc | ||
| 2 | --- content/browser/renderer_host/render_process_host_impl.cc.orig | ||
| 3 | +++ content/browser/renderer_host/render_process_host_impl.cc | ||
| 4 | @@ -208,7 +208,7 @@ | ||
| 5 | #include "third_party/blink/public/mojom/android_font_lookup/android_font_lookup.mojom.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <sys/resource.h> | ||
| 11 | |||
| 12 | #include "components/services/font/public/mojom/font_service.mojom.h" // nogncheck | ||
| 13 | @@ -1228,7 +1228,7 @@ static constexpr size_t kUnknownPlatformProcessLimit = | ||
| 14 | // to indicate failure and std::numeric_limits<size_t>::max() to indicate | ||
| 15 | // unlimited. | ||
| 16 | size_t GetPlatformProcessLimit() { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | struct rlimit limit; | ||
| 20 | if (getrlimit(RLIMIT_NPROC, &limit) != 0) | ||
| 21 | return kUnknownPlatformProcessLimit; | ||
| 22 | @@ -1315,7 +1315,7 @@ class RenderProcessHostImpl::IOThreadHostImpl : public | ||
| 23 | return; | ||
| 24 | } | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | if (auto font_receiver = receiver.As<font_service::mojom::FontService>()) { | ||
| 29 | ConnectToFontService(std::move(font_receiver)); | ||
| 30 | return; | ||
| 31 | @@ -3332,6 +3332,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLin | ||
| 32 | switches::kDisableSpeechAPI, | ||
| 33 | switches::kDisableThreadedCompositing, | ||
| 34 | switches::kDisableTouchDragDrop, | ||
| 35 | + switches::kDisableUnveil, | ||
| 36 | switches::kDisableV8IdleTasks, | ||
| 37 | switches::kDisableVideoCaptureUseGpuMemoryBuffer, | ||
| 38 | switches::kDisableWebGLImageChromium, | ||
diff --git a/www/chromium/patches/patch-content_browser_renderer_host_render_process_host_impl_h b/www/chromium/patches/patch-content_browser_renderer_host_render_process_host_impl_h new file mode 100644 index 0000000..5180311 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_renderer_host_render_process_host_impl_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/browser/renderer_host/render_process_host_impl.h | ||
| 2 | --- content/browser/renderer_host/render_process_host_impl.h.orig | ||
| 3 | +++ content/browser/renderer_host/render_process_host_impl.h | ||
| 4 | @@ -465,7 +465,7 @@ class CONTENT_EXPORT RenderProcessHostImpl | ||
| 5 | // Sets this RenderProcessHost to be guest only. For Testing only. | ||
| 6 | void SetForGuestsOnlyForTesting(); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 10 | // Launch the zygote early in the browser startup. | ||
| 11 | static void EarlyZygoteLaunch(); | ||
| 12 | #endif // BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_MAC) | ||
diff --git a/www/chromium/patches/patch-content_browser_renderer_host_render_view_host_impl_cc b/www/chromium/patches/patch-content_browser_renderer_host_render_view_host_impl_cc new file mode 100644 index 0000000..8731fda --- /dev/null +++ b/www/chromium/patches/patch-content_browser_renderer_host_render_view_host_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/browser/renderer_host/render_view_host_impl.cc | ||
| 2 | --- content/browser/renderer_host/render_view_host_impl.cc.orig | ||
| 3 | +++ content/browser/renderer_host/render_view_host_impl.cc | ||
| 4 | @@ -259,7 +259,7 @@ void RenderViewHostImpl::GetPlatformSpecificPrefs( | ||
| 5 | display::win::ScreenWin::GetSystemMetricsInDIP(SM_CYVSCROLL); | ||
| 6 | prefs->arrow_bitmap_width_horizontal_scroll_bar_in_dips = | ||
| 7 | display::win::ScreenWin::GetSystemMetricsInDIP(SM_CXHSCROLL); | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | prefs->system_font_family_name = gfx::Font().GetFontName(); | ||
| 11 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 12 | // Make Blink's "focus ring" invisible. The focus ring is a hairline border | ||
diff --git a/www/chromium/patches/patch-content_browser_renderer_host_render_widget_host_view_aura_cc b/www/chromium/patches/patch-content_browser_renderer_host_render_widget_host_view_aura_cc new file mode 100644 index 0000000..cc9a386 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_renderer_host_render_widget_host_view_aura_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: content/browser/renderer_host/render_widget_host_view_aura.cc | ||
| 2 | --- content/browser/renderer_host/render_widget_host_view_aura.cc.orig | ||
| 3 | +++ content/browser/renderer_host/render_widget_host_view_aura.cc | ||
| 4 | @@ -115,7 +115,7 @@ | ||
| 5 | #include "ui/gfx/gdi_util.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "content/browser/accessibility/browser_accessibility_auralinux.h" | ||
| 11 | #include "ui/base/ime/linux/text_edit_command_auralinux.h" | ||
| 12 | #include "ui/base/ime/linux/text_edit_key_bindings_delegate_auralinux.h" | ||
| 13 | @@ -453,7 +453,7 @@ gfx::NativeViewAccessible RenderWidgetHostViewAura::Ge | ||
| 14 | if (manager) | ||
| 15 | return ToBrowserAccessibilityWin(manager->GetRoot())->GetCOM(); | ||
| 16 | |||
| 17 | -#elif BUILDFLAG(IS_LINUX) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | BrowserAccessibilityManager* manager = | ||
| 20 | host()->GetOrCreateRootBrowserAccessibilityManager(); | ||
| 21 | if (manager && manager->GetRoot()) | ||
| 22 | @@ -1576,7 +1576,7 @@ bool RenderWidgetHostViewAura::ShouldDoLearning() { | ||
| 23 | return GetTextInputManager() && GetTextInputManager()->should_do_learning(); | ||
| 24 | } | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | bool RenderWidgetHostViewAura::SetCompositionFromExistingText( | ||
| 29 | const gfx::Range& range, | ||
| 30 | const std::vector<ui::ImeTextSpan>& ui_ime_text_spans) { | ||
| 31 | @@ -2412,7 +2412,7 @@ bool RenderWidgetHostViewAura::NeedsInputGrab() { | ||
| 32 | } | ||
| 33 | |||
| 34 | bool RenderWidgetHostViewAura::NeedsMouseCapture() { | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 37 | return NeedsInputGrab(); | ||
| 38 | #else | ||
| 39 | return false; | ||
| 40 | @@ -2604,7 +2604,7 @@ void RenderWidgetHostViewAura::ForwardKeyboardEventWit | ||
| 41 | if (!target_host) | ||
| 42 | return; | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 46 | ui::TextEditKeyBindingsDelegateAuraLinux* keybinding_delegate = | ||
| 47 | ui::GetTextEditKeyBindingsDelegate(); | ||
| 48 | std::vector<ui::TextEditCommandAuraLinux> commands; | ||
diff --git a/www/chromium/patches/patch-content_browser_renderer_host_render_widget_host_view_aura_h b/www/chromium/patches/patch-content_browser_renderer_host_render_widget_host_view_aura_h new file mode 100644 index 0000000..e1443ab --- /dev/null +++ b/www/chromium/patches/patch-content_browser_renderer_host_render_widget_host_view_aura_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/browser/renderer_host/render_widget_host_view_aura.h | ||
| 2 | --- content/browser/renderer_host/render_widget_host_view_aura.h.orig | ||
| 3 | +++ content/browser/renderer_host/render_widget_host_view_aura.h | ||
| 4 | @@ -243,7 +243,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAura | ||
| 5 | ukm::SourceId GetClientSourceForMetrics() const override; | ||
| 6 | bool ShouldDoLearning() override; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | bool SetCompositionFromExistingText( | ||
| 11 | const gfx::Range& range, | ||
| 12 | const std::vector<ui::ImeTextSpan>& ui_ime_text_spans) override; | ||
diff --git a/www/chromium/patches/patch-content_browser_renderer_host_render_widget_host_view_event_handler_cc b/www/chromium/patches/patch-content_browser_renderer_host_render_widget_host_view_event_handler_cc new file mode 100644 index 0000000..1527bc9 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_renderer_host_render_widget_host_view_event_handler_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/browser/renderer_host/render_widget_host_view_event_handler.cc | ||
| 2 | --- content/browser/renderer_host/render_widget_host_view_event_handler.cc.orig | ||
| 3 | +++ content/browser/renderer_host/render_widget_host_view_event_handler.cc | ||
| 4 | @@ -596,7 +596,7 @@ bool RenderWidgetHostViewEventHandler::CanRendererHand | ||
| 5 | if (event->type() == ui::ET_MOUSE_EXITED) { | ||
| 6 | if (mouse_locked || selection_popup) | ||
| 7 | return false; | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Don't forward the mouse leave message which is received when the context | ||
| 11 | // menu is displayed by the page. This confuses the page and causes state | ||
| 12 | // changes. | ||
diff --git a/www/chromium/patches/patch-content_browser_sandbox_host_linux_cc b/www/chromium/patches/patch-content_browser_sandbox_host_linux_cc new file mode 100644 index 0000000..768a2a4 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_sandbox_host_linux_cc | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Index: content/browser/sandbox_host_linux.cc | ||
| 2 | --- content/browser/sandbox_host_linux.cc.orig | ||
| 3 | +++ content/browser/sandbox_host_linux.cc | ||
| 4 | @@ -45,6 +45,7 @@ void SandboxHostLinux::Init() { | ||
| 5 | // Instead, it replies on a temporary socket provided by the caller. | ||
| 6 | PCHECK(0 == shutdown(browser_socket, SHUT_WR)) << "shutdown"; | ||
| 7 | |||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | int pipefds[2]; | ||
| 10 | CHECK(0 == pipe(pipefds)); | ||
| 11 | const int child_lifeline_fd = pipefds[0]; | ||
| 12 | @@ -55,6 +56,7 @@ void SandboxHostLinux::Init() { | ||
| 13 | ipc_thread_ = std::make_unique<base::DelegateSimpleThread>( | ||
| 14 | ipc_handler_.get(), "sandbox_ipc_thread"); | ||
| 15 | ipc_thread_->Start(); | ||
| 16 | +#endif | ||
| 17 | } | ||
| 18 | |||
| 19 | } // namespace content | ||
diff --git a/www/chromium/patches/patch-content_browser_scheduler_responsiveness_jank_monitor_impl_cc b/www/chromium/patches/patch-content_browser_scheduler_responsiveness_jank_monitor_impl_cc new file mode 100644 index 0000000..d2f5f43 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_scheduler_responsiveness_jank_monitor_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/browser/scheduler/responsiveness/jank_monitor_impl.cc | ||
| 2 | --- content/browser/scheduler/responsiveness/jank_monitor_impl.cc.orig | ||
| 3 | +++ content/browser/scheduler/responsiveness/jank_monitor_impl.cc | ||
| 4 | @@ -333,7 +333,7 @@ void JankMonitorImpl::ThreadExecutionState::DidRunTask | ||
| 5 | // in context menus, among others). Simply ignore the mismatches for now. | ||
| 6 | // See https://crbug.com/929813 for the details of why the mismatch | ||
| 7 | // happens. | ||
| 8 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) && defined(USE_OZONE) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) && defined(USE_OZONE) | ||
| 10 | task_execution_metadata_.clear(); | ||
| 11 | #endif | ||
| 12 | return; | ||
diff --git a/www/chromium/patches/patch-content_browser_scheduler_responsiveness_native_event_observer_cc b/www/chromium/patches/patch-content_browser_scheduler_responsiveness_native_event_observer_cc new file mode 100644 index 0000000..3b1c296 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_scheduler_responsiveness_native_event_observer_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: content/browser/scheduler/responsiveness/native_event_observer.cc | ||
| 2 | --- content/browser/scheduler/responsiveness/native_event_observer.cc.orig | ||
| 3 | +++ content/browser/scheduler/responsiveness/native_event_observer.cc | ||
| 4 | @@ -15,7 +15,7 @@ | ||
| 5 | |||
| 6 | #include "ui/events/platform/platform_event_source.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/aura/env.h" | ||
| 11 | #include "ui/events/event.h" | ||
| 12 | #endif | ||
| 13 | @@ -39,7 +39,7 @@ NativeEventObserver::~NativeEventObserver() { | ||
| 14 | DeregisterObserver(); | ||
| 15 | } | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | void NativeEventObserver::RegisterObserver() { | ||
| 20 | aura::Env::GetInstance()->AddWindowEventDispatcherObserver(this); | ||
| 21 | } | ||
diff --git a/www/chromium/patches/patch-content_browser_scheduler_responsiveness_native_event_observer_h b/www/chromium/patches/patch-content_browser_scheduler_responsiveness_native_event_observer_h new file mode 100644 index 0000000..dcd4e7c --- /dev/null +++ b/www/chromium/patches/patch-content_browser_scheduler_responsiveness_native_event_observer_h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: content/browser/scheduler/responsiveness/native_event_observer.h | ||
| 2 | --- content/browser/scheduler/responsiveness/native_event_observer.h.orig | ||
| 3 | +++ content/browser/scheduler/responsiveness/native_event_observer.h | ||
| 4 | @@ -15,7 +15,7 @@ | ||
| 5 | #include "content/public/browser/native_event_processor_observer_mac.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/aura/window_event_dispatcher_observer.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -40,7 +40,7 @@ namespace responsiveness { | ||
| 14 | class CONTENT_EXPORT NativeEventObserver | ||
| 15 | #if BUILDFLAG(IS_MAC) | ||
| 16 | : public NativeEventProcessorObserver | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | : public aura::WindowEventDispatcherObserver | ||
| 20 | #elif BUILDFLAG(IS_WIN) | ||
| 21 | : public base::MessagePumpForUI::Observer | ||
| 22 | @@ -57,7 +57,7 @@ class CONTENT_EXPORT NativeEventObserver | ||
| 23 | NativeEventObserver(WillRunEventCallback will_run_event_callback, | ||
| 24 | DidRunEventCallback did_run_event_callback); | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | |||
| 29 | NativeEventObserver(const NativeEventObserver&) = delete; | ||
| 30 | NativeEventObserver& operator=(const NativeEventObserver&) = delete; | ||
| 31 | @@ -73,7 +73,7 @@ class CONTENT_EXPORT NativeEventObserver | ||
| 32 | // Exposed for tests. | ||
| 33 | void WillRunNativeEvent(const void* opaque_identifier) override; | ||
| 34 | void DidRunNativeEvent(const void* opaque_identifier) override; | ||
| 35 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | // aura::WindowEventDispatcherObserver overrides: | ||
| 38 | void OnWindowEventDispatcherStartedProcessing( | ||
| 39 | aura::WindowEventDispatcher* dispatcher, | ||
| 40 | @@ -90,7 +90,7 @@ class CONTENT_EXPORT NativeEventObserver | ||
| 41 | void RegisterObserver(); | ||
| 42 | void DeregisterObserver(); | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | struct EventInfo { | ||
| 47 | const void* unique_id; | ||
| 48 | }; | ||
diff --git a/www/chromium/patches/patch-content_browser_utility_process_host_receiver_bindings_cc b/www/chromium/patches/patch-content_browser_utility_process_host_receiver_bindings_cc new file mode 100644 index 0000000..3896a64 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_utility_process_host_receiver_bindings_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: content/browser/utility_process_host_receiver_bindings.cc | ||
| 2 | --- content/browser/utility_process_host_receiver_bindings.cc.orig | ||
| 3 | +++ content/browser/utility_process_host_receiver_bindings.cc | ||
| 4 | @@ -10,7 +10,7 @@ | ||
| 5 | #include "content/public/browser/content_browser_client.h" | ||
| 6 | #include "content/public/common/content_client.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "components/services/font/public/mojom/font_service.mojom.h" // nogncheck | ||
| 11 | #include "content/browser/font_service.h" // nogncheck | ||
| 12 | #endif | ||
| 13 | @@ -19,7 +19,7 @@ namespace content { | ||
| 14 | |||
| 15 | void UtilityProcessHost::BindHostReceiver( | ||
| 16 | mojo::GenericPendingReceiver receiver) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | if (auto font_receiver = receiver.As<font_service::mojom::FontService>()) { | ||
| 20 | ConnectToFontService(std::move(font_receiver)); | ||
| 21 | return; | ||
diff --git a/www/chromium/patches/patch-content_browser_utility_sandbox_delegate_cc b/www/chromium/patches/patch-content_browser_utility_sandbox_delegate_cc new file mode 100644 index 0000000..62afcc1 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_utility_sandbox_delegate_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/browser/utility_sandbox_delegate.cc | ||
| 2 | --- content/browser/utility_sandbox_delegate.cc.orig | ||
| 3 | +++ content/browser/utility_sandbox_delegate.cc | ||
| 4 | @@ -62,7 +62,7 @@ UtilitySandboxedProcessLauncherDelegate:: | ||
| 5 | #if BUILDFLAG(ENABLE_PLUGINS) | ||
| 6 | sandbox_type_ == sandbox::mojom::Sandbox::kPpapi || | ||
| 7 | #endif | ||
| 8 | -#if BUILDFLAG(IS_FUCHSIA) | ||
| 9 | +#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | sandbox_type_ == sandbox::mojom::Sandbox::kVideoCapture || | ||
| 11 | #endif | ||
| 12 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
diff --git a/www/chromium/patches/patch-content_browser_v8_snapshot_files_cc b/www/chromium/patches/patch-content_browser_v8_snapshot_files_cc new file mode 100644 index 0000000..c3c9c91 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_v8_snapshot_files_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/browser/v8_snapshot_files.cc | ||
| 2 | --- content/browser/v8_snapshot_files.cc.orig | ||
| 3 | +++ content/browser/v8_snapshot_files.cc | ||
| 4 | @@ -10,7 +10,7 @@ | ||
| 5 | namespace content { | ||
| 6 | |||
| 7 | std::map<std::string, base::FilePath> GetV8SnapshotFilesToPreload() { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #if defined(USE_V8_CONTEXT_SNAPSHOT) | ||
| 11 | return {{kV8ContextSnapshotDataDescriptor, | ||
| 12 | base::FilePath(FILE_PATH_LITERAL(V8_CONTEXT_SNAPSHOT_FILENAME))}}; | ||
diff --git a/www/chromium/patches/patch-content_browser_web_contents_web_contents_view_aura_cc b/www/chromium/patches/patch-content_browser_web_contents_web_contents_view_aura_cc new file mode 100644 index 0000000..06c4d66 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_web_contents_web_contents_view_aura_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: content/browser/web_contents/web_contents_view_aura.cc | ||
| 2 | --- content/browser/web_contents/web_contents_view_aura.cc.orig | ||
| 3 | +++ content/browser/web_contents/web_contents_view_aura.cc | ||
| 4 | @@ -159,7 +159,7 @@ class WebDragSourceAura : public content::WebContentsO | ||
| 5 | raw_ptr<aura::Window> window_; | ||
| 6 | }; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 10 | // Fill out the OSExchangeData with a file contents, synthesizing a name if | ||
| 11 | // necessary. | ||
| 12 | void PrepareDragForFileContents(const DropData& drop_data, | ||
| 13 | @@ -242,7 +242,7 @@ void PrepareDragData(const DropData& drop_data, | ||
| 14 | if (!drop_data.download_metadata.empty()) | ||
| 15 | PrepareDragForDownload(drop_data, provider, web_contents); | ||
| 16 | #endif | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 19 | // We set the file contents before the URL because the URL also sets file | ||
| 20 | // contents (to a .URL shortcut). We want to prefer file content data over | ||
| 21 | // a shortcut so we add it first. | ||
| 22 | @@ -1324,7 +1324,7 @@ void WebContentsViewAura::OnMouseEvent(ui::MouseEvent* | ||
| 23 | // Linux window managers like to handle raise-on-click themselves. If we | ||
| 24 | // raise-on-click manually, this may override user settings that prevent | ||
| 25 | // focus-stealing. | ||
| 26 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) | ||
| 28 | // It is possible for the web-contents to be destroyed while it is being | ||
| 29 | // activated. Use a weak-ptr to track whether that happened or not. | ||
| 30 | // More in https://crbug.com/1040725 | ||
diff --git a/www/chromium/patches/patch-content_browser_webui_web_ui_main_frame_observer_cc b/www/chromium/patches/patch-content_browser_webui_web_ui_main_frame_observer_cc new file mode 100644 index 0000000..53fd5eb --- /dev/null +++ b/www/chromium/patches/patch-content_browser_webui_web_ui_main_frame_observer_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: content/browser/webui/web_ui_main_frame_observer.cc | ||
| 2 | --- content/browser/webui/web_ui_main_frame_observer.cc.orig | ||
| 3 | +++ content/browser/webui/web_ui_main_frame_observer.cc | ||
| 4 | @@ -12,7 +12,7 @@ | ||
| 5 | #include "content/browser/webui/web_ui_impl.h" | ||
| 6 | #include "content/public/browser/navigation_handle.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/callback_helpers.h" | ||
| 11 | #include "base/feature_list.h" | ||
| 12 | #include "base/logging.h" | ||
| 13 | @@ -31,7 +31,7 @@ namespace content { | ||
| 14 | |||
| 15 | namespace { | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Remove the pieces of the URL we don't want to send back with the error | ||
| 20 | // reports. In particular, do not send query or fragments as those can have | ||
| 21 | // privacy-sensitive information in them. | ||
| 22 | @@ -67,7 +67,7 @@ void WebUIMainFrameObserver::DidFinishNavigation( | ||
| 23 | web_ui_->DisallowJavascriptOnAllHandlers(); | ||
| 24 | } | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | void WebUIMainFrameObserver::OnDidAddMessageToConsole( | ||
| 29 | RenderFrameHost* source_frame, | ||
| 30 | blink::mojom::ConsoleMessageLevel log_level, | ||
| 31 | @@ -175,7 +175,7 @@ void WebUIMainFrameObserver::ReadyToCommitNavigation( | ||
| 32 | |||
| 33 | // TODO(crbug.com/1129544) This is currently disabled due to Windows DLL | ||
| 34 | // thunking issues. Fix & re-enable. | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | MaybeEnableWebUIJavaScriptErrorReporting(navigation_handle); | ||
| 38 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 39 | } | ||
diff --git a/www/chromium/patches/patch-content_browser_webui_web_ui_main_frame_observer_h b/www/chromium/patches/patch-content_browser_webui_web_ui_main_frame_observer_h new file mode 100644 index 0000000..d85b33e --- /dev/null +++ b/www/chromium/patches/patch-content_browser_webui_web_ui_main_frame_observer_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: content/browser/webui/web_ui_main_frame_observer.h | ||
| 2 | --- content/browser/webui/web_ui_main_frame_observer.h.orig | ||
| 3 | +++ content/browser/webui/web_ui_main_frame_observer.h | ||
| 4 | @@ -45,7 +45,7 @@ class CONTENT_EXPORT WebUIMainFrameObserver : public W | ||
| 5 | |||
| 6 | // TODO(crbug.com/1129544) This is currently disabled due to Windows DLL | ||
| 7 | // thunking issues. Fix & re-enable. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // On official Google builds, capture and report JavaScript error messages on | ||
| 11 | // WebUI surfaces back to Google. This allows us to fix JavaScript errors and | ||
| 12 | // exceptions. | ||
| 13 | @@ -61,7 +61,7 @@ class CONTENT_EXPORT WebUIMainFrameObserver : public W | ||
| 14 | void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; | ||
| 15 | |||
| 16 | private: | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | void MaybeEnableWebUIJavaScriptErrorReporting( | ||
| 20 | NavigationHandle* navigation_handle); | ||
| 21 | |||
diff --git a/www/chromium/patches/patch-content_browser_zygote_host_zygote_host_impl_linux_cc b/www/chromium/patches/patch-content_browser_zygote_host_zygote_host_impl_linux_cc new file mode 100644 index 0000000..87ed37e --- /dev/null +++ b/www/chromium/patches/patch-content_browser_zygote_host_zygote_host_impl_linux_cc | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | Index: content/browser/zygote_host/zygote_host_impl_linux.cc | ||
| 2 | --- content/browser/zygote_host/zygote_host_impl_linux.cc.orig | ||
| 3 | +++ content/browser/zygote_host/zygote_host_impl_linux.cc | ||
| 4 | @@ -28,6 +28,7 @@ namespace content { | ||
| 5 | |||
| 6 | namespace { | ||
| 7 | |||
| 8 | +#if !BUILDFLAG(IS_BSD) | ||
| 9 | // Receive a fixed message on fd and return the sender's PID. | ||
| 10 | // Returns true if the message received matches the expected message. | ||
| 11 | bool ReceiveFixedMessage(int fd, | ||
| 12 | @@ -49,6 +50,7 @@ bool ReceiveFixedMessage(int fd, | ||
| 13 | return false; | ||
| 14 | return true; | ||
| 15 | } | ||
| 16 | +#endif | ||
| 17 | |||
| 18 | } // namespace | ||
| 19 | |||
| 20 | @@ -58,9 +60,13 @@ ZygoteHost* ZygoteHost::GetInstance() { | ||
| 21 | } | ||
| 22 | |||
| 23 | ZygoteHostImpl::ZygoteHostImpl() | ||
| 24 | +#if !BUILDFLAG(IS_BSD) | ||
| 25 | : use_namespace_sandbox_(false), | ||
| 26 | use_suid_sandbox_(false), | ||
| 27 | use_suid_sandbox_for_adj_oom_score_(false), | ||
| 28 | +#else | ||
| 29 | + : | ||
| 30 | +#endif | ||
| 31 | sandbox_binary_(), | ||
| 32 | zygote_pids_lock_(), | ||
| 33 | zygote_pids_() {} | ||
| 34 | @@ -73,6 +79,7 @@ ZygoteHostImpl* ZygoteHostImpl::GetInstance() { | ||
| 35 | } | ||
| 36 | |||
| 37 | void ZygoteHostImpl::Init(const base::CommandLine& command_line) { | ||
| 38 | +#if !BUILDFLAG(IS_BSD) | ||
| 39 | if (command_line.HasSwitch(sandbox::policy::switches::kNoSandbox)) { | ||
| 40 | return; | ||
| 41 | } | ||
| 42 | @@ -123,6 +130,7 @@ void ZygoteHostImpl::Init(const base::CommandLine& com | ||
| 43 | "you can try using --" | ||
| 44 | << sandbox::policy::switches::kNoSandbox << "."; | ||
| 45 | } | ||
| 46 | +#endif | ||
| 47 | } | ||
| 48 | |||
| 49 | void ZygoteHostImpl::AddZygotePid(pid_t pid) { | ||
| 50 | @@ -147,6 +155,7 @@ pid_t ZygoteHostImpl::LaunchZygote( | ||
| 51 | base::CommandLine* cmd_line, | ||
| 52 | base::ScopedFD* control_fd, | ||
| 53 | base::FileHandleMappingVector additional_remapped_fds) { | ||
| 54 | +#if !BUILDFLAG(IS_BSD) | ||
| 55 | int fds[2]; | ||
| 56 | CHECK_EQ(0, socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds)); | ||
| 57 | CHECK(base::UnixDomainSocket::EnableReceiveProcessId(fds[0])); | ||
| 58 | @@ -214,9 +223,12 @@ pid_t ZygoteHostImpl::LaunchZygote( | ||
| 59 | |||
| 60 | AddZygotePid(pid); | ||
| 61 | return pid; | ||
| 62 | +#else | ||
| 63 | + return 0; | ||
| 64 | +#endif | ||
| 65 | } | ||
| 66 | |||
| 67 | -#if !BUILDFLAG(IS_OPENBSD) | ||
| 68 | +#if !BUILDFLAG(IS_BSD) | ||
| 69 | void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid, | ||
| 70 | int score) { | ||
| 71 | // 1) You can't change the oom_score_adj of a non-dumpable process | ||
diff --git a/www/chromium/patches/patch-content_browser_zygote_host_zygote_host_impl_linux_h b/www/chromium/patches/patch-content_browser_zygote_host_zygote_host_impl_linux_h new file mode 100644 index 0000000..54cc110 --- /dev/null +++ b/www/chromium/patches/patch-content_browser_zygote_host_zygote_host_impl_linux_h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Index: content/browser/zygote_host/zygote_host_impl_linux.h | ||
| 2 | --- content/browser/zygote_host/zygote_host_impl_linux.h.orig | ||
| 3 | +++ content/browser/zygote_host/zygote_host_impl_linux.h | ||
| 4 | @@ -42,8 +42,10 @@ class CONTENT_EXPORT ZygoteHostImpl : public ZygoteHos | ||
| 5 | base::ScopedFD* control_fd, | ||
| 6 | base::FileHandleMappingVector additional_remapped_fds); | ||
| 7 | |||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | void AdjustRendererOOMScore(base::ProcessHandle process_handle, | ||
| 10 | int score) override; | ||
| 11 | +#endif | ||
| 12 | bool HasZygote() { return !zygote_pids_.empty(); } | ||
| 13 | |||
| 14 | private: | ||
| 15 | @@ -57,9 +59,11 @@ class CONTENT_EXPORT ZygoteHostImpl : public ZygoteHos | ||
| 16 | |||
| 17 | int renderer_sandbox_status_; | ||
| 18 | |||
| 19 | +#if !defined(OS_BSD) | ||
| 20 | bool use_namespace_sandbox_; | ||
| 21 | bool use_suid_sandbox_; | ||
| 22 | bool use_suid_sandbox_for_adj_oom_score_; | ||
| 23 | +#endif | ||
| 24 | std::string sandbox_binary_; | ||
| 25 | |||
| 26 | // This lock protects the |zygote_pids_| set. | ||
diff --git a/www/chromium/patches/patch-content_child_child_process_cc b/www/chromium/patches/patch-content_child_child_process_cc new file mode 100644 index 0000000..198447a --- /dev/null +++ b/www/chromium/patches/patch-content_child_child_process_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/child/child_process.cc | ||
| 2 | --- content/child/child_process.cc.orig | ||
| 3 | +++ content/child/child_process.cc | ||
| 4 | @@ -71,7 +71,7 @@ ChildProcess::ChildProcess(base::ThreadPriority io_thr | ||
| 5 | DCHECK(!g_lazy_child_process_tls.Pointer()->Get()); | ||
| 6 | g_lazy_child_process_tls.Pointer()->Set(this); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | const base::CommandLine& command_line = | ||
| 11 | *base::CommandLine::ForCurrentProcess(); | ||
| 12 | const bool is_embedded_in_browser_process = | ||
diff --git a/www/chromium/patches/patch-content_common_BUILD_gn b/www/chromium/patches/patch-content_common_BUILD_gn new file mode 100644 index 0000000..c3e5b2b --- /dev/null +++ b/www/chromium/patches/patch-content_common_BUILD_gn | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: content/common/BUILD.gn | ||
| 2 | --- content/common/BUILD.gn.orig | ||
| 3 | +++ content/common/BUILD.gn | ||
| 4 | @@ -406,6 +406,9 @@ if (is_linux || is_chromeos) { | ||
| 5 | public = [ "set_process_title_linux.h" ] | ||
| 6 | sources = [ "set_process_title_linux.cc" ] | ||
| 7 | deps = [ "//base" ] | ||
| 8 | + if (is_bsd) { | ||
| 9 | + sources -= [ "set_process_title_linux.cc" ] | ||
| 10 | + } | ||
| 11 | } | ||
| 12 | } | ||
| 13 | |||
diff --git a/www/chromium/patches/patch-content_common_font_list_unittest_cc b/www/chromium/patches/patch-content_common_font_list_unittest_cc new file mode 100644 index 0000000..3e3a320 --- /dev/null +++ b/www/chromium/patches/patch-content_common_font_list_unittest_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/common/font_list_unittest.cc | ||
| 2 | --- content/common/font_list_unittest.cc.orig | ||
| 3 | +++ content/common/font_list_unittest.cc | ||
| 4 | @@ -51,7 +51,7 @@ TEST(FontList, GetFontList) { | ||
| 5 | EXPECT_TRUE(HasFontWithName(*fonts, "MS Gothic", "MS Gothic")); | ||
| 6 | EXPECT_TRUE(HasFontWithName(*fonts, "Segoe UI", "Segoe UI")); | ||
| 7 | EXPECT_TRUE(HasFontWithName(*fonts, "Verdana", "Verdana")); | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | EXPECT_TRUE(HasFontWithName(*fonts, "Arimo", "Arimo")); | ||
| 11 | #else | ||
| 12 | EXPECT_TRUE(HasFontWithName(*fonts, "Arial", "Arial")); | ||
diff --git a/www/chromium/patches/patch-content_common_mojo_core_library_support_cc b/www/chromium/patches/patch-content_common_mojo_core_library_support_cc new file mode 100644 index 0000000..14b7947 --- /dev/null +++ b/www/chromium/patches/patch-content_common_mojo_core_library_support_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/common/mojo_core_library_support.cc | ||
| 2 | --- content/common/mojo_core_library_support.cc.orig | ||
| 3 | +++ content/common/mojo_core_library_support.cc | ||
| 4 | @@ -15,7 +15,7 @@ bool IsMojoCoreSharedLibraryEnabled() { | ||
| 5 | } | ||
| 6 | |||
| 7 | absl::optional<base::FilePath> GetMojoCoreSharedLibraryPath() { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | const base::CommandLine& command_line = | ||
| 11 | *base::CommandLine::ForCurrentProcess(); | ||
| 12 | if (!command_line.HasSwitch(switches::kMojoCoreLibraryPath)) | ||
diff --git a/www/chromium/patches/patch-content_common_user_agent_cc b/www/chromium/patches/patch-content_common_user_agent_cc new file mode 100644 index 0000000..cbfc647 --- /dev/null +++ b/www/chromium/patches/patch-content_common_user_agent_cc | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | Index: content/common/user_agent.cc | ||
| 2 | --- content/common/user_agent.cc.orig | ||
| 3 | +++ content/common/user_agent.cc | ||
| 4 | @@ -245,6 +245,16 @@ std::string BuildOSCpuInfoFromOSVersionAndCpuType(cons | ||
| 5 | "Android %s", os_version.c_str() | ||
| 6 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 7 | "Fuchsia" | ||
| 8 | +#elif BUILDFLAG(IS_BSD) | ||
| 9 | +#if defined(__x86_64__) | ||
| 10 | + "Linux x86_64; %s %s", | ||
| 11 | +#elif defined(__aarch64__) | ||
| 12 | + "Linux aarch64; %s %s", | ||
| 13 | +#else | ||
| 14 | + "Linux i686; %s %s", | ||
| 15 | +#endif | ||
| 16 | + unixinfo.sysname, // e.g. Linux | ||
| 17 | + cpu_type.c_str() // e.g. i686 | ||
| 18 | #elif BUILDFLAG(IS_POSIX) | ||
| 19 | "%s %s", | ||
| 20 | unixinfo.sysname, // e.g. Linux | ||
diff --git a/www/chromium/patches/patch-content_gpu_gpu_main_cc b/www/chromium/patches/patch-content_gpu_gpu_main_cc new file mode 100644 index 0000000..7ce4708 --- /dev/null +++ b/www/chromium/patches/patch-content_gpu_gpu_main_cc | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | Index: content/gpu/gpu_main.cc | ||
| 2 | --- content/gpu/gpu_main.cc.orig | ||
| 3 | +++ content/gpu/gpu_main.cc | ||
| 4 | @@ -86,7 +86,7 @@ | ||
| 5 | #include "sandbox/win/src/sandbox.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "content/gpu/gpu_sandbox_hook_linux.h" | ||
| 11 | #include "sandbox/policy/linux/sandbox_linux.h" | ||
| 12 | #include "sandbox/policy/sandbox_type.h" | ||
| 13 | @@ -108,7 +108,7 @@ namespace content { | ||
| 14 | |||
| 15 | namespace { | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | bool StartSandboxLinux(gpu::GpuWatchdogThread*, | ||
| 20 | const gpu::GPUInfo*, | ||
| 21 | const gpu::GpuPreferences&); | ||
| 22 | @@ -170,7 +170,7 @@ class ContentSandboxHelper : public gpu::GpuSandboxHel | ||
| 23 | bool EnsureSandboxInitialized(gpu::GpuWatchdogThread* watchdog_thread, | ||
| 24 | const gpu::GPUInfo* gpu_info, | ||
| 25 | const gpu::GpuPreferences& gpu_prefs) override { | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | return StartSandboxLinux(watchdog_thread, gpu_info, gpu_prefs); | ||
| 29 | #elif BUILDFLAG(IS_WIN) | ||
| 30 | return StartSandboxWindows(sandbox_info_); | ||
| 31 | @@ -266,7 +266,7 @@ int GpuMain(MainFunctionParams parameters) { | ||
| 32 | std::make_unique<base::SingleThreadTaskExecutor>( | ||
| 33 | gpu_preferences.message_pump_type); | ||
| 34 | } | ||
| 35 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | #error "Unsupported Linux platform." | ||
| 38 | #elif BUILDFLAG(IS_MAC) | ||
| 39 | // Cross-process CoreAnimation requires a CFRunLoop to function at all, and | ||
| 40 | @@ -409,17 +409,19 @@ int GpuMain(MainFunctionParams parameters) { | ||
| 41 | |||
| 42 | namespace { | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | bool StartSandboxLinux(gpu::GpuWatchdogThread* watchdog_thread, | ||
| 47 | const gpu::GPUInfo* gpu_info, | ||
| 48 | const gpu::GpuPreferences& gpu_prefs) { | ||
| 49 | TRACE_EVENT0("gpu,startup", "Initialize sandbox"); | ||
| 50 | |||
| 51 | +#if !BUILDFLAG(IS_BSD) | ||
| 52 | if (watchdog_thread) { | ||
| 53 | // SandboxLinux needs to be able to ensure that the thread | ||
| 54 | // has really been stopped. | ||
| 55 | sandbox::policy::SandboxLinux::GetInstance()->StopThread(watchdog_thread); | ||
| 56 | } | ||
| 57 | +#endif | ||
| 58 | |||
| 59 | // SandboxLinux::InitializeSandbox() must always be called | ||
| 60 | // with only one thread. | ||
| 61 | @@ -454,11 +456,13 @@ bool StartSandboxLinux(gpu::GpuWatchdogThread* watchdo | ||
| 62 | *base::CommandLine::ForCurrentProcess()), | ||
| 63 | base::BindOnce(GpuProcessPreSandboxHook), sandbox_options); | ||
| 64 | |||
| 65 | +#if !BUILDFLAG(IS_BSD) | ||
| 66 | if (watchdog_thread) { | ||
| 67 | base::Thread::Options thread_options; | ||
| 68 | thread_options.timer_slack = base::TIMER_SLACK_MAXIMUM; | ||
| 69 | watchdog_thread->StartWithOptions(std::move(thread_options)); | ||
| 70 | } | ||
| 71 | +#endif | ||
| 72 | |||
| 73 | return res; | ||
| 74 | } | ||
diff --git a/www/chromium/patches/patch-content_gpu_gpu_sandbox_hook_linux_cc b/www/chromium/patches/patch-content_gpu_gpu_sandbox_hook_linux_cc new file mode 100644 index 0000000..67b33f2 --- /dev/null +++ b/www/chromium/patches/patch-content_gpu_gpu_sandbox_hook_linux_cc | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | Index: content/gpu/gpu_sandbox_hook_linux.cc | ||
| 2 | --- content/gpu/gpu_sandbox_hook_linux.cc.orig | ||
| 3 | +++ content/gpu/gpu_sandbox_hook_linux.cc | ||
| 4 | @@ -104,6 +104,7 @@ static const char kLibV4lEncPluginPath[] = | ||
| 5 | |||
| 6 | constexpr int dlopen_flag = RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE; | ||
| 7 | |||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | void AddV4L2GpuPermissions( | ||
| 10 | std::vector<BrokerFilePermission>* permissions, | ||
| 11 | const sandbox::policy::SandboxSeccompBPF::Options& options) { | ||
| 12 | @@ -420,8 +421,10 @@ std::vector<BrokerFilePermission> FilePermissionsForGp | ||
| 13 | AddStandardGpuPermissions(&permissions); | ||
| 14 | return permissions; | ||
| 15 | } | ||
| 16 | +#endif | ||
| 17 | |||
| 18 | void LoadArmGpuLibraries() { | ||
| 19 | +#if !defined(OS_BSD) | ||
| 20 | // Preload the Mali library. | ||
| 21 | if (UseChromecastSandboxAllowlist()) { | ||
| 22 | for (const char* path : kAllowedChromecastPaths) { | ||
| 23 | @@ -463,6 +466,7 @@ void LoadArmGpuLibraries() { | ||
| 24 | dlopen(driver_paths[i], dlopen_flag); | ||
| 25 | } | ||
| 26 | } | ||
| 27 | +#endif | ||
| 28 | } | ||
| 29 | |||
| 30 | bool LoadAmdGpuLibraries() { | ||
| 31 | @@ -526,12 +530,14 @@ void LoadV4L2Libraries( | ||
| 32 | } | ||
| 33 | |||
| 34 | void LoadChromecastV4L2Libraries() { | ||
| 35 | +#if !defined(OS_BSD) | ||
| 36 | for (const char* path : kAllowedChromecastPaths) { | ||
| 37 | const std::string library_path(std::string(path) + | ||
| 38 | std::string("libvpcodec.so")); | ||
| 39 | if (dlopen(library_path.c_str(), dlopen_flag)) | ||
| 40 | break; | ||
| 41 | } | ||
| 42 | +#endif | ||
| 43 | } | ||
| 44 | |||
| 45 | bool LoadLibrariesForGpu( | ||
| 46 | @@ -558,6 +564,7 @@ bool LoadLibrariesForGpu( | ||
| 47 | return true; | ||
| 48 | } | ||
| 49 | |||
| 50 | +#if !defined(OS_BSD) | ||
| 51 | sandbox::syscall_broker::BrokerCommandSet CommandSetForGPU( | ||
| 52 | const sandbox::policy::SandboxLinux::Options& options) { | ||
| 53 | sandbox::syscall_broker::BrokerCommandSet command_set; | ||
| 54 | @@ -580,13 +587,17 @@ bool BrokerProcessPreSandboxHook( | ||
| 55 | SetProcessTitleFromCommandLine(nullptr); | ||
| 56 | return true; | ||
| 57 | } | ||
| 58 | +#endif | ||
| 59 | |||
| 60 | } // namespace | ||
| 61 | |||
| 62 | bool GpuProcessPreSandboxHook(sandbox::policy::SandboxLinux::Options options) { | ||
| 63 | + NOTIMPLEMENTED(); | ||
| 64 | +#if !defined(OS_BSD) | ||
| 65 | sandbox::policy::SandboxLinux::GetInstance()->StartBrokerProcess( | ||
| 66 | CommandSetForGPU(options), FilePermissionsForGpu(options), | ||
| 67 | base::BindOnce(BrokerProcessPreSandboxHook), options); | ||
| 68 | +#endif | ||
| 69 | |||
| 70 | if (!LoadLibrariesForGpu(options)) | ||
| 71 | return false; | ||
diff --git a/www/chromium/patches/patch-content_ppapi_plugin_ppapi_blink_platform_impl_cc b/www/chromium/patches/patch-content_ppapi_plugin_ppapi_blink_platform_impl_cc new file mode 100644 index 0000000..d3d5756 --- /dev/null +++ b/www/chromium/patches/patch-content_ppapi_plugin_ppapi_blink_platform_impl_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: content/ppapi_plugin/ppapi_blink_platform_impl.cc | ||
| 2 | --- content/ppapi_plugin/ppapi_blink_platform_impl.cc.orig | ||
| 3 | +++ content/ppapi_plugin/ppapi_blink_platform_impl.cc | ||
| 4 | @@ -20,7 +20,7 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_MAC) | ||
| 7 | #include "content/child/child_process_sandbox_support_impl_mac.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "content/child/child_process_sandbox_support_impl_linux.h" | ||
| 11 | #include "mojo/public/cpp/bindings/pending_remote.h" | ||
| 12 | #endif | ||
| 13 | @@ -35,7 +35,7 @@ typedef struct CGFont* CGFontRef; | ||
| 14 | namespace content { | ||
| 15 | |||
| 16 | PpapiBlinkPlatformImpl::PpapiBlinkPlatformImpl() { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | mojo::PendingRemote<font_service::mojom::FontService> font_service; | ||
| 20 | ChildThread::Get()->BindHostReceiver( | ||
| 21 | font_service.InitWithNewPipeAndPassReceiver()); | ||
| 22 | @@ -53,7 +53,7 @@ PpapiBlinkPlatformImpl::~PpapiBlinkPlatformImpl() { | ||
| 23 | void PpapiBlinkPlatformImpl::Shutdown() {} | ||
| 24 | |||
| 25 | blink::WebSandboxSupport* PpapiBlinkPlatformImpl::GetSandboxSupport() { | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | return sandbox_support_.get(); | ||
| 29 | #else | ||
| 30 | return nullptr; | ||
diff --git a/www/chromium/patches/patch-content_ppapi_plugin_ppapi_blink_platform_impl_h b/www/chromium/patches/patch-content_ppapi_plugin_ppapi_blink_platform_impl_h new file mode 100644 index 0000000..a2f0ea1 --- /dev/null +++ b/www/chromium/patches/patch-content_ppapi_plugin_ppapi_blink_platform_impl_h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Index: content/ppapi_plugin/ppapi_blink_platform_impl.h | ||
| 2 | --- content/ppapi_plugin/ppapi_blink_platform_impl.h.orig | ||
| 3 | +++ content/ppapi_plugin/ppapi_blink_platform_impl.h | ||
| 4 | @@ -12,7 +12,7 @@ | ||
| 5 | #include "build/build_config.h" | ||
| 6 | #include "content/child/blink_platform_impl.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "components/services/font/public/cpp/font_loader.h" | ||
| 11 | #include "third_party/skia/include/core/SkRefCnt.h" | ||
| 12 | #endif | ||
| 13 | @@ -39,11 +39,11 @@ class PpapiBlinkPlatformImpl : public BlinkPlatformImp | ||
| 14 | blink::WebThemeEngine* ThemeEngine() override; | ||
| 15 | |||
| 16 | private: | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | std::unique_ptr<blink::WebSandboxSupport> sandbox_support_; | ||
| 20 | #endif | ||
| 21 | |||
| 22 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 23 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 24 | sk_sp<font_service::FontLoader> font_loader_; | ||
| 25 | #endif | ||
| 26 | }; | ||
diff --git a/www/chromium/patches/patch-content_ppapi_plugin_ppapi_plugin_main_cc b/www/chromium/patches/patch-content_ppapi_plugin_ppapi_plugin_main_cc new file mode 100644 index 0000000..a16cc45 --- /dev/null +++ b/www/chromium/patches/patch-content_ppapi_plugin_ppapi_plugin_main_cc | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | Index: content/ppapi_plugin/ppapi_plugin_main.cc | ||
| 2 | --- content/ppapi_plugin/ppapi_plugin_main.cc.orig | ||
| 3 | +++ content/ppapi_plugin/ppapi_plugin_main.cc | ||
| 4 | @@ -53,6 +53,11 @@ | ||
| 5 | #include "gin/v8_initializer.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 10 | +#include "sandbox/policy/sandbox_type.h" | ||
| 11 | +#endif | ||
| 12 | + | ||
| 13 | #if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_ANDROID) | ||
| 14 | #include <stdlib.h> | ||
| 15 | #endif | ||
| 16 | @@ -136,7 +141,7 @@ int PpapiPluginMain(MainFunctionParams parameters) { | ||
| 17 | gin::V8Initializer::LoadV8Snapshot(); | ||
| 18 | #endif | ||
| 19 | |||
| 20 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 21 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_OPENBSD) | ||
| 22 | sandbox::policy::SandboxLinux::GetInstance()->InitializeSandbox( | ||
| 23 | sandbox::policy::SandboxTypeFromCommandLine(command_line), | ||
| 24 | sandbox::policy::SandboxLinux::PreSandboxHook(), | ||
diff --git a/www/chromium/patches/patch-content_public_browser_zygote_host_zygote_host_linux_h b/www/chromium/patches/patch-content_public_browser_zygote_host_zygote_host_linux_h new file mode 100644 index 0000000..4c807ab --- /dev/null +++ b/www/chromium/patches/patch-content_public_browser_zygote_host_zygote_host_linux_h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: content/public/browser/zygote_host/zygote_host_linux.h | ||
| 2 | --- content/public/browser/zygote_host/zygote_host_linux.h.orig | ||
| 3 | +++ content/public/browser/zygote_host/zygote_host_linux.h | ||
| 4 | @@ -30,11 +30,13 @@ class ZygoteHost { | ||
| 5 | // after the first render has been forked. | ||
| 6 | virtual int GetRendererSandboxStatus() = 0; | ||
| 7 | |||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | // Adjust the OOM score of the given renderer's PID. The allowed | ||
| 10 | // range for the score is [0, 1000], where higher values are more | ||
| 11 | // likely to be killed by the OOM killer. | ||
| 12 | virtual void AdjustRendererOOMScore(base::ProcessHandle process_handle, | ||
| 13 | int score) = 0; | ||
| 14 | +#endif | ||
| 15 | }; | ||
| 16 | |||
| 17 | } // namespace content | ||
diff --git a/www/chromium/patches/patch-content_public_common_common_param_traits_macros_h b/www/chromium/patches/patch-content_public_common_common_param_traits_macros_h new file mode 100644 index 0000000..7911379 --- /dev/null +++ b/www/chromium/patches/patch-content_public_common_common_param_traits_macros_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/public/common/common_param_traits_macros.h | ||
| 2 | --- content/public/common/common_param_traits_macros.h.orig | ||
| 3 | +++ content/public/common/common_param_traits_macros.h | ||
| 4 | @@ -128,7 +128,7 @@ IPC_STRUCT_TRAITS_BEGIN(blink::RendererPreferences) | ||
| 5 | IPC_STRUCT_TRAITS_MEMBER(accept_languages) | ||
| 6 | IPC_STRUCT_TRAITS_MEMBER(plugin_fullscreen_allowed) | ||
| 7 | IPC_STRUCT_TRAITS_MEMBER(caret_browsing_enabled) | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | IPC_STRUCT_TRAITS_MEMBER(system_font_family_name) | ||
| 11 | #endif | ||
| 12 | #if BUILDFLAG(IS_WIN) | ||
diff --git a/www/chromium/patches/patch-content_public_common_content_features_cc b/www/chromium/patches/patch-content_public_common_content_features_cc new file mode 100644 index 0000000..b6d8c7b --- /dev/null +++ b/www/chromium/patches/patch-content_public_common_content_features_cc | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | Index: content/public/common/content_features.cc | ||
| 2 | --- content/public/common/content_features.cc.orig | ||
| 3 | +++ content/public/common/content_features.cc | ||
| 4 | @@ -50,7 +50,7 @@ const base::Feature kAudioServiceOutOfProcess { | ||
| 5 | "AudioServiceOutOfProcess", | ||
| 6 | // TODO(crbug.com/1052397): Remove !IS_CHROMEOS_LACROS once lacros starts being | ||
| 7 | // built with OS_CHROMEOS instead of OS_LINUX. | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ | ||
| 10 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 11 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 12 | #else | ||
| 13 | @@ -62,7 +62,7 @@ const base::Feature kAudioServiceOutOfProcess { | ||
| 14 | // kAudioServiceOutOfProcess feature is enabled. | ||
| 15 | const base::Feature kAudioServiceSandbox { | ||
| 16 | "AudioServiceSandbox", | ||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 20 | #else | ||
| 21 | base::FEATURE_DISABLED_BY_DEFAULT | ||
| 22 | @@ -1030,7 +1030,7 @@ const base::Feature kWebAssemblyBaseline{"WebAssemblyB | ||
| 23 | const base::Feature kWebAssemblyCodeProtection{ | ||
| 24 | "WebAssemblyCodeProtection", base::FEATURE_ENABLED_BY_DEFAULT}; | ||
| 25 | |||
| 26 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(ARCH_CPU_X86_64) | ||
| 27 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_X86_64) | ||
| 28 | // Use memory protection keys in userspace (PKU) (if available) to protect code | ||
| 29 | // JITed for WebAssembly. Fall back to traditional memory protection if | ||
| 30 | // WebAssemblyCodeProtection is also enabled. | ||
| 31 | @@ -1060,7 +1060,7 @@ const base::Feature kWebAssemblyTiering{"WebAssemblyTi | ||
| 32 | const base::Feature kWebAssemblyTrapHandler { | ||
| 33 | "WebAssemblyTrapHandler", | ||
| 34 | #if ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || \ | ||
| 35 | - BUILDFLAG(IS_MAC)) && \ | ||
| 36 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD)) && \ | ||
| 37 | defined(ARCH_CPU_X86_64)) || \ | ||
| 38 | (BUILDFLAG(IS_MAC) && defined(ARCH_CPU_ARM64)) | ||
| 39 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 40 | @@ -1146,7 +1146,11 @@ const base::Feature kWebUIReportOnlyTrustedTypes{ | ||
| 41 | |||
| 42 | // Controls whether the WebUSB API is enabled: | ||
| 43 | // https://wicg.github.io/webusb | ||
| 44 | +#if BUILDFLAG(IS_BSD) | ||
| 45 | +const base::Feature kWebUsb{"WebUSB", base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 46 | +#else | ||
| 47 | const base::Feature kWebUsb{"WebUSB", base::FEATURE_ENABLED_BY_DEFAULT}; | ||
| 48 | +#endif | ||
| 49 | |||
| 50 | // Controls whether the WebXR Device API is enabled. | ||
| 51 | const base::Feature kWebXr{"WebXR", base::FEATURE_ENABLED_BY_DEFAULT}; | ||
diff --git a/www/chromium/patches/patch-content_public_common_content_features_h b/www/chromium/patches/patch-content_public_common_content_features_h new file mode 100644 index 0000000..7c049f6 --- /dev/null +++ b/www/chromium/patches/patch-content_public_common_content_features_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/public/common/content_features.h | ||
| 2 | --- content/public/common/content_features.h.orig | ||
| 3 | +++ content/public/common/content_features.h | ||
| 4 | @@ -258,7 +258,7 @@ CONTENT_EXPORT extern const base::Feature kV8VmFuture; | ||
| 5 | CONTENT_EXPORT extern const base::Feature kWebAppWindowControlsOverlay; | ||
| 6 | CONTENT_EXPORT extern const base::Feature kWebAssemblyBaseline; | ||
| 7 | CONTENT_EXPORT extern const base::Feature kWebAssemblyCodeProtection; | ||
| 8 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(ARCH_CPU_X86_64) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_X86_64) | ||
| 10 | CONTENT_EXPORT extern const base::Feature kWebAssemblyCodeProtectionPku; | ||
| 11 | #endif // (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && | ||
| 12 | // defined(ARCH_CPU_X86_64) | ||
diff --git a/www/chromium/patches/patch-content_public_common_content_switches_cc b/www/chromium/patches/patch-content_public_common_content_switches_cc new file mode 100644 index 0000000..8c4e1ed --- /dev/null +++ b/www/chromium/patches/patch-content_public_common_content_switches_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: content/public/common/content_switches.cc | ||
| 2 | --- content/public/common/content_switches.cc.orig | ||
| 3 | +++ content/public/common/content_switches.cc | ||
| 4 | @@ -383,6 +383,8 @@ const char kEnableGpuMemoryBufferVideoFrames[] = | ||
| 5 | // builds. | ||
| 6 | const char kEnableLogging[] = "enable-logging"; | ||
| 7 | |||
| 8 | +const char kDisableUnveil[] = "disable-unveil"; | ||
| 9 | + | ||
| 10 | // Enables the type, downlinkMax attributes of the NetInfo API. Also, enables | ||
| 11 | // triggering of change attribute of the NetInfo API when there is a change in | ||
| 12 | // the connection type. | ||
| 13 | @@ -981,7 +983,7 @@ const char kEnableAutomation[] = "enable-automation"; | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Allows sending text-to-speech requests to speech-dispatcher, a common | ||
| 20 | // Linux speech service. Because it's buggy, the user must explicitly | ||
| 21 | // enable it so that visiting a random webpage can't cause instability. | ||
diff --git a/www/chromium/patches/patch-content_public_common_content_switches_h b/www/chromium/patches/patch-content_public_common_content_switches_h new file mode 100644 index 0000000..e5c3d94 --- /dev/null +++ b/www/chromium/patches/patch-content_public_common_content_switches_h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | Index: content/public/common/content_switches.h | ||
| 2 | --- content/public/common/content_switches.h.orig | ||
| 3 | +++ content/public/common/content_switches.h | ||
| 4 | @@ -120,6 +120,7 @@ CONTENT_EXPORT extern const char kEnableBlinkTestFeatu | ||
| 5 | CONTENT_EXPORT extern const char kEnableGpuMemoryBufferVideoFrames[]; | ||
| 6 | CONTENT_EXPORT extern const char kEnableLCDText[]; | ||
| 7 | CONTENT_EXPORT extern const char kEnableLogging[]; | ||
| 8 | +CONTENT_EXPORT extern const char kDisableUnveil[]; | ||
| 9 | CONTENT_EXPORT extern const char kEnableNetworkInformationDownlinkMax[]; | ||
| 10 | CONTENT_EXPORT extern const char kEnableCanvas2DLayers[]; | ||
| 11 | CONTENT_EXPORT extern const char kEnableNewCanvas2DAPI[]; | ||
| 12 | @@ -267,7 +268,7 @@ CONTENT_EXPORT extern const char kRendererWaitForJavaD | ||
| 13 | |||
| 14 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 15 | // of lacros-chrome is complete. | ||
| 16 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 17 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 18 | CONTENT_EXPORT extern const char kEnableSpeechDispatcher[]; | ||
| 19 | #endif | ||
| 20 | |||
diff --git a/www/chromium/patches/patch-content_public_common_use_zoom_for_dsf_policy_cc b/www/chromium/patches/patch-content_public_common_use_zoom_for_dsf_policy_cc new file mode 100644 index 0000000..e81ece9 --- /dev/null +++ b/www/chromium/patches/patch-content_public_common_use_zoom_for_dsf_policy_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/public/common/use_zoom_for_dsf_policy.cc | ||
| 2 | --- content/public/common/use_zoom_for_dsf_policy.cc.orig | ||
| 3 | +++ content/public/common/use_zoom_for_dsf_policy.cc | ||
| 4 | @@ -26,7 +26,7 @@ const base::Feature kUseZoomForDsfEnabledByDefault{ | ||
| 5 | |||
| 6 | bool IsUseZoomForDSFEnabledByDefault() { | ||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 8 | - BUILDFLAG(IS_MAC) | ||
| 9 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | return true; | ||
| 11 | #elif BUILDFLAG(IS_WIN) || BUILDFLAG(IS_ANDROID) | ||
| 12 | return base::FeatureList::IsEnabled(kUseZoomForDsfEnabledByDefault); | ||
diff --git a/www/chromium/patches/patch-content_public_common_zygote_features_gni b/www/chromium/patches/patch-content_public_common_zygote_features_gni new file mode 100644 index 0000000..44c0a72 --- /dev/null +++ b/www/chromium/patches/patch-content_public_common_zygote_features_gni | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | Index: content/public/common/zygote/features.gni | ||
| 2 | --- content/public/common/zygote/features.gni.orig | ||
| 3 | +++ content/public/common/zygote/features.gni | ||
| 4 | @@ -2,4 +2,4 @@ | ||
| 5 | # Use of this source code is governed by a BSD-style license that can be | ||
| 6 | # found in the LICENSE file. | ||
| 7 | |||
| 8 | -use_zygote_handle = is_posix && !is_android && !is_mac | ||
| 9 | +use_zygote_handle = is_posix && !is_android && !is_mac && !is_bsd | ||
diff --git a/www/chromium/patches/patch-content_public_test_mock_render_thread_cc b/www/chromium/patches/patch-content_public_test_mock_render_thread_cc new file mode 100644 index 0000000..613c231 --- /dev/null +++ b/www/chromium/patches/patch-content_public_test_mock_render_thread_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/public/test/mock_render_thread.cc | ||
| 2 | --- content/public/test/mock_render_thread.cc.orig | ||
| 3 | +++ content/public/test/mock_render_thread.cc | ||
| 4 | @@ -64,7 +64,7 @@ class MockRenderMessageFilterImpl : public mojom::Rend | ||
| 5 | std::move(callback).Run(false); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | void SetThreadPriority(int32_t platform_thread_id, | ||
| 11 | base::ThreadPriority thread_priority) override {} | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-content_renderer_render_process_impl_cc b/www/chromium/patches/patch-content_renderer_render_process_impl_cc new file mode 100644 index 0000000..f0f572f --- /dev/null +++ b/www/chromium/patches/patch-content_renderer_render_process_impl_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: content/renderer/render_process_impl.cc | ||
| 2 | --- content/renderer/render_process_impl.cc.orig | ||
| 3 | +++ content/renderer/render_process_impl.cc | ||
| 4 | @@ -47,7 +47,7 @@ | ||
| 5 | #if BUILDFLAG(IS_WIN) | ||
| 6 | #include "base/win/win_util.h" | ||
| 7 | #endif | ||
| 8 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(ARCH_CPU_X86_64) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_X86_64) | ||
| 10 | #include "v8/include/v8-wasm-trap-handler-posix.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -146,7 +146,7 @@ RenderProcessImpl::RenderProcessImpl() | ||
| 14 | SetV8FlagIfNotFeature(features::kWebAssemblyCodeProtection, | ||
| 15 | "--no-wasm-write-protect-code-memory"); | ||
| 16 | |||
| 17 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(ARCH_CPU_X86_64) | ||
| 18 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_X86_64) | ||
| 19 | SetV8FlagIfFeature(features::kWebAssemblyCodeProtectionPku, | ||
| 20 | "--wasm-memory-protection-keys"); | ||
| 21 | SetV8FlagIfNotFeature(features::kWebAssemblyCodeProtectionPku, | ||
| 22 | @@ -227,7 +227,7 @@ RenderProcessImpl::RenderProcessImpl() | ||
| 23 | SetV8FlagIfFeature(features::kWebAssemblyDynamicTiering, | ||
| 24 | "--wasm-dynamic-tiering"); | ||
| 25 | |||
| 26 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(ARCH_CPU_X86_64) | ||
| 27 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_X86_64) | ||
| 28 | if (base::FeatureList::IsEnabled(features::kWebAssemblyTrapHandler)) { | ||
| 29 | if (command_line->HasSwitch(switches::kEnableCrashpad) || | ||
| 30 | command_line->HasSwitch(switches::kEnableCrashReporter) || | ||
diff --git a/www/chromium/patches/patch-content_renderer_render_thread_impl_cc b/www/chromium/patches/patch-content_renderer_render_thread_impl_cc new file mode 100644 index 0000000..dd1f73d --- /dev/null +++ b/www/chromium/patches/patch-content_renderer_render_thread_impl_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: content/renderer/render_thread_impl.cc | ||
| 2 | --- content/renderer/render_thread_impl.cc.orig | ||
| 3 | +++ content/renderer/render_thread_impl.cc | ||
| 4 | @@ -189,7 +189,7 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_MAC) | ||
| 7 | #include <malloc/malloc.h> | ||
| 8 | -#else | ||
| 9 | +#elif !BUILDFLAG(IS_OPENBSD) | ||
| 10 | #include <malloc.h> | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -718,7 +718,7 @@ void RenderThreadImpl::Init() { | ||
| 14 | DCHECK(parsed_num_raster_threads) << string_value; | ||
| 15 | DCHECK_GT(num_raster_threads, 0); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | categorized_worker_pool_->SetBackgroundingCallback( | ||
| 20 | main_thread_scheduler_->DefaultTaskRunner(), | ||
| 21 | base::BindOnce( | ||
| 22 | @@ -741,7 +741,7 @@ void RenderThreadImpl::Init() { | ||
| 23 | base::DiscardableMemoryAllocator::SetInstance( | ||
| 24 | discardable_memory_allocator_.get()); | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | if (base::FeatureList::IsEnabled( | ||
| 29 | blink::features::kBlinkCompositorUseDisplayThreadPriority)) { | ||
| 30 | render_message_filter()->SetThreadPriority( | ||
| 31 | @@ -1093,7 +1093,7 @@ media::GpuVideoAcceleratorFactories* RenderThreadImpl: | ||
| 32 | |||
| 33 | const bool enable_video_decode_accelerator = | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 37 | base::FeatureList::IsEnabled(media::kVaapiVideoDecodeLinux) && | ||
| 38 | #else | ||
| 39 | !cmd_line->HasSwitch(switches::kDisableAcceleratedVideoDecode) && | ||
| 40 | @@ -1104,7 +1104,7 @@ media::GpuVideoAcceleratorFactories* RenderThreadImpl: | ||
| 41 | |||
| 42 | const bool enable_video_encode_accelerator = | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 46 | base::FeatureList::IsEnabled(media::kVaapiVideoEncodeLinux) && | ||
| 47 | #else | ||
| 48 | !cmd_line->HasSwitch(switches::kDisableAcceleratedVideoEncode) && | ||
diff --git a/www/chromium/patches/patch-content_renderer_renderer_blink_platform_impl_cc b/www/chromium/patches/patch-content_renderer_renderer_blink_platform_impl_cc new file mode 100644 index 0000000..7175ff4 --- /dev/null +++ b/www/chromium/patches/patch-content_renderer_renderer_blink_platform_impl_cc | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | Index: content/renderer/renderer_blink_platform_impl.cc | ||
| 2 | --- content/renderer/renderer_blink_platform_impl.cc.orig | ||
| 3 | +++ content/renderer/renderer_blink_platform_impl.cc | ||
| 4 | @@ -109,7 +109,7 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_MAC) | ||
| 7 | #include "content/child/child_process_sandbox_support_impl_mac.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "content/child/child_process_sandbox_support_impl_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -178,7 +178,7 @@ RendererBlinkPlatformImpl::RendererBlinkPlatformImpl( | ||
| 14 | main_thread_scheduler_(main_thread_scheduler) { | ||
| 15 | // RenderThread may not exist in some tests. | ||
| 16 | if (RenderThreadImpl::current()) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | mojo::PendingRemote<font_service::mojom::FontService> font_service; | ||
| 20 | RenderThreadImpl::current()->BindHostReceiver( | ||
| 21 | font_service.InitWithNewPipeAndPassReceiver()); | ||
| 22 | @@ -188,7 +188,7 @@ RendererBlinkPlatformImpl::RendererBlinkPlatformImpl( | ||
| 23 | #endif | ||
| 24 | } | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | if (sandboxEnabled()) { | ||
| 29 | #if BUILDFLAG(IS_MAC) | ||
| 30 | sandbox_support_ = std::make_unique<WebSandboxSupportMac>(); | ||
| 31 | @@ -283,7 +283,8 @@ RendererBlinkPlatformImpl::WrapSharedURLLoaderFactory( | ||
| 32 | /*terminate_sync_load_event=*/nullptr); | ||
| 33 | } | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +// pledge | ||
| 37 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && !BUILDFLAG(IS_BSD) | ||
| 38 | void RendererBlinkPlatformImpl::SetDisplayThreadPriority( | ||
| 39 | base::PlatformThreadId thread_id) { | ||
| 40 | if (RenderThreadImpl* render_thread = RenderThreadImpl::current()) { | ||
| 41 | @@ -298,7 +299,7 @@ blink::BlameContext* RendererBlinkPlatformImpl::GetTop | ||
| 42 | } | ||
| 43 | |||
| 44 | blink::WebSandboxSupport* RendererBlinkPlatformImpl::GetSandboxSupport() { | ||
| 45 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 46 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 47 | return sandbox_support_.get(); | ||
| 48 | #else | ||
| 49 | // These platforms do not require sandbox support. | ||
diff --git a/www/chromium/patches/patch-content_renderer_renderer_blink_platform_impl_h b/www/chromium/patches/patch-content_renderer_renderer_blink_platform_impl_h new file mode 100644 index 0000000..d0a0261 --- /dev/null +++ b/www/chromium/patches/patch-content_renderer_renderer_blink_platform_impl_h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: content/renderer/renderer_blink_platform_impl.h | ||
| 2 | --- content/renderer/renderer_blink_platform_impl.h.orig | ||
| 3 | +++ content/renderer/renderer_blink_platform_impl.h | ||
| 4 | @@ -30,7 +30,7 @@ | ||
| 5 | #include "third_party/blink/public/mojom/cache_storage/cache_storage.mojom.h" | ||
| 6 | #include "third_party/blink/public/mojom/loader/code_cache.mojom.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "components/services/font/public/cpp/font_loader.h" // nogncheck | ||
| 11 | #include "third_party/skia/include/core/SkRefCnt.h" // nogncheck | ||
| 12 | #endif | ||
| 13 | @@ -276,7 +276,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : publi | ||
| 14 | void Collect3DContextInformation(blink::Platform::GraphicsInfo* gl_info, | ||
| 15 | const gpu::GPUInfo& gpu_info) const; | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | std::unique_ptr<blink::WebSandboxSupport> sandbox_support_; | ||
| 20 | #endif | ||
| 21 | |||
| 22 | @@ -304,7 +304,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : publi | ||
| 23 | mutable base::WaitableEvent io_thread_id_ready_event_; | ||
| 24 | base::PlatformThreadId io_thread_id_ = base::kInvalidThreadId; | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | sk_sp<font_service::FontLoader> font_loader_; | ||
| 29 | #endif | ||
| 30 | |||
diff --git a/www/chromium/patches/patch-content_renderer_renderer_main_platform_delegate_linux_cc b/www/chromium/patches/patch-content_renderer_renderer_main_platform_delegate_linux_cc new file mode 100644 index 0000000..1cb0928 --- /dev/null +++ b/www/chromium/patches/patch-content_renderer_renderer_main_platform_delegate_linux_cc | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Index: content/renderer/renderer_main_platform_delegate_linux.cc | ||
| 2 | --- content/renderer/renderer_main_platform_delegate_linux.cc.orig | ||
| 3 | +++ content/renderer/renderer_main_platform_delegate_linux.cc | ||
| 4 | @@ -44,6 +44,7 @@ bool RendererMainPlatformDelegate::EnableSandbox() { | ||
| 5 | // any renderer has been started. | ||
| 6 | // Here, we test that the status of SeccompBpf in the renderer is consistent | ||
| 7 | // with what SandboxLinux::GetStatus() said we would do. | ||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | auto* linux_sandbox = sandbox::policy::SandboxLinux::GetInstance(); | ||
| 10 | if (linux_sandbox->GetStatus() & sandbox::policy::SandboxLinux::kSeccompBPF) { | ||
| 11 | CHECK(linux_sandbox->seccomp_bpf_started()); | ||
| 12 | @@ -65,6 +66,7 @@ bool RendererMainPlatformDelegate::EnableSandbox() { | ||
| 13 | CHECK_EQ(errno, EPERM); | ||
| 14 | } | ||
| 15 | #endif // __x86_64__ | ||
| 16 | +#endif | ||
| 17 | |||
| 18 | return true; | ||
| 19 | } | ||
diff --git a/www/chromium/patches/patch-content_shell_BUILD_gn b/www/chromium/patches/patch-content_shell_BUILD_gn new file mode 100644 index 0000000..3370ff5 --- /dev/null +++ b/www/chromium/patches/patch-content_shell_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/shell/BUILD.gn | ||
| 2 | --- content/shell/BUILD.gn.orig | ||
| 3 | +++ content/shell/BUILD.gn | ||
| 4 | @@ -882,7 +882,7 @@ group("content_shell_crash_test") { | ||
| 5 | if (is_win) { | ||
| 6 | data_deps += [ "//build/win:copy_cdb_to_output" ] | ||
| 7 | } | ||
| 8 | - if (is_posix) { | ||
| 9 | + if (is_posix && !is_bsd) { | ||
| 10 | data_deps += [ | ||
| 11 | "//third_party/breakpad:dump_syms", | ||
| 12 | "//third_party/breakpad:minidump_stackwalk", | ||
diff --git a/www/chromium/patches/patch-content_shell_app_shell_main_delegate_cc b/www/chromium/patches/patch-content_shell_app_shell_main_delegate_cc new file mode 100644 index 0000000..4f3cd86 --- /dev/null +++ b/www/chromium/patches/patch-content_shell_app_shell_main_delegate_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/shell/app/shell_main_delegate.cc | ||
| 2 | --- content/shell/app/shell_main_delegate.cc.orig | ||
| 3 | +++ content/shell/app/shell_main_delegate.cc | ||
| 4 | @@ -211,7 +211,7 @@ void ShellMainDelegate::PreSandboxStartup() { | ||
| 5 | // Reporting for sub-processes will be initialized in ZygoteForked. | ||
| 6 | if (process_type != switches::kZygoteProcess) { | ||
| 7 | crash_reporter::InitializeCrashpad(process_type.empty(), process_type); | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | crash_reporter::SetFirstChanceExceptionHandler( | ||
| 11 | v8::TryHandleWebAssemblyTrapPosix); | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-content_shell_browser_shell_browser_main_parts_cc b/www/chromium/patches/patch-content_shell_browser_shell_browser_main_parts_cc new file mode 100644 index 0000000..115111d --- /dev/null +++ b/www/chromium/patches/patch-content_shell_browser_shell_browser_main_parts_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: content/shell/browser/shell_browser_main_parts.cc | ||
| 2 | --- content/shell/browser/shell_browser_main_parts.cc.orig | ||
| 3 | +++ content/shell/browser/shell_browser_main_parts.cc | ||
| 4 | @@ -49,7 +49,7 @@ | ||
| 5 | #include "net/base/network_change_notifier.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | +#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 10 | #include "ui/base/ime/init/input_method_initializer.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -129,7 +129,7 @@ void ShellBrowserMainParts::PostCreateMainMessageLoop( | ||
| 14 | } | ||
| 15 | |||
| 16 | int ShellBrowserMainParts::PreEarlyInitialization() { | ||
| 17 | -#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 18 | +#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 19 | ui::InitializeInputMethodForTesting(); | ||
| 20 | #endif | ||
| 21 | #if BUILDFLAG(IS_ANDROID) | ||
diff --git a/www/chromium/patches/patch-content_shell_browser_shell_paths_cc b/www/chromium/patches/patch-content_shell_browser_shell_paths_cc new file mode 100644 index 0000000..031c969 --- /dev/null +++ b/www/chromium/patches/patch-content_shell_browser_shell_paths_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: content/shell/browser/shell_paths.cc | ||
| 2 | --- content/shell/browser/shell_paths.cc.orig | ||
| 3 | +++ content/shell/browser/shell_paths.cc | ||
| 4 | @@ -13,7 +13,7 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_FUCHSIA) | ||
| 7 | #include "base/fuchsia/file_utils.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/nix/xdg_util.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -25,7 +25,7 @@ bool GetDefaultUserDataDirectory(base::FilePath* resul | ||
| 14 | #if BUILDFLAG(IS_WIN) | ||
| 15 | CHECK(base::PathService::Get(base::DIR_LOCAL_APP_DATA, result)); | ||
| 16 | *result = result->Append(std::wstring(L"content_shell")); | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | std::unique_ptr<base::Environment> env(base::Environment::Create()); | ||
| 20 | base::FilePath config_dir(base::nix::GetXDGDirectory( | ||
| 21 | env.get(), base::nix::kXdgConfigHomeEnvVar, base::nix::kDotConfigDir)); | ||
diff --git a/www/chromium/patches/patch-content_shell_utility_shell_content_utility_client_cc b/www/chromium/patches/patch-content_shell_utility_shell_content_utility_client_cc new file mode 100644 index 0000000..0e82321 --- /dev/null +++ b/www/chromium/patches/patch-content_shell_utility_shell_content_utility_client_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: content/shell/utility/shell_content_utility_client.cc | ||
| 2 | --- content/shell/utility/shell_content_utility_client.cc.orig | ||
| 3 | +++ content/shell/utility/shell_content_utility_client.cc | ||
| 4 | @@ -32,7 +32,7 @@ | ||
| 5 | #include "sandbox/policy/sandbox.h" | ||
| 6 | #include "services/test/echo/echo_service.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "content/test/sandbox_status_service.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -142,7 +142,7 @@ void ShellContentUtilityClient::ExposeInterfacesToBrow | ||
| 14 | binders->Add<mojom::PowerMonitorTest>( | ||
| 15 | base::BindRepeating(&PowerMonitorTestImpl::MakeSelfOwnedReceiver), | ||
| 16 | base::ThreadTaskRunnerHandle::Get()); | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | if (register_sandbox_status_helper_) { | ||
| 20 | binders->Add<content::mojom::SandboxStatusService>( | ||
| 21 | base::BindRepeating( | ||
diff --git a/www/chromium/patches/patch-content_test_BUILD_gn b/www/chromium/patches/patch-content_test_BUILD_gn new file mode 100644 index 0000000..b68de58 --- /dev/null +++ b/www/chromium/patches/patch-content_test_BUILD_gn | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: content/test/BUILD.gn | ||
| 2 | --- content/test/BUILD.gn.orig | ||
| 3 | +++ content/test/BUILD.gn | ||
| 4 | @@ -1914,7 +1914,7 @@ static_library("run_all_unittests") { | ||
| 5 | ":test_support", | ||
| 6 | "//base/test:test_support", | ||
| 7 | ] | ||
| 8 | - if (is_linux || is_chromeos) { | ||
| 9 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | deps += [ "//content/common:set_process_title_linux" ] | ||
| 11 | } | ||
| 12 | } | ||
| 13 | @@ -2850,7 +2850,7 @@ test("content_unittests") { | ||
| 14 | deps += [ "//third_party/boringssl" ] | ||
| 15 | } | ||
| 16 | |||
| 17 | - if (is_linux || is_chromeos) { | ||
| 18 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 19 | sources += [ "../common/set_process_title_linux_unittest.cc" ] | ||
| 20 | deps += [ "//content/common:set_process_title_linux" ] | ||
| 21 | } | ||
diff --git a/www/chromium/patches/patch-content_utility_services_cc b/www/chromium/patches/patch-content_utility_services_cc new file mode 100644 index 0000000..e735150 --- /dev/null +++ b/www/chromium/patches/patch-content_utility_services_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: content/utility/services.cc | ||
| 2 | --- content/utility/services.cc.orig | ||
| 3 | +++ content/utility/services.cc | ||
| 4 | @@ -67,7 +67,7 @@ | ||
| 5 | extern sandbox::TargetServices* g_utility_target_services; | ||
| 6 | #endif // BUILDFLAG(IS_WIN) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "sandbox/linux/services/libc_interceptor.h" | ||
| 11 | #include "sandbox/policy/mojom/sandbox.mojom.h" | ||
| 12 | #include "sandbox/policy/sandbox_type.h" | ||
| 13 | @@ -205,7 +205,7 @@ auto RunAudio(mojo::PendingReceiver<audio::mojom::Audi | ||
| 14 | << "task_policy_set TASK_QOS_POLICY"; | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | auto* command_line = base::CommandLine::ForCurrentProcess(); | ||
| 20 | if (sandbox::policy::SandboxTypeFromCommandLine(*command_line) == | ||
| 21 | sandbox::mojom::Sandbox::kNoSandbox) { | ||
diff --git a/www/chromium/patches/patch-content_utility_speech_speech_recognition_sandbox_hook_linux_cc b/www/chromium/patches/patch-content_utility_speech_speech_recognition_sandbox_hook_linux_cc new file mode 100644 index 0000000..65b03fe --- /dev/null +++ b/www/chromium/patches/patch-content_utility_speech_speech_recognition_sandbox_hook_linux_cc | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | Index: content/utility/speech/speech_recognition_sandbox_hook_linux.cc | ||
| 2 | --- content/utility/speech/speech_recognition_sandbox_hook_linux.cc.orig | ||
| 3 | +++ content/utility/speech/speech_recognition_sandbox_hook_linux.cc | ||
| 4 | @@ -12,11 +12,14 @@ | ||
| 5 | #include "sandbox/linux/syscall_broker/broker_command.h" | ||
| 6 | #include "sandbox/linux/syscall_broker/broker_file_permission.h" | ||
| 7 | |||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | using sandbox::syscall_broker::BrokerFilePermission; | ||
| 10 | using sandbox::syscall_broker::MakeBrokerCommandSet; | ||
| 11 | +#endif | ||
| 12 | |||
| 13 | namespace speech { | ||
| 14 | |||
| 15 | +#if !defined(OS_BSD) | ||
| 16 | namespace { | ||
| 17 | |||
| 18 | // Gets the file permissions required by the Speech On-Device API (SODA). | ||
| 19 | @@ -50,9 +53,11 @@ std::vector<BrokerFilePermission> GetSodaFilePermissio | ||
| 20 | } | ||
| 21 | |||
| 22 | } // namespace | ||
| 23 | +#endif | ||
| 24 | |||
| 25 | bool SpeechRecognitionPreSandboxHook( | ||
| 26 | sandbox::policy::SandboxLinux::Options options) { | ||
| 27 | +#if !defined(OS_BSD) | ||
| 28 | #if BUILDFLAG(ENABLE_SODA) | ||
| 29 | base::FilePath test_binary_path = GetSodaTestBinaryPath(); | ||
| 30 | DVLOG(0) << "SODA test binary path: " << test_binary_path.value().c_str(); | ||
| 31 | @@ -77,6 +82,7 @@ bool SpeechRecognitionPreSandboxHook( | ||
| 32 | sandbox::policy::SandboxLinux::PreSandboxHook(), | ||
| 33 | options); | ||
| 34 | instance->EngageNamespaceSandboxIfPossible(); | ||
| 35 | +#endif | ||
| 36 | |||
| 37 | return true; | ||
| 38 | } | ||
diff --git a/www/chromium/patches/patch-content_utility_speech_speech_recognition_sandbox_hook_linux_h b/www/chromium/patches/patch-content_utility_speech_speech_recognition_sandbox_hook_linux_h new file mode 100644 index 0000000..afa0a50 --- /dev/null +++ b/www/chromium/patches/patch-content_utility_speech_speech_recognition_sandbox_hook_linux_h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: content/utility/speech/speech_recognition_sandbox_hook_linux.h | ||
| 2 | --- content/utility/speech/speech_recognition_sandbox_hook_linux.h.orig | ||
| 3 | +++ content/utility/speech/speech_recognition_sandbox_hook_linux.h | ||
| 4 | @@ -5,7 +5,11 @@ | ||
| 5 | #ifndef CONTENT_UTILITY_SPEECH_SPEECH_RECOGNITION_SANDBOX_HOOK_LINUX_H_ | ||
| 6 | #define CONTENT_UTILITY_SPEECH_SPEECH_RECOGNITION_SANDBOX_HOOK_LINUX_H_ | ||
| 7 | |||
| 8 | +#if defined(OS_BSD) | ||
| 9 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 10 | +#else | ||
| 11 | #include "sandbox/policy/linux/sandbox_linux.h" | ||
| 12 | +#endif | ||
| 13 | |||
| 14 | namespace speech { | ||
| 15 | |||
diff --git a/www/chromium/patches/patch-content_utility_utility_blink_platform_with_sandbox_support_impl_cc b/www/chromium/patches/patch-content_utility_utility_blink_platform_with_sandbox_support_impl_cc new file mode 100644 index 0000000..3b4fe25 --- /dev/null +++ b/www/chromium/patches/patch-content_utility_utility_blink_platform_with_sandbox_support_impl_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: content/utility/utility_blink_platform_with_sandbox_support_impl.cc | ||
| 2 | --- content/utility/utility_blink_platform_with_sandbox_support_impl.cc.orig | ||
| 3 | +++ content/utility/utility_blink_platform_with_sandbox_support_impl.cc | ||
| 4 | @@ -9,7 +9,7 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_MAC) | ||
| 7 | #include "content/child/child_process_sandbox_support_impl_mac.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "content/child/child_process_sandbox_support_impl_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -17,7 +17,7 @@ namespace content { | ||
| 14 | |||
| 15 | UtilityBlinkPlatformWithSandboxSupportImpl:: | ||
| 16 | UtilityBlinkPlatformWithSandboxSupportImpl() { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | mojo::PendingRemote<font_service::mojom::FontService> font_service; | ||
| 20 | UtilityThread::Get()->BindHostReceiver( | ||
| 21 | font_service.InitWithNewPipeAndPassReceiver()); | ||
| 22 | @@ -34,7 +34,7 @@ UtilityBlinkPlatformWithSandboxSupportImpl:: | ||
| 23 | |||
| 24 | blink::WebSandboxSupport* | ||
| 25 | UtilityBlinkPlatformWithSandboxSupportImpl::GetSandboxSupport() { | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 28 | return sandbox_support_.get(); | ||
| 29 | #else | ||
| 30 | return nullptr; | ||
diff --git a/www/chromium/patches/patch-content_utility_utility_blink_platform_with_sandbox_support_impl_h b/www/chromium/patches/patch-content_utility_utility_blink_platform_with_sandbox_support_impl_h new file mode 100644 index 0000000..1acb1bb --- /dev/null +++ b/www/chromium/patches/patch-content_utility_utility_blink_platform_with_sandbox_support_impl_h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | Index: content/utility/utility_blink_platform_with_sandbox_support_impl.h | ||
| 2 | --- content/utility/utility_blink_platform_with_sandbox_support_impl.h.orig | ||
| 3 | +++ content/utility/utility_blink_platform_with_sandbox_support_impl.h | ||
| 4 | @@ -10,7 +10,7 @@ | ||
| 5 | #include "build/build_config.h" | ||
| 6 | #include "third_party/blink/public/platform/platform.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "components/services/font/public/cpp/font_loader.h" // nogncheck | ||
| 11 | #include "third_party/skia/include/core/SkRefCnt.h" // nogncheck | ||
| 12 | #endif | ||
| 13 | @@ -38,10 +38,10 @@ class UtilityBlinkPlatformWithSandboxSupportImpl : pub | ||
| 14 | blink::WebSandboxSupport* GetSandboxSupport() override; | ||
| 15 | |||
| 16 | private: | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 19 | std::unique_ptr<blink::WebSandboxSupport> sandbox_support_; | ||
| 20 | #endif | ||
| 21 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 22 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 23 | sk_sp<font_service::FontLoader> font_loader_; | ||
| 24 | #endif | ||
| 25 | }; | ||
diff --git a/www/chromium/patches/patch-content_utility_utility_main_cc b/www/chromium/patches/patch-content_utility_utility_main_cc new file mode 100644 index 0000000..62d04fe --- /dev/null +++ b/www/chromium/patches/patch-content_utility_utility_main_cc | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | Index: content/utility/utility_main.cc | ||
| 2 | --- content/utility/utility_main.cc.orig | ||
| 3 | +++ content/utility/utility_main.cc | ||
| 4 | @@ -32,16 +32,22 @@ | ||
| 5 | #include "third_party/icu/source/common/unicode/unistr.h" | ||
| 6 | #include "third_party/icu/source/i18n/unicode/timezone.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "content/utility/speech/speech_recognition_sandbox_hook_linux.h" | ||
| 11 | #if BUILDFLAG(ENABLE_PRINTING) | ||
| 12 | #include "printing/sandbox/print_backend_sandbox_hook_linux.h" | ||
| 13 | #endif | ||
| 14 | +#if !BUILDFLAG(IS_BSD) | ||
| 15 | #include "sandbox/policy/linux/sandbox_linux.h" | ||
| 16 | +#endif | ||
| 17 | #include "services/audio/audio_sandbox_hook_linux.h" | ||
| 18 | #include "services/network/network_sandbox_hook_linux.h" | ||
| 19 | #endif | ||
| 20 | |||
| 21 | +#if BUILDFLAG(IS_BSD) | ||
| 22 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 23 | +#endif | ||
| 24 | + | ||
| 25 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 26 | #include "ash/services/ime/ime_sandbox_hook.h" | ||
| 27 | #include "chromeos/assistant/buildflags.h" | ||
| 28 | @@ -135,7 +141,7 @@ int UtilityMain(MainFunctionParams parameters) { | ||
| 29 | } | ||
| 30 | } | ||
| 31 | |||
| 32 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 33 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 34 | // Initializes the sandbox before any threads are created. | ||
| 35 | // TODO(jorgelo): move this after GTK initialization when we enable a strict | ||
| 36 | // Seccomp-BPF policy. | ||
| 37 | @@ -179,6 +185,7 @@ int UtilityMain(MainFunctionParams parameters) { | ||
| 38 | default: | ||
| 39 | break; | ||
| 40 | } | ||
| 41 | +#if !BUILDFLAG(IS_BSD) | ||
| 42 | if (parameters.zygote_child || !pre_sandbox_hook.is_null()) { | ||
| 43 | sandbox::policy::SandboxLinux::Options sandbox_options; | ||
| 44 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 45 | @@ -194,6 +201,11 @@ int UtilityMain(MainFunctionParams parameters) { | ||
| 46 | sandbox::policy::Sandbox::Initialize( | ||
| 47 | sandbox_type, std::move(pre_sandbox_hook), sandbox_options); | ||
| 48 | } | ||
| 49 | +#else | ||
| 50 | + sandbox::policy::Sandbox::Initialize( | ||
| 51 | + sandbox_type, std::move(pre_sandbox_hook), | ||
| 52 | + sandbox::policy::SandboxLinux::Options()); | ||
| 53 | +#endif | ||
| 54 | #elif BUILDFLAG(IS_WIN) | ||
| 55 | g_utility_target_services = parameters.sandbox_info->target_services; | ||
| 56 | #endif | ||
diff --git a/www/chromium/patches/patch-content_zygote_BUILD_gn b/www/chromium/patches/patch-content_zygote_BUILD_gn new file mode 100644 index 0000000..ac33b80 --- /dev/null +++ b/www/chromium/patches/patch-content_zygote_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: content/zygote/BUILD.gn | ||
| 2 | --- content/zygote/BUILD.gn.orig | ||
| 3 | +++ content/zygote/BUILD.gn | ||
| 4 | @@ -5,7 +5,7 @@ | ||
| 5 | import("//build/config/nacl/config.gni") | ||
| 6 | import("//content/public/common/zygote/features.gni") | ||
| 7 | |||
| 8 | -if (is_linux || is_chromeos) { | ||
| 9 | +if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | source_set("zygote") { | ||
| 11 | sources = [ | ||
| 12 | "zygote_linux.cc", | ||
diff --git a/www/chromium/patches/patch-content_zygote_zygote_linux_cc b/www/chromium/patches/patch-content_zygote_zygote_linux_cc new file mode 100644 index 0000000..198b323 --- /dev/null +++ b/www/chromium/patches/patch-content_zygote_zygote_linux_cc | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: content/zygote/zygote_linux.cc | ||
| 2 | --- content/zygote/zygote_linux.cc.orig | ||
| 3 | +++ content/zygote/zygote_linux.cc | ||
| 4 | @@ -1,6 +1,7 @@ | ||
| 5 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | ||
| 6 | // Use of this source code is governed by a BSD-style license that can be | ||
| 7 | // found in the LICENSE file. | ||
| 8 | +#if 0 | ||
| 9 | |||
| 10 | #include "content/zygote/zygote_linux.h" | ||
| 11 | |||
| 12 | @@ -650,3 +651,4 @@ bool Zygote::HandleGetSandboxStatus(int fd, base::Pick | ||
| 13 | } | ||
| 14 | |||
| 15 | } // namespace content | ||
| 16 | +#endif | ||
diff --git a/www/chromium/patches/patch-content_zygote_zygote_main_linux_cc b/www/chromium/patches/patch-content_zygote_zygote_main_linux_cc new file mode 100644 index 0000000..bd06059 --- /dev/null +++ b/www/chromium/patches/patch-content_zygote_zygote_main_linux_cc | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | Index: content/zygote/zygote_main_linux.cc | ||
| 2 | --- content/zygote/zygote_main_linux.cc.orig | ||
| 3 | +++ content/zygote/zygote_main_linux.cc | ||
| 4 | @@ -11,7 +11,9 @@ | ||
| 5 | #include <stddef.h> | ||
| 6 | #include <stdint.h> | ||
| 7 | #include <string.h> | ||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | #include <sys/prctl.h> | ||
| 10 | +#endif | ||
| 11 | #include <sys/socket.h> | ||
| 12 | #include <sys/types.h> | ||
| 13 | #include <unistd.h> | ||
| 14 | @@ -40,7 +42,9 @@ | ||
| 15 | #include "sandbox/linux/services/thread_helpers.h" | ||
| 16 | #include "sandbox/linux/suid/client/setuid_sandbox_client.h" | ||
| 17 | #include "sandbox/policy/linux/sandbox_debug_handling_linux.h" | ||
| 18 | +#if !defined(OS_BSD) | ||
| 19 | #include "sandbox/policy/linux/sandbox_linux.h" | ||
| 20 | +#endif | ||
| 21 | #include "sandbox/policy/sandbox.h" | ||
| 22 | #include "sandbox/policy/switches.h" | ||
| 23 | #include "third_party/icu/source/i18n/unicode/timezone.h" | ||
| 24 | @@ -49,6 +53,7 @@ namespace content { | ||
| 25 | |||
| 26 | namespace { | ||
| 27 | |||
| 28 | +#if !defined(OS_BSD) | ||
| 29 | void CloseFds(const std::vector<int>& fds) { | ||
| 30 | for (const auto& it : fds) { | ||
| 31 | PCHECK(0 == IGNORE_EINTR(close(it))); | ||
| 32 | @@ -66,9 +71,11 @@ base::OnceClosure ClosureFromTwoClosures(base::OnceClo | ||
| 33 | }, | ||
| 34 | std::move(one), std::move(two)); | ||
| 35 | } | ||
| 36 | +#endif | ||
| 37 | |||
| 38 | } // namespace | ||
| 39 | |||
| 40 | +#if !defined(OS_BSD) | ||
| 41 | // This function triggers the static and lazy construction of objects that need | ||
| 42 | // to be created before imposing the sandbox. | ||
| 43 | static void ZygotePreSandboxInit() { | ||
| 44 | @@ -173,9 +180,11 @@ static void EnterLayerOneSandbox(sandbox::policy::Sand | ||
| 45 | CHECK(!using_layer1_sandbox); | ||
| 46 | } | ||
| 47 | } | ||
| 48 | +#endif | ||
| 49 | |||
| 50 | bool ZygoteMain( | ||
| 51 | std::vector<std::unique_ptr<ZygoteForkDelegate>> fork_delegates) { | ||
| 52 | +#if !defined(OS_BSD) | ||
| 53 | sandbox::SetAmZygoteOrRenderer(true, GetSandboxFD()); | ||
| 54 | |||
| 55 | auto* linux_sandbox = sandbox::policy::SandboxLinux::GetInstance(); | ||
| 56 | @@ -240,6 +249,9 @@ bool ZygoteMain( | ||
| 57 | |||
| 58 | // This function call can return multiple times, once per fork(). | ||
| 59 | return zygote.ProcessRequests(); | ||
| 60 | +#else | ||
| 61 | + return false; | ||
| 62 | +#endif | ||
| 63 | } | ||
| 64 | |||
| 65 | } // namespace content | ||
diff --git a/www/chromium/patches/patch-device_bluetooth_cast_bluetooth_gni b/www/chromium/patches/patch-device_bluetooth_cast_bluetooth_gni new file mode 100644 index 0000000..152e4d7 --- /dev/null +++ b/www/chromium/patches/patch-device_bluetooth_cast_bluetooth_gni | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | Index: device/bluetooth/cast_bluetooth.gni | ||
| 2 | --- device/bluetooth/cast_bluetooth.gni.orig | ||
| 3 | +++ device/bluetooth/cast_bluetooth.gni | ||
| 4 | @@ -2,5 +2,5 @@ import("//build/config/features.gni") | ||
| 5 | |||
| 6 | declare_args() { | ||
| 7 | force_cast_bluetooth = false | ||
| 8 | - use_bluez = use_dbus | ||
| 9 | + use_bluez = use_dbus && !is_bsd | ||
| 10 | } | ||
diff --git a/www/chromium/patches/patch-device_gamepad_gamepad_provider_cc b/www/chromium/patches/patch-device_gamepad_gamepad_provider_cc new file mode 100644 index 0000000..83f5a71 --- /dev/null +++ b/www/chromium/patches/patch-device_gamepad_gamepad_provider_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: device/gamepad/gamepad_provider.cc | ||
| 2 | --- device/gamepad/gamepad_provider.cc.orig | ||
| 3 | +++ device/gamepad/gamepad_provider.cc | ||
| 4 | @@ -216,7 +216,7 @@ void GamepadProvider::Initialize(std::unique_ptr<Gamep | ||
| 5 | |||
| 6 | if (!polling_thread_) | ||
| 7 | polling_thread_ = std::make_unique<base::Thread>("Gamepad polling thread"); | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // On Linux, the data fetcher needs to watch file descriptors, so the message | ||
| 11 | // loop needs to be a libevent loop. | ||
| 12 | const base::MessagePumpType kMessageLoopType = base::MessagePumpType::IO; | ||
diff --git a/www/chromium/patches/patch-device_gamepad_hid_writer_linux_cc b/www/chromium/patches/patch-device_gamepad_hid_writer_linux_cc new file mode 100644 index 0000000..622db5a --- /dev/null +++ b/www/chromium/patches/patch-device_gamepad_hid_writer_linux_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: device/gamepad/hid_writer_linux.cc | ||
| 2 | --- device/gamepad/hid_writer_linux.cc.orig | ||
| 3 | +++ device/gamepad/hid_writer_linux.cc | ||
| 4 | @@ -2,6 +2,8 @@ | ||
| 5 | // Use of this source code is governed by a BSD-style license that can be | ||
| 6 | // found in the LICENSE file. | ||
| 7 | |||
| 8 | +#include <unistd.h> | ||
| 9 | + | ||
| 10 | #include "device/gamepad/hid_writer_linux.h" | ||
| 11 | |||
| 12 | #include <unistd.h> | ||
diff --git a/www/chromium/patches/patch-extensions_browser_api_messaging_message_service_cc b/www/chromium/patches/patch-extensions_browser_api_messaging_message_service_cc new file mode 100644 index 0000000..6fa57f8 --- /dev/null +++ b/www/chromium/patches/patch-extensions_browser_api_messaging_message_service_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: extensions/browser/api/messaging/message_service.cc | ||
| 2 | --- extensions/browser/api/messaging/message_service.cc.orig | ||
| 3 | +++ extensions/browser/api/messaging/message_service.cc | ||
| 4 | @@ -74,7 +74,7 @@ namespace { | ||
| 5 | const char kReceivingEndDoesntExistError[] = | ||
| 6 | "Could not establish connection. Receiving end does not exist."; | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | const char kMissingPermissionError[] = | ||
| 11 | "Access to native messaging requires nativeMessaging permission."; | ||
| 12 | const char kProhibitedByPoliciesError[] = | ||
| 13 | @@ -447,7 +447,7 @@ void MessageService::OpenChannelToNativeApp( | ||
| 14 | return; | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_CHROMEOS) | ||
| 18 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | bool has_permission = extension->permissions_data()->HasAPIPermission( | ||
| 20 | mojom::APIPermissionID::kNativeMessaging); | ||
| 21 | if (!has_permission) { | ||
diff --git a/www/chromium/patches/patch-extensions_browser_api_networking_private_networking_private_delegate_factory_cc b/www/chromium/patches/patch-extensions_browser_api_networking_private_networking_private_delegate_factory_cc new file mode 100644 index 0000000..f238d9d --- /dev/null +++ b/www/chromium/patches/patch-extensions_browser_api_networking_private_networking_private_delegate_factory_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: extensions/browser/api/networking_private/networking_private_delegate_factory.cc | ||
| 2 | --- extensions/browser/api/networking_private/networking_private_delegate_factory.cc.orig | ||
| 3 | +++ extensions/browser/api/networking_private/networking_private_delegate_factory.cc | ||
| 4 | @@ -12,7 +12,7 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 7 | #include "extensions/browser/api/networking_private/networking_private_chromeos.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "extensions/browser/api/networking_private/networking_private_linux.h" | ||
| 11 | #elif BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 12 | #include "components/wifi/wifi_service.h" | ||
| 13 | @@ -62,7 +62,7 @@ KeyedService* NetworkingPrivateDelegateFactory::BuildS | ||
| 14 | NetworkingPrivateDelegate* delegate; | ||
| 15 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 16 | delegate = new NetworkingPrivateChromeOS(browser_context); | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | delegate = new NetworkingPrivateLinux(); | ||
| 20 | #elif BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 21 | std::unique_ptr<wifi::WiFiService> wifi_service(wifi::WiFiService::Create()); | ||
diff --git a/www/chromium/patches/patch-extensions_browser_browser_context_keyed_service_factories_cc b/www/chromium/patches/patch-extensions_browser_browser_context_keyed_service_factories_cc new file mode 100644 index 0000000..1b14b2f --- /dev/null +++ b/www/chromium/patches/patch-extensions_browser_browser_context_keyed_service_factories_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: extensions/browser/browser_context_keyed_service_factories.cc | ||
| 2 | --- extensions/browser/browser_context_keyed_service_factories.cc.orig | ||
| 3 | +++ extensions/browser/browser_context_keyed_service_factories.cc | ||
| 4 | @@ -89,7 +89,7 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt() | ||
| 5 | IdleManagerFactory::GetInstance(); | ||
| 6 | ManagementAPI::GetFactoryInstance(); | ||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || \ | ||
| 8 | - BUILDFLAG(IS_MAC) | ||
| 9 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | NetworkingPrivateEventRouterFactory::GetInstance(); | ||
| 11 | #endif | ||
| 12 | PowerAPI::GetFactoryInstance(); | ||
diff --git a/www/chromium/patches/patch-extensions_browser_extension_prefs_cc b/www/chromium/patches/patch-extensions_browser_extension_prefs_cc new file mode 100644 index 0000000..3753c4a --- /dev/null +++ b/www/chromium/patches/patch-extensions_browser_extension_prefs_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: extensions/browser/extension_prefs.cc | ||
| 2 | --- extensions/browser/extension_prefs.cc.orig | ||
| 3 | +++ extensions/browser/extension_prefs.cc | ||
| 4 | @@ -2269,7 +2269,7 @@ void ExtensionPrefs::RegisterProfilePrefs( | ||
| 5 | registry->RegisterStringPref(pref_names::kLastChromeVersion, std::string()); | ||
| 6 | registry->RegisterDictionaryPref(kInstallSignature); | ||
| 7 | registry->RegisterListPref(kExternalUninstalls); | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | registry->RegisterBooleanPref(pref_names::kChromeAppsEnabled, false); | ||
| 11 | #endif | ||
| 12 | registry->RegisterBooleanPref(pref_names::kU2fSecurityKeyApiEnabled, false); | ||
diff --git a/www/chromium/patches/patch-extensions_browser_pref_names_cc b/www/chromium/patches/patch-extensions_browser_pref_names_cc new file mode 100644 index 0000000..0727a21 --- /dev/null +++ b/www/chromium/patches/patch-extensions_browser_pref_names_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: extensions/browser/pref_names.cc | ||
| 2 | --- extensions/browser/pref_names.cc.orig | ||
| 3 | +++ extensions/browser/pref_names.cc | ||
| 4 | @@ -48,7 +48,7 @@ const char kStorageGarbageCollect[] = "extensions.stor | ||
| 5 | const char kToolbar[] = "extensions.toolbar"; | ||
| 6 | const char kDeletedComponentExtensions[] = | ||
| 7 | "extensions.deleted_component_extensions"; | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | extern const char kChromeAppsEnabled[] = "extensions.chrome_apps_enabled"; | ||
| 11 | #endif | ||
| 12 | const char kU2fSecurityKeyApiEnabled[] = | ||
diff --git a/www/chromium/patches/patch-extensions_browser_pref_names_h b/www/chromium/patches/patch-extensions_browser_pref_names_h new file mode 100644 index 0000000..3381f33 --- /dev/null +++ b/www/chromium/patches/patch-extensions_browser_pref_names_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: extensions/browser/pref_names.h | ||
| 2 | --- extensions/browser/pref_names.h.orig | ||
| 3 | +++ extensions/browser/pref_names.h | ||
| 4 | @@ -101,7 +101,7 @@ extern const char kToolbar[]; | ||
| 5 | // uninstalled/removed and should not be reloaded. | ||
| 6 | extern const char kDeletedComponentExtensions[]; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // A preference for whether Chrome Apps should be allowed. The default depends | ||
| 11 | // on the ChromeAppsDeprecation feature flag, and this pref can extend support | ||
| 12 | // for Chrome Apps by enterprise policy. | ||
diff --git a/www/chromium/patches/patch-extensions_common_api__permission_features_json b/www/chromium/patches/patch-extensions_common_api__permission_features_json new file mode 100644 index 0000000..03fd504 --- /dev/null +++ b/www/chromium/patches/patch-extensions_common_api__permission_features_json | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: extensions/common/api/_permission_features.json | ||
| 2 | --- extensions/common/api/_permission_features.json.orig | ||
| 3 | +++ extensions/common/api/_permission_features.json | ||
| 4 | @@ -134,7 +134,7 @@ | ||
| 5 | { | ||
| 6 | "channel": "stable", | ||
| 7 | "extension_types": ["platform_app"], | ||
| 8 | - "platforms": ["chromeos", "win", "mac", "linux"], | ||
| 9 | + "platforms": ["chromeos", "win", "mac", "linux", "openbsd"], | ||
| 10 | "allowlist": [ | ||
| 11 | "1C93BD3CF875F4A73C0B2A163BB8FBDA8B8B3D80", // http://crbug.com/387169 | ||
| 12 | "A3BC37E2148AC4E99BE4B16AF9D42DD1E592BBBE", // http://crbug.com/387169 | ||
| 13 | @@ -447,7 +447,7 @@ | ||
| 14 | }, { | ||
| 15 | "channel": "stable", | ||
| 16 | "extension_types": ["extension", "legacy_packaged_app", "platform_app"], | ||
| 17 | - "platforms": ["chromeos", "mac", "win", "linux", "fuchsia"], | ||
| 18 | + "platforms": ["chromeos", "mac", "win", "linux", "fuchsia", "openbsd"], | ||
| 19 | "allowlist": [ | ||
| 20 | "0DE0F05680A4A056BCEC864ED8DDA84296F82B40", // http://crbug.com/434651 | ||
| 21 | "1C93BD3CF875F4A73C0B2A163BB8FBDA8B8B3D80", // http://crbug.com/293683 | ||
| 22 | @@ -485,7 +485,7 @@ | ||
| 23 | "networkingPrivate": { | ||
| 24 | "channel": "stable", | ||
| 25 | "extension_types": ["extension", "legacy_packaged_app", "platform_app"], | ||
| 26 | - "platforms": ["chromeos", "mac", "win", "linux", "fuchsia"], | ||
| 27 | + "platforms": ["chromeos", "mac", "win", "linux", "fuchsia", "openbsd"], | ||
| 28 | "allowlist": [ | ||
| 29 | // DO NOT ADD ANY MORE ENTRIES HERE. | ||
| 30 | // networkingPrivate is being migrated to networking.onc. | ||
diff --git a/www/chromium/patches/patch-extensions_common_features_feature_cc b/www/chromium/patches/patch-extensions_common_features_feature_cc new file mode 100644 index 0000000..0c3b3fd --- /dev/null +++ b/www/chromium/patches/patch-extensions_common_features_feature_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: extensions/common/features/feature.cc | ||
| 2 | --- extensions/common/features/feature.cc.orig | ||
| 3 | +++ extensions/common/features/feature.cc | ||
| 4 | @@ -34,6 +34,8 @@ Feature::Platform Feature::GetCurrentPlatform() { | ||
| 5 | return WIN_PLATFORM; | ||
| 6 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 7 | return FUCHSIA_PLATFORM; | ||
| 8 | +#elif defined(OS_BSD) | ||
| 9 | + return LINUX_PLATFORM; | ||
| 10 | #else | ||
| 11 | return UNSPECIFIED_PLATFORM; | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-extensions_renderer_bindings_api_binding_util_cc b/www/chromium/patches/patch-extensions_renderer_bindings_api_binding_util_cc new file mode 100644 index 0000000..ee2a3c3 --- /dev/null +++ b/www/chromium/patches/patch-extensions_renderer_bindings_api_binding_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: extensions/renderer/bindings/api_binding_util.cc | ||
| 2 | --- extensions/renderer/bindings/api_binding_util.cc.orig | ||
| 3 | +++ extensions/renderer/bindings/api_binding_util.cc | ||
| 4 | @@ -132,7 +132,7 @@ std::string GetPlatformString() { | ||
| 5 | return "lacros"; | ||
| 6 | #elif BUILDFLAG(IS_CHROMEOS_ASH) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 7 | return "chromeos"; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | return "linux"; | ||
| 11 | #elif BUILDFLAG(IS_MAC) | ||
| 12 | return "mac"; | ||
diff --git a/www/chromium/patches/patch-extensions_shell_app_shell_main_delegate_cc b/www/chromium/patches/patch-extensions_shell_app_shell_main_delegate_cc new file mode 100644 index 0000000..3db5196 --- /dev/null +++ b/www/chromium/patches/patch-extensions_shell_app_shell_main_delegate_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: extensions/shell/app/shell_main_delegate.cc | ||
| 2 | --- extensions/shell/app/shell_main_delegate.cc.orig | ||
| 3 | +++ extensions/shell/app/shell_main_delegate.cc | ||
| 4 | @@ -42,7 +42,7 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_WIN) | ||
| 7 | #include "base/base_paths_win.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/nix/xdg_util.h" | ||
| 11 | #elif BUILDFLAG(IS_MAC) | ||
| 12 | #include "base/base_paths_mac.h" | ||
| 13 | @@ -61,7 +61,7 @@ base::FilePath GetDataPath() { | ||
| 14 | return cmd_line->GetSwitchValuePath(switches::kContentShellDataPath); | ||
| 15 | |||
| 16 | base::FilePath data_dir; | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | std::unique_ptr<base::Environment> env(base::Environment::Create()); | ||
| 20 | data_dir = base::nix::GetXDGDirectory( | ||
| 21 | env.get(), base::nix::kXdgConfigHomeEnvVar, base::nix::kDotConfigDir); | ||
diff --git a/www/chromium/patches/patch-extensions_shell_browser_api_runtime_shell_runtime_api_delegate_cc b/www/chromium/patches/patch-extensions_shell_browser_api_runtime_shell_runtime_api_delegate_cc new file mode 100644 index 0000000..cd6f818 --- /dev/null +++ b/www/chromium/patches/patch-extensions_shell_browser_api_runtime_shell_runtime_api_delegate_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: extensions/shell/browser/api/runtime/shell_runtime_api_delegate.cc | ||
| 2 | --- extensions/shell/browser/api/runtime/shell_runtime_api_delegate.cc.orig | ||
| 3 | +++ extensions/shell/browser/api/runtime/shell_runtime_api_delegate.cc | ||
| 4 | @@ -45,7 +45,7 @@ void ShellRuntimeAPIDelegate::OpenURL(const GURL& unin | ||
| 5 | bool ShellRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) { | ||
| 6 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 7 | info->os = api::runtime::PLATFORM_OS_CROS; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | info->os = api::runtime::PLATFORM_OS_LINUX; | ||
| 11 | #endif | ||
| 12 | return true; | ||
diff --git a/www/chromium/patches/patch-extensions_shell_browser_shell_browser_main_parts_cc b/www/chromium/patches/patch-extensions_shell_browser_shell_browser_main_parts_cc new file mode 100644 index 0000000..543f16a --- /dev/null +++ b/www/chromium/patches/patch-extensions_shell_browser_shell_browser_main_parts_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: extensions/shell/browser/shell_browser_main_parts.cc | ||
| 2 | --- extensions/shell/browser/shell_browser_main_parts.cc.orig | ||
| 3 | +++ extensions/shell/browser/shell_browser_main_parts.cc | ||
| 4 | @@ -142,7 +142,7 @@ void ShellBrowserMainParts::PostCreateMainMessageLoop( | ||
| 5 | switches::kAppShellAllowRoaming)) { | ||
| 6 | network_controller_->SetCellularAllowRoaming(true); | ||
| 7 | } | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // app_shell doesn't need GTK, so the fake input method context can work. | ||
| 11 | // See crbug.com/381852 and revision fb69f142. | ||
| 12 | // TODO(michaelpg): Verify this works for target environments. | ||
diff --git a/www/chromium/patches/patch-extensions_shell_browser_shell_extensions_api_client_cc b/www/chromium/patches/patch-extensions_shell_browser_shell_extensions_api_client_cc new file mode 100644 index 0000000..d56be46 --- /dev/null +++ b/www/chromium/patches/patch-extensions_shell_browser_shell_extensions_api_client_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: extensions/shell/browser/shell_extensions_api_client.cc | ||
| 2 | --- extensions/shell/browser/shell_extensions_api_client.cc.orig | ||
| 3 | +++ extensions/shell/browser/shell_extensions_api_client.cc | ||
| 4 | @@ -58,7 +58,7 @@ ShellExtensionsAPIClient::CreateDisplayInfoProvider() | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | FileSystemDelegate* ShellExtensionsAPIClient::GetFileSystemDelegate() { | ||
| 11 | if (!file_system_delegate_) | ||
| 12 | file_system_delegate_ = std::make_unique<ShellFileSystemDelegate>(); | ||
diff --git a/www/chromium/patches/patch-extensions_shell_browser_shell_extensions_api_client_h b/www/chromium/patches/patch-extensions_shell_browser_shell_extensions_api_client_h new file mode 100644 index 0000000..9abd048 --- /dev/null +++ b/www/chromium/patches/patch-extensions_shell_browser_shell_extensions_api_client_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: extensions/shell/browser/shell_extensions_api_client.h | ||
| 2 | --- extensions/shell/browser/shell_extensions_api_client.h.orig | ||
| 3 | +++ extensions/shell/browser/shell_extensions_api_client.h | ||
| 4 | @@ -36,7 +36,7 @@ class ShellExtensionsAPIClient : public ExtensionsAPIC | ||
| 5 | const override; | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | FileSystemDelegate* GetFileSystemDelegate() override; | ||
| 11 | #endif | ||
| 12 | MessagingDelegate* GetMessagingDelegate() override; | ||
| 13 | @@ -45,7 +45,7 @@ class ShellExtensionsAPIClient : public ExtensionsAPIC | ||
| 14 | private: | ||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | std::unique_ptr<FileSystemDelegate> file_system_delegate_; | ||
| 20 | #endif | ||
| 21 | std::unique_ptr<MessagingDelegate> messaging_delegate_; | ||
diff --git a/www/chromium/patches/patch-google_apis_gcm_engine_heartbeat_manager_cc b/www/chromium/patches/patch-google_apis_gcm_engine_heartbeat_manager_cc new file mode 100644 index 0000000..7fd4d11 --- /dev/null +++ b/www/chromium/patches/patch-google_apis_gcm_engine_heartbeat_manager_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: google_apis/gcm/engine/heartbeat_manager.cc | ||
| 2 | --- google_apis/gcm/engine/heartbeat_manager.cc.orig | ||
| 3 | +++ google_apis/gcm/engine/heartbeat_manager.cc | ||
| 4 | @@ -32,7 +32,7 @@ const int kMinClientHeartbeatIntervalMs = 1000 * 30; | ||
| 5 | // Minimum time spent sleeping before we force a new heartbeat. | ||
| 6 | const int kMinSuspendTimeMs = 1000 * 10; // 10 seconds. | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // The period at which to check if the heartbeat time has passed. Used to | ||
| 11 | // protect against platforms where the timer is delayed by the system being | ||
| 12 | // suspended. Only needed on linux because the other OSes provide a standard | ||
| 13 | @@ -192,7 +192,7 @@ void HeartbeatManager::RestartTimer() { | ||
| 14 | base::BindRepeating(&HeartbeatManager::OnHeartbeatTriggered, | ||
| 15 | weak_ptr_factory_.GetWeakPtr())); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Windows, Mac, Android, iOS, and Chrome OS all provide a way to be notified | ||
| 20 | // when the system is suspending or resuming. The only one that does not is | ||
| 21 | // Linux so we need to poll to check for missed heartbeats. | ||
| 22 | @@ -217,7 +217,7 @@ void HeartbeatManager::CheckForMissedHeartbeat() { | ||
| 23 | return; | ||
| 24 | } | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 28 | // Otherwise check again later. | ||
| 29 | io_task_runner_->PostDelayedTask( | ||
| 30 | FROM_HERE, | ||
diff --git a/www/chromium/patches/patch-gpu_command_buffer_common_gpu_memory_buffer_support_cc b/www/chromium/patches/patch-gpu_command_buffer_common_gpu_memory_buffer_support_cc new file mode 100644 index 0000000..47db17a --- /dev/null +++ b/www/chromium/patches/patch-gpu_command_buffer_common_gpu_memory_buffer_support_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: gpu/command_buffer/common/gpu_memory_buffer_support.cc | ||
| 2 | --- gpu/command_buffer/common/gpu_memory_buffer_support.cc.orig | ||
| 3 | +++ gpu/command_buffer/common/gpu_memory_buffer_support.cc | ||
| 4 | @@ -134,7 +134,7 @@ uint32_t GetPlatformSpecificTextureTarget() { | ||
| 5 | #if BUILDFLAG(IS_MAC) | ||
| 6 | return macos_specific_texture_target; | ||
| 7 | #elif BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 10 | return GL_TEXTURE_EXTERNAL_OES; | ||
| 11 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 12 | return GL_TEXTURE_2D; | ||
| 13 | @@ -166,7 +166,7 @@ GPU_EXPORT bool NativeBufferNeedsPlatformSpecificTextu | ||
| 14 | gfx::BufferFormat format, | ||
| 15 | gfx::BufferPlane plane) { | ||
| 16 | #if defined(USE_OZONE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 17 | - BUILDFLAG(IS_WIN) | ||
| 18 | + BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 19 | // Always use GL_TEXTURE_2D as the target for RGB textures. | ||
| 20 | // https://crbug.com/916728 | ||
| 21 | if (format == gfx::BufferFormat::R_8 || format == gfx::BufferFormat::RG_88 || | ||
diff --git a/www/chromium/patches/patch-gpu_command_buffer_service_external_semaphore_cc b/www/chromium/patches/patch-gpu_command_buffer_service_external_semaphore_cc new file mode 100644 index 0000000..ce1de11 --- /dev/null +++ b/www/chromium/patches/patch-gpu_command_buffer_service_external_semaphore_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: gpu/command_buffer/service/external_semaphore.cc | ||
| 2 | --- gpu/command_buffer/service/external_semaphore.cc.orig | ||
| 3 | +++ gpu/command_buffer/service/external_semaphore.cc | ||
| 4 | @@ -27,7 +27,7 @@ GLuint ImportSemaphoreHandleToGLSemaphore(SemaphoreHan | ||
| 5 | if (!handle.is_valid()) | ||
| 6 | return 0; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | if (handle.vk_handle_type() != | ||
| 11 | VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT) { | ||
| 12 | DLOG(ERROR) << "Importing semaphore handle of unexpected type:" | ||
diff --git a/www/chromium/patches/patch-gpu_command_buffer_service_external_vk_image_backing_cc b/www/chromium/patches/patch-gpu_command_buffer_service_external_vk_image_backing_cc new file mode 100644 index 0000000..ecdf31b --- /dev/null +++ b/www/chromium/patches/patch-gpu_command_buffer_service_external_vk_image_backing_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: gpu/command_buffer/service/external_vk_image_backing.cc | ||
| 2 | --- gpu/command_buffer/service/external_vk_image_backing.cc.orig | ||
| 3 | +++ gpu/command_buffer/service/external_vk_image_backing.cc | ||
| 4 | @@ -31,7 +31,7 @@ | ||
| 5 | #include "ui/gl/gl_version_info.h" | ||
| 6 | #include "ui/gl/scoped_binders.h" | ||
| 7 | |||
| 8 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && BUILDFLAG(USE_DAWN) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && BUILDFLAG(USE_DAWN) | ||
| 10 | #include "gpu/command_buffer/service/external_vk_image_dawn_representation.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -559,7 +559,7 @@ ExternalVkImageBacking::ProduceDawn(SharedImageManager | ||
| 14 | MemoryTypeTracker* tracker, | ||
| 15 | WGPUDevice wgpuDevice, | ||
| 16 | WGPUBackendType backend_type) { | ||
| 17 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && BUILDFLAG(USE_DAWN) | ||
| 18 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && BUILDFLAG(USE_DAWN) | ||
| 19 | auto wgpu_format = viz::ToWGPUFormat(format()); | ||
| 20 | |||
| 21 | if (wgpu_format == WGPUTextureFormat_Undefined) { | ||
| 22 | @@ -592,7 +592,7 @@ GLuint ExternalVkImageBacking::ProduceGLTextureInterna | ||
| 23 | gl::GLApi* api = gl::g_current_gl_context; | ||
| 24 | absl::optional<ScopedDedicatedMemoryObject> memory_object; | ||
| 25 | if (!use_separate_gl_texture()) { | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 28 | auto memory_fd = image_->GetMemoryFd(); | ||
| 29 | if (!memory_fd.is_valid()) | ||
| 30 | return 0; | ||
diff --git a/www/chromium/patches/patch-gpu_command_buffer_service_shared_image_backing_factory_angle_vulkan_cc b/www/chromium/patches/patch-gpu_command_buffer_service_shared_image_backing_factory_angle_vulkan_cc new file mode 100644 index 0000000..da6c3b5 --- /dev/null +++ b/www/chromium/patches/patch-gpu_command_buffer_service_shared_image_backing_factory_angle_vulkan_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: gpu/command_buffer/service/shared_image_backing_factory_angle_vulkan.cc | ||
| 2 | --- gpu/command_buffer/service/shared_image_backing_factory_angle_vulkan.cc.orig | ||
| 3 | +++ gpu/command_buffer/service/shared_image_backing_factory_angle_vulkan.cc | ||
| 4 | @@ -574,7 +574,7 @@ bool SharedImageBackingFactoryAngleVulkan::CanUseAngle | ||
| 5 | // TODO(penghuang): verify the scanout is the right usage for video playback. | ||
| 6 | // crbug.com/1280798 | ||
| 7 | constexpr auto kSupportedUsages = | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | SHARED_IMAGE_USAGE_SCANOUT | | ||
| 11 | #endif | ||
| 12 | SHARED_IMAGE_USAGE_GLES2 | SHARED_IMAGE_USAGE_GLES2_FRAMEBUFFER_HINT | | ||
diff --git a/www/chromium/patches/patch-gpu_command_buffer_service_shared_image_factory_cc b/www/chromium/patches/patch-gpu_command_buffer_service_shared_image_factory_cc new file mode 100644 index 0000000..7212379 --- /dev/null +++ b/www/chromium/patches/patch-gpu_command_buffer_service_shared_image_factory_cc | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | Index: gpu/command_buffer/service/shared_image_factory.cc | ||
| 2 | --- gpu/command_buffer/service/shared_image_factory.cc.orig | ||
| 3 | +++ gpu/command_buffer/service/shared_image_factory.cc | ||
| 4 | @@ -38,12 +38,12 @@ | ||
| 5 | #include "gpu/command_buffer/service/shared_image_backing_factory_angle_vulkan.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) && defined(USE_OZONE) && BUILDFLAG(ENABLE_VULKAN) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(USE_OZONE) && BUILDFLAG(ENABLE_VULKAN) | ||
| 10 | #include "ui/ozone/public/ozone_platform.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | #if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_WIN)) && \ | ||
| 14 | - BUILDFLAG(ENABLE_VULKAN) | ||
| 15 | + BUILDFLAG(ENABLE_VULKAN) || BUILDFLAG(IS_BSD) | ||
| 16 | #include "gpu/command_buffer/service/external_vk_image_factory.h" | ||
| 17 | #elif BUILDFLAG(IS_ANDROID) && BUILDFLAG(ENABLE_VULKAN) | ||
| 18 | #include "gpu/command_buffer/service/external_vk_image_factory.h" | ||
| 19 | @@ -78,7 +78,7 @@ | ||
| 20 | |||
| 21 | namespace gpu { | ||
| 22 | |||
| 23 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_ASH) && \ | ||
| 24 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && !BUILDFLAG(IS_CHROMEOS_ASH) && \ | ||
| 25 | !BUILDFLAG(IS_CHROMEOS_LACROS) && !BUILDFLAG(IS_CHROMECAST) && \ | ||
| 26 | BUILDFLAG(ENABLE_VULKAN) | ||
| 27 | |||
| 28 | @@ -240,7 +240,7 @@ SharedImageFactory::SharedImageFactory( | ||
| 29 | factories_.push_back(std::move(external_vk_image_factory)); | ||
| 30 | } | ||
| 31 | #elif defined(USE_OZONE) | ||
| 32 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_ASH) && \ | ||
| 33 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && !BUILDFLAG(IS_CHROMEOS_ASH) && \ | ||
| 34 | !BUILDFLAG(IS_CHROMEOS_LACROS) && !BUILDFLAG(IS_CHROMECAST) | ||
| 35 | // Desktop Linux, not ChromeOS. | ||
| 36 | if (gr_context_type_ == GrContextType::kVulkan && | ||
diff --git a/www/chromium/patches/patch-gpu_command_buffer_service_webgpu_decoder_impl_cc b/www/chromium/patches/patch-gpu_command_buffer_service_webgpu_decoder_impl_cc new file mode 100644 index 0000000..b3fc932 --- /dev/null +++ b/www/chromium/patches/patch-gpu_command_buffer_service_webgpu_decoder_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: gpu/command_buffer/service/webgpu_decoder_impl.cc | ||
| 2 | --- gpu/command_buffer/service/webgpu_decoder_impl.cc.orig | ||
| 3 | +++ gpu/command_buffer/service/webgpu_decoder_impl.cc | ||
| 4 | @@ -1498,7 +1498,7 @@ error::Error WebGPUDecoderImpl::HandleRequestAdapter( | ||
| 5 | } | ||
| 6 | |||
| 7 | if (gr_context_type_ != GrContextType::kVulkan) { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | SendAdapterProperties(request_adapter_serial, -1, nullptr, | ||
| 11 | "WebGPU on Linux requires command-line flag " | ||
| 12 | "--enable-features=Vulkan,UseSkiaRenderer"); | ||
diff --git a/www/chromium/patches/patch-gpu_command_buffer_tests_gl_gpu_memory_buffer_unittest_cc b/www/chromium/patches/patch-gpu_command_buffer_tests_gl_gpu_memory_buffer_unittest_cc new file mode 100644 index 0000000..3cabba1 --- /dev/null +++ b/www/chromium/patches/patch-gpu_command_buffer_tests_gl_gpu_memory_buffer_unittest_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc | ||
| 2 | --- gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc.orig | ||
| 3 | +++ gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc | ||
| 4 | @@ -29,7 +29,7 @@ | ||
| 5 | #include "ui/gl/gl_image.h" | ||
| 6 | #include "ui/gl/test/gl_image_test_support.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "gpu/ipc/common/gpu_memory_buffer_impl_native_pixmap.h" | ||
| 11 | #include "ui/gfx/linux/client_native_pixmap_factory_dmabuf.h" | ||
| 12 | #endif | ||
| 13 | @@ -72,7 +72,7 @@ class GpuMemoryBufferTest : public testing::TestWithPa | ||
| 14 | GLManager gl_; | ||
| 15 | }; | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | class GpuMemoryBufferTestEGL : public testing::Test, | ||
| 20 | public gpu::GpuCommandBufferTestEGL { | ||
| 21 | public: | ||
| 22 | @@ -364,7 +364,7 @@ TEST_P(GpuMemoryBufferTest, Lifecycle) { | ||
| 23 | glDeleteTextures(1, &texture_id); | ||
| 24 | } | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | // Test glCreateImageCHROMIUM with gfx::NATIVE_PIXMAP. Basically the test | ||
| 29 | // reproduces the situation where some dmabuf fds are available outside the | ||
| 30 | // gpu process and the user wants to import them using glCreateImageCHROMIUM. | ||
diff --git a/www/chromium/patches/patch-gpu_command_buffer_tests_gl_oes_egl_image_unittest_cc b/www/chromium/patches/patch-gpu_command_buffer_tests_gl_oes_egl_image_unittest_cc new file mode 100644 index 0000000..bbfd78f --- /dev/null +++ b/www/chromium/patches/patch-gpu_command_buffer_tests_gl_oes_egl_image_unittest_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: gpu/command_buffer/tests/gl_oes_egl_image_unittest.cc | ||
| 2 | --- gpu/command_buffer/tests/gl_oes_egl_image_unittest.cc.orig | ||
| 3 | +++ gpu/command_buffer/tests/gl_oes_egl_image_unittest.cc | ||
| 4 | @@ -14,7 +14,7 @@ | ||
| 5 | #include "ui/gl/gl_image.h" | ||
| 6 | #include "ui/gl/init/gl_factory.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/gl/gl_image_native_pixmap.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -43,7 +43,7 @@ class GpuOESEGLImageTest : public testing::Test, | ||
| 14 | bool egl_initialized_{false}; | ||
| 15 | }; | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // TODO(crbug.com/835072): re-enable this test on ASAN once bugs are fixed. | ||
| 20 | #if !defined(ADDRESS_SANITIZER) | ||
| 21 | |||
diff --git a/www/chromium/patches/patch-gpu_command_buffer_tests_gl_test_utils_cc b/www/chromium/patches/patch-gpu_command_buffer_tests_gl_test_utils_cc new file mode 100644 index 0000000..2b9aa40 --- /dev/null +++ b/www/chromium/patches/patch-gpu_command_buffer_tests_gl_test_utils_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: gpu/command_buffer/tests/gl_test_utils.cc | ||
| 2 | --- gpu/command_buffer/tests/gl_test_utils.cc.orig | ||
| 3 | +++ gpu/command_buffer/tests/gl_test_utils.cc | ||
| 4 | @@ -24,7 +24,7 @@ | ||
| 5 | #include "ui/gl/gl_version_info.h" | ||
| 6 | #include "ui/gl/init/gl_factory.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/gl/gl_image_native_pixmap.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -453,7 +453,7 @@ void GpuCommandBufferTestEGL::RestoreGLDefault() { | ||
| 14 | window_system_binding_info_ = gl::GLWindowSystemBindingInfo(); | ||
| 15 | } | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | scoped_refptr<gl::GLImageNativePixmap> | ||
| 20 | GpuCommandBufferTestEGL::CreateGLImageNativePixmap(gfx::BufferFormat format, | ||
| 21 | gfx::Size size, | ||
diff --git a/www/chromium/patches/patch-gpu_command_buffer_tests_gl_test_utils_h b/www/chromium/patches/patch-gpu_command_buffer_tests_gl_test_utils_h new file mode 100644 index 0000000..4973d97 --- /dev/null +++ b/www/chromium/patches/patch-gpu_command_buffer_tests_gl_test_utils_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: gpu/command_buffer/tests/gl_test_utils.h | ||
| 2 | --- gpu/command_buffer/tests/gl_test_utils.h.orig | ||
| 3 | +++ gpu/command_buffer/tests/gl_test_utils.h | ||
| 4 | @@ -120,7 +120,7 @@ class GpuCommandBufferTestEGL { | ||
| 5 | return gfx::HasExtension(gl_extensions_, extension); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Create GLImageNativePixmap filled in with the given pixels. | ||
| 11 | scoped_refptr<gl::GLImageNativePixmap> CreateGLImageNativePixmap( | ||
| 12 | gfx::BufferFormat format, | ||
diff --git a/www/chromium/patches/patch-gpu_config_gpu_control_list_cc b/www/chromium/patches/patch-gpu_config_gpu_control_list_cc new file mode 100644 index 0000000..0179848 --- /dev/null +++ b/www/chromium/patches/patch-gpu_config_gpu_control_list_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: gpu/config/gpu_control_list.cc | ||
| 2 | --- gpu/config/gpu_control_list.cc.orig | ||
| 3 | +++ gpu/config/gpu_control_list.cc | ||
| 4 | @@ -276,7 +276,7 @@ bool GpuControlList::More::GLVersionInfoMismatch( | ||
| 5 | GpuControlList::GLType GpuControlList::More::GetDefaultGLType() { | ||
| 6 | #if BUILDFLAG(IS_CHROMEOS) | ||
| 7 | return kGLTypeGL; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | return kGLTypeGL; | ||
| 11 | #elif BUILDFLAG(IS_MAC) | ||
| 12 | return kGLTypeGL; | ||
| 13 | @@ -781,7 +781,7 @@ GpuControlList::OsType GpuControlList::GetOsType() { | ||
| 14 | return kOsAndroid; | ||
| 15 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 16 | return kOsFuchsia; | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_OPENBSD) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | return kOsLinux; | ||
| 20 | #elif BUILDFLAG(IS_MAC) | ||
| 21 | return kOsMacosx; | ||
diff --git a/www/chromium/patches/patch-gpu_config_gpu_test_config_cc b/www/chromium/patches/patch-gpu_config_gpu_test_config_cc new file mode 100644 index 0000000..9607ef9 --- /dev/null +++ b/www/chromium/patches/patch-gpu_config_gpu_test_config_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: gpu/config/gpu_test_config.cc | ||
| 2 | --- gpu/config/gpu_test_config.cc.orig | ||
| 3 | +++ gpu/config/gpu_test_config.cc | ||
| 4 | @@ -29,7 +29,7 @@ GPUTestConfig::OS GetCurrentOS() { | ||
| 5 | #if BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 6 | return GPUTestConfig::kOsChromeOS; | ||
| 7 | #elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \ | ||
| 8 | - BUILDFLAG(IS_OPENBSD) | ||
| 9 | + BUILDFLAG(IS_BSD) | ||
| 10 | return GPUTestConfig::kOsLinux; | ||
| 11 | #elif BUILDFLAG(IS_WIN) | ||
| 12 | int32_t major_version = 0; | ||
diff --git a/www/chromium/patches/patch-gpu_ipc_common_gpu_memory_buffer_support_cc b/www/chromium/patches/patch-gpu_ipc_common_gpu_memory_buffer_support_cc new file mode 100644 index 0000000..3506bb1 --- /dev/null +++ b/www/chromium/patches/patch-gpu_ipc_common_gpu_memory_buffer_support_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: gpu/ipc/common/gpu_memory_buffer_support.cc | ||
| 2 | --- gpu/ipc/common/gpu_memory_buffer_support.cc.orig | ||
| 3 | +++ gpu/ipc/common/gpu_memory_buffer_support.cc | ||
| 4 | @@ -21,7 +21,7 @@ | ||
| 5 | #include "ui/ozone/public/ozone_platform.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if defined(USE_OZONE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if defined(USE_OZONE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "gpu/ipc/common/gpu_memory_buffer_impl_native_pixmap.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -50,7 +50,7 @@ GpuMemoryBufferSupport::GetNativeGpuMemoryBufferType() | ||
| 14 | return gfx::IO_SURFACE_BUFFER; | ||
| 15 | #elif BUILDFLAG(IS_ANDROID) | ||
| 16 | return gfx::ANDROID_HARDWARE_BUFFER; | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) || BUILDFLAG(IS_BSD) | ||
| 19 | return gfx::NATIVE_PIXMAP; | ||
| 20 | #elif BUILDFLAG(IS_WIN) | ||
| 21 | return gfx::DXGI_SHARED_HANDLE; | ||
diff --git a/www/chromium/patches/patch-gpu_ipc_common_gpu_memory_buffer_support_h b/www/chromium/patches/patch-gpu_ipc_common_gpu_memory_buffer_support_h new file mode 100644 index 0000000..ddfe5fa --- /dev/null +++ b/www/chromium/patches/patch-gpu_ipc_common_gpu_memory_buffer_support_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: gpu/ipc/common/gpu_memory_buffer_support.h | ||
| 2 | --- gpu/ipc/common/gpu_memory_buffer_support.h.orig | ||
| 3 | +++ gpu/ipc/common/gpu_memory_buffer_support.h | ||
| 4 | @@ -17,7 +17,7 @@ | ||
| 5 | #include "ui/gfx/geometry/size.h" | ||
| 6 | #include "ui/gfx/gpu_memory_buffer.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) || BUILDFLAG(IS_BSD) | ||
| 10 | namespace gfx { | ||
| 11 | class ClientNativePixmapFactory; | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-gpu_ipc_service_gpu_init_cc b/www/chromium/patches/patch-gpu_ipc_service_gpu_init_cc new file mode 100644 index 0000000..fbf4eef --- /dev/null +++ b/www/chromium/patches/patch-gpu_ipc_service_gpu_init_cc | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | Index: gpu/ipc/service/gpu_init.cc | ||
| 2 | --- gpu/ipc/service/gpu_init.cc.orig | ||
| 3 | +++ gpu/ipc/service/gpu_init.cc | ||
| 4 | @@ -278,7 +278,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL | ||
| 5 | enable_watchdog = false; | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | bool gpu_sandbox_start_early = gpu_preferences_.gpu_sandbox_start_early; | ||
| 11 | #else // !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 12 | // For some reasons MacOSX's VideoToolbox might crash when called after | ||
| 13 | @@ -328,7 +328,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL | ||
| 14 | } | ||
| 15 | |||
| 16 | bool attempted_startsandbox = false; | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // On Chrome OS ARM Mali, GPU driver userspace creates threads when | ||
| 20 | // initializing a GL context, so start the sandbox early. | ||
| 21 | // TODO(zmo): Need to collect OS version before this. | ||
| 22 | @@ -377,7 +377,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL | ||
| 23 | |||
| 24 | if (gl_initialized && gl_use_swiftshader_ && | ||
| 25 | !gl::IsSoftwareGLImplementation(gl::GetGLImplementationParts())) { | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | VLOG(1) << "Quit GPU process launch to fallback to SwiftShader cleanly " | ||
| 29 | << "on Linux"; | ||
| 30 | return false; | ||
| 31 | @@ -410,7 +410,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL | ||
| 32 | } | ||
| 33 | } | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | // The ContentSandboxHelper is currently the only one implementation of | ||
| 38 | // GpuSandboxHelper and it has no dependency. Except on Linux where | ||
| 39 | // VaapiWrapper checks the GL implementation to determine which display | ||
| 40 | @@ -469,7 +469,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL | ||
| 41 | command_line, gpu_feature_info_, | ||
| 42 | gpu_preferences_.disable_software_rasterizer, false); | ||
| 43 | if (gl_use_swiftshader_) { | ||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | VLOG(1) << "Quit GPU process launch to fallback to SwiftShader cleanly " | ||
| 47 | << "on Linux"; | ||
| 48 | return false; | ||
| 49 | @@ -591,7 +591,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL | ||
| 50 | |||
| 51 | InitializePlatformOverlaySettings(&gpu_info_, gpu_feature_info_); | ||
| 52 | |||
| 53 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 54 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 55 | // Driver may create a compatibility profile context when collect graphics | ||
| 56 | // information on Linux platform. Try to collect graphics information | ||
| 57 | // based on core profile context after disabling platform extensions. | ||
| 58 | @@ -822,7 +822,7 @@ void GpuInit::InitializeInProcess(base::CommandLine* c | ||
| 59 | |||
| 60 | InitializePlatformOverlaySettings(&gpu_info_, gpu_feature_info_); | ||
| 61 | |||
| 62 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 63 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 64 | // Driver may create a compatibility profile context when collect graphics | ||
| 65 | // information on Linux platform. Try to collect graphics information | ||
| 66 | // based on core profile context after disabling platform extensions. | ||
diff --git a/www/chromium/patches/patch-gpu_ipc_service_gpu_memory_buffer_factory_cc b/www/chromium/patches/patch-gpu_ipc_service_gpu_memory_buffer_factory_cc new file mode 100644 index 0000000..1b3cae4 --- /dev/null +++ b/www/chromium/patches/patch-gpu_ipc_service_gpu_memory_buffer_factory_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: gpu/ipc/service/gpu_memory_buffer_factory.cc | ||
| 2 | --- gpu/ipc/service/gpu_memory_buffer_factory.cc.orig | ||
| 3 | +++ gpu/ipc/service/gpu_memory_buffer_factory.cc | ||
| 4 | @@ -12,7 +12,7 @@ | ||
| 5 | #include "gpu/ipc/service/gpu_memory_buffer_factory_io_surface.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "gpu/ipc/service/gpu_memory_buffer_factory_native_pixmap.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -34,7 +34,7 @@ GpuMemoryBufferFactory::CreateNativeType( | ||
| 14 | return std::make_unique<GpuMemoryBufferFactoryIOSurface>(); | ||
| 15 | #elif BUILDFLAG(IS_ANDROID) | ||
| 16 | return std::make_unique<GpuMemoryBufferFactoryAndroidHardwareBuffer>(); | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | return std::make_unique<GpuMemoryBufferFactoryNativePixmap>( | ||
| 20 | vulkan_context_provider); | ||
| 21 | #elif BUILDFLAG(IS_WIN) | ||
diff --git a/www/chromium/patches/patch-gpu_ipc_service_x_util_h b/www/chromium/patches/patch-gpu_ipc_service_x_util_h new file mode 100644 index 0000000..604e285 --- /dev/null +++ b/www/chromium/patches/patch-gpu_ipc_service_x_util_h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: gpu/ipc/service/x_util.h | ||
| 2 | --- gpu/ipc/service/x_util.h.orig | ||
| 3 | +++ gpu/ipc/service/x_util.h | ||
| 4 | @@ -11,11 +11,11 @@ | ||
| 5 | #include "build/build_config.h" | ||
| 6 | #include "gpu/ipc/service/gpu_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/ozone/buildflags.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | -#if BUILDFLAG(IS_LINUX) | ||
| 14 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 15 | #if BUILDFLAG(OZONE_PLATFORM_X11) | ||
| 16 | |||
| 17 | namespace gpu { | ||
diff --git a/www/chromium/patches/patch-gpu_vulkan_generate_bindings_py b/www/chromium/patches/patch-gpu_vulkan_generate_bindings_py new file mode 100644 index 0000000..4994fa5 --- /dev/null +++ b/www/chromium/patches/patch-gpu_vulkan_generate_bindings_py | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: gpu/vulkan/generate_bindings.py | ||
| 2 | --- gpu/vulkan/generate_bindings.py.orig | ||
| 3 | +++ gpu/vulkan/generate_bindings.py | ||
| 4 | @@ -185,7 +185,7 @@ VULKAN_DEVICE_FUNCTIONS = [ | ||
| 5 | }, | ||
| 6 | { | ||
| 7 | 'ifdef': | ||
| 8 | - 'BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)', | ||
| 9 | + 'BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)', | ||
| 10 | 'extension': 'VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME', | ||
| 11 | 'functions': [ | ||
| 12 | 'vkGetSemaphoreFdKHR', | ||
| 13 | @@ -202,7 +202,7 @@ VULKAN_DEVICE_FUNCTIONS = [ | ||
| 14 | }, | ||
| 15 | { | ||
| 16 | 'ifdef': | ||
| 17 | - 'BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)', | ||
| 18 | + 'BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)', | ||
| 19 | 'extension': 'VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME', | ||
| 20 | 'functions': [ | ||
| 21 | 'vkGetMemoryFdKHR', | ||
| 22 | @@ -253,7 +253,7 @@ VULKAN_DEVICE_FUNCTIONS = [ | ||
| 23 | ] | ||
| 24 | }, | ||
| 25 | { | ||
| 26 | - 'ifdef': 'BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)', | ||
| 27 | + 'ifdef': 'BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)', | ||
| 28 | 'extension': 'VK_EXT_IMAGE_DRM_FORMAT_MODIFIER_EXTENSION_NAME', | ||
| 29 | 'functions': [ | ||
| 30 | 'vkGetImageDrmFormatModifierPropertiesEXT', | ||
diff --git a/www/chromium/patches/patch-gpu_vulkan_vulkan_device_queue_cc b/www/chromium/patches/patch-gpu_vulkan_vulkan_device_queue_cc new file mode 100644 index 0000000..59ba241 --- /dev/null +++ b/www/chromium/patches/patch-gpu_vulkan_vulkan_device_queue_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: gpu/vulkan/vulkan_device_queue.cc | ||
| 2 | --- gpu/vulkan/vulkan_device_queue.cc.orig | ||
| 3 | +++ gpu/vulkan/vulkan_device_queue.cc | ||
| 4 | @@ -85,7 +85,7 @@ bool VulkanDeviceQueue::Initialize( | ||
| 5 | |||
| 6 | // In dual-CPU cases, we cannot detect the active GPU correctly on Linux, | ||
| 7 | // so don't select GPU device based on the |gpu_info|. | ||
| 8 | -#if !BUILDFLAG(IS_LINUX) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD) | ||
| 10 | // If gpu_info is provided, the device should match it. | ||
| 11 | if (gpu_info && (device_properties.vendorID != gpu_info->gpu.vendor_id || | ||
| 12 | device_properties.deviceID != gpu_info->gpu.device_id)) { | ||
| 13 | @@ -229,7 +229,7 @@ bool VulkanDeviceQueue::Initialize( | ||
| 14 | enabled_device_features_2_ = {VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2}; | ||
| 15 | |||
| 16 | // Android, Fuchsia, and Linux(VaapiVideoDecoder) need YCbCr sampler support. | ||
| 17 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | if (!physical_device_info.feature_sampler_ycbcr_conversion) { | ||
| 20 | LOG(ERROR) << "samplerYcbcrConversion is not supported."; | ||
| 21 | return false; | ||
diff --git a/www/chromium/patches/patch-gpu_vulkan_vulkan_device_queue_h b/www/chromium/patches/patch-gpu_vulkan_vulkan_device_queue_h new file mode 100644 index 0000000..3413957 --- /dev/null +++ b/www/chromium/patches/patch-gpu_vulkan_vulkan_device_queue_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: gpu/vulkan/vulkan_device_queue.h | ||
| 2 | --- gpu/vulkan/vulkan_device_queue.h.orig | ||
| 3 | +++ gpu/vulkan/vulkan_device_queue.h | ||
| 4 | @@ -155,7 +155,7 @@ class COMPONENT_EXPORT(VULKAN) VulkanDeviceQueue { | ||
| 5 | |||
| 6 | bool allow_protected_memory_ = false; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | VkPhysicalDeviceSamplerYcbcrConversionFeatures | ||
| 11 | sampler_ycbcr_conversion_features_{ | ||
| 12 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES}; | ||
diff --git a/www/chromium/patches/patch-gpu_vulkan_vulkan_function_pointers_cc b/www/chromium/patches/patch-gpu_vulkan_vulkan_function_pointers_cc new file mode 100644 index 0000000..234e2ec --- /dev/null +++ b/www/chromium/patches/patch-gpu_vulkan_vulkan_function_pointers_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: gpu/vulkan/vulkan_function_pointers.cc | ||
| 2 | --- gpu/vulkan/vulkan_function_pointers.cc.orig | ||
| 3 | +++ gpu/vulkan/vulkan_function_pointers.cc | ||
| 4 | @@ -926,7 +926,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer | ||
| 5 | } | ||
| 6 | #endif // BUILDFLAG(IS_ANDROID) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | if (gfx::HasExtension(enabled_extensions, | ||
| 11 | VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME)) { | ||
| 12 | vkGetSemaphoreFdKHR = reinterpret_cast<PFN_vkGetSemaphoreFdKHR>( | ||
| 13 | @@ -971,7 +971,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer | ||
| 14 | } | ||
| 15 | #endif // BUILDFLAG(IS_WIN) | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 19 | if (gfx::HasExtension(enabled_extensions, | ||
| 20 | VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME)) { | ||
| 21 | vkGetMemoryFdKHR = reinterpret_cast<PFN_vkGetMemoryFdKHR>( | ||
| 22 | @@ -1141,7 +1141,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer | ||
| 23 | } | ||
| 24 | } | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | if (gfx::HasExtension(enabled_extensions, | ||
| 29 | VK_EXT_IMAGE_DRM_FORMAT_MODIFIER_EXTENSION_NAME)) { | ||
| 30 | vkGetImageDrmFormatModifierPropertiesEXT = | ||
diff --git a/www/chromium/patches/patch-gpu_vulkan_vulkan_function_pointers_h b/www/chromium/patches/patch-gpu_vulkan_vulkan_function_pointers_h new file mode 100644 index 0000000..881885c --- /dev/null +++ b/www/chromium/patches/patch-gpu_vulkan_vulkan_function_pointers_h | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | Index: gpu/vulkan/vulkan_function_pointers.h | ||
| 2 | --- gpu/vulkan/vulkan_function_pointers.h.orig | ||
| 3 | +++ gpu/vulkan/vulkan_function_pointers.h | ||
| 4 | @@ -250,7 +250,7 @@ struct COMPONENT_EXPORT(VULKAN) VulkanFunctionPointers | ||
| 5 | vkGetAndroidHardwareBufferPropertiesANDROID; | ||
| 6 | #endif // BUILDFLAG(IS_ANDROID) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | VulkanFunction<PFN_vkGetSemaphoreFdKHR> vkGetSemaphoreFdKHR; | ||
| 11 | VulkanFunction<PFN_vkImportSemaphoreFdKHR> vkImportSemaphoreFdKHR; | ||
| 12 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || | ||
| 13 | @@ -262,7 +262,7 @@ struct COMPONENT_EXPORT(VULKAN) VulkanFunctionPointers | ||
| 14 | vkImportSemaphoreWin32HandleKHR; | ||
| 15 | #endif // BUILDFLAG(IS_WIN) | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 19 | VulkanFunction<PFN_vkGetMemoryFdKHR> vkGetMemoryFdKHR; | ||
| 20 | VulkanFunction<PFN_vkGetMemoryFdPropertiesKHR> vkGetMemoryFdPropertiesKHR; | ||
| 21 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || | ||
| 22 | @@ -303,7 +303,7 @@ struct COMPONENT_EXPORT(VULKAN) VulkanFunctionPointers | ||
| 23 | VulkanFunction<PFN_vkGetSwapchainImagesKHR> vkGetSwapchainImagesKHR; | ||
| 24 | VulkanFunction<PFN_vkQueuePresentKHR> vkQueuePresentKHR; | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | VulkanFunction<PFN_vkGetImageDrmFormatModifierPropertiesEXT> | ||
| 29 | vkGetImageDrmFormatModifierPropertiesEXT; | ||
| 30 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 31 | @@ -1033,7 +1033,7 @@ ALWAYS_INLINE VkResult vkGetAndroidHardwareBufferPrope | ||
| 32 | } | ||
| 33 | #endif // BUILDFLAG(IS_ANDROID) | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 37 | ALWAYS_INLINE VkResult | ||
| 38 | vkGetSemaphoreFdKHR(VkDevice device, | ||
| 39 | const VkSemaphoreGetFdInfoKHR* pGetFdInfo, | ||
| 40 | @@ -1067,7 +1067,7 @@ vkImportSemaphoreWin32HandleKHR(VkDevice device, | ||
| 41 | } | ||
| 42 | #endif // BUILDFLAG(IS_WIN) | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 46 | ALWAYS_INLINE VkResult vkGetMemoryFdKHR(VkDevice device, | ||
| 47 | const VkMemoryGetFdInfoKHR* pGetFdInfo, | ||
| 48 | int* pFd) { | ||
| 49 | @@ -1203,7 +1203,7 @@ ALWAYS_INLINE VkResult vkQueuePresentKHR(VkQueue queue | ||
| 50 | pPresentInfo); | ||
| 51 | } | ||
| 52 | |||
| 53 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 54 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 55 | ALWAYS_INLINE VkResult vkGetImageDrmFormatModifierPropertiesEXT( | ||
| 56 | VkDevice device, | ||
| 57 | VkImage image, | ||
| 58 | @@ -1213,4 +1213,4 @@ ALWAYS_INLINE VkResult vkGetImageDrmFormatModifierProp | ||
| 59 | } | ||
| 60 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 61 | |||
| 62 | -#endif // GPU_VULKAN_VULKAN_FUNCTION_POINTERS_H_ | ||
| 63 | \ No newline at end of file | ||
| 64 | +#endif // GPU_VULKAN_VULKAN_FUNCTION_POINTERS_H_ | ||
diff --git a/www/chromium/patches/patch-gpu_vulkan_vulkan_image_cc b/www/chromium/patches/patch-gpu_vulkan_vulkan_image_cc new file mode 100644 index 0000000..7b62492 --- /dev/null +++ b/www/chromium/patches/patch-gpu_vulkan_vulkan_image_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: gpu/vulkan/vulkan_image.cc | ||
| 2 | --- gpu/vulkan/vulkan_image.cc.orig | ||
| 3 | +++ gpu/vulkan/vulkan_image.cc | ||
| 4 | @@ -322,7 +322,7 @@ bool VulkanImage::InitializeWithExternalMemory( | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 7 | // complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | VkPhysicalDeviceImageDrmFormatModifierInfoEXT modifier_info = { | ||
| 11 | .sType = | ||
| 12 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT, | ||
diff --git a/www/chromium/patches/patch-gpu_vulkan_vulkan_image_h b/www/chromium/patches/patch-gpu_vulkan_vulkan_image_h new file mode 100644 index 0000000..6d97642 --- /dev/null +++ b/www/chromium/patches/patch-gpu_vulkan_vulkan_image_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: gpu/vulkan/vulkan_image.h | ||
| 2 | --- gpu/vulkan/vulkan_image.h.orig | ||
| 3 | +++ gpu/vulkan/vulkan_image.h | ||
| 4 | @@ -86,7 +86,7 @@ class COMPONENT_EXPORT(VULKAN) VulkanImage { | ||
| 5 | VkImageUsageFlags usage, | ||
| 6 | VkImageCreateFlags flags); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | static std::unique_ptr<VulkanImage> CreateWithExternalMemoryAndModifiers( | ||
| 11 | VulkanDeviceQueue* device_queue, | ||
| 12 | const gfx::Size& size, | ||
| 13 | @@ -170,7 +170,7 @@ class COMPONENT_EXPORT(VULKAN) VulkanImage { | ||
| 14 | VkImageTiling image_tiling, | ||
| 15 | uint32_t queue_family_index); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | bool InitializeWithExternalMemoryAndModifiers(VulkanDeviceQueue* device_queue, | ||
| 20 | const gfx::Size& size, | ||
| 21 | VkFormat format, | ||
diff --git a/www/chromium/patches/patch-headless_lib_browser_headless_browser_main_parts_h b/www/chromium/patches/patch-headless_lib_browser_headless_browser_main_parts_h new file mode 100644 index 0000000..4ba0f73 --- /dev/null +++ b/www/chromium/patches/patch-headless_lib_browser_headless_browser_main_parts_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: headless/lib/browser/headless_browser_main_parts.h | ||
| 2 | --- headless/lib/browser/headless_browser_main_parts.h.orig | ||
| 3 | +++ headless/lib/browser/headless_browser_main_parts.h | ||
| 4 | @@ -50,7 +50,7 @@ class HEADLESS_EXPORT HeadlessBrowserMainParts | ||
| 5 | #if BUILDFLAG(IS_MAC) | ||
| 6 | void PreCreateMainMessageLoop() override; | ||
| 7 | #endif | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | void PostCreateMainMessageLoop() override; | ||
| 11 | #endif | ||
| 12 | void QuitMainMessageLoop(); | ||
diff --git a/www/chromium/patches/patch-headless_lib_browser_headless_browser_main_parts_linux_cc b/www/chromium/patches/patch-headless_lib_browser_headless_browser_main_parts_linux_cc new file mode 100644 index 0000000..a43c57d --- /dev/null +++ b/www/chromium/patches/patch-headless_lib_browser_headless_browser_main_parts_linux_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: headless/lib/browser/headless_browser_main_parts_linux.cc | ||
| 2 | --- headless/lib/browser/headless_browser_main_parts_linux.cc.orig | ||
| 3 | +++ headless/lib/browser/headless_browser_main_parts_linux.cc | ||
| 4 | @@ -24,7 +24,7 @@ constexpr char kProductName[] = "HeadlessChrome"; | ||
| 5 | #endif | ||
| 6 | |||
| 7 | void HeadlessBrowserMainParts::PostCreateMainMessageLoop() { | ||
| 8 | -#if defined(USE_DBUS) && !BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 9 | +#if defined(USE_DBUS) && !BUILDFLAG(IS_CHROMEOS_ASH) && !defined(OS_BSD) | ||
| 10 | bluez::BluezDBusManager::Initialize(/*system_bus=*/nullptr); | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-headless_lib_browser_headless_content_browser_client_h b/www/chromium/patches/patch-headless_lib_browser_headless_content_browser_client_h new file mode 100644 index 0000000..e65e358 --- /dev/null +++ b/www/chromium/patches/patch-headless_lib_browser_headless_content_browser_client_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: headless/lib/browser/headless_content_browser_client.h | ||
| 2 | --- headless/lib/browser/headless_content_browser_client.h.orig | ||
| 3 | +++ headless/lib/browser/headless_content_browser_client.h | ||
| 4 | @@ -47,7 +47,7 @@ class HeadlessContentBrowserClient : public content::C | ||
| 5 | override; | ||
| 6 | content::GeneratedCodeCacheSettings GetGeneratedCodeCacheSettings( | ||
| 7 | content::BrowserContext* context) override; | ||
| 8 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 10 | void GetAdditionalMappedFilesForChildProcess( | ||
| 11 | const base::CommandLine& command_line, | ||
| 12 | int child_process_id, | ||
diff --git a/www/chromium/patches/patch-headless_lib_browser_headless_request_context_manager_cc b/www/chromium/patches/patch-headless_lib_browser_headless_request_context_manager_cc new file mode 100644 index 0000000..97269d0 --- /dev/null +++ b/www/chromium/patches/patch-headless_lib_browser_headless_request_context_manager_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: headless/lib/browser/headless_request_context_manager.cc | ||
| 2 | --- headless/lib/browser/headless_request_context_manager.cc.orig | ||
| 3 | +++ headless/lib/browser/headless_request_context_manager.cc | ||
| 4 | @@ -65,7 +65,7 @@ void SetCryptKeyOnce(const base::FilePath& user_data_p | ||
| 5 | return; | ||
| 6 | done_once = true; | ||
| 7 | |||
| 8 | -#if (BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)) && defined(HEADLESS_USE_PREFS) | ||
| 9 | +#if (BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(HEADLESS_USE_PREFS) | ||
| 10 | // The OSCrypt keys are process bound, so if network service is out of | ||
| 11 | // process, send it the required key if it is available. | ||
| 12 | if (content::IsOutOfProcessNetworkService() | ||
diff --git a/www/chromium/patches/patch-headless_lib_browser_headless_web_contents_impl_cc b/www/chromium/patches/patch-headless_lib_browser_headless_web_contents_impl_cc new file mode 100644 index 0000000..e83734a --- /dev/null +++ b/www/chromium/patches/patch-headless_lib_browser_headless_web_contents_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: headless/lib/browser/headless_web_contents_impl.cc | ||
| 2 | --- headless/lib/browser/headless_web_contents_impl.cc.orig | ||
| 3 | +++ headless/lib/browser/headless_web_contents_impl.cc | ||
| 4 | @@ -56,7 +56,7 @@ namespace headless { | ||
| 5 | namespace { | ||
| 6 | |||
| 7 | void UpdatePrefsFromSystemSettings(blink::RendererPreferences* prefs) { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_WIN) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 10 | content::UpdateFontRendererPreferencesFromSystemSettings(prefs); | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-headless_lib_headless_content_main_delegate_cc b/www/chromium/patches/patch-headless_lib_headless_content_main_delegate_cc new file mode 100644 index 0000000..a8fd606 --- /dev/null +++ b/www/chromium/patches/patch-headless_lib_headless_content_main_delegate_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: headless/lib/headless_content_main_delegate.cc | ||
| 2 | --- headless/lib/headless_content_main_delegate.cc.orig | ||
| 3 | +++ headless/lib/headless_content_main_delegate.cc | ||
| 4 | @@ -336,7 +336,7 @@ void HeadlessContentMainDelegate::InitCrashReporter( | ||
| 5 | if (process_type != switches::kZygoteProcess) { | ||
| 6 | g_headless_crash_client.Pointer()->set_crash_dumps_dir( | ||
| 7 | options()->crash_dumps_dir); | ||
| 8 | -#if !BUILDFLAG(IS_WIN) | ||
| 9 | +#if !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_BSD) | ||
| 10 | crash_reporter::InitializeCrashpad(process_type.empty(), process_type); | ||
| 11 | #endif // !BUILDFLAG(IS_WIN) | ||
| 12 | crash_keys::SetSwitchesFromCommandLine(command_line, nullptr); | ||
diff --git a/www/chromium/patches/patch-headless_public_headless_browser_cc b/www/chromium/patches/patch-headless_public_headless_browser_cc new file mode 100644 index 0000000..aee52a6 --- /dev/null +++ b/www/chromium/patches/patch-headless_public_headless_browser_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: headless/public/headless_browser.cc | ||
| 2 | --- headless/public/headless_browser.cc.orig | ||
| 3 | +++ headless/public/headless_browser.cc | ||
| 4 | @@ -42,7 +42,7 @@ Options::Options(int argc, const char** argv) | ||
| 5 | user_agent(content::BuildUserAgentFromProduct(product_name_and_version)), | ||
| 6 | window_size(kDefaultWindowSize), | ||
| 7 | font_render_hinting(kDefaultFontRenderHinting) { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 10 | gl_implementation = gl::kGLImplementationANGLEName; | ||
| 11 | angle_implementation = gl::kANGLEImplementationSwiftShaderForWebGLName; | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-ipc_ipc_channel_common_cc b/www/chromium/patches/patch-ipc_ipc_channel_common_cc new file mode 100644 index 0000000..9d66d3a --- /dev/null +++ b/www/chromium/patches/patch-ipc_ipc_channel_common_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ipc/ipc_channel_common.cc | ||
| 2 | --- ipc/ipc_channel_common.cc.orig | ||
| 3 | +++ ipc/ipc_channel_common.cc | ||
| 4 | @@ -10,7 +10,7 @@ | ||
| 5 | |||
| 6 | namespace IPC { | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | namespace { | ||
| 12 | int g_global_pid = 0; | ||
diff --git a/www/chromium/patches/patch-ipc_ipc_channel_h b/www/chromium/patches/patch-ipc_ipc_channel_h new file mode 100644 index 0000000..b2cb1c5 --- /dev/null +++ b/www/chromium/patches/patch-ipc_ipc_channel_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ipc/ipc_channel.h | ||
| 2 | --- ipc/ipc_channel.h.orig | ||
| 3 | +++ ipc/ipc_channel.h | ||
| 4 | @@ -235,7 +235,7 @@ class COMPONENT_EXPORT(IPC) Channel : public Sender { | ||
| 5 | static std::string GenerateUniqueRandomChannelID(); | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Sandboxed processes live in a PID namespace, so when sending the IPC hello | ||
| 11 | // message from client to server we need to send the PID from the global | ||
| 12 | // PID namespace. | ||
diff --git a/www/chromium/patches/patch-ipc_ipc_channel_mojo_cc b/www/chromium/patches/patch-ipc_ipc_channel_mojo_cc new file mode 100644 index 0000000..1d128cb --- /dev/null +++ b/www/chromium/patches/patch-ipc_ipc_channel_mojo_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ipc/ipc_channel_mojo.cc | ||
| 2 | --- ipc/ipc_channel_mojo.cc.orig | ||
| 3 | +++ ipc/ipc_channel_mojo.cc | ||
| 4 | @@ -112,7 +112,7 @@ class ThreadSafeChannelProxy : public mojo::ThreadSafe | ||
| 5 | }; | ||
| 6 | |||
| 7 | base::ProcessId GetSelfPID() { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | if (int global_pid = Channel::GetGlobalPid()) | ||
| 11 | return global_pid; | ||
| 12 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
diff --git a/www/chromium/patches/patch-ipc_ipc_message_utils_cc b/www/chromium/patches/patch-ipc_ipc_message_utils_cc new file mode 100644 index 0000000..92fb84c --- /dev/null +++ b/www/chromium/patches/patch-ipc_ipc_message_utils_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ipc/ipc_message_utils.cc | ||
| 2 | --- ipc/ipc_message_utils.cc.orig | ||
| 3 | +++ ipc/ipc_message_utils.cc | ||
| 4 | @@ -350,7 +350,7 @@ void ParamTraits<unsigned int>::Log(const param_type& | ||
| 5 | } | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) || \ | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) || \ | ||
| 10 | (BUILDFLAG(IS_ANDROID) && defined(ARCH_CPU_64_BITS)) | ||
| 11 | void ParamTraits<long>::Log(const param_type& p, std::string* l) { | ||
| 12 | l->append(base::NumberToString(p)); | ||
diff --git a/www/chromium/patches/patch-ipc_ipc_message_utils_h b/www/chromium/patches/patch-ipc_ipc_message_utils_h new file mode 100644 index 0000000..b252360 --- /dev/null +++ b/www/chromium/patches/patch-ipc_ipc_message_utils_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ipc/ipc_message_utils.h | ||
| 2 | --- ipc/ipc_message_utils.h.orig | ||
| 3 | +++ ipc/ipc_message_utils.h | ||
| 4 | @@ -214,7 +214,7 @@ struct ParamTraits<unsigned int> { | ||
| 5 | // Since we want to support Android 32<>64 bit IPC, as long as we don't have | ||
| 6 | // these traits for 32 bit ARM then that'll catch any errors. | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) || \ | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) || \ | ||
| 10 | (BUILDFLAG(IS_ANDROID) && defined(ARCH_CPU_64_BITS)) | ||
| 11 | template <> | ||
| 12 | struct ParamTraits<long> { | ||
diff --git a/www/chromium/patches/patch-media_BUILD_gn b/www/chromium/patches/patch-media_BUILD_gn new file mode 100644 index 0000000..959c29d --- /dev/null +++ b/www/chromium/patches/patch-media_BUILD_gn | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: media/BUILD.gn | ||
| 2 | --- media/BUILD.gn.orig | ||
| 3 | +++ media/BUILD.gn | ||
| 4 | @@ -76,6 +76,9 @@ config("media_config") { | ||
| 5 | defines += [ "DLOPEN_PULSEAUDIO" ] | ||
| 6 | } | ||
| 7 | } | ||
| 8 | + if (use_sndio) { | ||
| 9 | + defines += [ "USE_SNDIO" ] | ||
| 10 | + } | ||
| 11 | if (use_cras) { | ||
| 12 | defines += [ "USE_CRAS" ] | ||
| 13 | } | ||
diff --git a/www/chromium/patches/patch-media_audio_BUILD_gn b/www/chromium/patches/patch-media_audio_BUILD_gn new file mode 100644 index 0000000..8df0555 --- /dev/null +++ b/www/chromium/patches/patch-media_audio_BUILD_gn | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | Index: media/audio/BUILD.gn | ||
| 2 | --- media/audio/BUILD.gn.orig | ||
| 3 | +++ media/audio/BUILD.gn | ||
| 4 | @@ -245,9 +245,20 @@ source_set("audio") { | ||
| 5 | ] | ||
| 6 | } | ||
| 7 | |||
| 8 | - if (is_linux || is_chromeos) { | ||
| 9 | + if ((is_linux || is_chromeos) && !use_sndio) { | ||
| 10 | sources += [ "linux/audio_manager_linux.cc" ] | ||
| 11 | } | ||
| 12 | + | ||
| 13 | + if (use_sndio) { | ||
| 14 | + libs += [ "sndio" ] | ||
| 15 | + sources += [ | ||
| 16 | + "sndio/audio_manager_sndio.cc", | ||
| 17 | + "sndio/sndio_input.cc", | ||
| 18 | + "sndio/sndio_input.h", | ||
| 19 | + "sndio/sndio_output.cc", | ||
| 20 | + "sndio/sndio_output.h" | ||
| 21 | + ] | ||
| 22 | + } | ||
| 23 | |||
| 24 | if (use_alsa) { | ||
| 25 | libs += [ "asound" ] | ||
diff --git a/www/chromium/patches/patch-media_audio_alsa_audio_manager_alsa_cc b/www/chromium/patches/patch-media_audio_alsa_audio_manager_alsa_cc new file mode 100644 index 0000000..b978f5e --- /dev/null +++ b/www/chromium/patches/patch-media_audio_alsa_audio_manager_alsa_cc | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | Index: media/audio/alsa/audio_manager_alsa.cc | ||
| 2 | --- media/audio/alsa/audio_manager_alsa.cc.orig | ||
| 3 | +++ media/audio/alsa/audio_manager_alsa.cc | ||
| 4 | @@ -89,7 +89,9 @@ void AudioManagerAlsa::GetAlsaAudioDevices(StreamType | ||
| 5 | int card = -1; | ||
| 6 | |||
| 7 | // Loop through the sound cards to get ALSA device hints. | ||
| 8 | +#if !BUILDFLAG(IS_BSD) | ||
| 9 | while (!wrapper_->CardNext(&card) && card >= 0) { | ||
| 10 | +#endif | ||
| 11 | void** hints = NULL; | ||
| 12 | int error = wrapper_->DeviceNameHint(card, kPcmInterfaceName, &hints); | ||
| 13 | if (!error) { | ||
| 14 | @@ -101,7 +103,9 @@ void AudioManagerAlsa::GetAlsaAudioDevices(StreamType | ||
| 15 | DLOG(WARNING) << "GetAlsaAudioDevices: unable to get device hints: " | ||
| 16 | << wrapper_->StrError(error); | ||
| 17 | } | ||
| 18 | +#if !BUILDFLAG(IS_BSD) | ||
| 19 | } | ||
| 20 | +#endif | ||
| 21 | } | ||
| 22 | |||
| 23 | void AudioManagerAlsa::GetAlsaDevicesInfo(AudioManagerAlsa::StreamType type, | ||
| 24 | @@ -184,7 +188,11 @@ bool AudioManagerAlsa::IsAlsaDeviceAvailable( | ||
| 25 | // goes through software conversion if needed (e.g. incompatible | ||
| 26 | // sample rate). | ||
| 27 | // TODO(joi): Should we prefer "hw" instead? | ||
| 28 | +#if BUILDFLAG(IS_BSD) | ||
| 29 | + static const char kDeviceTypeDesired[] = "plug"; | ||
| 30 | +#else | ||
| 31 | static const char kDeviceTypeDesired[] = "plughw"; | ||
| 32 | +#endif | ||
| 33 | return strncmp(kDeviceTypeDesired, device_name, | ||
| 34 | base::size(kDeviceTypeDesired) - 1) == 0; | ||
| 35 | } | ||
| 36 | @@ -206,7 +214,9 @@ bool AudioManagerAlsa::HasAnyAlsaAudioDevice( | ||
| 37 | // Loop through the sound cards. | ||
| 38 | // Don't use snd_device_name_hint(-1,..) since there is an access violation | ||
| 39 | // inside this ALSA API with libasound.so.2.0.0. | ||
| 40 | +#if !BUILDFLAG(IS_BSD) | ||
| 41 | while (!wrapper_->CardNext(&card) && (card >= 0) && !has_device) { | ||
| 42 | +#endif | ||
| 43 | int error = wrapper_->DeviceNameHint(card, kPcmInterfaceName, &hints); | ||
| 44 | if (!error) { | ||
| 45 | for (void** hint_iter = hints; *hint_iter != NULL; hint_iter++) { | ||
| 46 | @@ -230,7 +240,9 @@ bool AudioManagerAlsa::HasAnyAlsaAudioDevice( | ||
| 47 | DLOG(WARNING) << "HasAnyAudioDevice: unable to get device hints: " | ||
| 48 | << wrapper_->StrError(error); | ||
| 49 | } | ||
| 50 | +#if !BUILDFLAG(IS_BSD) | ||
| 51 | } | ||
| 52 | +#endif | ||
| 53 | |||
| 54 | return has_device; | ||
| 55 | } | ||
diff --git a/www/chromium/patches/patch-media_audio_audio_features_cc b/www/chromium/patches/patch-media_audio_audio_features_cc new file mode 100644 index 0000000..92f808f --- /dev/null +++ b/www/chromium/patches/patch-media_audio_audio_features_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/audio/audio_features.cc | ||
| 2 | --- media/audio/audio_features.cc.orig | ||
| 3 | +++ media/audio/audio_features.cc | ||
| 4 | @@ -19,7 +19,7 @@ const base::Feature kPlatformAudioEncoder{"PlatformAud | ||
| 5 | const base::Feature kAudioServiceOutOfProcessKillAtHang{ | ||
| 6 | "AudioServiceOutOfProcessKillAtHang", | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 11 | #else | ||
| 12 | base::FEATURE_DISABLED_BY_DEFAULT | ||
diff --git a/www/chromium/patches/patch-media_audio_audio_input_device_cc b/www/chromium/patches/patch-media_audio_audio_input_device_cc new file mode 100644 index 0000000..63774ed --- /dev/null +++ b/www/chromium/patches/patch-media_audio_audio_input_device_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/audio/audio_input_device.cc | ||
| 2 | --- media/audio/audio_input_device.cc.orig | ||
| 3 | +++ media/audio/audio_input_device.cc | ||
| 4 | @@ -259,7 +259,7 @@ void AudioInputDevice::OnStreamCreated( | ||
| 5 | // here. See comments in AliveChecker and PowerObserverHelper for details and | ||
| 6 | // todos. | ||
| 7 | if (detect_dead_stream_ == DeadStreamDetection::kEnabled) { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | const bool stop_at_first_alive_notification = true; | ||
| 11 | const bool pause_check_during_suspend = false; | ||
| 12 | #else | ||
diff --git a/www/chromium/patches/patch-media_audio_audio_output_proxy_unittest_cc b/www/chromium/patches/patch-media_audio_audio_output_proxy_unittest_cc new file mode 100644 index 0000000..e687937 --- /dev/null +++ b/www/chromium/patches/patch-media_audio_audio_output_proxy_unittest_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: media/audio/audio_output_proxy_unittest.cc | ||
| 2 | --- media/audio/audio_output_proxy_unittest.cc.orig | ||
| 3 | +++ media/audio/audio_output_proxy_unittest.cc | ||
| 4 | @@ -412,7 +412,11 @@ class AudioOutputProxyTest : public testing::Test { | ||
| 5 | // |stream| is closed at this point. Start() should reopen it again. | ||
| 6 | EXPECT_CALL(manager(), MakeAudioOutputStream(_, _, _)) | ||
| 7 | .Times(2) | ||
| 8 | +#if BUILDFLAG(IS_BSD) | ||
| 9 | + .WillRepeatedly(Return(static_cast<AudioOutputStream*>(NULL))); | ||
| 10 | +#else | ||
| 11 | .WillRepeatedly(Return(reinterpret_cast<AudioOutputStream*>(NULL))); | ||
| 12 | +#endif | ||
| 13 | |||
| 14 | EXPECT_CALL(callback_, OnError(_)).Times(2); | ||
| 15 | |||
diff --git a/www/chromium/patches/patch-media_audio_sndio_audio_manager_sndio_cc b/www/chromium/patches/patch-media_audio_sndio_audio_manager_sndio_cc new file mode 100644 index 0000000..32b299e --- /dev/null +++ b/www/chromium/patches/patch-media_audio_sndio_audio_manager_sndio_cc | |||
| @@ -0,0 +1,185 @@ | |||
| 1 | Index: media/audio/sndio/audio_manager_sndio.cc | ||
| 2 | --- media/audio/sndio/audio_manager_sndio.cc.orig | ||
| 3 | +++ media/audio/sndio/audio_manager_sndio.cc | ||
| 4 | @@ -0,0 +1,181 @@ | ||
| 5 | +// Copyright (c) 2012 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#include "base/command_line.h" | ||
| 10 | +#include "base/metrics/histogram_macros.h" | ||
| 11 | +#include "base/memory/ptr_util.h" | ||
| 12 | + | ||
| 13 | +#include "media/audio/sndio/audio_manager_sndio.h" | ||
| 14 | + | ||
| 15 | +#include "media/audio/audio_device_description.h" | ||
| 16 | +#include "media/audio/audio_output_dispatcher.h" | ||
| 17 | +#if defined(USE_SNDIO) | ||
| 18 | +#include "media/audio/sndio/sndio_input.h" | ||
| 19 | +#include "media/audio/sndio/sndio_output.h" | ||
| 20 | +#endif | ||
| 21 | +#include "media/audio/fake_audio_manager.h" | ||
| 22 | +#include "media/base/limits.h" | ||
| 23 | +#include "media/base/media_switches.h" | ||
| 24 | + | ||
| 25 | +namespace media { | ||
| 26 | + | ||
| 27 | +enum SndioAudioIO { | ||
| 28 | + kPulse, | ||
| 29 | + kSndio, | ||
| 30 | + kAudioIOMax = kSndio | ||
| 31 | +}; | ||
| 32 | + | ||
| 33 | +#if defined(USE_SNDIO) | ||
| 34 | +// Maximum number of output streams that can be open simultaneously. | ||
| 35 | +static const int kMaxOutputStreams = 50; | ||
| 36 | + | ||
| 37 | +// Default sample rate for input and output streams. | ||
| 38 | +static const int kDefaultSampleRate = 48000; | ||
| 39 | + | ||
| 40 | +void AddDefaultDevice(AudioDeviceNames* device_names) { | ||
| 41 | + DCHECK(device_names->empty()); | ||
| 42 | + device_names->push_front(AudioDeviceName::CreateDefault()); | ||
| 43 | +} | ||
| 44 | + | ||
| 45 | +bool AudioManagerSndio::HasAudioOutputDevices() { | ||
| 46 | + return true; | ||
| 47 | +} | ||
| 48 | + | ||
| 49 | +bool AudioManagerSndio::HasAudioInputDevices() { | ||
| 50 | + return true; | ||
| 51 | +} | ||
| 52 | + | ||
| 53 | +void AudioManagerSndio::GetAudioInputDeviceNames( | ||
| 54 | + AudioDeviceNames* device_names) { | ||
| 55 | + DCHECK(device_names->empty()); | ||
| 56 | + AddDefaultDevice(device_names); | ||
| 57 | +} | ||
| 58 | + | ||
| 59 | +void AudioManagerSndio::GetAudioOutputDeviceNames( | ||
| 60 | + AudioDeviceNames* device_names) { | ||
| 61 | + AddDefaultDevice(device_names); | ||
| 62 | +} | ||
| 63 | + | ||
| 64 | +#if defined(USE_SNDIO) | ||
| 65 | +const char* AudioManagerSndio::GetName() { | ||
| 66 | + return "SNDIO"; | ||
| 67 | +} | ||
| 68 | +#endif | ||
| 69 | + | ||
| 70 | +AudioParameters AudioManagerSndio::GetInputStreamParameters( | ||
| 71 | + const std::string& device_id) { | ||
| 72 | + static const int kDefaultInputBufferSize = 1024; | ||
| 73 | + | ||
| 74 | + int user_buffer_size = GetUserBufferSize(); | ||
| 75 | + int buffer_size = user_buffer_size ? | ||
| 76 | + user_buffer_size : kDefaultInputBufferSize; | ||
| 77 | + | ||
| 78 | + return AudioParameters( | ||
| 79 | + AudioParameters::AUDIO_PCM_LOW_LATENCY, CHANNEL_LAYOUT_STEREO, | ||
| 80 | + kDefaultSampleRate, buffer_size); | ||
| 81 | +} | ||
| 82 | + | ||
| 83 | +AudioManagerSndio::AudioManagerSndio(std::unique_ptr<AudioThread> audio_thread, | ||
| 84 | + AudioLogFactory* audio_log_factory) | ||
| 85 | + : AudioManagerBase(std::move(audio_thread), | ||
| 86 | + audio_log_factory) { | ||
| 87 | + DLOG(WARNING) << "AudioManagerSndio"; | ||
| 88 | + SetMaxOutputStreamsAllowed(kMaxOutputStreams); | ||
| 89 | +} | ||
| 90 | + | ||
| 91 | +AudioManagerSndio::~AudioManagerSndio() = default; | ||
| 92 | + | ||
| 93 | +AudioOutputStream* AudioManagerSndio::MakeLinearOutputStream( | ||
| 94 | + const AudioParameters& params, | ||
| 95 | + const LogCallback& log_callback) { | ||
| 96 | + DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format()); | ||
| 97 | + return MakeOutputStream(params); | ||
| 98 | +} | ||
| 99 | + | ||
| 100 | +AudioOutputStream* AudioManagerSndio::MakeLowLatencyOutputStream( | ||
| 101 | + const AudioParameters& params, | ||
| 102 | + const std::string& device_id, | ||
| 103 | + const LogCallback& log_callback) { | ||
| 104 | + DLOG_IF(ERROR, !device_id.empty()) << "Not implemented!"; | ||
| 105 | + DCHECK_EQ(AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format()); | ||
| 106 | + return MakeOutputStream(params); | ||
| 107 | +} | ||
| 108 | + | ||
| 109 | +AudioInputStream* AudioManagerSndio::MakeLinearInputStream( | ||
| 110 | + const AudioParameters& params, | ||
| 111 | + const std::string& device_id, | ||
| 112 | + const LogCallback& log_callback) { | ||
| 113 | + DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format()); | ||
| 114 | + return MakeInputStream(params); | ||
| 115 | +} | ||
| 116 | + | ||
| 117 | +AudioInputStream* AudioManagerSndio::MakeLowLatencyInputStream( | ||
| 118 | + const AudioParameters& params, | ||
| 119 | + const std::string& device_id, | ||
| 120 | + const LogCallback& log_callback) { | ||
| 121 | + DCHECK_EQ(AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format()); | ||
| 122 | + return MakeInputStream(params); | ||
| 123 | +} | ||
| 124 | + | ||
| 125 | +AudioParameters AudioManagerSndio::GetPreferredOutputStreamParameters( | ||
| 126 | + const std::string& output_device_id, | ||
| 127 | + const AudioParameters& input_params) { | ||
| 128 | + // TODO(tommi): Support |output_device_id|. | ||
| 129 | + DLOG_IF(ERROR, !output_device_id.empty()) << "Not implemented!"; | ||
| 130 | + static const int kDefaultOutputBufferSize = 2048; | ||
| 131 | + | ||
| 132 | + ChannelLayout channel_layout = CHANNEL_LAYOUT_STEREO; | ||
| 133 | + int sample_rate = kDefaultSampleRate; | ||
| 134 | + int buffer_size = kDefaultOutputBufferSize; | ||
| 135 | + if (input_params.IsValid()) { | ||
| 136 | + sample_rate = input_params.sample_rate(); | ||
| 137 | + channel_layout = input_params.channel_layout(); | ||
| 138 | + buffer_size = std::min(buffer_size, input_params.frames_per_buffer()); | ||
| 139 | + } | ||
| 140 | + | ||
| 141 | + int user_buffer_size = GetUserBufferSize(); | ||
| 142 | + if (user_buffer_size) | ||
| 143 | + buffer_size = user_buffer_size; | ||
| 144 | + | ||
| 145 | + return AudioParameters( | ||
| 146 | + AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout, | ||
| 147 | + sample_rate, buffer_size); | ||
| 148 | +} | ||
| 149 | + | ||
| 150 | +AudioInputStream* AudioManagerSndio::MakeInputStream( | ||
| 151 | + const AudioParameters& params) { | ||
| 152 | + DLOG(WARNING) << "MakeInputStream"; | ||
| 153 | + return new SndioAudioInputStream(this, | ||
| 154 | + AudioDeviceDescription::kDefaultDeviceId, params); | ||
| 155 | +} | ||
| 156 | + | ||
| 157 | +AudioOutputStream* AudioManagerSndio::MakeOutputStream( | ||
| 158 | + const AudioParameters& params) { | ||
| 159 | + DLOG(WARNING) << "MakeOutputStream"; | ||
| 160 | + return new SndioAudioOutputStream(params, this); | ||
| 161 | +} | ||
| 162 | +#endif | ||
| 163 | + | ||
| 164 | +std::unique_ptr<media::AudioManager> CreateAudioManager( | ||
| 165 | + std::unique_ptr<AudioThread> audio_thread, | ||
| 166 | + AudioLogFactory* audio_log_factory) { | ||
| 167 | + DLOG(WARNING) << "CreateAudioManager"; | ||
| 168 | + // For testing allow audio output to be disabled. | ||
| 169 | + if (base::CommandLine::ForCurrentProcess()->HasSwitch( | ||
| 170 | + switches::kDisableAudioOutput)) { | ||
| 171 | + return std::make_unique<FakeAudioManager>(std::move(audio_thread), | ||
| 172 | + audio_log_factory); | ||
| 173 | + } | ||
| 174 | +#if defined(USE_SNDIO) | ||
| 175 | + UMA_HISTOGRAM_ENUMERATION("Media.SndioAudioIO", kSndio, kAudioIOMax + 1); | ||
| 176 | + return std::make_unique<AudioManagerSndio>(std::move(audio_thread), | ||
| 177 | + audio_log_factory); | ||
| 178 | +#else | ||
| 179 | + return std::make_unique<FakeAudioManager>(std::move(audio_thread), | ||
| 180 | + audio_log_factory); | ||
| 181 | +#endif | ||
| 182 | + | ||
| 183 | +} | ||
| 184 | + | ||
| 185 | +} // namespace media | ||
diff --git a/www/chromium/patches/patch-media_audio_sndio_audio_manager_sndio_h b/www/chromium/patches/patch-media_audio_sndio_audio_manager_sndio_h new file mode 100644 index 0000000..9e727d0 --- /dev/null +++ b/www/chromium/patches/patch-media_audio_sndio_audio_manager_sndio_h | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | Index: media/audio/sndio/audio_manager_sndio.h | ||
| 2 | --- media/audio/sndio/audio_manager_sndio.h.orig | ||
| 3 | +++ media/audio/sndio/audio_manager_sndio.h | ||
| 4 | @@ -0,0 +1,66 @@ | ||
| 5 | +// Copyright (c) 2012 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#ifndef MEDIA_AUDIO_SNDIO_AUDIO_MANAGER_SNDIO_H_ | ||
| 10 | +#define MEDIA_AUDIO_SNDIO_AUDIO_MANAGER_SNDIO_H_ | ||
| 11 | + | ||
| 12 | +#include <set> | ||
| 13 | + | ||
| 14 | +#include "base/compiler_specific.h" | ||
| 15 | +#include "base/memory/ref_counted.h" | ||
| 16 | +#include "base/threading/thread.h" | ||
| 17 | +#include "media/audio/audio_manager_base.h" | ||
| 18 | + | ||
| 19 | +namespace media { | ||
| 20 | + | ||
| 21 | +class MEDIA_EXPORT AudioManagerSndio : public AudioManagerBase { | ||
| 22 | + public: | ||
| 23 | + AudioManagerSndio(std::unique_ptr<AudioThread> audio_thread, | ||
| 24 | + AudioLogFactory* audio_log_factory); | ||
| 25 | + | ||
| 26 | + AudioManagerSndio(const AudioManagerSndio&) = delete; | ||
| 27 | + AudioManagerSndio& operator=(const AudioManagerSndio&) = delete; | ||
| 28 | + | ||
| 29 | + ~AudioManagerSndio() override; | ||
| 30 | + | ||
| 31 | + // Implementation of AudioManager. | ||
| 32 | + bool HasAudioOutputDevices() override; | ||
| 33 | + bool HasAudioInputDevices() override; | ||
| 34 | + void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | ||
| 35 | + void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | ||
| 36 | + AudioParameters GetInputStreamParameters( | ||
| 37 | + const std::string& device_id) override; | ||
| 38 | + const char* GetName() override; | ||
| 39 | + | ||
| 40 | + // Implementation of AudioManagerBase. | ||
| 41 | + AudioOutputStream* MakeLinearOutputStream( | ||
| 42 | + const AudioParameters& params, | ||
| 43 | + const LogCallback& log_callback) override; | ||
| 44 | + AudioOutputStream* MakeLowLatencyOutputStream( | ||
| 45 | + const AudioParameters& params, | ||
| 46 | + const std::string& device_id, | ||
| 47 | + const LogCallback& log_callback) override; | ||
| 48 | + AudioInputStream* MakeLinearInputStream( | ||
| 49 | + const AudioParameters& params, | ||
| 50 | + const std::string& device_id, | ||
| 51 | + const LogCallback& log_callback) override; | ||
| 52 | + AudioInputStream* MakeLowLatencyInputStream( | ||
| 53 | + const AudioParameters& params, | ||
| 54 | + const std::string& device_id, | ||
| 55 | + const LogCallback& log_callback) override; | ||
| 56 | + | ||
| 57 | + protected: | ||
| 58 | + AudioParameters GetPreferredOutputStreamParameters( | ||
| 59 | + const std::string& output_device_id, | ||
| 60 | + const AudioParameters& input_params) override; | ||
| 61 | + | ||
| 62 | + private: | ||
| 63 | + // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. | ||
| 64 | + AudioOutputStream* MakeOutputStream(const AudioParameters& params); | ||
| 65 | + AudioInputStream* MakeInputStream(const AudioParameters& params); | ||
| 66 | +}; | ||
| 67 | + | ||
| 68 | +} // namespace media | ||
| 69 | + | ||
| 70 | +#endif // MEDIA_AUDIO_SNDIO_AUDIO_MANAGER_SNDIO_H_ | ||
diff --git a/www/chromium/patches/patch-media_audio_sndio_sndio_input_cc b/www/chromium/patches/patch-media_audio_sndio_sndio_input_cc new file mode 100644 index 0000000..8ebe095 --- /dev/null +++ b/www/chromium/patches/patch-media_audio_sndio_sndio_input_cc | |||
| @@ -0,0 +1,205 @@ | |||
| 1 | Index: media/audio/sndio/sndio_input.cc | ||
| 2 | --- media/audio/sndio/sndio_input.cc.orig | ||
| 3 | +++ media/audio/sndio/sndio_input.cc | ||
| 4 | @@ -0,0 +1,201 @@ | ||
| 5 | +// Copyright 2013 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#include "base/bind.h" | ||
| 10 | +#include "base/logging.h" | ||
| 11 | +#include "media/base/audio_timestamp_helper.h" | ||
| 12 | +#include "media/audio/sndio/audio_manager_sndio.h" | ||
| 13 | +#include "media/audio/audio_manager.h" | ||
| 14 | +#include "media/audio/sndio/sndio_input.h" | ||
| 15 | + | ||
| 16 | +namespace media { | ||
| 17 | + | ||
| 18 | +static const SampleFormat kSampleFormat = kSampleFormatS16; | ||
| 19 | + | ||
| 20 | +void SndioAudioInputStream::OnMoveCallback(void *arg, int delta) | ||
| 21 | +{ | ||
| 22 | + SndioAudioInputStream* self = static_cast<SndioAudioInputStream*>(arg); | ||
| 23 | + | ||
| 24 | + self->hw_delay += delta; | ||
| 25 | +} | ||
| 26 | + | ||
| 27 | +void *SndioAudioInputStream::ThreadEntry(void *arg) { | ||
| 28 | + SndioAudioInputStream* self = static_cast<SndioAudioInputStream*>(arg); | ||
| 29 | + | ||
| 30 | + self->ThreadLoop(); | ||
| 31 | + return NULL; | ||
| 32 | +} | ||
| 33 | + | ||
| 34 | +SndioAudioInputStream::SndioAudioInputStream(AudioManagerBase* manager, | ||
| 35 | + const std::string& device_name, | ||
| 36 | + const AudioParameters& params) | ||
| 37 | + : manager(manager), | ||
| 38 | + params(params), | ||
| 39 | + audio_bus(AudioBus::Create(params)), | ||
| 40 | + state(kClosed) { | ||
| 41 | +} | ||
| 42 | + | ||
| 43 | +SndioAudioInputStream::~SndioAudioInputStream() { | ||
| 44 | + if (state != kClosed) | ||
| 45 | + Close(); | ||
| 46 | +} | ||
| 47 | + | ||
| 48 | +AudioInputStream::OpenOutcome SndioAudioInputStream::Open() { | ||
| 49 | + struct sio_par par; | ||
| 50 | + int sig; | ||
| 51 | + | ||
| 52 | + if (state != kClosed) | ||
| 53 | + return OpenOutcome::kFailed; | ||
| 54 | + | ||
| 55 | + if (params.format() != AudioParameters::AUDIO_PCM_LINEAR && | ||
| 56 | + params.format() != AudioParameters::AUDIO_PCM_LOW_LATENCY) { | ||
| 57 | + LOG(WARNING) << "Unsupported audio format."; | ||
| 58 | + return OpenOutcome::kFailed; | ||
| 59 | + } | ||
| 60 | + | ||
| 61 | + sio_initpar(&par); | ||
| 62 | + par.rate = params.sample_rate(); | ||
| 63 | + par.rchan = params.channels(); | ||
| 64 | + par.bits = SampleFormatToBitsPerChannel(kSampleFormat); | ||
| 65 | + par.bps = par.bits / 8; | ||
| 66 | + par.sig = sig = par.bits != 8 ? 1 : 0; | ||
| 67 | + par.le = SIO_LE_NATIVE; | ||
| 68 | + par.appbufsz = params.frames_per_buffer(); | ||
| 69 | + | ||
| 70 | + hdl = sio_open(SIO_DEVANY, SIO_REC, 0); | ||
| 71 | + | ||
| 72 | + if (hdl == NULL) { | ||
| 73 | + LOG(ERROR) << "Couldn't open audio device."; | ||
| 74 | + return OpenOutcome::kFailed; | ||
| 75 | + } | ||
| 76 | + | ||
| 77 | + if (!sio_setpar(hdl, &par) || !sio_getpar(hdl, &par)) { | ||
| 78 | + LOG(ERROR) << "Couldn't set audio parameters."; | ||
| 79 | + goto bad_close; | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + if (par.rate != (unsigned int)params.sample_rate() || | ||
| 83 | + par.rchan != (unsigned int)params.channels() || | ||
| 84 | + par.bits != (unsigned int)SampleFormatToBitsPerChannel(kSampleFormat) || | ||
| 85 | + par.sig != (unsigned int)sig || | ||
| 86 | + (par.bps > 1 && par.le != SIO_LE_NATIVE) || | ||
| 87 | + (par.bits != par.bps * 8)) { | ||
| 88 | + LOG(ERROR) << "Unsupported audio parameters."; | ||
| 89 | + goto bad_close; | ||
| 90 | + } | ||
| 91 | + state = kStopped; | ||
| 92 | + buffer = new char[audio_bus->frames() * params.GetBytesPerFrame(kSampleFormat)]; | ||
| 93 | + sio_onmove(hdl, &OnMoveCallback, this); | ||
| 94 | + return OpenOutcome::kSuccess; | ||
| 95 | +bad_close: | ||
| 96 | + sio_close(hdl); | ||
| 97 | + return OpenOutcome::kFailed; | ||
| 98 | +} | ||
| 99 | + | ||
| 100 | +void SndioAudioInputStream::Start(AudioInputCallback* cb) { | ||
| 101 | + | ||
| 102 | + StartAgc(); | ||
| 103 | + | ||
| 104 | + state = kRunning; | ||
| 105 | + hw_delay = 0; | ||
| 106 | + callback = cb; | ||
| 107 | + sio_start(hdl); | ||
| 108 | + if (pthread_create(&thread, NULL, &ThreadEntry, this) != 0) { | ||
| 109 | + LOG(ERROR) << "Failed to create real-time thread for recording."; | ||
| 110 | + sio_stop(hdl); | ||
| 111 | + state = kStopped; | ||
| 112 | + } | ||
| 113 | +} | ||
| 114 | + | ||
| 115 | +void SndioAudioInputStream::Stop() { | ||
| 116 | + | ||
| 117 | + if (state == kStopped) | ||
| 118 | + return; | ||
| 119 | + | ||
| 120 | + state = kStopWait; | ||
| 121 | + pthread_join(thread, NULL); | ||
| 122 | + sio_stop(hdl); | ||
| 123 | + state = kStopped; | ||
| 124 | + | ||
| 125 | + StopAgc(); | ||
| 126 | +} | ||
| 127 | + | ||
| 128 | +void SndioAudioInputStream::Close() { | ||
| 129 | + | ||
| 130 | + if (state == kClosed) | ||
| 131 | + goto release; | ||
| 132 | + | ||
| 133 | + if (state == kRunning) | ||
| 134 | + Stop(); | ||
| 135 | + | ||
| 136 | + state = kClosed; | ||
| 137 | + delete [] buffer; | ||
| 138 | + sio_close(hdl); | ||
| 139 | + | ||
| 140 | +release: | ||
| 141 | + manager->ReleaseInputStream(this); | ||
| 142 | +} | ||
| 143 | + | ||
| 144 | +double SndioAudioInputStream::GetMaxVolume() { | ||
| 145 | + // Not supported | ||
| 146 | + return 0.0; | ||
| 147 | +} | ||
| 148 | + | ||
| 149 | +void SndioAudioInputStream::SetVolume(double volume) { | ||
| 150 | + // Not supported. Do nothing. | ||
| 151 | +} | ||
| 152 | + | ||
| 153 | +double SndioAudioInputStream::GetVolume() { | ||
| 154 | + // Not supported. | ||
| 155 | + return 0.0; | ||
| 156 | +} | ||
| 157 | + | ||
| 158 | +bool SndioAudioInputStream::IsMuted() { | ||
| 159 | + // Not supported. | ||
| 160 | + return false; | ||
| 161 | +} | ||
| 162 | + | ||
| 163 | +void SndioAudioInputStream::SetOutputDeviceForAec( | ||
| 164 | + const std::string& output_device_id) { | ||
| 165 | + // Not supported. | ||
| 166 | +} | ||
| 167 | + | ||
| 168 | +void SndioAudioInputStream::ThreadLoop(void) { | ||
| 169 | + size_t todo, n; | ||
| 170 | + char *data; | ||
| 171 | + unsigned int nframes; | ||
| 172 | + double normalized_volume = 0.0; | ||
| 173 | + | ||
| 174 | + nframes = audio_bus->frames(); | ||
| 175 | + | ||
| 176 | + while (state == kRunning && !sio_eof(hdl)) { | ||
| 177 | + | ||
| 178 | + GetAgcVolume(&normalized_volume); | ||
| 179 | + | ||
| 180 | + // read one block | ||
| 181 | + todo = nframes * params.GetBytesPerFrame(kSampleFormat); | ||
| 182 | + data = buffer; | ||
| 183 | + while (todo > 0) { | ||
| 184 | + n = sio_read(hdl, data, todo); | ||
| 185 | + if (n == 0) | ||
| 186 | + return; // unrecoverable I/O error | ||
| 187 | + todo -= n; | ||
| 188 | + data += n; | ||
| 189 | + } | ||
| 190 | + hw_delay -= nframes; | ||
| 191 | + | ||
| 192 | + // convert frames count to TimeDelta | ||
| 193 | + const base::TimeDelta delay = AudioTimestampHelper::FramesToTime(hw_delay, | ||
| 194 | + params.sample_rate()); | ||
| 195 | + | ||
| 196 | + // push into bus | ||
| 197 | + audio_bus->FromInterleaved<SignedInt16SampleTypeTraits>(reinterpret_cast<int16_t*>(buffer), nframes); | ||
| 198 | + | ||
| 199 | + | ||
| 200 | + // invoke callback | ||
| 201 | + callback->OnData(audio_bus.get(), base::TimeTicks::Now() - delay, 1.); | ||
| 202 | + } | ||
| 203 | +} | ||
| 204 | + | ||
| 205 | +} // namespace media | ||
diff --git a/www/chromium/patches/patch-media_audio_sndio_sndio_input_h b/www/chromium/patches/patch-media_audio_sndio_sndio_input_h new file mode 100644 index 0000000..a06b507 --- /dev/null +++ b/www/chromium/patches/patch-media_audio_sndio_sndio_input_h | |||
| @@ -0,0 +1,95 @@ | |||
| 1 | Index: media/audio/sndio/sndio_input.h | ||
| 2 | --- media/audio/sndio/sndio_input.h.orig | ||
| 3 | +++ media/audio/sndio/sndio_input.h | ||
| 4 | @@ -0,0 +1,91 @@ | ||
| 5 | +// Copyright 2013 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#ifndef MEDIA_AUDIO_SNDIO_SNDIO_INPUT_H_ | ||
| 10 | +#define MEDIA_AUDIO_SNDIO_SNDIO_INPUT_H_ | ||
| 11 | + | ||
| 12 | +#include <stdint.h> | ||
| 13 | +#include <string> | ||
| 14 | +#include <sndio.h> | ||
| 15 | + | ||
| 16 | +#include "base/compiler_specific.h" | ||
| 17 | +#include "base/memory/weak_ptr.h" | ||
| 18 | +#include "base/time/time.h" | ||
| 19 | +#include "media/audio/agc_audio_stream.h" | ||
| 20 | +#include "media/audio/audio_io.h" | ||
| 21 | +#include "media/audio/audio_device_description.h" | ||
| 22 | +#include "media/base/audio_parameters.h" | ||
| 23 | + | ||
| 24 | +namespace media { | ||
| 25 | + | ||
| 26 | +class AudioManagerBase; | ||
| 27 | + | ||
| 28 | +// Implementation of AudioOutputStream using sndio(7) | ||
| 29 | +class SndioAudioInputStream : public AgcAudioStream<AudioInputStream> { | ||
| 30 | + public: | ||
| 31 | + // Pass this to the constructor if you want to attempt auto-selection | ||
| 32 | + // of the audio recording device. | ||
| 33 | + static const char kAutoSelectDevice[]; | ||
| 34 | + | ||
| 35 | + // Create a PCM Output stream for the SNDIO device identified by | ||
| 36 | + // |device_name|. If unsure of what to use for |device_name|, use | ||
| 37 | + // |kAutoSelectDevice|. | ||
| 38 | + SndioAudioInputStream(AudioManagerBase* audio_manager, | ||
| 39 | + const std::string& device_name, | ||
| 40 | + const AudioParameters& params); | ||
| 41 | + | ||
| 42 | + SndioAudioInputStream(const SndioAudioInputStream&) = delete; | ||
| 43 | + SndioAudioInputStream& operator=(const SndioAudioInputStream&) = delete; | ||
| 44 | + | ||
| 45 | + ~SndioAudioInputStream() override; | ||
| 46 | + | ||
| 47 | + // Implementation of AudioInputStream. | ||
| 48 | + OpenOutcome Open() override; | ||
| 49 | + void Start(AudioInputCallback* callback) override; | ||
| 50 | + void Stop() override; | ||
| 51 | + void Close() override; | ||
| 52 | + double GetMaxVolume() override; | ||
| 53 | + void SetVolume(double volume) override; | ||
| 54 | + double GetVolume() override; | ||
| 55 | + bool IsMuted() override; | ||
| 56 | + void SetOutputDeviceForAec(const std::string& output_device_id) override; | ||
| 57 | + | ||
| 58 | + private: | ||
| 59 | + | ||
| 60 | + enum StreamState { | ||
| 61 | + kClosed, // Not opened yet | ||
| 62 | + kStopped, // Device opened, but not started yet | ||
| 63 | + kRunning, // Started, device playing | ||
| 64 | + kStopWait // Stopping, waiting for the real-time thread to exit | ||
| 65 | + }; | ||
| 66 | + | ||
| 67 | + // C-style call-backs | ||
| 68 | + static void OnMoveCallback(void *arg, int delta); | ||
| 69 | + static void* ThreadEntry(void *arg); | ||
| 70 | + | ||
| 71 | + // Continuously moves data from the device to the consumer | ||
| 72 | + void ThreadLoop(); | ||
| 73 | + // Our creator, the audio manager needs to be notified when we close. | ||
| 74 | + AudioManagerBase* manager; | ||
| 75 | + // Parameters of the source | ||
| 76 | + AudioParameters params; | ||
| 77 | + // We store data here for consumer | ||
| 78 | + std::unique_ptr<AudioBus> audio_bus; | ||
| 79 | + // Call-back that consumes recorded data | ||
| 80 | + AudioInputCallback* callback; // Valid during a recording session. | ||
| 81 | + // Handle of the audio device | ||
| 82 | + struct sio_hdl* hdl; | ||
| 83 | + // Current state of the stream | ||
| 84 | + enum StreamState state; | ||
| 85 | + // High priority thread running ThreadLoop() | ||
| 86 | + pthread_t thread; | ||
| 87 | + // Number of frames buffered in the hardware | ||
| 88 | + int hw_delay; | ||
| 89 | + // Temporary buffer where data is stored sndio-compatible format | ||
| 90 | + char* buffer; | ||
| 91 | +}; | ||
| 92 | + | ||
| 93 | +} // namespace media | ||
| 94 | + | ||
| 95 | +#endif // MEDIA_AUDIO_SNDIO_SNDIO_INPUT_H_ | ||
diff --git a/www/chromium/patches/patch-media_audio_sndio_sndio_output_cc b/www/chromium/patches/patch-media_audio_sndio_sndio_output_cc new file mode 100644 index 0000000..f8b7317 --- /dev/null +++ b/www/chromium/patches/patch-media_audio_sndio_sndio_output_cc | |||
| @@ -0,0 +1,191 @@ | |||
| 1 | Index: media/audio/sndio/sndio_output.cc | ||
| 2 | --- media/audio/sndio/sndio_output.cc.orig | ||
| 3 | +++ media/audio/sndio/sndio_output.cc | ||
| 4 | @@ -0,0 +1,187 @@ | ||
| 5 | +// Copyright (c) 2012 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#include "base/logging.h" | ||
| 10 | +#include "base/time/time.h" | ||
| 11 | +#include "base/time/default_tick_clock.h" | ||
| 12 | +#include "media/audio/audio_manager_base.h" | ||
| 13 | +#include "media/base/audio_timestamp_helper.h" | ||
| 14 | +#include "media/audio/sndio/sndio_output.h" | ||
| 15 | + | ||
| 16 | +namespace media { | ||
| 17 | + | ||
| 18 | +static const SampleFormat kSampleFormat = kSampleFormatS16; | ||
| 19 | + | ||
| 20 | +void SndioAudioOutputStream::OnMoveCallback(void *arg, int delta) { | ||
| 21 | + SndioAudioOutputStream* self = static_cast<SndioAudioOutputStream*>(arg); | ||
| 22 | + | ||
| 23 | + self->hw_delay -= delta; | ||
| 24 | +} | ||
| 25 | + | ||
| 26 | +void SndioAudioOutputStream::OnVolCallback(void *arg, unsigned int vol) { | ||
| 27 | + SndioAudioOutputStream* self = static_cast<SndioAudioOutputStream*>(arg); | ||
| 28 | + | ||
| 29 | + self->vol = vol; | ||
| 30 | +} | ||
| 31 | + | ||
| 32 | +void *SndioAudioOutputStream::ThreadEntry(void *arg) { | ||
| 33 | + SndioAudioOutputStream* self = static_cast<SndioAudioOutputStream*>(arg); | ||
| 34 | + | ||
| 35 | + self->ThreadLoop(); | ||
| 36 | + return NULL; | ||
| 37 | +} | ||
| 38 | + | ||
| 39 | +SndioAudioOutputStream::SndioAudioOutputStream(const AudioParameters& params, | ||
| 40 | + AudioManagerBase* manager) | ||
| 41 | + : manager(manager), | ||
| 42 | + params(params), | ||
| 43 | + audio_bus(AudioBus::Create(params)), | ||
| 44 | + state(kClosed), | ||
| 45 | + mutex(PTHREAD_MUTEX_INITIALIZER) { | ||
| 46 | +} | ||
| 47 | + | ||
| 48 | +SndioAudioOutputStream::~SndioAudioOutputStream() { | ||
| 49 | + if (state != kClosed) | ||
| 50 | + Close(); | ||
| 51 | +} | ||
| 52 | + | ||
| 53 | +bool SndioAudioOutputStream::Open() { | ||
| 54 | + if (params.format() != AudioParameters::AUDIO_PCM_LINEAR && | ||
| 55 | + params.format() != AudioParameters::AUDIO_PCM_LOW_LATENCY) { | ||
| 56 | + LOG(WARNING) << "Unsupported audio format."; | ||
| 57 | + return false; | ||
| 58 | + } | ||
| 59 | + state = kStopped; | ||
| 60 | + volpending = 0; | ||
| 61 | + vol = SIO_MAXVOL; | ||
| 62 | + buffer = new char[audio_bus->frames() * params.GetBytesPerFrame(kSampleFormat)]; | ||
| 63 | + return true; | ||
| 64 | +} | ||
| 65 | + | ||
| 66 | +void SndioAudioOutputStream::Close() { | ||
| 67 | + if (state == kClosed) | ||
| 68 | + goto release; | ||
| 69 | + if (state == kRunning) | ||
| 70 | + Stop(); | ||
| 71 | + state = kClosed; | ||
| 72 | + delete [] buffer; | ||
| 73 | +release: | ||
| 74 | + manager->ReleaseOutputStream(this); // Calls the destructor | ||
| 75 | +} | ||
| 76 | + | ||
| 77 | +void SndioAudioOutputStream::Start(AudioSourceCallback* callback) { | ||
| 78 | + struct sio_par par; | ||
| 79 | + int sig; | ||
| 80 | + | ||
| 81 | + sio_initpar(&par); | ||
| 82 | + par.rate = params.sample_rate(); | ||
| 83 | + par.pchan = params.channels(); | ||
| 84 | + par.bits = SampleFormatToBitsPerChannel(kSampleFormat); | ||
| 85 | + par.bps = par.bits / 8; | ||
| 86 | + par.sig = sig = par.bits != 8 ? 1 : 0; | ||
| 87 | + par.le = SIO_LE_NATIVE; | ||
| 88 | + par.appbufsz = params.frames_per_buffer(); | ||
| 89 | + | ||
| 90 | + hdl = sio_open(SIO_DEVANY, SIO_PLAY, 0); | ||
| 91 | + if (hdl == NULL) { | ||
| 92 | + LOG(ERROR) << "Couldn't open audio device."; | ||
| 93 | + return; | ||
| 94 | + } | ||
| 95 | + if (!sio_setpar(hdl, &par) || !sio_getpar(hdl, &par)) { | ||
| 96 | + LOG(ERROR) << "Couldn't set audio parameters."; | ||
| 97 | + sio_close(hdl); | ||
| 98 | + return; | ||
| 99 | + } | ||
| 100 | + if (par.rate != (unsigned int)params.sample_rate() || | ||
| 101 | + par.pchan != (unsigned int)params.channels() || | ||
| 102 | + par.bits != (unsigned int)SampleFormatToBitsPerChannel(kSampleFormat) || | ||
| 103 | + par.sig != (unsigned int)sig || | ||
| 104 | + (par.bps > 1 && par.le != SIO_LE_NATIVE) || | ||
| 105 | + (par.bits != par.bps * 8)) { | ||
| 106 | + LOG(ERROR) << "Unsupported audio parameters."; | ||
| 107 | + sio_close(hdl); | ||
| 108 | + return; | ||
| 109 | + } | ||
| 110 | + | ||
| 111 | + sio_onmove(hdl, &OnMoveCallback, this); | ||
| 112 | + sio_onvol(hdl, &OnVolCallback, this); | ||
| 113 | + | ||
| 114 | + state = kRunning; | ||
| 115 | + hw_delay = 0; | ||
| 116 | + source = callback; | ||
| 117 | + sio_start(hdl); | ||
| 118 | + | ||
| 119 | + if (pthread_create(&thread, NULL, &ThreadEntry, this) != 0) { | ||
| 120 | + LOG(ERROR) << "Failed to create real-time thread."; | ||
| 121 | + sio_stop(hdl); | ||
| 122 | + sio_close(hdl); | ||
| 123 | + state = kStopped; | ||
| 124 | + } | ||
| 125 | +} | ||
| 126 | + | ||
| 127 | +void SndioAudioOutputStream::Stop() { | ||
| 128 | + if (state == kStopped) | ||
| 129 | + return; | ||
| 130 | + state = kStopWait; | ||
| 131 | + pthread_join(thread, NULL); | ||
| 132 | + sio_stop(hdl); | ||
| 133 | + sio_close(hdl); | ||
| 134 | + state = kStopped; | ||
| 135 | +} | ||
| 136 | + | ||
| 137 | +void SndioAudioOutputStream::SetVolume(double v) { | ||
| 138 | + pthread_mutex_lock(&mutex); | ||
| 139 | + vol = v * SIO_MAXVOL; | ||
| 140 | + volpending = 1; | ||
| 141 | + pthread_mutex_unlock(&mutex); | ||
| 142 | +} | ||
| 143 | + | ||
| 144 | +void SndioAudioOutputStream::GetVolume(double* v) { | ||
| 145 | + pthread_mutex_lock(&mutex); | ||
| 146 | + *v = vol * (1. / SIO_MAXVOL); | ||
| 147 | + pthread_mutex_unlock(&mutex); | ||
| 148 | +} | ||
| 149 | + | ||
| 150 | +// This stream is always used with sub second buffer sizes, where it's | ||
| 151 | +// sufficient to simply always flush upon Start(). | ||
| 152 | +void SndioAudioOutputStream::Flush() {} | ||
| 153 | + | ||
| 154 | +void SndioAudioOutputStream::ThreadLoop(void) { | ||
| 155 | + int avail, count, result; | ||
| 156 | + | ||
| 157 | + while (state == kRunning) { | ||
| 158 | + // Update volume if needed | ||
| 159 | + pthread_mutex_lock(&mutex); | ||
| 160 | + if (volpending) { | ||
| 161 | + volpending = 0; | ||
| 162 | + sio_setvol(hdl, vol); | ||
| 163 | + } | ||
| 164 | + pthread_mutex_unlock(&mutex); | ||
| 165 | + | ||
| 166 | + // Get data to play | ||
| 167 | + const base::TimeDelta delay = AudioTimestampHelper::FramesToTime(hw_delay, | ||
| 168 | + params.sample_rate()); | ||
| 169 | + count = source->OnMoreData(delay, base::TimeTicks::Now(), 0, audio_bus.get()); | ||
| 170 | + audio_bus->ToInterleaved<SignedInt16SampleTypeTraits>(count, reinterpret_cast<int16_t*>(buffer)); | ||
| 171 | + if (count == 0) { | ||
| 172 | + // We have to submit something to the device | ||
| 173 | + count = audio_bus->frames(); | ||
| 174 | + memset(buffer, 0, count * params.GetBytesPerFrame(kSampleFormat)); | ||
| 175 | + LOG(WARNING) << "No data to play, running empty cycle."; | ||
| 176 | + } | ||
| 177 | + | ||
| 178 | + // Submit data to the device | ||
| 179 | + avail = count * params.GetBytesPerFrame(kSampleFormat); | ||
| 180 | + result = sio_write(hdl, buffer, avail); | ||
| 181 | + if (result == 0) { | ||
| 182 | + LOG(WARNING) << "Audio device disconnected."; | ||
| 183 | + break; | ||
| 184 | + } | ||
| 185 | + | ||
| 186 | + // Update hardware pointer | ||
| 187 | + hw_delay += count; | ||
| 188 | + } | ||
| 189 | +} | ||
| 190 | + | ||
| 191 | +} // namespace media | ||
diff --git a/www/chromium/patches/patch-media_audio_sndio_sndio_output_h b/www/chromium/patches/patch-media_audio_sndio_sndio_output_h new file mode 100644 index 0000000..4e155f3 --- /dev/null +++ b/www/chromium/patches/patch-media_audio_sndio_sndio_output_h | |||
| @@ -0,0 +1,92 @@ | |||
| 1 | Index: media/audio/sndio/sndio_output.h | ||
| 2 | --- media/audio/sndio/sndio_output.h.orig | ||
| 3 | +++ media/audio/sndio/sndio_output.h | ||
| 4 | @@ -0,0 +1,88 @@ | ||
| 5 | +// Copyright (c) 2012 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#ifndef MEDIA_AUDIO_SNDIO_SNDIO_OUTPUT_H_ | ||
| 10 | +#define MEDIA_AUDIO_SNDIO_SNDIO_OUTPUT_H_ | ||
| 11 | + | ||
| 12 | +#include <pthread.h> | ||
| 13 | +#include <sndio.h> | ||
| 14 | + | ||
| 15 | +#include "base/time/tick_clock.h" | ||
| 16 | +#include "base/time/time.h" | ||
| 17 | +#include "media/audio/audio_io.h" | ||
| 18 | + | ||
| 19 | +namespace media { | ||
| 20 | + | ||
| 21 | +class AudioManagerBase; | ||
| 22 | + | ||
| 23 | +// Implementation of AudioOutputStream using sndio(7) | ||
| 24 | +class SndioAudioOutputStream : public AudioOutputStream { | ||
| 25 | + public: | ||
| 26 | + // The manager is creating this object | ||
| 27 | + SndioAudioOutputStream(const AudioParameters& params, | ||
| 28 | + AudioManagerBase* manager); | ||
| 29 | + | ||
| 30 | + SndioAudioOutputStream(const SndioAudioOutputStream&) = delete; | ||
| 31 | + SndioAudioOutputStream& operator=(const SndioAudioOutputStream&) = delete; | ||
| 32 | + | ||
| 33 | + virtual ~SndioAudioOutputStream(); | ||
| 34 | + | ||
| 35 | + // Implementation of AudioOutputStream. | ||
| 36 | + bool Open() override; | ||
| 37 | + void Close() override; | ||
| 38 | + void Start(AudioSourceCallback* callback) override; | ||
| 39 | + void Stop() override; | ||
| 40 | + void SetVolume(double volume) override; | ||
| 41 | + void GetVolume(double* volume) override; | ||
| 42 | + void Flush() override; | ||
| 43 | + | ||
| 44 | + friend void sndio_onmove(void *arg, int delta); | ||
| 45 | + friend void sndio_onvol(void *arg, unsigned int vol); | ||
| 46 | + friend void *sndio_threadstart(void *arg); | ||
| 47 | + | ||
| 48 | + private: | ||
| 49 | + enum StreamState { | ||
| 50 | + kClosed, // Not opened yet | ||
| 51 | + kStopped, // Device opened, but not started yet | ||
| 52 | + kRunning, // Started, device playing | ||
| 53 | + kStopWait // Stopping, waiting for the real-time thread to exit | ||
| 54 | + }; | ||
| 55 | + | ||
| 56 | + // C-style call-backs | ||
| 57 | + static void OnMoveCallback(void *arg, int delta); | ||
| 58 | + static void OnVolCallback(void *arg, unsigned int vol); | ||
| 59 | + static void* ThreadEntry(void *arg); | ||
| 60 | + | ||
| 61 | + // Continuously moves data from the producer to the device | ||
| 62 | + void ThreadLoop(void); | ||
| 63 | + | ||
| 64 | + // Our creator, the audio manager needs to be notified when we close. | ||
| 65 | + AudioManagerBase* manager; | ||
| 66 | + // Parameters of the source | ||
| 67 | + AudioParameters params; | ||
| 68 | + // Source stores data here | ||
| 69 | + std::unique_ptr<AudioBus> audio_bus; | ||
| 70 | + // Call-back that produces data to play | ||
| 71 | + AudioSourceCallback* source; | ||
| 72 | + // Handle of the audio device | ||
| 73 | + struct sio_hdl* hdl; | ||
| 74 | + // Current state of the stream | ||
| 75 | + enum StreamState state; | ||
| 76 | + // High priority thread running ThreadLoop() | ||
| 77 | + pthread_t thread; | ||
| 78 | + // Protects vol, volpending and hw_delay | ||
| 79 | + pthread_mutex_t mutex; | ||
| 80 | + // Current volume in the 0..SIO_MAXVOL range | ||
| 81 | + int vol; | ||
| 82 | + // Set to 1 if volumes must be refreshed in the realtime thread | ||
| 83 | + int volpending; | ||
| 84 | + // Number of frames buffered in the hardware | ||
| 85 | + int hw_delay; | ||
| 86 | + // Temporary buffer where data is stored sndio-compatible format | ||
| 87 | + char* buffer; | ||
| 88 | +}; | ||
| 89 | + | ||
| 90 | +} // namespace media | ||
| 91 | + | ||
| 92 | +#endif // MEDIA_AUDIO_SNDIO_SNDIO_OUTPUT_H_ | ||
diff --git a/www/chromium/patches/patch-media_base_audio_latency_cc b/www/chromium/patches/patch-media_base_audio_latency_cc new file mode 100644 index 0000000..6489f8b --- /dev/null +++ b/www/chromium/patches/patch-media_base_audio_latency_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/base/audio_latency.cc | ||
| 2 | --- media/base/audio_latency.cc.orig | ||
| 3 | +++ media/base/audio_latency.cc | ||
| 4 | @@ -135,7 +135,7 @@ int AudioLatency::GetRtcBufferSize(int sample_rate, in | ||
| 5 | } | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | // On Linux, MacOS and Fuchsia, the low level IO implementations on the | ||
| 11 | // browser side supports all buffer size the clients want. We use the native | ||
| 12 | // peer connection buffer size (10ms) to achieve best possible performance. | ||
diff --git a/www/chromium/patches/patch-media_base_media_switches_cc b/www/chromium/patches/patch-media_base_media_switches_cc new file mode 100644 index 0000000..a200181 --- /dev/null +++ b/www/chromium/patches/patch-media_base_media_switches_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: media/base/media_switches.cc | ||
| 2 | --- media/base/media_switches.cc.orig | ||
| 3 | +++ media/base/media_switches.cc | ||
| 4 | @@ -9,7 +9,7 @@ | ||
| 5 | #include "build/chromeos_buildflags.h" | ||
| 6 | #include "components/system_media_controls/linux/buildflags/buildflags.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/cpu.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -402,7 +402,7 @@ const base::Feature kGav1VideoDecoder{"Gav1VideoDecode | ||
| 14 | const base::Feature kGlobalMediaControls { | ||
| 15 | "GlobalMediaControls", | ||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 17 | - BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | + BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 20 | #else | ||
| 21 | base::FEATURE_DISABLED_BY_DEFAULT | ||
| 22 | @@ -434,7 +434,7 @@ constexpr base::FeatureParam<kCrosGlobalMediaControlsP | ||
| 23 | const base::Feature kGlobalMediaControlsPictureInPicture { | ||
| 24 | "GlobalMediaControlsPictureInPicture", | ||
| 25 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 26 | - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 27 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 28 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 29 | #else | ||
| 30 | base::FEATURE_DISABLED_BY_DEFAULT | ||
| 31 | @@ -475,7 +475,7 @@ const base::Feature kUseR16Texture{"use-r16-texture", | ||
| 32 | const base::Feature kUnifiedAutoplay{"UnifiedAutoplay", | ||
| 33 | base::FEATURE_ENABLED_BY_DEFAULT}; | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 37 | // Enable vaapi video decoding on linux. This is already enabled by default on | ||
| 38 | // chromeos, but needs an experiment on linux. | ||
| 39 | const base::Feature kVaapiVideoDecodeLinux{"VaapiVideoDecoder", | ||
| 40 | @@ -946,7 +946,7 @@ bool IsLiveCaptionFeatureEnabled() { | ||
| 41 | return false; | ||
| 42 | #endif | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 46 | // Check if the CPU has the required instruction set to run the Speech | ||
| 47 | // On-Device API (SODA) library. | ||
| 48 | static bool has_sse41 = base::CPU().has_sse41(); | ||
diff --git a/www/chromium/patches/patch-media_base_media_switches_h b/www/chromium/patches/patch-media_base_media_switches_h new file mode 100644 index 0000000..885ae42 --- /dev/null +++ b/www/chromium/patches/patch-media_base_media_switches_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/base/media_switches.h | ||
| 2 | --- media/base/media_switches.h.orig | ||
| 3 | +++ media/base/media_switches.h | ||
| 4 | @@ -186,7 +186,7 @@ MEDIA_EXPORT extern const base::Feature kUseDecoderStr | ||
| 5 | MEDIA_EXPORT extern const base::Feature kUseFakeDeviceForMediaStream; | ||
| 6 | MEDIA_EXPORT extern const base::Feature kUseMediaHistoryStore; | ||
| 7 | MEDIA_EXPORT extern const base::Feature kUseR16Texture; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | MEDIA_EXPORT extern const base::Feature kVaapiVideoDecodeLinux; | ||
| 11 | MEDIA_EXPORT extern const base::Feature kVaapiVideoEncodeLinux; | ||
| 12 | #endif // BUILDFLAG(IS_LINUX) | ||
diff --git a/www/chromium/patches/patch-media_base_scopedfd_helper_h b/www/chromium/patches/patch-media_base_scopedfd_helper_h new file mode 100644 index 0000000..5cf2ef5 --- /dev/null +++ b/www/chromium/patches/patch-media_base_scopedfd_helper_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/base/scopedfd_helper.h | ||
| 2 | --- media/base/scopedfd_helper.h.orig | ||
| 3 | +++ media/base/scopedfd_helper.h | ||
| 4 | @@ -15,7 +15,7 @@ namespace media { | ||
| 5 | // but since the only current user is V4L2 we are limiting the scope to OS_LINUX | ||
| 6 | // so the binary size does not inflate on non-using systems. Feel free to adapt | ||
| 7 | // this and BUILD.gn as our needs evolve. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | // Return a new vector containing duplicates of |fds|, or PCHECKs in case of an | ||
| 12 | // error. | ||
diff --git a/www/chromium/patches/patch-media_base_user_input_monitor_unittest_cc b/www/chromium/patches/patch-media_base_user_input_monitor_unittest_cc new file mode 100644 index 0000000..27aad37 --- /dev/null +++ b/www/chromium/patches/patch-media_base_user_input_monitor_unittest_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: media/base/user_input_monitor_unittest.cc | ||
| 2 | --- media/base/user_input_monitor_unittest.cc.orig | ||
| 3 | +++ media/base/user_input_monitor_unittest.cc | ||
| 4 | @@ -13,7 +13,7 @@ | ||
| 5 | #include "build/build_config.h" | ||
| 6 | #include "testing/gtest/include/gtest/gtest.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/files/file_descriptor_watcher_posix.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -49,7 +49,7 @@ class UserInputMonitorTest : public testing::Test { | ||
| 14 | } // namespace | ||
| 15 | |||
| 16 | TEST_F(UserInputMonitorTest, CreatePlatformSpecific) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | base::test::TaskEnvironment task_environment( | ||
| 20 | base::test::TaskEnvironment::MainThreadType::IO); | ||
| 21 | #else | ||
| 22 | @@ -71,7 +71,7 @@ TEST_F(UserInputMonitorTest, CreatePlatformSpecific) { | ||
| 23 | } | ||
| 24 | |||
| 25 | TEST_F(UserInputMonitorTest, CreatePlatformSpecificWithMapping) { | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | base::test::TaskEnvironment task_environment( | ||
| 29 | base::test::TaskEnvironment::MainThreadType::IO); | ||
| 30 | #else | ||
diff --git a/www/chromium/patches/patch-media_base_vector_math_cc b/www/chromium/patches/patch-media_base_vector_math_cc new file mode 100644 index 0000000..5ff69ca --- /dev/null +++ b/www/chromium/patches/patch-media_base_vector_math_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/base/vector_math.cc | ||
| 2 | --- media/base/vector_math.cc.orig | ||
| 3 | +++ media/base/vector_math.cc | ||
| 4 | @@ -18,7 +18,7 @@ | ||
| 5 | // better, which is anywhere clang is used. | ||
| 6 | // TODO(pcc): Linux currently uses ThinLTO which has broken auto-vectorization | ||
| 7 | // in clang, so use our intrinsic version for now. http://crbug.com/738085 | ||
| 8 | -#if !defined(__clang__) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if !defined(__clang__) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #define FMAC_FUNC FMAC_SSE | ||
| 11 | #define FMUL_FUNC FMUL_SSE | ||
| 12 | #else | ||
diff --git a/www/chromium/patches/patch-media_base_video_frame_cc b/www/chromium/patches/patch-media_base_video_frame_cc new file mode 100644 index 0000000..f2f64fe --- /dev/null +++ b/www/chromium/patches/patch-media_base_video_frame_cc | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | Index: media/base/video_frame.cc | ||
| 2 | --- media/base/video_frame.cc.orig | ||
| 3 | +++ media/base/video_frame.cc | ||
| 4 | @@ -73,7 +73,7 @@ std::string VideoFrame::StorageTypeToString( | ||
| 5 | return "OWNED_MEMORY"; | ||
| 6 | case VideoFrame::STORAGE_SHMEM: | ||
| 7 | return "SHMEM"; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | case VideoFrame::STORAGE_DMABUFS: | ||
| 11 | return "DMABUFS"; | ||
| 12 | #endif | ||
| 13 | @@ -90,7 +90,7 @@ std::string VideoFrame::StorageTypeToString( | ||
| 14 | // static | ||
| 15 | bool VideoFrame::IsStorageTypeMappable(VideoFrame::StorageType storage_type) { | ||
| 16 | return | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // This is not strictly needed but makes explicit that, at VideoFrame | ||
| 20 | // level, DmaBufs are not mappable from userspace. | ||
| 21 | storage_type != VideoFrame::STORAGE_DMABUFS && | ||
| 22 | @@ -278,7 +278,7 @@ static absl::optional<VideoFrameLayout> GetDefaultLayo | ||
| 23 | return VideoFrameLayout::CreateWithPlanes(format, coded_size, planes); | ||
| 24 | } | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | // This class allows us to embed a vector<ScopedFD> into a scoped_refptr, and | ||
| 29 | // thus to have several VideoFrames share the same set of DMABUF FDs. | ||
| 30 | class VideoFrame::DmabufHolder | ||
| 31 | @@ -617,7 +617,7 @@ scoped_refptr<VideoFrame> VideoFrame::WrapExternalGpuM | ||
| 32 | for (size_t i = 0; i < num_planes; ++i) | ||
| 33 | planes[i].stride = gpu_memory_buffer->stride(i); | ||
| 34 | uint64_t modifier = gfx::NativePixmapHandle::kNoModifier; | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | if (gpu_memory_buffer->GetType() == gfx::NATIVE_PIXMAP) { | ||
| 38 | const auto gmb_handle = gpu_memory_buffer->CloneHandle(); | ||
| 39 | if (gmb_handle.is_null() || | ||
| 40 | @@ -663,7 +663,7 @@ scoped_refptr<VideoFrame> VideoFrame::WrapExternalGpuM | ||
| 41 | return frame; | ||
| 42 | } | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | // static | ||
| 47 | scoped_refptr<VideoFrame> VideoFrame::WrapExternalDmabufs( | ||
| 48 | const VideoFrameLayout& layout, | ||
| 49 | @@ -887,7 +887,7 @@ scoped_refptr<VideoFrame> VideoFrame::WrapVideoFrame( | ||
| 50 | } | ||
| 51 | } | ||
| 52 | |||
| 53 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 54 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 55 | DCHECK(frame->dmabuf_fds_); | ||
| 56 | // If there are any |dmabuf_fds_| plugged in, we should refer them too. | ||
| 57 | wrapping_frame->dmabuf_fds_ = frame->dmabuf_fds_; | ||
| 58 | @@ -1253,7 +1253,7 @@ const gpu::MailboxHolder& VideoFrame::mailbox_holder( | ||
| 59 | : mailbox_holders_[texture_index]; | ||
| 60 | } | ||
| 61 | |||
| 62 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 63 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 64 | const std::vector<base::ScopedFD>& VideoFrame::DmabufFds() const { | ||
| 65 | DCHECK_EQ(storage_type_, STORAGE_DMABUFS); | ||
| 66 | |||
| 67 | @@ -1365,7 +1365,7 @@ VideoFrame::VideoFrame(const VideoFrameLayout& layout, | ||
| 68 | storage_type_(storage_type), | ||
| 69 | visible_rect_(Intersection(visible_rect, gfx::Rect(layout.coded_size()))), | ||
| 70 | natural_size_(natural_size), | ||
| 71 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 72 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 73 | dmabuf_fds_(base::MakeRefCounted<DmabufHolder>()), | ||
| 74 | #endif | ||
| 75 | timestamp_(timestamp), | ||
diff --git a/www/chromium/patches/patch-media_base_video_frame_h b/www/chromium/patches/patch-media_base_video_frame_h new file mode 100644 index 0000000..2f3d61e --- /dev/null +++ b/www/chromium/patches/patch-media_base_video_frame_h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: media/base/video_frame.h | ||
| 2 | --- media/base/video_frame.h.orig | ||
| 3 | +++ media/base/video_frame.h | ||
| 4 | @@ -40,7 +40,7 @@ | ||
| 5 | #include "base/mac/scoped_cftyperef.h" | ||
| 6 | #endif // BUILDFLAG(IS_MAC) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/files/scoped_file.h" | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 12 | |||
| 13 | @@ -82,7 +82,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte | ||
| 14 | STORAGE_UNOWNED_MEMORY = 2, // External, non owned data pointers. | ||
| 15 | STORAGE_OWNED_MEMORY = 3, // VideoFrame has allocated its own data buffer. | ||
| 16 | STORAGE_SHMEM = 4, // Backed by unsafe (writable) shared memory. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // TODO(mcasas): Consider turning this type into STORAGE_NATIVE | ||
| 20 | // based on the idea of using this same enum value for both DMA | ||
| 21 | // buffers on Linux and CVPixelBuffers on Mac (which currently use | ||
| 22 | @@ -280,7 +280,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte | ||
| 23 | ReleaseMailboxAndGpuMemoryBufferCB mailbox_holder_and_gmb_release_cb, | ||
| 24 | base::TimeDelta timestamp); | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | // Wraps provided dmabufs | ||
| 29 | // (https://www.kernel.org/doc/html/latest/driver-api/dma-buf.html) with a | ||
| 30 | // VideoFrame. The frame will take ownership of |dmabuf_fds|, and will | ||
| 31 | @@ -539,7 +539,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte | ||
| 32 | // mailbox, the caller must wait for the included sync point. | ||
| 33 | const gpu::MailboxHolder& mailbox_holder(size_t texture_index) const; | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | // Returns a vector containing the backing DmaBufs for this frame. The number | ||
| 38 | // of returned DmaBufs will be equal or less than the number of planes of | ||
| 39 | // the frame. If there are less, this means that the last FD contains the | ||
| 40 | @@ -746,7 +746,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte | ||
| 41 | // GPU memory buffer, if this frame is STORAGE_GPU_MEMORY_BUFFER. | ||
| 42 | std::unique_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer_; | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | class DmabufHolder; | ||
| 47 | |||
| 48 | // Dmabufs for the frame, used when storage is STORAGE_DMABUFS. Size is either | ||
diff --git a/www/chromium/patches/patch-media_capture_video_create_video_capture_device_factory_cc b/www/chromium/patches/patch-media_capture_video_create_video_capture_device_factory_cc new file mode 100644 index 0000000..1adfc38 --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_create_video_capture_device_factory_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: media/capture/video/create_video_capture_device_factory.cc | ||
| 2 | --- media/capture/video/create_video_capture_device_factory.cc.orig | ||
| 3 | +++ media/capture/video/create_video_capture_device_factory.cc | ||
| 4 | @@ -12,7 +12,7 @@ | ||
| 5 | #include "media/capture/video/fake_video_capture_device_factory.h" | ||
| 6 | #include "media/capture/video/file_video_capture_device_factory.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "media/capture/video/linux/video_capture_device_factory_linux.h" | ||
| 11 | #elif BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 12 | #include "media/capture/video/chromeos/public/cros_features.h" | ||
| 13 | @@ -55,7 +55,7 @@ CreateFakeVideoCaptureDeviceFactory() { | ||
| 14 | std::unique_ptr<VideoCaptureDeviceFactory> | ||
| 15 | CreatePlatformSpecificVideoCaptureDeviceFactory( | ||
| 16 | scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | return std::make_unique<VideoCaptureDeviceFactoryLinux>(ui_task_runner); | ||
| 20 | #elif BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 21 | if (base::SysInfo::IsRunningOnChromeOS()) | ||
diff --git a/www/chromium/patches/patch-media_capture_video_fake_video_capture_device_factory_cc b/www/chromium/patches/patch-media_capture_video_fake_video_capture_device_factory_cc new file mode 100644 index 0000000..b9177c9 --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_fake_video_capture_device_factory_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/capture/video/fake_video_capture_device_factory.cc | ||
| 2 | --- media/capture/video/fake_video_capture_device_factory.cc.orig | ||
| 3 | +++ media/capture/video/fake_video_capture_device_factory.cc | ||
| 4 | @@ -213,7 +213,7 @@ void FakeVideoCaptureDeviceFactory::GetDevicesInfo( | ||
| 5 | int entry_index = 0; | ||
| 6 | for (const auto& entry : devices_config_) { | ||
| 7 | VideoCaptureApi api = | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | VideoCaptureApi::LINUX_V4L2_SINGLE_PLANE; | ||
| 11 | #elif BUILDFLAG(IS_MAC) | ||
| 12 | VideoCaptureApi::MACOSX_AVFOUNDATION; | ||
diff --git a/www/chromium/patches/patch-media_capture_video_file_video_capture_device_factory_cc b/www/chromium/patches/patch-media_capture_video_file_video_capture_device_factory_cc new file mode 100644 index 0000000..70f00eb --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_file_video_capture_device_factory_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/capture/video/file_video_capture_device_factory.cc | ||
| 2 | --- media/capture/video/file_video_capture_device_factory.cc.orig | ||
| 3 | +++ media/capture/video/file_video_capture_device_factory.cc | ||
| 4 | @@ -52,7 +52,7 @@ void FileVideoCaptureDeviceFactory::GetDevicesInfo( | ||
| 5 | VideoCaptureApi::WIN_DIRECT_SHOW; | ||
| 6 | #elif BUILDFLAG(IS_MAC) | ||
| 7 | VideoCaptureApi::MACOSX_AVFOUNDATION; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | VideoCaptureApi::LINUX_V4L2_SINGLE_PLANE; | ||
| 11 | #else | ||
| 12 | VideoCaptureApi::UNKNOWN; | ||
diff --git a/www/chromium/patches/patch-media_capture_video_linux_fake_v4l2_impl_cc b/www/chromium/patches/patch-media_capture_video_linux_fake_v4l2_impl_cc new file mode 100644 index 0000000..e992ecc --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_linux_fake_v4l2_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/capture/video/linux/fake_v4l2_impl.cc | ||
| 2 | --- media/capture/video/linux/fake_v4l2_impl.cc.orig | ||
| 3 | +++ media/capture/video/linux/fake_v4l2_impl.cc | ||
| 4 | @@ -424,7 +424,7 @@ int FakeV4L2Impl::close(int fd) { | ||
| 5 | return kSuccessReturnValue; | ||
| 6 | } | ||
| 7 | |||
| 8 | -int FakeV4L2Impl::ioctl(int fd, int request, void* argp) { | ||
| 9 | +int FakeV4L2Impl::ioctl(int fd, unsigned long request, void* argp) { | ||
| 10 | base::AutoLock lock(lock_); | ||
| 11 | auto device_iter = opened_devices_.find(fd); | ||
| 12 | if (device_iter == opened_devices_.end()) | ||
diff --git a/www/chromium/patches/patch-media_capture_video_linux_fake_v4l2_impl_h b/www/chromium/patches/patch-media_capture_video_linux_fake_v4l2_impl_h new file mode 100644 index 0000000..7037889 --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_linux_fake_v4l2_impl_h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Index: media/capture/video/linux/fake_v4l2_impl.h | ||
| 2 | --- media/capture/video/linux/fake_v4l2_impl.h.orig | ||
| 3 | +++ media/capture/video/linux/fake_v4l2_impl.h | ||
| 4 | @@ -8,7 +8,13 @@ | ||
| 5 | #include <map> | ||
| 6 | #include <string> | ||
| 7 | |||
| 8 | +#include "build/build_config.h" | ||
| 9 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 10 | +#include <sys/videoio.h> | ||
| 11 | +typedef __uint32_t __u32; | ||
| 12 | +#else | ||
| 13 | #include <linux/videodev2.h> | ||
| 14 | +#endif | ||
| 15 | |||
| 16 | #include "base/synchronization/lock.h" | ||
| 17 | #include "media/capture/capture_export.h" | ||
| 18 | @@ -36,7 +42,7 @@ class CAPTURE_EXPORT FakeV4L2Impl : public V4L2Capture | ||
| 19 | // Implementation of V4L2CaptureDevice interface: | ||
| 20 | int open(const char* device_name, int flags) override; | ||
| 21 | int close(int fd) override; | ||
| 22 | - int ioctl(int fd, int request, void* argp) override; | ||
| 23 | + int ioctl(int fd, unsigned long request, void* argp) override; | ||
| 24 | void* mmap(void* start, | ||
| 25 | size_t length, | ||
| 26 | int prot, | ||
diff --git a/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_delegate_cc b/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_delegate_cc new file mode 100644 index 0000000..0532ae6 --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_delegate_cc | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | Index: media/capture/video/linux/v4l2_capture_delegate.cc | ||
| 2 | --- media/capture/video/linux/v4l2_capture_delegate.cc.orig | ||
| 3 | +++ media/capture/video/linux/v4l2_capture_delegate.cc | ||
| 4 | @@ -4,8 +4,10 @@ | ||
| 5 | |||
| 6 | #include "media/capture/video/linux/v4l2_capture_delegate.h" | ||
| 7 | |||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | #include <linux/version.h> | ||
| 10 | #include <linux/videodev2.h> | ||
| 11 | +#endif | ||
| 12 | #include <poll.h> | ||
| 13 | #include <sys/fcntl.h> | ||
| 14 | #include <sys/ioctl.h> | ||
| 15 | @@ -25,10 +27,10 @@ | ||
| 16 | |||
| 17 | using media::mojom::MeteringMode; | ||
| 18 | |||
| 19 | -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0) | ||
| 20 | +// #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0) | ||
| 21 | // 16 bit depth, Realsense F200. | ||
| 22 | #define V4L2_PIX_FMT_Z16 v4l2_fourcc('Z', '1', '6', ' ') | ||
| 23 | -#endif | ||
| 24 | +// #endif | ||
| 25 | |||
| 26 | // TODO(aleksandar.stojiljkovic): Wrap this with kernel version check once the | ||
| 27 | // format is introduced to kernel. | ||
| 28 | @@ -660,7 +662,7 @@ base::WeakPtr<V4L2CaptureDelegate> V4L2CaptureDelegate | ||
| 29 | |||
| 30 | V4L2CaptureDelegate::~V4L2CaptureDelegate() = default; | ||
| 31 | |||
| 32 | -bool V4L2CaptureDelegate::RunIoctl(int request, void* argp) { | ||
| 33 | +bool V4L2CaptureDelegate::RunIoctl(unsigned int request, void* argp) { | ||
| 34 | int num_retries = 0; | ||
| 35 | for (; DoIoctl(request, argp) < 0 && num_retries < kMaxIOCtrlRetries; | ||
| 36 | ++num_retries) { | ||
| 37 | @@ -670,7 +672,7 @@ bool V4L2CaptureDelegate::RunIoctl(int request, void* | ||
| 38 | return num_retries != kMaxIOCtrlRetries; | ||
| 39 | } | ||
| 40 | |||
| 41 | -int V4L2CaptureDelegate::DoIoctl(int request, void* argp) { | ||
| 42 | +int V4L2CaptureDelegate::DoIoctl(unsigned int request, void* argp) { | ||
| 43 | return HANDLE_EINTR(v4l2_->ioctl(device_fd_.get(), request, argp)); | ||
| 44 | } | ||
| 45 | |||
diff --git a/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_delegate_h b/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_delegate_h new file mode 100644 index 0000000..fb5f993 --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_delegate_h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: media/capture/video/linux/v4l2_capture_delegate.h | ||
| 2 | --- media/capture/video/linux/v4l2_capture_delegate.h.orig | ||
| 3 | +++ media/capture/video/linux/v4l2_capture_delegate.h | ||
| 4 | @@ -84,10 +84,10 @@ class CAPTURE_EXPORT V4L2CaptureDelegate final { | ||
| 5 | // device file descriptor or (re)starting streaming, can fail but works after | ||
| 6 | // retrying (https://crbug.com/670262). Returns false if the |request| ioctl | ||
| 7 | // fails too many times. | ||
| 8 | - bool RunIoctl(int request, void* argp); | ||
| 9 | + bool RunIoctl(unsigned int request, void* argp); | ||
| 10 | |||
| 11 | // Simple wrapper to do HANDLE_EINTR(v4l2_->ioctl(device_fd_.get(), ...)). | ||
| 12 | - int DoIoctl(int request, void* argp); | ||
| 13 | + int DoIoctl(unsigned int request, void* argp); | ||
| 14 | |||
| 15 | // Creates a mojom::RangePtr with the (min, max, current, step) values of the | ||
| 16 | // control associated with |control_id|. Returns an empty Range otherwise. | ||
diff --git a/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_device_h b/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_device_h new file mode 100644 index 0000000..2f98584 --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_device_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/capture/video/linux/v4l2_capture_device.h | ||
| 2 | --- media/capture/video/linux/v4l2_capture_device.h.orig | ||
| 3 | +++ media/capture/video/linux/v4l2_capture_device.h | ||
| 4 | @@ -21,7 +21,7 @@ class CAPTURE_EXPORT V4L2CaptureDevice | ||
| 5 | public: | ||
| 6 | virtual int open(const char* device_name, int flags) = 0; | ||
| 7 | virtual int close(int fd) = 0; | ||
| 8 | - virtual int ioctl(int fd, int request, void* argp) = 0; | ||
| 9 | + virtual int ioctl(int fd, unsigned long request, void* argp) = 0; | ||
| 10 | virtual void* mmap(void* start, | ||
| 11 | size_t length, | ||
| 12 | int prot, | ||
diff --git a/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_device_impl_cc b/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_device_impl_cc new file mode 100644 index 0000000..d809b11 --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_device_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/capture/video/linux/v4l2_capture_device_impl.cc | ||
| 2 | --- media/capture/video/linux/v4l2_capture_device_impl.cc.orig | ||
| 3 | +++ media/capture/video/linux/v4l2_capture_device_impl.cc | ||
| 4 | @@ -22,7 +22,7 @@ int V4L2CaptureDeviceImpl::close(int fd) { | ||
| 5 | return ::close(fd); | ||
| 6 | } | ||
| 7 | |||
| 8 | -int V4L2CaptureDeviceImpl::ioctl(int fd, int request, void* argp) { | ||
| 9 | +int V4L2CaptureDeviceImpl::ioctl(int fd, unsigned long request, void* argp) { | ||
| 10 | return ::ioctl(fd, request, argp); | ||
| 11 | } | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_device_impl_h b/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_device_impl_h new file mode 100644 index 0000000..5cbe9aa --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_linux_v4l2_capture_device_impl_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/capture/video/linux/v4l2_capture_device_impl.h | ||
| 2 | --- media/capture/video/linux/v4l2_capture_device_impl.h.orig | ||
| 3 | +++ media/capture/video/linux/v4l2_capture_device_impl.h | ||
| 4 | @@ -19,7 +19,7 @@ class CAPTURE_EXPORT V4L2CaptureDeviceImpl : public V4 | ||
| 5 | public: | ||
| 6 | int open(const char* device_name, int flags) override; | ||
| 7 | int close(int fd) override; | ||
| 8 | - int ioctl(int fd, int request, void* argp) override; | ||
| 9 | + int ioctl(int fd, unsigned long request, void* argp) override; | ||
| 10 | void* mmap(void* start, | ||
| 11 | size_t length, | ||
| 12 | int prot, | ||
diff --git a/www/chromium/patches/patch-media_capture_video_linux_video_capture_device_factory_linux_cc b/www/chromium/patches/patch-media_capture_video_linux_video_capture_device_factory_linux_cc new file mode 100644 index 0000000..54ef172 --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_linux_video_capture_device_factory_linux_cc | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | Index: media/capture/video/linux/video_capture_device_factory_linux.cc | ||
| 2 | --- media/capture/video/linux/video_capture_device_factory_linux.cc.orig | ||
| 3 | +++ media/capture/video/linux/video_capture_device_factory_linux.cc | ||
| 4 | @@ -72,6 +72,9 @@ class DevVideoFilePathsDeviceProvider | ||
| 5 | : public VideoCaptureDeviceFactoryLinux::DeviceProvider { | ||
| 6 | public: | ||
| 7 | void GetDeviceIds(std::vector<std::string>* target_container) override { | ||
| 8 | +#if defined(OS_OPENBSD) | ||
| 9 | + target_container->emplace_back("/dev/video"); | ||
| 10 | +#else | ||
| 11 | const base::FilePath path("/dev/"); | ||
| 12 | base::FileEnumerator enumerator(path, false, base::FileEnumerator::FILES, | ||
| 13 | "video*"); | ||
| 14 | @@ -79,9 +82,13 @@ class DevVideoFilePathsDeviceProvider | ||
| 15 | const base::FileEnumerator::FileInfo info = enumerator.GetInfo(); | ||
| 16 | target_container->emplace_back(path.value() + info.GetName().value()); | ||
| 17 | } | ||
| 18 | +#endif | ||
| 19 | } | ||
| 20 | |||
| 21 | std::string GetDeviceModelId(const std::string& device_id) override { | ||
| 22 | +#if defined(OS_OPENBSD) | ||
| 23 | + return std::string(); | ||
| 24 | +#endif | ||
| 25 | const std::string file_name = ExtractFileNameFromDeviceId(device_id); | ||
| 26 | std::string usb_id; | ||
| 27 | const std::string vid_path = | ||
| 28 | @@ -99,6 +106,9 @@ class DevVideoFilePathsDeviceProvider | ||
| 29 | } | ||
| 30 | |||
| 31 | std::string GetDeviceDisplayName(const std::string& device_id) override { | ||
| 32 | +#if defined(OS_OPENBSD) | ||
| 33 | + return std::string(); | ||
| 34 | +#endif | ||
| 35 | const std::string file_name = ExtractFileNameFromDeviceId(device_id); | ||
| 36 | const std::string interface_path = | ||
| 37 | base::StringPrintf(kInterfacePathTemplate, file_name.c_str()); | ||
| 38 | @@ -213,7 +223,7 @@ void VideoCaptureDeviceFactoryLinux::GetDevicesInfo( | ||
| 39 | std::move(callback).Run(std::move(devices_info)); | ||
| 40 | } | ||
| 41 | |||
| 42 | -int VideoCaptureDeviceFactoryLinux::DoIoctl(int fd, int request, void* argp) { | ||
| 43 | +int VideoCaptureDeviceFactoryLinux::DoIoctl(int fd, unsigned int request, void* argp) { | ||
| 44 | return HANDLE_EINTR(v4l2_->ioctl(fd, request, argp)); | ||
| 45 | } | ||
| 46 | |||
diff --git a/www/chromium/patches/patch-media_capture_video_linux_video_capture_device_factory_linux_h b/www/chromium/patches/patch-media_capture_video_linux_video_capture_device_factory_linux_h new file mode 100644 index 0000000..6bb37d2 --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_linux_video_capture_device_factory_linux_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/capture/video/linux/video_capture_device_factory_linux.h | ||
| 2 | --- media/capture/video/linux/video_capture_device_factory_linux.h.orig | ||
| 3 | +++ media/capture/video/linux/video_capture_device_factory_linux.h | ||
| 4 | @@ -52,7 +52,7 @@ class CAPTURE_EXPORT VideoCaptureDeviceFactoryLinux | ||
| 5 | |||
| 6 | private: | ||
| 7 | // Simple wrapper to do HANDLE_EINTR(v4l2_->ioctl(fd, ...)). | ||
| 8 | - int DoIoctl(int fd, int request, void* argp); | ||
| 9 | + int DoIoctl(int fd, unsigned int request, void* argp); | ||
| 10 | |||
| 11 | VideoCaptureControlSupport GetControlSupport(int fd); | ||
| 12 | bool GetControlSupport(int fd, int control_id); | ||
diff --git a/www/chromium/patches/patch-media_capture_video_video_capture_buffer_pool_impl_cc b/www/chromium/patches/patch-media_capture_video_video_capture_buffer_pool_impl_cc new file mode 100644 index 0000000..c4a25a2 --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_video_capture_buffer_pool_impl_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/capture/video/video_capture_buffer_pool_impl.cc | ||
| 2 | --- media/capture/video/video_capture_buffer_pool_impl.cc.orig | ||
| 3 | +++ media/capture/video/video_capture_buffer_pool_impl.cc | ||
| 4 | @@ -74,7 +74,7 @@ VideoCaptureBufferPoolImpl::CreateSharedMemoryViaRawFi | ||
| 5 | int buffer_id) { | ||
| 6 | // This requires platforms where base::SharedMemoryHandle is backed by a | ||
| 7 | // file descriptor. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | base::AutoLock lock(lock_); | ||
| 11 | |||
| 12 | VideoCaptureBufferTracker* tracker = GetTracker(buffer_id); | ||
diff --git a/www/chromium/patches/patch-media_capture_video_video_capture_device_client_cc b/www/chromium/patches/patch-media_capture_video_video_capture_device_client_cc new file mode 100644 index 0000000..6fb2a31 --- /dev/null +++ b/www/chromium/patches/patch-media_capture_video_video_capture_device_client_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/capture/video/video_capture_device_client.cc | ||
| 2 | --- media/capture/video/video_capture_device_client.cc.orig | ||
| 3 | +++ media/capture/video/video_capture_device_client.cc | ||
| 4 | @@ -320,7 +320,7 @@ void VideoCaptureDeviceClient::OnIncomingCapturedData( | ||
| 5 | // see http://linuxtv.org/downloads/v4l-dvb-apis/packed-rgb.html. | ||
| 6 | // Windows RGB24 defines blue at lowest byte, | ||
| 7 | // see https://msdn.microsoft.com/en-us/library/windows/desktop/dd407253 | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | fourcc_format = libyuv::FOURCC_RAW; | ||
| 11 | #elif BUILDFLAG(IS_WIN) | ||
| 12 | fourcc_format = libyuv::FOURCC_24BG; | ||
diff --git a/www/chromium/patches/patch-media_cdm_cdm_paths_unittest_cc b/www/chromium/patches/patch-media_cdm_cdm_paths_unittest_cc new file mode 100644 index 0000000..50becc7 --- /dev/null +++ b/www/chromium/patches/patch-media_cdm_cdm_paths_unittest_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/cdm/cdm_paths_unittest.cc | ||
| 2 | --- media/cdm/cdm_paths_unittest.cc.orig | ||
| 3 | +++ media/cdm/cdm_paths_unittest.cc | ||
| 4 | @@ -27,7 +27,7 @@ const char kComponentPlatform[] = | ||
| 5 | "win"; | ||
| 6 | #elif BUILDFLAG(IS_CHROMEOS) | ||
| 7 | "cros"; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | "linux"; | ||
| 11 | #else | ||
| 12 | "unsupported_platform"; | ||
diff --git a/www/chromium/patches/patch-media_gpu_buffer_validation_cc b/www/chromium/patches/patch-media_gpu_buffer_validation_cc new file mode 100644 index 0000000..2dfc742 --- /dev/null +++ b/www/chromium/patches/patch-media_gpu_buffer_validation_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: media/gpu/buffer_validation.cc | ||
| 2 | --- media/gpu/buffer_validation.cc.orig | ||
| 3 | +++ media/gpu/buffer_validation.cc | ||
| 4 | @@ -15,7 +15,7 @@ | ||
| 5 | #include "ui/gfx/geometry/size.h" | ||
| 6 | #include "ui/gfx/gpu_memory_buffer.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <sys/types.h> | ||
| 11 | #include <unistd.h> | ||
| 12 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 13 | @@ -23,7 +23,7 @@ | ||
| 14 | namespace media { | ||
| 15 | |||
| 16 | bool GetFileSize(const int fd, size_t* size) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | if (fd < 0) { | ||
| 20 | VLOGF(1) << "Invalid file descriptor"; | ||
| 21 | return false; | ||
| 22 | @@ -66,7 +66,7 @@ bool VerifyGpuMemoryBufferHandle( | ||
| 23 | << coded_size.ToString(); | ||
| 24 | return false; | ||
| 25 | } | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | const size_t num_planes = media::VideoFrame::NumPlanes(pixel_format); | ||
| 29 | if (num_planes != gmb_handle.native_pixmap_handle.planes.size() || | ||
| 30 | num_planes == 0) { | ||
diff --git a/www/chromium/patches/patch-media_gpu_chromeos_video_decoder_pipeline_cc b/www/chromium/patches/patch-media_gpu_chromeos_video_decoder_pipeline_cc new file mode 100644 index 0000000..d4fd7cf --- /dev/null +++ b/www/chromium/patches/patch-media_gpu_chromeos_video_decoder_pipeline_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: media/gpu/chromeos/video_decoder_pipeline.cc | ||
| 2 | --- media/gpu/chromeos/video_decoder_pipeline.cc.orig | ||
| 3 | +++ media/gpu/chromeos/video_decoder_pipeline.cc | ||
| 4 | @@ -646,7 +646,7 @@ VideoDecoderPipeline::PickDecoderOutputFormat( | ||
| 5 | } | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // Linux should always use a custom allocator (to allocate buffers using | ||
| 11 | // libva) and a PlatformVideoFramePool. | ||
| 12 | CHECK(allocator.has_value()); | ||
| 13 | @@ -668,7 +668,7 @@ VideoDecoderPipeline::PickDecoderOutputFormat( | ||
| 14 | #error "Unsupported platform" | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | // viable_candidate should always be set unless using L1 protected content, | ||
| 20 | // which isn't an option on linux or lacros. | ||
| 21 | CHECK(viable_candidate); | ||
diff --git a/www/chromium/patches/patch-media_gpu_gpu_video_encode_accelerator_factory_cc b/www/chromium/patches/patch-media_gpu_gpu_video_encode_accelerator_factory_cc new file mode 100644 index 0000000..9b03934 --- /dev/null +++ b/www/chromium/patches/patch-media_gpu_gpu_video_encode_accelerator_factory_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/gpu/gpu_video_encode_accelerator_factory.cc | ||
| 2 | --- media/gpu/gpu_video_encode_accelerator_factory.cc.orig | ||
| 3 | +++ media/gpu/gpu_video_encode_accelerator_factory.cc | ||
| 4 | @@ -92,7 +92,7 @@ std::vector<VEAFactoryFunction> GetVEAFactoryFunctions | ||
| 5 | return vea_factory_functions; | ||
| 6 | |||
| 7 | #if BUILDFLAG(USE_VAAPI) | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | if (base::FeatureList::IsEnabled(kVaapiVideoEncodeLinux)) | ||
| 11 | vea_factory_functions.push_back(base::BindRepeating(&CreateVaapiVEA)); | ||
| 12 | #else | ||
diff --git a/www/chromium/patches/patch-media_gpu_vaapi_vaapi_video_decoder_cc b/www/chromium/patches/patch-media_gpu_vaapi_vaapi_video_decoder_cc new file mode 100644 index 0000000..a28d2d8 --- /dev/null +++ b/www/chromium/patches/patch-media_gpu_vaapi_vaapi_video_decoder_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/gpu/vaapi/vaapi_video_decoder.cc | ||
| 2 | --- media/gpu/vaapi/vaapi_video_decoder.cc.orig | ||
| 3 | +++ media/gpu/vaapi/vaapi_video_decoder.cc | ||
| 4 | @@ -772,7 +772,7 @@ void VaapiVideoDecoder::ApplyResolutionChangeWithScree | ||
| 5 | const gfx::Size decoder_natural_size = | ||
| 6 | aspect_ratio_.GetNaturalSize(decoder_visible_rect); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | absl::optional<DmabufVideoFramePool::CreateFrameCB> allocator = | ||
| 11 | base::BindRepeating(&AllocateCustomFrameProxy, weak_this_); | ||
| 12 | std::vector<ImageProcessor::PixelLayoutCandidate> candidates = { | ||
diff --git a/www/chromium/patches/patch-media_gpu_vaapi_vaapi_wrapper_cc b/www/chromium/patches/patch-media_gpu_vaapi_vaapi_wrapper_cc new file mode 100644 index 0000000..2bbe01f --- /dev/null +++ b/www/chromium/patches/patch-media_gpu_vaapi_vaapi_wrapper_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/gpu/vaapi/vaapi_wrapper.cc | ||
| 2 | --- media/gpu/vaapi/vaapi_wrapper.cc.orig | ||
| 3 | +++ media/gpu/vaapi/vaapi_wrapper.cc | ||
| 4 | @@ -587,7 +587,7 @@ VADisplayState::VADisplayState() | ||
| 5 | bool VADisplayState::Initialize() { | ||
| 6 | base::AutoLock auto_lock(va_lock_); | ||
| 7 | |||
| 8 | -#if defined(USE_OZONE) && BUILDFLAG(IS_LINUX) | ||
| 9 | +#if defined(USE_OZONE) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) | ||
| 10 | // TODO(crbug.com/1116701): add vaapi support for other Ozone platforms on | ||
| 11 | // Linux. See comment in OzonePlatform::PlatformProperties::supports_vaapi | ||
| 12 | // for more details. This will also require revisiting everything that's | ||
diff --git a/www/chromium/patches/patch-media_media_options_gni b/www/chromium/patches/patch-media_media_options_gni new file mode 100644 index 0000000..c45668e --- /dev/null +++ b/www/chromium/patches/patch-media_media_options_gni | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | Index: media/media_options.gni | ||
| 2 | --- media/media_options.gni.orig | ||
| 3 | +++ media/media_options.gni | ||
| 4 | @@ -125,9 +125,12 @@ declare_args() { | ||
| 5 | # Enables runtime selection of ALSA library for audio. | ||
| 6 | use_alsa = false | ||
| 7 | |||
| 8 | + # Enable runtime selection of sndio(7) | ||
| 9 | + use_sndio = false | ||
| 10 | + | ||
| 11 | # Alsa should be used on non-Android, non-Mac POSIX systems. | ||
| 12 | # Alsa should be used on desktop Chromecast and audio-only Chromecast builds. | ||
| 13 | - if (is_posix && !is_android && !is_mac && | ||
| 14 | + if (is_posix && !is_android && !is_mac && !is_bsd && | ||
| 15 | (!is_chromecast || is_cast_desktop_build || is_cast_audio_only)) { | ||
| 16 | use_alsa = true | ||
| 17 | |||
| 18 | @@ -142,6 +145,10 @@ declare_args() { | ||
| 19 | if (!use_cras && !is_chromecast && !is_asan && !is_tsan) { | ||
| 20 | use_pulseaudio = true | ||
| 21 | } | ||
| 22 | + } | ||
| 23 | + if (is_openbsd) { | ||
| 24 | + use_sndio = true | ||
| 25 | + use_pulseaudio = false | ||
| 26 | } | ||
| 27 | } | ||
| 28 | |||
diff --git a/www/chromium/patches/patch-media_mojo_mojom_video_frame_mojom_traits_cc b/www/chromium/patches/patch-media_mojo_mojom_video_frame_mojom_traits_cc new file mode 100644 index 0000000..eabef95 --- /dev/null +++ b/www/chromium/patches/patch-media_mojo_mojom_video_frame_mojom_traits_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/mojo/mojom/video_frame_mojom_traits.cc | ||
| 2 | --- media/mojo/mojom/video_frame_mojom_traits.cc.orig | ||
| 3 | +++ media/mojo/mojom/video_frame_mojom_traits.cc | ||
| 4 | @@ -21,7 +21,7 @@ | ||
| 5 | #include "ui/gfx/mojom/color_space_mojom_traits.h" | ||
| 6 | #include "ui/gfx/mojom/hdr_metadata_mojom_traits.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/posix/eintr_wrapper.h" | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-media_video_fake_gpu_memory_buffer_cc b/www/chromium/patches/patch-media_video_fake_gpu_memory_buffer_cc new file mode 100644 index 0000000..5d010fe --- /dev/null +++ b/www/chromium/patches/patch-media_video_fake_gpu_memory_buffer_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: media/video/fake_gpu_memory_buffer.cc | ||
| 2 | --- media/video/fake_gpu_memory_buffer.cc.orig | ||
| 3 | +++ media/video/fake_gpu_memory_buffer.cc | ||
| 4 | @@ -9,7 +9,7 @@ | ||
| 5 | #include "media/base/format_utils.h" | ||
| 6 | #include "media/base/video_frame.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <fcntl.h> | ||
| 11 | #include <sys/stat.h> | ||
| 12 | #include <sys/types.h> | ||
| 13 | @@ -47,7 +47,7 @@ class FakeGpuMemoryBufferImpl : public gpu::GpuMemoryB | ||
| 14 | |||
| 15 | } // namespace | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | base::ScopedFD GetDummyFD() { | ||
| 20 | base::ScopedFD fd(open("/dev/zero", O_RDWR)); | ||
| 21 | DCHECK(fd.is_valid()); | ||
| 22 | @@ -77,7 +77,7 @@ FakeGpuMemoryBuffer::FakeGpuMemoryBuffer(const gfx::Si | ||
| 23 | static base::AtomicSequenceNumber buffer_id_generator; | ||
| 24 | handle_.id = gfx::GpuMemoryBufferId(buffer_id_generator.GetNext()); | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | for (size_t i = 0; i < VideoFrame::NumPlanes(video_pixel_format_); i++) { | ||
| 29 | const gfx::Size plane_size_in_bytes = | ||
| 30 | VideoFrame::PlaneSize(video_pixel_format_, i, size_); | ||
| 31 | @@ -134,7 +134,7 @@ gfx::GpuMemoryBufferHandle FakeGpuMemoryBuffer::CloneH | ||
| 32 | gfx::GpuMemoryBufferHandle handle; | ||
| 33 | handle.type = gfx::NATIVE_PIXMAP; | ||
| 34 | handle.id = handle_.id; | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | handle.native_pixmap_handle = | ||
| 38 | gfx::CloneHandleForIPC(handle_.native_pixmap_handle); | ||
| 39 | #endif | ||
diff --git a/www/chromium/patches/patch-media_video_gpu_memory_buffer_video_frame_pool_cc b/www/chromium/patches/patch-media_video_gpu_memory_buffer_video_frame_pool_cc new file mode 100644 index 0000000..6f01ed9 --- /dev/null +++ b/www/chromium/patches/patch-media_video_gpu_memory_buffer_video_frame_pool_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/video/gpu_memory_buffer_video_frame_pool.cc | ||
| 2 | --- media/video/gpu_memory_buffer_video_frame_pool.cc.orig | ||
| 3 | +++ media/video/gpu_memory_buffer_video_frame_pool.cc | ||
| 4 | @@ -720,7 +720,7 @@ void GpuMemoryBufferVideoFramePool::PoolImpl::CreateHa | ||
| 5 | } | ||
| 6 | |||
| 7 | bool is_software_backed_video_frame = !video_frame->HasTextures(); | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | is_software_backed_video_frame &= !video_frame->HasDmaBufs(); | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-media_video_video_encode_accelerator_adapter_cc b/www/chromium/patches/patch-media_video_video_encode_accelerator_adapter_cc new file mode 100644 index 0000000..f156126 --- /dev/null +++ b/www/chromium/patches/patch-media_video_video_encode_accelerator_adapter_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: media/video/video_encode_accelerator_adapter.cc | ||
| 2 | --- media/video/video_encode_accelerator_adapter.cc.orig | ||
| 3 | +++ media/video/video_encode_accelerator_adapter.cc | ||
| 4 | @@ -96,7 +96,7 @@ VideoEncodeAccelerator::Config SetUpVeaConfig( | ||
| 5 | if (is_rgb) | ||
| 6 | config.input_format = PIXEL_FORMAT_I420; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | if (storage_type == VideoFrame::STORAGE_DMABUFS || | ||
| 11 | storage_type == VideoFrame::STORAGE_GPU_MEMORY_BUFFER) { | ||
| 12 | if (is_rgb) | ||
| 13 | @@ -235,7 +235,7 @@ void VideoEncodeAcceleratorAdapter::InitializeInternal | ||
| 14 | auto vea_config = | ||
| 15 | SetUpVeaConfig(profile_, options_, format, first_frame->storage_type()); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Linux/ChromeOS require a special configuration to use dmabuf storage. | ||
| 20 | // We need to keep sending frames the same way the first frame was sent. | ||
| 21 | // Other platforms will happily mix GpuMemoryBuffer storage with regular | ||
diff --git a/www/chromium/patches/patch-media_video_video_encode_accelerator_adapter_test_cc b/www/chromium/patches/patch-media_video_video_encode_accelerator_adapter_test_cc new file mode 100644 index 0000000..caa4b53 --- /dev/null +++ b/www/chromium/patches/patch-media_video_video_encode_accelerator_adapter_test_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/video/video_encode_accelerator_adapter_test.cc | ||
| 2 | --- media/video/video_encode_accelerator_adapter_test.cc.orig | ||
| 3 | +++ media/video/video_encode_accelerator_adapter_test.cc | ||
| 4 | @@ -350,7 +350,7 @@ TEST_P(VideoEncodeAcceleratorAdapterTest, TwoFramesRes | ||
| 5 | |||
| 6 | vea()->SetEncodingCallback(base::BindLambdaForTesting( | ||
| 7 | [&](BitstreamBuffer&, bool keyframe, scoped_refptr<VideoFrame> frame) { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | EXPECT_EQ(frame->format(), | ||
| 11 | IsYuvPlanar(pixel_format) ? pixel_format : PIXEL_FORMAT_I420); | ||
| 12 | #else | ||
diff --git a/www/chromium/patches/patch-media_webrtc_audio_processor_cc b/www/chromium/patches/patch-media_webrtc_audio_processor_cc new file mode 100644 index 0000000..afce76c --- /dev/null +++ b/www/chromium/patches/patch-media_webrtc_audio_processor_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/webrtc/audio_processor.cc | ||
| 2 | --- media/webrtc/audio_processor.cc.orig | ||
| 3 | +++ media/webrtc/audio_processor.cc | ||
| 4 | @@ -428,7 +428,7 @@ absl::optional<double> AudioProcessor::ProcessData( | ||
| 5 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) | ||
| 6 | DCHECK_LE(volume, 1.0); | ||
| 7 | #elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || \ | ||
| 8 | - BUILDFLAG(IS_OPENBSD) | ||
| 9 | + BUILDFLAG(IS_BSD) | ||
| 10 | // We have a special situation on Linux where the microphone volume can be | ||
| 11 | // "higher than maximum". The input volume slider in the sound preference | ||
| 12 | // allows the user to set a scaling that is higher than 100%. It means that | ||
diff --git a/www/chromium/patches/patch-media_webrtc_helpers_unittests_cc b/www/chromium/patches/patch-media_webrtc_helpers_unittests_cc new file mode 100644 index 0000000..0cc6f72 --- /dev/null +++ b/www/chromium/patches/patch-media_webrtc_helpers_unittests_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: media/webrtc/helpers_unittests.cc | ||
| 2 | --- media/webrtc/helpers_unittests.cc.orig | ||
| 3 | +++ media/webrtc/helpers_unittests.cc | ||
| 4 | @@ -36,7 +36,7 @@ TEST(CreateWebRtcAudioProcessingModuleTest, CheckDefau | ||
| 5 | EXPECT_FALSE(config.pre_amplifier.enabled); | ||
| 6 | EXPECT_TRUE(config.echo_canceller.enabled); | ||
| 7 | EXPECT_TRUE(config.gain_controller1.enabled); | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | EXPECT_TRUE(config.gain_controller2.enabled); | ||
| 11 | #else | ||
| 12 | EXPECT_FALSE(config.gain_controller2.enabled); | ||
| 13 | @@ -94,7 +94,7 @@ TEST(CreateWebRtcAudioProcessingModuleTest, CheckDefau | ||
| 14 | |||
| 15 | // Check that either AGC1 digital or AGC2 digital is used based on the | ||
| 16 | // platforms where the Hybrid AGC is enabled by default. | ||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | EXPECT_FALSE(agc1_analog_config.enable_digital_adaptive); | ||
| 20 | EXPECT_TRUE(config.gain_controller2.enabled); | ||
| 21 | EXPECT_TRUE(config.gain_controller2.adaptive_digital.enabled); | ||
diff --git a/www/chromium/patches/patch-media_webrtc_webrtc_features_cc b/www/chromium/patches/patch-media_webrtc_webrtc_features_cc new file mode 100644 index 0000000..e373872 --- /dev/null +++ b/www/chromium/patches/patch-media_webrtc_webrtc_features_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: media/webrtc/webrtc_features.cc | ||
| 2 | --- media/webrtc/webrtc_features.cc.orig | ||
| 3 | +++ media/webrtc/webrtc_features.cc | ||
| 4 | @@ -9,7 +9,7 @@ | ||
| 5 | |||
| 6 | namespace features { | ||
| 7 | namespace { | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | constexpr base::FeatureState kWebRtcHybridAgcState = | ||
| 11 | base::FEATURE_ENABLED_BY_DEFAULT; | ||
| 12 | #else | ||
diff --git a/www/chromium/patches/patch-mojo_core_BUILD_gn b/www/chromium/patches/patch-mojo_core_BUILD_gn new file mode 100644 index 0000000..45daa41 --- /dev/null +++ b/www/chromium/patches/patch-mojo_core_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: mojo/core/BUILD.gn | ||
| 2 | --- mojo/core/BUILD.gn.orig | ||
| 3 | +++ mojo/core/BUILD.gn | ||
| 4 | @@ -128,7 +128,7 @@ template("core_impl_source_set") { | ||
| 5 | ] | ||
| 6 | } | ||
| 7 | |||
| 8 | - if ((is_linux || is_chromeos || is_android) && !is_nacl) { | ||
| 9 | + if ((is_linux || is_chromeos || is_android) && !is_nacl && !is_bsd) { | ||
| 10 | sources += [ | ||
| 11 | "channel_linux.cc", | ||
| 12 | "channel_linux.h", | ||
diff --git a/www/chromium/patches/patch-mojo_core_channel_cc b/www/chromium/patches/patch-mojo_core_channel_cc new file mode 100644 index 0000000..98fa9b0 --- /dev/null +++ b/www/chromium/patches/patch-mojo_core_channel_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: mojo/core/channel.cc | ||
| 2 | --- mojo/core/channel.cc.orig | ||
| 3 | +++ mojo/core/channel.cc | ||
| 4 | @@ -62,7 +62,11 @@ const size_t kMaxUnusedReadBufferCapacity = 4096; | ||
| 5 | // Fuchsia: The zx_channel_write() API supports up to 64 handles. | ||
| 6 | const size_t kMaxAttachedHandles = 64; | ||
| 7 | |||
| 8 | +#if defined(__i386__) && defined(OS_FREEBSD) | ||
| 9 | +const size_t kChannelMessageAlignment = 4; | ||
| 10 | +#else | ||
| 11 | static_assert(alignof(std::max_align_t) >= kChannelMessageAlignment, ""); | ||
| 12 | +#endif | ||
| 13 | Channel::AlignedBuffer MakeAlignedBuffer(size_t size) { | ||
| 14 | // Generic allocators (such as malloc) return a pointer that is suitably | ||
| 15 | // aligned for storing any type of object with a fundamental alignment | ||
diff --git a/www/chromium/patches/patch-mojo_core_embedder_features_h b/www/chromium/patches/patch-mojo_core_embedder_features_h new file mode 100644 index 0000000..b2dbaaf --- /dev/null +++ b/www/chromium/patches/patch-mojo_core_embedder_features_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: mojo/core/embedder/features.h | ||
| 2 | --- mojo/core/embedder/features.h.orig | ||
| 3 | +++ mojo/core/embedder/features.h | ||
| 4 | @@ -14,7 +14,7 @@ namespace mojo { | ||
| 5 | namespace core { | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_MAC) | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | COMPONENT_EXPORT(MOJO_CORE_EMBEDDER_FEATURES) | ||
| 11 | extern const base::Feature kMojoLinuxChannelSharedMem; | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-mojo_public_c_system_thunks_cc b/www/chromium/patches/patch-mojo_public_c_system_thunks_cc new file mode 100644 index 0000000..089563e --- /dev/null +++ b/www/chromium/patches/patch-mojo_public_c_system_thunks_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: mojo/public/c/system/thunks.cc | ||
| 2 | --- mojo/public/c/system/thunks.cc.orig | ||
| 3 | +++ mojo/public/c/system/thunks.cc | ||
| 4 | @@ -20,7 +20,7 @@ | ||
| 5 | #include "mojo/public/c/system/macros.h" | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/environment.h" | ||
| 11 | #include "base/files/file_path.h" | ||
| 12 | #include "base/scoped_native_library.h" | ||
| 13 | @@ -69,7 +69,7 @@ class CoreLibraryInitializer { | ||
| 14 | |||
| 15 | MojoResult LoadLibrary(base::FilePath library_path) { | ||
| 16 | #if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || \ | ||
| 17 | - BUILDFLAG(IS_FUCHSIA) | ||
| 18 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | if (library_ && library_->is_valid()) | ||
| 20 | return MOJO_RESULT_OK; | ||
| 21 | |||
| 22 | @@ -83,7 +83,7 @@ class CoreLibraryInitializer { | ||
| 23 | |||
| 24 | if (library_path.empty()) { | ||
| 25 | // Default to looking for the library in the current working directory. | ||
| 26 | -#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | const base::FilePath::CharType kDefaultLibraryPathValue[] = | ||
| 29 | FILE_PATH_LITERAL("./libmojo_core.so"); | ||
| 30 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 31 | @@ -139,7 +139,7 @@ class CoreLibraryInitializer { | ||
| 32 | |||
| 33 | private: | ||
| 34 | #if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || \ | ||
| 35 | - BUILDFLAG(IS_FUCHSIA) | ||
| 36 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 37 | absl::optional<base::ScopedNativeLibrary> library_; | ||
| 38 | #endif | ||
| 39 | }; | ||
diff --git a/www/chromium/patches/patch-mojo_public_js_mojo_bindings_resources_grd b/www/chromium/patches/patch-mojo_public_js_mojo_bindings_resources_grd new file mode 100644 index 0000000..c41e8b4 --- /dev/null +++ b/www/chromium/patches/patch-mojo_public_js_mojo_bindings_resources_grd | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: mojo/public/js/mojo_bindings_resources.grd | ||
| 2 | --- mojo/public/js/mojo_bindings_resources.grd.orig | ||
| 3 | +++ mojo/public/js/mojo_bindings_resources.grd | ||
| 4 | @@ -126,7 +126,7 @@ | ||
| 5 | use_base_dir="false" | ||
| 6 | resource_path="mojo/mojo/public/mojom/base/unguessable_token.mojom-webui.js" | ||
| 7 | type="BINDATA" /> | ||
| 8 | - <if expr="is_win or is_macosx or is_linux or is_android"> | ||
| 9 | + <if expr="is_win or is_macosx or is_posix or is_android"> | ||
| 10 | <include name="IDR_MOJO_PROCESS_ID_MOJOM_WEBUI_JS" | ||
| 11 | file="${root_gen_dir}/mojom-webui/mojo/public/mojom/base/process_id.mojom-webui.js" | ||
| 12 | use_base_dir="false" | ||
diff --git a/www/chromium/patches/patch-mojo_public_tools_bindings_mojom_gni b/www/chromium/patches/patch-mojo_public_tools_bindings_mojom_gni new file mode 100644 index 0000000..8281eb1 --- /dev/null +++ b/www/chromium/patches/patch-mojo_public_tools_bindings_mojom_gni | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | Index: mojo/public/tools/bindings/mojom.gni | ||
| 2 | --- mojo/public/tools/bindings/mojom.gni.orig | ||
| 3 | +++ mojo/public/tools/bindings/mojom.gni | ||
| 4 | @@ -690,6 +690,16 @@ template("mojom") { | ||
| 5 | enabled_features += [ "is_win" ] | ||
| 6 | } | ||
| 7 | |||
| 8 | + if (is_openbsd) { | ||
| 9 | + enabled_features += [ "is_openbsd" ] | ||
| 10 | + enabled_features += [ "is_bsd" ] | ||
| 11 | + } | ||
| 12 | + | ||
| 13 | + if (is_freebsd) { | ||
| 14 | + enabled_features += [ "is_freebsd" ] | ||
| 15 | + enabled_features += [ "is_bsd" ] | ||
| 16 | + } | ||
| 17 | + | ||
| 18 | action(parser_target_name) { | ||
| 19 | script = mojom_parser_script | ||
| 20 | inputs = mojom_parser_sources + [ build_metadata_filename ] | ||
diff --git a/www/chromium/patches/patch-net_BUILD_gn b/www/chromium/patches/patch-net_BUILD_gn new file mode 100644 index 0000000..3bca936 --- /dev/null +++ b/www/chromium/patches/patch-net_BUILD_gn | |||
| @@ -0,0 +1,101 @@ | |||
| 1 | Index: net/BUILD.gn | ||
| 2 | --- net/BUILD.gn.orig | ||
| 3 | +++ net/BUILD.gn | ||
| 4 | @@ -101,7 +101,7 @@ net_configs = [ | ||
| 5 | "//build/config/compiler:wexit_time_destructors", | ||
| 6 | ] | ||
| 7 | |||
| 8 | -if (is_linux || is_chromeos) { | ||
| 9 | +if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | net_configs += [ "//build/config/linux:libresolv" ] | ||
| 11 | } | ||
| 12 | |||
| 13 | @@ -1096,6 +1096,7 @@ component("net") { | ||
| 14 | "//net/dns:mdns_client", | ||
| 15 | "//net/dns/public", | ||
| 16 | "//net/third_party/quiche", | ||
| 17 | + "//sandbox/policy", | ||
| 18 | ] | ||
| 19 | |||
| 20 | allow_circular_includes_from = [ | ||
| 21 | @@ -1224,6 +1225,15 @@ component("net") { | ||
| 22 | ] | ||
| 23 | } | ||
| 24 | |||
| 25 | + if (is_bsd) { | ||
| 26 | + sources -= [ | ||
| 27 | + "base/address_tracker_linux.cc", | ||
| 28 | + "base/address_tracker_linux.h", | ||
| 29 | + "base/network_change_notifier_linux.cc", | ||
| 30 | + "base/network_interfaces_linux.cc", | ||
| 31 | + ] | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | if (is_mac) { | ||
| 35 | sources += [ | ||
| 36 | "base/network_notification_thread_mac.cc", | ||
| 37 | @@ -1356,7 +1366,7 @@ component("net") { | ||
| 38 | } | ||
| 39 | } | ||
| 40 | |||
| 41 | - if (is_android || is_chromeos_ash) { | ||
| 42 | + if (is_android || is_chromeos_ash || is_bsd) { | ||
| 43 | sources += [ | ||
| 44 | "base/network_change_notifier_posix.cc", | ||
| 45 | "base/network_change_notifier_posix.h", | ||
| 46 | @@ -1389,7 +1399,7 @@ component("net") { | ||
| 47 | } | ||
| 48 | |||
| 49 | # Use getifaddrs() on POSIX platforms, except Linux. | ||
| 50 | - if (is_posix && !is_linux && !is_chromeos) { | ||
| 51 | + if ((is_posix && !is_linux && !is_chromeos) || is_bsd) { | ||
| 52 | sources += [ | ||
| 53 | "base/network_interfaces_getifaddrs.cc", | ||
| 54 | "base/network_interfaces_getifaddrs.h", | ||
| 55 | @@ -2465,7 +2475,7 @@ if (is_linux || is_chromeos || is_mac) { | ||
| 56 | } | ||
| 57 | } | ||
| 58 | |||
| 59 | -if (is_linux || is_chromeos) { | ||
| 60 | +if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 61 | static_library("epoll_server") { | ||
| 62 | sources = [ | ||
| 63 | "tools/epoll_server/platform/impl/epoll_bug_impl.h", | ||
| 64 | @@ -4459,7 +4469,7 @@ test("net_unittests") { | ||
| 65 | ] | ||
| 66 | } | ||
| 67 | |||
| 68 | - if (is_linux || is_chromeos) { | ||
| 69 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 70 | sources += [ | ||
| 71 | "base/address_tracker_linux_unittest.cc", | ||
| 72 | "base/network_interfaces_linux_unittest.cc", | ||
| 73 | @@ -4533,6 +4543,10 @@ test("net_unittests") { | ||
| 74 | "//url:buildflags", | ||
| 75 | ] | ||
| 76 | |||
| 77 | + if (is_bsd) { | ||
| 78 | + deps += [ "//sandbox/policy" ] | ||
| 79 | + } | ||
| 80 | + | ||
| 81 | allow_circular_includes_from = [ "//net/third_party/quiche:quiche_tests" ] | ||
| 82 | |||
| 83 | if (enable_websockets) { | ||
| 84 | @@ -4580,7 +4594,7 @@ test("net_unittests") { | ||
| 85 | ] | ||
| 86 | } | ||
| 87 | |||
| 88 | - if (is_linux || is_chromeos) { | ||
| 89 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 90 | sources += [ | ||
| 91 | "quic/platform/impl/quic_epoll_clock_test.cc", | ||
| 92 | "quic/platform/impl/quic_flags_test.cc", | ||
| 93 | @@ -4728,7 +4742,7 @@ test("net_unittests") { | ||
| 94 | } | ||
| 95 | |||
| 96 | # Use getifaddrs() on POSIX platforms, except Linux. | ||
| 97 | - if (is_posix && !is_linux && !is_chromeos) { | ||
| 98 | + if (is_posix && !is_linux && !is_chromeos && !is_bsd) { | ||
| 99 | sources += [ "base/network_interfaces_getifaddrs_unittest.cc" ] | ||
| 100 | } | ||
| 101 | |||
diff --git a/www/chromium/patches/patch-net_base_network_change_notifier_cc b/www/chromium/patches/patch-net_base_network_change_notifier_cc new file mode 100644 index 0000000..1e09357 --- /dev/null +++ b/www/chromium/patches/patch-net_base_network_change_notifier_cc | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Index: net/base/network_change_notifier.cc | ||
| 2 | --- net/base/network_change_notifier.cc.orig | ||
| 3 | +++ net/base/network_change_notifier.cc | ||
| 4 | @@ -39,7 +39,7 @@ | ||
| 5 | #include "net/base/network_change_notifier_linux.h" | ||
| 6 | #elif BUILDFLAG(IS_APPLE) | ||
| 7 | #include "net/base/network_change_notifier_mac.h" | ||
| 8 | -#elif BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#elif BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "net/base/network_change_notifier_posix.h" | ||
| 11 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 12 | #include "net/base/network_change_notifier_fuchsia.h" | ||
| 13 | @@ -321,6 +321,9 @@ std::unique_ptr<NetworkChangeNotifier> NetworkChangeNo | ||
| 14 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 15 | return std::make_unique<NetworkChangeNotifierFuchsia>( | ||
| 16 | /*require_wlan=*/false); | ||
| 17 | +#elif BUILDFLAG(IS_BSD) | ||
| 18 | + return std::make_unique<MockNetworkChangeNotifier>( | ||
| 19 | + /*dns_config_notifier*/nullptr); | ||
| 20 | #else | ||
| 21 | NOTIMPLEMENTED(); | ||
| 22 | return NULL; | ||
diff --git a/www/chromium/patches/patch-net_base_network_change_notifier_posix_cc b/www/chromium/patches/patch-net_base_network_change_notifier_posix_cc new file mode 100644 index 0000000..9b1ceca --- /dev/null +++ b/www/chromium/patches/patch-net_base_network_change_notifier_posix_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/base/network_change_notifier_posix.cc | ||
| 2 | --- net/base/network_change_notifier_posix.cc.orig | ||
| 3 | +++ net/base/network_change_notifier_posix.cc | ||
| 4 | @@ -93,7 +93,7 @@ void NetworkChangeNotifierPosix::GetCurrentMaxBandwidt | ||
| 5 | NetworkChangeNotifier::NetworkChangeCalculatorParams | ||
| 6 | NetworkChangeNotifierPosix::NetworkChangeCalculatorParamsPosix() { | ||
| 7 | NetworkChangeCalculatorParams params; | ||
| 8 | -#if BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 9 | +#if BUILDFLAG(IS_CHROMEOS_ASH) || defined(OS_BSD) | ||
| 10 | // Delay values arrived at by simple experimentation and adjusted so as to | ||
| 11 | // produce a single signal when switching between network connections. | ||
| 12 | params.ip_address_offline_delay_ = base::Milliseconds(4000); | ||
diff --git a/www/chromium/patches/patch-net_base_network_interfaces_posix_h b/www/chromium/patches/patch-net_base_network_interfaces_posix_h new file mode 100644 index 0000000..70a58d8 --- /dev/null +++ b/www/chromium/patches/patch-net_base_network_interfaces_posix_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/base/network_interfaces_posix.h | ||
| 2 | --- net/base/network_interfaces_posix.h.orig | ||
| 3 | +++ net/base/network_interfaces_posix.h | ||
| 4 | @@ -8,6 +8,8 @@ | ||
| 5 | // This file provides some basic functionality shared between | ||
| 6 | // network_interfaces_linux.cc and network_interfaces_getifaddrs.cc. | ||
| 7 | |||
| 8 | +#include <sys/socket.h> | ||
| 9 | + | ||
| 10 | #include <string> | ||
| 11 | |||
| 12 | struct sockaddr; | ||
diff --git a/www/chromium/patches/patch-net_cert_cert_verifier_cc b/www/chromium/patches/patch-net_cert_cert_verifier_cc new file mode 100644 index 0000000..7a92512 --- /dev/null +++ b/www/chromium/patches/patch-net_cert_cert_verifier_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/cert/cert_verifier.cc | ||
| 2 | --- net/cert/cert_verifier.cc.orig | ||
| 3 | +++ net/cert/cert_verifier.cc | ||
| 4 | @@ -78,7 +78,7 @@ bool CertVerifier::RequestParams::operator<( | ||
| 5 | std::unique_ptr<CertVerifier> CertVerifier::CreateDefaultWithoutCaching( | ||
| 6 | scoped_refptr<CertNetFetcher> cert_net_fetcher) { | ||
| 7 | scoped_refptr<CertVerifyProc> verify_proc; | ||
| 8 | -#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | verify_proc = | ||
| 11 | CertVerifyProc::CreateBuiltinVerifyProc(std::move(cert_net_fetcher)); | ||
| 12 | #elif BUILDFLAG(BUILTIN_CERT_VERIFIER_FEATURE_SUPPORTED) | ||
diff --git a/www/chromium/patches/patch-net_cert_cert_verify_proc_cc b/www/chromium/patches/patch-net_cert_cert_verify_proc_cc new file mode 100644 index 0000000..4f3e437 --- /dev/null +++ b/www/chromium/patches/patch-net_cert_cert_verify_proc_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/cert/cert_verify_proc.cc | ||
| 2 | --- net/cert/cert_verify_proc.cc.orig | ||
| 3 | +++ net/cert/cert_verify_proc.cc | ||
| 4 | @@ -552,7 +552,7 @@ base::Value CertVerifyParams(X509Certificate* cert, | ||
| 5 | |||
| 6 | } // namespace | ||
| 7 | |||
| 8 | -#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 9 | +#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) | ||
| 10 | // static | ||
| 11 | scoped_refptr<CertVerifyProc> CertVerifyProc::CreateSystemVerifyProc( | ||
| 12 | scoped_refptr<CertNetFetcher> cert_net_fetcher) { | ||
diff --git a/www/chromium/patches/patch-net_cert_cert_verify_proc_h b/www/chromium/patches/patch-net_cert_cert_verify_proc_h new file mode 100644 index 0000000..f9c8018 --- /dev/null +++ b/www/chromium/patches/patch-net_cert_cert_verify_proc_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/cert/cert_verify_proc.h | ||
| 2 | --- net/cert/cert_verify_proc.h.orig | ||
| 3 | +++ net/cert/cert_verify_proc.h | ||
| 4 | @@ -79,7 +79,7 @@ class NET_EXPORT CertVerifyProc | ||
| 5 | kMaxValue = kOther | ||
| 6 | }; | ||
| 7 | |||
| 8 | -#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 9 | +#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) | ||
| 10 | // Creates and returns a CertVerifyProc that uses the system verifier. | ||
| 11 | // |cert_net_fetcher| may not be used, depending on the implementation. | ||
| 12 | static scoped_refptr<CertVerifyProc> CreateSystemVerifyProc( | ||
diff --git a/www/chromium/patches/patch-net_cert_cert_verify_proc_unittest_cc b/www/chromium/patches/patch-net_cert_cert_verify_proc_unittest_cc new file mode 100644 index 0000000..30fade3 --- /dev/null +++ b/www/chromium/patches/patch-net_cert_cert_verify_proc_unittest_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/cert/cert_verify_proc_unittest.cc | ||
| 2 | --- net/cert/cert_verify_proc_unittest.cc.orig | ||
| 3 | +++ net/cert/cert_verify_proc_unittest.cc | ||
| 4 | @@ -225,7 +225,7 @@ const std::vector<CertVerifyProcType> kAllCertVerifier | ||
| 5 | CERT_VERIFY_PROC_MAC, CERT_VERIFY_PROC_BUILTIN | ||
| 6 | #elif BUILDFLAG(IS_WIN) | ||
| 7 | CERT_VERIFY_PROC_WIN | ||
| 8 | -#elif BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | CERT_VERIFY_PROC_BUILTIN | ||
| 11 | #else | ||
| 12 | #error Unsupported platform | ||
diff --git a/www/chromium/patches/patch-net_cert_test_root_certs_unittest_cc b/www/chromium/patches/patch-net_cert_test_root_certs_unittest_cc new file mode 100644 index 0000000..0b87938 --- /dev/null +++ b/www/chromium/patches/patch-net_cert_test_root_certs_unittest_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/cert/test_root_certs_unittest.cc | ||
| 2 | --- net/cert/test_root_certs_unittest.cc.orig | ||
| 3 | +++ net/cert/test_root_certs_unittest.cc | ||
| 4 | @@ -33,7 +33,7 @@ const char kRootCertificateFile[] = "root_ca_cert.pem" | ||
| 5 | const char kGoodCertificateFile[] = "ok_cert.pem"; | ||
| 6 | |||
| 7 | scoped_refptr<CertVerifyProc> CreateCertVerifyProc() { | ||
| 8 | -#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | return CertVerifyProc::CreateBuiltinVerifyProc(/*cert_net_fetcher=*/nullptr); | ||
| 11 | #elif BUILDFLAG(BUILTIN_CERT_VERIFIER_FEATURE_SUPPORTED) | ||
| 12 | if (base::FeatureList::IsEnabled(features::kCertVerifierBuiltinFeature)) { | ||
diff --git a/www/chromium/patches/patch-net_disk_cache_blockfile_disk_format_h b/www/chromium/patches/patch-net_disk_cache_blockfile_disk_format_h new file mode 100644 index 0000000..506788b --- /dev/null +++ b/www/chromium/patches/patch-net_disk_cache_blockfile_disk_format_h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: net/disk_cache/blockfile/disk_format.h | ||
| 2 | --- net/disk_cache/blockfile/disk_format.h.orig | ||
| 3 | +++ net/disk_cache/blockfile/disk_format.h | ||
| 4 | @@ -149,7 +149,9 @@ struct RankingsNode { | ||
| 5 | }; | ||
| 6 | #pragma pack(pop) | ||
| 7 | |||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | static_assert(sizeof(RankingsNode) == 36, "bad RankingsNode"); | ||
| 10 | +#endif | ||
| 11 | |||
| 12 | } // namespace disk_cache | ||
| 13 | |||
diff --git a/www/chromium/patches/patch-net_disk_cache_simple_simple_file_tracker_cc b/www/chromium/patches/patch-net_disk_cache_simple_simple_file_tracker_cc new file mode 100644 index 0000000..09bb1bd --- /dev/null +++ b/www/chromium/patches/patch-net_disk_cache_simple_simple_file_tracker_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: net/disk_cache/simple/simple_file_tracker.cc | ||
| 2 | --- net/disk_cache/simple/simple_file_tracker.cc.orig | ||
| 3 | +++ net/disk_cache/simple/simple_file_tracker.cc | ||
| 4 | @@ -28,7 +28,17 @@ void RecordFileDescripterLimiterOp(FileDescriptorLimit | ||
| 5 | } // namespace | ||
| 6 | |||
| 7 | SimpleFileTracker::SimpleFileTracker(int file_limit) | ||
| 8 | +#if defined(OS_OPENBSD) | ||
| 9 | +{ | ||
| 10 | + // cap the file descriptor limit at 85% of the size of the | ||
| 11 | + // file descriptor table and also substract the amount of | ||
| 12 | + // currently used file descriptors as this should give us | ||
| 13 | + // enough reserve to avoid hitting the limit | ||
| 14 | + file_limit_ = (getdtablesize() * 0.85) - getdtablecount(); | ||
| 15 | +} | ||
| 16 | +#else | ||
| 17 | : file_limit_(file_limit) {} | ||
| 18 | +#endif | ||
| 19 | |||
| 20 | SimpleFileTracker::~SimpleFileTracker() { | ||
| 21 | DCHECK(lru_.empty()); | ||
diff --git a/www/chromium/patches/patch-net_dns_BUILD_gn b/www/chromium/patches/patch-net_dns_BUILD_gn new file mode 100644 index 0000000..7ecf87c --- /dev/null +++ b/www/chromium/patches/patch-net_dns_BUILD_gn | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Index: net/dns/BUILD.gn | ||
| 2 | --- net/dns/BUILD.gn.orig | ||
| 3 | +++ net/dns/BUILD.gn | ||
| 4 | @@ -114,7 +114,7 @@ source_set("dns") { | ||
| 5 | "dns_config_service_android.cc", | ||
| 6 | "dns_config_service_android.h", | ||
| 7 | ] | ||
| 8 | - } else if (is_linux) { | ||
| 9 | + } else if (is_linux && !is_bsd) { | ||
| 10 | sources += [ | ||
| 11 | "dns_config_service_linux.cc", | ||
| 12 | "dns_config_service_linux.h", | ||
| 13 | @@ -155,6 +155,7 @@ source_set("dns") { | ||
| 14 | ":host_resolver_manager", | ||
| 15 | ":mdns_client", | ||
| 16 | "//net:net_public_deps", | ||
| 17 | + "//printing/buildflags", | ||
| 18 | ] | ||
| 19 | |||
| 20 | allow_circular_includes_from = [ | ||
| 21 | @@ -416,9 +417,9 @@ source_set("tests") { | ||
| 22 | |||
| 23 | if (is_android) { | ||
| 24 | sources += [ "dns_config_service_android_unittest.cc" ] | ||
| 25 | - } else if (is_linux) { | ||
| 26 | + } else if (is_linux && !is_bsd) { | ||
| 27 | sources += [ "dns_config_service_linux_unittest.cc" ] | ||
| 28 | - } else if (is_posix) { | ||
| 29 | + } else if (is_posix && !is_bsd) { | ||
| 30 | sources += [ "dns_config_service_posix_unittest.cc" ] | ||
| 31 | } | ||
| 32 | |||
diff --git a/www/chromium/patches/patch-net_dns_address_sorter_posix_cc b/www/chromium/patches/patch-net_dns_address_sorter_posix_cc new file mode 100644 index 0000000..d071de6 --- /dev/null +++ b/www/chromium/patches/patch-net_dns_address_sorter_posix_cc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: net/dns/address_sorter_posix.cc | ||
| 2 | --- net/dns/address_sorter_posix.cc.orig | ||
| 3 | +++ net/dns/address_sorter_posix.cc | ||
| 4 | @@ -18,6 +18,7 @@ | ||
| 5 | #include <ifaddrs.h> | ||
| 6 | #include <net/if.h> | ||
| 7 | #include <netinet/in_var.h> | ||
| 8 | +#include <netinet6/in6_var.h> | ||
| 9 | #include <string.h> | ||
| 10 | #include <sys/ioctl.h> | ||
| 11 | #endif | ||
diff --git a/www/chromium/patches/patch-net_dns_dns_config_service_posix_cc b/www/chromium/patches/patch-net_dns_dns_config_service_posix_cc new file mode 100644 index 0000000..a6f4ebc --- /dev/null +++ b/www/chromium/patches/patch-net_dns_dns_config_service_posix_cc | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | Index: net/dns/dns_config_service_posix.cc | ||
| 2 | --- net/dns/dns_config_service_posix.cc.orig | ||
| 3 | +++ net/dns/dns_config_service_posix.cc | ||
| 4 | @@ -33,6 +33,11 @@ | ||
| 5 | #include "net/dns/dns_config_watcher_mac.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if BUILDFLAG(IS_BSD) | ||
| 9 | +#include "base/command_line.h" | ||
| 10 | +#include "sandbox/policy/switches.h" | ||
| 11 | +#endif | ||
| 12 | + | ||
| 13 | namespace net { | ||
| 14 | |||
| 15 | namespace internal { | ||
| 16 | @@ -129,6 +134,11 @@ class DnsConfigServicePosix::Watcher : public DnsConfi | ||
| 17 | |||
| 18 | bool Watch() override { | ||
| 19 | CheckOnCorrectSequence(); | ||
| 20 | + | ||
| 21 | +// pledge + unveil | ||
| 22 | + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | ||
| 23 | + if (!command_line->HasSwitch(sandbox::policy::switches::kNoSandbox)) | ||
| 24 | + return false; | ||
| 25 | |||
| 26 | bool success = true; | ||
| 27 | if (!config_watcher_.Watch(base::BindRepeating(&Watcher::OnConfigChanged, | ||
diff --git a/www/chromium/patches/patch-net_dns_dns_reloader_cc b/www/chromium/patches/patch-net_dns_dns_reloader_cc new file mode 100644 index 0000000..7ee9cbc --- /dev/null +++ b/www/chromium/patches/patch-net_dns_dns_reloader_cc | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Index: net/dns/dns_reloader.cc | ||
| 2 | --- net/dns/dns_reloader.cc.orig | ||
| 3 | +++ net/dns/dns_reloader.cc | ||
| 4 | @@ -6,7 +6,7 @@ | ||
| 5 | |||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_OPENBSD) && \ | ||
| 9 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) && \ | ||
| 10 | !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_FUCHSIA) | ||
| 11 | |||
| 12 | #include <resolv.h> | ||
| 13 | @@ -113,5 +113,5 @@ void DnsReloaderMaybeReload() { | ||
| 14 | |||
| 15 | } // namespace net | ||
| 16 | |||
| 17 | -#endif // BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_OPENBSD) | ||
| 18 | +#endif // BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) && | ||
| 19 | // && !BUILDFLAG(IS_ANDROID) | ||
diff --git a/www/chromium/patches/patch-net_dns_dns_reloader_h b/www/chromium/patches/patch-net_dns_dns_reloader_h new file mode 100644 index 0000000..968d860 --- /dev/null +++ b/www/chromium/patches/patch-net_dns_dns_reloader_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/dns/dns_reloader.h | ||
| 2 | --- net/dns/dns_reloader.h.orig | ||
| 3 | +++ net/dns/dns_reloader.h | ||
| 4 | @@ -7,7 +7,7 @@ | ||
| 5 | |||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) | ||
| 10 | namespace net { | ||
| 11 | |||
| 12 | // Call on the network thread before calling DnsReloaderMaybeReload() anywhere. | ||
diff --git a/www/chromium/patches/patch-net_dns_dns_util_cc b/www/chromium/patches/patch-net_dns_dns_util_cc new file mode 100644 index 0000000..6a5941f --- /dev/null +++ b/www/chromium/patches/patch-net_dns_dns_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/dns/dns_util.cc | ||
| 2 | --- net/dns/dns_util.cc.orig | ||
| 3 | +++ net/dns/dns_util.cc | ||
| 4 | @@ -27,6 +27,8 @@ | ||
| 5 | #include "net/third_party/uri_template/uri_template.h" | ||
| 6 | #include "third_party/abseil-cpp/absl/types/optional.h" | ||
| 7 | |||
| 8 | +#include <sys/socket.h> | ||
| 9 | + | ||
| 10 | #if BUILDFLAG(IS_POSIX) | ||
| 11 | #include <netinet/in.h> | ||
| 12 | #include <net/if.h> | ||
diff --git a/www/chromium/patches/patch-net_dns_host_resolver_manager_cc b/www/chromium/patches/patch-net_dns_host_resolver_manager_cc new file mode 100644 index 0000000..090718d --- /dev/null +++ b/www/chromium/patches/patch-net_dns_host_resolver_manager_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/dns/host_resolver_manager.cc | ||
| 2 | --- net/dns/host_resolver_manager.cc.orig | ||
| 3 | +++ net/dns/host_resolver_manager.cc | ||
| 4 | @@ -2979,7 +2979,7 @@ HostResolverManager::HostResolverManager( | ||
| 5 | NetworkChangeNotifier::AddConnectionTypeObserver(this); | ||
| 6 | if (system_dns_config_notifier_) | ||
| 7 | system_dns_config_notifier_->AddObserver(this); | ||
| 8 | -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_OPENBSD) && \ | ||
| 9 | +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) && \ | ||
| 10 | !BUILDFLAG(IS_ANDROID) | ||
| 11 | EnsureDnsReloaderInit(); | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-net_dns_host_resolver_proc_cc b/www/chromium/patches/patch-net_dns_host_resolver_proc_cc new file mode 100644 index 0000000..73955f6 --- /dev/null +++ b/www/chromium/patches/patch-net_dns_host_resolver_proc_cc | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Index: net/dns/host_resolver_proc.cc | ||
| 2 | --- net/dns/host_resolver_proc.cc.orig | ||
| 3 | +++ net/dns/host_resolver_proc.cc | ||
| 4 | @@ -19,10 +19,6 @@ | ||
| 5 | #include "net/dns/dns_util.h" | ||
| 6 | #include "net/dns/host_resolver.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_OPENBSD) | ||
| 9 | -#define AI_ADDRCONFIG 0 | ||
| 10 | -#endif | ||
| 11 | - | ||
| 12 | namespace net { | ||
| 13 | |||
| 14 | HostResolverProc* HostResolverProc::default_proc_ = nullptr; | ||
| 15 | @@ -192,7 +188,7 @@ int SystemHostResolverCall(const std::string& host, | ||
| 16 | base::BlockingType::WILL_BLOCK); | ||
| 17 | |||
| 18 | #if BUILDFLAG(IS_POSIX) && \ | ||
| 19 | - !(BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_OPENBSD) || BUILDFLAG(IS_ANDROID)) | ||
| 20 | + !(BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) || BUILDFLAG(IS_ANDROID)) | ||
| 21 | DnsReloaderMaybeReload(); | ||
| 22 | #endif | ||
| 23 | auto [ai, err, os_error] = AddressInfo::Get(host, hints, nullptr, network); | ||
diff --git a/www/chromium/patches/patch-net_dns_public_BUILD_gn b/www/chromium/patches/patch-net_dns_public_BUILD_gn new file mode 100644 index 0000000..8de3579 --- /dev/null +++ b/www/chromium/patches/patch-net_dns_public_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/dns/public/BUILD.gn | ||
| 2 | --- net/dns/public/BUILD.gn.orig | ||
| 3 | +++ net/dns/public/BUILD.gn | ||
| 4 | @@ -74,7 +74,7 @@ source_set("tests") { | ||
| 5 | "doh_provider_entry_unittest.cc", | ||
| 6 | ] | ||
| 7 | |||
| 8 | - if (is_posix && !is_android) { | ||
| 9 | + if (is_posix && !is_android && !is_bsd) { | ||
| 10 | sources += [ "resolv_reader_unittest.cc" ] | ||
| 11 | } | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-net_dns_public_resolv_reader_h b/www/chromium/patches/patch-net_dns_public_resolv_reader_h new file mode 100644 index 0000000..1da75f6 --- /dev/null +++ b/www/chromium/patches/patch-net_dns_public_resolv_reader_h | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: net/dns/public/resolv_reader.h | ||
| 2 | --- net/dns/public/resolv_reader.h.orig | ||
| 3 | +++ net/dns/public/resolv_reader.h | ||
| 4 | @@ -5,6 +5,7 @@ | ||
| 5 | #ifndef NET_DNS_PUBLIC_RESOLV_READER_H_ | ||
| 6 | #define NET_DNS_PUBLIC_RESOLV_READER_H_ | ||
| 7 | |||
| 8 | +#include <netinet/in.h> | ||
| 9 | #include <resolv.h> | ||
| 10 | |||
| 11 | #include <memory> | ||
diff --git a/www/chromium/patches/patch-net_dns_public_scoped_res_state_h b/www/chromium/patches/patch-net_dns_public_scoped_res_state_h new file mode 100644 index 0000000..ddc8567 --- /dev/null +++ b/www/chromium/patches/patch-net_dns_public_scoped_res_state_h | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: net/dns/public/scoped_res_state.h | ||
| 2 | --- net/dns/public/scoped_res_state.h.orig | ||
| 3 | +++ net/dns/public/scoped_res_state.h | ||
| 4 | @@ -5,6 +5,7 @@ | ||
| 5 | #ifndef NET_DNS_PUBLIC_SCOPED_RES_STATE_H_ | ||
| 6 | #define NET_DNS_PUBLIC_SCOPED_RES_STATE_H_ | ||
| 7 | |||
| 8 | +#include <netinet/in.h> | ||
| 9 | #include <resolv.h> | ||
| 10 | |||
| 11 | #include "build/build_config.h" | ||
diff --git a/www/chromium/patches/patch-net_http_http_auth_gssapi_posix_cc b/www/chromium/patches/patch-net_http_http_auth_gssapi_posix_cc new file mode 100644 index 0000000..29c89da --- /dev/null +++ b/www/chromium/patches/patch-net_http_http_auth_gssapi_posix_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: net/http/http_auth_gssapi_posix.cc | ||
| 2 | --- net/http/http_auth_gssapi_posix.cc.orig | ||
| 3 | +++ net/http/http_auth_gssapi_posix.cc | ||
| 4 | @@ -370,8 +370,9 @@ base::NativeLibrary GSSAPISharedLibrary::LoadSharedLib | ||
| 5 | static const char* const kDefaultLibraryNames[] = { | ||
| 6 | #if BUILDFLAG(IS_APPLE) | ||
| 7 | "/System/Library/Frameworks/GSS.framework/GSS" | ||
| 8 | -#elif BUILDFLAG(IS_OPENBSD) | ||
| 9 | - "libgssapi.so" // Heimdal - OpenBSD | ||
| 10 | +#elif BUILDFLAG(IS_BSD) | ||
| 11 | + "libgssapi_krb5.so.2", // MIT Kerberos - FreeBSD | ||
| 12 | + "libgssapi.so" // Heimdal - OpenBSD, FreeBSD | ||
| 13 | #else | ||
| 14 | "libgssapi_krb5.so.2", // MIT Kerberos - FC, Suse10, Debian | ||
| 15 | "libgssapi.so.4", // Heimdal - Suse10, MDK | ||
diff --git a/www/chromium/patches/patch-net_http_http_auth_gssapi_posix_h b/www/chromium/patches/patch-net_http_http_auth_gssapi_posix_h new file mode 100644 index 0000000..23252b6 --- /dev/null +++ b/www/chromium/patches/patch-net_http_http_auth_gssapi_posix_h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: net/http/http_auth_gssapi_posix.h | ||
| 2 | --- net/http/http_auth_gssapi_posix.h.orig | ||
| 3 | +++ net/http/http_auth_gssapi_posix.h | ||
| 4 | @@ -20,6 +20,9 @@ | ||
| 5 | #if BUILDFLAG(IS_APPLE) | ||
| 6 | #include <GSS/gssapi.h> | ||
| 7 | #elif BUILDFLAG(IS_FREEBSD) | ||
| 8 | +#ifndef GSS_C_DELEG_POLICY_FLAG | ||
| 9 | +#define GSS_C_DELEG_POLICY_FLAG 32768 | ||
| 10 | +#endif | ||
| 11 | #include <gssapi/gssapi.h> | ||
| 12 | #else | ||
| 13 | #include <gssapi.h> | ||
diff --git a/www/chromium/patches/patch-net_http_http_network_session_cc b/www/chromium/patches/patch-net_http_http_network_session_cc new file mode 100644 index 0000000..96f1f0f --- /dev/null +++ b/www/chromium/patches/patch-net_http_http_network_session_cc | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: net/http/http_network_session.cc | ||
| 2 | --- net/http/http_network_session.cc.orig | ||
| 3 | +++ net/http/http_network_session.cc | ||
| 4 | @@ -20,7 +20,9 @@ | ||
| 5 | #include "build/build_config.h" | ||
| 6 | #include "net/base/features.h" | ||
| 7 | #include "net/dns/host_resolver.h" | ||
| 8 | +#if defined(USE_KERBEROS) | ||
| 9 | #include "net/http/http_auth_handler_factory.h" | ||
| 10 | +#endif | ||
| 11 | #include "net/http/http_response_body_drainer.h" | ||
| 12 | #include "net/http/http_stream_factory.h" | ||
| 13 | #include "net/http/url_security_manager.h" | ||
diff --git a/www/chromium/patches/patch-net_proxy_resolution_configured_proxy_resolution_service_cc b/www/chromium/patches/patch-net_proxy_resolution_configured_proxy_resolution_service_cc new file mode 100644 index 0000000..ddfbdcd --- /dev/null +++ b/www/chromium/patches/patch-net_proxy_resolution_configured_proxy_resolution_service_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: net/proxy_resolution/configured_proxy_resolution_service.cc | ||
| 2 | --- net/proxy_resolution/configured_proxy_resolution_service.cc.orig | ||
| 3 | +++ net/proxy_resolution/configured_proxy_resolution_service.cc | ||
| 4 | @@ -52,7 +52,7 @@ | ||
| 5 | #elif BUILDFLAG(IS_MAC) | ||
| 6 | #include "net/proxy_resolution/proxy_config_service_mac.h" | ||
| 7 | #include "net/proxy_resolution/proxy_resolver_mac.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "net/proxy_resolution/proxy_config_service_linux.h" | ||
| 11 | #elif BUILDFLAG(IS_ANDROID) | ||
| 12 | #include "net/proxy_resolution/proxy_config_service_android.h" | ||
| 13 | @@ -64,7 +64,7 @@ namespace net { | ||
| 14 | |||
| 15 | namespace { | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | constexpr net::NetworkTrafficAnnotationTag kSystemProxyConfigTrafficAnnotation = | ||
| 20 | net::DefineNetworkTrafficAnnotation("proxy_config_system", R"( | ||
| 21 | semantics { | ||
| 22 | @@ -1422,7 +1422,7 @@ ConfiguredProxyResolutionService::CreateSystemProxyCon | ||
| 23 | << "profile_io_data.cc::CreateProxyConfigService and this should " | ||
| 24 | << "be used only for examples."; | ||
| 25 | return std::make_unique<UnsetProxyConfigService>(); | ||
| 26 | -#elif BUILDFLAG(IS_LINUX) | ||
| 27 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | std::unique_ptr<ProxyConfigServiceLinux> linux_config_service( | ||
| 29 | new ProxyConfigServiceLinux()); | ||
| 30 | |||
diff --git a/www/chromium/patches/patch-net_proxy_resolution_proxy_config_service_linux_cc b/www/chromium/patches/patch-net_proxy_resolution_proxy_config_service_linux_cc new file mode 100644 index 0000000..823ea93 --- /dev/null +++ b/www/chromium/patches/patch-net_proxy_resolution_proxy_config_service_linux_cc | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | Index: net/proxy_resolution/proxy_config_service_linux.cc | ||
| 2 | --- net/proxy_resolution/proxy_config_service_linux.cc.orig | ||
| 3 | +++ net/proxy_resolution/proxy_config_service_linux.cc | ||
| 4 | @@ -6,7 +6,9 @@ | ||
| 5 | |||
| 6 | #include <errno.h> | ||
| 7 | #include <limits.h> | ||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | #include <sys/inotify.h> | ||
| 10 | +#endif | ||
| 11 | #include <unistd.h> | ||
| 12 | |||
| 13 | #include <map> | ||
| 14 | @@ -506,6 +508,7 @@ bool SettingGetterImplGSettings::CheckVersion( | ||
| 15 | } | ||
| 16 | #endif // defined(USE_GIO) | ||
| 17 | |||
| 18 | +#if !defined(OS_BSD) | ||
| 19 | // Converts |value| from a decimal string to an int. If there was a failure | ||
| 20 | // parsing, returns |default_value|. | ||
| 21 | int StringToIntOrDefault(base::StringPiece value, int default_value) { | ||
| 22 | @@ -1007,6 +1010,7 @@ class SettingGetterImplKDE : public ProxyConfigService | ||
| 23 | // events on. | ||
| 24 | scoped_refptr<base::SequencedTaskRunner> file_task_runner_; | ||
| 25 | }; | ||
| 26 | +#endif | ||
| 27 | |||
| 28 | } // namespace | ||
| 29 | |||
| 30 | @@ -1222,9 +1226,11 @@ ProxyConfigServiceLinux::Delegate::Delegate( | ||
| 31 | case base::nix::DESKTOP_ENVIRONMENT_KDE3: | ||
| 32 | case base::nix::DESKTOP_ENVIRONMENT_KDE4: | ||
| 33 | case base::nix::DESKTOP_ENVIRONMENT_KDE5: | ||
| 34 | +#if !defined(OS_BSD) | ||
| 35 | setting_getter_ = | ||
| 36 | std::make_unique<SettingGetterImplKDE>(env_var_getter_.get()); | ||
| 37 | break; | ||
| 38 | +#endif | ||
| 39 | case base::nix::DESKTOP_ENVIRONMENT_XFCE: | ||
| 40 | case base::nix::DESKTOP_ENVIRONMENT_OTHER: | ||
| 41 | break; | ||
diff --git a/www/chromium/patches/patch-net_socket_socket_posix_cc b/www/chromium/patches/patch-net_socket_socket_posix_cc new file mode 100644 index 0000000..50cccde --- /dev/null +++ b/www/chromium/patches/patch-net_socket_socket_posix_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/socket/socket_posix.cc | ||
| 2 | --- net/socket/socket_posix.cc.orig | ||
| 3 | +++ net/socket/socket_posix.cc | ||
| 4 | @@ -519,7 +519,7 @@ void SocketPosix::ReadCompleted() { | ||
| 5 | } | ||
| 6 | |||
| 7 | int SocketPosix::DoWrite(IOBuffer* buf, int buf_len) { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | // Disable SIGPIPE for this write. Although Chromium globally disables | ||
| 11 | // SIGPIPE, the net stack may be used in other consumers which do not do | ||
| 12 | // this. MSG_NOSIGNAL is a Linux-only API. On OS X, this is a setsockopt on | ||
diff --git a/www/chromium/patches/patch-net_socket_socks5_client_socket_cc b/www/chromium/patches/patch-net_socket_socks5_client_socket_cc new file mode 100644 index 0000000..9a3d316 --- /dev/null +++ b/www/chromium/patches/patch-net_socket_socks5_client_socket_cc | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: net/socket/socks5_client_socket.cc | ||
| 2 | --- net/socket/socks5_client_socket.cc.orig | ||
| 3 | +++ net/socket/socks5_client_socket.cc | ||
| 4 | @@ -20,6 +20,9 @@ | ||
| 5 | #include "net/log/net_log_event_type.h" | ||
| 6 | #include "net/traffic_annotation/network_traffic_annotation.h" | ||
| 7 | |||
| 8 | +#include <sys/types.h> | ||
| 9 | +#include <netinet/in.h> | ||
| 10 | + | ||
| 11 | namespace net { | ||
| 12 | |||
| 13 | const unsigned int SOCKS5ClientSocket::kGreetReadHeaderSize = 2; | ||
diff --git a/www/chromium/patches/patch-net_socket_tcp_socket_posix_cc b/www/chromium/patches/patch-net_socket_tcp_socket_posix_cc new file mode 100644 index 0000000..b5dc8d8 --- /dev/null +++ b/www/chromium/patches/patch-net_socket_tcp_socket_posix_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: net/socket/tcp_socket_posix.cc | ||
| 2 | --- net/socket/tcp_socket_posix.cc.orig | ||
| 3 | +++ net/socket/tcp_socket_posix.cc | ||
| 4 | @@ -96,6 +96,17 @@ bool SetTCPKeepAlive(int fd, bool enable, int delay) { | ||
| 5 | PLOG(ERROR) << "Failed to set TCP_KEEPALIVE on fd: " << fd; | ||
| 6 | return false; | ||
| 7 | } | ||
| 8 | +#elif BUILDFLAG(IS_FREEBSD) | ||
| 9 | + // Set seconds until first TCP keep alive. | ||
| 10 | + if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &delay, sizeof(delay))) { | ||
| 11 | + PLOG(ERROR) << "Failed to set TCP_KEEPIDLE on fd: " << fd; | ||
| 12 | + return false; | ||
| 13 | + } | ||
| 14 | + // Set seconds between TCP keep alives. | ||
| 15 | + if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, &delay, sizeof(delay))) { | ||
| 16 | + PLOG(ERROR) << "Failed to set TCP_KEEPINTVL on fd: " << fd; | ||
| 17 | + return false; | ||
| 18 | + } | ||
| 19 | #endif | ||
| 20 | return true; | ||
| 21 | } | ||
diff --git a/www/chromium/patches/patch-net_socket_udp_socket_posix_cc b/www/chromium/patches/patch-net_socket_udp_socket_posix_cc new file mode 100644 index 0000000..1c86968 --- /dev/null +++ b/www/chromium/patches/patch-net_socket_udp_socket_posix_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/socket/udp_socket_posix.cc | ||
| 2 | --- net/socket/udp_socket_posix.cc.orig | ||
| 3 | +++ net/socket/udp_socket_posix.cc | ||
| 4 | @@ -574,7 +574,7 @@ int UDPSocketPosix::SetDoNotFragment() { | ||
| 5 | } | ||
| 6 | |||
| 7 | void UDPSocketPosix::SetMsgConfirm(bool confirm) { | ||
| 8 | -#if !BUILDFLAG(IS_APPLE) | ||
| 9 | +#if !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) | ||
| 10 | if (confirm) { | ||
| 11 | sendto_flags_ |= MSG_CONFIRM; | ||
| 12 | } else { | ||
diff --git a/www/chromium/patches/patch-net_socket_udp_socket_unittest_cc b/www/chromium/patches/patch-net_socket_udp_socket_unittest_cc new file mode 100644 index 0000000..ee28b11 --- /dev/null +++ b/www/chromium/patches/patch-net_socket_udp_socket_unittest_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: net/socket/udp_socket_unittest.cc | ||
| 2 | --- net/socket/udp_socket_unittest.cc.orig | ||
| 3 | +++ net/socket/udp_socket_unittest.cc | ||
| 4 | @@ -324,7 +324,7 @@ TEST_F(UDPSocketTest, PartialRecv) { | ||
| 5 | EXPECT_EQ(second_packet, received); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | // - MacOS: requires root permissions on OSX 10.7+. | ||
| 11 | // - Android: devices attached to testbots don't have default network, so | ||
| 12 | // broadcasting to 255.255.255.255 returns error -109 (Address not reachable). | ||
| 13 | @@ -584,7 +584,7 @@ TEST_F(UDPSocketTest, ClientSetDoNotFragment) { | ||
| 14 | EXPECT_THAT(rv, IsOk()); | ||
| 15 | |||
| 16 | rv = client.SetDoNotFragment(); | ||
| 17 | -#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA) | ||
| 18 | +#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 19 | // TODO(crbug.com/945590): IP_MTU_DISCOVER is not implemented on Fuchsia. | ||
| 20 | EXPECT_THAT(rv, IsError(ERR_NOT_IMPLEMENTED)); | ||
| 21 | #else | ||
| 22 | @@ -606,7 +606,7 @@ TEST_F(UDPSocketTest, ServerSetDoNotFragment) { | ||
| 23 | EXPECT_THAT(rv, IsOk()); | ||
| 24 | |||
| 25 | rv = server.SetDoNotFragment(); | ||
| 26 | -#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA) | ||
| 27 | +#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 28 | // TODO(crbug.com/945590): IP_MTU_DISCOVER is not implemented on Fuchsia. | ||
| 29 | EXPECT_THAT(rv, IsError(ERR_NOT_IMPLEMENTED)); | ||
| 30 | #else | ||
| 31 | @@ -665,7 +665,7 @@ TEST_F(UDPSocketTest, JoinMulticastGroup) { | ||
| 32 | |||
| 33 | // TODO(https://crbug.com/947115): failing on device on iOS 12.2. | ||
| 34 | // TODO(https://crbug.com/1227554): flaky on Mac 11. | ||
| 35 | -#if BUILDFLAG(IS_IOS) || BUILDFLAG(IS_MAC) | ||
| 36 | +#if BUILDFLAG(IS_IOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) | ||
| 37 | #define MAYBE_SharedMulticastAddress DISABLED_SharedMulticastAddress | ||
| 38 | #else | ||
| 39 | #define MAYBE_SharedMulticastAddress SharedMulticastAddress | ||
| 40 | @@ -719,7 +719,7 @@ TEST_F(UDPSocketTest, MAYBE_SharedMulticastAddress) { | ||
| 41 | NetLogSource()); | ||
| 42 | ASSERT_THAT(client_socket.Connect(send_address), IsOk()); | ||
| 43 | |||
| 44 | -#if !BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 45 | +#if !BUILDFLAG(IS_CHROMEOS_ASH) && !BUILDFLAG(IS_BSD) | ||
| 46 | // Send a message via the multicast group. That message is expected be be | ||
| 47 | // received by both receving sockets. | ||
| 48 | // | ||
diff --git a/www/chromium/patches/patch-net_socket_unix_domain_client_socket_posix_cc b/www/chromium/patches/patch-net_socket_unix_domain_client_socket_posix_cc new file mode 100644 index 0000000..d769754 --- /dev/null +++ b/www/chromium/patches/patch-net_socket_unix_domain_client_socket_posix_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/socket/unix_domain_client_socket_posix.cc | ||
| 2 | --- net/socket/unix_domain_client_socket_posix.cc.orig | ||
| 3 | +++ net/socket/unix_domain_client_socket_posix.cc | ||
| 4 | @@ -60,7 +60,7 @@ bool UnixDomainClientSocket::FillAddress(const std::st | ||
| 5 | return true; | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Convert the path given into abstract socket name. It must start with | ||
| 11 | // the '\0' character, so we are adding it. |addr_len| must specify the | ||
| 12 | // length of the structure exactly, as potentially the socket name may | ||
diff --git a/www/chromium/patches/patch-net_third_party_quiche_BUILD_gn b/www/chromium/patches/patch-net_third_party_quiche_BUILD_gn new file mode 100644 index 0000000..8a0c81e --- /dev/null +++ b/www/chromium/patches/patch-net_third_party_quiche_BUILD_gn | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | Index: net/third_party/quiche/BUILD.gn | ||
| 2 | --- net/third_party/quiche/BUILD.gn.orig | ||
| 3 | +++ net/third_party/quiche/BUILD.gn | ||
| 4 | @@ -708,7 +708,7 @@ proto_library("net_quic_test_tools_proto") { | ||
| 5 | extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] | ||
| 6 | } | ||
| 7 | |||
| 8 | -if (is_linux || is_chromeos) { | ||
| 9 | +if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | source_set("epoll_server_core") { | ||
| 11 | sources = [ | ||
| 12 | "src/epoll_server/platform/api/epoll_bug.h", | ||
| 13 | @@ -1063,7 +1063,7 @@ source_set("quic_test_tools_core") { | ||
| 14 | "//third_party/quic_trace:quic_trace_proto", | ||
| 15 | ] | ||
| 16 | |||
| 17 | - if (is_linux || is_chromeos) { | ||
| 18 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 19 | sources += [ | ||
| 20 | "src/epoll_server/fake_simple_epoll_server.cc", | ||
| 21 | "src/epoll_server/fake_simple_epoll_server.h", | ||
| 22 | @@ -1528,10 +1528,10 @@ source_set("quiche_tests") { | ||
| 23 | ] | ||
| 24 | public_deps = [] | ||
| 25 | |||
| 26 | - if (is_linux || is_chromeos_lacros) { | ||
| 27 | + if ((is_linux || is_chromeos_lacros) && !is_bsd) { | ||
| 28 | public_deps += [ "//net:epoll_quic_tools" ] | ||
| 29 | } | ||
| 30 | - if (is_linux || is_chromeos) { | ||
| 31 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 32 | sources += [ | ||
| 33 | "src/epoll_server/simple_epoll_server_test.cc", | ||
| 34 | "src/quic/core/chlo_extractor_test.cc", | ||
diff --git a/www/chromium/patches/patch-net_tools_cert_verify_tool_cert_verify_comparision_tool_cc b/www/chromium/patches/patch-net_tools_cert_verify_tool_cert_verify_comparision_tool_cc new file mode 100644 index 0000000..10306d2 --- /dev/null +++ b/www/chromium/patches/patch-net_tools_cert_verify_tool_cert_verify_comparision_tool_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: net/tools/cert_verify_tool/cert_verify_comparision_tool.cc | ||
| 2 | --- net/tools/cert_verify_tool/cert_verify_comparision_tool.cc.orig | ||
| 3 | +++ net/tools/cert_verify_tool/cert_verify_comparision_tool.cc | ||
| 4 | @@ -35,7 +35,7 @@ | ||
| 5 | #include "net/url_request/url_request_context_builder.h" | ||
| 6 | #include "net/url_request/url_request_context_getter.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "net/proxy_resolution/proxy_config.h" | ||
| 11 | #include "net/proxy_resolution/proxy_config_service_fixed.h" | ||
| 12 | #endif | ||
| 13 | @@ -51,7 +51,7 @@ void SetUpOnNetworkThread( | ||
| 14 | base::WaitableEvent* initialization_complete_event) { | ||
| 15 | net::URLRequestContextBuilder url_request_context_builder; | ||
| 16 | url_request_context_builder.set_user_agent(GetUserAgent()); | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // On Linux, use a fixed ProxyConfigService, since the default one | ||
| 20 | // depends on glib. | ||
| 21 | // | ||
| 22 | @@ -123,7 +123,7 @@ class CertVerifyImpl { | ||
| 23 | std::unique_ptr<CertVerifyImpl> CreateCertVerifyImplFromName( | ||
| 24 | base::StringPiece impl_name, | ||
| 25 | scoped_refptr<net::CertNetFetcher> cert_net_fetcher) { | ||
| 26 | -#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 27 | +#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) | ||
| 28 | if (impl_name == "platform") { | ||
| 29 | return std::make_unique<CertVerifyImpl>( | ||
| 30 | "CertVerifyProc (system)", net::CertVerifyProc::CreateSystemVerifyProc( | ||
diff --git a/www/chromium/patches/patch-net_tools_cert_verify_tool_cert_verify_tool_cc b/www/chromium/patches/patch-net_tools_cert_verify_tool_cert_verify_tool_cc new file mode 100644 index 0000000..300f5d8 --- /dev/null +++ b/www/chromium/patches/patch-net_tools_cert_verify_tool_cert_verify_tool_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: net/tools/cert_verify_tool/cert_verify_tool.cc | ||
| 2 | --- net/tools/cert_verify_tool/cert_verify_tool.cc.orig | ||
| 3 | +++ net/tools/cert_verify_tool/cert_verify_tool.cc | ||
| 4 | @@ -30,7 +30,7 @@ | ||
| 5 | #include "net/url_request/url_request_context_builder.h" | ||
| 6 | #include "net/url_request/url_request_context_getter.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "net/proxy_resolution/proxy_config.h" | ||
| 11 | #include "net/proxy_resolution/proxy_config_service_fixed.h" | ||
| 12 | #endif | ||
| 13 | @@ -56,7 +56,7 @@ void SetUpOnNetworkThread( | ||
| 14 | base::WaitableEvent* initialization_complete_event) { | ||
| 15 | net::URLRequestContextBuilder url_request_context_builder; | ||
| 16 | url_request_context_builder.set_user_agent(GetUserAgent()); | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // On Linux, use a fixed ProxyConfigService, since the default one | ||
| 20 | // depends on glib. | ||
| 21 | // | ||
| 22 | @@ -206,7 +206,7 @@ std::unique_ptr<CertVerifyImpl> CreateCertVerifyImplFr | ||
| 23 | base::StringPiece impl_name, | ||
| 24 | scoped_refptr<net::CertNetFetcher> cert_net_fetcher, | ||
| 25 | RootStoreType root_store_type) { | ||
| 26 | -#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 27 | +#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) || BUILDFLAG(IS_BSD) | ||
| 28 | if (impl_name == "platform") { | ||
| 29 | if (root_store_type != RootStoreType::kSystem) { | ||
| 30 | std::cerr << "WARNING: platform verifier not supported with " | ||
| 31 | @@ -463,7 +463,7 @@ int main(int argc, char** argv) { | ||
| 32 | std::string impls_str = command_line.GetSwitchValueASCII("impls"); | ||
| 33 | if (impls_str.empty()) { | ||
| 34 | // Default value. | ||
| 35 | -#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 36 | +#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) || BUILDFLAG(IS_BSD) | ||
| 37 | impls_str = "platform,"; | ||
| 38 | #endif | ||
| 39 | impls_str += "builtin,pathbuilder"; | ||
diff --git a/www/chromium/patches/patch-net_tools_quic_quic_http_proxy_backend_cc b/www/chromium/patches/patch-net_tools_quic_quic_http_proxy_backend_cc new file mode 100644 index 0000000..3f62c06 --- /dev/null +++ b/www/chromium/patches/patch-net_tools_quic_quic_http_proxy_backend_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/tools/quic/quic_http_proxy_backend.cc | ||
| 2 | --- net/tools/quic/quic_http_proxy_backend.cc.orig | ||
| 3 | +++ net/tools/quic/quic_http_proxy_backend.cc | ||
| 4 | @@ -161,7 +161,7 @@ void QuicHttpProxyBackend::InitializeURLRequestContext | ||
| 5 | // Enable HTTP2, but disable QUIC on the backend | ||
| 6 | context_builder.SetSpdyAndQuicEnabled(true /* http2 */, false /* quic */); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // On Linux, use a fixed ProxyConfigService, since the default one | ||
| 11 | // depends on glib. | ||
| 12 | context_builder.set_proxy_config_service( | ||
diff --git a/www/chromium/patches/patch-net_traffic_annotation_network_traffic_annotation_h b/www/chromium/patches/patch-net_traffic_annotation_network_traffic_annotation_h new file mode 100644 index 0000000..abdaf6a --- /dev/null +++ b/www/chromium/patches/patch-net_traffic_annotation_network_traffic_annotation_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: net/traffic_annotation/network_traffic_annotation.h | ||
| 2 | --- net/traffic_annotation/network_traffic_annotation.h.orig | ||
| 3 | +++ net/traffic_annotation/network_traffic_annotation.h | ||
| 4 | @@ -371,7 +371,7 @@ struct MutablePartialNetworkTrafficAnnotationTag { | ||
| 5 | } // namespace net | ||
| 6 | |||
| 7 | // Placeholder for unannotated usages. | ||
| 8 | -#if !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) | ||
| 10 | #define TRAFFIC_ANNOTATION_WITHOUT_PROTO(ANNOTATION_ID) \ | ||
| 11 | net::DefineNetworkTrafficAnnotation(ANNOTATION_ID, "No proto yet.") | ||
| 12 | #endif | ||
| 13 | @@ -385,7 +385,7 @@ struct MutablePartialNetworkTrafficAnnotationTag { | ||
| 14 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 15 | // complete. | ||
| 16 | #if !BUILDFLAG(IS_WIN) && \ | ||
| 17 | - !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 18 | + !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 19 | |||
| 20 | #define NO_TRAFFIC_ANNOTATION_YET \ | ||
| 21 | net::DefineNetworkTrafficAnnotation("undefined", "Nothing here yet.") | ||
diff --git a/www/chromium/patches/patch-net_url_request_url_fetcher_cc b/www/chromium/patches/patch-net_url_request_url_fetcher_cc new file mode 100644 index 0000000..2e465f9 --- /dev/null +++ b/www/chromium/patches/patch-net_url_request_url_fetcher_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/url_request/url_fetcher.cc | ||
| 2 | --- net/url_request/url_fetcher.cc.orig | ||
| 3 | +++ net/url_request/url_fetcher.cc | ||
| 4 | @@ -26,7 +26,7 @@ void URLFetcher::SetIgnoreCertificateRequests(bool ign | ||
| 5 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 6 | // complete. | ||
| 7 | #if !BUILDFLAG(IS_WIN) && \ | ||
| 8 | - !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | + !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 10 | // static | ||
| 11 | std::unique_ptr<URLFetcher> URLFetcher::Create( | ||
| 12 | const GURL& url, | ||
diff --git a/www/chromium/patches/patch-net_url_request_url_fetcher_h b/www/chromium/patches/patch-net_url_request_url_fetcher_h new file mode 100644 index 0000000..7ff8403 --- /dev/null +++ b/www/chromium/patches/patch-net_url_request_url_fetcher_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/url_request/url_fetcher.h | ||
| 2 | --- net/url_request/url_fetcher.h.orig | ||
| 3 | +++ net/url_request/url_fetcher.h | ||
| 4 | @@ -344,7 +344,7 @@ class NET_EXPORT URLFetcher { | ||
| 5 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 6 | // complete. | ||
| 7 | #if (!BUILDFLAG(IS_WIN) && \ | ||
| 8 | - !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS))) || \ | ||
| 9 | + !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD))) || \ | ||
| 10 | BUILDFLAG(IS_CHROMEOS) | ||
| 11 | // |url| is the URL to send the request to. It must be valid. | ||
| 12 | // |request_type| is the type of request to make. | ||
diff --git a/www/chromium/patches/patch-net_url_request_url_request_context_builder_cc b/www/chromium/patches/patch-net_url_request_url_request_context_builder_cc new file mode 100644 index 0000000..3f4ab15 --- /dev/null +++ b/www/chromium/patches/patch-net_url_request_url_request_context_builder_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/url_request/url_request_context_builder.cc | ||
| 2 | --- net/url_request/url_request_context_builder.cc.orig | ||
| 3 | +++ net/url_request/url_request_context_builder.cc | ||
| 4 | @@ -492,7 +492,7 @@ std::unique_ptr<URLRequestContext> URLRequestContextBu | ||
| 5 | } | ||
| 6 | |||
| 7 | if (!proxy_resolution_service_) { | ||
| 8 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_BSD) | ||
| 10 | // TODO(willchan): Switch to using this code when | ||
| 11 | // ConfiguredProxyResolutionService::CreateSystemProxyConfigService()'s | ||
| 12 | // signature doesn't suck. | ||
diff --git a/www/chromium/patches/patch-net_url_request_url_request_context_cc b/www/chromium/patches/patch-net_url_request_url_request_context_cc new file mode 100644 index 0000000..d8a57a9 --- /dev/null +++ b/www/chromium/patches/patch-net_url_request_url_request_context_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/url_request/url_request_context.cc | ||
| 2 | --- net/url_request/url_request_context.cc.orig | ||
| 3 | +++ net/url_request/url_request_context.cc | ||
| 4 | @@ -90,7 +90,7 @@ const HttpNetworkSessionContext* URLRequestContext::Ge | ||
| 5 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 6 | // complete. | ||
| 7 | #if !BUILDFLAG(IS_WIN) && \ | ||
| 8 | - !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | + !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 10 | std::unique_ptr<URLRequest> URLRequestContext::CreateRequest( | ||
| 11 | const GURL& url, | ||
| 12 | RequestPriority priority, | ||
diff --git a/www/chromium/patches/patch-net_url_request_url_request_context_h b/www/chromium/patches/patch-net_url_request_url_request_context_h new file mode 100644 index 0000000..3fd0913 --- /dev/null +++ b/www/chromium/patches/patch-net_url_request_url_request_context_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: net/url_request/url_request_context.h | ||
| 2 | --- net/url_request/url_request_context.h.orig | ||
| 3 | +++ net/url_request/url_request_context.h | ||
| 4 | @@ -83,7 +83,7 @@ class NET_EXPORT URLRequestContext { | ||
| 5 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 6 | // complete. | ||
| 7 | #if !BUILDFLAG(IS_WIN) && \ | ||
| 8 | - !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | + !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 10 | // This function should not be used in Chromium, please use the version with | ||
| 11 | // NetworkTrafficAnnotationTag in the future. | ||
| 12 | // | ||
diff --git a/www/chromium/patches/patch-pdf_out_of_process_instance_cc b/www/chromium/patches/patch-pdf_out_of_process_instance_cc new file mode 100644 index 0000000..246dbdd --- /dev/null +++ b/www/chromium/patches/patch-pdf_out_of_process_instance_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: pdf/out_of_process_instance.cc | ||
| 2 | --- pdf/out_of_process_instance.cc.orig | ||
| 3 | +++ pdf/out_of_process_instance.cc | ||
| 4 | @@ -74,7 +74,7 @@ | ||
| 5 | #include "ui/gfx/geometry/size.h" | ||
| 6 | #include "url/gurl.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "pdf/ppapi_migration/pdfium_font_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -734,7 +734,7 @@ void OutOfProcessInstance::RotateCounterclockwise() { | ||
| 14 | } | ||
| 15 | |||
| 16 | void OutOfProcessInstance::SetLastPluginInstance() { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | SetLastPepperInstance(this); | ||
| 20 | #endif | ||
| 21 | } | ||
diff --git a/www/chromium/patches/patch-pdf_pdfium_pdfium_engine_cc b/www/chromium/patches/patch-pdf_pdfium_pdfium_engine_cc new file mode 100644 index 0000000..416c697 --- /dev/null +++ b/www/chromium/patches/patch-pdf_pdfium_pdfium_engine_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: pdf/pdfium/pdfium_engine.cc | ||
| 2 | --- pdf/pdfium/pdfium_engine.cc.orig | ||
| 3 | +++ pdf/pdfium/pdfium_engine.cc | ||
| 4 | @@ -84,7 +84,7 @@ | ||
| 5 | #include "gin/public/cppgc.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "pdf/pdfium/pdfium_font_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -519,7 +519,7 @@ void InitializeSDK(bool enable_v8, FontMappingMode fon | ||
| 14 | |||
| 15 | FPDF_InitLibraryWithConfig(&config); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | g_font_mapping_mode = font_mapping_mode; | ||
| 20 | InitializeLinuxFontMapper(); | ||
| 21 | #endif | ||
diff --git a/www/chromium/patches/patch-printing_mojom_printing_context_mojom_traits_cc b/www/chromium/patches/patch-printing_mojom_printing_context_mojom_traits_cc new file mode 100644 index 0000000..38dab7b --- /dev/null +++ b/www/chromium/patches/patch-printing_mojom_printing_context_mojom_traits_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: printing/mojom/printing_context_mojom_traits.cc | ||
| 2 | --- printing/mojom/printing_context_mojom_traits.cc.orig | ||
| 3 | +++ printing/mojom/printing_context_mojom_traits.cc | ||
| 4 | @@ -16,7 +16,7 @@ | ||
| 5 | #include "ui/gfx/geometry/mojom/geometry_mojom_traits.h" | ||
| 6 | #include "ui/gfx/geometry/size.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "mojo/public/mojom/base/values.mojom.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -162,7 +162,7 @@ bool StructTraits< | ||
| 14 | } | ||
| 15 | |||
| 16 | out->set_pages_per_sheet(data.pages_per_sheet()); | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | DCHECK(out->advanced_settings().empty()); | ||
| 20 | if (!data.ReadAdvancedSettings(&out->advanced_settings())) | ||
| 21 | return false; | ||
diff --git a/www/chromium/patches/patch-printing_mojom_printing_context_mojom_traits_h b/www/chromium/patches/patch-printing_mojom_printing_context_mojom_traits_h new file mode 100644 index 0000000..83a67e6 --- /dev/null +++ b/www/chromium/patches/patch-printing_mojom_printing_context_mojom_traits_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: printing/mojom/printing_context_mojom_traits.h | ||
| 2 | --- printing/mojom/printing_context_mojom_traits.h.orig | ||
| 3 | +++ printing/mojom/printing_context_mojom_traits.h | ||
| 4 | @@ -168,7 +168,7 @@ struct StructTraits<printing::mojom::PrintSettingsData | ||
| 5 | return s.pages_per_sheet(); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | static const printing::PrintSettings::AdvancedSettings& advanced_settings( | ||
| 11 | const printing::PrintSettings& s) { | ||
| 12 | return s.advanced_settings(); | ||
diff --git a/www/chromium/patches/patch-printing_print_settings_cc b/www/chromium/patches/patch-printing_print_settings_cc new file mode 100644 index 0000000..001f70c --- /dev/null +++ b/www/chromium/patches/patch-printing_print_settings_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: printing/print_settings.cc | ||
| 2 | --- printing/print_settings.cc.orig | ||
| 3 | +++ printing/print_settings.cc | ||
| 4 | @@ -265,7 +265,7 @@ PrintSettings::PrintSettings(const PrintSettings& sett | ||
| 5 | #endif | ||
| 6 | is_modifiable_ = settings.is_modifiable_; | ||
| 7 | pages_per_sheet_ = settings.pages_per_sheet_; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | for (const auto& item : settings.advanced_settings_) | ||
| 11 | advanced_settings_.emplace(item.first, item.second.Clone()); | ||
| 12 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 13 | @@ -305,7 +305,7 @@ PrintSettings& PrintSettings::operator=(const PrintSet | ||
| 14 | #endif | ||
| 15 | is_modifiable_ = settings.is_modifiable_; | ||
| 16 | pages_per_sheet_ = settings.pages_per_sheet_; | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | for (const auto& item : settings.advanced_settings_) | ||
| 20 | advanced_settings_.emplace(item.first, item.second.Clone()); | ||
| 21 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 22 | @@ -345,7 +345,7 @@ void PrintSettings::Clear() { | ||
| 23 | #endif | ||
| 24 | is_modifiable_ = true; | ||
| 25 | pages_per_sheet_ = 1; | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | advanced_settings_.clear(); | ||
| 29 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 30 | #if BUILDFLAG(IS_CHROMEOS) | ||
diff --git a/www/chromium/patches/patch-printing_print_settings_conversion_cc b/www/chromium/patches/patch-printing_print_settings_conversion_cc new file mode 100644 index 0000000..4052047 --- /dev/null +++ b/www/chromium/patches/patch-printing_print_settings_conversion_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: printing/print_settings_conversion.cc | ||
| 2 | --- printing/print_settings_conversion.cc.orig | ||
| 3 | +++ printing/print_settings_conversion.cc | ||
| 4 | @@ -217,7 +217,7 @@ std::unique_ptr<PrintSettings> PrintSettingsFromJobSet | ||
| 5 | settings->set_is_modifiable(is_modifiable.value()); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_CHROMEOS) || (BUILDFLAG(IS_LINUX) && defined(USE_CUPS)) | ||
| 9 | +#if BUILDFLAG(IS_CHROMEOS) || ((BUILDFLAG(IS_BSD) || BUILDFLAG(IS_LINUX)) && defined(USE_CUPS)) | ||
| 10 | const base::Value* advanced_settings = | ||
| 11 | job_settings.FindDictKey(kSettingAdvancedSettings); | ||
| 12 | if (advanced_settings) { | ||
diff --git a/www/chromium/patches/patch-printing_print_settings_h b/www/chromium/patches/patch-printing_print_settings_h new file mode 100644 index 0000000..3a9839b --- /dev/null +++ b/www/chromium/patches/patch-printing_print_settings_h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: printing/print_settings.h | ||
| 2 | --- printing/print_settings.h.orig | ||
| 3 | +++ printing/print_settings.h | ||
| 4 | @@ -18,7 +18,7 @@ | ||
| 5 | #include "ui/gfx/geometry/rect.h" | ||
| 6 | #include "ui/gfx/geometry/size.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <map> | ||
| 11 | |||
| 12 | #include "base/values.h" | ||
| 13 | @@ -66,7 +66,7 @@ class COMPONENT_EXPORT(PRINTING) PrintSettings { | ||
| 14 | } | ||
| 15 | }; | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | using AdvancedSettings = std::map<std::string, base::Value>; | ||
| 20 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 21 | |||
| 22 | @@ -221,7 +221,7 @@ class COMPONENT_EXPORT(PRINTING) PrintSettings { | ||
| 23 | pages_per_sheet_ = pages_per_sheet; | ||
| 24 | } | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | AdvancedSettings& advanced_settings() { return advanced_settings_; } | ||
| 29 | const AdvancedSettings& advanced_settings() const { | ||
| 30 | return advanced_settings_; | ||
| 31 | @@ -322,7 +322,7 @@ class COMPONENT_EXPORT(PRINTING) PrintSettings { | ||
| 32 | // Number of pages per sheet. | ||
| 33 | int pages_per_sheet_; | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | // Advanced settings. | ||
| 38 | AdvancedSettings advanced_settings_; | ||
| 39 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
diff --git a/www/chromium/patches/patch-printing_printing_features_cc b/www/chromium/patches/patch-printing_printing_features_cc new file mode 100644 index 0000000..147ea14 --- /dev/null +++ b/www/chromium/patches/patch-printing_printing_features_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: printing/printing_features.cc | ||
| 2 | --- printing/printing_features.cc.orig | ||
| 3 | +++ printing/printing_features.cc | ||
| 4 | @@ -8,7 +8,7 @@ | ||
| 5 | #include "printing/buildflags/buildflags.h" | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/metrics/field_trial_params.h" | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-printing_sandbox_print_backend_sandbox_hook_linux_cc b/www/chromium/patches/patch-printing_sandbox_print_backend_sandbox_hook_linux_cc new file mode 100644 index 0000000..f8adf71 --- /dev/null +++ b/www/chromium/patches/patch-printing_sandbox_print_backend_sandbox_hook_linux_cc | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | Index: printing/sandbox/print_backend_sandbox_hook_linux.cc | ||
| 2 | --- printing/sandbox/print_backend_sandbox_hook_linux.cc.orig | ||
| 3 | +++ printing/sandbox/print_backend_sandbox_hook_linux.cc | ||
| 4 | @@ -9,21 +9,28 @@ | ||
| 5 | #include "base/files/file_util.h" | ||
| 6 | #include "base/path_service.h" | ||
| 7 | #include "build/build_config.h" | ||
| 8 | +#if !BUILDFLAG(IS_BSD) | ||
| 9 | #include "sandbox/linux/syscall_broker/broker_command.h" | ||
| 10 | #include "sandbox/linux/syscall_broker/broker_file_permission.h" | ||
| 11 | #include "sandbox/policy/export.h" | ||
| 12 | #include "sandbox/policy/linux/sandbox_linux.h" | ||
| 13 | #include "services/network/network_sandbox_hook_linux.h" | ||
| 14 | +#else | ||
| 15 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 16 | +#endif | ||
| 17 | |||
| 18 | #if BUILDFLAG(IS_CHROMEOS) && defined(USE_CUPS) | ||
| 19 | #include "printing/backend/cups_connection_pool.h" | ||
| 20 | #endif | ||
| 21 | |||
| 22 | +#if !BUILDFLAG(IS_BSD) | ||
| 23 | using sandbox::syscall_broker::BrokerFilePermission; | ||
| 24 | using sandbox::syscall_broker::MakeBrokerCommandSet; | ||
| 25 | +#endif | ||
| 26 | |||
| 27 | namespace printing { | ||
| 28 | |||
| 29 | +#if !BUILDFLAG(IS_BSD) | ||
| 30 | namespace { | ||
| 31 | |||
| 32 | sandbox::syscall_broker::BrokerCommandSet GetPrintBackendBrokerCommandSet() { | ||
| 33 | @@ -84,9 +91,11 @@ std::vector<BrokerFilePermission> GetPrintBackendFileP | ||
| 34 | } | ||
| 35 | |||
| 36 | } // namespace | ||
| 37 | +#endif | ||
| 38 | |||
| 39 | bool PrintBackendPreSandboxHook( | ||
| 40 | sandbox::policy::SandboxLinux::Options options) { | ||
| 41 | +#if !BUILDFLAG(IS_BSD) | ||
| 42 | #if BUILDFLAG(IS_CHROMEOS) && defined(USE_CUPS) | ||
| 43 | // Create the socket connections to the CUPS server before engaging the | ||
| 44 | // sandbox, since new connections cannot be made after that. | ||
| 45 | @@ -100,6 +109,7 @@ bool PrintBackendPreSandboxHook( | ||
| 46 | sandbox::policy::SandboxLinux::PreSandboxHook(), options); | ||
| 47 | |||
| 48 | instance->EngageNamespaceSandboxIfPossible(); | ||
| 49 | +#endif | ||
| 50 | return true; | ||
| 51 | } | ||
| 52 | |||
diff --git a/www/chromium/patches/patch-printing_sandbox_print_backend_sandbox_hook_linux_h b/www/chromium/patches/patch-printing_sandbox_print_backend_sandbox_hook_linux_h new file mode 100644 index 0000000..8ea72a9 --- /dev/null +++ b/www/chromium/patches/patch-printing_sandbox_print_backend_sandbox_hook_linux_h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: printing/sandbox/print_backend_sandbox_hook_linux.h | ||
| 2 | --- printing/sandbox/print_backend_sandbox_hook_linux.h.orig | ||
| 3 | +++ printing/sandbox/print_backend_sandbox_hook_linux.h | ||
| 4 | @@ -5,8 +5,13 @@ | ||
| 5 | #ifndef PRINTING_SANDBOX_PRINT_BACKEND_SANDBOX_HOOK_LINUX_H_ | ||
| 6 | #define PRINTING_SANDBOX_PRINT_BACKEND_SANDBOX_HOOK_LINUX_H_ | ||
| 7 | |||
| 8 | +#include "build/build_config.h" | ||
| 9 | #include "base/component_export.h" | ||
| 10 | +#if defined(OS_BSD) | ||
| 11 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 12 | +#else | ||
| 13 | #include "sandbox/policy/linux/sandbox_linux.h" | ||
| 14 | +#endif | ||
| 15 | |||
| 16 | namespace printing { | ||
| 17 | |||
diff --git a/www/chromium/patches/patch-remoting_base_chromoting_event_cc b/www/chromium/patches/patch-remoting_base_chromoting_event_cc new file mode 100644 index 0000000..98fadc5 --- /dev/null +++ b/www/chromium/patches/patch-remoting_base_chromoting_event_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/base/chromoting_event.cc | ||
| 2 | --- remoting/base/chromoting_event.cc.orig | ||
| 3 | +++ remoting/base/chromoting_event.cc | ||
| 4 | @@ -190,7 +190,7 @@ void ChromotingEvent::AddSystemInfo() { | ||
| 5 | SetString(kCpuKey, base::SysInfo::OperatingSystemArchitecture()); | ||
| 6 | SetString(kOsVersionKey, base::SysInfo::OperatingSystemVersion()); | ||
| 7 | SetString(kWebAppVersionKey, STRINGIZE(VERSION)); | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | Os os = Os::CHROMOTING_LINUX; | ||
| 11 | #elif BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 12 | Os os = Os::CHROMOTING_CHROMEOS; | ||
diff --git a/www/chromium/patches/patch-remoting_base_host_settings_cc b/www/chromium/patches/patch-remoting_base_host_settings_cc new file mode 100644 index 0000000..25a6f0c --- /dev/null +++ b/www/chromium/patches/patch-remoting_base_host_settings_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: remoting/base/host_settings.cc | ||
| 2 | --- remoting/base/host_settings.cc.orig | ||
| 3 | +++ remoting/base/host_settings.cc | ||
| 4 | @@ -7,7 +7,7 @@ | ||
| 5 | #include "base/no_destructor.h" | ||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_APPLE) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) | ||
| 9 | +#if BUILDFLAG(IS_APPLE) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "remoting/base/file_host_settings.h" | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) | ||
| 12 | |||
| 13 | @@ -44,7 +44,7 @@ HostSettings::~HostSettings() = default; | ||
| 14 | |||
| 15 | // static | ||
| 16 | HostSettings* HostSettings::GetInstance() { | ||
| 17 | -#if BUILDFLAG(IS_APPLE) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) | ||
| 18 | +#if BUILDFLAG(IS_APPLE) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) || BUILDFLAG(IS_BSD) | ||
| 19 | static base::NoDestructor<FileHostSettings> instance( | ||
| 20 | FileHostSettings::GetSettingsFilePath()); | ||
| 21 | #elif BUILDFLAG(IS_WIN) | ||
diff --git a/www/chromium/patches/patch-remoting_client_display_sys_opengl_h b/www/chromium/patches/patch-remoting_client_display_sys_opengl_h new file mode 100644 index 0000000..ba6f3a3 --- /dev/null +++ b/www/chromium/patches/patch-remoting_client_display_sys_opengl_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/client/display/sys_opengl.h | ||
| 2 | --- remoting/client/display/sys_opengl.h.orig | ||
| 3 | +++ remoting/client/display/sys_opengl.h | ||
| 4 | @@ -9,7 +9,7 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_IOS) | ||
| 7 | #include <OpenGLES/ES3/gl.h> | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #define GL_GLEXT_PROTOTYPES | ||
| 11 | #include <GL/gl.h> | ||
| 12 | #include <GL/glext.h> | ||
diff --git a/www/chromium/patches/patch-remoting_codec_webrtc_video_encoder_vpx_cc b/www/chromium/patches/patch-remoting_codec_webrtc_video_encoder_vpx_cc new file mode 100644 index 0000000..9b5b81a --- /dev/null +++ b/www/chromium/patches/patch-remoting_codec_webrtc_video_encoder_vpx_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/codec/webrtc_video_encoder_vpx.cc | ||
| 2 | --- remoting/codec/webrtc_video_encoder_vpx.cc.orig | ||
| 3 | +++ remoting/codec/webrtc_video_encoder_vpx.cc | ||
| 4 | @@ -85,7 +85,7 @@ void SetVp8CodecParameters(vpx_codec_enc_cfg_t* config | ||
| 5 | const webrtc::DesktopSize& size) { | ||
| 6 | SetCommonCodecParameters(config, size); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if (BUILDFLAG(IS_BSD) || BUILDFLAG(IS_LINUX)) && !BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 10 | // On Linux, using too many threads for VP8 encoding has been linked to high | ||
| 11 | // CPU usage on machines that are under stress. See http://crbug.com/1151148. | ||
| 12 | config->g_threads = std::min(config->g_threads, 2U); | ||
diff --git a/www/chromium/patches/patch-remoting_host_base_switches_cc b/www/chromium/patches/patch-remoting_host_base_switches_cc new file mode 100644 index 0000000..5e2d665 --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_base_switches_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/host/base/switches.cc | ||
| 2 | --- remoting/host/base/switches.cc.orig | ||
| 3 | +++ remoting/host/base/switches.cc | ||
| 4 | @@ -23,7 +23,7 @@ const char kProcessTypeEvaluateCapability[] = "evaluat | ||
| 5 | const char kProcessTypeFileChooser[] = "file_chooser"; | ||
| 6 | const char kProcessTypeUrlForwarderConfigurator[] = | ||
| 7 | "url_forwarder_configurator"; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | const char kProcessTypeXSessionChooser[] = "xsession_chooser"; | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-remoting_host_base_switches_h b/www/chromium/patches/patch-remoting_host_base_switches_h new file mode 100644 index 0000000..4a28ebe --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_base_switches_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/host/base/switches.h | ||
| 2 | --- remoting/host/base/switches.h.orig | ||
| 3 | +++ remoting/host/base/switches.h | ||
| 4 | @@ -35,7 +35,7 @@ extern const char kProcessTypeRdpDesktopSession[]; | ||
| 5 | extern const char kProcessTypeEvaluateCapability[]; | ||
| 6 | extern const char kProcessTypeFileChooser[]; | ||
| 7 | extern const char kProcessTypeUrlForwarderConfigurator[]; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | extern const char kProcessTypeXSessionChooser[]; | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-remoting_host_chromoting_host_cc b/www/chromium/patches/patch-remoting_host_chromoting_host_cc new file mode 100644 index 0000000..1c91760 --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_chromoting_host_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/host/chromoting_host.cc | ||
| 2 | --- remoting/host/chromoting_host.cc.orig | ||
| 3 | +++ remoting/host/chromoting_host.cc | ||
| 4 | @@ -124,7 +124,7 @@ void ChromotingHost::StartChromotingHostServices() { | ||
| 5 | DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 6 | DCHECK(!ipc_server_); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 10 | ipc_server_ = std::make_unique<MojoIpcServer<mojom::ChromotingHostServices>>( | ||
| 11 | GetChromotingHostServicesServerName(), this); | ||
| 12 | ipc_server_->StartServer(); | ||
diff --git a/www/chromium/patches/patch-remoting_host_chromoting_host_context_cc b/www/chromium/patches/patch-remoting_host_chromoting_host_context_cc new file mode 100644 index 0000000..4b8a0fd --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_chromoting_host_context_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/host/chromoting_host_context.cc | ||
| 2 | --- remoting/host/chromoting_host_context.cc.orig | ||
| 3 | +++ remoting/host/chromoting_host_context.cc | ||
| 4 | @@ -143,7 +143,7 @@ std::unique_ptr<ChromotingHostContext> ChromotingHostC | ||
| 5 | // on a UI thread. | ||
| 6 | scoped_refptr<AutoThreadTaskRunner> input_task_runner = | ||
| 7 | AutoThread::CreateWithType("ChromotingInputThread", ui_task_runner, | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | base::MessagePumpType::UI); | ||
| 11 | #else | ||
| 12 | base::MessagePumpType::IO); | ||
diff --git a/www/chromium/patches/patch-remoting_host_chromoting_host_services_client_cc b/www/chromium/patches/patch-remoting_host_chromoting_host_services_client_cc new file mode 100644 index 0000000..b4ff53d --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_chromoting_host_services_client_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: remoting/host/chromoting_host_services_client.cc | ||
| 2 | --- remoting/host/chromoting_host_services_client.cc.orig | ||
| 3 | +++ remoting/host/chromoting_host_services_client.cc | ||
| 4 | @@ -28,7 +28,7 @@ bool g_initialized = false; | ||
| 5 | |||
| 6 | } // namespace | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | // static | ||
| 12 | constexpr char | ||
| 13 | @@ -112,7 +112,7 @@ bool ChromotingHostServicesClient::EnsureSessionServic | ||
| 14 | if (session_services_remote_.is_bound()) { | ||
| 15 | return true; | ||
| 16 | } | ||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | if (!environment_->HasVar(kChromeRemoteDesktopSessionEnvVar)) { | ||
| 20 | LOG(WARNING) << "Current desktop environment is not remotable."; | ||
| 21 | return false; | ||
diff --git a/www/chromium/patches/patch-remoting_host_evaluate_capability_cc b/www/chromium/patches/patch-remoting_host_evaluate_capability_cc new file mode 100644 index 0000000..3343daa --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_evaluate_capability_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/host/evaluate_capability.cc | ||
| 2 | --- remoting/host/evaluate_capability.cc.orig | ||
| 3 | +++ remoting/host/evaluate_capability.cc | ||
| 4 | @@ -55,7 +55,7 @@ base::FilePath BuildHostBinaryPath() { | ||
| 5 | } | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | if (path.BaseName().value() == | ||
| 11 | FILE_PATH_LITERAL("chrome-remote-desktop-host")) { | ||
| 12 | return path; | ||
diff --git a/www/chromium/patches/patch-remoting_host_heartbeat_sender_cc b/www/chromium/patches/patch-remoting_host_heartbeat_sender_cc new file mode 100644 index 0000000..aa8dbe3 --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_heartbeat_sender_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/host/heartbeat_sender.cc | ||
| 2 | --- remoting/host/heartbeat_sender.cc.orig | ||
| 3 | +++ remoting/host/heartbeat_sender.cc | ||
| 4 | @@ -111,7 +111,7 @@ const net::BackoffEntry::Policy kBackoffPolicy = { | ||
| 5 | std::string GetHostname() { | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag | ||
| 7 | // switch of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | return net::GetHostName(); | ||
| 11 | #elif BUILDFLAG(IS_WIN) | ||
| 12 | wchar_t buffer[MAX_PATH] = {0}; | ||
diff --git a/www/chromium/patches/patch-remoting_host_host_attributes_cc b/www/chromium/patches/patch-remoting_host_host_attributes_cc new file mode 100644 index 0000000..8b2757b --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_host_attributes_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/host/host_attributes.cc | ||
| 2 | --- remoting/host/host_attributes.cc.orig | ||
| 3 | +++ remoting/host/host_attributes.cc | ||
| 4 | @@ -122,7 +122,7 @@ std::string GetHostAttributes() { | ||
| 5 | media::InitializeMediaFoundation()) { | ||
| 6 | result.push_back("HWEncoder"); | ||
| 7 | } | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | result.push_back("HWEncoder"); | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-remoting_host_host_details_cc b/www/chromium/patches/patch-remoting_host_host_details_cc new file mode 100644 index 0000000..929bebd --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_host_details_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/host/host_details.cc | ||
| 2 | --- remoting/host/host_details.cc.orig | ||
| 3 | +++ remoting/host/host_details.cc | ||
| 4 | @@ -23,7 +23,7 @@ std::string GetHostOperatingSystemName() { | ||
| 5 | return "Mac"; | ||
| 6 | #elif BUILDFLAG(IS_CHROMEOS_ASH) | ||
| 7 | return "ChromeOS"; | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | return "Linux"; | ||
| 11 | #elif BUILDFLAG(IS_ANDROID) | ||
| 12 | return "Android"; | ||
diff --git a/www/chromium/patches/patch-remoting_host_host_main_cc b/www/chromium/patches/patch-remoting_host_host_main_cc new file mode 100644 index 0000000..0538d6a --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_host_main_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: remoting/host/host_main.cc | ||
| 2 | --- remoting/host/host_main.cc.orig | ||
| 3 | +++ remoting/host/host_main.cc | ||
| 4 | @@ -50,7 +50,7 @@ int FileChooserMain(); | ||
| 5 | int RdpDesktopSessionMain(); | ||
| 6 | int UrlForwarderConfiguratorMain(); | ||
| 7 | #endif // BUILDFLAG(IS_WIN) | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | int XSessionChooserMain(); | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 12 | |||
| 13 | @@ -63,7 +63,7 @@ const char kUsageMessage[] = | ||
| 14 | "\n" | ||
| 15 | "Options:\n" | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | " --audio-pipe-name=<pipe> - Sets the pipe name to capture audio on " | ||
| 20 | "Linux.\n" | ||
| 21 | #endif // BUILDFLAG(IS_LINUX) | ||
| 22 | @@ -154,7 +154,7 @@ MainRoutineFn SelectMainRoutine(const std::string& pro | ||
| 23 | } else if (process_type == kProcessTypeUrlForwarderConfigurator) { | ||
| 24 | main_routine = &UrlForwarderConfiguratorMain; | ||
| 25 | #endif // BUILDFLAG(IS_WIN) | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | } else if (process_type == kProcessTypeXSessionChooser) { | ||
| 29 | main_routine = &XSessionChooserMain; | ||
| 30 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
diff --git a/www/chromium/patches/patch-remoting_host_ipc_constants_cc b/www/chromium/patches/patch-remoting_host_ipc_constants_cc new file mode 100644 index 0000000..8c3fbf0 --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_ipc_constants_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/host/ipc_constants.cc | ||
| 2 | --- remoting/host/ipc_constants.cc.orig | ||
| 3 | +++ remoting/host/ipc_constants.cc | ||
| 4 | @@ -16,7 +16,7 @@ namespace remoting { | ||
| 5 | |||
| 6 | namespace { | ||
| 7 | |||
| 8 | -#if !defined(NDEBUG) && BUILDFLAG(IS_LINUX) | ||
| 9 | +#if !defined(NDEBUG) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) | ||
| 10 | // Use a different IPC name for Linux debug builds so that we can run the host | ||
| 11 | // directly from out/Debug without interfering with the production host that | ||
| 12 | // might also be running. | ||
diff --git a/www/chromium/patches/patch-remoting_host_it2me_it2me_native_messaging_host_main_cc b/www/chromium/patches/patch-remoting_host_it2me_it2me_native_messaging_host_main_cc new file mode 100644 index 0000000..505f529 --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_it2me_it2me_native_messaging_host_main_cc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: remoting/host/it2me/it2me_native_messaging_host_main.cc | ||
| 2 | --- remoting/host/it2me/it2me_native_messaging_host_main.cc.orig | ||
| 3 | +++ remoting/host/it2me/it2me_native_messaging_host_main.cc | ||
| 4 | @@ -30,7 +30,7 @@ | ||
| 5 | #include "remoting/host/resources.h" | ||
| 6 | #include "remoting/host/usage_stats_consent.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <gtk/gtk.h> | ||
| 11 | |||
| 12 | #include "base/linux_util.h" | ||
| 13 | @@ -76,7 +76,7 @@ bool CurrentProcessHasUiAccess() { | ||
| 14 | // Creates a It2MeNativeMessagingHost instance, attaches it to stdin/stdout and | ||
| 15 | // runs the task executor until It2MeNativeMessagingHost signals shutdown. | ||
| 16 | int It2MeNativeMessagingHostMain(int argc, char** argv) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Initialize Xlib for multi-threaded use, allowing non-Chromium code to | ||
| 20 | // use X11 safely (such as the WebRTC capturer, GTK ...) | ||
| 21 | x11::InitXlib(); | ||
| 22 | @@ -121,7 +121,7 @@ int It2MeNativeMessagingHostMain(int argc, char** argv | ||
| 23 | |||
| 24 | remoting::LoadResources(""); | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | // Required for any calls into GTK functions, such as the Disconnect and | ||
| 29 | // Continue windows. Calling with nullptr arguments because we don't have | ||
| 30 | // any command line arguments for gtk to consume. | ||
| 31 | @@ -254,7 +254,7 @@ int It2MeNativeMessagingHostMain(int argc, char** argv | ||
| 32 | PolicyWatcher::CreateWithTaskRunner(context->file_task_runner(), | ||
| 33 | context->management_service()); | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | // Create an X11EventSource on all UI threads, so the global X11 connection | ||
| 38 | // (x11::Connection::Get()) can dispatch X events. | ||
| 39 | auto event_source = | ||
| 40 | @@ -276,7 +276,7 @@ int It2MeNativeMessagingHostMain(int argc, char** argv | ||
| 41 | // Run the loop until channel is alive. | ||
| 42 | run_loop.Run(); | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | input_task_runner->PostTask(FROM_HERE, base::BindOnce([]() { | ||
| 47 | delete ui::X11EventSource::GetInstance(); | ||
| 48 | })); | ||
diff --git a/www/chromium/patches/patch-remoting_host_me2me_desktop_environment_cc b/www/chromium/patches/patch-remoting_host_me2me_desktop_environment_cc new file mode 100644 index 0000000..49ab79f --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_me2me_desktop_environment_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/host/me2me_desktop_environment.cc | ||
| 2 | --- remoting/host/me2me_desktop_environment.cc.orig | ||
| 3 | +++ remoting/host/me2me_desktop_environment.cc | ||
| 4 | @@ -143,7 +143,7 @@ bool Me2MeDesktopEnvironment::InitializeSecurity( | ||
| 5 | |||
| 6 | // Otherwise, if the session is shared with the local user start monitoring | ||
| 7 | // the local input and create the in-session UI. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | bool want_user_interface = false; | ||
| 11 | #elif BUILDFLAG(IS_APPLE) | ||
| 12 | // Don't try to display any UI on top of the system's login screen as this | ||
diff --git a/www/chromium/patches/patch-remoting_host_remote_open_url_remote_open_url_client_cc b/www/chromium/patches/patch-remoting_host_remote_open_url_remote_open_url_client_cc new file mode 100644 index 0000000..991df64 --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_remote_open_url_remote_open_url_client_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: remoting/host/remote_open_url/remote_open_url_client.cc | ||
| 2 | --- remoting/host/remote_open_url/remote_open_url_client.cc.orig | ||
| 3 | +++ remoting/host/remote_open_url/remote_open_url_client.cc | ||
| 4 | @@ -15,7 +15,7 @@ | ||
| 5 | #include "remoting/host/mojom/chromoting_host_services.mojom.h" | ||
| 6 | #include "remoting/host/mojom/remote_url_opener.mojom.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "remoting/host/remote_open_url/remote_open_url_client_delegate_linux.h" | ||
| 11 | #elif BUILDFLAG(IS_WIN) | ||
| 12 | #include "remoting/host/remote_open_url/remote_open_url_client_delegate_win.h" | ||
| 13 | @@ -28,7 +28,7 @@ namespace { | ||
| 14 | constexpr base::TimeDelta kRequestTimeout = base::Seconds(5); | ||
| 15 | |||
| 16 | std::unique_ptr<RemoteOpenUrlClient::Delegate> CreateDelegate() { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | return std::make_unique<RemoteOpenUrlClientDelegateLinux>(); | ||
| 20 | #elif BUILDFLAG(IS_WIN) | ||
| 21 | return std::make_unique<RemoteOpenUrlClientDelegateWin>(); | ||
diff --git a/www/chromium/patches/patch-remoting_host_remote_open_url_remote_open_url_util_cc b/www/chromium/patches/patch-remoting_host_remote_open_url_remote_open_url_util_cc new file mode 100644 index 0000000..44931e3 --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_remote_open_url_remote_open_url_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/host/remote_open_url/remote_open_url_util.cc | ||
| 2 | --- remoting/host/remote_open_url/remote_open_url_util.cc.orig | ||
| 3 | +++ remoting/host/remote_open_url/remote_open_url_util.cc | ||
| 4 | @@ -30,7 +30,7 @@ const wchar_t kRegisteredApplicationsKeyName[] = | ||
| 5 | #endif // defined (OS_WIN) | ||
| 6 | |||
| 7 | bool IsRemoteOpenUrlSupported() { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | return true; | ||
| 11 | #elif BUILDFLAG(IS_WIN) | ||
| 12 | // The modern default apps settings dialog is only available to Windows 8+. | ||
diff --git a/www/chromium/patches/patch-remoting_host_remote_open_url_url_forwarder_configurator_cc b/www/chromium/patches/patch-remoting_host_remote_open_url_url_forwarder_configurator_cc new file mode 100644 index 0000000..7a16b42 --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_remote_open_url_url_forwarder_configurator_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: remoting/host/remote_open_url/url_forwarder_configurator.cc | ||
| 2 | --- remoting/host/remote_open_url/url_forwarder_configurator.cc.orig | ||
| 3 | +++ remoting/host/remote_open_url/url_forwarder_configurator.cc | ||
| 4 | @@ -12,7 +12,7 @@ UrlForwarderConfigurator::UrlForwarderConfigurator() = | ||
| 5 | |||
| 6 | UrlForwarderConfigurator::~UrlForwarderConfigurator() = default; | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_WIN) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | // static | ||
| 12 | std::unique_ptr<UrlForwarderConfigurator> UrlForwarderConfigurator::Create() { | ||
diff --git a/www/chromium/patches/patch-remoting_host_remoting_me2me_host_cc b/www/chromium/patches/patch-remoting_host_remoting_me2me_host_cc new file mode 100644 index 0000000..0fc3a5c --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_remoting_me2me_host_cc | |||
| @@ -0,0 +1,93 @@ | |||
| 1 | Index: remoting/host/remoting_me2me_host.cc | ||
| 2 | --- remoting/host/remoting_me2me_host.cc.orig | ||
| 3 | +++ remoting/host/remoting_me2me_host.cc | ||
| 4 | @@ -124,7 +124,7 @@ | ||
| 5 | #include "remoting/host/mac/permission_utils.h" | ||
| 6 | #endif // BUILDFLAG(IS_APPLE) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <gtk/gtk.h> | ||
| 11 | |||
| 12 | #include "base/linux_util.h" | ||
| 13 | @@ -168,7 +168,7 @@ const char kApplicationName[] = "chromoting"; | ||
| 14 | const char kStdinConfigPath[] = "-"; | ||
| 15 | #endif // !defined(REMOTING_MULTI_PROCESS) | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // The command line switch used to pass name of the pipe to capture audio on | ||
| 20 | // linux. | ||
| 21 | const char kAudioPipeSwitchName[] = "audio-pipe-name"; | ||
| 22 | @@ -373,7 +373,7 @@ class HostProcess : public ConfigWatcher::Delegate, | ||
| 23 | |||
| 24 | std::unique_ptr<ChromotingHostContext> context_; | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | // Watch for certificate changes and kill the host when changes occur | ||
| 29 | std::unique_ptr<CertificateWatcher> cert_watcher_; | ||
| 30 | #endif | ||
| 31 | @@ -747,7 +747,7 @@ void HostProcess::StartOnNetworkThread() { | ||
| 32 | void HostProcess::ShutdownOnNetworkThread() { | ||
| 33 | DCHECK(context_->network_task_runner()->BelongsToCurrentThread()); | ||
| 34 | config_watcher_.reset(); | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | cert_watcher_.reset(); | ||
| 38 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 39 | } | ||
| 40 | @@ -806,7 +806,7 @@ void HostProcess::CreateAuthenticatorFactory() { | ||
| 41 | DCHECK(third_party_auth_config_.token_url.is_valid()); | ||
| 42 | DCHECK(third_party_auth_config_.token_validation_url.is_valid()); | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | if (!cert_watcher_) { | ||
| 47 | cert_watcher_ = std::make_unique<CertificateWatcher>( | ||
| 48 | base::BindRepeating(&HostProcess::ShutdownHost, | ||
| 49 | @@ -916,7 +916,7 @@ void HostProcess::StartOnUiThread() { | ||
| 50 | base::BindRepeating(&HostProcess::OnPolicyUpdate, base::Unretained(this)), | ||
| 51 | base::BindRepeating(&HostProcess::OnPolicyError, base::Unretained(this))); | ||
| 52 | |||
| 53 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 54 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 55 | // If an audio pipe is specific on the command-line then initialize | ||
| 56 | // AudioCapturerLinux to capture from it. | ||
| 57 | base::FilePath audio_pipe_name = base::CommandLine::ForCurrentProcess()-> | ||
| 58 | @@ -987,7 +987,7 @@ void HostProcess::ShutdownOnUiThread() { | ||
| 59 | // It is now safe for the HostProcess to be deleted. | ||
| 60 | self_ = nullptr; | ||
| 61 | |||
| 62 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 63 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 64 | // Cause the global AudioPipeReader to be freed, otherwise the audio | ||
| 65 | // thread will remain in-use and prevent the process from exiting. | ||
| 66 | // TODO(wez): DesktopEnvironmentFactory should own the pipe reader. | ||
| 67 | @@ -1697,7 +1697,7 @@ void HostProcess::StartHost() { | ||
| 68 | // The feature is enabled for all Googlers using a supported platform. | ||
| 69 | desktop_environment_options_.set_enable_remote_open_url(is_googler_); | ||
| 70 | |||
| 71 | -#if BUILDFLAG(IS_LINUX) || !defined(NDEBUG) | ||
| 72 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) || !defined(NDEBUG) | ||
| 73 | // Experimental feature. Enabled on Linux for easier testing. | ||
| 74 | if (is_googler_) { | ||
| 75 | desktop_environment_options_.set_enable_remote_webauthn(true); | ||
| 76 | @@ -1897,7 +1897,7 @@ int HostProcessMain() { | ||
| 77 | HOST_LOG << "Starting host process: version " << STRINGIZE(VERSION); | ||
| 78 | const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); | ||
| 79 | |||
| 80 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 81 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 82 | // Initialize Xlib for multi-threaded use, allowing non-Chromium code to | ||
| 83 | // use X11 safely (such as the WebRTC capturer, GTK ...) | ||
| 84 | x11::InitXlib(); | ||
| 85 | @@ -1941,7 +1941,7 @@ int HostProcessMain() { | ||
| 86 | std::unique_ptr<net::NetworkChangeNotifier> network_change_notifier( | ||
| 87 | net::NetworkChangeNotifier::CreateIfNeeded()); | ||
| 88 | |||
| 89 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 90 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 91 | // Create an X11EventSource on all UI threads, so the global X11 connection | ||
| 92 | // (x11::Connection::Get()) can dispatch X events. | ||
| 93 | auto event_source = | ||
diff --git a/www/chromium/patches/patch-remoting_host_setup_start_host_main_cc b/www/chromium/patches/patch-remoting_host_setup_start_host_main_cc new file mode 100644 index 0000000..dc77874 --- /dev/null +++ b/www/chromium/patches/patch-remoting_host_setup_start_host_main_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: remoting/host/setup/start_host_main.cc | ||
| 2 | --- remoting/host/setup/start_host_main.cc.orig | ||
| 3 | +++ remoting/host/setup/start_host_main.cc | ||
| 4 | @@ -32,7 +32,7 @@ | ||
| 5 | #include <unistd.h> | ||
| 6 | #endif // BUILDFLAG(IS_POSIX) | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "remoting/host/setup/daemon_controller_delegate_linux.h" | ||
| 11 | #include "remoting/host/setup/start_host_as_root.h" | ||
| 12 | #endif // BUILDFLAG(IS_LINUX) | ||
| 13 | @@ -126,7 +126,7 @@ void OnDone(HostStarter::Result result) { | ||
| 14 | } // namespace | ||
| 15 | |||
| 16 | int StartHostMain(int argc, char** argv) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | // Minimize the amount of code that runs as root on Posix systems. | ||
| 20 | if (getuid() == 0) { | ||
| 21 | return remoting::StartHostAsRoot(argc, argv); | ||
| 22 | @@ -163,7 +163,7 @@ int StartHostMain(int argc, char** argv) { | ||
| 23 | // for the account which generated |code|. | ||
| 24 | std::string host_owner = command_line->GetSwitchValueASCII("host-owner"); | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 28 | if (command_line->HasSwitch("no-start")) { | ||
| 29 | // On Linux, registering the host with systemd and starting it is the only | ||
| 30 | // reason start_host requires root. The --no-start options skips that final | ||
diff --git a/www/chromium/patches/patch-remoting_resources_remoting_strings_grd b/www/chromium/patches/patch-remoting_resources_remoting_strings_grd new file mode 100644 index 0000000..944d222 --- /dev/null +++ b/www/chromium/patches/patch-remoting_resources_remoting_strings_grd | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: remoting/resources/remoting_strings.grd | ||
| 2 | --- remoting/resources/remoting_strings.grd.orig | ||
| 3 | +++ remoting/resources/remoting_strings.grd | ||
| 4 | @@ -936,7 +936,7 @@ If '<ph name="SERVICE_SCRIPT_NAME">$3<ex>org.chromium. | ||
| 5 | <message name="IDS_URL_FORWARDER_INCORRECTLY_CONFIGURED" desc="Message shown when the Chrome Remote Desktop URL forwarder is incorrectly configured."> | ||
| 6 | <ph name="URL_FORWARDER_NAME">%s<ex>Chrome Remote Desktop URL Forwarder</ex></ph> is not configured correctly. Please choose a different default web browser and then enable URL forwarding again. | ||
| 7 | </message> | ||
| 8 | - <if expr="is_linux"> | ||
| 9 | + <if expr="is_posix"> | ||
| 10 | <message name="IDS_SESSION_DIALOG_MESSAGE" desc="The message to show at the top of the session-selection dialog."> | ||
| 11 | Select a session to launch within your Chrome Remote Desktop environment. (Note that some session types may not support running within Chrome Remote Desktop and on the local console simultaneously.) | ||
| 12 | </message> | ||
| 13 | @@ -952,7 +952,7 @@ If '<ph name="SERVICE_SCRIPT_NAME">$3<ex>org.chromium. | ||
| 14 | <message name="IDS_SESSION_DIALOG_DEFAULT_SESSION_COMMENT" desc="The comment for the entry to launch the default session."> | ||
| 15 | Launch the default XSession | ||
| 16 | </message> | ||
| 17 | - </if> <!-- is_linux --> | ||
| 18 | + </if> <!-- is_posix --> | ||
| 19 | </messages> | ||
| 20 | </release> | ||
| 21 | </grit> | ||
diff --git a/www/chromium/patches/patch-sandbox_BUILD_gn b/www/chromium/patches/patch-sandbox_BUILD_gn new file mode 100644 index 0000000..d46dbfa --- /dev/null +++ b/www/chromium/patches/patch-sandbox_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: sandbox/BUILD.gn | ||
| 2 | --- sandbox/BUILD.gn.orig | ||
| 3 | +++ sandbox/BUILD.gn | ||
| 4 | @@ -27,7 +27,7 @@ group("sandbox") { | ||
| 5 | "//sandbox/mac:system_services", | ||
| 6 | "//sandbox/mac/mojom", | ||
| 7 | ] | ||
| 8 | - } else if (is_linux || is_chromeos || is_android) { | ||
| 9 | + } else if ((is_linux && !is_bsd) || is_chromeos || is_android) { | ||
| 10 | public_deps = [ "//sandbox/linux:sandbox" ] | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-sandbox_features_gni b/www/chromium/patches/patch-sandbox_features_gni new file mode 100644 index 0000000..cebcd2f --- /dev/null +++ b/www/chromium/patches/patch-sandbox_features_gni | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: sandbox/features.gni | ||
| 2 | --- sandbox/features.gni.orig | ||
| 3 | +++ sandbox/features.gni | ||
| 4 | @@ -6,7 +6,7 @@ | ||
| 5 | # currently. | ||
| 6 | # Do not disable seccomp_bpf anywhere without talking to | ||
| 7 | # security@chromium.org! | ||
| 8 | -use_seccomp_bpf = (is_linux || is_chromeos || is_android) && | ||
| 9 | +use_seccomp_bpf = !is_bsd && (is_linux || is_chromeos || is_android) && | ||
| 10 | (current_cpu == "x86" || current_cpu == "x64" || | ||
| 11 | current_cpu == "arm" || current_cpu == "arm64" || | ||
| 12 | current_cpu == "mipsel" || current_cpu == "mips64el") | ||
diff --git a/www/chromium/patches/patch-sandbox_linux_BUILD_gn b/www/chromium/patches/patch-sandbox_linux_BUILD_gn new file mode 100644 index 0000000..39e0a8d --- /dev/null +++ b/www/chromium/patches/patch-sandbox_linux_BUILD_gn | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | Index: sandbox/linux/BUILD.gn | ||
| 2 | --- sandbox/linux/BUILD.gn.orig | ||
| 3 | +++ sandbox/linux/BUILD.gn | ||
| 4 | @@ -12,12 +12,12 @@ if (is_android) { | ||
| 5 | } | ||
| 6 | |||
| 7 | declare_args() { | ||
| 8 | - compile_suid_client = is_linux || is_chromeos | ||
| 9 | + compile_suid_client = (is_linux || is_chromeos) && !is_bsd | ||
| 10 | |||
| 11 | - compile_credentials = is_linux || is_chromeos | ||
| 12 | + compile_credentials = (is_linux || is_chromeos) && !is_bsd | ||
| 13 | |||
| 14 | # On Android, use plain GTest. | ||
| 15 | - use_base_test_suite = is_linux || is_chromeos | ||
| 16 | + use_base_test_suite = (is_linux || is_chromeos) && !is_bsd | ||
| 17 | } | ||
| 18 | |||
| 19 | # We have two principal targets: sandbox and sandbox_linux_unittests | ||
| 20 | @@ -367,6 +367,39 @@ component("sandbox_services") { | ||
| 21 | sources += [ | ||
| 22 | "services/libc_interceptor.cc", | ||
| 23 | "services/libc_interceptor.h", | ||
| 24 | + ] | ||
| 25 | + } | ||
| 26 | + | ||
| 27 | + if (is_bsd) { | ||
| 28 | + sources -= [ | ||
| 29 | + "services/scoped_process.cc", | ||
| 30 | + "services/scoped_process.h", | ||
| 31 | + "services/syscall_wrappers.cc", | ||
| 32 | + "services/syscall_wrappers.h", | ||
| 33 | + "services/yama.cc", | ||
| 34 | + "services/yama.h", | ||
| 35 | + "syscall_broker/broker_channel.cc", | ||
| 36 | + "syscall_broker/broker_channel.h", | ||
| 37 | + "syscall_broker/broker_client.cc", | ||
| 38 | + "syscall_broker/broker_client.h", | ||
| 39 | + "syscall_broker/broker_command.cc", | ||
| 40 | + "syscall_broker/broker_command.h", | ||
| 41 | + "syscall_broker/broker_file_permission.cc", | ||
| 42 | + "syscall_broker/broker_file_permission.h", | ||
| 43 | + "syscall_broker/broker_host.cc", | ||
| 44 | + "syscall_broker/broker_host.h", | ||
| 45 | + "syscall_broker/broker_permission_list.cc", | ||
| 46 | + "syscall_broker/broker_permission_list.h", | ||
| 47 | + "syscall_broker/broker_process.cc", | ||
| 48 | + "syscall_broker/broker_process.h", | ||
| 49 | + "syscall_broker/broker_sandbox_config.cc", | ||
| 50 | + "syscall_broker/broker_sandbox_config.h", | ||
| 51 | + "syscall_broker/broker_simple_message.cc", | ||
| 52 | + "syscall_broker/broker_simple_message.h", | ||
| 53 | + "syscall_broker/remote_syscall_arg_handler.cc", | ||
| 54 | + "syscall_broker/remote_syscall_arg_handler.h", | ||
| 55 | + "syscall_broker/syscall_dispatcher.cc", | ||
| 56 | + "syscall_broker/syscall_dispatcher.h", | ||
| 57 | ] | ||
| 58 | } | ||
| 59 | } | ||
diff --git a/www/chromium/patches/patch-sandbox_linux_services_init_process_reaper_cc b/www/chromium/patches/patch-sandbox_linux_services_init_process_reaper_cc new file mode 100644 index 0000000..aa692f8 --- /dev/null +++ b/www/chromium/patches/patch-sandbox_linux_services_init_process_reaper_cc | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: sandbox/linux/services/init_process_reaper.cc | ||
| 2 | --- sandbox/linux/services/init_process_reaper.cc.orig | ||
| 3 | +++ sandbox/linux/services/init_process_reaper.cc | ||
| 4 | @@ -2,6 +2,7 @@ | ||
| 5 | // Use of this source code is governed by a BSD-style license that can be | ||
| 6 | // found in the LICENSE file. | ||
| 7 | |||
| 8 | +#if 0 | ||
| 9 | #include "sandbox/linux/services/init_process_reaper.h" | ||
| 10 | |||
| 11 | #include <signal.h> | ||
| 12 | @@ -100,3 +101,4 @@ bool CreateInitProcessReaper(base::OnceClosure post_fo | ||
| 13 | } | ||
| 14 | |||
| 15 | } // namespace sandbox. | ||
| 16 | +#endif | ||
diff --git a/www/chromium/patches/patch-sandbox_linux_services_libc_interceptor_cc b/www/chromium/patches/patch-sandbox_linux_services_libc_interceptor_cc new file mode 100644 index 0000000..2f9b55e --- /dev/null +++ b/www/chromium/patches/patch-sandbox_linux_services_libc_interceptor_cc | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Index: sandbox/linux/services/libc_interceptor.cc | ||
| 2 | --- sandbox/linux/services/libc_interceptor.cc.orig | ||
| 3 | +++ sandbox/linux/services/libc_interceptor.cc | ||
| 4 | @@ -11,7 +11,9 @@ | ||
| 5 | #include <stddef.h> | ||
| 6 | #include <stdint.h> | ||
| 7 | #include <string.h> | ||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | #include <sys/prctl.h> | ||
| 10 | +#endif | ||
| 11 | #include <sys/socket.h> | ||
| 12 | #include <sys/types.h> | ||
| 13 | #include <time.h> | ||
| 14 | @@ -94,7 +96,7 @@ bool ReadTimeStruct(base::PickleIterator* iter, | ||
| 15 | } else { | ||
| 16 | base::AutoLock lock(g_timezones_lock.Get()); | ||
| 17 | auto ret_pair = g_timezones.Get().insert(timezone); | ||
| 18 | - output->tm_zone = ret_pair.first->c_str(); | ||
| 19 | + output->tm_zone = (char *)ret_pair.first->c_str(); | ||
| 20 | } | ||
| 21 | |||
| 22 | return true; | ||
diff --git a/www/chromium/patches/patch-sandbox_policy_BUILD_gn b/www/chromium/patches/patch-sandbox_policy_BUILD_gn new file mode 100644 index 0000000..731d575 --- /dev/null +++ b/www/chromium/patches/patch-sandbox_policy_BUILD_gn | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | Index: sandbox/policy/BUILD.gn | ||
| 2 | --- sandbox/policy/BUILD.gn.orig | ||
| 3 | +++ sandbox/policy/BUILD.gn | ||
| 4 | @@ -35,7 +35,7 @@ component("policy") { | ||
| 5 | "//sandbox/policy/mojom", | ||
| 6 | ] | ||
| 7 | public_deps = [] | ||
| 8 | - if (is_linux || is_chromeos) { | ||
| 9 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | sources += [ | ||
| 11 | "linux/bpf_audio_policy_linux.cc", | ||
| 12 | "linux/bpf_audio_policy_linux.h", | ||
| 13 | @@ -88,6 +88,27 @@ component("policy") { | ||
| 14 | "//sandbox/linux:sandbox_services", | ||
| 15 | "//sandbox/linux:seccomp_bpf", | ||
| 16 | "//sandbox/linux:suid_sandbox_client", | ||
| 17 | + ] | ||
| 18 | + } | ||
| 19 | + if (is_openbsd) { | ||
| 20 | + sources += [ | ||
| 21 | + "openbsd/sandbox_openbsd.cc", | ||
| 22 | + "openbsd/sandbox_openbsd.h", | ||
| 23 | + ] | ||
| 24 | + deps += [ | ||
| 25 | + "//sandbox:sandbox_buildflags", | ||
| 26 | + "//ui/gfx/x", | ||
| 27 | + ] | ||
| 28 | + libs = [ "util" ] | ||
| 29 | + } | ||
| 30 | + if (is_freebsd) { | ||
| 31 | + sources += [ | ||
| 32 | + "freebsd/sandbox_freebsd.cc", | ||
| 33 | + "freebsd/sandbox_freebsd.h", | ||
| 34 | + ] | ||
| 35 | + deps += [ | ||
| 36 | + "//sandbox:sandbox_buildflags", | ||
| 37 | + "//ui/gfx/x", | ||
| 38 | ] | ||
| 39 | } | ||
| 40 | if (is_chromeos_ash) { | ||
diff --git a/www/chromium/patches/patch-sandbox_policy_features_cc b/www/chromium/patches/patch-sandbox_policy_features_cc new file mode 100644 index 0000000..7900bab --- /dev/null +++ b/www/chromium/patches/patch-sandbox_policy_features_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: sandbox/policy/features.cc | ||
| 2 | --- sandbox/policy/features.cc.orig | ||
| 3 | +++ sandbox/policy/features.cc | ||
| 4 | @@ -16,7 +16,11 @@ namespace features { | ||
| 5 | // Enables network service sandbox. | ||
| 6 | // (Only causes an effect when feature kNetworkService is enabled.) | ||
| 7 | const base::Feature kNetworkServiceSandbox{"NetworkServiceSandbox", | ||
| 8 | +#if BUILDFLAG(IS_BSD) | ||
| 9 | + base::FEATURE_ENABLED_BY_DEFAULT}; | ||
| 10 | +#else | ||
| 11 | base::FEATURE_DISABLED_BY_DEFAULT}; | ||
| 12 | +#endif | ||
| 13 | #endif // !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_FUCHSIA) | ||
| 14 | |||
| 15 | #if BUILDFLAG(IS_WIN) | ||
diff --git a/www/chromium/patches/patch-sandbox_policy_freebsd_sandbox_freebsd_cc b/www/chromium/patches/patch-sandbox_policy_freebsd_sandbox_freebsd_cc new file mode 100644 index 0000000..507282c --- /dev/null +++ b/www/chromium/patches/patch-sandbox_policy_freebsd_sandbox_freebsd_cc | |||
| @@ -0,0 +1,251 @@ | |||
| 1 | Index: sandbox/policy/freebsd/sandbox_freebsd.cc | ||
| 2 | --- sandbox/policy/freebsd/sandbox_freebsd.cc.orig | ||
| 3 | +++ sandbox/policy/freebsd/sandbox_freebsd.cc | ||
| 4 | @@ -0,0 +1,247 @@ | ||
| 5 | +// Copyright (c) 2012 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 10 | + | ||
| 11 | +#include <dirent.h> | ||
| 12 | +#include <fcntl.h> | ||
| 13 | +#include <stdint.h> | ||
| 14 | +#include <sys/resource.h> | ||
| 15 | +#include <sys/stat.h> | ||
| 16 | +#include <sys/time.h> | ||
| 17 | +#include <sys/types.h> | ||
| 18 | +#include <unistd.h> | ||
| 19 | + | ||
| 20 | +#include <limits> | ||
| 21 | +#include <memory> | ||
| 22 | +#include <string> | ||
| 23 | +#include <vector> | ||
| 24 | + | ||
| 25 | +#include "base/bind.h" | ||
| 26 | +#include "base/callback_helpers.h" | ||
| 27 | +#include "base/command_line.h" | ||
| 28 | +#include "base/debug/stack_trace.h" | ||
| 29 | +#include "base/feature_list.h" | ||
| 30 | +#include "base/files/file_path.h" | ||
| 31 | +#include "base/files/file_util.h" | ||
| 32 | +#include "base/files/scoped_file.h" | ||
| 33 | +#include "base/logging.h" | ||
| 34 | +#include "base/memory/singleton.h" | ||
| 35 | +#include "base/path_service.h" | ||
| 36 | +#include "base/posix/eintr_wrapper.h" | ||
| 37 | +#include "base/strings/string_number_conversions.h" | ||
| 38 | +#include "base/system/sys_info.h" | ||
| 39 | +#include "base/time/time.h" | ||
| 40 | +#include "build/build_config.h" | ||
| 41 | +#include "sandbox/constants.h" | ||
| 42 | +#include "sandbox/linux/services/credentials.h" | ||
| 43 | +#include "sandbox/linux/services/namespace_sandbox.h" | ||
| 44 | +#include "sandbox/linux/services/proc_util.h" | ||
| 45 | +#include "sandbox/linux/services/resource_limits.h" | ||
| 46 | +#include "sandbox/linux/services/thread_helpers.h" | ||
| 47 | +#include "sandbox/linux/syscall_broker/broker_command.h" | ||
| 48 | +#include "sandbox/linux/syscall_broker/broker_process.h" | ||
| 49 | +#include "sandbox/policy/sandbox.h" | ||
| 50 | +#include "sandbox/policy/sandbox_type.h" | ||
| 51 | +#include "sandbox/policy/mojom/sandbox.mojom.h" | ||
| 52 | +#include "sandbox/policy/switches.h" | ||
| 53 | +#include "sandbox/sandbox_buildflags.h" | ||
| 54 | + | ||
| 55 | +#if BUILDFLAG(USING_SANITIZER) | ||
| 56 | +#include <sanitizer/common_interface_defs.h> | ||
| 57 | +#endif | ||
| 58 | + | ||
| 59 | +#if defined(USE_NSS_CERTS) | ||
| 60 | +#include "crypto/nss_util.h" | ||
| 61 | +#endif | ||
| 62 | + | ||
| 63 | +#include "ui/gfx/x/connection.h" | ||
| 64 | +#include "ui/gfx/font_util.h" | ||
| 65 | + | ||
| 66 | +#include <X11/Xlib.h> | ||
| 67 | + | ||
| 68 | +#define MAXTOKENS 3 | ||
| 69 | + | ||
| 70 | +#define _UNVEIL_MAIN "/etc/chromium/unveil.main"; | ||
| 71 | +#define _UNVEIL_RENDERER "/etc/chromium/unveil.renderer"; | ||
| 72 | +#define _UNVEIL_GPU "/etc/chromium/unveil.gpu"; | ||
| 73 | +#define _UNVEIL_PLUGIN "/etc/chromium/unveil.plugin"; | ||
| 74 | +#define _UNVEIL_UTILITY "/etc/chromium/unveil.utility"; | ||
| 75 | +#define _UNVEIL_UTILITY_NETWORK "/etc/chromium/unveil.utility_network"; | ||
| 76 | +#define _UNVEIL_UTILITY_AUDIO "/etc/chromium/unveil.utility_audio"; | ||
| 77 | +#define _UNVEIL_UTILITY_VIDEO "/etc/chromium/unveil.utility_video"; | ||
| 78 | + | ||
| 79 | +namespace sandbox { | ||
| 80 | +namespace policy { | ||
| 81 | + | ||
| 82 | +SandboxLinux::SandboxLinux() | ||
| 83 | + : sandbox_status_flags_(kInvalid), | ||
| 84 | + pre_initialized_(false), | ||
| 85 | + initialize_sandbox_ran_(false), | ||
| 86 | + broker_process_(nullptr) { | ||
| 87 | +} | ||
| 88 | + | ||
| 89 | +SandboxLinux::~SandboxLinux() { | ||
| 90 | + if (pre_initialized_) { | ||
| 91 | + CHECK(initialize_sandbox_ran_); | ||
| 92 | + } | ||
| 93 | +} | ||
| 94 | + | ||
| 95 | +SandboxLinux* SandboxLinux::GetInstance() { | ||
| 96 | + SandboxLinux* instance = base::Singleton<SandboxLinux>::get(); | ||
| 97 | + CHECK(instance); | ||
| 98 | + return instance; | ||
| 99 | +} | ||
| 100 | + | ||
| 101 | +void SandboxLinux::PreinitializeSandbox(sandbox::mojom::Sandbox sandbox_type) { | ||
| 102 | + CHECK(!pre_initialized_); | ||
| 103 | +#if BUILDFLAG(USING_SANITIZER) | ||
| 104 | + // Sanitizers need to open some resources before the sandbox is enabled. | ||
| 105 | + // This should not fork, not launch threads, not open a directory. | ||
| 106 | + __sanitizer_sandbox_on_notify(sanitizer_args()); | ||
| 107 | + sanitizer_args_.reset(); | ||
| 108 | +#endif | ||
| 109 | + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | ||
| 110 | + const std::string process_type = | ||
| 111 | + command_line->GetSwitchValueASCII(switches::kProcessType); | ||
| 112 | + | ||
| 113 | + base::SysInfo::AmountOfPhysicalMemory(); | ||
| 114 | + base::SysInfo::NumberOfProcessors(); | ||
| 115 | + | ||
| 116 | +#if defined(USE_NSS_CERTS) | ||
| 117 | + // The main process has to initialize the ~/.pki dir which won't work | ||
| 118 | + // after unveil(2). | ||
| 119 | + if (process_type.empty()) | ||
| 120 | + crypto::EnsureNSSInit(); | ||
| 121 | +#endif | ||
| 122 | + | ||
| 123 | + // cache the XErrorDB by forcing a read on it | ||
| 124 | + { | ||
| 125 | + auto* connection = x11::Connection::Get(); | ||
| 126 | + auto* display = connection->GetXlibDisplay().display(); | ||
| 127 | + | ||
| 128 | + char buf[1]; | ||
| 129 | + XGetErrorDatabaseText(display, "XProtoError", "0", "", buf, base::size(buf)); | ||
| 130 | + } | ||
| 131 | + | ||
| 132 | + if (process_type.empty()) { | ||
| 133 | + base::FilePath cache_directory, local_directory; | ||
| 134 | + | ||
| 135 | + base::PathService::Get(base::DIR_CACHE, &cache_directory); | ||
| 136 | + base::PathService::Get(base::DIR_HOME, &local_directory); | ||
| 137 | + | ||
| 138 | + cache_directory = cache_directory.AppendASCII("chromium"); | ||
| 139 | + local_directory = local_directory.AppendASCII(".local").AppendASCII("share").AppendASCII("applications"); | ||
| 140 | + | ||
| 141 | + if (!base::CreateDirectory(cache_directory)) { | ||
| 142 | + LOG(ERROR) << "Failed to create " << cache_directory.value() << " directory."; | ||
| 143 | + } | ||
| 144 | + | ||
| 145 | + if (!base::CreateDirectory(local_directory)) { | ||
| 146 | + LOG(ERROR) << "Failed to create " << local_directory.value() << " directory."; | ||
| 147 | + } | ||
| 148 | + } | ||
| 149 | + | ||
| 150 | + if (process_type == switches::kRendererProcess) | ||
| 151 | + gfx::InitializeFonts(); | ||
| 152 | + | ||
| 153 | + pre_initialized_ = true; | ||
| 154 | +} | ||
| 155 | + | ||
| 156 | +bool SandboxLinux::InitializeSandbox(sandbox::mojom::Sandbox sandbox_type, | ||
| 157 | + SandboxLinux::PreSandboxHook hook, | ||
| 158 | + const Options& options) { | ||
| 159 | + DCHECK(!initialize_sandbox_ran_); | ||
| 160 | + initialize_sandbox_ran_ = true; | ||
| 161 | + | ||
| 162 | + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | ||
| 163 | + const std::string process_type = | ||
| 164 | + command_line->GetSwitchValueASCII(switches::kProcessType); | ||
| 165 | + | ||
| 166 | + if (command_line->HasSwitch(switches::kNoSandbox)) | ||
| 167 | + return true; | ||
| 168 | + | ||
| 169 | + VLOG(1) << "SandboxLinux::InitializeSandbox: process_type=" | ||
| 170 | + << process_type << " sandbox_type=" << GetSandboxTypeInEnglish(sandbox_type); | ||
| 171 | + | ||
| 172 | + // Only one thread is running, pre-initialize if not already done. | ||
| 173 | + if (!pre_initialized_) | ||
| 174 | + PreinitializeSandbox(sandbox_type); | ||
| 175 | + | ||
| 176 | + // Attempt to limit the future size of the address space of the process. | ||
| 177 | + int error = 0; | ||
| 178 | + const bool limited_as = LimitAddressSpace(&error); | ||
| 179 | + if (error) { | ||
| 180 | + // Restore errno. Internally to |LimitAddressSpace|, the errno due to | ||
| 181 | + // setrlimit may be lost. | ||
| 182 | + errno = error; | ||
| 183 | + PCHECK(limited_as); | ||
| 184 | + } | ||
| 185 | + | ||
| 186 | + return true; | ||
| 187 | +} | ||
| 188 | + | ||
| 189 | +bool SandboxLinux::LimitAddressSpace(int* error) { | ||
| 190 | +#if !defined(ADDRESS_SANITIZER) && !defined(MEMORY_SANITIZER) && \ | ||
| 191 | + !defined(THREAD_SANITIZER) && !defined(LEAK_SANITIZER) | ||
| 192 | + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | ||
| 193 | + if (SandboxTypeFromCommandLine(*command_line) == sandbox::mojom::Sandbox::kNoSandbox) { | ||
| 194 | + return false; | ||
| 195 | + } | ||
| 196 | + | ||
| 197 | + // Unfortunately, it does not appear possible to set RLIMIT_AS such that it | ||
| 198 | + // will both (a) be high enough to support V8's and WebAssembly's address | ||
| 199 | + // space requirements while also (b) being low enough to mitigate exploits | ||
| 200 | + // using integer overflows that require large allocations, heap spray, or | ||
| 201 | + // other memory-hungry attack modes. | ||
| 202 | + | ||
| 203 | + *error = sandbox::ResourceLimits::Lower( | ||
| 204 | + RLIMIT_DATA, static_cast<rlim_t>(sandbox::kDataSizeLimit)); | ||
| 205 | + | ||
| 206 | + // Cache the resource limit before turning on the sandbox. | ||
| 207 | + base::SysInfo::AmountOfVirtualMemory(); | ||
| 208 | + base::SysInfo::MaxSharedMemorySize(); | ||
| 209 | + | ||
| 210 | + return *error == 0; | ||
| 211 | +#else | ||
| 212 | + base::SysInfo::AmountOfVirtualMemory(); | ||
| 213 | + return false; | ||
| 214 | +#endif // !defined(ADDRESS_SANITIZER) && !defined(MEMORY_SANITIZER) && | ||
| 215 | + // !defined(THREAD_SANITIZER) && !defined(LEAK_SANITIZER) | ||
| 216 | +} | ||
| 217 | + | ||
| 218 | +// static | ||
| 219 | +std::string SandboxLinux::GetSandboxTypeInEnglish(sandbox::mojom::Sandbox sandbox_type) { | ||
| 220 | + switch (sandbox_type) { | ||
| 221 | + case sandbox::mojom::Sandbox::kNoSandbox: | ||
| 222 | + return "Unsandboxed"; | ||
| 223 | + case sandbox::mojom::Sandbox::kRenderer: | ||
| 224 | + return "Renderer"; | ||
| 225 | + case sandbox::mojom::Sandbox::kUtility: | ||
| 226 | + return "Utility"; | ||
| 227 | + case sandbox::mojom::Sandbox::kGpu: | ||
| 228 | + return "GPU"; | ||
| 229 | + case sandbox::mojom::Sandbox::kPpapi: | ||
| 230 | + return "PPAPI"; | ||
| 231 | + case sandbox::mojom::Sandbox::kNetwork: | ||
| 232 | + return "Network"; | ||
| 233 | + case sandbox::mojom::Sandbox::kCdm: | ||
| 234 | + return "CDM"; | ||
| 235 | + case sandbox::mojom::Sandbox::kPrintCompositor: | ||
| 236 | + return "Print Compositor"; | ||
| 237 | + case sandbox::mojom::Sandbox::kAudio: | ||
| 238 | + return "Audio"; | ||
| 239 | + case sandbox::mojom::Sandbox::kSpeechRecognition: | ||
| 240 | + return "Speech Recognition"; | ||
| 241 | + case sandbox::mojom::Sandbox::kService: | ||
| 242 | + return "Service"; | ||
| 243 | + case sandbox::mojom::Sandbox::kVideoCapture: | ||
| 244 | + return "Video Capture"; | ||
| 245 | + default: | ||
| 246 | + return "Unknown"; | ||
| 247 | + } | ||
| 248 | +} | ||
| 249 | + | ||
| 250 | +} // namespace policy | ||
| 251 | +} // namespace sandbox | ||
diff --git a/www/chromium/patches/patch-sandbox_policy_freebsd_sandbox_freebsd_h b/www/chromium/patches/patch-sandbox_policy_freebsd_sandbox_freebsd_h new file mode 100644 index 0000000..602069d --- /dev/null +++ b/www/chromium/patches/patch-sandbox_policy_freebsd_sandbox_freebsd_h | |||
| @@ -0,0 +1,282 @@ | |||
| 1 | Index: sandbox/policy/freebsd/sandbox_freebsd.h | ||
| 2 | --- sandbox/policy/freebsd/sandbox_freebsd.h.orig | ||
| 3 | +++ sandbox/policy/freebsd/sandbox_freebsd.h | ||
| 4 | @@ -0,0 +1,278 @@ | ||
| 5 | +// Copyright (c) 2012 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | +#ifndef SANDBOX_POLICY_LINUX_SANDBOX_OPENBSD_H_ | ||
| 9 | +#define SANDBOX_POLICY_LINUX_SANDBOX_OPENBSD_H_ | ||
| 10 | + | ||
| 11 | +#include <memory> | ||
| 12 | +#include <string> | ||
| 13 | +#include <vector> | ||
| 14 | + | ||
| 15 | +#include "base/logging.h" | ||
| 16 | +#include "base/posix/global_descriptors.h" | ||
| 17 | +#include "sandbox/policy/export.h" | ||
| 18 | +#include "sandbox/policy/linux/sandbox_seccomp_bpf_linux.h" | ||
| 19 | +#include "sandbox/policy/mojom/sandbox.mojom.h" | ||
| 20 | +#include "sandbox/policy/sanitizer_buildflags.h" | ||
| 21 | + | ||
| 22 | +#if BUILDFLAG(USING_SANITIZER) | ||
| 23 | +#include <sanitizer/common_interface_defs.h> | ||
| 24 | +#endif | ||
| 25 | + | ||
| 26 | +namespace base { | ||
| 27 | +template <typename T> | ||
| 28 | +struct DefaultSingletonTraits; | ||
| 29 | +class Thread; | ||
| 30 | +} // namespace base | ||
| 31 | + | ||
| 32 | +namespace sandbox { | ||
| 33 | +namespace syscall_broker { | ||
| 34 | +class BrokerProcess; | ||
| 35 | +} // namespace syscall_broker | ||
| 36 | +} // namespace sandbox | ||
| 37 | + | ||
| 38 | +namespace sandbox { | ||
| 39 | +namespace policy { | ||
| 40 | + | ||
| 41 | +// A singleton class to represent and change our sandboxing state for the | ||
| 42 | +// three main Linux sandboxes. | ||
| 43 | +// The sandboxing model allows using two layers of sandboxing. The first layer | ||
| 44 | +// can be implemented either with unprivileged namespaces or with the setuid | ||
| 45 | +// sandbox. This class provides a way to engage the namespace sandbox, but does | ||
| 46 | +// not deal with the legacy setuid sandbox directly. | ||
| 47 | +// The second layer is mainly based on seccomp-bpf and is engaged with | ||
| 48 | +// InitializeSandbox(). InitializeSandbox() is also responsible for "sealing" | ||
| 49 | +// the first layer of sandboxing. That is, InitializeSandbox must always be | ||
| 50 | +// called to have any meaningful sandboxing at all. | ||
| 51 | +class SANDBOX_POLICY_EXPORT SandboxLinux { | ||
| 52 | + public: | ||
| 53 | + // This is a list of sandbox IPC methods which the renderer may send to the | ||
| 54 | + // sandbox host. See | ||
| 55 | + // https://chromium.googlesource.com/chromium/src/+/master/docs/linux_sandbox_ipc.md | ||
| 56 | + // This isn't the full list, values < 32 are reserved for methods called from | ||
| 57 | + // Skia, and values < 64 are reserved for libc_interceptor.cc. | ||
| 58 | + enum LinuxSandboxIPCMethods { | ||
| 59 | + DEPRECATED_METHOD_GET_FALLBACK_FONT_FOR_CHAR = 64, | ||
| 60 | + DEPRECATED_METHOD_GET_CHILD_WITH_INODE, | ||
| 61 | + DEPRECATED_METHOD_GET_STYLE_FOR_STRIKE, | ||
| 62 | + METHOD_MAKE_SHARED_MEMORY_SEGMENT, | ||
| 63 | + DEPRECATED_METHOD_MATCH_WITH_FALLBACK, | ||
| 64 | + }; | ||
| 65 | + | ||
| 66 | + // These form a bitmask which describes the conditions of the Linux sandbox. | ||
| 67 | + // Note: this doesn't strictly give you the current status, it states | ||
| 68 | + // what will be enabled when the relevant processes are initialized. | ||
| 69 | + enum Status { | ||
| 70 | + // SUID sandbox active. | ||
| 71 | + kSUID = 1 << 0, | ||
| 72 | + | ||
| 73 | + // Sandbox is using a new PID namespace. | ||
| 74 | + kPIDNS = 1 << 1, | ||
| 75 | + | ||
| 76 | + // Sandbox is using a new network namespace. | ||
| 77 | + kNetNS = 1 << 2, | ||
| 78 | + | ||
| 79 | + // seccomp-bpf sandbox active. | ||
| 80 | + kSeccompBPF = 1 << 3, | ||
| 81 | + | ||
| 82 | + // The Yama LSM module is present and enforcing. | ||
| 83 | + kYama = 1 << 4, | ||
| 84 | + | ||
| 85 | + // seccomp-bpf sandbox is active and the kernel supports TSYNC. | ||
| 86 | + kSeccompTSYNC = 1 << 5, | ||
| 87 | + | ||
| 88 | + // User namespace sandbox active. | ||
| 89 | + kUserNS = 1 << 6, | ||
| 90 | + | ||
| 91 | + // A flag that denotes an invalid sandbox status. | ||
| 92 | + kInvalid = 1 << 31, | ||
| 93 | + }; | ||
| 94 | + | ||
| 95 | + // SandboxLinux Options are a superset of SandboxSecompBPF Options. | ||
| 96 | + struct Options : public SandboxSeccompBPF::Options { | ||
| 97 | + // When running with a zygote, the namespace sandbox will have already | ||
| 98 | + // been engaged prior to initializing SandboxLinux itself, and need not | ||
| 99 | + // be done so again. Set to true to indicate that there isn't a zygote | ||
| 100 | + // for this process and the step is to be performed here explicitly. | ||
| 101 | + bool engage_namespace_sandbox = false; | ||
| 102 | + | ||
| 103 | + // Allow starting the sandbox with multiple threads already running. This | ||
| 104 | + // will enable TSYNC for seccomp-BPF, which syncs the seccomp-BPF policy | ||
| 105 | + // across all running threads. | ||
| 106 | + bool allow_threads_during_sandbox_init = false; | ||
| 107 | + | ||
| 108 | + // Enables the CHECK for open directories. The open directory check is only | ||
| 109 | + // useful for the chroot jail (from the semantic layer of the sandbox), and | ||
| 110 | + // can safely be disabled if we are only enabling the seccomp-BPF layer. | ||
| 111 | + bool check_for_open_directories = true; | ||
| 112 | + }; | ||
| 113 | + | ||
| 114 | + // Callers can provide this hook to run code right before the policy | ||
| 115 | + // is passed to the BPF compiler and the sandbox is engaged. If | ||
| 116 | + // pre_sandbox_hook() returns true, the sandbox will be engaged | ||
| 117 | + // afterwards, otherwise the process is terminated. | ||
| 118 | + using PreSandboxHook = base::OnceCallback<bool(Options)>; | ||
| 119 | + | ||
| 120 | + // Get our singleton instance. | ||
| 121 | + static SandboxLinux* GetInstance(); | ||
| 122 | + | ||
| 123 | + SandboxLinux(const SandboxLinux&) = delete; | ||
| 124 | + SandboxLinux& operator=(const SandboxLinux&) = delete; | ||
| 125 | + | ||
| 126 | + bool SetPledge(const char *pstring, const char *ppath); | ||
| 127 | + bool SetUnveil(const std::string process_type, sandbox::mojom::Sandbox sandbox_type); | ||
| 128 | + | ||
| 129 | + // Do some initialization that can only be done before any of the sandboxes | ||
| 130 | + // are enabled. If using the setuid sandbox, this should be called manually | ||
| 131 | + // before the setuid sandbox is engaged. | ||
| 132 | + // Security: When this runs, it is imperative that either InitializeSandbox() | ||
| 133 | + // runs as well or that all file descriptors returned in | ||
| 134 | + // GetFileDescriptorsToClose() get closed. | ||
| 135 | + // Otherwise file descriptors that bypass the security of the setuid sandbox | ||
| 136 | + // would be kept open. One must be particularly careful if a process performs | ||
| 137 | + // a fork(). | ||
| 138 | + void PreinitializeSandbox(sandbox::mojom::Sandbox sandbox_type); | ||
| 139 | + | ||
| 140 | + // Check that the current process is the init process of a new PID | ||
| 141 | + // namespace and then proceed to drop access to the file system by using | ||
| 142 | + // a new unprivileged namespace. This is a layer-1 sandbox. | ||
| 143 | + // In order for this sandbox to be effective, it must be "sealed" by calling | ||
| 144 | + // InitializeSandbox(). | ||
| 145 | + void EngageNamespaceSandbox(bool from_zygote); | ||
| 146 | + | ||
| 147 | + // Return a list of file descriptors to close if PreinitializeSandbox() ran | ||
| 148 | + // but InitializeSandbox() won't. Avoid using. | ||
| 149 | + // TODO(jln): get rid of this hack. | ||
| 150 | + std::vector<int> GetFileDescriptorsToClose(); | ||
| 151 | + | ||
| 152 | + // Seal an eventual layer-1 sandbox and initialize the layer-2 sandbox with | ||
| 153 | + // an adequate policy depending on the process type and command line | ||
| 154 | + // arguments. | ||
| 155 | + // Currently the layer-2 sandbox is composed of seccomp-bpf and address space | ||
| 156 | + // limitations. | ||
| 157 | + // This function should only be called without any thread running. | ||
| 158 | + bool InitializeSandbox(sandbox::mojom::Sandbox sandbox_type, | ||
| 159 | + PreSandboxHook hook, | ||
| 160 | + const Options& options); | ||
| 161 | + | ||
| 162 | + // Stop |thread| in a way that can be trusted by the sandbox. | ||
| 163 | + void StopThread(base::Thread* thread); | ||
| 164 | + | ||
| 165 | + // Returns the status of the renderer, worker and ppapi sandbox. Can only | ||
| 166 | + // be queried after going through PreinitializeSandbox(). This is a bitmask | ||
| 167 | + // and uses the constants defined in "enum Status" above. Since the | ||
| 168 | + // status needs to be provided before the sandboxes are actually started, | ||
| 169 | + // this returns what will actually happen once InitializeSandbox() | ||
| 170 | + // is called from inside these processes. | ||
| 171 | + int GetStatus(); | ||
| 172 | + | ||
| 173 | + static std::string GetSandboxTypeInEnglish(sandbox::mojom::Sandbox sandbox_type); | ||
| 174 | + | ||
| 175 | + // Returns true if the current process is single-threaded or if the number | ||
| 176 | + // of threads cannot be determined. | ||
| 177 | + bool IsSingleThreaded() const; | ||
| 178 | + | ||
| 179 | + // Returns true if we started Seccomp BPF. | ||
| 180 | + bool seccomp_bpf_started() const; | ||
| 181 | + | ||
| 182 | + // Check the policy and eventually start the seccomp-bpf sandbox. This should | ||
| 183 | + // never be called with threads started. If we detect that threads have | ||
| 184 | + // started we will crash. | ||
| 185 | + bool StartSeccompBPF(sandbox::mojom::Sandbox sandbox_type, | ||
| 186 | + PreSandboxHook hook, | ||
| 187 | + const Options& options); | ||
| 188 | + | ||
| 189 | + // Limit the address space of the current process (and its children) to make | ||
| 190 | + // some vulnerabilities harder to exploit. Writes the errno due to setrlimit | ||
| 191 | + // (including 0 if no error) into |error|. | ||
| 192 | + bool LimitAddressSpace(int* error); | ||
| 193 | + | ||
| 194 | + // Returns a file descriptor to proc. The file descriptor is no longer valid | ||
| 195 | + // after the sandbox has been sealed. | ||
| 196 | + int proc_fd() const { | ||
| 197 | + DCHECK_NE(-1, proc_fd_); | ||
| 198 | + return proc_fd_; | ||
| 199 | + } | ||
| 200 | + | ||
| 201 | +#if BUILDFLAG(USING_SANITIZER) | ||
| 202 | + __sanitizer_sandbox_arguments* sanitizer_args() const { | ||
| 203 | + return sanitizer_args_.get(); | ||
| 204 | + }; | ||
| 205 | +#endif | ||
| 206 | + | ||
| 207 | + // A BrokerProcess is a helper that is started before the sandbox is engaged, | ||
| 208 | + // typically from a pre-sandbox hook, that will serve requests to access | ||
| 209 | + // files over an IPC channel. The client of this runs from a SIGSYS handler | ||
| 210 | + // triggered by the seccomp-bpf sandbox. | ||
| 211 | + // |client_sandbox_policy| is the policy being run by the client, and is | ||
| 212 | + // used to derive the equivalent broker-side policy. | ||
| 213 | + // |broker_side_hook| is an alternate pre-sandbox hook to be run before the | ||
| 214 | + // broker itself gets sandboxed, to which the broker side policy and | ||
| 215 | + // |options| are passed. | ||
| 216 | + // Crashes the process if the broker can not be started since continuation | ||
| 217 | + // is impossible (and presumably unsafe). | ||
| 218 | + // This should never be destroyed, as after the sandbox is started it is | ||
| 219 | + // vital to the process. | ||
| 220 | +#if 0 | ||
| 221 | + void StartBrokerProcess( | ||
| 222 | + const sandbox::syscall_broker::BrokerCommandSet& allowed_command_set, | ||
| 223 | + std::vector<sandbox::syscall_broker::BrokerFilePermission> permissions, | ||
| 224 | + PreSandboxHook broker_side_hook, | ||
| 225 | + const Options& options); | ||
| 226 | + | ||
| 227 | + sandbox::syscall_broker::BrokerProcess* broker_process() const { | ||
| 228 | + return broker_process_; | ||
| 229 | + } | ||
| 230 | +#endif | ||
| 231 | + | ||
| 232 | + private: | ||
| 233 | + friend struct base::DefaultSingletonTraits<SandboxLinux>; | ||
| 234 | + | ||
| 235 | + SandboxLinux(); | ||
| 236 | + ~SandboxLinux(); | ||
| 237 | + | ||
| 238 | + // We must have been pre_initialized_ before using these. | ||
| 239 | + bool seccomp_bpf_supported() const; | ||
| 240 | + bool seccomp_bpf_with_tsync_supported() const; | ||
| 241 | + | ||
| 242 | + // Returns true if it can be determined that the current process has open | ||
| 243 | + // directories that are not managed by the SandboxLinux class. This would | ||
| 244 | + // be a vulnerability as it would allow to bypass the setuid sandbox. | ||
| 245 | + bool HasOpenDirectories() const; | ||
| 246 | + | ||
| 247 | + // The last part of the initialization is to make sure any temporary "hole" | ||
| 248 | + // in the sandbox is closed. For now, this consists of closing proc_fd_. | ||
| 249 | + void SealSandbox(); | ||
| 250 | + | ||
| 251 | + // GetStatus() makes promises as to how the sandbox will behave. This | ||
| 252 | + // checks that no promises have been broken. | ||
| 253 | + void CheckForBrokenPromises(sandbox::mojom::Sandbox sandbox_type); | ||
| 254 | + | ||
| 255 | + // Stop |thread| and make sure it does not appear in /proc/self/tasks/ | ||
| 256 | + // anymore. | ||
| 257 | + void StopThreadAndEnsureNotCounted(base::Thread* thread) const; | ||
| 258 | + | ||
| 259 | + // A file descriptor to /proc. It's dangerous to have it around as it could | ||
| 260 | + // allow for sandbox bypasses. It needs to be closed before we consider | ||
| 261 | + // ourselves sandboxed. | ||
| 262 | + int proc_fd_; | ||
| 263 | + | ||
| 264 | + bool seccomp_bpf_started_; | ||
| 265 | + // The value returned by GetStatus(). Gets computed once and then cached. | ||
| 266 | + int sandbox_status_flags_; | ||
| 267 | + // Did PreinitializeSandbox() run? | ||
| 268 | + bool pre_initialized_; | ||
| 269 | + bool seccomp_bpf_supported_; // Accurate if pre_initialized_. | ||
| 270 | + bool seccomp_bpf_with_tsync_supported_; // Accurate if pre_initialized_. | ||
| 271 | + bool yama_is_enforcing_; // Accurate if pre_initialized_. | ||
| 272 | + bool initialize_sandbox_ran_; // InitializeSandbox() was called. | ||
| 273 | +#if BUILDFLAG(USING_SANITIZER) | ||
| 274 | + std::unique_ptr<__sanitizer_sandbox_arguments> sanitizer_args_; | ||
| 275 | +#endif | ||
| 276 | + sandbox::syscall_broker::BrokerProcess* broker_process_; // Leaked as global. | ||
| 277 | +}; | ||
| 278 | + | ||
| 279 | +} // namespace policy | ||
| 280 | +} // namespace sandbox | ||
| 281 | + | ||
| 282 | +#endif // SANDBOX_POLICY_LINUX_SANDBOX_OPENBSD_H_ | ||
diff --git a/www/chromium/patches/patch-sandbox_policy_mojom_sandbox_mojom b/www/chromium/patches/patch-sandbox_policy_mojom_sandbox_mojom new file mode 100644 index 0000000..83c314f --- /dev/null +++ b/www/chromium/patches/patch-sandbox_policy_mojom_sandbox_mojom | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: sandbox/policy/mojom/sandbox.mojom | ||
| 2 | --- sandbox/policy/mojom/sandbox.mojom.orig | ||
| 3 | +++ sandbox/policy/mojom/sandbox.mojom | ||
| 4 | @@ -68,6 +68,12 @@ enum Sandbox { | ||
| 5 | [EnableIf=is_fuchsia] | ||
| 6 | kVideoCapture, | ||
| 7 | |||
| 8 | + [EnableIf=is_openbsd] | ||
| 9 | + kVideoCapture, | ||
| 10 | + | ||
| 11 | + [EnableIf=is_freebsd] | ||
| 12 | + kVideoCapture, | ||
| 13 | + | ||
| 14 | // Allows access to file contents and Windows APIs for parsing icons from PE | ||
| 15 | // files. | ||
| 16 | [EnableIf=is_win] | ||
diff --git a/www/chromium/patches/patch-sandbox_policy_openbsd_sandbox_openbsd_cc b/www/chromium/patches/patch-sandbox_policy_openbsd_sandbox_openbsd_cc new file mode 100644 index 0000000..62f2bd8 --- /dev/null +++ b/www/chromium/patches/patch-sandbox_policy_openbsd_sandbox_openbsd_cc | |||
| @@ -0,0 +1,411 @@ | |||
| 1 | Index: sandbox/policy/openbsd/sandbox_openbsd.cc | ||
| 2 | --- sandbox/policy/openbsd/sandbox_openbsd.cc.orig | ||
| 3 | +++ sandbox/policy/openbsd/sandbox_openbsd.cc | ||
| 4 | @@ -0,0 +1,407 @@ | ||
| 5 | +// Copyright (c) 2012 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 10 | + | ||
| 11 | +#include <dirent.h> | ||
| 12 | +#include <fcntl.h> | ||
| 13 | +#include <stdint.h> | ||
| 14 | +#include <sys/resource.h> | ||
| 15 | +#include <sys/stat.h> | ||
| 16 | +#include <sys/time.h> | ||
| 17 | +#include <sys/types.h> | ||
| 18 | +#include <unistd.h> | ||
| 19 | +#include <util.h> | ||
| 20 | + | ||
| 21 | +#include <limits> | ||
| 22 | +#include <memory> | ||
| 23 | +#include <string> | ||
| 24 | +#include <vector> | ||
| 25 | + | ||
| 26 | +#include "base/bind.h" | ||
| 27 | +#include "base/callback_helpers.h" | ||
| 28 | +#include "base/command_line.h" | ||
| 29 | +#include "base/debug/stack_trace.h" | ||
| 30 | +#include "base/feature_list.h" | ||
| 31 | +#include "base/files/file_path.h" | ||
| 32 | +#include "base/files/file_util.h" | ||
| 33 | +#include "base/files/scoped_file.h" | ||
| 34 | +#include "base/logging.h" | ||
| 35 | +#include "base/memory/singleton.h" | ||
| 36 | +#include "base/path_service.h" | ||
| 37 | +#include "base/posix/eintr_wrapper.h" | ||
| 38 | +#include "base/strings/string_number_conversions.h" | ||
| 39 | +#include "base/system/sys_info.h" | ||
| 40 | +#include "base/time/time.h" | ||
| 41 | +#include "build/build_config.h" | ||
| 42 | +#include "sandbox/constants.h" | ||
| 43 | +#include "sandbox/linux/services/credentials.h" | ||
| 44 | +#include "sandbox/linux/services/namespace_sandbox.h" | ||
| 45 | +#include "sandbox/linux/services/proc_util.h" | ||
| 46 | +#include "sandbox/linux/services/resource_limits.h" | ||
| 47 | +#include "sandbox/linux/services/thread_helpers.h" | ||
| 48 | +#include "sandbox/linux/syscall_broker/broker_command.h" | ||
| 49 | +#include "sandbox/linux/syscall_broker/broker_process.h" | ||
| 50 | +#include "sandbox/policy/sandbox.h" | ||
| 51 | +#include "sandbox/policy/sandbox_type.h" | ||
| 52 | +#include "sandbox/policy/mojom/sandbox.mojom.h" | ||
| 53 | +#include "sandbox/policy/switches.h" | ||
| 54 | +#include "sandbox/sandbox_buildflags.h" | ||
| 55 | + | ||
| 56 | +#if BUILDFLAG(USING_SANITIZER) | ||
| 57 | +#include <sanitizer/common_interface_defs.h> | ||
| 58 | +#endif | ||
| 59 | + | ||
| 60 | +#if defined(USE_NSS_CERTS) | ||
| 61 | +#include "crypto/nss_util.h" | ||
| 62 | +#endif | ||
| 63 | + | ||
| 64 | +#include "third_party/boringssl/src/include/openssl/crypto.h" | ||
| 65 | + | ||
| 66 | +#include "ui/gfx/x/connection.h" | ||
| 67 | +#include "ui/gfx/font_util.h" | ||
| 68 | + | ||
| 69 | +#include <X11/Xlib.h> | ||
| 70 | + | ||
| 71 | +#define MAXTOKENS 3 | ||
| 72 | + | ||
| 73 | +#define _UNVEIL_MAIN "/etc/chromium/unveil.main"; | ||
| 74 | +#define _UNVEIL_RENDERER "/etc/chromium/unveil.renderer"; | ||
| 75 | +#define _UNVEIL_GPU "/etc/chromium/unveil.gpu"; | ||
| 76 | +#define _UNVEIL_PLUGIN "/etc/chromium/unveil.plugin"; | ||
| 77 | +#define _UNVEIL_UTILITY "/etc/chromium/unveil.utility"; | ||
| 78 | +#define _UNVEIL_UTILITY_NETWORK "/etc/chromium/unveil.utility_network"; | ||
| 79 | +#define _UNVEIL_UTILITY_AUDIO "/etc/chromium/unveil.utility_audio"; | ||
| 80 | +#define _UNVEIL_UTILITY_VIDEO "/etc/chromium/unveil.utility_video"; | ||
| 81 | + | ||
| 82 | +namespace sandbox { | ||
| 83 | +namespace policy { | ||
| 84 | + | ||
| 85 | +SandboxLinux::SandboxLinux() | ||
| 86 | + : unveil_initialized_(false), | ||
| 87 | + sandbox_status_flags_(kInvalid), | ||
| 88 | + pre_initialized_(false), | ||
| 89 | + initialize_sandbox_ran_(false), | ||
| 90 | + broker_process_(nullptr) { | ||
| 91 | +} | ||
| 92 | + | ||
| 93 | +SandboxLinux::~SandboxLinux() { | ||
| 94 | + if (pre_initialized_) { | ||
| 95 | + CHECK(initialize_sandbox_ran_); | ||
| 96 | + } | ||
| 97 | +} | ||
| 98 | + | ||
| 99 | +SandboxLinux* SandboxLinux::GetInstance() { | ||
| 100 | + SandboxLinux* instance = base::Singleton<SandboxLinux>::get(); | ||
| 101 | + CHECK(instance); | ||
| 102 | + return instance; | ||
| 103 | +} | ||
| 104 | + | ||
| 105 | +void SandboxLinux::PreinitializeSandbox(sandbox::mojom::Sandbox sandbox_type) { | ||
| 106 | + CHECK(!pre_initialized_); | ||
| 107 | +#if BUILDFLAG(USING_SANITIZER) | ||
| 108 | + // Sanitizers need to open some resources before the sandbox is enabled. | ||
| 109 | + // This should not fork, not launch threads, not open a directory. | ||
| 110 | + __sanitizer_sandbox_on_notify(sanitizer_args()); | ||
| 111 | + sanitizer_args_.reset(); | ||
| 112 | +#endif | ||
| 113 | + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | ||
| 114 | + const std::string process_type = | ||
| 115 | + command_line->GetSwitchValueASCII(switches::kProcessType); | ||
| 116 | + | ||
| 117 | + base::SysInfo::AmountOfPhysicalMemory(); | ||
| 118 | + base::SysInfo::NumberOfProcessors(); | ||
| 119 | + base::SysInfo::CPUModelName(); | ||
| 120 | + | ||
| 121 | +#if defined(USE_NSS_CERTS) | ||
| 122 | + // The main process has to initialize the ~/.pki dir which won't work | ||
| 123 | + // after unveil(2). | ||
| 124 | + if (process_type.empty()) | ||
| 125 | + crypto::EnsureNSSInit(); | ||
| 126 | +#endif | ||
| 127 | + | ||
| 128 | + if (process_type.empty()) | ||
| 129 | + CRYPTO_pre_sandbox_init(); | ||
| 130 | + | ||
| 131 | + // cache the XErrorDB by forcing a read on it | ||
| 132 | + { | ||
| 133 | + auto* connection = x11::Connection::Get(); | ||
| 134 | + auto* display = connection->GetXlibDisplay().display(); | ||
| 135 | + | ||
| 136 | + char buf[1]; | ||
| 137 | + XGetErrorDatabaseText(display, "XProtoError", "0", "", buf, base::size(buf)); | ||
| 138 | + } | ||
| 139 | + | ||
| 140 | + if (process_type.empty()) { | ||
| 141 | + base::FilePath cache_directory, local_directory; | ||
| 142 | + | ||
| 143 | + base::PathService::Get(base::DIR_CACHE, &cache_directory); | ||
| 144 | + base::PathService::Get(base::DIR_HOME, &local_directory); | ||
| 145 | + | ||
| 146 | + cache_directory = cache_directory.AppendASCII("chromium"); | ||
| 147 | + local_directory = local_directory.AppendASCII(".local").AppendASCII("share").AppendASCII("applications"); | ||
| 148 | + | ||
| 149 | + if (!base::CreateDirectory(cache_directory)) { | ||
| 150 | + LOG(ERROR) << "Failed to create " << cache_directory.value() << " directory."; | ||
| 151 | + } | ||
| 152 | + | ||
| 153 | + if (!base::CreateDirectory(local_directory)) { | ||
| 154 | + LOG(ERROR) << "Failed to create " << local_directory.value() << " directory."; | ||
| 155 | + } | ||
| 156 | + } | ||
| 157 | + | ||
| 158 | + if (process_type == switches::kRendererProcess) | ||
| 159 | + gfx::InitializeFonts(); | ||
| 160 | + | ||
| 161 | + if (!command_line->HasSwitch(switches::kDisableUnveil)) | ||
| 162 | + SetUnveil(process_type, sandbox_type); | ||
| 163 | + | ||
| 164 | + pre_initialized_ = true; | ||
| 165 | +} | ||
| 166 | + | ||
| 167 | +bool SandboxLinux::SetPledge(const char *pstring, const char *ppath) { | ||
| 168 | + FILE *fp; | ||
| 169 | + char *s = NULL; | ||
| 170 | + size_t len = 0; | ||
| 171 | + ssize_t read; | ||
| 172 | + | ||
| 173 | + if (pstring != NULL) { | ||
| 174 | + if (pledge(pstring, NULL) == -1) | ||
| 175 | + goto err; | ||
| 176 | + } else if (ppath != NULL) { | ||
| 177 | + fp = fopen(ppath, "r"); | ||
| 178 | + if (fp != NULL) { | ||
| 179 | + while ((read = getline(&s, &len, fp)) != -1 ) { | ||
| 180 | + if (s[strlen(s)-1] == '\n') | ||
| 181 | + s[strlen(s)-1] = '\0'; | ||
| 182 | + if (pledge(s, NULL) == -1) | ||
| 183 | + goto err; | ||
| 184 | + } | ||
| 185 | + fclose(fp); | ||
| 186 | + } else { | ||
| 187 | + LOG(ERROR) << "fopen() failed, errno: " << errno; | ||
| 188 | + return false; | ||
| 189 | + } | ||
| 190 | + } | ||
| 191 | + return true; | ||
| 192 | +err: | ||
| 193 | + LOG(ERROR) << "pledge() failed, errno: " << errno; | ||
| 194 | + return false; | ||
| 195 | +} | ||
| 196 | + | ||
| 197 | +bool SandboxLinux::SetUnveil(const std::string process_type, sandbox::mojom::Sandbox sandbox_type) { | ||
| 198 | + FILE *fp; | ||
| 199 | + char *s = NULL, *cp = NULL, *home = NULL, **ap, *tokens[MAXTOKENS]; | ||
| 200 | + char path[PATH_MAX]; | ||
| 201 | + const char *ufile; | ||
| 202 | + size_t len = 0, lineno = 0; | ||
| 203 | + | ||
| 204 | + if (process_type.empty()) { | ||
| 205 | + ufile = _UNVEIL_MAIN; | ||
| 206 | + } else if (process_type == switches::kRendererProcess) { | ||
| 207 | + ufile = _UNVEIL_RENDERER; | ||
| 208 | + } else if (process_type == switches::kGpuProcess) { | ||
| 209 | + ufile = _UNVEIL_GPU; | ||
| 210 | + } else if (process_type == switches::kPpapiPluginProcess) { | ||
| 211 | + ufile = _UNVEIL_PLUGIN; | ||
| 212 | + } else if (process_type == switches::kUtilityProcess) { | ||
| 213 | + if (sandbox_type == sandbox::mojom::Sandbox::kNetwork) { | ||
| 214 | + ufile = _UNVEIL_UTILITY_NETWORK; | ||
| 215 | + } else if (sandbox_type == sandbox::mojom::Sandbox::kAudio) { | ||
| 216 | + ufile = _UNVEIL_UTILITY_AUDIO; | ||
| 217 | + } else if (sandbox_type == sandbox::mojom::Sandbox::kVideoCapture) { | ||
| 218 | + ufile = _UNVEIL_UTILITY_VIDEO; | ||
| 219 | + } else { | ||
| 220 | + ufile = _UNVEIL_UTILITY; | ||
| 221 | + } | ||
| 222 | + } | ||
| 223 | + | ||
| 224 | + fp = fopen(ufile, "r"); | ||
| 225 | + if (fp != NULL) { | ||
| 226 | + while (!feof(fp)) { | ||
| 227 | + if ((s = fparseln(fp, &len, &lineno, NULL, | ||
| 228 | + FPARSELN_UNESCCOMM | FPARSELN_UNESCCONT)) == NULL) { | ||
| 229 | + if (ferror(fp)) { | ||
| 230 | + LOG(ERROR) << "ferror(), errno: " << errno; | ||
| 231 | + _exit(1); | ||
| 232 | + } else { | ||
| 233 | + continue; | ||
| 234 | + } | ||
| 235 | + } | ||
| 236 | + cp = s; | ||
| 237 | + cp += strspn(cp, " \t\n"); /* eat whitespace */ | ||
| 238 | + if (cp[0] == '\0') | ||
| 239 | + continue; | ||
| 240 | + | ||
| 241 | + for (ap = tokens; ap < &tokens[MAXTOKENS - 1] && | ||
| 242 | + (*ap = strsep(&cp, " \t")) != NULL;) { | ||
| 243 | + if (**ap != '\0') | ||
| 244 | + ap++; | ||
| 245 | + } | ||
| 246 | + *ap = NULL; | ||
| 247 | + | ||
| 248 | + if (tokens[1] == NULL) { | ||
| 249 | + LOG(ERROR) << ufile << ": line " << lineno << ": must supply value to " << s; | ||
| 250 | + _exit(1); | ||
| 251 | + } | ||
| 252 | + | ||
| 253 | + if (tokens[0][0] == '~') { | ||
| 254 | + if ((home = getenv("HOME")) == NULL || *home == '\0') { | ||
| 255 | + LOG(ERROR) << "failed to get home"; | ||
| 256 | + _exit(1); | ||
| 257 | + } | ||
| 258 | + memmove(tokens[0], tokens[0] + 1, strlen(tokens[0])); | ||
| 259 | + strncpy(path, home, sizeof(path) - 1); | ||
| 260 | + path[sizeof(path) - 1] = '\0'; | ||
| 261 | + strncat(path, tokens[0], sizeof(path) - 1 - strlen(path)); | ||
| 262 | + } else { | ||
| 263 | + strncpy(path, tokens[0], sizeof(path) - 1); | ||
| 264 | + path[sizeof(path) - 1] = '\0'; | ||
| 265 | + } | ||
| 266 | + | ||
| 267 | + if (unveil(path, tokens[1]) == -1) { | ||
| 268 | + LOG(ERROR) << "failed unveiling " << path << " with permissions " << tokens[1]; | ||
| 269 | + _exit(1); | ||
| 270 | + } else { | ||
| 271 | + VLOG(1) << "unveiling " << path << " with permissions " << tokens[1]; | ||
| 272 | + } | ||
| 273 | + } | ||
| 274 | + fclose(fp); | ||
| 275 | + } else { | ||
| 276 | + LOG(ERROR) << "failed to open " << ufile << " errno: " << errno; | ||
| 277 | + _exit(1); | ||
| 278 | + } | ||
| 279 | + | ||
| 280 | + unveil_initialized_ = true; | ||
| 281 | + | ||
| 282 | + return true; | ||
| 283 | +} | ||
| 284 | + | ||
| 285 | +bool SandboxLinux::unveil_initialized() const { | ||
| 286 | + return unveil_initialized_; | ||
| 287 | +} | ||
| 288 | + | ||
| 289 | +bool SandboxLinux::InitializeSandbox(sandbox::mojom::Sandbox sandbox_type, | ||
| 290 | + SandboxLinux::PreSandboxHook hook, | ||
| 291 | + const Options& options) { | ||
| 292 | + DCHECK(!initialize_sandbox_ran_); | ||
| 293 | + initialize_sandbox_ran_ = true; | ||
| 294 | + | ||
| 295 | + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | ||
| 296 | + const std::string process_type = | ||
| 297 | + command_line->GetSwitchValueASCII(switches::kProcessType); | ||
| 298 | + | ||
| 299 | + if (command_line->HasSwitch(switches::kNoSandbox)) | ||
| 300 | + return true; | ||
| 301 | + | ||
| 302 | + VLOG(1) << "SandboxLinux::InitializeSandbox: process_type=" | ||
| 303 | + << process_type << " sandbox_type=" << GetSandboxTypeInEnglish(sandbox_type); | ||
| 304 | + | ||
| 305 | + // Only one thread is running, pre-initialize if not already done. | ||
| 306 | + if (!pre_initialized_) | ||
| 307 | + PreinitializeSandbox(sandbox_type); | ||
| 308 | + | ||
| 309 | + // Attempt to limit the future size of the address space of the process. | ||
| 310 | + int error = 0; | ||
| 311 | + const bool limited_as = LimitAddressSpace(&error); | ||
| 312 | + if (error) { | ||
| 313 | + // Restore errno. Internally to |LimitAddressSpace|, the errno due to | ||
| 314 | + // setrlimit may be lost. | ||
| 315 | + errno = error; | ||
| 316 | + PCHECK(limited_as); | ||
| 317 | + } | ||
| 318 | + | ||
| 319 | + if (process_type.empty()) { | ||
| 320 | + // XXX use a file for listing pledges of the main process for now | ||
| 321 | + // XXX not having the file is not a fatal error | ||
| 322 | + SetPledge(NULL, "/etc/chromium/pledge.main"); | ||
| 323 | + } else if (process_type == switches::kRendererProcess) { | ||
| 324 | + // prot_exec needed by v8 | ||
| 325 | + // flock needed by sqlite3 locking | ||
| 326 | + SetPledge("stdio rpath flock prot_exec recvfd sendfd ps", NULL); | ||
| 327 | + } else if (process_type == switches::kGpuProcess) { | ||
| 328 | + SetPledge("stdio rpath cpath wpath getpw drm prot_exec recvfd sendfd tmppath", NULL); | ||
| 329 | + } else if (process_type == switches::kPpapiPluginProcess) { | ||
| 330 | + // prot_exec needed by v8 | ||
| 331 | + SetPledge("stdio rpath prot_exec recvfd sendfd", NULL); | ||
| 332 | + } else if (process_type == switches::kUtilityProcess) { | ||
| 333 | + if (sandbox_type == sandbox::mojom::Sandbox::kAudio) | ||
| 334 | + SetPledge(NULL, "/etc/chromium/pledge.utility_audio"); | ||
| 335 | + else if (sandbox_type == sandbox::mojom::Sandbox::kNetwork) | ||
| 336 | + SetPledge(NULL, "/etc/chromium/pledge.utility_network"); | ||
| 337 | + else if (sandbox_type == sandbox::mojom::Sandbox::kVideoCapture) | ||
| 338 | + SetPledge(NULL, "/etc/chromium/pledge.utility_video"); | ||
| 339 | + else | ||
| 340 | + SetPledge("stdio rpath cpath wpath fattr flock sendfd recvfd prot_exec", NULL); | ||
| 341 | + } else { | ||
| 342 | + LOG(ERROR) << "non-pledge()'d process: " << process_type; | ||
| 343 | + return false; | ||
| 344 | + } | ||
| 345 | + | ||
| 346 | + return true; | ||
| 347 | +} | ||
| 348 | + | ||
| 349 | +bool SandboxLinux::LimitAddressSpace(int* error) { | ||
| 350 | +#if !defined(ADDRESS_SANITIZER) && !defined(MEMORY_SANITIZER) && \ | ||
| 351 | + !defined(THREAD_SANITIZER) && !defined(LEAK_SANITIZER) | ||
| 352 | + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | ||
| 353 | + if (SandboxTypeFromCommandLine(*command_line) == sandbox::mojom::Sandbox::kNoSandbox) { | ||
| 354 | + return false; | ||
| 355 | + } | ||
| 356 | + | ||
| 357 | + // Unfortunately, it does not appear possible to set RLIMIT_AS such that it | ||
| 358 | + // will both (a) be high enough to support V8's and WebAssembly's address | ||
| 359 | + // space requirements while also (b) being low enough to mitigate exploits | ||
| 360 | + // using integer overflows that require large allocations, heap spray, or | ||
| 361 | + // other memory-hungry attack modes. | ||
| 362 | + | ||
| 363 | + *error = sandbox::ResourceLimits::Lower( | ||
| 364 | + RLIMIT_DATA, static_cast<rlim_t>(sandbox::kDataSizeLimit)); | ||
| 365 | + | ||
| 366 | + // Cache the resource limit before turning on the sandbox. | ||
| 367 | + base::SysInfo::AmountOfVirtualMemory(); | ||
| 368 | + base::SysInfo::MaxSharedMemorySize(); | ||
| 369 | + | ||
| 370 | + return *error == 0; | ||
| 371 | +#else | ||
| 372 | + base::SysInfo::AmountOfVirtualMemory(); | ||
| 373 | + return false; | ||
| 374 | +#endif // !defined(ADDRESS_SANITIZER) && !defined(MEMORY_SANITIZER) && | ||
| 375 | + // !defined(THREAD_SANITIZER) && !defined(LEAK_SANITIZER) | ||
| 376 | +} | ||
| 377 | + | ||
| 378 | +// static | ||
| 379 | +std::string SandboxLinux::GetSandboxTypeInEnglish(sandbox::mojom::Sandbox sandbox_type) { | ||
| 380 | + switch (sandbox_type) { | ||
| 381 | + case sandbox::mojom::Sandbox::kNoSandbox: | ||
| 382 | + return "Unsandboxed"; | ||
| 383 | + case sandbox::mojom::Sandbox::kRenderer: | ||
| 384 | + return "Renderer"; | ||
| 385 | + case sandbox::mojom::Sandbox::kUtility: | ||
| 386 | + return "Utility"; | ||
| 387 | + case sandbox::mojom::Sandbox::kGpu: | ||
| 388 | + return "GPU"; | ||
| 389 | + case sandbox::mojom::Sandbox::kPpapi: | ||
| 390 | + return "PPAPI"; | ||
| 391 | + case sandbox::mojom::Sandbox::kNetwork: | ||
| 392 | + return "Network"; | ||
| 393 | + case sandbox::mojom::Sandbox::kCdm: | ||
| 394 | + return "CDM"; | ||
| 395 | + case sandbox::mojom::Sandbox::kPrintCompositor: | ||
| 396 | + return "Print Compositor"; | ||
| 397 | + case sandbox::mojom::Sandbox::kAudio: | ||
| 398 | + return "Audio"; | ||
| 399 | + case sandbox::mojom::Sandbox::kSpeechRecognition: | ||
| 400 | + return "Speech Recognition"; | ||
| 401 | + case sandbox::mojom::Sandbox::kService: | ||
| 402 | + return "Service"; | ||
| 403 | + case sandbox::mojom::Sandbox::kVideoCapture: | ||
| 404 | + return "Video Capture"; | ||
| 405 | + default: | ||
| 406 | + return "Unknown"; | ||
| 407 | + } | ||
| 408 | +} | ||
| 409 | + | ||
| 410 | +} // namespace policy | ||
| 411 | +} // namespace sandbox | ||
diff --git a/www/chromium/patches/patch-sandbox_policy_openbsd_sandbox_openbsd_h b/www/chromium/patches/patch-sandbox_policy_openbsd_sandbox_openbsd_h new file mode 100644 index 0000000..4d6ef3f --- /dev/null +++ b/www/chromium/patches/patch-sandbox_policy_openbsd_sandbox_openbsd_h | |||
| @@ -0,0 +1,286 @@ | |||
| 1 | Index: sandbox/policy/openbsd/sandbox_openbsd.h | ||
| 2 | --- sandbox/policy/openbsd/sandbox_openbsd.h.orig | ||
| 3 | +++ sandbox/policy/openbsd/sandbox_openbsd.h | ||
| 4 | @@ -0,0 +1,282 @@ | ||
| 5 | +// Copyright (c) 2012 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | +#ifndef SANDBOX_POLICY_LINUX_SANDBOX_OPENBSD_H_ | ||
| 9 | +#define SANDBOX_POLICY_LINUX_SANDBOX_OPENBSD_H_ | ||
| 10 | + | ||
| 11 | +#include <memory> | ||
| 12 | +#include <string> | ||
| 13 | +#include <vector> | ||
| 14 | + | ||
| 15 | +#include "base/logging.h" | ||
| 16 | +#include "base/posix/global_descriptors.h" | ||
| 17 | +#include "sandbox/policy/export.h" | ||
| 18 | +#include "sandbox/policy/linux/sandbox_seccomp_bpf_linux.h" | ||
| 19 | +#include "sandbox/policy/mojom/sandbox.mojom.h" | ||
| 20 | +#include "sandbox/policy/sanitizer_buildflags.h" | ||
| 21 | + | ||
| 22 | +#if BUILDFLAG(USING_SANITIZER) | ||
| 23 | +#include <sanitizer/common_interface_defs.h> | ||
| 24 | +#endif | ||
| 25 | + | ||
| 26 | +namespace base { | ||
| 27 | +template <typename T> | ||
| 28 | +struct DefaultSingletonTraits; | ||
| 29 | +class Thread; | ||
| 30 | +} // namespace base | ||
| 31 | + | ||
| 32 | +namespace sandbox { | ||
| 33 | +namespace syscall_broker { | ||
| 34 | +class BrokerProcess; | ||
| 35 | +} // namespace syscall_broker | ||
| 36 | +} // namespace sandbox | ||
| 37 | + | ||
| 38 | +namespace sandbox { | ||
| 39 | +namespace policy { | ||
| 40 | + | ||
| 41 | +// A singleton class to represent and change our sandboxing state for the | ||
| 42 | +// three main Linux sandboxes. | ||
| 43 | +// The sandboxing model allows using two layers of sandboxing. The first layer | ||
| 44 | +// can be implemented either with unprivileged namespaces or with the setuid | ||
| 45 | +// sandbox. This class provides a way to engage the namespace sandbox, but does | ||
| 46 | +// not deal with the legacy setuid sandbox directly. | ||
| 47 | +// The second layer is mainly based on seccomp-bpf and is engaged with | ||
| 48 | +// InitializeSandbox(). InitializeSandbox() is also responsible for "sealing" | ||
| 49 | +// the first layer of sandboxing. That is, InitializeSandbox must always be | ||
| 50 | +// called to have any meaningful sandboxing at all. | ||
| 51 | +class SANDBOX_POLICY_EXPORT SandboxLinux { | ||
| 52 | + public: | ||
| 53 | + // This is a list of sandbox IPC methods which the renderer may send to the | ||
| 54 | + // sandbox host. See | ||
| 55 | + // https://chromium.googlesource.com/chromium/src/+/master/docs/linux_sandbox_ipc.md | ||
| 56 | + // This isn't the full list, values < 32 are reserved for methods called from | ||
| 57 | + // Skia, and values < 64 are reserved for libc_interceptor.cc. | ||
| 58 | + enum LinuxSandboxIPCMethods { | ||
| 59 | + DEPRECATED_METHOD_GET_FALLBACK_FONT_FOR_CHAR = 64, | ||
| 60 | + DEPRECATED_METHOD_GET_CHILD_WITH_INODE, | ||
| 61 | + DEPRECATED_METHOD_GET_STYLE_FOR_STRIKE, | ||
| 62 | + METHOD_MAKE_SHARED_MEMORY_SEGMENT, | ||
| 63 | + DEPRECATED_METHOD_MATCH_WITH_FALLBACK, | ||
| 64 | + }; | ||
| 65 | + | ||
| 66 | + // These form a bitmask which describes the conditions of the Linux sandbox. | ||
| 67 | + // Note: this doesn't strictly give you the current status, it states | ||
| 68 | + // what will be enabled when the relevant processes are initialized. | ||
| 69 | + enum Status { | ||
| 70 | + // SUID sandbox active. | ||
| 71 | + kSUID = 1 << 0, | ||
| 72 | + | ||
| 73 | + // Sandbox is using a new PID namespace. | ||
| 74 | + kPIDNS = 1 << 1, | ||
| 75 | + | ||
| 76 | + // Sandbox is using a new network namespace. | ||
| 77 | + kNetNS = 1 << 2, | ||
| 78 | + | ||
| 79 | + // seccomp-bpf sandbox active. | ||
| 80 | + kSeccompBPF = 1 << 3, | ||
| 81 | + | ||
| 82 | + // The Yama LSM module is present and enforcing. | ||
| 83 | + kYama = 1 << 4, | ||
| 84 | + | ||
| 85 | + // seccomp-bpf sandbox is active and the kernel supports TSYNC. | ||
| 86 | + kSeccompTSYNC = 1 << 5, | ||
| 87 | + | ||
| 88 | + // User namespace sandbox active. | ||
| 89 | + kUserNS = 1 << 6, | ||
| 90 | + | ||
| 91 | + // A flag that denotes an invalid sandbox status. | ||
| 92 | + kInvalid = 1 << 31, | ||
| 93 | + }; | ||
| 94 | + | ||
| 95 | + // SandboxLinux Options are a superset of SandboxSecompBPF Options. | ||
| 96 | + struct Options : public SandboxSeccompBPF::Options { | ||
| 97 | + // When running with a zygote, the namespace sandbox will have already | ||
| 98 | + // been engaged prior to initializing SandboxLinux itself, and need not | ||
| 99 | + // be done so again. Set to true to indicate that there isn't a zygote | ||
| 100 | + // for this process and the step is to be performed here explicitly. | ||
| 101 | + bool engage_namespace_sandbox = false; | ||
| 102 | + | ||
| 103 | + // Allow starting the sandbox with multiple threads already running. This | ||
| 104 | + // will enable TSYNC for seccomp-BPF, which syncs the seccomp-BPF policy | ||
| 105 | + // across all running threads. | ||
| 106 | + bool allow_threads_during_sandbox_init = false; | ||
| 107 | + | ||
| 108 | + // Enables the CHECK for open directories. The open directory check is only | ||
| 109 | + // useful for the chroot jail (from the semantic layer of the sandbox), and | ||
| 110 | + // can safely be disabled if we are only enabling the seccomp-BPF layer. | ||
| 111 | + bool check_for_open_directories = true; | ||
| 112 | + }; | ||
| 113 | + | ||
| 114 | + // Callers can provide this hook to run code right before the policy | ||
| 115 | + // is passed to the BPF compiler and the sandbox is engaged. If | ||
| 116 | + // pre_sandbox_hook() returns true, the sandbox will be engaged | ||
| 117 | + // afterwards, otherwise the process is terminated. | ||
| 118 | + using PreSandboxHook = base::OnceCallback<bool(Options)>; | ||
| 119 | + | ||
| 120 | + // Get our singleton instance. | ||
| 121 | + static SandboxLinux* GetInstance(); | ||
| 122 | + | ||
| 123 | + SandboxLinux(const SandboxLinux&) = delete; | ||
| 124 | + SandboxLinux& operator=(const SandboxLinux&) = delete; | ||
| 125 | + | ||
| 126 | + bool SetPledge(const char *pstring, const char *ppath); | ||
| 127 | + bool SetUnveil(const std::string process_type, sandbox::mojom::Sandbox sandbox_type); | ||
| 128 | + | ||
| 129 | + // Do some initialization that can only be done before any of the sandboxes | ||
| 130 | + // are enabled. If using the setuid sandbox, this should be called manually | ||
| 131 | + // before the setuid sandbox is engaged. | ||
| 132 | + // Security: When this runs, it is imperative that either InitializeSandbox() | ||
| 133 | + // runs as well or that all file descriptors returned in | ||
| 134 | + // GetFileDescriptorsToClose() get closed. | ||
| 135 | + // Otherwise file descriptors that bypass the security of the setuid sandbox | ||
| 136 | + // would be kept open. One must be particularly careful if a process performs | ||
| 137 | + // a fork(). | ||
| 138 | + void PreinitializeSandbox(sandbox::mojom::Sandbox sandbox_type); | ||
| 139 | + | ||
| 140 | + // Check that the current process is the init process of a new PID | ||
| 141 | + // namespace and then proceed to drop access to the file system by using | ||
| 142 | + // a new unprivileged namespace. This is a layer-1 sandbox. | ||
| 143 | + // In order for this sandbox to be effective, it must be "sealed" by calling | ||
| 144 | + // InitializeSandbox(). | ||
| 145 | + void EngageNamespaceSandbox(bool from_zygote); | ||
| 146 | + | ||
| 147 | + // Return a list of file descriptors to close if PreinitializeSandbox() ran | ||
| 148 | + // but InitializeSandbox() won't. Avoid using. | ||
| 149 | + // TODO(jln): get rid of this hack. | ||
| 150 | + std::vector<int> GetFileDescriptorsToClose(); | ||
| 151 | + | ||
| 152 | + // Seal an eventual layer-1 sandbox and initialize the layer-2 sandbox with | ||
| 153 | + // an adequate policy depending on the process type and command line | ||
| 154 | + // arguments. | ||
| 155 | + // Currently the layer-2 sandbox is composed of seccomp-bpf and address space | ||
| 156 | + // limitations. | ||
| 157 | + // This function should only be called without any thread running. | ||
| 158 | + bool InitializeSandbox(sandbox::mojom::Sandbox sandbox_type, | ||
| 159 | + PreSandboxHook hook, | ||
| 160 | + const Options& options); | ||
| 161 | + | ||
| 162 | + // Stop |thread| in a way that can be trusted by the sandbox. | ||
| 163 | + void StopThread(base::Thread* thread); | ||
| 164 | + | ||
| 165 | + // Returns the status of the renderer, worker and ppapi sandbox. Can only | ||
| 166 | + // be queried after going through PreinitializeSandbox(). This is a bitmask | ||
| 167 | + // and uses the constants defined in "enum Status" above. Since the | ||
| 168 | + // status needs to be provided before the sandboxes are actually started, | ||
| 169 | + // this returns what will actually happen once InitializeSandbox() | ||
| 170 | + // is called from inside these processes. | ||
| 171 | + int GetStatus(); | ||
| 172 | + | ||
| 173 | + static std::string GetSandboxTypeInEnglish(sandbox::mojom::Sandbox sandbox_type); | ||
| 174 | + | ||
| 175 | + // Returns true if the current process is single-threaded or if the number | ||
| 176 | + // of threads cannot be determined. | ||
| 177 | + bool IsSingleThreaded() const; | ||
| 178 | + | ||
| 179 | + // Returns true if we started Seccomp BPF. | ||
| 180 | + bool seccomp_bpf_started() const; | ||
| 181 | + | ||
| 182 | + // Returns true if unveil(2) is used. | ||
| 183 | + bool unveil_initialized() const; | ||
| 184 | + | ||
| 185 | + // Check the policy and eventually start the seccomp-bpf sandbox. This should | ||
| 186 | + // never be called with threads started. If we detect that threads have | ||
| 187 | + // started we will crash. | ||
| 188 | + bool StartSeccompBPF(sandbox::mojom::Sandbox sandbox_type, | ||
| 189 | + PreSandboxHook hook, | ||
| 190 | + const Options& options); | ||
| 191 | + | ||
| 192 | + // Limit the address space of the current process (and its children) to make | ||
| 193 | + // some vulnerabilities harder to exploit. Writes the errno due to setrlimit | ||
| 194 | + // (including 0 if no error) into |error|. | ||
| 195 | + bool LimitAddressSpace(int* error); | ||
| 196 | + | ||
| 197 | + // Returns a file descriptor to proc. The file descriptor is no longer valid | ||
| 198 | + // after the sandbox has been sealed. | ||
| 199 | + int proc_fd() const { | ||
| 200 | + DCHECK_NE(-1, proc_fd_); | ||
| 201 | + return proc_fd_; | ||
| 202 | + } | ||
| 203 | + | ||
| 204 | +#if BUILDFLAG(USING_SANITIZER) | ||
| 205 | + __sanitizer_sandbox_arguments* sanitizer_args() const { | ||
| 206 | + return sanitizer_args_.get(); | ||
| 207 | + }; | ||
| 208 | +#endif | ||
| 209 | + | ||
| 210 | + // A BrokerProcess is a helper that is started before the sandbox is engaged, | ||
| 211 | + // typically from a pre-sandbox hook, that will serve requests to access | ||
| 212 | + // files over an IPC channel. The client of this runs from a SIGSYS handler | ||
| 213 | + // triggered by the seccomp-bpf sandbox. | ||
| 214 | + // |client_sandbox_policy| is the policy being run by the client, and is | ||
| 215 | + // used to derive the equivalent broker-side policy. | ||
| 216 | + // |broker_side_hook| is an alternate pre-sandbox hook to be run before the | ||
| 217 | + // broker itself gets sandboxed, to which the broker side policy and | ||
| 218 | + // |options| are passed. | ||
| 219 | + // Crashes the process if the broker can not be started since continuation | ||
| 220 | + // is impossible (and presumably unsafe). | ||
| 221 | + // This should never be destroyed, as after the sandbox is started it is | ||
| 222 | + // vital to the process. | ||
| 223 | +#if 0 | ||
| 224 | + void StartBrokerProcess( | ||
| 225 | + const sandbox::syscall_broker::BrokerCommandSet& allowed_command_set, | ||
| 226 | + std::vector<sandbox::syscall_broker::BrokerFilePermission> permissions, | ||
| 227 | + PreSandboxHook broker_side_hook, | ||
| 228 | + const Options& options); | ||
| 229 | + | ||
| 230 | + sandbox::syscall_broker::BrokerProcess* broker_process() const { | ||
| 231 | + return broker_process_; | ||
| 232 | + } | ||
| 233 | +#endif | ||
| 234 | + | ||
| 235 | + private: | ||
| 236 | + friend struct base::DefaultSingletonTraits<SandboxLinux>; | ||
| 237 | + | ||
| 238 | + SandboxLinux(); | ||
| 239 | + ~SandboxLinux(); | ||
| 240 | + | ||
| 241 | + // We must have been pre_initialized_ before using these. | ||
| 242 | + bool seccomp_bpf_supported() const; | ||
| 243 | + bool seccomp_bpf_with_tsync_supported() const; | ||
| 244 | + | ||
| 245 | + // Returns true if it can be determined that the current process has open | ||
| 246 | + // directories that are not managed by the SandboxLinux class. This would | ||
| 247 | + // be a vulnerability as it would allow to bypass the setuid sandbox. | ||
| 248 | + bool HasOpenDirectories() const; | ||
| 249 | + | ||
| 250 | + // The last part of the initialization is to make sure any temporary "hole" | ||
| 251 | + // in the sandbox is closed. For now, this consists of closing proc_fd_. | ||
| 252 | + void SealSandbox(); | ||
| 253 | + | ||
| 254 | + // GetStatus() makes promises as to how the sandbox will behave. This | ||
| 255 | + // checks that no promises have been broken. | ||
| 256 | + void CheckForBrokenPromises(sandbox::mojom::Sandbox sandbox_type); | ||
| 257 | + | ||
| 258 | + // Stop |thread| and make sure it does not appear in /proc/self/tasks/ | ||
| 259 | + // anymore. | ||
| 260 | + void StopThreadAndEnsureNotCounted(base::Thread* thread) const; | ||
| 261 | + | ||
| 262 | + // A file descriptor to /proc. It's dangerous to have it around as it could | ||
| 263 | + // allow for sandbox bypasses. It needs to be closed before we consider | ||
| 264 | + // ourselves sandboxed. | ||
| 265 | + int proc_fd_; | ||
| 266 | + | ||
| 267 | + bool seccomp_bpf_started_; | ||
| 268 | + bool unveil_initialized_; | ||
| 269 | + // The value returned by GetStatus(). Gets computed once and then cached. | ||
| 270 | + int sandbox_status_flags_; | ||
| 271 | + // Did PreinitializeSandbox() run? | ||
| 272 | + bool pre_initialized_; | ||
| 273 | + bool seccomp_bpf_supported_; // Accurate if pre_initialized_. | ||
| 274 | + bool seccomp_bpf_with_tsync_supported_; // Accurate if pre_initialized_. | ||
| 275 | + bool yama_is_enforcing_; // Accurate if pre_initialized_. | ||
| 276 | + bool initialize_sandbox_ran_; // InitializeSandbox() was called. | ||
| 277 | +#if BUILDFLAG(USING_SANITIZER) | ||
| 278 | + std::unique_ptr<__sanitizer_sandbox_arguments> sanitizer_args_; | ||
| 279 | +#endif | ||
| 280 | + sandbox::syscall_broker::BrokerProcess* broker_process_; // Leaked as global. | ||
| 281 | +}; | ||
| 282 | + | ||
| 283 | +} // namespace policy | ||
| 284 | +} // namespace sandbox | ||
| 285 | + | ||
| 286 | +#endif // SANDBOX_POLICY_LINUX_SANDBOX_OPENBSD_H_ | ||
diff --git a/www/chromium/patches/patch-sandbox_policy_sandbox_cc b/www/chromium/patches/patch-sandbox_policy_sandbox_cc new file mode 100644 index 0000000..84ab1c9 --- /dev/null +++ b/www/chromium/patches/patch-sandbox_policy_sandbox_cc | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Index: sandbox/policy/sandbox.cc | ||
| 2 | --- sandbox/policy/sandbox.cc.orig | ||
| 3 | +++ sandbox/policy/sandbox.cc | ||
| 4 | @@ -17,6 +17,10 @@ | ||
| 5 | #include "sandbox/policy/linux/sandbox_linux.h" | ||
| 6 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 7 | |||
| 8 | +#if BUILDFLAG(IS_BSD) | ||
| 9 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 10 | +#endif // BUILDFLAG(IS_BSD) | ||
| 11 | + | ||
| 12 | #if BUILDFLAG(IS_MAC) | ||
| 13 | #include "sandbox/mac/seatbelt.h" | ||
| 14 | #endif // BUILDFLAG(IS_MAC) | ||
| 15 | @@ -30,7 +34,7 @@ | ||
| 16 | namespace sandbox { | ||
| 17 | namespace policy { | ||
| 18 | |||
| 19 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 20 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 21 | bool Sandbox::Initialize(sandbox::mojom::Sandbox sandbox_type, | ||
| 22 | SandboxLinux::PreSandboxHook hook, | ||
| 23 | const SandboxLinux::Options& options) { | ||
diff --git a/www/chromium/patches/patch-sandbox_policy_sandbox_h b/www/chromium/patches/patch-sandbox_policy_sandbox_h new file mode 100644 index 0000000..761aa68 --- /dev/null +++ b/www/chromium/patches/patch-sandbox_policy_sandbox_h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Index: sandbox/policy/sandbox.h | ||
| 2 | --- sandbox/policy/sandbox.h.orig | ||
| 3 | +++ sandbox/policy/sandbox.h | ||
| 4 | @@ -12,6 +12,10 @@ | ||
| 5 | #include "sandbox/policy/linux/sandbox_linux.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if BUILDFLAG(IS_BSD) | ||
| 9 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 10 | +#endif | ||
| 11 | + | ||
| 12 | namespace sandbox { | ||
| 13 | namespace mojom { | ||
| 14 | enum class Sandbox; | ||
| 15 | @@ -32,7 +36,7 @@ namespace policy { | ||
| 16 | |||
| 17 | class SANDBOX_POLICY_EXPORT Sandbox { | ||
| 18 | public: | ||
| 19 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 20 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 21 | static bool Initialize(sandbox::mojom::Sandbox sandbox_type, | ||
| 22 | SandboxLinux::PreSandboxHook hook, | ||
| 23 | const SandboxLinux::Options& options); | ||
diff --git a/www/chromium/patches/patch-sandbox_policy_sandbox_type_cc b/www/chromium/patches/patch-sandbox_policy_sandbox_type_cc new file mode 100644 index 0000000..e467c2b --- /dev/null +++ b/www/chromium/patches/patch-sandbox_policy_sandbox_type_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: sandbox/policy/sandbox_type.cc | ||
| 2 | --- sandbox/policy/sandbox_type.cc.orig | ||
| 3 | +++ sandbox/policy/sandbox_type.cc | ||
| 4 | @@ -39,7 +39,7 @@ bool IsUnsandboxedSandboxType(Sandbox sandbox_type) { | ||
| 5 | #endif | ||
| 6 | case Sandbox::kAudio: | ||
| 7 | return false; | ||
| 8 | -#if BUILDFLAG(IS_FUCHSIA) | ||
| 9 | +#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | case Sandbox::kVideoCapture: | ||
| 11 | return false; | ||
| 12 | #endif | ||
| 13 | @@ -122,7 +122,7 @@ void SetCommandLineFlagsForSandboxType(base::CommandLi | ||
| 14 | #endif | ||
| 15 | case Sandbox::kPrintCompositor: | ||
| 16 | case Sandbox::kAudio: | ||
| 17 | -#if BUILDFLAG(IS_FUCHSIA) | ||
| 18 | +#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | case Sandbox::kVideoCapture: | ||
| 20 | #endif | ||
| 21 | #if BUILDFLAG(IS_WIN) | ||
| 22 | @@ -247,7 +247,7 @@ std::string StringFromUtilitySandboxType(Sandbox sandb | ||
| 23 | return switches::kUtilitySandbox; | ||
| 24 | case Sandbox::kAudio: | ||
| 25 | return switches::kAudioSandbox; | ||
| 26 | -#if BUILDFLAG(IS_FUCHSIA) | ||
| 27 | +#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 28 | case Sandbox::kVideoCapture: | ||
| 29 | return switches::kVideoCaptureSandbox; | ||
| 30 | #endif | ||
| 31 | @@ -355,7 +355,7 @@ sandbox::mojom::Sandbox UtilitySandboxTypeFromString( | ||
| 32 | return Sandbox::kAudio; | ||
| 33 | if (sandbox_string == switches::kSpeechRecognitionSandbox) | ||
| 34 | return Sandbox::kSpeechRecognition; | ||
| 35 | -#if BUILDFLAG(IS_FUCHSIA) | ||
| 36 | +#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 37 | if (sandbox_string == switches::kVideoCaptureSandbox) | ||
| 38 | return Sandbox::kVideoCapture; | ||
| 39 | #endif | ||
diff --git a/www/chromium/patches/patch-sandbox_policy_switches_cc b/www/chromium/patches/patch-sandbox_policy_switches_cc new file mode 100644 index 0000000..a12315b --- /dev/null +++ b/www/chromium/patches/patch-sandbox_policy_switches_cc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: sandbox/policy/switches.cc | ||
| 2 | --- sandbox/policy/switches.cc.orig | ||
| 3 | +++ sandbox/policy/switches.cc | ||
| 4 | @@ -95,7 +95,9 @@ const char kGpuSandboxFailuresFatal[] = "gpu-sandbox-f | ||
| 5 | // Meant to be used as a browser-level switch for testing purposes only. | ||
| 6 | const char kNoSandbox[] = "no-sandbox"; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +const char kDisableUnveil[] = "disable-unveil"; | ||
| 10 | + | ||
| 11 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 12 | // Instructs the zygote to launch without a sandbox. Processes forked from this | ||
| 13 | // type of zygote will apply their own custom sandboxes later. | ||
| 14 | const char kNoZygoteSandbox[] = "no-zygote-sandbox"; | ||
diff --git a/www/chromium/patches/patch-sandbox_policy_switches_h b/www/chromium/patches/patch-sandbox_policy_switches_h new file mode 100644 index 0000000..2831c1e --- /dev/null +++ b/www/chromium/patches/patch-sandbox_policy_switches_h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: sandbox/policy/switches.h | ||
| 2 | --- sandbox/policy/switches.h.orig | ||
| 3 | +++ sandbox/policy/switches.h | ||
| 4 | @@ -71,7 +71,8 @@ SANDBOX_POLICY_EXPORT extern const char kDisableSetuid | ||
| 5 | SANDBOX_POLICY_EXPORT extern const char kGpuSandboxAllowSysVShm[]; | ||
| 6 | SANDBOX_POLICY_EXPORT extern const char kGpuSandboxFailuresFatal[]; | ||
| 7 | SANDBOX_POLICY_EXPORT extern const char kNoSandbox[]; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +SANDBOX_POLICY_EXPORT extern const char kDisableUnveil[]; | ||
| 10 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 11 | SANDBOX_POLICY_EXPORT extern const char kNoZygoteSandbox[]; | ||
| 12 | #endif | ||
| 13 | #if BUILDFLAG(IS_WIN) | ||
diff --git a/www/chromium/patches/patch-services_audio_audio_sandbox_hook_linux_cc b/www/chromium/patches/patch-services_audio_audio_sandbox_hook_linux_cc new file mode 100644 index 0000000..23e1681 --- /dev/null +++ b/www/chromium/patches/patch-services_audio_audio_sandbox_hook_linux_cc | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Index: services/audio/audio_sandbox_hook_linux.cc | ||
| 2 | --- services/audio/audio_sandbox_hook_linux.cc.orig | ||
| 3 | +++ services/audio/audio_sandbox_hook_linux.cc | ||
| 4 | @@ -143,6 +143,7 @@ void AddPulseAudioFilePermissions( | ||
| 5 | } | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | std::vector<BrokerFilePermission> GetAudioFilePermissions() { | ||
| 10 | std::vector<BrokerFilePermission> permissions{ | ||
| 11 | BrokerFilePermission::ReadOnly("/dev/urandom"), | ||
| 12 | @@ -171,10 +172,12 @@ void LoadAudioLibraries() { | ||
| 13 | } | ||
| 14 | } | ||
| 15 | } | ||
| 16 | +#endif | ||
| 17 | |||
| 18 | } // namespace | ||
| 19 | |||
| 20 | bool AudioPreSandboxHook(sandbox::policy::SandboxLinux::Options options) { | ||
| 21 | +#if !defined(OS_BSD) | ||
| 22 | LoadAudioLibraries(); | ||
| 23 | auto* instance = sandbox::policy::SandboxLinux::GetInstance(); | ||
| 24 | instance->StartBrokerProcess(MakeBrokerCommandSet({ | ||
| 25 | @@ -194,6 +197,7 @@ bool AudioPreSandboxHook(sandbox::policy::SandboxLinux | ||
| 26 | // TODO(https://crbug.com/850878) enable namespace sandbox. Currently, if | ||
| 27 | // enabled, connect() on pulse native socket fails with ENOENT (called from | ||
| 28 | // pa_context_connect). | ||
| 29 | +#endif | ||
| 30 | |||
| 31 | return true; | ||
| 32 | } | ||
diff --git a/www/chromium/patches/patch-services_audio_audio_sandbox_hook_linux_h b/www/chromium/patches/patch-services_audio_audio_sandbox_hook_linux_h new file mode 100644 index 0000000..a3cc2cb --- /dev/null +++ b/www/chromium/patches/patch-services_audio_audio_sandbox_hook_linux_h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: services/audio/audio_sandbox_hook_linux.h | ||
| 2 | --- services/audio/audio_sandbox_hook_linux.h.orig | ||
| 3 | +++ services/audio/audio_sandbox_hook_linux.h | ||
| 4 | @@ -5,7 +5,11 @@ | ||
| 5 | #ifndef SERVICES_AUDIO_AUDIO_SANDBOX_HOOK_LINUX_H_ | ||
| 6 | #define SERVICES_AUDIO_AUDIO_SANDBOX_HOOK_LINUX_H_ | ||
| 7 | |||
| 8 | +#if defined(OS_BSD) | ||
| 9 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 10 | +#else | ||
| 11 | #include "sandbox/policy/linux/sandbox_linux.h" | ||
| 12 | +#endif | ||
| 13 | |||
| 14 | namespace audio { | ||
| 15 | |||
diff --git a/www/chromium/patches/patch-services_cert_verifier_cert_verifier_creation_cc b/www/chromium/patches/patch-services_cert_verifier_cert_verifier_creation_cc new file mode 100644 index 0000000..ad9e0a7 --- /dev/null +++ b/www/chromium/patches/patch-services_cert_verifier_cert_verifier_creation_cc | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | Index: services/cert_verifier/cert_verifier_creation.cc | ||
| 2 | --- services/cert_verifier/cert_verifier_creation.cc.orig | ||
| 3 | +++ services/cert_verifier/cert_verifier_creation.cc | ||
| 4 | @@ -86,7 +86,7 @@ scoped_refptr<net::CertVerifyProc> CreateCertVerifyPro | ||
| 5 | scoped_refptr<net::CertVerifyProc> CreateOldDefaultWithoutCaching( | ||
| 6 | scoped_refptr<net::CertNetFetcher> cert_net_fetcher) { | ||
| 7 | scoped_refptr<net::CertVerifyProc> verify_proc; | ||
| 8 | -#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | verify_proc = | ||
| 11 | net::CertVerifyProc::CreateBuiltinVerifyProc(std::move(cert_net_fetcher)); | ||
| 12 | #else | ||
| 13 | @@ -104,7 +104,7 @@ scoped_refptr<net::CertVerifyProc> CreateNewDefaultWit | ||
| 14 | scoped_refptr<net::CertNetFetcher> cert_net_fetcher) { | ||
| 15 | scoped_refptr<net::CertVerifyProc> verify_proc; | ||
| 16 | #if BUILDFLAG(CHROME_ROOT_STORE_SUPPORTED) && \ | ||
| 17 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)) | ||
| 18 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)) | ||
| 19 | verify_proc = net::CreateCertVerifyProcBuiltin( | ||
| 20 | std::move(cert_net_fetcher), net::CreateSslSystemTrustStoreChromeRoot()); | ||
| 21 | #elif BUILDFLAG(BUILTIN_CERT_VERIFIER_FEATURE_SUPPORTED) | ||
| 22 | @@ -122,7 +122,8 @@ bool IsUsingCertNetFetcher() { | ||
| 23 | #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 24 | BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || \ | ||
| 25 | BUILDFLAG(TRIAL_COMPARISON_CERT_VERIFIER_SUPPORTED) || \ | ||
| 26 | - BUILDFLAG(BUILTIN_CERT_VERIFIER_FEATURE_SUPPORTED) | ||
| 27 | + BUILDFLAG(BUILTIN_CERT_VERIFIER_FEATURE_SUPPORTED) || \ | ||
| 28 | + BUILDFLAG(IS_BSD) | ||
| 29 | return true; | ||
| 30 | #else | ||
| 31 | return false; | ||
diff --git a/www/chromium/patches/patch-services_device_geolocation_location_arbitrator_cc b/www/chromium/patches/patch-services_device_geolocation_location_arbitrator_cc new file mode 100644 index 0000000..e19a3f0 --- /dev/null +++ b/www/chromium/patches/patch-services_device_geolocation_location_arbitrator_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: services/device/geolocation/location_arbitrator.cc | ||
| 2 | --- services/device/geolocation/location_arbitrator.cc.orig | ||
| 3 | +++ services/device/geolocation/location_arbitrator.cc | ||
| 4 | @@ -161,7 +161,7 @@ LocationArbitrator::NewNetworkLocationProvider( | ||
| 5 | |||
| 6 | std::unique_ptr<LocationProvider> | ||
| 7 | LocationArbitrator::NewSystemLocationProvider() { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | return nullptr; | ||
| 11 | #else | ||
| 12 | return device::NewSystemLocationProvider(main_task_runner_, | ||
diff --git a/www/chromium/patches/patch-services_device_hid_BUILD_gn b/www/chromium/patches/patch-services_device_hid_BUILD_gn new file mode 100644 index 0000000..d57ea1d --- /dev/null +++ b/www/chromium/patches/patch-services_device_hid_BUILD_gn | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | Index: services/device/hid/BUILD.gn | ||
| 2 | --- services/device/hid/BUILD.gn.orig | ||
| 3 | +++ services/device/hid/BUILD.gn | ||
| 4 | @@ -35,6 +35,25 @@ source_set("hid") { | ||
| 5 | "//services/device/public/mojom", | ||
| 6 | ] | ||
| 7 | |||
| 8 | + if (is_openbsd) { | ||
| 9 | + sources += [ | ||
| 10 | + "hid_connection_fido.cc", | ||
| 11 | + "hid_connection_fido.h", | ||
| 12 | + "hid_service_fido.cc", | ||
| 13 | + "hid_service_fido.h", | ||
| 14 | + ] | ||
| 15 | + libs = ["fido2", "cbor", "usbhid", "crypto", "util"] | ||
| 16 | + } | ||
| 17 | + | ||
| 18 | + if (is_freebsd) { | ||
| 19 | + sources += [ | ||
| 20 | + "hid_connection_freebsd.cc", | ||
| 21 | + "hid_connection_freebsd.h", | ||
| 22 | + "hid_service_freebsd.cc", | ||
| 23 | + "hid_service_freebsd.h", | ||
| 24 | + ] | ||
| 25 | + } | ||
| 26 | + | ||
| 27 | if ((is_linux || is_chromeos) && use_udev) { | ||
| 28 | sources += [ | ||
| 29 | "hid_connection_linux.cc", | ||
diff --git a/www/chromium/patches/patch-services_device_hid_hid_connection_fido_cc b/www/chromium/patches/patch-services_device_hid_hid_connection_fido_cc new file mode 100644 index 0000000..8eeefa7 --- /dev/null +++ b/www/chromium/patches/patch-services_device_hid_hid_connection_fido_cc | |||
| @@ -0,0 +1,202 @@ | |||
| 1 | Index: services/device/hid/hid_connection_fido.cc | ||
| 2 | --- services/device/hid/hid_connection_fido.cc.orig | ||
| 3 | +++ services/device/hid/hid_connection_fido.cc | ||
| 4 | @@ -0,0 +1,198 @@ | ||
| 5 | +// Copyright (c) 2020 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#include "services/device/hid/hid_connection_fido.h" | ||
| 10 | + | ||
| 11 | +#include "base/bind.h" | ||
| 12 | +#include "base/files/file_descriptor_watcher_posix.h" | ||
| 13 | +#include "base/location.h" | ||
| 14 | +#include "base/numerics/safe_math.h" | ||
| 15 | +#include "base/posix/eintr_wrapper.h" | ||
| 16 | +#include "base/task/post_task.h" | ||
| 17 | +#include "base/task/single_thread_task_runner.h" | ||
| 18 | +#include "base/threading/scoped_blocking_call.h" | ||
| 19 | +#include "base/threading/thread_restrictions.h" | ||
| 20 | +#include "base/threading/thread_task_runner_handle.h" | ||
| 21 | +#include "components/device_event_log/device_event_log.h" | ||
| 22 | +#include "services/device/hid/hid_service.h" | ||
| 23 | + | ||
| 24 | +namespace device { | ||
| 25 | + | ||
| 26 | +class HidConnectionFido::BlockingTaskHelper { | ||
| 27 | +public: | ||
| 28 | + BlockingTaskHelper(base::ScopedFD fd, | ||
| 29 | + scoped_refptr<HidDeviceInfo> device_info, | ||
| 30 | + base::WeakPtr<HidConnectionFido> connection) | ||
| 31 | + : fd_(std::move(fd)), | ||
| 32 | + // Report buffers must always have room for the report ID. | ||
| 33 | + report_buffer_size_(device_info->max_input_report_size() + 1), | ||
| 34 | + has_report_id_(device_info->has_report_id()), connection_(connection), | ||
| 35 | + origin_task_runner_(base::ThreadTaskRunnerHandle::Get()) { | ||
| 36 | + DETACH_FROM_SEQUENCE(sequence_checker_); | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + BlockingTaskHelper(const BlockingTaskHelper&) = delete; | ||
| 40 | + BlockingTaskHelper& operator=(const BlockingTaskHelper&) = delete; | ||
| 41 | + | ||
| 42 | + ~BlockingTaskHelper() { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); } | ||
| 43 | + | ||
| 44 | + // Starts the FileDescriptorWatcher that reads input events from the device. | ||
| 45 | + // Must be called on a thread that has a base::MessageLoopForIO. | ||
| 46 | + void Start() { | ||
| 47 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 48 | + base::internal::AssertBlockingAllowed(); | ||
| 49 | + | ||
| 50 | + file_watcher_ = base::FileDescriptorWatcher::WatchReadable( | ||
| 51 | + fd_.get(), base::BindRepeating(&BlockingTaskHelper::OnFileCanReadWithoutBlocking, | ||
| 52 | + base::Unretained(this))); | ||
| 53 | + } | ||
| 54 | + | ||
| 55 | + void Write(scoped_refptr<base::RefCountedBytes> buffer, | ||
| 56 | + WriteCallback callback) { | ||
| 57 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 58 | + base::ScopedBlockingCall scoped_blocking_call( | ||
| 59 | + FROM_HERE, base::BlockingType::MAY_BLOCK); | ||
| 60 | + | ||
| 61 | + auto data = buffer->front(); | ||
| 62 | + size_t size = buffer->size(); | ||
| 63 | + // if report id is 0, it shouldn't be included | ||
| 64 | + if (data[0] == 0) { | ||
| 65 | + data++; | ||
| 66 | + size--; | ||
| 67 | + } | ||
| 68 | + | ||
| 69 | + ssize_t result = HANDLE_EINTR(write(fd_.get(), data, size)); | ||
| 70 | + bool success = static_cast<size_t>(result) == size; | ||
| 71 | + if (!success) { | ||
| 72 | + HID_LOG(EVENT) << "HID write failed: " << result << " != " << size; | ||
| 73 | + } | ||
| 74 | + origin_task_runner_->PostTask(FROM_HERE, | ||
| 75 | + base::BindOnce(std::move(callback), success)); | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + void GetFeatureReport(uint8_t report_id, | ||
| 79 | + scoped_refptr<base::RefCountedBytes> buffer, | ||
| 80 | + ReadCallback callback) { | ||
| 81 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 82 | + base::ScopedBlockingCall scoped_blocking_call( | ||
| 83 | + FROM_HERE, base::BlockingType::MAY_BLOCK); | ||
| 84 | + HID_PLOG(EVENT) << "GendFeatureReport not implemented on OpenBSD"; | ||
| 85 | + origin_task_runner_->PostTask( | ||
| 86 | + FROM_HERE, base::BindOnce(std::move(callback), false, nullptr, 0)); | ||
| 87 | + } | ||
| 88 | + | ||
| 89 | + void SendFeatureReport(scoped_refptr<base::RefCountedBytes> buffer, | ||
| 90 | + WriteCallback callback) { | ||
| 91 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 92 | + HID_PLOG(EVENT) << "SendFeatureReport not implemented on OpenBSD"; | ||
| 93 | + origin_task_runner_->PostTask(FROM_HERE, | ||
| 94 | + base::BindOnce(std::move(callback), false)); | ||
| 95 | + } | ||
| 96 | + | ||
| 97 | +private: | ||
| 98 | + void OnFileCanReadWithoutBlocking() { | ||
| 99 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 100 | + | ||
| 101 | + scoped_refptr<base::RefCountedBytes> buffer( | ||
| 102 | + new base::RefCountedBytes(report_buffer_size_)); | ||
| 103 | + unsigned char *data = buffer->front(); | ||
| 104 | + size_t length = report_buffer_size_; | ||
| 105 | + if (!has_report_id_) { | ||
| 106 | + // OpenBSD will not prefix the buffer with a report ID if report IDs are | ||
| 107 | + // not used by the device. Prefix the buffer with 0. | ||
| 108 | + *data++ = 0; | ||
| 109 | + length--; | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + ssize_t bytes_read = HANDLE_EINTR(read(fd_.get(), data, length)); | ||
| 113 | + if (bytes_read < 0) { | ||
| 114 | + if (errno != EAGAIN) { | ||
| 115 | + HID_PLOG(EVENT) << "Read failed"; | ||
| 116 | + // This assumes that the error is unrecoverable and disables reading | ||
| 117 | + // from the device until it has been re-opened. | ||
| 118 | + // TODO(reillyg): Investigate starting and stopping the file descriptor | ||
| 119 | + // watcher in response to pending read requests so that per-request | ||
| 120 | + // errors can be returned to the client. | ||
| 121 | + file_watcher_.reset(); | ||
| 122 | + } | ||
| 123 | + return; | ||
| 124 | + } | ||
| 125 | + if (!has_report_id_) { | ||
| 126 | + // Behave as if the byte prefixed above as the the report ID was read. | ||
| 127 | + bytes_read++; | ||
| 128 | + } | ||
| 129 | + | ||
| 130 | + origin_task_runner_->PostTask( | ||
| 131 | + FROM_HERE, base::BindOnce(&HidConnectionFido::ProcessInputReport, | ||
| 132 | + connection_, buffer, bytes_read)); | ||
| 133 | + } | ||
| 134 | + | ||
| 135 | + SEQUENCE_CHECKER(sequence_checker_); | ||
| 136 | + base::ScopedFD fd_; | ||
| 137 | + const size_t report_buffer_size_; | ||
| 138 | + const bool has_report_id_; | ||
| 139 | + base::WeakPtr<HidConnectionFido> connection_; | ||
| 140 | + const scoped_refptr<base::SequencedTaskRunner> origin_task_runner_; | ||
| 141 | + std::unique_ptr<base::FileDescriptorWatcher::Controller> file_watcher_; | ||
| 142 | +}; | ||
| 143 | + | ||
| 144 | +HidConnectionFido::HidConnectionFido( | ||
| 145 | + scoped_refptr<HidDeviceInfo> device_info, base::ScopedFD fd, | ||
| 146 | + scoped_refptr<base::SequencedTaskRunner> blocking_task_runner, | ||
| 147 | + bool allow_protected_reports, bool allow_fido_reports) | ||
| 148 | + : HidConnection(device_info, allow_protected_reports, allow_fido_reports), | ||
| 149 | + blocking_task_runner_(std::move(blocking_task_runner)), | ||
| 150 | + weak_factory_(this), | ||
| 151 | + helper_(std::make_unique<BlockingTaskHelper>( | ||
| 152 | + std::move(fd), device_info, weak_factory_.GetWeakPtr())) { | ||
| 153 | + blocking_task_runner_->PostTask( | ||
| 154 | + FROM_HERE, base::BindOnce(&BlockingTaskHelper::Start, | ||
| 155 | + base::Unretained(helper_.get()))); | ||
| 156 | +} | ||
| 157 | + | ||
| 158 | +HidConnectionFido::~HidConnectionFido() = default; | ||
| 159 | + | ||
| 160 | +void HidConnectionFido::PlatformClose() { | ||
| 161 | + // By closing the device on the blocking task runner 1) the requirement that | ||
| 162 | + // base::ScopedFD is destroyed on a thread where I/O is allowed is satisfied | ||
| 163 | + // and 2) any tasks posted to this task runner that refer to this file will | ||
| 164 | + // complete before it is closed. | ||
| 165 | + blocking_task_runner_->DeleteSoon(FROM_HERE, helper_.release()); | ||
| 166 | +} | ||
| 167 | + | ||
| 168 | +void HidConnectionFido::PlatformWrite( | ||
| 169 | + scoped_refptr<base::RefCountedBytes> buffer, WriteCallback callback) { | ||
| 170 | + blocking_task_runner_->PostTask( | ||
| 171 | + FROM_HERE, base::BindOnce(&BlockingTaskHelper::Write, | ||
| 172 | + base::Unretained(helper_.get()), buffer, | ||
| 173 | + std::move(callback))); | ||
| 174 | +} | ||
| 175 | + | ||
| 176 | +void HidConnectionFido::PlatformGetFeatureReport(uint8_t report_id, | ||
| 177 | + ReadCallback callback) { | ||
| 178 | + // The first byte of the destination buffer is the report ID being requested | ||
| 179 | + // and is overwritten by the feature report. | ||
| 180 | + DCHECK_GT(device_info()->max_feature_report_size(), 0u); | ||
| 181 | + scoped_refptr<base::RefCountedBytes> buffer( | ||
| 182 | + new base::RefCountedBytes(device_info()->max_feature_report_size() + 1)); | ||
| 183 | + if (report_id != 0) | ||
| 184 | + buffer->data()[0] = report_id; | ||
| 185 | + | ||
| 186 | + blocking_task_runner_->PostTask( | ||
| 187 | + FROM_HERE, base::BindOnce(&BlockingTaskHelper::GetFeatureReport, | ||
| 188 | + base::Unretained(helper_.get()), report_id, | ||
| 189 | + buffer, std::move(callback))); | ||
| 190 | +} | ||
| 191 | + | ||
| 192 | +void HidConnectionFido::PlatformSendFeatureReport( | ||
| 193 | + scoped_refptr<base::RefCountedBytes> buffer, WriteCallback callback) { | ||
| 194 | + base::ScopedBlockingCall scoped_blocking_call(FROM_HERE, | ||
| 195 | + base::BlockingType::MAY_BLOCK); | ||
| 196 | + blocking_task_runner_->PostTask( | ||
| 197 | + FROM_HERE, base::BindOnce(&BlockingTaskHelper::SendFeatureReport, | ||
| 198 | + base::Unretained(helper_.get()), buffer, | ||
| 199 | + std::move(callback))); | ||
| 200 | +} | ||
| 201 | + | ||
| 202 | +} // namespace device | ||
diff --git a/www/chromium/patches/patch-services_device_hid_hid_connection_fido_h b/www/chromium/patches/patch-services_device_hid_hid_connection_fido_h new file mode 100644 index 0000000..d05ac9e --- /dev/null +++ b/www/chromium/patches/patch-services_device_hid_hid_connection_fido_h | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | Index: services/device/hid/hid_connection_fido.h | ||
| 2 | --- services/device/hid/hid_connection_fido.h.orig | ||
| 3 | +++ services/device/hid/hid_connection_fido.h | ||
| 4 | @@ -0,0 +1,57 @@ | ||
| 5 | +// Copyright (c) 2020 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#ifndef SERVICE_DEVICE_HID_HID_CONNECTION_FIDO_H_ | ||
| 10 | +#define SERVICE_DEVICE_HID_HID_CONNECTION_FIDO_H_ | ||
| 11 | + | ||
| 12 | +#include "base/files/scoped_file.h" | ||
| 13 | +#include "base/memory/ptr_util.h" | ||
| 14 | +#include "base/memory/ref_counted_memory.h" | ||
| 15 | +#include "base/memory/weak_ptr.h" | ||
| 16 | +#include "base/sequence_checker.h" | ||
| 17 | +#include "services/device/hid/hid_connection.h" | ||
| 18 | + | ||
| 19 | +namespace device { | ||
| 20 | + | ||
| 21 | +class HidConnectionFido : public HidConnection { | ||
| 22 | +public: | ||
| 23 | + HidConnectionFido( | ||
| 24 | + scoped_refptr<HidDeviceInfo> device_info, base::ScopedFD fd, | ||
| 25 | + scoped_refptr<base::SequencedTaskRunner> blocking_task_runner, | ||
| 26 | + bool allow_protected_reports, bool allow_fido_reports); | ||
| 27 | + | ||
| 28 | +private: | ||
| 29 | + friend class base::RefCountedThreadSafe<HidConnectionFido>; | ||
| 30 | + class BlockingTaskHelper; | ||
| 31 | + | ||
| 32 | + HidConnectionFido(const HidConnectionFido&) = delete; | ||
| 33 | + HidConnectionFido& operator=(const HidConnectionFido&) = delete; | ||
| 34 | + | ||
| 35 | + ~HidConnectionFido() override; | ||
| 36 | + | ||
| 37 | + // HidConnection implementation. | ||
| 38 | + void PlatformClose() override; | ||
| 39 | + void PlatformWrite(scoped_refptr<base::RefCountedBytes> buffer, | ||
| 40 | + WriteCallback callback) override; | ||
| 41 | + void PlatformGetFeatureReport(uint8_t report_id, | ||
| 42 | + ReadCallback callback) override; | ||
| 43 | + void PlatformSendFeatureReport(scoped_refptr<base::RefCountedBytes> buffer, | ||
| 44 | + WriteCallback callback) override; | ||
| 45 | + | ||
| 46 | + const scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | ||
| 47 | + const scoped_refptr<base::SequencedTaskRunner> task_runner_; | ||
| 48 | + | ||
| 49 | + SEQUENCE_CHECKER(sequence_checker_); | ||
| 50 | + | ||
| 51 | + base::WeakPtrFactory<HidConnectionFido> weak_factory_; | ||
| 52 | + | ||
| 53 | + // |helper_| lives on the sequence to which |blocking_task_runner_| posts | ||
| 54 | + // tasks so all calls must be posted there including this object's | ||
| 55 | + // destruction. | ||
| 56 | + std::unique_ptr<BlockingTaskHelper> helper_; | ||
| 57 | +}; | ||
| 58 | + | ||
| 59 | +} // namespace device | ||
| 60 | + | ||
| 61 | +#endif // SERVICE_DEVICE_HID_HID_CONNECTION_FIDO_H_ | ||
diff --git a/www/chromium/patches/patch-services_device_hid_hid_connection_freebsd_cc b/www/chromium/patches/patch-services_device_hid_hid_connection_freebsd_cc new file mode 100644 index 0000000..3921dfc --- /dev/null +++ b/www/chromium/patches/patch-services_device_hid_hid_connection_freebsd_cc | |||
| @@ -0,0 +1,247 @@ | |||
| 1 | Index: services/device/hid/hid_connection_freebsd.cc | ||
| 2 | --- services/device/hid/hid_connection_freebsd.cc.orig | ||
| 3 | +++ services/device/hid/hid_connection_freebsd.cc | ||
| 4 | @@ -0,0 +1,243 @@ | ||
| 5 | +// Copyright (c) 2014 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#include "services/device/hid/hid_connection_freebsd.h" | ||
| 10 | + | ||
| 11 | +#include <dev/usb/usbhid.h> | ||
| 12 | +#include <dev/usb/usb_ioctl.h> | ||
| 13 | + | ||
| 14 | +#include "base/bind.h" | ||
| 15 | +#include "base/files/file_descriptor_watcher_posix.h" | ||
| 16 | +#include "base/location.h" | ||
| 17 | +#include "base/numerics/safe_math.h" | ||
| 18 | +#include "base/posix/eintr_wrapper.h" | ||
| 19 | +#include "base/strings/stringprintf.h" | ||
| 20 | +#include "base/task/post_task.h" | ||
| 21 | +#include "base/task/single_thread_task_runner.h" | ||
| 22 | +#include "base/threading/scoped_blocking_call.h" | ||
| 23 | +#include "base/threading/thread_restrictions.h" | ||
| 24 | +#include "base/threading/thread_task_runner_handle.h" | ||
| 25 | +#include "components/device_event_log/device_event_log.h" | ||
| 26 | +#include "services/device/hid/hid_service.h" | ||
| 27 | + | ||
| 28 | +namespace device { | ||
| 29 | + | ||
| 30 | +class HidConnectionFreeBSD::BlockingTaskRunnerHelper { | ||
| 31 | + public: | ||
| 32 | + BlockingTaskRunnerHelper(base::ScopedFD fd, | ||
| 33 | + scoped_refptr<HidDeviceInfo> device_info, | ||
| 34 | + base::WeakPtr<HidConnectionFreeBSD> connection) | ||
| 35 | + : fd_(std::move(fd)), | ||
| 36 | + connection_(connection), | ||
| 37 | + origin_task_runner_(base::ThreadTaskRunnerHandle::Get()) { | ||
| 38 | + DETACH_FROM_SEQUENCE(sequence_checker_); | ||
| 39 | + // Report buffers must always have room for the report ID. | ||
| 40 | + report_buffer_size_ = device_info->max_input_report_size() + 1; | ||
| 41 | + has_report_id_ = device_info->has_report_id(); | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | + BlockingTaskRunnerHelper(const BlockingTaskRunnerHelper&) = delete; | ||
| 45 | + BlockingTaskRunnerHelper& operator=(const BlockingTaskRunnerHelper&) = delete; | ||
| 46 | + | ||
| 47 | + ~BlockingTaskRunnerHelper() { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); } | ||
| 48 | + | ||
| 49 | + // Starts the FileDescriptorWatcher that reads input events from the device. | ||
| 50 | + // Must be called on a thread that has a base::MessageLoopForIO. | ||
| 51 | + void Start() { | ||
| 52 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 53 | + base::internal::AssertBlockingAllowed(); | ||
| 54 | + | ||
| 55 | + file_watcher_ = base::FileDescriptorWatcher::WatchReadable( | ||
| 56 | + fd_.get(), base::BindRepeating(&BlockingTaskRunnerHelper::OnFileCanReadWithoutBlocking, | ||
| 57 | + base::Unretained(this))); | ||
| 58 | + } | ||
| 59 | + | ||
| 60 | + void Write(scoped_refptr<base::RefCountedBytes> buffer, | ||
| 61 | + WriteCallback callback) { | ||
| 62 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 63 | + base::ScopedBlockingCall scoped_blocking_call( | ||
| 64 | + FROM_HERE, base::BlockingType::MAY_BLOCK); | ||
| 65 | + | ||
| 66 | + auto data = buffer->front(); | ||
| 67 | + size_t size = buffer->size(); | ||
| 68 | + // if report id is 0, it shouldn't be included | ||
| 69 | + if (data[0] == 0) { | ||
| 70 | + data++; | ||
| 71 | + size--; | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + ssize_t result = HANDLE_EINTR(write(fd_.get(), data, size)); | ||
| 75 | + if (result < 0) { | ||
| 76 | + HID_PLOG(EVENT) << "Write failed"; | ||
| 77 | + origin_task_runner_->PostTask(FROM_HERE, base::BindOnce(std::move(callback), false)); | ||
| 78 | + } else { | ||
| 79 | + if (static_cast<size_t>(result) != size) | ||
| 80 | + HID_LOG(EVENT) << "Incomplete HID write: " << result << " != " << size; | ||
| 81 | + origin_task_runner_->PostTask(FROM_HERE, base::BindOnce(std::move(callback), true)); | ||
| 82 | + } | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + void GetFeatureReport(uint8_t report_id, | ||
| 86 | + scoped_refptr<base::RefCountedBytes> buffer, | ||
| 87 | + ReadCallback callback) { | ||
| 88 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 89 | + base::ScopedBlockingCall scoped_blocking_call( | ||
| 90 | + FROM_HERE, base::BlockingType::MAY_BLOCK); | ||
| 91 | + struct usb_gen_descriptor ugd; | ||
| 92 | + ugd.ugd_report_type = UHID_FEATURE_REPORT; | ||
| 93 | + ugd.ugd_data = buffer->front(); | ||
| 94 | + ugd.ugd_maxlen = buffer->size(); | ||
| 95 | + int result = HANDLE_EINTR( | ||
| 96 | + ioctl(fd_.get(), USB_GET_REPORT, &ugd)); | ||
| 97 | + if (result < 0) { | ||
| 98 | + HID_PLOG(EVENT) << "Failed to get feature report"; | ||
| 99 | + origin_task_runner_->PostTask(FROM_HERE, | ||
| 100 | + base::BindOnce(std::move(callback), false, nullptr, 0)); | ||
| 101 | + } else if (result == 0) { | ||
| 102 | + HID_LOG(EVENT) << "Get feature result too short."; | ||
| 103 | + origin_task_runner_->PostTask(FROM_HERE, | ||
| 104 | + base::BindOnce(std::move(callback), false, nullptr, 0)); | ||
| 105 | + } else { | ||
| 106 | + origin_task_runner_->PostTask(FROM_HERE, | ||
| 107 | + base::BindOnce(std::move(callback), true, buffer, result)); | ||
| 108 | + } | ||
| 109 | + } | ||
| 110 | + | ||
| 111 | + void SendFeatureReport(scoped_refptr<base::RefCountedBytes> buffer, | ||
| 112 | + WriteCallback callback) { | ||
| 113 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 114 | + struct usb_gen_descriptor ugd; | ||
| 115 | + ugd.ugd_report_type = UHID_FEATURE_REPORT; | ||
| 116 | + ugd.ugd_data = buffer->front(); | ||
| 117 | + ugd.ugd_maxlen = buffer->size(); | ||
| 118 | + // FreeBSD does not require report id if it's not used | ||
| 119 | + if (buffer->front()[0] == 0) { | ||
| 120 | + ugd.ugd_data = buffer->front() + 1; | ||
| 121 | + ugd.ugd_maxlen = buffer->size() - 1; | ||
| 122 | + } else { | ||
| 123 | + ugd.ugd_data = buffer->front(); | ||
| 124 | + ugd.ugd_maxlen = buffer->size(); | ||
| 125 | + } | ||
| 126 | + int result = HANDLE_EINTR( | ||
| 127 | + ioctl(fd_.get(), USB_SET_REPORT, &ugd)); | ||
| 128 | + if (result < 0) { | ||
| 129 | + HID_PLOG(EVENT) << "Failed to send feature report"; | ||
| 130 | + origin_task_runner_->PostTask(FROM_HERE, | ||
| 131 | + base::BindOnce(std::move(callback), false)); | ||
| 132 | + } else { | ||
| 133 | + origin_task_runner_->PostTask(FROM_HERE, | ||
| 134 | + base::BindOnce(std::move(callback), true)); | ||
| 135 | + } | ||
| 136 | + } | ||
| 137 | + | ||
| 138 | + private: | ||
| 139 | + void OnFileCanReadWithoutBlocking() { | ||
| 140 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 141 | + | ||
| 142 | + scoped_refptr<base::RefCountedBytes> buffer(new base::RefCountedBytes(report_buffer_size_)); | ||
| 143 | + unsigned char* data = buffer->front(); | ||
| 144 | + size_t length = report_buffer_size_; | ||
| 145 | + if (!has_report_id_) { | ||
| 146 | + // FreeBSD will not prefix the buffer with a report ID if report IDs are not | ||
| 147 | + // used by the device. Prefix the buffer with 0. | ||
| 148 | + *data++ = 0; | ||
| 149 | + length--; | ||
| 150 | + } | ||
| 151 | + | ||
| 152 | + ssize_t bytes_read = HANDLE_EINTR(read(fd_.get(), data, length)); | ||
| 153 | + if (bytes_read < 0) { | ||
| 154 | + if (errno != EAGAIN) { | ||
| 155 | + HID_PLOG(EVENT) << "Read failed"; | ||
| 156 | + // This assumes that the error is unrecoverable and disables reading | ||
| 157 | + // from the device until it has been re-opened. | ||
| 158 | + // TODO(reillyg): Investigate starting and stopping the file descriptor | ||
| 159 | + // watcher in response to pending read requests so that per-request | ||
| 160 | + // errors can be returned to the client. | ||
| 161 | + file_watcher_.reset(); | ||
| 162 | + } | ||
| 163 | + return; | ||
| 164 | + } | ||
| 165 | + if (!has_report_id_) { | ||
| 166 | + // Behave as if the byte prefixed above as the the report ID was read. | ||
| 167 | + bytes_read++; | ||
| 168 | + } | ||
| 169 | + | ||
| 170 | + origin_task_runner_->PostTask( | ||
| 171 | + FROM_HERE, base::BindOnce(&HidConnectionFreeBSD::ProcessInputReport, | ||
| 172 | + connection_, buffer, bytes_read)); | ||
| 173 | + } | ||
| 174 | + | ||
| 175 | + SEQUENCE_CHECKER(sequence_checker_); | ||
| 176 | + base::ScopedFD fd_; | ||
| 177 | + size_t report_buffer_size_; | ||
| 178 | + bool has_report_id_; | ||
| 179 | + base::WeakPtr<HidConnectionFreeBSD> connection_; | ||
| 180 | + const scoped_refptr<base::SequencedTaskRunner> origin_task_runner_; | ||
| 181 | + std::unique_ptr<base::FileDescriptorWatcher::Controller> file_watcher_; | ||
| 182 | +}; | ||
| 183 | + | ||
| 184 | +HidConnectionFreeBSD::HidConnectionFreeBSD( | ||
| 185 | + scoped_refptr<HidDeviceInfo> device_info, | ||
| 186 | + base::ScopedFD fd, | ||
| 187 | + scoped_refptr<base::SequencedTaskRunner> blocking_task_runner, | ||
| 188 | + bool allow_protected_reports, | ||
| 189 | + bool allow_fido_reports) | ||
| 190 | + : HidConnection(device_info, allow_protected_reports, allow_fido_reports), | ||
| 191 | + helper_(nullptr, base::OnTaskRunnerDeleter(blocking_task_runner)), | ||
| 192 | + blocking_task_runner_(std::move(blocking_task_runner)) { | ||
| 193 | + helper_.reset(new BlockingTaskRunnerHelper(std::move(fd), device_info, | ||
| 194 | + weak_factory_.GetWeakPtr())); | ||
| 195 | + blocking_task_runner_->PostTask( | ||
| 196 | + FROM_HERE, base::BindOnce(&BlockingTaskRunnerHelper::Start, | ||
| 197 | + base::Unretained(helper_.get()))); | ||
| 198 | +} | ||
| 199 | + | ||
| 200 | +HidConnectionFreeBSD::~HidConnectionFreeBSD() {} | ||
| 201 | + | ||
| 202 | +void HidConnectionFreeBSD::PlatformClose() { | ||
| 203 | + // By closing the device on the blocking task runner 1) the requirement that | ||
| 204 | + // base::ScopedFD is destroyed on a thread where I/O is allowed is satisfied | ||
| 205 | + // and 2) any tasks posted to this task runner that refer to this file will | ||
| 206 | + // complete before it is closed. | ||
| 207 | + blocking_task_runner_->DeleteSoon(FROM_HERE, helper_.release()); | ||
| 208 | +} | ||
| 209 | + | ||
| 210 | +void HidConnectionFreeBSD::PlatformWrite(scoped_refptr<base::RefCountedBytes> buffer, | ||
| 211 | + WriteCallback callback) { | ||
| 212 | + | ||
| 213 | + blocking_task_runner_->PostTask( | ||
| 214 | + FROM_HERE, | ||
| 215 | + base::BindOnce(&BlockingTaskRunnerHelper::Write, base::Unretained(helper_.get()), | ||
| 216 | + buffer, std::move(callback))); | ||
| 217 | +} | ||
| 218 | + | ||
| 219 | +void HidConnectionFreeBSD::PlatformGetFeatureReport(uint8_t report_id, | ||
| 220 | + ReadCallback callback) { | ||
| 221 | + // The first byte of the destination buffer is the report ID being requested | ||
| 222 | + // and is overwritten by the feature report. | ||
| 223 | + DCHECK_GT(device_info()->max_feature_report_size(), 0u); | ||
| 224 | + scoped_refptr<base::RefCountedBytes> buffer( | ||
| 225 | + new base::RefCountedBytes(device_info()->max_feature_report_size() + 1)); | ||
| 226 | + if (report_id != 0) | ||
| 227 | + buffer->data()[0] = report_id; | ||
| 228 | + | ||
| 229 | + blocking_task_runner_->PostTask( | ||
| 230 | + FROM_HERE, | ||
| 231 | + base::BindOnce(&BlockingTaskRunnerHelper::GetFeatureReport, | ||
| 232 | + base::Unretained(helper_.get()), report_id, | ||
| 233 | + buffer, std::move(callback))); | ||
| 234 | +} | ||
| 235 | + | ||
| 236 | +void HidConnectionFreeBSD::PlatformSendFeatureReport( | ||
| 237 | + scoped_refptr<base::RefCountedBytes> buffer, | ||
| 238 | + WriteCallback callback) { | ||
| 239 | + base::ScopedBlockingCall scoped_blocking_call( | ||
| 240 | + FROM_HERE, base::BlockingType::MAY_BLOCK); | ||
| 241 | + blocking_task_runner_->PostTask( | ||
| 242 | + FROM_HERE, | ||
| 243 | + base::BindOnce(&BlockingTaskRunnerHelper::SendFeatureReport, | ||
| 244 | + base::Unretained(helper_.get()), buffer, std::move(callback))); | ||
| 245 | +} | ||
| 246 | + | ||
| 247 | +} // namespace device | ||
diff --git a/www/chromium/patches/patch-services_device_hid_hid_connection_freebsd_h b/www/chromium/patches/patch-services_device_hid_hid_connection_freebsd_h new file mode 100644 index 0000000..92eabe3 --- /dev/null +++ b/www/chromium/patches/patch-services_device_hid_hid_connection_freebsd_h | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | Index: services/device/hid/hid_connection_freebsd.h | ||
| 2 | --- services/device/hid/hid_connection_freebsd.h.orig | ||
| 3 | +++ services/device/hid/hid_connection_freebsd.h | ||
| 4 | @@ -0,0 +1,67 @@ | ||
| 5 | +// Copyright (c) 2014 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#ifndef DEVICE_HID_HID_CONNECTION_FREEBSD_H_ | ||
| 10 | +#define DEVICE_HID_HID_CONNECTION_FREEBSD_H_ | ||
| 11 | + | ||
| 12 | +#include <stddef.h> | ||
| 13 | +#include <stdint.h> | ||
| 14 | + | ||
| 15 | +#include "base/files/scoped_file.h" | ||
| 16 | +#include "base/memory/weak_ptr.h" | ||
| 17 | +#include "base/memory/ref_counted_memory.h" | ||
| 18 | +#include "base/task/sequenced_task_runner.h" | ||
| 19 | +#include "services/device/hid/hid_connection.h" | ||
| 20 | + | ||
| 21 | +namespace base { | ||
| 22 | +class SequencedTaskRunner; | ||
| 23 | +} | ||
| 24 | + | ||
| 25 | +namespace net { | ||
| 26 | +class IOBuffer; | ||
| 27 | +} | ||
| 28 | + | ||
| 29 | +namespace device { | ||
| 30 | + | ||
| 31 | +class HidConnectionFreeBSD : public HidConnection { | ||
| 32 | + public: | ||
| 33 | + HidConnectionFreeBSD( | ||
| 34 | + scoped_refptr<HidDeviceInfo> device_info, | ||
| 35 | + base::ScopedFD fd, | ||
| 36 | + scoped_refptr<base::SequencedTaskRunner> blocking_task_runner, | ||
| 37 | + bool allow_protected_reports, | ||
| 38 | + bool allow_fido_reports); | ||
| 39 | + | ||
| 40 | + private: | ||
| 41 | + friend class base::RefCountedThreadSafe<HidConnectionFreeBSD>; | ||
| 42 | + class BlockingTaskRunnerHelper; | ||
| 43 | + | ||
| 44 | + HidConnectionFreeBSD(const HidConnectionFreeBSD&) = delete; | ||
| 45 | + HidConnectionFreeBSD& operator=(const HidConnectionFreeBSD&) = delete; | ||
| 46 | + | ||
| 47 | + ~HidConnectionFreeBSD() override; | ||
| 48 | + | ||
| 49 | + // HidConnection implementation. | ||
| 50 | + void PlatformClose() override; | ||
| 51 | + void PlatformWrite(scoped_refptr<base::RefCountedBytes> buffer, | ||
| 52 | + WriteCallback callback) override; | ||
| 53 | + void PlatformGetFeatureReport(uint8_t report_id, | ||
| 54 | + ReadCallback callback) override; | ||
| 55 | + void PlatformSendFeatureReport(scoped_refptr<base::RefCountedBytes> buffer, | ||
| 56 | + WriteCallback callback) override; | ||
| 57 | + | ||
| 58 | + // |helper_| lives on the sequence to which |blocking_task_runner_| posts | ||
| 59 | + // tasks so all calls must be posted there including this object's | ||
| 60 | + // destruction. | ||
| 61 | + std::unique_ptr<BlockingTaskRunnerHelper, base::OnTaskRunnerDeleter> helper_; | ||
| 62 | + | ||
| 63 | + const scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | ||
| 64 | + const scoped_refptr<base::SequencedTaskRunner> task_runner_; | ||
| 65 | + | ||
| 66 | + base::WeakPtrFactory<HidConnectionFreeBSD> weak_factory_{this}; | ||
| 67 | +}; | ||
| 68 | + | ||
| 69 | +} // namespace device | ||
| 70 | + | ||
| 71 | +#endif // DEVICE_HID_HID_CONNECTION_FREEBSD_H_ | ||
diff --git a/www/chromium/patches/patch-services_device_hid_hid_service_cc b/www/chromium/patches/patch-services_device_hid_hid_service_cc new file mode 100644 index 0000000..e5b4d9e --- /dev/null +++ b/www/chromium/patches/patch-services_device_hid_hid_service_cc | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | Index: services/device/hid/hid_service.cc | ||
| 2 | --- services/device/hid/hid_service.cc.orig | ||
| 3 | +++ services/device/hid/hid_service.cc | ||
| 4 | @@ -18,6 +18,10 @@ | ||
| 5 | |||
| 6 | #if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_UDEV) | ||
| 7 | #include "services/device/hid/hid_service_linux.h" | ||
| 8 | +#elif BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#include "services/device/hid/hid_service_fido.h" | ||
| 10 | +#elif BUILDFLAG(IS_FREEBSD) | ||
| 11 | +#include "services/device/hid/hid_service_freebsd.h" | ||
| 12 | #elif BUILDFLAG(IS_MAC) | ||
| 13 | #include "services/device/hid/hid_service_mac.h" | ||
| 14 | #elif BUILDFLAG(IS_WIN) | ||
| 15 | @@ -61,6 +65,10 @@ constexpr base::TaskTraits HidService::kBlockingTaskTr | ||
| 16 | std::unique_ptr<HidService> HidService::Create() { | ||
| 17 | #if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_UDEV) | ||
| 18 | return base::WrapUnique(new HidServiceLinux()); | ||
| 19 | +#elif BUILDFLAG(IS_OPENBSD) | ||
| 20 | + return base::WrapUnique(new HidServiceFido()); | ||
| 21 | +#elif BUILDFLAG(IS_FREEBSD) | ||
| 22 | + return base::WrapUnique(new HidServiceFreeBSD()); | ||
| 23 | #elif BUILDFLAG(IS_MAC) | ||
| 24 | return base::WrapUnique(new HidServiceMac()); | ||
| 25 | #elif BUILDFLAG(IS_WIN) | ||
diff --git a/www/chromium/patches/patch-services_device_hid_hid_service_fido_cc b/www/chromium/patches/patch-services_device_hid_hid_service_fido_cc new file mode 100644 index 0000000..bb9458a --- /dev/null +++ b/www/chromium/patches/patch-services_device_hid_hid_service_fido_cc | |||
| @@ -0,0 +1,332 @@ | |||
| 1 | Index: services/device/hid/hid_service_fido.cc | ||
| 2 | --- services/device/hid/hid_service_fido.cc.orig | ||
| 3 | +++ services/device/hid/hid_service_fido.cc | ||
| 4 | @@ -0,0 +1,328 @@ | ||
| 5 | +// Copyright 2020 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#include "services/device/hid/hid_service_fido.h" | ||
| 10 | + | ||
| 11 | +#include <fcntl.h> | ||
| 12 | +#include <poll.h> | ||
| 13 | +#include <stdint.h> | ||
| 14 | +#include <sys/socket.h> | ||
| 15 | +#include <sys/un.h> | ||
| 16 | +#include <unistd.h> | ||
| 17 | + | ||
| 18 | +// TODO: remove once the missing guard in fido.h is fixed upstream. | ||
| 19 | +extern "C" { | ||
| 20 | +#include <fido.h> | ||
| 21 | +} | ||
| 22 | + | ||
| 23 | +#include <set> | ||
| 24 | +#include <string> | ||
| 25 | +#include <vector> | ||
| 26 | + | ||
| 27 | +#include "base/bind.h" | ||
| 28 | +#include "base/files/file.h" | ||
| 29 | +#include "base/files/file_descriptor_watcher_posix.h" | ||
| 30 | +#include "base/files/file_enumerator.h" | ||
| 31 | +#include "base/location.h" | ||
| 32 | +#include "base/logging.h" | ||
| 33 | +#include "base/posix/eintr_wrapper.h" | ||
| 34 | +#include "base/task/single_thread_task_runner.h" | ||
| 35 | +#include "base/task/thread_pool.h" | ||
| 36 | +#include "base/stl_util.h" | ||
| 37 | +#include "base/strings/pattern.h" | ||
| 38 | +#include "base/strings/string_split.h" | ||
| 39 | +#include "base/strings/string_util.h" | ||
| 40 | +#include "base/strings/stringprintf.h" | ||
| 41 | +#include "base/strings/sys_string_conversions.h" | ||
| 42 | +#include "base/task/post_task.h" | ||
| 43 | +#include "base/threading/scoped_blocking_call.h" | ||
| 44 | +#include "base/threading/thread_task_runner_handle.h" | ||
| 45 | +#include "components/device_event_log/device_event_log.h" | ||
| 46 | +#include "services/device/hid/hid_connection_fido.h" | ||
| 47 | + | ||
| 48 | +namespace device { | ||
| 49 | + | ||
| 50 | +namespace { | ||
| 51 | + | ||
| 52 | +struct ConnectParams { | ||
| 53 | + ConnectParams(scoped_refptr<HidDeviceInfo> device_info, | ||
| 54 | + HidService::ConnectCallback callback) | ||
| 55 | + : device_info(std::move(device_info)), callback(std::move(callback)), | ||
| 56 | + task_runner(base::ThreadTaskRunnerHandle::Get()), | ||
| 57 | + blocking_task_runner(base::ThreadPool::CreateSequencedTaskRunner( | ||
| 58 | + HidService::kBlockingTaskTraits)) {} | ||
| 59 | + ~ConnectParams() {} | ||
| 60 | + | ||
| 61 | + scoped_refptr<HidDeviceInfo> device_info; | ||
| 62 | + HidService::ConnectCallback callback; | ||
| 63 | + scoped_refptr<base::SequencedTaskRunner> task_runner; | ||
| 64 | + scoped_refptr<base::SequencedTaskRunner> blocking_task_runner; | ||
| 65 | + base::ScopedFD fd; | ||
| 66 | + bool allow_protected_reports; | ||
| 67 | + bool allow_fido_reports; | ||
| 68 | +}; | ||
| 69 | + | ||
| 70 | +void CreateConnection(std::unique_ptr<ConnectParams> params) { | ||
| 71 | + DCHECK(params->fd.is_valid()); | ||
| 72 | + std::move(params->callback).Run(base::MakeRefCounted<HidConnectionFido>( | ||
| 73 | + std::move(params->device_info), std::move(params->fd), | ||
| 74 | + std::move(params->blocking_task_runner), params->allow_protected_reports, | ||
| 75 | + params->allow_fido_reports)); | ||
| 76 | +} | ||
| 77 | + | ||
| 78 | +void FinishOpen(std::unique_ptr<ConnectParams> params) { | ||
| 79 | + scoped_refptr<base::SequencedTaskRunner> task_runner = params->task_runner; | ||
| 80 | + | ||
| 81 | + task_runner->PostTask(FROM_HERE, | ||
| 82 | + base::BindOnce(&CreateConnection, std::move(params))); | ||
| 83 | +} | ||
| 84 | + | ||
| 85 | +bool terrible_ping_kludge(int fd, const std::string &path) { | ||
| 86 | + u_char data[256]; | ||
| 87 | + int i, n; | ||
| 88 | + struct pollfd pfd; | ||
| 89 | + | ||
| 90 | + for (i = 0; i < 4; i++) { | ||
| 91 | + memset(data, 0, sizeof(data)); | ||
| 92 | + /* broadcast channel ID */ | ||
| 93 | + data[1] = 0xff; | ||
| 94 | + data[2] = 0xff; | ||
| 95 | + data[3] = 0xff; | ||
| 96 | + data[4] = 0xff; | ||
| 97 | + /* Ping command */ | ||
| 98 | + data[5] = 0x81; | ||
| 99 | + /* One byte ping only, Vasili */ | ||
| 100 | + data[6] = 0; | ||
| 101 | + data[7] = 1; | ||
| 102 | + HID_LOG(EVENT) << "send ping " << i << " " << path; | ||
| 103 | + if (write(fd, data, 64) == -1) { | ||
| 104 | + HID_PLOG(ERROR) << "write " << path; | ||
| 105 | + return false; | ||
| 106 | + } | ||
| 107 | + HID_LOG(EVENT) << "wait reply " << path; | ||
| 108 | + memset(&pfd, 0, sizeof(pfd)); | ||
| 109 | + pfd.fd = fd; | ||
| 110 | + pfd.events = POLLIN; | ||
| 111 | + if ((n = poll(&pfd, 1, 100)) == -1) { | ||
| 112 | + HID_PLOG(EVENT) << "poll " << path; | ||
| 113 | + return false; | ||
| 114 | + } else if (n == 0) { | ||
| 115 | + HID_LOG(EVENT) << "timed out " << path; | ||
| 116 | + continue; | ||
| 117 | + } | ||
| 118 | + if (read(fd, data, 64) == -1) { | ||
| 119 | + HID_PLOG(ERROR) << "read " << path; | ||
| 120 | + return false; | ||
| 121 | + } | ||
| 122 | + /* | ||
| 123 | + * Ping isn't always supported on the broadcast channel, | ||
| 124 | + * so we might get an error, but we don't care - we're | ||
| 125 | + * synched now. | ||
| 126 | + */ | ||
| 127 | + HID_LOG(EVENT) << "got reply " << path; | ||
| 128 | + return true; | ||
| 129 | + } | ||
| 130 | + HID_LOG(ERROR) << "no response " << path; | ||
| 131 | + return false; | ||
| 132 | +} | ||
| 133 | + | ||
| 134 | +void OpenOnBlockingThread(std::unique_ptr<ConnectParams> params) { | ||
| 135 | + base::ScopedBlockingCall scoped_blocking_call(FROM_HERE, | ||
| 136 | + base::BlockingType::MAY_BLOCK); | ||
| 137 | + scoped_refptr<base::SequencedTaskRunner> task_runner = params->task_runner; | ||
| 138 | + | ||
| 139 | + const auto &device_node = params->device_info->device_node(); | ||
| 140 | + base::FilePath device_path(device_node); | ||
| 141 | + int flags = | ||
| 142 | + base::File::FLAG_OPEN | base::File::FLAG_READ | base::File::FLAG_WRITE; | ||
| 143 | + base::File device_file(device_path, flags); | ||
| 144 | + if (!device_file.IsValid()) { | ||
| 145 | + HID_LOG(EVENT) << "Failed to open '" << device_node << "': " | ||
| 146 | + << base::File::ErrorToString(device_file.error_details()); | ||
| 147 | + task_runner->PostTask(FROM_HERE, base::BindOnce(std::move(params->callback), nullptr)); | ||
| 148 | + return; | ||
| 149 | + } | ||
| 150 | + if (!terrible_ping_kludge(device_file.GetPlatformFile(), device_node)) { | ||
| 151 | + HID_LOG(EVENT) << "Failed to ping " << device_node; | ||
| 152 | + task_runner->PostTask(FROM_HERE, base::BindOnce(std::move(params->callback), nullptr)); | ||
| 153 | + return; | ||
| 154 | + } | ||
| 155 | + params->fd.reset(device_file.TakePlatformFile()); | ||
| 156 | + FinishOpen(std::move(params)); | ||
| 157 | +} | ||
| 158 | + | ||
| 159 | +// HID report descriptor for U2F interface. Copied from: | ||
| 160 | +// https://chromium.googlesource.com/chromiumos/platform2/+/c6c7e4e54fce11932fedaa3ea10236bf75d85a2b%5E%21/u2fd/u2fhid.cc | ||
| 161 | +// Apparently Chromium wants to see these bytes, but OpenBSD fido(4) | ||
| 162 | +// devices prohibit USB_GET_REPORT_DESC ioctl that could be used to | ||
| 163 | +// get the bytes from the USB device. | ||
| 164 | +constexpr uint8_t kU2fReportDesc[] = { | ||
| 165 | + 0x06, 0xD0, 0xF1, /* Usage Page (FIDO Alliance), FIDO_USAGE_PAGE */ | ||
| 166 | + 0x09, 0x01, /* Usage (U2F HID Auth. Device) FIDO_USAGE_U2FHID */ | ||
| 167 | + 0xA1, 0x01, /* Collection (Application), HID_APPLICATION */ | ||
| 168 | + 0x09, 0x20, /* Usage (Input Report Data), FIDO_USAGE_DATA_IN */ | ||
| 169 | + 0x15, 0x00, /* Logical Minimum (0) */ | ||
| 170 | + 0x26, 0xFF, 0x00, /* Logical Maximum (255) */ | ||
| 171 | + 0x75, 0x08, /* Report Size (8) */ | ||
| 172 | + 0x95, 0x40, /* Report Count (64), HID_INPUT_REPORT_BYTES */ | ||
| 173 | + 0x81, 0x02, /* Input (Data, Var, Abs), Usage */ | ||
| 174 | + 0x09, 0x21, /* Usage (Output Report Data), FIDO_USAGE_DATA_OUT */ | ||
| 175 | + 0x15, 0x00, /* Logical Minimum (0) */ | ||
| 176 | + 0x26, 0xFF, 0x00, /* Logical Maximum (255) */ | ||
| 177 | + 0x75, 0x08, /* Report Size (8) */ | ||
| 178 | + 0x95, 0x40, /* Report Count (64), HID_OUTPUT_REPORT_BYTES */ | ||
| 179 | + 0x91, 0x02, /* Output (Data, Var, Abs), Usage */ | ||
| 180 | + 0xC0 /* End Collection */ | ||
| 181 | +}; | ||
| 182 | + | ||
| 183 | +} // namespace | ||
| 184 | + | ||
| 185 | +class HidServiceFido::BlockingTaskHelper { | ||
| 186 | +public: | ||
| 187 | + BlockingTaskHelper(base::WeakPtr<HidServiceFido> service) | ||
| 188 | + : service_(std::move(service)), | ||
| 189 | + task_runner_(base::ThreadTaskRunnerHandle::Get()) { | ||
| 190 | + DETACH_FROM_SEQUENCE(sequence_checker_); | ||
| 191 | + } | ||
| 192 | + | ||
| 193 | + BlockingTaskHelper(const BlockingTaskHelper&) = delete; | ||
| 194 | + BlockingTaskHelper& operator=(const BlockingTaskHelper&) = delete; | ||
| 195 | + | ||
| 196 | + ~BlockingTaskHelper() = default; | ||
| 197 | + | ||
| 198 | + void Start() { | ||
| 199 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 200 | + base::ScopedBlockingCall scoped_blocking_call( | ||
| 201 | + FROM_HERE, base::BlockingType::MAY_BLOCK); | ||
| 202 | + | ||
| 203 | + fido_dev_info_t *devlist = NULL; | ||
| 204 | + fido_dev_t *dev = NULL; | ||
| 205 | + size_t devlist_len = 0, i; | ||
| 206 | + const char *path; | ||
| 207 | + int r; | ||
| 208 | + const int MAX_FIDO_DEVICES = 256; | ||
| 209 | + | ||
| 210 | + if ((devlist = fido_dev_info_new(MAX_FIDO_DEVICES)) == NULL) { | ||
| 211 | + HID_LOG(ERROR) << "fido_dev_info_new failed"; | ||
| 212 | + goto out; | ||
| 213 | + } | ||
| 214 | + if ((r = fido_dev_info_manifest(devlist, MAX_FIDO_DEVICES, &devlist_len)) != | ||
| 215 | + FIDO_OK) { | ||
| 216 | + HID_LOG(ERROR) << "fido_dev_info_manifest: " << fido_strerr(r); | ||
| 217 | + goto out; | ||
| 218 | + } | ||
| 219 | + | ||
| 220 | + HID_LOG(EVENT) << "fido_dev_info_manifest found " << devlist_len | ||
| 221 | + << " device(s)"; | ||
| 222 | + | ||
| 223 | + for (i = 0; i < devlist_len; i++) { | ||
| 224 | + const fido_dev_info_t *di = fido_dev_info_ptr(devlist, i); | ||
| 225 | + if (di == NULL) { | ||
| 226 | + HID_LOG(ERROR) << "fido_dev_info_ptr " << i << " failed"; | ||
| 227 | + continue; | ||
| 228 | + } | ||
| 229 | + if ((path = fido_dev_info_path(di)) == NULL) { | ||
| 230 | + HID_LOG(ERROR) << "fido_dev_info_path " << i << " failed"; | ||
| 231 | + continue; | ||
| 232 | + } | ||
| 233 | + HID_LOG(EVENT) << "trying device " << i << ": " << path; | ||
| 234 | + if ((dev = fido_dev_new()) == NULL) { | ||
| 235 | + HID_LOG(ERROR) << "fido_dev_new failed"; | ||
| 236 | + continue; | ||
| 237 | + } | ||
| 238 | + if ((r = fido_dev_open(dev, path)) != FIDO_OK) { | ||
| 239 | + HID_LOG(ERROR) << "fido_dev_open failed " << path; | ||
| 240 | + fido_dev_free(&dev); | ||
| 241 | + continue; | ||
| 242 | + } | ||
| 243 | + OnDeviceAdded(di); | ||
| 244 | + fido_dev_close(dev); | ||
| 245 | + fido_dev_free(&dev); | ||
| 246 | + } | ||
| 247 | + | ||
| 248 | + out: | ||
| 249 | + if (devlist != NULL) | ||
| 250 | + fido_dev_info_free(&devlist, MAX_FIDO_DEVICES); | ||
| 251 | + | ||
| 252 | + task_runner_->PostTask( | ||
| 253 | + FROM_HERE, | ||
| 254 | + base::BindOnce(&HidServiceFido::FirstEnumerationComplete, service_)); | ||
| 255 | + } | ||
| 256 | + | ||
| 257 | + void OnDeviceAdded(const fido_dev_info_t *di) { | ||
| 258 | + auto null_as_empty = [](const char *r) -> std::string { | ||
| 259 | + return (r != nullptr) ? r : ""; | ||
| 260 | + }; | ||
| 261 | + std::string device_node(null_as_empty(fido_dev_info_path(di))); | ||
| 262 | + std::vector<uint8_t> report_descriptor( | ||
| 263 | + kU2fReportDesc, kU2fReportDesc + sizeof(kU2fReportDesc)); | ||
| 264 | + scoped_refptr<HidDeviceInfo> device_info(new HidDeviceInfo( | ||
| 265 | + device_node, /*physical_device_id=*/"", fido_dev_info_vendor(di), | ||
| 266 | + fido_dev_info_product(di), null_as_empty(fido_dev_info_product_string(di)), | ||
| 267 | + null_as_empty(fido_dev_info_manufacturer_string(di)), | ||
| 268 | + device::mojom::HidBusType::kHIDBusTypeUSB, report_descriptor, | ||
| 269 | + device_node)); | ||
| 270 | + | ||
| 271 | + task_runner_->PostTask(FROM_HERE, base::BindOnce(&HidServiceFido::AddDevice, | ||
| 272 | + service_, device_info)); | ||
| 273 | + } | ||
| 274 | + | ||
| 275 | + void OnDeviceRemoved(std::string device_node) { | ||
| 276 | + base::ScopedBlockingCall scoped_blocking_call( | ||
| 277 | + FROM_HERE, base::BlockingType::MAY_BLOCK); | ||
| 278 | + task_runner_->PostTask(FROM_HERE, base::BindOnce(&HidServiceFido::RemoveDevice, | ||
| 279 | + service_, device_node)); | ||
| 280 | + } | ||
| 281 | + | ||
| 282 | +private: | ||
| 283 | + SEQUENCE_CHECKER(sequence_checker_); | ||
| 284 | + | ||
| 285 | + // This weak pointer is only valid when checked on this task runner. | ||
| 286 | + base::WeakPtr<HidServiceFido> service_; | ||
| 287 | + scoped_refptr<base::SequencedTaskRunner> task_runner_; | ||
| 288 | +}; | ||
| 289 | + | ||
| 290 | +HidServiceFido::HidServiceFido() | ||
| 291 | + : task_runner_(base::ThreadTaskRunnerHandle::Get()), | ||
| 292 | + blocking_task_runner_( | ||
| 293 | + base::ThreadPool::CreateSequencedTaskRunner(kBlockingTaskTraits)), | ||
| 294 | + weak_factory_(this), helper_(std::make_unique<BlockingTaskHelper>( | ||
| 295 | + weak_factory_.GetWeakPtr())) { | ||
| 296 | + blocking_task_runner_->PostTask( | ||
| 297 | + FROM_HERE, | ||
| 298 | + base::BindOnce(&BlockingTaskHelper::Start, base::Unretained(helper_.get()))); | ||
| 299 | +} | ||
| 300 | + | ||
| 301 | +HidServiceFido::~HidServiceFido() { | ||
| 302 | + blocking_task_runner_->DeleteSoon(FROM_HERE, helper_.release()); | ||
| 303 | +} | ||
| 304 | + | ||
| 305 | +base::WeakPtr<HidService> HidServiceFido::GetWeakPtr() { | ||
| 306 | + return weak_factory_.GetWeakPtr(); | ||
| 307 | +} | ||
| 308 | + | ||
| 309 | +void HidServiceFido::Connect(const std::string &device_guid, | ||
| 310 | + bool allow_protected_reports, | ||
| 311 | + bool allow_fido_reports, | ||
| 312 | + ConnectCallback callback) { | ||
| 313 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 314 | + | ||
| 315 | + const auto &map_entry = devices().find(device_guid); | ||
| 316 | + if (map_entry == devices().end()) { | ||
| 317 | + base::ThreadTaskRunnerHandle::Get()->PostTask( | ||
| 318 | + FROM_HERE, base::BindOnce(std::move(callback), nullptr)); | ||
| 319 | + return; | ||
| 320 | + } | ||
| 321 | + | ||
| 322 | + scoped_refptr<HidDeviceInfo> device_info = map_entry->second; | ||
| 323 | + | ||
| 324 | + auto params = std::make_unique<ConnectParams>(device_info, std::move(callback)); | ||
| 325 | + | ||
| 326 | + scoped_refptr<base::SequencedTaskRunner> blocking_task_runner = | ||
| 327 | + params->blocking_task_runner; | ||
| 328 | + blocking_task_runner->PostTask( | ||
| 329 | + FROM_HERE, base::BindOnce(&OpenOnBlockingThread, std::move(params))); | ||
| 330 | +} | ||
| 331 | + | ||
| 332 | +} // namespace device | ||
diff --git a/www/chromium/patches/patch-services_device_hid_hid_service_fido_h b/www/chromium/patches/patch-services_device_hid_hid_service_fido_h new file mode 100644 index 0000000..f2c0442 --- /dev/null +++ b/www/chromium/patches/patch-services_device_hid_hid_service_fido_h | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | Index: services/device/hid/hid_service_fido.h | ||
| 2 | --- services/device/hid/hid_service_fido.h.orig | ||
| 3 | +++ services/device/hid/hid_service_fido.h | ||
| 4 | @@ -0,0 +1,43 @@ | ||
| 5 | +// Copyright 2020 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#ifndef SERVICE_DEVICE_HID_HID_SERVICE_FIDO_H_ | ||
| 10 | +#define SERVICE_DEVICE_HID_HID_SERVICE_FIDO_H_ | ||
| 11 | + | ||
| 12 | +#include <string> | ||
| 13 | + | ||
| 14 | +#include "base/memory/ref_counted.h" | ||
| 15 | +#include "base/memory/weak_ptr.h" | ||
| 16 | +#include "services/device/hid/hid_service.h" | ||
| 17 | + | ||
| 18 | +namespace device { | ||
| 19 | + | ||
| 20 | +class HidServiceFido : public HidService { | ||
| 21 | +public: | ||
| 22 | + HidServiceFido(); | ||
| 23 | + | ||
| 24 | + HidServiceFido(const HidServiceFido&) = delete; | ||
| 25 | + HidServiceFido& operator=(const HidServiceFido&) = delete; | ||
| 26 | + | ||
| 27 | + ~HidServiceFido() override; | ||
| 28 | + | ||
| 29 | + void Connect(const std::string &device_guid, | ||
| 30 | + bool allow_protected_reports, | ||
| 31 | + bool allow_fido_reports, | ||
| 32 | + ConnectCallback connect) override; | ||
| 33 | + base::WeakPtr<HidService> GetWeakPtr() override; | ||
| 34 | + | ||
| 35 | +private: | ||
| 36 | + class BlockingTaskHelper; | ||
| 37 | + const scoped_refptr<base::SequencedTaskRunner> task_runner_; | ||
| 38 | + const scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | ||
| 39 | + base::WeakPtrFactory<HidServiceFido> weak_factory_; | ||
| 40 | + // |helper_| lives on the sequence |blocking_task_runner_| posts to and holds | ||
| 41 | + // a weak reference back to the service that owns it. | ||
| 42 | + std::unique_ptr<BlockingTaskHelper> helper_; | ||
| 43 | +}; | ||
| 44 | + | ||
| 45 | +} // namespace device | ||
| 46 | + | ||
| 47 | +#endif // SERVICE_DEVICE_HID_HID_SERVICE_FIDO_H_ | ||
diff --git a/www/chromium/patches/patch-services_device_hid_hid_service_freebsd_cc b/www/chromium/patches/patch-services_device_hid_hid_service_freebsd_cc new file mode 100644 index 0000000..9995d2c --- /dev/null +++ b/www/chromium/patches/patch-services_device_hid_hid_service_freebsd_cc | |||
| @@ -0,0 +1,402 @@ | |||
| 1 | Index: services/device/hid/hid_service_freebsd.cc | ||
| 2 | --- services/device/hid/hid_service_freebsd.cc.orig | ||
| 3 | +++ services/device/hid/hid_service_freebsd.cc | ||
| 4 | @@ -0,0 +1,398 @@ | ||
| 5 | +// Copyright 2014 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#include "services/device/hid/hid_service_freebsd.h" | ||
| 10 | + | ||
| 11 | +#include <dev/usb/usb_ioctl.h> | ||
| 12 | +#include <stdint.h> | ||
| 13 | +#include <sys/socket.h> | ||
| 14 | +#include <sys/un.h> | ||
| 15 | + | ||
| 16 | +#include <set> | ||
| 17 | +#include <string> | ||
| 18 | +#include <vector> | ||
| 19 | + | ||
| 20 | +#include "base/bind.h" | ||
| 21 | +#include "base/files/file_descriptor_watcher_posix.h" | ||
| 22 | +#include "base/files/file_enumerator.h" | ||
| 23 | +#include "base/files/file_util.h" | ||
| 24 | +#include "base/files/file.h" | ||
| 25 | +#include "base/location.h" | ||
| 26 | +#include "base/logging.h" | ||
| 27 | +#include "base/posix/eintr_wrapper.h" | ||
| 28 | +#include "base/stl_util.h" | ||
| 29 | +#include "base/strings/pattern.h" | ||
| 30 | +#include "base/strings/stringprintf.h" | ||
| 31 | +#include "base/strings/sys_string_conversions.h" | ||
| 32 | +#include "base/strings/string_util.h" | ||
| 33 | +#include "base/strings/string_split.h" | ||
| 34 | +#include "base/task/post_task.h" | ||
| 35 | +#include "base/task/single_thread_task_runner.h" | ||
| 36 | +#include "base/task/thread_pool.h" | ||
| 37 | +#include "base/threading/scoped_blocking_call.h" | ||
| 38 | +#include "base/threading/thread_task_runner_handle.h" | ||
| 39 | +#include "base/threading/thread_restrictions.h" | ||
| 40 | +#include "components/device_event_log/device_event_log.h" | ||
| 41 | +#include "services/device/hid/hid_connection_freebsd.h" | ||
| 42 | + | ||
| 43 | +const int kMaxPermissionChecks = 5; | ||
| 44 | + | ||
| 45 | +namespace device { | ||
| 46 | + | ||
| 47 | +struct HidServiceFreeBSD::ConnectParams { | ||
| 48 | + ConnectParams(scoped_refptr<HidDeviceInfo> device_info, | ||
| 49 | + bool allow_protected_reports, | ||
| 50 | + bool allow_fido_reports, | ||
| 51 | + ConnectCallback callback) | ||
| 52 | + : device_info(std::move(device_info)), | ||
| 53 | + allow_protected_reports(allow_protected_reports), | ||
| 54 | + allow_fido_reports(allow_fido_reports), | ||
| 55 | + callback(std::move(callback)), | ||
| 56 | + task_runner(base::ThreadTaskRunnerHandle::Get()), | ||
| 57 | + blocking_task_runner( | ||
| 58 | + base::ThreadPool::CreateSequencedTaskRunner(kBlockingTaskTraits)) {} | ||
| 59 | + ~ConnectParams() {} | ||
| 60 | + | ||
| 61 | + scoped_refptr<HidDeviceInfo> device_info; | ||
| 62 | + bool allow_protected_reports; | ||
| 63 | + bool allow_fido_reports; | ||
| 64 | + ConnectCallback callback; | ||
| 65 | + scoped_refptr<base::SequencedTaskRunner> task_runner; | ||
| 66 | + scoped_refptr<base::SequencedTaskRunner> blocking_task_runner; | ||
| 67 | + base::ScopedFD fd; | ||
| 68 | +}; | ||
| 69 | + | ||
| 70 | +class HidServiceFreeBSD::BlockingTaskRunnerHelper { | ||
| 71 | + public: | ||
| 72 | + BlockingTaskRunnerHelper(base::WeakPtr<HidServiceFreeBSD> service) | ||
| 73 | + : service_(std::move(service)), | ||
| 74 | + task_runner_(base::ThreadTaskRunnerHandle::Get()) { | ||
| 75 | + DETACH_FROM_SEQUENCE(sequence_checker_); | ||
| 76 | + | ||
| 77 | + timer_.reset(new base::RepeatingTimer()); | ||
| 78 | + devd_buffer_ = new net::IOBufferWithSize(1024); | ||
| 79 | + } | ||
| 80 | + | ||
| 81 | + BlockingTaskRunnerHelper(const BlockingTaskRunnerHelper&) = delete; | ||
| 82 | + BlockingTaskRunnerHelper& operator=(const BlockingTaskRunnerHelper&) = delete; | ||
| 83 | + | ||
| 84 | + ~BlockingTaskRunnerHelper() { | ||
| 85 | + } | ||
| 86 | + | ||
| 87 | + void Start() { | ||
| 88 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 89 | + | ||
| 90 | + const base::FilePath kDevRoot("/dev"); | ||
| 91 | + const std::string kUHIDPattern("/dev/uhid*"); | ||
| 92 | + | ||
| 93 | + base::FileEnumerator enumerator(kDevRoot, false, base::FileEnumerator::FILES); | ||
| 94 | + do { | ||
| 95 | + const base::FilePath next_device_path(enumerator.Next()); | ||
| 96 | + const std::string next_device = next_device_path.value(); | ||
| 97 | + if (next_device.empty()) | ||
| 98 | + break; | ||
| 99 | + | ||
| 100 | + if (base::MatchPattern(next_device, kUHIDPattern)) | ||
| 101 | + OnDeviceAdded(next_device.substr(5)); | ||
| 102 | + } while (true); | ||
| 103 | + | ||
| 104 | + SetupDevdMonitor(); | ||
| 105 | + | ||
| 106 | + task_runner_->PostTask( | ||
| 107 | + FROM_HERE, | ||
| 108 | + base::BindOnce(&HidServiceFreeBSD::FirstEnumerationComplete, service_)); | ||
| 109 | + } | ||
| 110 | + | ||
| 111 | + bool HaveReadWritePermissions(std::string device_id) { | ||
| 112 | + std::string device_node = "/dev/" + device_id; | ||
| 113 | + base::internal::AssertBlockingAllowed(); | ||
| 114 | + | ||
| 115 | + base::FilePath device_path(device_node); | ||
| 116 | + base::File device_file; | ||
| 117 | + int flags = | ||
| 118 | + base::File::FLAG_OPEN | base::File::FLAG_READ | base::File::FLAG_WRITE; | ||
| 119 | + device_file.Initialize(device_path, flags); | ||
| 120 | + if (!device_file.IsValid()) | ||
| 121 | + return false; | ||
| 122 | + | ||
| 123 | + return true; | ||
| 124 | + } | ||
| 125 | + | ||
| 126 | + void OnDeviceAdded(std::string device_id) { | ||
| 127 | + base::ScopedBlockingCall scoped_blocking_call( | ||
| 128 | + FROM_HERE, base::BlockingType::MAY_BLOCK); | ||
| 129 | + std::string device_node = "/dev/" + device_id; | ||
| 130 | + uint16_t vendor_id = 0xffff; | ||
| 131 | + uint16_t product_id = 0xffff; | ||
| 132 | + std::string product_name = ""; | ||
| 133 | + std::string serial_number = ""; | ||
| 134 | + | ||
| 135 | + std::vector<uint8_t> report_descriptor; | ||
| 136 | + | ||
| 137 | + base::internal::AssertBlockingAllowed(); | ||
| 138 | + | ||
| 139 | + base::FilePath device_path(device_node); | ||
| 140 | + base::File device_file; | ||
| 141 | + int flags = | ||
| 142 | + base::File::FLAG_OPEN | base::File::FLAG_READ | base::File::FLAG_WRITE; | ||
| 143 | + device_file.Initialize(device_path, flags); | ||
| 144 | + if (!device_file.IsValid()) { | ||
| 145 | + HID_LOG(ERROR) << "Failed to open '" << device_node | ||
| 146 | + << "': " | ||
| 147 | + << base::File::ErrorToString(device_file.error_details()); | ||
| 148 | + return; | ||
| 149 | + } | ||
| 150 | + | ||
| 151 | + base::ScopedFD fd; | ||
| 152 | + fd.reset(device_file.TakePlatformFile()); | ||
| 153 | + | ||
| 154 | + struct usb_gen_descriptor ugd; | ||
| 155 | + ugd.ugd_data = NULL; | ||
| 156 | + ugd.ugd_maxlen = 0xffff; | ||
| 157 | + int result = HANDLE_EINTR( | ||
| 158 | + ioctl(fd.get(), USB_GET_REPORT_DESC, &ugd)); | ||
| 159 | + | ||
| 160 | + if (result < 0) { | ||
| 161 | + HID_LOG(ERROR) << "Failed to get report descriptor size"; | ||
| 162 | + return; | ||
| 163 | + } | ||
| 164 | + | ||
| 165 | + report_descriptor.resize(ugd.ugd_actlen); | ||
| 166 | + | ||
| 167 | + ugd.ugd_data = report_descriptor.data(); | ||
| 168 | + ugd.ugd_maxlen = ugd.ugd_actlen; | ||
| 169 | + result = HANDLE_EINTR( | ||
| 170 | + ioctl(fd.get(), USB_GET_REPORT_DESC, &ugd)); | ||
| 171 | + | ||
| 172 | + if (result < 0) { | ||
| 173 | + HID_LOG(ERROR) << "Failed to get report descriptor"; | ||
| 174 | + return; | ||
| 175 | + } | ||
| 176 | + | ||
| 177 | + scoped_refptr<HidDeviceInfo> device_info(new HidDeviceInfo( | ||
| 178 | + device_id, | ||
| 179 | + /*physical_device_id*/"", | ||
| 180 | + vendor_id, | ||
| 181 | + product_id, | ||
| 182 | + product_name, | ||
| 183 | + serial_number, | ||
| 184 | + device::mojom::HidBusType::kHIDBusTypeUSB, | ||
| 185 | + report_descriptor, | ||
| 186 | + device_node)); | ||
| 187 | + | ||
| 188 | + task_runner_->PostTask(FROM_HERE, base::BindOnce(&HidServiceFreeBSD::AddDevice, | ||
| 189 | + service_, device_info)); | ||
| 190 | + } | ||
| 191 | + | ||
| 192 | + void OnDeviceRemoved(std::string device_id) { | ||
| 193 | + base::ScopedBlockingCall scoped_blocking_call( | ||
| 194 | + FROM_HERE, base::BlockingType::MAY_BLOCK); | ||
| 195 | + task_runner_->PostTask( | ||
| 196 | + FROM_HERE, base::BindOnce(&HidServiceFreeBSD::RemoveDevice, service_, | ||
| 197 | + device_id)); | ||
| 198 | + } | ||
| 199 | + | ||
| 200 | + private: | ||
| 201 | + | ||
| 202 | + void CheckPendingPermissionChange() { | ||
| 203 | + base::internal::AssertBlockingAllowed(); | ||
| 204 | + std::map<std::string, int>::iterator it; | ||
| 205 | + for (it = permissions_checks_attempts_.begin(); it != permissions_checks_attempts_.end();) { | ||
| 206 | + std::string device_name = it->first; | ||
| 207 | + bool keep = true; | ||
| 208 | + if (HaveReadWritePermissions(device_name)) { | ||
| 209 | + OnDeviceAdded(device_name); | ||
| 210 | + keep = false; | ||
| 211 | + } | ||
| 212 | + else if (it->second-- <= 0) { | ||
| 213 | + HID_LOG(ERROR) << "Still don't have write permissions to '" << device_name | ||
| 214 | + << "' after " << kMaxPermissionChecks << " attempts"; | ||
| 215 | + keep = false; | ||
| 216 | + } | ||
| 217 | + | ||
| 218 | + if (keep) | ||
| 219 | + ++it; | ||
| 220 | + else | ||
| 221 | + permissions_checks_attempts_.erase(it++); | ||
| 222 | + } | ||
| 223 | + | ||
| 224 | + if (permissions_checks_attempts_.empty()) | ||
| 225 | + timer_->Stop(); | ||
| 226 | + } | ||
| 227 | + | ||
| 228 | + void SetupDevdMonitor() { | ||
| 229 | + base::internal::AssertBlockingAllowed(); | ||
| 230 | + | ||
| 231 | + int devd_fd = socket(AF_UNIX, SOCK_SEQPACKET, 0); | ||
| 232 | + if (devd_fd < 0) | ||
| 233 | + return; | ||
| 234 | + | ||
| 235 | + struct sockaddr_un sa; | ||
| 236 | + | ||
| 237 | + sa.sun_family = AF_UNIX; | ||
| 238 | + strlcpy(sa.sun_path, "/var/run/devd.seqpacket.pipe", sizeof(sa.sun_path)); | ||
| 239 | + if (connect(devd_fd, (struct sockaddr *) &sa, sizeof(sa)) < 0) { | ||
| 240 | + close(devd_fd); | ||
| 241 | + return; | ||
| 242 | + } | ||
| 243 | + | ||
| 244 | + devd_fd_.reset(devd_fd); | ||
| 245 | + file_watcher_ = base::FileDescriptorWatcher::WatchReadable( | ||
| 246 | + devd_fd_.get(), base::BindRepeating(&BlockingTaskRunnerHelper::OnDevdMessageCanBeRead, | ||
| 247 | + base::Unretained(this))); | ||
| 248 | + } | ||
| 249 | + | ||
| 250 | + void OnDevdMessageCanBeRead() { | ||
| 251 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 252 | + ssize_t bytes_read = HANDLE_EINTR(recv(devd_fd_.get(), devd_buffer_->data(), | ||
| 253 | + devd_buffer_->size() - 1, MSG_WAITALL)); | ||
| 254 | + if (bytes_read < 0) { | ||
| 255 | + if (errno != EAGAIN) { | ||
| 256 | + HID_LOG(ERROR) << "Read failed"; | ||
| 257 | + file_watcher_.reset(); | ||
| 258 | + } | ||
| 259 | + return; | ||
| 260 | + } | ||
| 261 | + | ||
| 262 | + devd_buffer_->data()[bytes_read] = 0; | ||
| 263 | + char *data = devd_buffer_->data(); | ||
| 264 | + // It may take some time for devd to change permissions | ||
| 265 | + // on /dev/uhidX node. So do not fail immediately if | ||
| 266 | + // open fail. Retry each second for kMaxPermissionChecks | ||
| 267 | + // times before giving up entirely | ||
| 268 | + if (base::StartsWith(data, "+uhid", base::CompareCase::SENSITIVE)) { | ||
| 269 | + std::vector<std::string> parts = base::SplitString( | ||
| 270 | + data, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | ||
| 271 | + if (!parts.empty()) { | ||
| 272 | + std::string device_name = parts[0].substr(1); // skip '+' | ||
| 273 | + if (HaveReadWritePermissions(device_name)) | ||
| 274 | + OnDeviceAdded(parts[0].substr(1)); | ||
| 275 | + else { | ||
| 276 | + // Do not re-add to checks | ||
| 277 | + if (permissions_checks_attempts_.find(device_name) == permissions_checks_attempts_.end()) { | ||
| 278 | + permissions_checks_attempts_.insert(std::pair<std::string, int>(device_name, kMaxPermissionChecks)); | ||
| 279 | + timer_->Start(FROM_HERE, base::Seconds(1), | ||
| 280 | + this, &BlockingTaskRunnerHelper::CheckPendingPermissionChange); | ||
| 281 | + } | ||
| 282 | + } | ||
| 283 | + } | ||
| 284 | + } | ||
| 285 | + | ||
| 286 | + if (base::StartsWith(data, "-uhid", base::CompareCase::SENSITIVE)) { | ||
| 287 | + std::vector<std::string> parts = base::SplitString( | ||
| 288 | + data, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | ||
| 289 | + if (!parts.empty()) { | ||
| 290 | + std::string device_name = parts[0].substr(1); // skip '-' | ||
| 291 | + auto it = permissions_checks_attempts_.find(device_name); | ||
| 292 | + if (it != permissions_checks_attempts_.end()) { | ||
| 293 | + permissions_checks_attempts_.erase(it); | ||
| 294 | + if (permissions_checks_attempts_.empty()) | ||
| 295 | + timer_->Stop(); | ||
| 296 | + } | ||
| 297 | + OnDeviceRemoved(parts[0].substr(1)); | ||
| 298 | + } | ||
| 299 | + } | ||
| 300 | + } | ||
| 301 | + | ||
| 302 | + SEQUENCE_CHECKER(sequence_checker_); | ||
| 303 | + | ||
| 304 | + // This weak pointer is only valid when checked on this task runner. | ||
| 305 | + base::WeakPtr<HidServiceFreeBSD> service_; | ||
| 306 | + scoped_refptr<base::SequencedTaskRunner> task_runner_; | ||
| 307 | + std::unique_ptr<base::FileDescriptorWatcher::Controller> file_watcher_; | ||
| 308 | + std::unique_ptr<base::RepeatingTimer> timer_; | ||
| 309 | + base::ScopedFD devd_fd_; | ||
| 310 | + scoped_refptr<net::IOBufferWithSize> devd_buffer_; | ||
| 311 | + std::map<std::string, int> permissions_checks_attempts_; | ||
| 312 | +}; | ||
| 313 | + | ||
| 314 | +HidServiceFreeBSD::HidServiceFreeBSD() | ||
| 315 | + : blocking_task_runner_( | ||
| 316 | + base::ThreadPool::CreateSequencedTaskRunner(kBlockingTaskTraits)), | ||
| 317 | + helper_(nullptr, base::OnTaskRunnerDeleter(blocking_task_runner_)) { | ||
| 318 | + helper_.reset(new BlockingTaskRunnerHelper(weak_factory_.GetWeakPtr())); | ||
| 319 | + blocking_task_runner_->PostTask( | ||
| 320 | + FROM_HERE, | ||
| 321 | + base::BindOnce(&BlockingTaskRunnerHelper::Start, base::Unretained(helper_.get()))); | ||
| 322 | +} | ||
| 323 | + | ||
| 324 | +HidServiceFreeBSD::~HidServiceFreeBSD() { | ||
| 325 | + blocking_task_runner_->DeleteSoon(FROM_HERE, helper_.release()); | ||
| 326 | +} | ||
| 327 | + | ||
| 328 | +base::WeakPtr<HidService> HidServiceFreeBSD::GetWeakPtr() { | ||
| 329 | + return weak_factory_.GetWeakPtr(); | ||
| 330 | +} | ||
| 331 | + | ||
| 332 | +// static | ||
| 333 | +void HidServiceFreeBSD::OpenOnBlockingThread( | ||
| 334 | + std::unique_ptr<ConnectParams> params) { | ||
| 335 | + base::ScopedBlockingCall scoped_blocking_call( | ||
| 336 | + FROM_HERE, base::BlockingType::MAY_BLOCK); | ||
| 337 | + scoped_refptr<base::SequencedTaskRunner> task_runner = params->task_runner; | ||
| 338 | + | ||
| 339 | + base::FilePath device_path(params->device_info->device_node()); | ||
| 340 | + base::File device_file; | ||
| 341 | + int flags = | ||
| 342 | + base::File::FLAG_OPEN | base::File::FLAG_READ | base::File::FLAG_WRITE; | ||
| 343 | + device_file.Initialize(device_path, flags); | ||
| 344 | + if (!device_file.IsValid()) { | ||
| 345 | + HID_LOG(EVENT) << "Failed to open '" << params->device_info->device_node() | ||
| 346 | + << "': " | ||
| 347 | + << base::File::ErrorToString(device_file.error_details()); | ||
| 348 | + task_runner->PostTask(FROM_HERE, | ||
| 349 | + base::BindOnce(std::move(params->callback), nullptr)); | ||
| 350 | + return; | ||
| 351 | + } | ||
| 352 | + params->fd.reset(device_file.TakePlatformFile()); | ||
| 353 | + task_runner->PostTask(FROM_HERE, base::BindOnce(&HidServiceFreeBSD::FinishOpen, | ||
| 354 | + std::move(params))); | ||
| 355 | +} | ||
| 356 | + | ||
| 357 | +void HidServiceFreeBSD::Connect(const std::string& device_guid, | ||
| 358 | + bool allow_protected_reports, | ||
| 359 | + bool allow_fido_reports, | ||
| 360 | + ConnectCallback callback) { | ||
| 361 | + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); | ||
| 362 | + | ||
| 363 | + const auto& map_entry = devices().find(device_guid); | ||
| 364 | + if (map_entry == devices().end()) { | ||
| 365 | + base::ThreadTaskRunnerHandle::Get()->PostTask( | ||
| 366 | + FROM_HERE, base::BindOnce(std::move(callback), nullptr)); | ||
| 367 | + return; | ||
| 368 | + } | ||
| 369 | + | ||
| 370 | + scoped_refptr<HidDeviceInfo> device_info = map_entry->second; | ||
| 371 | + | ||
| 372 | + auto params = std::make_unique<ConnectParams>(device_info, | ||
| 373 | + allow_protected_reports, | ||
| 374 | + allow_fido_reports, | ||
| 375 | + std::move(callback)); | ||
| 376 | + scoped_refptr<base::SequencedTaskRunner> blocking_task_runner = | ||
| 377 | + params->blocking_task_runner; | ||
| 378 | + | ||
| 379 | + blocking_task_runner->PostTask( | ||
| 380 | + FROM_HERE, base::BindOnce(&HidServiceFreeBSD::OpenOnBlockingThread, | ||
| 381 | + std::move(params))); | ||
| 382 | +} | ||
| 383 | + | ||
| 384 | +// static | ||
| 385 | +void HidServiceFreeBSD::FinishOpen(std::unique_ptr<ConnectParams> params) { | ||
| 386 | + DCHECK(params->fd.is_valid()); | ||
| 387 | + | ||
| 388 | + if (!base::SetNonBlocking(params->fd.get())) { | ||
| 389 | + HID_PLOG(ERROR) << "Failed to set the non-blocking flag on the device fd"; | ||
| 390 | + std::move(params->callback).Run(nullptr); | ||
| 391 | + } | ||
| 392 | + | ||
| 393 | + std::move(params->callback).Run(base::MakeRefCounted<HidConnectionFreeBSD>( | ||
| 394 | + std::move(params->device_info), | ||
| 395 | + std::move(params->fd), | ||
| 396 | + std::move(params->blocking_task_runner), | ||
| 397 | + params->allow_protected_reports, | ||
| 398 | + params->allow_fido_reports | ||
| 399 | + )); | ||
| 400 | +} | ||
| 401 | + | ||
| 402 | +} // namespace device | ||
diff --git a/www/chromium/patches/patch-services_device_hid_hid_service_freebsd_h b/www/chromium/patches/patch-services_device_hid_hid_service_freebsd_h new file mode 100644 index 0000000..25b1c1f --- /dev/null +++ b/www/chromium/patches/patch-services_device_hid_hid_service_freebsd_h | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | Index: services/device/hid/hid_service_freebsd.h | ||
| 2 | --- services/device/hid/hid_service_freebsd.h.orig | ||
| 3 | +++ services/device/hid/hid_service_freebsd.h | ||
| 4 | @@ -0,0 +1,49 @@ | ||
| 5 | +// Copyright 2014 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#ifndef DEVICE_HID_HID_SERVICE_FREEBSD_H_ | ||
| 10 | +#define DEVICE_HID_HID_SERVICE_FREEBSD_H_ | ||
| 11 | + | ||
| 12 | +#include <string> | ||
| 13 | + | ||
| 14 | +#include "base/memory/ref_counted.h" | ||
| 15 | +#include "base/memory/weak_ptr.h" | ||
| 16 | +#include "base/timer/timer.h" | ||
| 17 | +#include "services/device/hid/hid_service.h" | ||
| 18 | +#include "net/base/io_buffer.h" | ||
| 19 | + | ||
| 20 | +namespace device { | ||
| 21 | + | ||
| 22 | +class HidServiceFreeBSD : public HidService { | ||
| 23 | + public: | ||
| 24 | + HidServiceFreeBSD(); | ||
| 25 | + | ||
| 26 | + HidServiceFreeBSD(const HidServiceFreeBSD&) = delete; | ||
| 27 | + HidServiceFreeBSD& operator=(const HidServiceFreeBSD&) = delete; | ||
| 28 | + | ||
| 29 | + ~HidServiceFreeBSD() override; | ||
| 30 | + | ||
| 31 | + void Connect(const std::string& device_guid, | ||
| 32 | + bool allow_protected_reports, | ||
| 33 | + bool allow_fido_reports, | ||
| 34 | + ConnectCallback connect) override; | ||
| 35 | + base::WeakPtr<HidService> GetWeakPtr() override; | ||
| 36 | + | ||
| 37 | + private: | ||
| 38 | + struct ConnectParams; | ||
| 39 | + class BlockingTaskRunnerHelper; | ||
| 40 | + | ||
| 41 | + static void OpenOnBlockingThread(std::unique_ptr<ConnectParams> params); | ||
| 42 | + static void FinishOpen(std::unique_ptr<ConnectParams> params); | ||
| 43 | + | ||
| 44 | + const scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | ||
| 45 | + // |helper_| lives on the sequence |blocking_task_runner_| posts to and holds | ||
| 46 | + // a weak reference back to the service that owns it. | ||
| 47 | + std::unique_ptr<BlockingTaskRunnerHelper, base::OnTaskRunnerDeleter> helper_; | ||
| 48 | + base::WeakPtrFactory<HidServiceFreeBSD> weak_factory_{this}; | ||
| 49 | +}; | ||
| 50 | + | ||
| 51 | +} // namespace device | ||
| 52 | + | ||
| 53 | +#endif // DEVICE_HID_HID_SERVICE_FREEBSD_H_ | ||
diff --git a/www/chromium/patches/patch-services_device_serial_BUILD_gn b/www/chromium/patches/patch-services_device_serial_BUILD_gn new file mode 100644 index 0000000..945cbef --- /dev/null +++ b/www/chromium/patches/patch-services_device_serial_BUILD_gn | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: services/device/serial/BUILD.gn | ||
| 2 | --- services/device/serial/BUILD.gn.orig | ||
| 3 | +++ services/device/serial/BUILD.gn | ||
| 4 | @@ -83,6 +83,13 @@ if (is_win || ((is_linux || is_chromeos) && use_udev) | ||
| 5 | ] | ||
| 6 | } | ||
| 7 | |||
| 8 | + if (is_bsd) { | ||
| 9 | + sources -= [ | ||
| 10 | + "serial_device_enumerator_linux.cc", | ||
| 11 | + "serial_device_enumerator_linux.h" | ||
| 12 | + ] | ||
| 13 | + } | ||
| 14 | + | ||
| 15 | if (use_udev) { | ||
| 16 | deps += [ "//device/udev_linux" ] | ||
| 17 | } | ||
diff --git a/www/chromium/patches/patch-services_device_serial_serial_device_enumerator_cc b/www/chromium/patches/patch-services_device_serial_serial_device_enumerator_cc new file mode 100644 index 0000000..a74e4ae --- /dev/null +++ b/www/chromium/patches/patch-services_device_serial_serial_device_enumerator_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: services/device/serial/serial_device_enumerator.cc | ||
| 2 | --- services/device/serial/serial_device_enumerator.cc.orig | ||
| 3 | +++ services/device/serial/serial_device_enumerator.cc | ||
| 4 | @@ -10,7 +10,7 @@ | ||
| 5 | #include "build/build_config.h" | ||
| 6 | #include "components/device_event_log/device_event_log.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "services/device/serial/serial_device_enumerator_linux.h" | ||
| 11 | #elif BUILDFLAG(IS_MAC) | ||
| 12 | #include "services/device/serial/serial_device_enumerator_mac.h" | ||
| 13 | @@ -23,7 +23,7 @@ namespace device { | ||
| 14 | // static | ||
| 15 | std::unique_ptr<SerialDeviceEnumerator> SerialDeviceEnumerator::Create( | ||
| 16 | scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | return SerialDeviceEnumeratorLinux::Create(); | ||
| 20 | #elif BUILDFLAG(IS_MAC) | ||
| 21 | return std::make_unique<SerialDeviceEnumeratorMac>(); | ||
diff --git a/www/chromium/patches/patch-services_device_serial_serial_io_handler_posix_cc b/www/chromium/patches/patch-services_device_serial_serial_io_handler_posix_cc new file mode 100644 index 0000000..3ade504 --- /dev/null +++ b/www/chromium/patches/patch-services_device_serial_serial_io_handler_posix_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: services/device/serial/serial_io_handler_posix.cc | ||
| 2 | --- services/device/serial/serial_io_handler_posix.cc.orig | ||
| 3 | +++ services/device/serial/serial_io_handler_posix.cc | ||
| 4 | @@ -68,7 +68,7 @@ bool BitrateToSpeedConstant(int bitrate, speed_t* spee | ||
| 5 | BITRATE_TO_SPEED_CASE(9600) | ||
| 6 | BITRATE_TO_SPEED_CASE(19200) | ||
| 7 | BITRATE_TO_SPEED_CASE(38400) | ||
| 8 | -#if !BUILDFLAG(IS_MAC) | ||
| 9 | +#if !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) | ||
| 10 | BITRATE_TO_SPEED_CASE(57600) | ||
| 11 | BITRATE_TO_SPEED_CASE(115200) | ||
| 12 | BITRATE_TO_SPEED_CASE(230400) | ||
diff --git a/www/chromium/patches/patch-services_device_time_zone_monitor_time_zone_monitor_linux_cc b/www/chromium/patches/patch-services_device_time_zone_monitor_time_zone_monitor_linux_cc new file mode 100644 index 0000000..9ed358c --- /dev/null +++ b/www/chromium/patches/patch-services_device_time_zone_monitor_time_zone_monitor_linux_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: services/device/time_zone_monitor/time_zone_monitor_linux.cc | ||
| 2 | --- services/device/time_zone_monitor/time_zone_monitor_linux.cc.orig | ||
| 3 | +++ services/device/time_zone_monitor/time_zone_monitor_linux.cc | ||
| 4 | @@ -137,7 +137,11 @@ class TimeZoneMonitorLinuxImpl | ||
| 5 | // false positives are harmless, assuming the false positive rate is | ||
| 6 | // reasonable. | ||
| 7 | const char* const kFilesToWatch[] = { | ||
| 8 | +#if defined(OS_BSD) | ||
| 9 | + "/etc/localtime", | ||
| 10 | +#else | ||
| 11 | "/etc/localtime", "/etc/timezone", "/etc/TZ", | ||
| 12 | +#endif | ||
| 13 | }; | ||
| 14 | for (size_t index = 0; index < base::size(kFilesToWatch); ++index) { | ||
| 15 | file_path_watchers_.push_back(std::make_unique<base::FilePathWatcher>()); | ||
diff --git a/www/chromium/patches/patch-services_device_usb_BUILD_gn b/www/chromium/patches/patch-services_device_usb_BUILD_gn new file mode 100644 index 0000000..790d384 --- /dev/null +++ b/www/chromium/patches/patch-services_device_usb_BUILD_gn | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: services/device/usb/BUILD.gn | ||
| 2 | --- services/device/usb/BUILD.gn.orig | ||
| 3 | +++ services/device/usb/BUILD.gn | ||
| 4 | @@ -103,15 +103,17 @@ static_library("usb") { | ||
| 5 | deps += [ "//third_party/re2" ] | ||
| 6 | } | ||
| 7 | |||
| 8 | - if (is_mac) { | ||
| 9 | - sources += [ | ||
| 10 | - "usb_device_handle_mac.cc", | ||
| 11 | - "usb_device_handle_mac.h", | ||
| 12 | - "usb_device_mac.cc", | ||
| 13 | - "usb_device_mac.h", | ||
| 14 | - "usb_service_mac.cc", | ||
| 15 | - "usb_service_mac.h", | ||
| 16 | - ] | ||
| 17 | + if (is_mac || is_bsd) { | ||
| 18 | + if (is_mac) { | ||
| 19 | + sources += [ | ||
| 20 | + "usb_device_handle_mac.cc", | ||
| 21 | + "usb_device_handle_mac.h", | ||
| 22 | + "usb_device_mac.cc", | ||
| 23 | + "usb_device_mac.h", | ||
| 24 | + "usb_service_mac.cc", | ||
| 25 | + "usb_service_mac.h", | ||
| 26 | + ] | ||
| 27 | + } | ||
| 28 | |||
| 29 | # These sources and deps are required for libusb. | ||
| 30 | # TODO(https://crbug.com/1096743) Remove these sources. | ||
| 31 | @@ -152,7 +154,7 @@ static_library("usb") { | ||
| 32 | deps += [ "//device/udev_linux" ] | ||
| 33 | } | ||
| 34 | |||
| 35 | - if (is_android || is_chromeos || is_linux) { | ||
| 36 | + if (is_android || is_chromeos || is_linux && !is_bsd) { | ||
| 37 | sources += [ | ||
| 38 | "usb_device_handle_usbfs.cc", | ||
| 39 | "usb_device_handle_usbfs.h", | ||
diff --git a/www/chromium/patches/patch-services_network_BUILD_gn b/www/chromium/patches/patch-services_network_BUILD_gn new file mode 100644 index 0000000..11a2956 --- /dev/null +++ b/www/chromium/patches/patch-services_network_BUILD_gn | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: services/network/BUILD.gn | ||
| 2 | --- services/network/BUILD.gn.orig | ||
| 3 | +++ services/network/BUILD.gn | ||
| 4 | @@ -323,7 +323,6 @@ if (is_linux || is_chromeos) { | ||
| 5 | ] | ||
| 6 | deps = [ | ||
| 7 | "//base:base", | ||
| 8 | - "//sandbox/linux:sandbox_services", | ||
| 9 | "//sandbox/policy:policy", | ||
| 10 | ] | ||
| 11 | } | ||
diff --git a/www/chromium/patches/patch-services_network_network_sandbox_hook_linux_cc b/www/chromium/patches/patch-services_network_network_sandbox_hook_linux_cc new file mode 100644 index 0000000..1961223 --- /dev/null +++ b/www/chromium/patches/patch-services_network_network_sandbox_hook_linux_cc | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | Index: services/network/network_sandbox_hook_linux.cc | ||
| 2 | --- services/network/network_sandbox_hook_linux.cc.orig | ||
| 3 | +++ services/network/network_sandbox_hook_linux.cc | ||
| 4 | @@ -26,12 +26,15 @@ sandbox::syscall_broker::BrokerCommandSet GetNetworkBr | ||
| 5 | }); | ||
| 6 | } | ||
| 7 | |||
| 8 | +#if !defined(OS_BSD) | ||
| 9 | std::vector<BrokerFilePermission> GetNetworkFilePermissions() { | ||
| 10 | // TODO(tsepez): remove universal permission under filesystem root. | ||
| 11 | return {BrokerFilePermission::ReadWriteCreateRecursive("/")}; | ||
| 12 | } | ||
| 13 | +#endif | ||
| 14 | |||
| 15 | bool NetworkPreSandboxHook(sandbox::policy::SandboxLinux::Options options) { | ||
| 16 | +#if !defined(OS_BSD) | ||
| 17 | auto* instance = sandbox::policy::SandboxLinux::GetInstance(); | ||
| 18 | |||
| 19 | instance->StartBrokerProcess( | ||
| 20 | @@ -39,6 +42,7 @@ bool NetworkPreSandboxHook(sandbox::policy::SandboxLin | ||
| 21 | sandbox::policy::SandboxLinux::PreSandboxHook(), options); | ||
| 22 | |||
| 23 | instance->EngageNamespaceSandboxIfPossible(); | ||
| 24 | +#endif | ||
| 25 | return true; | ||
| 26 | } | ||
| 27 | |||
diff --git a/www/chromium/patches/patch-services_network_network_sandbox_hook_linux_h b/www/chromium/patches/patch-services_network_network_sandbox_hook_linux_h new file mode 100644 index 0000000..c737bc9 --- /dev/null +++ b/www/chromium/patches/patch-services_network_network_sandbox_hook_linux_h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: services/network/network_sandbox_hook_linux.h | ||
| 2 | --- services/network/network_sandbox_hook_linux.h.orig | ||
| 3 | +++ services/network/network_sandbox_hook_linux.h | ||
| 4 | @@ -10,7 +10,11 @@ | ||
| 5 | #include "base/component_export.h" | ||
| 6 | #include "sandbox/linux/syscall_broker/broker_command.h" | ||
| 7 | #include "sandbox/linux/syscall_broker/broker_file_permission.h" | ||
| 8 | +#if defined(OS_BSD) | ||
| 9 | +#include "sandbox/policy/openbsd/sandbox_openbsd.h" | ||
| 10 | +#else | ||
| 11 | #include "sandbox/policy/linux/sandbox_linux.h" | ||
| 12 | +#endif | ||
| 13 | |||
| 14 | namespace network { | ||
| 15 | |||
diff --git a/www/chromium/patches/patch-services_network_network_service_cc b/www/chromium/patches/patch-services_network_network_service_cc new file mode 100644 index 0000000..0932601 --- /dev/null +++ b/www/chromium/patches/patch-services_network_network_service_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: services/network/network_service.cc | ||
| 2 | --- services/network/network_service.cc.orig | ||
| 3 | +++ services/network/network_service.cc | ||
| 4 | @@ -82,7 +82,7 @@ | ||
| 5 | #include "third_party/boringssl/src/include/openssl/cpu.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) && \ | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) && \ | ||
| 10 | !BUILDFLAG(IS_CHROMECAST) | ||
| 11 | #include "components/os_crypt/key_storage_config_linux.h" | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-services_resource_coordinator_memory_instrumentation_queued_request_dispatcher_cc b/www/chromium/patches/patch-services_resource_coordinator_memory_instrumentation_queued_request_dispatcher_cc new file mode 100644 index 0000000..ec6e151 --- /dev/null +++ b/www/chromium/patches/patch-services_resource_coordinator_memory_instrumentation_queued_request_dispatcher_cc | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | Index: services/resource_coordinator/memory_instrumentation/queued_request_dispatcher.cc | ||
| 2 | --- services/resource_coordinator/memory_instrumentation/queued_request_dispatcher.cc.orig | ||
| 3 | +++ services/resource_coordinator/memory_instrumentation/queued_request_dispatcher.cc | ||
| 4 | @@ -52,7 +52,7 @@ uint32_t CalculatePrivateFootprintKb(const mojom::RawO | ||
| 5 | uint32_t shared_resident_kb) { | ||
| 6 | DCHECK(os_dump.platform_private_footprint); | ||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | uint64_t rss_anon_bytes = os_dump.platform_private_footprint->rss_anon_bytes; | ||
| 11 | uint64_t vm_swap_bytes = os_dump.platform_private_footprint->vm_swap_bytes; | ||
| 12 | return (rss_anon_bytes + vm_swap_bytes) / 1024; | ||
| 13 | @@ -91,7 +91,7 @@ memory_instrumentation::mojom::OSMemDumpPtr CreatePubl | ||
| 14 | os_dump->is_peak_rss_resettable = internal_os_dump.is_peak_rss_resettable; | ||
| 15 | os_dump->private_footprint_kb = | ||
| 16 | CalculatePrivateFootprintKb(internal_os_dump, shared_resident_kb); | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 19 | os_dump->private_footprint_swap_kb = | ||
| 20 | internal_os_dump.platform_private_footprint->vm_swap_bytes / 1024; | ||
| 21 | #endif | ||
| 22 | @@ -270,7 +270,7 @@ void QueuedRequestDispatcher::SetUpAndDispatch( | ||
| 23 | |||
| 24 | // On most platforms each process can dump data about their own process | ||
| 25 | // so ask each process to do so Linux is special see below. | ||
| 26 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) | ||
| 28 | request->pending_responses.insert({client_info.pid, ResponseType::kOSDump}); | ||
| 29 | client->RequestOSMemoryDump(request->memory_map_option(), | ||
| 30 | {base::kNullProcessId}, | ||
| 31 | @@ -285,7 +285,7 @@ void QueuedRequestDispatcher::SetUpAndDispatch( | ||
| 32 | |||
| 33 | // In some cases, OS stats can only be dumped from a privileged process to | ||
| 34 | // get around to sandboxing/selinux restrictions (see crbug.com/461788). | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | std::vector<base::ProcessId> pids; | ||
| 38 | mojom::ClientProcess* browser_client = nullptr; | ||
| 39 | base::ProcessId browser_client_pid = base::kNullProcessId; | ||
| 40 | @@ -331,7 +331,7 @@ void QueuedRequestDispatcher::SetUpAndDispatchVmRegion | ||
| 41 | const OsCallback& os_callback) { | ||
| 42 | // On Linux, OS stats can only be dumped from a privileged process to | ||
| 43 | // get around to sandboxing/selinux restrictions (see crbug.com/461788). | ||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | mojom::ClientProcess* browser_client = nullptr; | ||
| 47 | base::ProcessId browser_client_pid = 0; | ||
| 48 | for (const auto& client_info : clients) { | ||
| 49 | @@ -382,7 +382,7 @@ QueuedRequestDispatcher::FinalizeVmRegionRequest( | ||
| 50 | // each client process provides 1 OS dump, % the case where the client is | ||
| 51 | // disconnected mid dump. | ||
| 52 | OSMemDumpMap& extra_os_dumps = response.second.os_dumps; | ||
| 53 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 54 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 55 | for (auto& kv : extra_os_dumps) { | ||
| 56 | auto pid = kv.first == base::kNullProcessId ? original_pid : kv.first; | ||
| 57 | DCHECK(results.find(pid) == results.end()); | ||
| 58 | @@ -444,7 +444,7 @@ void QueuedRequestDispatcher::Finalize(QueuedRequest* | ||
| 59 | // crash). In the latter case (OS_LINUX) we expect the full map to come | ||
| 60 | // from the browser process response. | ||
| 61 | OSMemDumpMap& extra_os_dumps = response.second.os_dumps; | ||
| 62 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 63 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 64 | for (const auto& kv : extra_os_dumps) { | ||
| 65 | auto pid = kv.first == base::kNullProcessId ? original_pid : kv.first; | ||
| 66 | DCHECK_EQ(pid_to_os_dump[pid], nullptr); | ||
diff --git a/www/chromium/patches/patch-services_resource_coordinator_public_cpp_memory_instrumentation_BUILD_gn b/www/chromium/patches/patch-services_resource_coordinator_public_cpp_memory_instrumentation_BUILD_gn new file mode 100644 index 0000000..0bbeb8c --- /dev/null +++ b/www/chromium/patches/patch-services_resource_coordinator_public_cpp_memory_instrumentation_BUILD_gn | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: services/resource_coordinator/public/cpp/memory_instrumentation/BUILD.gn | ||
| 2 | --- services/resource_coordinator/public/cpp/memory_instrumentation/BUILD.gn.orig | ||
| 3 | +++ services/resource_coordinator/public/cpp/memory_instrumentation/BUILD.gn | ||
| 4 | @@ -29,8 +29,12 @@ component("memory_instrumentation") { | ||
| 5 | sources += [ "os_metrics_win.cc" ] | ||
| 6 | } | ||
| 7 | |||
| 8 | - if (is_android || is_linux || is_chromeos) { | ||
| 9 | + if ((is_android || is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | sources += [ "os_metrics_linux.cc" ] | ||
| 11 | + } | ||
| 12 | + | ||
| 13 | + if (is_bsd) { | ||
| 14 | + sources += [ "os_metrics_bsd.cc" ] | ||
| 15 | } | ||
| 16 | |||
| 17 | if (is_fuchsia) { | ||
diff --git a/www/chromium/patches/patch-services_resource_coordinator_public_cpp_memory_instrumentation_os_metrics_bsd_cc b/www/chromium/patches/patch-services_resource_coordinator_public_cpp_memory_instrumentation_os_metrics_bsd_cc new file mode 100644 index 0000000..e4d7d9e --- /dev/null +++ b/www/chromium/patches/patch-services_resource_coordinator_public_cpp_memory_instrumentation_os_metrics_bsd_cc | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | Index: services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics_bsd.cc | ||
| 2 | --- services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics_bsd.cc.orig | ||
| 3 | +++ services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics_bsd.cc | ||
| 4 | @@ -0,0 +1,58 @@ | ||
| 5 | +// Copyright 2022 The Chromium Authors. All rights reserved. | ||
| 6 | +// Use of this source code is governed by a BSD-style license that can be | ||
| 7 | +// found in the LICENSE file. | ||
| 8 | + | ||
| 9 | +#include "services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics.h" | ||
| 10 | + | ||
| 11 | +#include "base/memory/page_size.h" | ||
| 12 | +#include "base/process/process.h" | ||
| 13 | +#include "base/process/process_handle.h" | ||
| 14 | + | ||
| 15 | +#include <sys/sysctl.h> | ||
| 16 | + | ||
| 17 | +#include <vector> | ||
| 18 | + | ||
| 19 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 20 | +#define vm_rssize info.p_vm_rssize | ||
| 21 | +#elif BUILDFLAG(IS_FREEBSD) | ||
| 22 | +#include <sys/user.h> | ||
| 23 | +#define vm_rssize info.ki_rssize | ||
| 24 | +#endif | ||
| 25 | + | ||
| 26 | +namespace memory_instrumentation { | ||
| 27 | + | ||
| 28 | +// static | ||
| 29 | +bool OSMetrics::FillOSMemoryDump(base::ProcessId pid, | ||
| 30 | + mojom::RawOSMemDump* dump) { | ||
| 31 | + base::Process process = pid == base::kNullProcessId | ||
| 32 | + ? base::Process::Current() | ||
| 33 | + : base::Process::Open(pid); | ||
| 34 | + const size_t kPageSize = base::GetPageSize(); | ||
| 35 | + struct kinfo_proc info; | ||
| 36 | + size_t length = sizeof(struct kinfo_proc); | ||
| 37 | +#if BUILDFLAG(IS_OPENBSD) | ||
| 38 | + int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process.Handle(), | ||
| 39 | + static_cast<int>(length), 1 }; | ||
| 40 | +#elif BUILDFLAG(IS_FREEBSD) | ||
| 41 | + int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process.Handle() }; | ||
| 42 | +#endif | ||
| 43 | + | ||
| 44 | + if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) | ||
| 45 | + return false; | ||
| 46 | + | ||
| 47 | + dump->resident_set_kb = (vm_rssize * kPageSize) / 1024; | ||
| 48 | + dump->platform_private_footprint->rss_anon_bytes = | ||
| 49 | + vm_rssize * kPageSize; | ||
| 50 | + dump->platform_private_footprint->vm_swap_bytes = 0; | ||
| 51 | + | ||
| 52 | + return true; | ||
| 53 | +} | ||
| 54 | + | ||
| 55 | +// static | ||
| 56 | +std::vector<mojom::VmRegionPtr> OSMetrics::GetProcessMemoryMaps( | ||
| 57 | + base::ProcessId) { | ||
| 58 | + NOTIMPLEMENTED(); | ||
| 59 | + return std::vector<mojom::VmRegionPtr>(); | ||
| 60 | +} | ||
| 61 | + | ||
| 62 | +} // namespace memory_instrumentation | ||
diff --git a/www/chromium/patches/patch-services_resource_coordinator_public_cpp_memory_instrumentation_os_metrics_h b/www/chromium/patches/patch-services_resource_coordinator_public_cpp_memory_instrumentation_os_metrics_h new file mode 100644 index 0000000..875757e --- /dev/null +++ b/www/chromium/patches/patch-services_resource_coordinator_public_cpp_memory_instrumentation_os_metrics_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics.h | ||
| 2 | --- services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics.h.orig | ||
| 3 | +++ services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics.h | ||
| 4 | @@ -45,7 +45,7 @@ class COMPONENT_EXPORT( | ||
| 5 | mojom::RawOSMemDump*); | ||
| 6 | static std::vector<mojom::VmRegionPtr> GetProcessMemoryMaps(base::ProcessId); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | static void SetProcSmapsForTesting(FILE*); | ||
| 11 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || | ||
| 12 | // BUILDFLAG(IS_ANDROID) | ||
| 13 | @@ -62,7 +62,7 @@ class COMPONENT_EXPORT( | ||
| 14 | static std::vector<mojom::VmRegionPtr> GetProcessModules(base::ProcessId); | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 19 | // Provides information on the dump state of resident pages. These values are | ||
| 20 | // written to logs. New enum values can be added, but existing enums must | ||
| 21 | // never be renumbered or deleted and reused. | ||
diff --git a/www/chromium/patches/patch-services_service_manager_BUILD_gn b/www/chromium/patches/patch-services_service_manager_BUILD_gn new file mode 100644 index 0000000..fc8fbc2 --- /dev/null +++ b/www/chromium/patches/patch-services_service_manager_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: services/service_manager/BUILD.gn | ||
| 2 | --- services/service_manager/BUILD.gn.orig | ||
| 3 | +++ services/service_manager/BUILD.gn | ||
| 4 | @@ -67,7 +67,7 @@ source_set("service_manager") { | ||
| 5 | ] | ||
| 6 | } | ||
| 7 | |||
| 8 | - if (is_linux || is_chromeos) { | ||
| 9 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | deps += [ "//sandbox/linux:sandbox_services" ] | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-services_service_manager_public_cpp_service_executable_BUILD_gn b/www/chromium/patches/patch-services_service_manager_public_cpp_service_executable_BUILD_gn new file mode 100644 index 0000000..b78e0f5 --- /dev/null +++ b/www/chromium/patches/patch-services_service_manager_public_cpp_service_executable_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: services/service_manager/public/cpp/service_executable/BUILD.gn | ||
| 2 | --- services/service_manager/public/cpp/service_executable/BUILD.gn.orig | ||
| 3 | +++ services/service_manager/public/cpp/service_executable/BUILD.gn | ||
| 4 | @@ -22,7 +22,7 @@ source_set("support") { | ||
| 5 | "//services/service_manager/public/mojom", | ||
| 6 | ] | ||
| 7 | |||
| 8 | - if (is_linux || is_chromeos) { | ||
| 9 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | deps += [ | ||
| 11 | "//sandbox/linux:sandbox", | ||
| 12 | "//sandbox/linux:sandbox_services", | ||
diff --git a/www/chromium/patches/patch-services_tracing_public_cpp_perfetto_perfetto_config_cc b/www/chromium/patches/patch-services_tracing_public_cpp_perfetto_perfetto_config_cc new file mode 100644 index 0000000..f61dcfb --- /dev/null +++ b/www/chromium/patches/patch-services_tracing_public_cpp_perfetto_perfetto_config_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: services/tracing/public/cpp/perfetto/perfetto_config.cc | ||
| 2 | --- services/tracing/public/cpp/perfetto/perfetto_config.cc.orig | ||
| 3 | +++ services/tracing/public/cpp/perfetto/perfetto_config.cc | ||
| 4 | @@ -124,7 +124,7 @@ void AddDataSourceConfigs( | ||
| 5 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 6 | // complete. | ||
| 7 | #if BUILDFLAG(IS_CHROMEOS_ASH) || \ | ||
| 8 | - (BUILDFLAG(IS_CHROMECAST) && BUILDFLAG(IS_LINUX)) | ||
| 9 | + (BUILDFLAG(IS_CHROMECAST) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD))) | ||
| 10 | if (source_names.empty() || | ||
| 11 | source_names.count(tracing::mojom::kSystemTraceDataSourceName) == 1) { | ||
| 12 | AddDataSourceConfig( | ||
diff --git a/www/chromium/patches/patch-services_video_capture_broadcasting_receiver_cc b/www/chromium/patches/patch-services_video_capture_broadcasting_receiver_cc new file mode 100644 index 0000000..0da90d5 --- /dev/null +++ b/www/chromium/patches/patch-services_video_capture_broadcasting_receiver_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: services/video_capture/broadcasting_receiver.cc | ||
| 2 | --- services/video_capture/broadcasting_receiver.cc.orig | ||
| 3 | +++ services/video_capture/broadcasting_receiver.cc | ||
| 4 | @@ -28,7 +28,7 @@ void CloneSharedBufferHandle(const mojo::ScopedSharedB | ||
| 5 | void CloneSharedBufferToRawFileDescriptorHandle( | ||
| 6 | const mojo::ScopedSharedBufferHandle& source, | ||
| 7 | media::mojom::VideoBufferHandlePtr* target) { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // |source| is unwrapped to a |PlatformSharedMemoryRegion|, from whence a file | ||
| 11 | // descriptor can be extracted which is then mojo-wrapped. | ||
| 12 | base::subtle::PlatformSharedMemoryRegion platform_region = | ||
| 13 | @@ -240,7 +240,7 @@ void BroadcastingReceiver::BufferContext:: | ||
| 14 | ConvertRawFileDescriptorToSharedBuffer() { | ||
| 15 | DCHECK(buffer_handle_->is_shared_memory_via_raw_file_descriptor()); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // The conversion unwraps the descriptor from its mojo handle to the raw file | ||
| 20 | // descriptor (ie, an int). This is used to create a | ||
| 21 | // PlatformSharedMemoryRegion which is then wrapped as a | ||
diff --git a/www/chromium/patches/patch-services_video_capture_public_mojom_video_capture_service_mojom b/www/chromium/patches/patch-services_video_capture_public_mojom_video_capture_service_mojom new file mode 100644 index 0000000..7980702 --- /dev/null +++ b/www/chromium/patches/patch-services_video_capture_public_mojom_video_capture_service_mojom | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: services/video_capture/public/mojom/video_capture_service.mojom | ||
| 2 | --- services/video_capture/public/mojom/video_capture_service.mojom.orig | ||
| 3 | +++ services/video_capture/public/mojom/video_capture_service.mojom | ||
| 4 | @@ -21,10 +21,10 @@ interface AcceleratorFactory { | ||
| 5 | pending_receiver<chromeos_camera.mojom.MjpegDecodeAccelerator> jda); | ||
| 6 | }; | ||
| 7 | |||
| 8 | -[EnableIf=is_fuchsia] | ||
| 9 | +[EnableIf=is_openbsd] | ||
| 10 | const sandbox.mojom.Sandbox kVideoCaptureSandbox | ||
| 11 | = sandbox.mojom.Sandbox.kVideoCapture; | ||
| 12 | -[EnableIfNot=is_fuchsia] | ||
| 13 | +[EnableIfNot=is_openbsd] | ||
| 14 | const sandbox.mojom.Sandbox kVideoCaptureSandbox | ||
| 15 | = sandbox.mojom.Sandbox.kNoSandbox; | ||
| 16 | |||
diff --git a/www/chromium/patches/patch-skia_ext_SkMemory_new_handler_cpp b/www/chromium/patches/patch-skia_ext_SkMemory_new_handler_cpp new file mode 100644 index 0000000..6cce0e0 --- /dev/null +++ b/www/chromium/patches/patch-skia_ext_SkMemory_new_handler_cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: skia/ext/SkMemory_new_handler.cpp | ||
| 2 | --- skia/ext/SkMemory_new_handler.cpp.orig | ||
| 3 | +++ skia/ext/SkMemory_new_handler.cpp | ||
| 4 | @@ -79,7 +79,7 @@ static void* malloc_nothrow(size_t size) { | ||
| 5 | // TODO(b.kelemen): we should always use UncheckedMalloc but currently it | ||
| 6 | // doesn't work as intended everywhere. | ||
| 7 | void* result; | ||
| 8 | -#if BUILDFLAG(IS_IOS) | ||
| 9 | +#if BUILDFLAG(IS_IOS) || BUILDFLAG(IS_BSD) | ||
| 10 | result = malloc(size); | ||
| 11 | #else | ||
| 12 | // It's the responsibility of the caller to check the return value. | ||
diff --git a/www/chromium/patches/patch-third_party_abseil-cpp_absl_base_config_h b/www/chromium/patches/patch-third_party_abseil-cpp_absl_base_config_h new file mode 100644 index 0000000..a8b1981 --- /dev/null +++ b/www/chromium/patches/patch-third_party_abseil-cpp_absl_base_config_h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | Index: third_party/abseil-cpp/absl/base/config.h | ||
| 2 | --- third_party/abseil-cpp/absl/base/config.h.orig | ||
| 3 | +++ third_party/abseil-cpp/absl/base/config.h | ||
| 4 | @@ -414,7 +414,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != | ||
| 5 | defined(_AIX) || defined(__ros__) || defined(__native_client__) || \ | ||
| 6 | defined(__asmjs__) || defined(__wasm__) || defined(__Fuchsia__) || \ | ||
| 7 | defined(__sun) || defined(__ASYLO__) || defined(__myriad2__) || \ | ||
| 8 | - defined(__HAIKU__) | ||
| 9 | + defined(__HAIKU__) || defined(__OpenBSD__) | ||
| 10 | #define ABSL_HAVE_MMAP 1 | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -425,7 +425,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != | ||
| 14 | #ifdef ABSL_HAVE_PTHREAD_GETSCHEDPARAM | ||
| 15 | #error ABSL_HAVE_PTHREAD_GETSCHEDPARAM cannot be directly set | ||
| 16 | #elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \ | ||
| 17 | - defined(_AIX) || defined(__ros__) | ||
| 18 | + defined(_AIX) || defined(__ros__) || defined(__OpenBSD__) | ||
| 19 | #define ABSL_HAVE_PTHREAD_GETSCHEDPARAM 1 | ||
| 20 | #endif | ||
| 21 | |||
| 22 | @@ -444,7 +444,8 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != | ||
| 23 | // POSIX.1-2001. | ||
| 24 | #ifdef ABSL_HAVE_SCHED_YIELD | ||
| 25 | #error ABSL_HAVE_SCHED_YIELD cannot be directly set | ||
| 26 | -#elif defined(__linux__) || defined(__ros__) || defined(__native_client__) | ||
| 27 | +#elif defined(__linux__) || defined(__ros__) || defined(__native_client__) || \ | ||
| 28 | + defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 29 | #define ABSL_HAVE_SCHED_YIELD 1 | ||
| 30 | #endif | ||
| 31 | |||
| 32 | @@ -459,7 +460,8 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != | ||
| 33 | // platforms. | ||
| 34 | #ifdef ABSL_HAVE_SEMAPHORE_H | ||
| 35 | #error ABSL_HAVE_SEMAPHORE_H cannot be directly set | ||
| 36 | -#elif defined(__linux__) || defined(__ros__) | ||
| 37 | +#elif defined(__linux__) || defined(__ros__) || defined(__OpenBSD__) || \ | ||
| 38 | + defined(__FreeBSD__) | ||
| 39 | #define ABSL_HAVE_SEMAPHORE_H 1 | ||
| 40 | #endif | ||
| 41 | |||
diff --git a/www/chromium/patches/patch-third_party_abseil-cpp_absl_base_internal_endian_h b/www/chromium/patches/patch-third_party_abseil-cpp_absl_base_internal_endian_h new file mode 100644 index 0000000..811426d --- /dev/null +++ b/www/chromium/patches/patch-third_party_abseil-cpp_absl_base_internal_endian_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/abseil-cpp/absl/base/internal/endian.h | ||
| 2 | --- third_party/abseil-cpp/absl/base/internal/endian.h.orig | ||
| 3 | +++ third_party/abseil-cpp/absl/base/internal/endian.h | ||
| 4 | @@ -19,7 +19,7 @@ | ||
| 5 | // The following guarantees declaration of the byte swap functions | ||
| 6 | #ifdef _MSC_VER | ||
| 7 | #include <stdlib.h> // NOLINT(build/include) | ||
| 8 | -#elif defined(__FreeBSD__) | ||
| 9 | +#elif defined(__FreeBSD__) || defined(__OpenBSD__) | ||
| 10 | #include <sys/endian.h> | ||
| 11 | #elif defined(__GLIBC__) | ||
| 12 | #include <byteswap.h> // IWYU pragma: export | ||
diff --git a/www/chromium/patches/patch-third_party_abseil-cpp_absl_base_internal_sysinfo_cc b/www/chromium/patches/patch-third_party_abseil-cpp_absl_base_internal_sysinfo_cc new file mode 100644 index 0000000..12064a8 --- /dev/null +++ b/www/chromium/patches/patch-third_party_abseil-cpp_absl_base_internal_sysinfo_cc | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | Index: third_party/abseil-cpp/absl/base/internal/sysinfo.cc | ||
| 2 | --- third_party/abseil-cpp/absl/base/internal/sysinfo.cc.orig | ||
| 3 | +++ third_party/abseil-cpp/absl/base/internal/sysinfo.cc | ||
| 4 | @@ -30,7 +30,7 @@ | ||
| 5 | #include <sys/syscall.h> | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if defined(__APPLE__) || defined(__FreeBSD__) | ||
| 9 | +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) | ||
| 10 | #include <sys/sysctl.h> | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -308,9 +308,11 @@ static double GetNominalCPUFrequency() { | ||
| 14 | // a new mode (turbo mode). Essentially, those frequencies cannot | ||
| 15 | // always be relied upon. The same reasons apply to /proc/cpuinfo as | ||
| 16 | // well. | ||
| 17 | +#if !defined(__OpenBSD__) && !defined(__FreeBSD__) // pledge violation | ||
| 18 | if (ReadLongFromFile("/sys/devices/system/cpu/cpu0/tsc_freq_khz", &freq)) { | ||
| 19 | return freq * 1e3; // Value is kHz. | ||
| 20 | } | ||
| 21 | +#endif | ||
| 22 | |||
| 23 | #if defined(ABSL_INTERNAL_UNSCALED_CYCLECLOCK_FREQUENCY_IS_CPU_FREQUENCY) | ||
| 24 | // On these platforms, the TSC frequency is the nominal CPU | ||
diff --git a/www/chromium/patches/patch-third_party_abseil-cpp_absl_debugging_internal_elf_mem_image_h b/www/chromium/patches/patch-third_party_abseil-cpp_absl_debugging_internal_elf_mem_image_h new file mode 100644 index 0000000..70b177e --- /dev/null +++ b/www/chromium/patches/patch-third_party_abseil-cpp_absl_debugging_internal_elf_mem_image_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h | ||
| 2 | --- third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h.orig | ||
| 3 | +++ third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h | ||
| 4 | @@ -32,7 +32,7 @@ | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if defined(__ELF__) && !defined(__native_client__) && !defined(__asmjs__) && \ | ||
| 8 | - !defined(__wasm__) | ||
| 9 | + !defined(__wasm__) && !defined(__OpenBSD__) && !defined(__FreeBSD__) | ||
| 10 | #define ABSL_HAVE_ELF_MEM_IMAGE 1 | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-third_party_abseil-cpp_absl_time_internal_cctz_src_time_zone_format_cc b/www/chromium/patches/patch-third_party_abseil-cpp_absl_time_internal_cctz_src_time_zone_format_cc new file mode 100644 index 0000000..a96cd52 --- /dev/null +++ b/www/chromium/patches/patch-third_party_abseil-cpp_absl_time_internal_cctz_src_time_zone_format_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc | ||
| 2 | --- third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc.orig | ||
| 3 | +++ third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc | ||
| 4 | @@ -19,7 +19,7 @@ | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if defined(HAS_STRPTIME) && HAS_STRPTIME | ||
| 8 | -#if !defined(_XOPEN_SOURCE) | ||
| 9 | +#if !defined(_XOPEN_SOURCE) && !defined(__OpenBSD__) && !defined(__FreeBSD__) | ||
| 10 | #define _XOPEN_SOURCE // Definedness suffices for strptime. | ||
| 11 | #endif | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-third_party_angle_BUILD_gn b/www/chromium/patches/patch-third_party_angle_BUILD_gn new file mode 100644 index 0000000..83a3248 --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_BUILD_gn | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: third_party/angle/BUILD.gn | ||
| 2 | --- third_party/angle/BUILD.gn.orig | ||
| 3 | +++ third_party/angle/BUILD.gn | ||
| 4 | @@ -206,7 +206,6 @@ config("extra_warnings") { | ||
| 5 | "-Wtautological-type-limit-compare", | ||
| 6 | "-Wundefined-reinterpret-cast", | ||
| 7 | "-Wunneeded-internal-declaration", | ||
| 8 | - "-Wunused-but-set-variable", | ||
| 9 | "-Wsuggest-destructor-override", | ||
| 10 | "-Wsuggest-override", | ||
| 11 | |||
| 12 | @@ -384,7 +383,7 @@ angle_static_library("angle_common") { | ||
| 13 | all_dependent_configs = [ ":angle_disable_pool_alloc" ] | ||
| 14 | } | ||
| 15 | |||
| 16 | - if (is_linux || is_chromeos) { | ||
| 17 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 18 | libs = [ "dl" ] | ||
| 19 | } | ||
| 20 | |||
| 21 | @@ -498,6 +497,9 @@ angle_static_library("angle_gpu_info_util") { | ||
| 22 | "Xi", | ||
| 23 | "Xext", | ||
| 24 | ] | ||
| 25 | + if (is_bsd) { | ||
| 26 | + libs += [ "GL" ] | ||
| 27 | + } | ||
| 28 | } | ||
| 29 | } | ||
| 30 | |||
diff --git a/www/chromium/patches/patch-third_party_angle_src_common_platform_h b/www/chromium/patches/patch-third_party_angle_src_common_platform_h new file mode 100644 index 0000000..08904d0 --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_src_common_platform_h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | Index: third_party/angle/src/common/platform.h | ||
| 2 | --- third_party/angle/src/common/platform.h.orig | ||
| 3 | +++ third_party/angle/src/common/platform.h | ||
| 4 | @@ -26,7 +26,15 @@ | ||
| 5 | #elif defined(__linux__) || defined(EMSCRIPTEN) | ||
| 6 | # define ANGLE_PLATFORM_LINUX 1 | ||
| 7 | # define ANGLE_PLATFORM_POSIX 1 | ||
| 8 | -#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || \ | ||
| 9 | +#elif defined(__OpenBSD__) | ||
| 10 | +# define ANGLE_PLATFORM_OPENBSD 1 | ||
| 11 | +# define ANGLE_PLATFORM_POSIX 1 | ||
| 12 | +# define ANGLE_PLATFORM_BSD 1 | ||
| 13 | +#elif defined(__FreeBSD__) | ||
| 14 | +# define ANGLE_PLATFORM_FREEBSD 1 | ||
| 15 | +# define ANGLE_PLATFORM_POSIX 1 | ||
| 16 | +# define ANGLE_PLATFORM_BSD 1 | ||
| 17 | +#elif defined(__NetBSD__) || \ | ||
| 18 | defined(__DragonFly__) || defined(__sun) || defined(__GLIBC__) || defined(__GNU__) || \ | ||
| 19 | defined(__QNX__) || defined(__Fuchsia__) || defined(__HAIKU__) | ||
| 20 | # define ANGLE_PLATFORM_POSIX 1 | ||
diff --git a/www/chromium/patches/patch-third_party_angle_src_common_system_utils_posix_cpp b/www/chromium/patches/patch-third_party_angle_src_common_system_utils_posix_cpp new file mode 100644 index 0000000..361987a --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_src_common_system_utils_posix_cpp | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/angle/src/common/system_utils_posix.cpp | ||
| 2 | --- third_party/angle/src/common/system_utils_posix.cpp.orig | ||
| 3 | +++ third_party/angle/src/common/system_utils_posix.cpp | ||
| 4 | @@ -197,7 +197,9 @@ void *OpenSystemLibraryWithExtensionAndGetError(const | ||
| 5 | int extraFlags = 0; | ||
| 6 | if (searchType == SearchType::AlreadyLoaded) | ||
| 7 | { | ||
| 8 | +#if !defined(__OpenBSD__) | ||
| 9 | extraFlags = RTLD_NOLOAD; | ||
| 10 | +#endif | ||
| 11 | } | ||
| 12 | |||
| 13 | std::string fullPath = directory + libraryName; | ||
diff --git a/www/chromium/patches/patch-third_party_angle_src_gpu_info_util_SystemInfo_internal_h b/www/chromium/patches/patch-third_party_angle_src_gpu_info_util_SystemInfo_internal_h new file mode 100644 index 0000000..57691e7 --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_src_gpu_info_util_SystemInfo_internal_h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: third_party/angle/src/gpu_info_util/SystemInfo_internal.h | ||
| 2 | --- third_party/angle/src/gpu_info_util/SystemInfo_internal.h.orig | ||
| 3 | +++ third_party/angle/src/gpu_info_util/SystemInfo_internal.h | ||
| 4 | @@ -14,6 +14,13 @@ | ||
| 5 | namespace angle | ||
| 6 | { | ||
| 7 | |||
| 8 | +#if defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 9 | +bool CollectMesaCardInfo(std::vector<GPUDeviceInfo> *devices); | ||
| 10 | +#if defined(__FreeBSD__) | ||
| 11 | +bool GetPCIDevicesFreeBSD(std::vector<GPUDeviceInfo> *devices); | ||
| 12 | +#endif | ||
| 13 | +#endif | ||
| 14 | + | ||
| 15 | // Defined in SystemInfo_libpci when GPU_INFO_USE_LIBPCI is defined. | ||
| 16 | bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo> *devices); | ||
| 17 | // Defined in SystemInfo_x11 when GPU_INFO_USE_X11 is defined. | ||
diff --git a/www/chromium/patches/patch-third_party_angle_src_gpu_info_util_SystemInfo_libpci_cpp b/www/chromium/patches/patch-third_party_angle_src_gpu_info_util_SystemInfo_libpci_cpp new file mode 100644 index 0000000..458d63d --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_src_gpu_info_util_SystemInfo_libpci_cpp | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | Index: third_party/angle/src/gpu_info_util/SystemInfo_libpci.cpp | ||
| 2 | --- third_party/angle/src/gpu_info_util/SystemInfo_libpci.cpp.orig | ||
| 3 | +++ third_party/angle/src/gpu_info_util/SystemInfo_libpci.cpp | ||
| 4 | @@ -12,6 +12,11 @@ | ||
| 5 | #include <pci/pci.h> | ||
| 6 | #include <unistd.h> | ||
| 7 | |||
| 8 | +#if defined(__FreeBSD__) | ||
| 9 | +#include <fcntl.h> | ||
| 10 | +#include <sys/pciio.h> | ||
| 11 | +#endif | ||
| 12 | + | ||
| 13 | #include "common/angleutils.h" | ||
| 14 | #include "common/debug.h" | ||
| 15 | |||
| 16 | @@ -85,6 +90,75 @@ struct LibPCI : private angle::NonCopyable | ||
| 17 | }; | ||
| 18 | |||
| 19 | } // anonymous namespace | ||
| 20 | + | ||
| 21 | +#if defined(__FreeBSD__) | ||
| 22 | +// Adds an entry per PCI GPU found and fills the device and vendor ID. | ||
| 23 | +bool GetPCIDevicesFreeBSD(std::vector<GPUDeviceInfo> *devices) | ||
| 24 | +{ | ||
| 25 | + int fd; | ||
| 26 | + struct pci_conf_io conf; | ||
| 27 | + struct pci_conf *matches; | ||
| 28 | + uint32_t offset = 0; | ||
| 29 | + | ||
| 30 | + fd = open("/dev/pci", O_RDONLY); | ||
| 31 | + if (fd < 0) | ||
| 32 | + return false; | ||
| 33 | + | ||
| 34 | + matches = new struct pci_conf[32]; | ||
| 35 | + conf.generation = 0; | ||
| 36 | + do { | ||
| 37 | + conf.pat_buf_len = 0; | ||
| 38 | + conf.num_patterns = 0; | ||
| 39 | + conf.patterns = NULL; | ||
| 40 | + conf.match_buf_len = 32 * sizeof(struct pci_conf); | ||
| 41 | + conf.num_matches = 32; | ||
| 42 | + conf.matches = matches; | ||
| 43 | + conf.offset = offset; | ||
| 44 | + conf.status = PCI_GETCONF_ERROR; | ||
| 45 | + if (ioctl(fd, PCIOCGETCONF, &conf) < 0) { | ||
| 46 | + if (errno == ENODEV) | ||
| 47 | + break; | ||
| 48 | + } | ||
| 49 | + /* PCI_GETCONF_LIST_CHANGED would require us to start over. */ | ||
| 50 | + if (conf.status == PCI_GETCONF_ERROR || conf.status == PCI_GETCONF_LIST_CHANGED) { | ||
| 51 | + break; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + for (unsigned int i = 0; i < conf.num_matches; i++) { | ||
| 55 | + uint16_t device_class = (matches[i].pc_class << 8) | matches[i].pc_subclass; | ||
| 56 | + | ||
| 57 | + // Skip non-GPU devices | ||
| 58 | + switch (device_class) | ||
| 59 | + { | ||
| 60 | + case PCI_CLASS_DISPLAY_VGA: | ||
| 61 | + case PCI_CLASS_DISPLAY_XGA: | ||
| 62 | + case PCI_CLASS_DISPLAY_3D: | ||
| 63 | + break; | ||
| 64 | + default: | ||
| 65 | + continue; | ||
| 66 | + } | ||
| 67 | + | ||
| 68 | + // Skip unknown devices | ||
| 69 | + if (matches[i].pc_vendor == 0 || matches[i].pc_device == 0) { | ||
| 70 | + continue; | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | + GPUDeviceInfo info; | ||
| 74 | + info.vendorId = matches[i].pc_vendor; | ||
| 75 | + info.deviceId = matches[i].pc_device; | ||
| 76 | + | ||
| 77 | + devices->push_back(info); | ||
| 78 | + } | ||
| 79 | + offset += conf.num_matches; | ||
| 80 | + } while (conf.status == PCI_GETCONF_MORE_DEVS); | ||
| 81 | + | ||
| 82 | + delete[] matches; | ||
| 83 | + | ||
| 84 | + close(fd); | ||
| 85 | + | ||
| 86 | + return true; | ||
| 87 | +} | ||
| 88 | +#endif | ||
| 89 | |||
| 90 | // Adds an entry per PCI GPU found and fills the device and vendor ID. | ||
| 91 | bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo> *devices) | ||
diff --git a/www/chromium/patches/patch-third_party_angle_src_gpu_info_util_SystemInfo_linux_cpp b/www/chromium/patches/patch-third_party_angle_src_gpu_info_util_SystemInfo_linux_cpp new file mode 100644 index 0000000..9e5fa48 --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_src_gpu_info_util_SystemInfo_linux_cpp | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | Index: third_party/angle/src/gpu_info_util/SystemInfo_linux.cpp | ||
| 2 | --- third_party/angle/src/gpu_info_util/SystemInfo_linux.cpp.orig | ||
| 3 | +++ third_party/angle/src/gpu_info_util/SystemInfo_linux.cpp | ||
| 4 | @@ -71,6 +71,24 @@ bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo | ||
| 5 | |||
| 6 | bool GetSystemInfo(SystemInfo *info) | ||
| 7 | { | ||
| 8 | +#if defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 9 | + if (!CollectMesaCardInfo(&(info->gpus))) | ||
| 10 | + { | ||
| 11 | +#if defined(__FreeBSD__) | ||
| 12 | + if (!GetPCIDevicesFreeBSD(&(info->gpus))) | ||
| 13 | + { | ||
| 14 | +#endif | ||
| 15 | +#if defined(ANGLE_USE_VULKAN_SYSTEM_INFO) | ||
| 16 | + // Try vulkan backend to get GPU info | ||
| 17 | + return GetSystemInfoVulkan(info); | ||
| 18 | +#else | ||
| 19 | + return false; | ||
| 20 | +#endif | ||
| 21 | +#if defined(__FreeBSD__) | ||
| 22 | + } | ||
| 23 | +#endif | ||
| 24 | + } | ||
| 25 | +#else | ||
| 26 | if (!GetPCIDevicesWithLibPCI(&(info->gpus))) | ||
| 27 | { | ||
| 28 | #if defined(ANGLE_USE_VULKAN_SYSTEM_INFO) | ||
| 29 | @@ -85,6 +103,7 @@ bool GetSystemInfo(SystemInfo *info) | ||
| 30 | { | ||
| 31 | return false; | ||
| 32 | } | ||
| 33 | +#endif | ||
| 34 | |||
| 35 | GetDualGPUInfo(info); | ||
| 36 | |||
diff --git a/www/chromium/patches/patch-third_party_angle_src_gpu_info_util_SystemInfo_x11_cpp b/www/chromium/patches/patch-third_party_angle_src_gpu_info_util_SystemInfo_x11_cpp new file mode 100644 index 0000000..68943a3 --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_src_gpu_info_util_SystemInfo_x11_cpp | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | Index: third_party/angle/src/gpu_info_util/SystemInfo_x11.cpp | ||
| 2 | --- third_party/angle/src/gpu_info_util/SystemInfo_x11.cpp.orig | ||
| 3 | +++ third_party/angle/src/gpu_info_util/SystemInfo_x11.cpp | ||
| 4 | @@ -8,6 +8,10 @@ | ||
| 5 | |||
| 6 | #include "gpu_info_util/SystemInfo_internal.h" | ||
| 7 | |||
| 8 | +#if defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 9 | +#include <GL/glx.h> | ||
| 10 | +#include <GL/glxext.h> | ||
| 11 | +#endif | ||
| 12 | #include <X11/Xlib.h> | ||
| 13 | |||
| 14 | #include "common/debug.h" | ||
| 15 | @@ -18,8 +22,46 @@ | ||
| 16 | # error SystemInfo_x11.cpp compiled without GPU_INFO_USE_X11 | ||
| 17 | #endif | ||
| 18 | |||
| 19 | +#if defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 20 | +#define GLX_RENDERER_VENDOR_ID_MESA 0x8183 | ||
| 21 | +#define GLX_RENDERER_DEVICE_ID_MESA 0x8184 | ||
| 22 | +#endif | ||
| 23 | + | ||
| 24 | namespace angle | ||
| 25 | { | ||
| 26 | + | ||
| 27 | +#if defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 28 | +bool CollectMesaCardInfo(std::vector<GPUDeviceInfo> *devices) | ||
| 29 | +{ | ||
| 30 | + unsigned int vid[3], did[3]; | ||
| 31 | + | ||
| 32 | + Display *display = XOpenDisplay(NULL); | ||
| 33 | + if (!display) { | ||
| 34 | + return false; | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + PFNGLXQUERYRENDERERINTEGERMESAPROC queryInteger = | ||
| 38 | + (PFNGLXQUERYRENDERERINTEGERMESAPROC) glXGetProcAddressARB((const GLubyte *) | ||
| 39 | + "glXQueryRendererIntegerMESA"); | ||
| 40 | + | ||
| 41 | + if (!queryInteger) | ||
| 42 | + return false; | ||
| 43 | + | ||
| 44 | + bool vendor_ret = | ||
| 45 | + queryInteger(display, 0, 0, GLX_RENDERER_VENDOR_ID_MESA, vid); | ||
| 46 | + bool device_ret = | ||
| 47 | + queryInteger(display, 0, 0, GLX_RENDERER_DEVICE_ID_MESA, did); | ||
| 48 | + | ||
| 49 | + if (vendor_ret && device_ret) { | ||
| 50 | + GPUDeviceInfo info; | ||
| 51 | + info.vendorId = vid[0]; | ||
| 52 | + info.deviceId = did[0]; | ||
| 53 | + devices->push_back(info); | ||
| 54 | + } | ||
| 55 | + | ||
| 56 | + return true; | ||
| 57 | +} | ||
| 58 | +#endif | ||
| 59 | |||
| 60 | bool GetNvidiaDriverVersionWithXNVCtrl(std::string *version) | ||
| 61 | { | ||
diff --git a/www/chromium/patches/patch-third_party_angle_src_libANGLE_Display_cpp b/www/chromium/patches/patch-third_party_angle_src_libANGLE_Display_cpp new file mode 100644 index 0000000..4a0faae --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_src_libANGLE_Display_cpp | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: third_party/angle/src/libANGLE/Display.cpp | ||
| 2 | --- third_party/angle/src/libANGLE/Display.cpp.orig | ||
| 3 | +++ third_party/angle/src/libANGLE/Display.cpp | ||
| 4 | @@ -55,7 +55,7 @@ | ||
| 5 | # include "libANGLE/renderer/gl/wgl/DisplayWGL.h" | ||
| 6 | # elif defined(ANGLE_PLATFORM_MACOS) || defined(ANGLE_PLATFORM_IOS) | ||
| 7 | # include "libANGLE/renderer/gl/apple/DisplayApple_api.h" | ||
| 8 | -# elif defined(ANGLE_PLATFORM_LINUX) | ||
| 9 | +# elif defined(ANGLE_PLATFORM_LINUX) || defined(ANGLE_PLATFORM_BSD) | ||
| 10 | # include "libANGLE/renderer/gl/egl/DisplayEGL.h" | ||
| 11 | # if defined(ANGLE_USE_GBM) | ||
| 12 | # include "libANGLE/renderer/gl/egl/gbm/DisplayGbm.h" | ||
| 13 | @@ -320,7 +320,7 @@ rx::DisplayImpl *CreateDisplayFromAttribs(EGLAttrib di | ||
| 14 | impl = rx::CreateDisplayCGLOrEAGL(state); | ||
| 15 | break; | ||
| 16 | |||
| 17 | -# elif defined(ANGLE_PLATFORM_LINUX) | ||
| 18 | +# elif defined(ANGLE_PLATFORM_LINUX) || defined(ANGLE_PLATFORM_BSD) | ||
| 19 | # if defined(ANGLE_USE_GBM) | ||
| 20 | if (platformType == 0) | ||
| 21 | { | ||
| 22 | @@ -365,7 +365,7 @@ rx::DisplayImpl *CreateDisplayFromAttribs(EGLAttrib di | ||
| 23 | #if defined(ANGLE_ENABLE_OPENGL) | ||
| 24 | # if defined(ANGLE_PLATFORM_WINDOWS) | ||
| 25 | impl = new rx::DisplayWGL(state); | ||
| 26 | -# elif defined(ANGLE_PLATFORM_LINUX) | ||
| 27 | +# elif defined(ANGLE_PLATFORM_LINUX) || defined(ANGLE_PLATFORM_BSD) | ||
| 28 | # if defined(ANGLE_USE_GBM) | ||
| 29 | if (platformType == 0 || | ||
| 30 | platformType == EGL_PLATFORM_VULKAN_DISPLAY_MODE_HEADLESS_ANGLE) | ||
| 31 | @@ -416,7 +416,7 @@ rx::DisplayImpl *CreateDisplayFromAttribs(EGLAttrib di | ||
| 32 | impl = rx::CreateVulkanWin32Display(state); | ||
| 33 | } | ||
| 34 | break; | ||
| 35 | -# elif defined(ANGLE_PLATFORM_LINUX) | ||
| 36 | +# elif defined(ANGLE_PLATFORM_LINUX) || defined(ANGLE_PLATFORM_BSD) | ||
| 37 | # if defined(ANGLE_USE_X11) | ||
| 38 | if (platformType == EGL_PLATFORM_X11_EXT && rx::IsVulkanXcbDisplayAvailable()) | ||
| 39 | { | ||
| 40 | @@ -1915,7 +1915,7 @@ static ClientExtensions GenerateClientExtensions() | ||
| 41 | extensions.x11Visual = true; | ||
| 42 | #endif | ||
| 43 | |||
| 44 | -#if defined(ANGLE_PLATFORM_LINUX) | ||
| 45 | +#if defined(ANGLE_PLATFORM_LINUX) || defined(ANGLE_PLATFORM_BSD) | ||
| 46 | extensions.platformANGLEDeviceTypeEGLANGLE = true; | ||
| 47 | #endif | ||
| 48 | |||
diff --git a/www/chromium/patches/patch-third_party_angle_src_libANGLE_formatutils_cpp b/www/chromium/patches/patch-third_party_angle_src_libANGLE_formatutils_cpp new file mode 100644 index 0000000..917c04f --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_src_libANGLE_formatutils_cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/angle/src/libANGLE/formatutils.cpp | ||
| 2 | --- third_party/angle/src/libANGLE/formatutils.cpp.orig | ||
| 3 | +++ third_party/angle/src/libANGLE/formatutils.cpp | ||
| 4 | @@ -1388,7 +1388,7 @@ static InternalFormatInfoMap BuildInternalFormatInfoMa | ||
| 5 | AddYUVFormat(&map, GL_G8_B8R8_2PLANE_420_UNORM_ANGLE, true, 8, 8, 8, 0, 0, GL_G8_B8R8_2PLANE_420_UNORM_ANGLE, GL_UNSIGNED_BYTE, GL_UNSIGNED_NORMALIZED, false, RequireExt<&Extensions::yuvInternalFormatANGLE>, RequireExt<&Extensions::yuvInternalFormatANGLE>, RequireExt<&Extensions::yuvInternalFormatANGLE>, NeverSupported, NeverSupported); | ||
| 6 | AddYUVFormat(&map, GL_G8_B8_R8_3PLANE_420_UNORM_ANGLE, true, 8, 8, 8, 0, 0, GL_G8_B8_R8_3PLANE_420_UNORM_ANGLE, GL_UNSIGNED_BYTE, GL_UNSIGNED_NORMALIZED, false, RequireExt<&Extensions::yuvInternalFormatANGLE>, RequireExt<&Extensions::yuvInternalFormatANGLE>, RequireExt<&Extensions::yuvInternalFormatANGLE>, NeverSupported, NeverSupported); | ||
| 7 | |||
| 8 | -#if defined(ANGLE_PLATFORM_LINUX) | ||
| 9 | +#if defined(ANGLE_PLATFORM_LINUX) || defined(ANGLE_PLATFORM_BSD) | ||
| 10 | // From GL_OES_required_internalformat | ||
| 11 | // The |shared| bit shouldn't be 2. But given this hits assertion when bits | ||
| 12 | // are checked, it's fine to have this bit set as 2 as a workaround. | ||
diff --git a/www/chromium/patches/patch-third_party_angle_src_libANGLE_renderer_driver_utils_h b/www/chromium/patches/patch-third_party_angle_src_libANGLE_renderer_driver_utils_h new file mode 100644 index 0000000..bb72ddd --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_src_libANGLE_renderer_driver_utils_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/angle/src/libANGLE/renderer/driver_utils.h | ||
| 2 | --- third_party/angle/src/libANGLE/renderer/driver_utils.h.orig | ||
| 3 | +++ third_party/angle/src/libANGLE/renderer/driver_utils.h | ||
| 4 | @@ -179,7 +179,7 @@ inline bool IsWindows() | ||
| 5 | |||
| 6 | inline bool IsLinux() | ||
| 7 | { | ||
| 8 | -#if defined(ANGLE_PLATFORM_LINUX) | ||
| 9 | +#if defined(ANGLE_PLATFORM_LINUX) || defined(ANGLE_PLATFORM_BSD) | ||
| 10 | return true; | ||
| 11 | #else | ||
| 12 | return false; | ||
diff --git a/www/chromium/patches/patch-third_party_angle_src_libANGLE_renderer_gl_glx_FunctionsGLX_cpp b/www/chromium/patches/patch-third_party_angle_src_libANGLE_renderer_gl_glx_FunctionsGLX_cpp new file mode 100644 index 0000000..6d5a0ba --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_src_libANGLE_renderer_gl_glx_FunctionsGLX_cpp | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: third_party/angle/src/libANGLE/renderer/gl/glx/FunctionsGLX.cpp | ||
| 2 | --- third_party/angle/src/libANGLE/renderer/gl/glx/FunctionsGLX.cpp.orig | ||
| 3 | +++ third_party/angle/src/libANGLE/renderer/gl/glx/FunctionsGLX.cpp | ||
| 4 | @@ -144,10 +144,10 @@ bool FunctionsGLX::initialize(Display *xDisplay, int s | ||
| 5 | // which a GLXWindow was ever created. | ||
| 6 | if (!sLibHandle) | ||
| 7 | { | ||
| 8 | - sLibHandle = dlopen("libGL.so.1", RTLD_NOW); | ||
| 9 | + sLibHandle = dlopen("libGL.so", RTLD_NOW); | ||
| 10 | if (!sLibHandle) | ||
| 11 | { | ||
| 12 | - *errorString = std::string("Could not dlopen libGL.so.1: ") + dlerror(); | ||
| 13 | + *errorString = std::string("Could not dlopen libGL.so: ") + dlerror(); | ||
| 14 | return false; | ||
| 15 | } | ||
| 16 | } | ||
diff --git a/www/chromium/patches/patch-third_party_angle_src_libANGLE_renderer_vulkan_DisplayVk_api_h b/www/chromium/patches/patch-third_party_angle_src_libANGLE_renderer_vulkan_DisplayVk_api_h new file mode 100644 index 0000000..91dac19 --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_src_libANGLE_renderer_vulkan_DisplayVk_api_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/angle/src/libANGLE/renderer/vulkan/DisplayVk_api.h | ||
| 2 | --- third_party/angle/src/libANGLE/renderer/vulkan/DisplayVk_api.h.orig | ||
| 3 | +++ third_party/angle/src/libANGLE/renderer/vulkan/DisplayVk_api.h | ||
| 4 | @@ -23,7 +23,7 @@ bool IsVulkanWin32DisplayAvailable(); | ||
| 5 | DisplayImpl *CreateVulkanWin32Display(const egl::DisplayState &state); | ||
| 6 | #endif // defined(ANGLE_PLATFORM_WINDOWS) | ||
| 7 | |||
| 8 | -#if defined(ANGLE_PLATFORM_LINUX) | ||
| 9 | +#if defined(ANGLE_PLATFORM_POSIX) | ||
| 10 | bool IsVulkanXcbDisplayAvailable(); | ||
| 11 | DisplayImpl *CreateVulkanXcbDisplay(const egl::DisplayState &state); | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-third_party_angle_util_BUILD_gn b/www/chromium/patches/patch-third_party_angle_util_BUILD_gn new file mode 100644 index 0000000..10711f7 --- /dev/null +++ b/www/chromium/patches/patch-third_party_angle_util_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/angle/util/BUILD.gn | ||
| 2 | --- third_party/angle/util/BUILD.gn.orig | ||
| 3 | +++ third_party/angle/util/BUILD.gn | ||
| 4 | @@ -200,7 +200,7 @@ foreach(is_shared_library, | ||
| 5 | ] | ||
| 6 | libs = [] | ||
| 7 | |||
| 8 | - if (is_linux || is_chromeos) { | ||
| 9 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | libs += [ | ||
| 11 | "rt", | ||
| 12 | "dl", | ||
diff --git a/www/chromium/patches/patch-third_party_blink_common_renderer_preferences_renderer_preferences_mojom_traits_cc b/www/chromium/patches/patch-third_party_blink_common_renderer_preferences_renderer_preferences_mojom_traits_cc new file mode 100644 index 0000000..05a105f --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_common_renderer_preferences_renderer_preferences_mojom_traits_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/common/renderer_preferences/renderer_preferences_mojom_traits.cc | ||
| 2 | --- third_party/blink/common/renderer_preferences/renderer_preferences_mojom_traits.cc.orig | ||
| 3 | +++ third_party/blink/common/renderer_preferences/renderer_preferences_mojom_traits.cc | ||
| 4 | @@ -64,7 +64,7 @@ bool StructTraits<blink::mojom::RendererPreferencesDat | ||
| 5 | if (!data.ReadAcceptLanguages(&out->accept_languages)) | ||
| 6 | return false; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | if (!data.ReadSystemFontFamilyName(&out->system_font_family_name)) | ||
| 11 | return false; | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-third_party_blink_public_common_renderer_preferences_renderer_preferences_h b/www/chromium/patches/patch-third_party_blink_public_common_renderer_preferences_renderer_preferences_h new file mode 100644 index 0000000..f71988c --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_public_common_renderer_preferences_renderer_preferences_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/public/common/renderer_preferences/renderer_preferences.h | ||
| 2 | --- third_party/blink/public/common/renderer_preferences/renderer_preferences.h.orig | ||
| 3 | +++ third_party/blink/public/common/renderer_preferences/renderer_preferences.h | ||
| 4 | @@ -50,7 +50,7 @@ struct BLINK_COMMON_EXPORT RendererPreferences { | ||
| 5 | bool webrtc_allow_legacy_tls_protocols{false}; | ||
| 6 | UserAgentOverride user_agent_override; | ||
| 7 | std::string accept_languages; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | std::string system_font_family_name; | ||
| 11 | #endif | ||
| 12 | #if BUILDFLAG(IS_WIN) | ||
diff --git a/www/chromium/patches/patch-third_party_blink_public_common_renderer_preferences_renderer_preferences_mojom_traits_h b/www/chromium/patches/patch-third_party_blink_public_common_renderer_preferences_renderer_preferences_mojom_traits_h new file mode 100644 index 0000000..c1717c3 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_public_common_renderer_preferences_renderer_preferences_mojom_traits_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/public/common/renderer_preferences/renderer_preferences_mojom_traits.h | ||
| 2 | --- third_party/blink/public/common/renderer_preferences/renderer_preferences_mojom_traits.h.orig | ||
| 3 | +++ third_party/blink/public/common/renderer_preferences/renderer_preferences_mojom_traits.h | ||
| 4 | @@ -157,7 +157,7 @@ struct BLINK_COMMON_EXPORT | ||
| 5 | return data.accept_languages; | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | static const std::string& system_font_family_name( | ||
| 11 | const ::blink::RendererPreferences& data) { | ||
| 12 | return data.system_font_family_name; | ||
diff --git a/www/chromium/patches/patch-third_party_blink_public_platform_web_vector_h b/www/chromium/patches/patch-third_party_blink_public_platform_web_vector_h new file mode 100644 index 0000000..077da4b --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_public_platform_web_vector_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/public/platform/web_vector.h | ||
| 2 | --- third_party/blink/public/platform/web_vector.h.orig | ||
| 3 | +++ third_party/blink/public/platform/web_vector.h | ||
| 4 | @@ -81,7 +81,7 @@ class WebVector { | ||
| 5 | // The vector can be populated using reserve() and emplace_back(). | ||
| 6 | WebVector() = default; | ||
| 7 | |||
| 8 | -#if defined(ARCH_CPU_64_BITS) | ||
| 9 | +#if defined(ARCH_CPU_64_BITS) || defined(__OpenBSD__) | ||
| 10 | // Create a vector with |size| default-constructed elements. We define | ||
| 11 | // a constructor with size_t otherwise we'd have a duplicate define. | ||
| 12 | explicit WebVector(size_t size) : data_(size) {} | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_bindings_scripts_bind_gen_style_format_py b/www/chromium/patches/patch-third_party_blink_renderer_bindings_scripts_bind_gen_style_format_py new file mode 100644 index 0000000..c788d30 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_bindings_scripts_bind_gen_style_format_py | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/bindings/scripts/bind_gen/style_format.py | ||
| 2 | --- third_party/blink/renderer/bindings/scripts/bind_gen/style_format.py.orig | ||
| 3 | +++ third_party/blink/renderer/bindings/scripts/bind_gen/style_format.py | ||
| 4 | @@ -28,7 +28,7 @@ def init(root_src_dir, enable_style_format=True): | ||
| 5 | root_src_dir = os.path.abspath(root_src_dir) | ||
| 6 | |||
| 7 | # Determine //buildtools/<platform>/ directory | ||
| 8 | - if sys.platform.startswith("linux"): | ||
| 9 | + if sys.platform.startswith(("linux","openbsd","freebsd")): | ||
| 10 | platform = "linux64" | ||
| 11 | exe_suffix = "" | ||
| 12 | elif sys.platform.startswith("darwin"): | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_build_scripts_run_with_pythonpath_py b/www/chromium/patches/patch-third_party_blink_renderer_build_scripts_run_with_pythonpath_py new file mode 100644 index 0000000..ee43454 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_build_scripts_run_with_pythonpath_py | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: third_party/blink/renderer/build/scripts/run_with_pythonpath.py | ||
| 2 | --- third_party/blink/renderer/build/scripts/run_with_pythonpath.py.orig | ||
| 3 | +++ third_party/blink/renderer/build/scripts/run_with_pythonpath.py | ||
| 4 | @@ -22,6 +22,7 @@ def main(): | ||
| 5 | existing_pp = ( | ||
| 6 | os.pathsep + env['PYTHONPATH']) if 'PYTHONPATH' in env else '' | ||
| 7 | env['PYTHONPATH'] = os.pathsep.join(python_paths) + existing_pp | ||
| 8 | + env['LD_LIBRARY_PATH'] = "${WRKSRC}/out/Release" | ||
| 9 | sys.exit(subprocess.call([sys.executable] + args, env=env)) | ||
| 10 | |||
| 11 | |||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_controller_blink_initializer_cc b/www/chromium/patches/patch-third_party_blink_renderer_controller_blink_initializer_cc new file mode 100644 index 0000000..3648d8c --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_controller_blink_initializer_cc | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | Index: third_party/blink/renderer/controller/blink_initializer.cc | ||
| 2 | --- third_party/blink/renderer/controller/blink_initializer.cc.orig | ||
| 3 | +++ third_party/blink/renderer/controller/blink_initializer.cc | ||
| 4 | @@ -71,12 +71,12 @@ | ||
| 5 | #include "third_party/blink/renderer/controller/oom_intervention_impl.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "third_party/blink/renderer/controller/memory_usage_monitor_posix.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 14 | - BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 15 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 16 | #include "third_party/blink/renderer/controller/highest_pmf_reporter.h" | ||
| 17 | #include "third_party/blink/renderer/controller/user_level_memory_pressure_signal_generator.h" | ||
| 18 | #endif | ||
| 19 | @@ -156,7 +156,7 @@ void InitializeCommon(Platform* platform, mojo::Binder | ||
| 20 | #endif | ||
| 21 | |||
| 22 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 23 | - BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) | ||
| 24 | + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 25 | // Initialize UserLevelMemoryPressureSignalGenerator so it starts monitoring. | ||
| 26 | if (UserLevelMemoryPressureSignalGenerator::Enabled()) | ||
| 27 | UserLevelMemoryPressureSignalGenerator::Instance(); | ||
| 28 | @@ -227,7 +227,7 @@ void BlinkInitializer::RegisterInterfaces(mojo::Binder | ||
| 29 | main_thread->GetTaskRunner()); | ||
| 30 | #endif | ||
| 31 | |||
| 32 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 33 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 34 | binders.Add(ConvertToBaseRepeatingCallback( | ||
| 35 | CrossThreadBindRepeating(&MemoryUsageMonitorPosix::Bind)), | ||
| 36 | main_thread->GetTaskRunner()); | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_controller_memory_usage_monitor_posix_cc b/www/chromium/patches/patch-third_party_blink_renderer_controller_memory_usage_monitor_posix_cc new file mode 100644 index 0000000..5b30f85 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_controller_memory_usage_monitor_posix_cc | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Index: third_party/blink/renderer/controller/memory_usage_monitor_posix.cc | ||
| 2 | --- third_party/blink/renderer/controller/memory_usage_monitor_posix.cc.orig | ||
| 3 | +++ third_party/blink/renderer/controller/memory_usage_monitor_posix.cc | ||
| 4 | @@ -128,15 +128,17 @@ void MemoryUsageMonitorPosix::ResetFileDescriptors() { | ||
| 5 | |||
| 6 | void MemoryUsageMonitorPosix::SetProcFiles(base::File statm_file, | ||
| 7 | base::File status_file) { | ||
| 8 | +#if !BUILDFLAG(IS_BSD) | ||
| 9 | DCHECK(statm_file.IsValid()); | ||
| 10 | DCHECK(status_file.IsValid()); | ||
| 11 | DCHECK_EQ(-1, statm_fd_.get()); | ||
| 12 | DCHECK_EQ(-1, status_fd_.get()); | ||
| 13 | statm_fd_.reset(statm_file.TakePlatformFile()); | ||
| 14 | status_fd_.reset(status_file.TakePlatformFile()); | ||
| 15 | +#endif | ||
| 16 | } | ||
| 17 | |||
| 18 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 19 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 20 | // static | ||
| 21 | void MemoryUsageMonitorPosix::Bind( | ||
| 22 | mojo::PendingReceiver<mojom::blink::MemoryUsageMonitorLinux> receiver) { | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_controller_memory_usage_monitor_posix_h b/www/chromium/patches/patch-third_party_blink_renderer_controller_memory_usage_monitor_posix_h new file mode 100644 index 0000000..fe58cd2 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_controller_memory_usage_monitor_posix_h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: third_party/blink/renderer/controller/memory_usage_monitor_posix.h | ||
| 2 | --- third_party/blink/renderer/controller/memory_usage_monitor_posix.h.orig | ||
| 3 | +++ third_party/blink/renderer/controller/memory_usage_monitor_posix.h | ||
| 4 | @@ -13,7 +13,7 @@ | ||
| 5 | #include "third_party/blink/renderer/controller/controller_export.h" | ||
| 6 | #include "third_party/blink/renderer/controller/memory_usage_monitor.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "third_party/blink/public/mojom/memory_usage_monitor_linux.mojom-blink.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -22,7 +22,7 @@ namespace blink { | ||
| 14 | // MemoryUsageMonitor implementation for Android and Linux. | ||
| 15 | class CONTROLLER_EXPORT MemoryUsageMonitorPosix | ||
| 16 | : public MemoryUsageMonitor | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | , | ||
| 20 | public mojom::blink::MemoryUsageMonitorLinux | ||
| 21 | #endif | ||
| 22 | @@ -30,7 +30,7 @@ class CONTROLLER_EXPORT MemoryUsageMonitorPosix | ||
| 23 | public: | ||
| 24 | MemoryUsageMonitorPosix() = default; | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | static void Bind( | ||
| 29 | mojo::PendingReceiver<mojom::blink::MemoryUsageMonitorLinux> receiver); | ||
| 30 | #endif | ||
| 31 | @@ -48,7 +48,7 @@ class CONTROLLER_EXPORT MemoryUsageMonitorPosix | ||
| 32 | uint64_t* vm_size, | ||
| 33 | uint64_t* vm_hwm_size); | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | // mojom::MemoryUsageMonitorLinux implementations: | ||
| 38 | void SetProcFiles(base::File statm_file, base::File status_file) override; | ||
| 39 | #endif | ||
| 40 | @@ -66,7 +66,7 @@ class CONTROLLER_EXPORT MemoryUsageMonitorPosix | ||
| 41 | base::ScopedFD statm_fd_; | ||
| 42 | base::ScopedFD status_fd_; | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | mojo::Receiver<mojom::blink::MemoryUsageMonitorLinux> receiver_{this}; | ||
| 47 | #endif | ||
| 48 | }; | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_core_editing_editing_behavior_cc b/www/chromium/patches/patch-third_party_blink_renderer_core_editing_editing_behavior_cc new file mode 100644 index 0000000..4cb22fa --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_core_editing_editing_behavior_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/core/editing/editing_behavior.cc | ||
| 2 | --- third_party/blink/renderer/core/editing/editing_behavior.cc.orig | ||
| 3 | +++ third_party/blink/renderer/core/editing/editing_behavior.cc | ||
| 4 | @@ -280,7 +280,7 @@ bool EditingBehavior::ShouldInsertCharacter(const Keyb | ||
| 5 | // unexpected behaviour | ||
| 6 | if (ch < ' ') | ||
| 7 | return false; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // According to XKB map no keyboard combinations with ctrl key are mapped to | ||
| 11 | // printable characters, however we need the filter as the DomKey/text could | ||
| 12 | // contain printable characters. | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_core_exported_web_view_impl_cc b/www/chromium/patches/patch-third_party_blink_renderer_core_exported_web_view_impl_cc new file mode 100644 index 0000000..5b08492 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_core_exported_web_view_impl_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/blink/renderer/core/exported/web_view_impl.cc | ||
| 2 | --- third_party/blink/renderer/core/exported/web_view_impl.cc.orig | ||
| 3 | +++ third_party/blink/renderer/core/exported/web_view_impl.cc | ||
| 4 | @@ -404,7 +404,7 @@ SkFontHinting RendererPreferencesToSkiaHinting( | ||
| 5 | const blink::RendererPreferences& prefs) { | ||
| 6 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 7 | // complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | if (!prefs.should_antialias_text) { | ||
| 11 | // When anti-aliasing is off, GTK maps all non-zero hinting settings to | ||
| 12 | // 'Normal' hinting so we do the same. Otherwise, folks who have 'Slight' | ||
| 13 | @@ -3159,7 +3159,7 @@ void WebViewImpl::UpdateFontRenderingFromRendererPrefs | ||
| 14 | renderer_preferences_.use_subpixel_positioning); | ||
| 15 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 16 | // complete. | ||
| 17 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) && \ | ||
| 18 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) && \ | ||
| 19 | !BUILDFLAG(IS_ANDROID) | ||
| 20 | if (!renderer_preferences_.system_font_family_name.empty()) { | ||
| 21 | WebFontRenderStyle::SetSystemFontFamily(blink::WebString::FromUTF8( | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_core_frame_web_frame_test_cc b/www/chromium/patches/patch-third_party_blink_renderer_core_frame_web_frame_test_cc new file mode 100644 index 0000000..22245b6 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_core_frame_web_frame_test_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/blink/renderer/core/frame/web_frame_test.cc | ||
| 2 | --- third_party/blink/renderer/core/frame/web_frame_test.cc.orig | ||
| 3 | +++ third_party/blink/renderer/core/frame/web_frame_test.cc | ||
| 4 | @@ -6310,7 +6310,7 @@ TEST_F(WebFrameTest, DISABLED_PositionForPointTest) { | ||
| 5 | EXPECT_EQ(64, ComputeOffset(layout_object, 1000, 1000)); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) | ||
| 10 | TEST_F(WebFrameTest, SelectRangeStaysHorizontallyAlignedWhenMoved) { | ||
| 11 | RegisterMockedHttpURLLoad("move_caret.html"); | ||
| 12 | |||
| 13 | @@ -6689,7 +6689,7 @@ TEST_F(CompositedSelectionBoundsTest, SVGBasic) { | ||
| 14 | TEST_F(CompositedSelectionBoundsTest, SVGTextWithFragments) { | ||
| 15 | RunTest("composited_selection_bounds_svg_text_with_fragments.html"); | ||
| 16 | } | ||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | #if !BUILDFLAG(IS_ANDROID) | ||
| 20 | TEST_F(CompositedSelectionBoundsTest, Input) { | ||
| 21 | web_view_helper_.GetWebView()->GetSettings()->SetDefaultFontSize(16); | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_core_html_canvas_canvas_async_blob_creator_cc b/www/chromium/patches/patch-third_party_blink_renderer_core_html_canvas_canvas_async_blob_creator_cc new file mode 100644 index 0000000..8a77ea5 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_core_html_canvas_canvas_async_blob_creator_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/core/html/canvas/canvas_async_blob_creator.cc | ||
| 2 | --- third_party/blink/renderer/core/html/canvas/canvas_async_blob_creator.cc.orig | ||
| 3 | +++ third_party/blink/renderer/core/html/canvas/canvas_async_blob_creator.cc | ||
| 4 | @@ -44,7 +44,7 @@ constexpr base::TimeDelta kEncodeRowSlackBeforeDeadlin | ||
| 5 | |||
| 6 | /* The value is based on user statistics on Nov 2017. */ | ||
| 7 | #if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 8 | - BUILDFLAG(IS_WIN)) | ||
| 9 | + BUILDFLAG(IS_WIN)) || BUILDFLAG(IS_BSD) | ||
| 10 | const double kIdleTaskStartTimeoutDelayMs = 1000.0; | ||
| 11 | #else | ||
| 12 | const double kIdleTaskStartTimeoutDelayMs = 4000.0; // For ChromeOS, Mobile | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_core_html_forms_internal_popup_menu_cc b/www/chromium/patches/patch-third_party_blink_renderer_core_html_forms_internal_popup_menu_cc new file mode 100644 index 0000000..3ecf049 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_core_html_forms_internal_popup_menu_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/core/html/forms/internal_popup_menu.cc | ||
| 2 | --- third_party/blink/renderer/core/html/forms/internal_popup_menu.cc.orig | ||
| 3 | +++ third_party/blink/renderer/core/html/forms/internal_popup_menu.cc | ||
| 4 | @@ -179,7 +179,7 @@ class InternalPopupMenu::ItemIterationContext { | ||
| 5 | is_in_group_(false), | ||
| 6 | buffer_(buffer) { | ||
| 7 | DCHECK(buffer_); | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // On other platforms, the <option> background color is the same as the | ||
| 11 | // <select> background color. On Linux, that makes the <option> | ||
| 12 | // background color very dark, so by default, try to use a lighter | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_core_inspector_inspector_memory_agent_cc b/www/chromium/patches/patch-third_party_blink_renderer_core_inspector_inspector_memory_agent_cc new file mode 100644 index 0000000..c7d5f19 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_core_inspector_inspector_memory_agent_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/core/inspector/inspector_memory_agent.cc | ||
| 2 | --- third_party/blink/renderer/core/inspector/inspector_memory_agent.cc.orig | ||
| 3 | +++ third_party/blink/renderer/core/inspector/inspector_memory_agent.cc | ||
| 4 | @@ -186,7 +186,7 @@ InspectorMemoryAgent::GetSamplingProfileById(uint32_t | ||
| 5 | |||
| 6 | Vector<String> InspectorMemoryAgent::Symbolize( | ||
| 7 | const WebVector<void*>& addresses) { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // TODO(alph): Move symbolization to the client. | ||
| 11 | Vector<void*> addresses_to_symbolize; | ||
| 12 | for (size_t i = 0; i < addresses.size(); i++) { | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_core_layout_layout_view_cc b/www/chromium/patches/patch-third_party_blink_renderer_core_layout_layout_view_cc new file mode 100644 index 0000000..fbe4b01 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_core_layout_layout_view_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/blink/renderer/core/layout/layout_view.cc | ||
| 2 | --- third_party/blink/renderer/core/layout/layout_view.cc.orig | ||
| 3 | +++ third_party/blink/renderer/core/layout/layout_view.cc | ||
| 4 | @@ -64,7 +64,7 @@ | ||
| 5 | #include "ui/display/screen_info.h" | ||
| 6 | #include "ui/gfx/geometry/quad_f.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "third_party/blink/renderer/platform/fonts/font_cache.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -359,7 +359,7 @@ void LayoutView::UpdateLayout() { | ||
| 14 | DCHECK(!layout_state_); | ||
| 15 | LayoutState root_layout_state(*this); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // The font code in FontPlatformData does not have a direct connection to the | ||
| 20 | // document, the frame or anything from which we could retrieve the device | ||
| 21 | // scale factor. After using zoom for DSF, the GraphicsContext does only ever | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_core_paint_paint_layer_cc b/www/chromium/patches/patch-third_party_blink_renderer_core_paint_paint_layer_cc new file mode 100644 index 0000000..3938dae --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_core_paint_paint_layer_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/core/paint/paint_layer.cc | ||
| 2 | --- third_party/blink/renderer/core/paint/paint_layer.cc.orig | ||
| 3 | +++ third_party/blink/renderer/core/paint/paint_layer.cc | ||
| 4 | @@ -108,7 +108,7 @@ namespace blink { | ||
| 5 | |||
| 6 | namespace { | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | struct SameSizeAsPaintLayer : GarbageCollected<PaintLayer>, DisplayItemClient { | ||
| 11 | // The bit fields may fit into the machine word of DisplayItemClient which | ||
| 12 | // has only 8-bit data. | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_core_scroll_scrollbar_theme_aura_cc b/www/chromium/patches/patch-third_party_blink_renderer_core_scroll_scrollbar_theme_aura_cc new file mode 100644 index 0000000..f5f4259 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_core_scroll_scrollbar_theme_aura_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc | ||
| 2 | --- third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc.orig | ||
| 3 | +++ third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc | ||
| 4 | @@ -151,7 +151,7 @@ bool ScrollbarThemeAura::SupportsDragSnapBack() const | ||
| 5 | // is true for at least GTK and QT apps). | ||
| 6 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 7 | // complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | return false; | ||
| 11 | #else | ||
| 12 | return true; | ||
| 13 | @@ -326,7 +326,7 @@ bool ScrollbarThemeAura::ShouldCenterOnThumb(const Scr | ||
| 14 | const WebMouseEvent& event) { | ||
| 15 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 16 | // complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | if (event.button == WebPointerProperties::Button::kMiddle) | ||
| 20 | return true; | ||
| 21 | #endif | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_modules_media_audio_audio_device_factory_cc b/www/chromium/patches/patch-third_party_blink_renderer_modules_media_audio_audio_device_factory_cc new file mode 100644 index 0000000..c126c4b --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_modules_media_audio_audio_device_factory_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/modules/media/audio/audio_device_factory.cc | ||
| 2 | --- third_party/blink/renderer/modules/media/audio/audio_device_factory.cc.orig | ||
| 3 | +++ third_party/blink/renderer/modules/media/audio/audio_device_factory.cc | ||
| 4 | @@ -34,7 +34,7 @@ AudioDeviceFactory* AudioDeviceFactory::factory_ = nul | ||
| 5 | namespace { | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Due to driver deadlock issues on Windows (http://crbug/422522) there is a | ||
| 11 | // chance device authorization response is never received from the browser side. | ||
| 12 | // In this case we will time out, to avoid renderer hang forever waiting for | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_modules_media_audio_audio_renderer_mixer_manager_test_cc b/www/chromium/patches/patch-third_party_blink_renderer_modules_media_audio_audio_renderer_mixer_manager_test_cc new file mode 100644 index 0000000..788ff79 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_modules_media_audio_audio_renderer_mixer_manager_test_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/modules/media/audio/audio_renderer_mixer_manager_test.cc | ||
| 2 | --- third_party/blink/renderer/modules/media/audio/audio_renderer_mixer_manager_test.cc.orig | ||
| 3 | +++ third_party/blink/renderer/modules/media/audio/audio_renderer_mixer_manager_test.cc | ||
| 4 | @@ -678,7 +678,7 @@ TEST_F(AudioRendererMixerManagerTest, MixerParamsLaten | ||
| 5 | mixer->get_output_params_for_testing().sample_rate()); | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | // Use 10 ms buffer (441 frames per buffer). | ||
| 11 | EXPECT_EQ(output_sample_rate / 100, | ||
| 12 | mixer->get_output_params_for_testing().frames_per_buffer()); | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_modules_peerconnection_webrtc_audio_renderer_test_cc b/www/chromium/patches/patch-third_party_blink_renderer_modules_peerconnection_webrtc_audio_renderer_test_cc new file mode 100644 index 0000000..33a40a9 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_modules_peerconnection_webrtc_audio_renderer_test_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/modules/peerconnection/webrtc_audio_renderer_test.cc | ||
| 2 | --- third_party/blink/renderer/modules/peerconnection/webrtc_audio_renderer_test.cc.orig | ||
| 3 | +++ third_party/blink/renderer/modules/peerconnection/webrtc_audio_renderer_test.cc | ||
| 4 | @@ -293,7 +293,7 @@ TEST_F(MAYBE_WebRtcAudioRendererTest, DISABLED_VerifyS | ||
| 5 | SetupRenderer(kDefaultOutputDeviceId); | ||
| 6 | renderer_proxy_->Start(); | ||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | static const int kExpectedBufferSize = kHardwareSampleRate / 100; | ||
| 11 | #elif BUILDFLAG(IS_ANDROID) | ||
| 12 | static const int kExpectedBufferSize = 2 * kHardwareSampleRate / 100; | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_modules_webaudio_audio_worklet_thread_test_cc b/www/chromium/patches/patch-third_party_blink_renderer_modules_webaudio_audio_worklet_thread_test_cc new file mode 100644 index 0000000..ed4e39d --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_modules_webaudio_audio_worklet_thread_test_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/modules/webaudio/audio_worklet_thread_test.cc | ||
| 2 | --- third_party/blink/renderer/modules/webaudio/audio_worklet_thread_test.cc.orig | ||
| 3 | +++ third_party/blink/renderer/modules/webaudio/audio_worklet_thread_test.cc | ||
| 4 | @@ -379,7 +379,7 @@ class AudioWorkletThreadPriorityTest | ||
| 5 | |||
| 6 | // TODO(crbug.com/1022888): The worklet thread priority is always NORMAL | ||
| 7 | // on OS_LINUX and OS_CHROMEOS regardless of the thread priority setting. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | if (expected_priority == base::ThreadPriority::REALTIME_AUDIO || | ||
| 11 | expected_priority == base::ThreadPriority::DISPLAY) { | ||
| 12 | EXPECT_EQ(actual_priority, base::ThreadPriority::NORMAL); | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_modules_webgl_webgl_rendering_context_base_cc b/www/chromium/patches/patch-third_party_blink_renderer_modules_webgl_webgl_rendering_context_base_cc new file mode 100644 index 0000000..9e9505e --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_modules_webgl_webgl_rendering_context_base_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc | ||
| 2 | --- third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc.orig | ||
| 3 | +++ third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc | ||
| 4 | @@ -6102,7 +6102,7 @@ void WebGLRenderingContextBase::TexImageHelperMediaVid | ||
| 5 | constexpr bool kAllowZeroCopyImages = true; | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // TODO(crbug.com/1175907): Only TexImage2D seems to work with the GPU path on | ||
| 11 | // Android M -- appears to work fine on R, but to avoid regressions in <video> | ||
| 12 | // limit to TexImage2D only for now. Fails conformance test on Nexus 5X: | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_modules_webgl_webgl_webcodecs_video_frame_cc b/www/chromium/patches/patch-third_party_blink_renderer_modules_webgl_webgl_webcodecs_video_frame_cc new file mode 100644 index 0000000..4a9f2b6 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_modules_webgl_webgl_webcodecs_video_frame_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/modules/webgl/webgl_webcodecs_video_frame.cc | ||
| 2 | --- third_party/blink/renderer/modules/webgl/webgl_webcodecs_video_frame.cc.orig | ||
| 3 | +++ third_party/blink/renderer/modules/webgl/webgl_webcodecs_video_frame.cc | ||
| 4 | @@ -99,7 +99,7 @@ bool WebGLWebCodecsVideoFrame::Supported(WebGLRenderin | ||
| 5 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 6 | // complete. | ||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | // TODO(jie.a.chen@intel.com): Add Linux support. | ||
| 11 | return false; | ||
| 12 | #elif BUILDFLAG(IS_MAC) | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_BUILD_gn b/www/chromium/patches/patch-third_party_blink_renderer_platform_BUILD_gn new file mode 100644 index 0000000..55208a4 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/BUILD.gn | ||
| 2 | --- third_party/blink/renderer/platform/BUILD.gn.orig | ||
| 3 | +++ third_party/blink/renderer/platform/BUILD.gn | ||
| 4 | @@ -1904,7 +1904,7 @@ static_library("test_support") { | ||
| 5 | ] | ||
| 6 | |||
| 7 | # fuzzed_data_provider may not work with a custom toolchain. | ||
| 8 | - if (custom_toolchain == "" && is_clang) { | ||
| 9 | + if ((custom_toolchain == "" && is_clang) && !is_bsd) { | ||
| 10 | sources += [ | ||
| 11 | "testing/fuzzed_data_provider.cc", | ||
| 12 | "testing/fuzzed_data_provider.h", | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_cache_cc b/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_cache_cc new file mode 100644 index 0000000..db1a665 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_cache_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/fonts/font_cache.cc | ||
| 2 | --- third_party/blink/renderer/platform/fonts/font_cache.cc.orig | ||
| 3 | +++ third_party/blink/renderer/platform/fonts/font_cache.cc | ||
| 4 | @@ -87,7 +87,7 @@ extern const char kNotoColorEmojiCompat[] = "Noto Colo | ||
| 5 | |||
| 6 | SkFontMgr* FontCache::static_font_manager_ = nullptr; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | float FontCache::device_scale_factor_ = 1.0; | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -120,7 +120,7 @@ FontCache::FontCache() : font_manager_(sk_ref_sp(stati | ||
| 14 | FontPlatformData* FontCache::SystemFontPlatformData( | ||
| 15 | const FontDescription& font_description) { | ||
| 16 | const AtomicString& family = FontCache::SystemFontFamily(); | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | if (family.IsEmpty() || family == font_family_names::kSystemUi) | ||
| 20 | return nullptr; | ||
| 21 | #else | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_cache_h b/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_cache_h new file mode 100644 index 0000000..da1e285 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_cache_h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/fonts/font_cache.h | ||
| 2 | --- third_party/blink/renderer/platform/fonts/font_cache.h.orig | ||
| 3 | +++ third_party/blink/renderer/platform/fonts/font_cache.h | ||
| 4 | @@ -59,7 +59,7 @@ | ||
| 5 | #include "third_party/skia/include/core/SkFontMgr.h" | ||
| 6 | #include "third_party/skia/include/core/SkRefCnt.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/gfx/font_fallback_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -184,7 +184,7 @@ class PLATFORM_EXPORT FontCache final { | ||
| 14 | static void PrewarmFamily(const AtomicString& family_name) {} | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // These are needed for calling QueryRenderStyleForStrike, since | ||
| 20 | // gfx::GetFontRenderParams makes distinctions based on DSF. | ||
| 21 | static float DeviceScaleFactor() { return device_scale_factor_; } | ||
| 22 | @@ -267,7 +267,7 @@ class PLATFORM_EXPORT FontCache final { | ||
| 23 | const char* locale_family_name); | ||
| 24 | #endif // BUILDFLAG(IS_ANDROID) | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | static bool GetFontForCharacter(UChar32, | ||
| 29 | const char* preferred_locale, | ||
| 30 | gfx::FallbackFontData*); | ||
| 31 | @@ -388,7 +388,7 @@ class PLATFORM_EXPORT FontCache final { | ||
| 32 | const FontFaceCreationParams&, | ||
| 33 | std::string& name); | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | static AtomicString GetFamilyNameForCharacter(SkFontMgr*, | ||
| 38 | UChar32, | ||
| 39 | const FontDescription&, | ||
| 40 | @@ -430,7 +430,7 @@ class PLATFORM_EXPORT FontCache final { | ||
| 41 | std::unique_ptr<FallbackFamilyStyleCache> fallback_params_cache_; | ||
| 42 | #endif // BUILDFLAG(IS_WIN) | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | static float device_scale_factor_; | ||
| 47 | #endif | ||
| 48 | |||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_description_cc b/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_description_cc new file mode 100644 index 0000000..325dd5e --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_description_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/fonts/font_description.cc | ||
| 2 | --- third_party/blink/renderer/platform/fonts/font_description.cc.orig | ||
| 3 | +++ third_party/blink/renderer/platform/fonts/font_description.cc | ||
| 4 | @@ -39,7 +39,7 @@ | ||
| 5 | #include "third_party/blink/renderer/platform/wtf/text/string_hash.h" | ||
| 6 | #include "third_party/blink/renderer/platform/wtf/text/string_hasher.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "third_party/blink/renderer/platform/fonts/font_cache.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -262,7 +262,7 @@ FontCacheKey FontDescription::CacheKey( | ||
| 14 | static_cast<unsigned>(fields_.orientation_) << 1 | // bit 2-3 | ||
| 15 | static_cast<unsigned>(fields_.subpixel_text_position_); // bit 1 | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | float device_scale_factor_for_key = FontCache::DeviceScaleFactor(); | ||
| 20 | #else | ||
| 21 | float device_scale_factor_for_key = 1.0f; | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_metrics_cc b/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_metrics_cc new file mode 100644 index 0000000..9e870d7 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_metrics_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/fonts/font_metrics.cc | ||
| 2 | --- third_party/blink/renderer/platform/fonts/font_metrics.cc.orig | ||
| 3 | +++ third_party/blink/renderer/platform/fonts/font_metrics.cc | ||
| 4 | @@ -39,7 +39,7 @@ | ||
| 5 | namespace blink { | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 8 | - BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | // This is the largest VDMX table which we'll try to load and parse. | ||
| 11 | static const size_t kMaxVDMXTableSize = 1024 * 1024; // 1 MB | ||
| 12 | #endif | ||
| 13 | @@ -69,7 +69,7 @@ void FontMetrics::AscentDescentWithHacks( | ||
| 14 | bool is_vdmx_valid = false; | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 17 | - BUILDFLAG(IS_FUCHSIA) | ||
| 18 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | // Manually digging up VDMX metrics is only applicable when bytecode hinting | ||
| 20 | // using FreeType. With DirectWrite or CoreText, no bytecode hinting is ever | ||
| 21 | // done. This code should be pushed into FreeType (hinted font metrics). | ||
| 22 | @@ -117,7 +117,7 @@ void FontMetrics::AscentDescentWithHacks( | ||
| 23 | if (descent < metrics.fDescent) { | ||
| 24 | visual_overflow_inflation_for_descent = 1; | ||
| 25 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 26 | - BUILDFLAG(IS_FUCHSIA) | ||
| 27 | + BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 28 | // When subpixel positioning is enabled, if the descent is rounded down, | ||
| 29 | // the descent part of the glyph may be truncated when displayed in a | ||
| 30 | // 'overflow: hidden' container. To avoid that, borrow 1 unit from the | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_unique_name_lookup_cc b/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_unique_name_lookup_cc new file mode 100644 index 0000000..037f1ce --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_unique_name_lookup_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/fonts/font_unique_name_lookup.cc | ||
| 2 | --- third_party/blink/renderer/platform/fonts/font_unique_name_lookup.cc.orig | ||
| 3 | +++ third_party/blink/renderer/platform/fonts/font_unique_name_lookup.cc | ||
| 4 | @@ -9,7 +9,7 @@ | ||
| 5 | #if BUILDFLAG(IS_ANDROID) | ||
| 6 | #include "third_party/blink/public/mojom/font_unique_name_lookup/font_unique_name_lookup.mojom-blink.h" | ||
| 7 | #include "third_party/blink/renderer/platform/fonts/android/font_unique_name_lookup_android.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "third_party/blink/renderer/platform/fonts/linux/font_unique_name_lookup_linux.h" | ||
| 11 | #elif BUILDFLAG(IS_WIN) | ||
| 12 | #include "third_party/blink/renderer/platform/fonts/win/font_unique_name_lookup_win.h" | ||
| 13 | @@ -24,7 +24,7 @@ std::unique_ptr<FontUniqueNameLookup> | ||
| 14 | FontUniqueNameLookup::GetPlatformUniqueNameLookup() { | ||
| 15 | #if BUILDFLAG(IS_ANDROID) | ||
| 16 | return std::make_unique<FontUniqueNameLookupAndroid>(); | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | return std::make_unique<FontUniqueNameLookupLinux>(); | ||
| 20 | #elif BUILDFLAG(IS_WIN) | ||
| 21 | return std::make_unique<FontUniqueNameLookupWin>(); | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_skia_font_cache_skia_cc b/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_skia_font_cache_skia_cc new file mode 100644 index 0000000..1f8d968 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_skia_font_cache_skia_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/fonts/skia/font_cache_skia.cc | ||
| 2 | --- third_party/blink/renderer/platform/fonts/skia/font_cache_skia.cc.orig | ||
| 3 | +++ third_party/blink/renderer/platform/fonts/skia/font_cache_skia.cc | ||
| 4 | @@ -60,7 +60,7 @@ AtomicString ToAtomicString(const SkString& str) { | ||
| 5 | return AtomicString::FromUTF8(str.c_str(), str.size()); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // This function is called on android or when we are emulating android fonts on | ||
| 11 | // linux and the embedder has overriden the default fontManager with | ||
| 12 | // WebFontRendering::setSkiaFontMgr. | ||
| 13 | @@ -236,7 +236,7 @@ sk_sp<SkTypeface> FontCache::CreateTypeface( | ||
| 14 | } | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 19 | // On linux if the fontManager has been overridden then we should be calling | ||
| 20 | // the embedder provided font Manager rather than calling | ||
| 21 | // SkTypeface::CreateFromName which may redirect the call to the default font | ||
| 22 | @@ -263,7 +263,7 @@ std::unique_ptr<FontPlatformData> FontCache::CreateFon | ||
| 23 | std::string name; | ||
| 24 | |||
| 25 | sk_sp<SkTypeface> typeface; | ||
| 26 | -#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | bool noto_color_emoji_from_gmscore = false; | ||
| 29 | #if BUILDFLAG(IS_ANDROID) | ||
| 30 | // Use the unique local matching pathway for fetching Noto Color Emoji Compat | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_graphics_begin_frame_provider_cc b/www/chromium/patches/patch-third_party_blink_renderer_platform_graphics_begin_frame_provider_cc new file mode 100644 index 0000000..cdbeef0 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_graphics_begin_frame_provider_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/graphics/begin_frame_provider.cc | ||
| 2 | --- third_party/blink/renderer/platform/graphics/begin_frame_provider.cc.orig | ||
| 3 | +++ third_party/blink/renderer/platform/graphics/begin_frame_provider.cc | ||
| 4 | @@ -74,7 +74,11 @@ void BeginFrameProvider::CreateCompositorFrameSinkIfNe | ||
| 5 | |||
| 6 | // Once we are using RAF, this thread is driving Display updates. Update | ||
| 7 | // priority accordingly. | ||
| 8 | + // pledge(2) | ||
| 9 | + // stop this baloney | ||
| 10 | +#if !defined(OS_OPENBSD) | ||
| 11 | base::PlatformThread::SetCurrentThreadPriority(base::ThreadPriority::DISPLAY); | ||
| 12 | +#endif | ||
| 13 | |||
| 14 | mojo::Remote<mojom::blink::EmbeddedFrameSinkProvider> provider; | ||
| 15 | Platform::Current()->GetBrowserInterfaceBroker()->GetInterface( | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_graphics_video_frame_submitter_cc b/www/chromium/patches/patch-third_party_blink_renderer_platform_graphics_video_frame_submitter_cc new file mode 100644 index 0000000..b7df2b5 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_graphics_video_frame_submitter_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/graphics/video_frame_submitter.cc | ||
| 2 | --- third_party/blink/renderer/platform/graphics/video_frame_submitter.cc.orig | ||
| 3 | +++ third_party/blink/renderer/platform/graphics/video_frame_submitter.cc | ||
| 4 | @@ -328,7 +328,7 @@ void VideoFrameSubmitter::OnBeginFrame( | ||
| 5 | continue; | ||
| 6 | auto& feedback = | ||
| 7 | timing_details.find(frame_token)->value.presentation_feedback; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // TODO: On Linux failure flag is unreliable, and perfectly rendered frames | ||
| 11 | // are reported as failures all the time. | ||
| 12 | bool presentation_failure = false; | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_scheduler_common_thread_cc b/www/chromium/patches/patch-third_party_blink_renderer_platform_scheduler_common_thread_cc new file mode 100644 index 0000000..6f6aa15 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_scheduler_common_thread_cc | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/scheduler/common/thread.cc | ||
| 2 | --- third_party/blink/renderer/platform/scheduler/common/thread.cc.orig | ||
| 3 | +++ third_party/blink/renderer/platform/scheduler/common/thread.cc | ||
| 4 | @@ -99,7 +99,8 @@ void Thread::CreateAndSetCompositorThread() { | ||
| 5 | std::make_unique<scheduler::CompositorThread>(params); | ||
| 6 | compositor_thread->Init(); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +// pledge(2) | ||
| 10 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && !BUILDFLAG(IS_OPENBSD) | ||
| 11 | if (base::FeatureList::IsEnabled( | ||
| 12 | features::kBlinkCompositorUseDisplayThreadPriority)) { | ||
| 13 | compositor_thread->GetTaskRunner()->PostTaskAndReplyWithResult( | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_wtf_container_annotations_h b/www/chromium/patches/patch-third_party_blink_renderer_platform_wtf_container_annotations_h new file mode 100644 index 0000000..85e31d1 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_wtf_container_annotations_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/wtf/container_annotations.h | ||
| 2 | --- third_party/blink/renderer/platform/wtf/container_annotations.h.orig | ||
| 3 | +++ third_party/blink/renderer/platform/wtf/container_annotations.h | ||
| 4 | @@ -12,7 +12,7 @@ | ||
| 5 | // TODO(ochang): Remove the ARCH_CPU_X86_64 condition to enable this for X86 | ||
| 6 | // once the crashes there have been fixed: http://crbug.com/461406 | ||
| 7 | #if defined(ADDRESS_SANITIZER) && \ | ||
| 8 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ | ||
| 9 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && \ | ||
| 10 | defined(ARCH_CPU_X86_64) | ||
| 11 | |||
| 12 | // Annotations require buffers to begin on an 8-byte boundary. See | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_wtf_math_extras_h b/www/chromium/patches/patch-third_party_blink_renderer_platform_wtf_math_extras_h new file mode 100644 index 0000000..d34b462 --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_wtf_math_extras_h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/wtf/math_extras.h | ||
| 2 | --- third_party/blink/renderer/platform/wtf/math_extras.h.orig | ||
| 3 | +++ third_party/blink/renderer/platform/wtf/math_extras.h | ||
| 4 | @@ -127,6 +127,10 @@ constexpr float Grad2turn(float g) { | ||
| 5 | return g * (1.0f / 400.0f); | ||
| 6 | } | ||
| 7 | |||
| 8 | +#if defined(OS_FREEBSD) | ||
| 9 | +#pragma clang diagnostic push | ||
| 10 | +#pragma clang diagnostic ignored "-Winvalid-constexpr" | ||
| 11 | +#endif | ||
| 12 | constexpr double RoundHalfTowardsPositiveInfinity(double value) { | ||
| 13 | return std::floor(value + 0.5); | ||
| 14 | } | ||
| 15 | @@ -134,6 +138,9 @@ constexpr double RoundHalfTowardsPositiveInfinity(doub | ||
| 16 | constexpr float RoundHalfTowardsPositiveInfinity(float value) { | ||
| 17 | return std::floor(value + 0.5f); | ||
| 18 | } | ||
| 19 | +#if defined(OS_FREEBSD) | ||
| 20 | +#pragma clang diagnostic pop | ||
| 21 | +#endif | ||
| 22 | |||
| 23 | // ClampTo() is implemented by templated helper classes (to allow for partial | ||
| 24 | // template specialization) as well as several helper functions. | ||
diff --git a/www/chromium/patches/patch-third_party_blink_renderer_platform_wtf_stack_util_cc b/www/chromium/patches/patch-third_party_blink_renderer_platform_wtf_stack_util_cc new file mode 100644 index 0000000..6aad2cd --- /dev/null +++ b/www/chromium/patches/patch-third_party_blink_renderer_platform_wtf_stack_util_cc | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | Index: third_party/blink/renderer/platform/wtf/stack_util.cc | ||
| 2 | --- third_party/blink/renderer/platform/wtf/stack_util.cc.orig | ||
| 3 | +++ third_party/blink/renderer/platform/wtf/stack_util.cc | ||
| 4 | @@ -18,6 +18,11 @@ | ||
| 5 | extern "C" void* __libc_stack_end; // NOLINT | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if BUILDFLAG(IS_BSD) | ||
| 9 | +#include <sys/signal.h> | ||
| 10 | +#include <pthread_np.h> | ||
| 11 | +#endif | ||
| 12 | + | ||
| 13 | namespace WTF { | ||
| 14 | |||
| 15 | size_t GetUnderestimatedStackSize() { | ||
| 16 | @@ -62,6 +67,8 @@ size_t GetUnderestimatedStackSize() { | ||
| 17 | // low as 512k. | ||
| 18 | // | ||
| 19 | return 512 * 1024; | ||
| 20 | +#elif BUILDFLAG(IS_OPENBSD) | ||
| 21 | + return 512 * 1024; | ||
| 22 | #elif BUILDFLAG(IS_MAC) | ||
| 23 | // pthread_get_stacksize_np() returns too low a value for the main thread on | ||
| 24 | // OSX 10.9, | ||
| 25 | @@ -147,6 +154,13 @@ void* GetStackStart() { | ||
| 26 | ::GetCurrentThreadStackLimits(&lowLimit, &highLimit); | ||
| 27 | return reinterpret_cast<void*>(highLimit); | ||
| 28 | #endif | ||
| 29 | +#elif BUILDFLAG(IS_OPENBSD) | ||
| 30 | + stack_t ss; | ||
| 31 | + void *base; | ||
| 32 | + int error = pthread_stackseg_np(pthread_self(), &ss); | ||
| 33 | + CHECK(!error); | ||
| 34 | + base = (void*)((size_t) ss.ss_sp - ss.ss_size); | ||
| 35 | + return reinterpret_cast<uint8_t*>(base) + ss.ss_size; | ||
| 36 | #else | ||
| 37 | #error Unsupported getStackStart on this platform. | ||
| 38 | #endif | ||
diff --git a/www/chromium/patches/patch-third_party_boringssl_BUILD_generated_gni b/www/chromium/patches/patch-third_party_boringssl_BUILD_generated_gni new file mode 100644 index 0000000..cf50d9f --- /dev/null +++ b/www/chromium/patches/patch-third_party_boringssl_BUILD_generated_gni | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Index: third_party/boringssl/BUILD.generated.gni | ||
| 2 | --- third_party/boringssl/BUILD.generated.gni.orig | ||
| 3 | +++ third_party/boringssl/BUILD.generated.gni | ||
| 4 | @@ -81,6 +81,7 @@ crypto_sources = [ | ||
| 5 | "src/crypto/cpu_aarch64_apple.c", | ||
| 6 | "src/crypto/cpu_aarch64_fuchsia.c", | ||
| 7 | "src/crypto/cpu_aarch64_linux.c", | ||
| 8 | + "src/crypto/cpu_aarch64_openbsd.c", | ||
| 9 | "src/crypto/cpu_aarch64_win.c", | ||
| 10 | "src/crypto/cpu_arm.c", | ||
| 11 | "src/crypto/cpu_arm_linux.c", | ||
| 12 | @@ -184,6 +185,7 @@ crypto_sources = [ | ||
| 13 | "src/crypto/rand_extra/deterministic.c", | ||
| 14 | "src/crypto/rand_extra/forkunsafe.c", | ||
| 15 | "src/crypto/rand_extra/fuchsia.c", | ||
| 16 | + "src/crypto/rand_extra/arc4random.c", | ||
| 17 | "src/crypto/rand_extra/passive.c", | ||
| 18 | "src/crypto/rand_extra/rand_extra.c", | ||
| 19 | "src/crypto/rand_extra/windows.c", | ||
diff --git a/www/chromium/patches/patch-third_party_boringssl_BUILD_gn b/www/chromium/patches/patch-third_party_boringssl_BUILD_gn new file mode 100644 index 0000000..69f0183 --- /dev/null +++ b/www/chromium/patches/patch-third_party_boringssl_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/boringssl/BUILD.gn | ||
| 2 | --- third_party/boringssl/BUILD.gn.orig | ||
| 3 | +++ third_party/boringssl/BUILD.gn | ||
| 4 | @@ -92,7 +92,7 @@ if (is_win && !is_msan && current_cpu != "arm64") { | ||
| 5 | public_configs = [ ":no_asm_config" ] | ||
| 6 | } | ||
| 7 | } else if (current_cpu == "arm64") { | ||
| 8 | - if (is_linux || is_chromeos || is_android) { | ||
| 9 | + if ((is_linux || is_chromeos || is_android) && !is_freebsd) { | ||
| 10 | sources += crypto_sources_linux_aarch64 | ||
| 11 | } else if (is_apple) { | ||
| 12 | sources += crypto_sources_apple_aarch64 | ||
diff --git a/www/chromium/patches/patch-third_party_boringssl_src_crypto_cpu_aarch64_openbsd_c b/www/chromium/patches/patch-third_party_boringssl_src_crypto_cpu_aarch64_openbsd_c new file mode 100644 index 0000000..1b1ab9c --- /dev/null +++ b/www/chromium/patches/patch-third_party_boringssl_src_crypto_cpu_aarch64_openbsd_c | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | Index: third_party/boringssl/src/crypto/cpu_aarch64_openbsd.c | ||
| 2 | --- third_party/boringssl/src/crypto/cpu_aarch64_openbsd.c.orig | ||
| 3 | +++ third_party/boringssl/src/crypto/cpu_aarch64_openbsd.c | ||
| 4 | @@ -0,0 +1,57 @@ | ||
| 5 | +/* Copyright (c) 2022, Robert Nagy <robert@openbsd.org> | ||
| 6 | + * | ||
| 7 | + * Permission to use, copy, modify, and/or distribute this software for any | ||
| 8 | + * purpose with or without fee is hereby granted, provided that the above | ||
| 9 | + * copyright notice and this permission notice appear in all copies. | ||
| 10 | + * | ||
| 11 | + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 12 | + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 13 | + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | ||
| 14 | + * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 15 | + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION | ||
| 16 | + * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||
| 17 | + * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ | ||
| 18 | + | ||
| 19 | +#include <openssl/cpu.h> | ||
| 20 | + | ||
| 21 | +#if defined(OPENSSL_AARCH64) && defined(OPENSSL_OPENBSD) && \ | ||
| 22 | + !defined(OPENSSL_STATIC_ARMCAP) | ||
| 23 | + | ||
| 24 | +#include <sys/sysctl.h> | ||
| 25 | +#include <machine/cpu.h> | ||
| 26 | +#include <machine/armreg.h> | ||
| 27 | +#include <stdio.h> | ||
| 28 | + | ||
| 29 | +#include <openssl/arm_arch.h> | ||
| 30 | + | ||
| 31 | +#include "internal.h" | ||
| 32 | + | ||
| 33 | +extern uint32_t OPENSSL_armcap_P; | ||
| 34 | + | ||
| 35 | +void OPENSSL_cpuid_setup(void) { | ||
| 36 | + int isar0_mib[] = { CTL_MACHDEP, CPU_ID_AA64ISAR0 }; | ||
| 37 | + size_t len = sizeof(uint64_t); | ||
| 38 | + uint64_t cpu_id = 0; | ||
| 39 | + | ||
| 40 | + if (sysctl(isar0_mib, 2, &cpu_id, &len, NULL, 0) < 0) | ||
| 41 | + return; | ||
| 42 | + | ||
| 43 | + OPENSSL_armcap_P |= ARMV7_NEON; | ||
| 44 | + | ||
| 45 | + if (ID_AA64ISAR0_AES(cpu_id) >= ID_AA64ISAR0_AES_BASE) | ||
| 46 | + OPENSSL_armcap_P |= ARMV8_AES; | ||
| 47 | + | ||
| 48 | + if (ID_AA64ISAR0_AES(cpu_id) >= ID_AA64ISAR0_AES_PMULL) | ||
| 49 | + OPENSSL_armcap_P |= ARMV8_PMULL; | ||
| 50 | + | ||
| 51 | + if (ID_AA64ISAR0_SHA1(cpu_id) >= ID_AA64ISAR0_SHA1_BASE) | ||
| 52 | + OPENSSL_armcap_P |= ARMV8_SHA1; | ||
| 53 | + | ||
| 54 | + if (ID_AA64ISAR0_SHA2(cpu_id) >= ID_AA64ISAR0_SHA2_BASE) | ||
| 55 | + OPENSSL_armcap_P |= ARMV8_SHA256; | ||
| 56 | + | ||
| 57 | + if (ID_AA64ISAR0_SHA2(cpu_id) >= ID_AA64ISAR0_SHA2_512) | ||
| 58 | + OPENSSL_armcap_P |= ARMV8_SHA512; | ||
| 59 | +} | ||
| 60 | + | ||
| 61 | +#endif // OPENSSL_AARCH64 && OPENSSL_OPENBSD && !OPENSSL_STATIC_ARMCAP | ||
diff --git a/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_rand_internal_h b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_rand_internal_h new file mode 100644 index 0000000..098197f --- /dev/null +++ b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_rand_internal_h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/boringssl/src/crypto/fipsmodule/rand/internal.h | ||
| 2 | --- third_party/boringssl/src/crypto/fipsmodule/rand/internal.h.orig | ||
| 3 | +++ third_party/boringssl/src/crypto/fipsmodule/rand/internal.h | ||
| 4 | @@ -26,7 +26,8 @@ extern "C" { | ||
| 5 | |||
| 6 | |||
| 7 | #if !defined(OPENSSL_WINDOWS) && !defined(OPENSSL_FUCHSIA) && \ | ||
| 8 | - !defined(BORINGSSL_UNSAFE_DETERMINISTIC_MODE) && !defined(OPENSSL_TRUSTY) | ||
| 9 | + !defined(BORINGSSL_UNSAFE_DETERMINISTIC_MODE) && !defined(OPENSSL_TRUSTY) && \ | ||
| 10 | + !defined(OPENSSL_ARC4RANDOM) | ||
| 11 | #define OPENSSL_URANDOM | ||
| 12 | #endif | ||
| 13 | |||
diff --git a/www/chromium/patches/patch-third_party_boringssl_src_crypto_rand_extra_arc4random_c b/www/chromium/patches/patch-third_party_boringssl_src_crypto_rand_extra_arc4random_c new file mode 100644 index 0000000..47c0b7f --- /dev/null +++ b/www/chromium/patches/patch-third_party_boringssl_src_crypto_rand_extra_arc4random_c | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | Index: third_party/boringssl/src/crypto/rand_extra/arc4random.c | ||
| 2 | --- third_party/boringssl/src/crypto/rand_extra/arc4random.c.orig | ||
| 3 | +++ third_party/boringssl/src/crypto/rand_extra/arc4random.c | ||
| 4 | @@ -0,0 +1,33 @@ | ||
| 5 | +/* Copyright (c) 2018, Robert Nagy <robert@openbsd.org> | ||
| 6 | + * | ||
| 7 | + * Permission to use, copy, modify, and/or distribute this software for any | ||
| 8 | + * purpose with or without fee is hereby granted, provided that the above | ||
| 9 | + * copyright notice and this permission notice appear in all copies. | ||
| 10 | + * | ||
| 11 | + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 12 | + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 13 | + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | ||
| 14 | + * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 15 | + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION | ||
| 16 | + * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||
| 17 | + * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ | ||
| 18 | + | ||
| 19 | +#define _BSD_SOURCE 1 | ||
| 20 | + | ||
| 21 | +#include <openssl/rand.h> | ||
| 22 | + | ||
| 23 | +#if defined(OPENSSL_ARC4RANDOM) && !defined(BORINGSSL_UNSAFE_DETERMINISTIC_MODE) | ||
| 24 | + | ||
| 25 | +#include <stdlib.h> | ||
| 26 | + | ||
| 27 | +#include "../fipsmodule/rand/internal.h" | ||
| 28 | + | ||
| 29 | +void CRYPTO_sysrand_for_seed(uint8_t *out, size_t requested) { | ||
| 30 | + CRYPTO_sysrand(out, requested); | ||
| 31 | +} | ||
| 32 | + | ||
| 33 | +void CRYPTO_sysrand(uint8_t *out, size_t requested) { | ||
| 34 | + arc4random_buf(out, requested); | ||
| 35 | +} | ||
| 36 | + | ||
| 37 | +#endif // OPENSSL_ARC4RANDOM && !BORINGSSL_UNSAFE_DETERMINISTIC_MODE | ||
diff --git a/www/chromium/patches/patch-third_party_boringssl_src_crypto_refcount_c11_c b/www/chromium/patches/patch-third_party_boringssl_src_crypto_refcount_c11_c new file mode 100644 index 0000000..d17ab23 --- /dev/null +++ b/www/chromium/patches/patch-third_party_boringssl_src_crypto_refcount_c11_c | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/boringssl/src/crypto/refcount_c11.c | ||
| 2 | --- third_party/boringssl/src/crypto/refcount_c11.c.orig | ||
| 3 | +++ third_party/boringssl/src/crypto/refcount_c11.c | ||
| 4 | @@ -24,6 +24,9 @@ | ||
| 5 | |||
| 6 | #include <openssl/type_check.h> | ||
| 7 | |||
| 8 | +#if !defined(__cplusplus) && !defined(static_assert) | ||
| 9 | +#define static_assert _Static_assert | ||
| 10 | +#endif | ||
| 11 | |||
| 12 | // See comment above the typedef of CRYPTO_refcount_t about these tests. | ||
| 13 | static_assert(alignof(CRYPTO_refcount_t) == alignof(_Atomic CRYPTO_refcount_t), | ||
diff --git a/www/chromium/patches/patch-third_party_boringssl_src_include_openssl_base_h b/www/chromium/patches/patch-third_party_boringssl_src_include_openssl_base_h new file mode 100644 index 0000000..cc065fd --- /dev/null +++ b/www/chromium/patches/patch-third_party_boringssl_src_include_openssl_base_h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: third_party/boringssl/src/include/openssl/base.h | ||
| 2 | --- third_party/boringssl/src/include/openssl/base.h.orig | ||
| 3 | +++ third_party/boringssl/src/include/openssl/base.h | ||
| 4 | @@ -153,6 +153,11 @@ extern "C" { | ||
| 5 | #define OPENSSL_FUCHSIA | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if defined(__OpenBSD__) | ||
| 9 | +#define OPENSSL_OPENBSD | ||
| 10 | +#define OPENSSL_ARC4RANDOM | ||
| 11 | +#endif | ||
| 12 | + | ||
| 13 | #if defined(__TRUSTY__) | ||
| 14 | #define OPENSSL_TRUSTY | ||
| 15 | #define OPENSSL_NO_THREADS_CORRUPT_MEMORY_AND_LEAK_SECRETS_IF_THREADED | ||
diff --git a/www/chromium/patches/patch-third_party_brotli_common_platform_h b/www/chromium/patches/patch-third_party_brotli_common_platform_h new file mode 100644 index 0000000..a3db9a0 --- /dev/null +++ b/www/chromium/patches/patch-third_party_brotli_common_platform_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/brotli/common/platform.h | ||
| 2 | --- third_party/brotli/common/platform.h.orig | ||
| 3 | +++ third_party/brotli/common/platform.h | ||
| 4 | @@ -28,7 +28,7 @@ | ||
| 5 | #include <brotli/port.h> | ||
| 6 | #include <brotli/types.h> | ||
| 7 | |||
| 8 | -#if defined(OS_LINUX) || defined(OS_CYGWIN) || defined(__EMSCRIPTEN__) | ||
| 9 | +#if defined(OS_LINUX) || defined(OS_CYGWIN) || defined(__EMSCRIPTEN__) || defined(OS_BSD) | ||
| 10 | #include <endian.h> | ||
| 11 | #elif defined(OS_FREEBSD) | ||
| 12 | #include <machine/endian.h> | ||
diff --git a/www/chromium/patches/patch-third_party_crashpad_crashpad_build_crashpad_buildconfig_gni b/www/chromium/patches/patch-third_party_crashpad_crashpad_build_crashpad_buildconfig_gni new file mode 100644 index 0000000..1f3f006 --- /dev/null +++ b/www/chromium/patches/patch-third_party_crashpad_crashpad_build_crashpad_buildconfig_gni | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/crashpad/crashpad/build/crashpad_buildconfig.gni | ||
| 2 | --- third_party/crashpad/crashpad/build/crashpad_buildconfig.gni.orig | ||
| 3 | +++ third_party/crashpad/crashpad/build/crashpad_buildconfig.gni | ||
| 4 | @@ -58,7 +58,7 @@ if (crashpad_is_in_chromium) { | ||
| 5 | crashpad_is_mac = is_mac | ||
| 6 | crashpad_is_ios = is_ios | ||
| 7 | crashpad_is_win = is_win | ||
| 8 | - crashpad_is_linux = is_linux || is_chromeos | ||
| 9 | + crashpad_is_linux = (is_linux || is_chromeos) && !is_bsd | ||
| 10 | crashpad_is_android = is_android | ||
| 11 | crashpad_is_fuchsia = is_fuchsia | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-third_party_crashpad_crashpad_client_BUILD_gn b/www/chromium/patches/patch-third_party_crashpad_crashpad_client_BUILD_gn new file mode 100644 index 0000000..3eb19ec --- /dev/null +++ b/www/chromium/patches/patch-third_party_crashpad_crashpad_client_BUILD_gn | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: third_party/crashpad/crashpad/client/BUILD.gn | ||
| 2 | --- third_party/crashpad/crashpad/client/BUILD.gn.orig | ||
| 3 | +++ third_party/crashpad/crashpad/client/BUILD.gn | ||
| 4 | @@ -130,6 +130,13 @@ static_library("common") { | ||
| 5 | if (crashpad_is_win) { | ||
| 6 | sources += [ "crash_report_database_win.cc" ] | ||
| 7 | } | ||
| 8 | + | ||
| 9 | + if (crashpad_is_posix) { | ||
| 10 | + sources += [ | ||
| 11 | + "crashpad_client_posix.cc", | ||
| 12 | + ] | ||
| 13 | + } | ||
| 14 | + | ||
| 15 | if (crashpad_is_linux || crashpad_is_android || crashpad_is_fuchsia) { | ||
| 16 | sources += [ | ||
| 17 | "crash_report_database_generic.cc", | ||
diff --git a/www/chromium/patches/patch-third_party_crashpad_crashpad_client_crashpad_client_posix_cc b/www/chromium/patches/patch-third_party_crashpad_crashpad_client_crashpad_client_posix_cc new file mode 100644 index 0000000..0953a23 --- /dev/null +++ b/www/chromium/patches/patch-third_party_crashpad_crashpad_client_crashpad_client_posix_cc | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | Index: third_party/crashpad/crashpad/client/crashpad_client_posix.cc | ||
| 2 | --- third_party/crashpad/crashpad/client/crashpad_client_posix.cc.orig | ||
| 3 | +++ third_party/crashpad/crashpad/client/crashpad_client_posix.cc | ||
| 4 | @@ -0,0 +1,40 @@ | ||
| 5 | +// Copyright 2017 The Crashpad Authors. All rights reserved. | ||
| 6 | +// | ||
| 7 | +// Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 8 | +// you may not use this file except in compliance with the License. | ||
| 9 | +// You may obtain a copy of the License at | ||
| 10 | +// | ||
| 11 | +// http://www.apache.org/licenses/LICENSE-2.0 | ||
| 12 | +// | ||
| 13 | +// Unless required by applicable law or agreed to in writing, software | ||
| 14 | +// distributed under the License is distributed on an "AS IS" BASIS, | ||
| 15 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 16 | +// See the License for the specific language governing permissions and | ||
| 17 | +// limitations under the License. | ||
| 18 | + | ||
| 19 | +#include "client/crashpad_client.h" | ||
| 20 | + | ||
| 21 | +#include "base/logging.h" | ||
| 22 | +#include "base/notreached.h" | ||
| 23 | + | ||
| 24 | +namespace crashpad { | ||
| 25 | + | ||
| 26 | +CrashpadClient::CrashpadClient() {} | ||
| 27 | + | ||
| 28 | +CrashpadClient::~CrashpadClient() {} | ||
| 29 | + | ||
| 30 | +bool CrashpadClient::StartHandler( | ||
| 31 | + const base::FilePath& handler, | ||
| 32 | + const base::FilePath& database, | ||
| 33 | + const base::FilePath& metrics_dir, | ||
| 34 | + const std::string& url, | ||
| 35 | + const std::map<std::string, std::string>& annotations, | ||
| 36 | + const std::vector<std::string>& arguments, | ||
| 37 | + bool restartable, | ||
| 38 | + bool asynchronous_start, | ||
| 39 | + const std::vector<base::FilePath>& attachments) { | ||
| 40 | + NOTREACHED(); // TODO(scottmg): https://crashpad.chromium.org/bug/196 | ||
| 41 | + return false; | ||
| 42 | +} | ||
| 43 | + | ||
| 44 | +} // namespace crashpad | ||
diff --git a/www/chromium/patches/patch-third_party_crashpad_crashpad_minidump_minidump_misc_info_writer_cc b/www/chromium/patches/patch-third_party_crashpad_crashpad_minidump_minidump_misc_info_writer_cc new file mode 100644 index 0000000..590dee7 --- /dev/null +++ b/www/chromium/patches/patch-third_party_crashpad_crashpad_minidump_minidump_misc_info_writer_cc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc | ||
| 2 | --- third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc.orig | ||
| 3 | +++ third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc | ||
| 4 | @@ -119,6 +119,10 @@ std::string MinidumpMiscInfoDebugBuildString() { | ||
| 5 | static constexpr char kOS[] = "win"; | ||
| 6 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 7 | static constexpr char kOS[] = "fuchsia"; | ||
| 8 | +#elif defined(OS_OPENBSD) | ||
| 9 | + static constexpr char kOS[] = "openbsd"; | ||
| 10 | +#elif defined(OS_FREEBSD) | ||
| 11 | + static constexpr char kOS[] = "freebsd"; | ||
| 12 | #else | ||
| 13 | #error define kOS for this operating system | ||
| 14 | #endif | ||
diff --git a/www/chromium/patches/patch-third_party_crashpad_crashpad_util_misc_address_types_h b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_misc_address_types_h new file mode 100644 index 0000000..d73e1f4 --- /dev/null +++ b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_misc_address_types_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/crashpad/crashpad/util/misc/address_types.h | ||
| 2 | --- third_party/crashpad/crashpad/util/misc/address_types.h.orig | ||
| 3 | +++ third_party/crashpad/crashpad/util/misc/address_types.h | ||
| 4 | @@ -25,7 +25,7 @@ | ||
| 5 | #include <mach/mach_types.h> | ||
| 6 | #elif BUILDFLAG(IS_WIN) | ||
| 7 | #include "util/win/address_types.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "util/linux/address_types.h" | ||
| 11 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 12 | #include <zircon/types.h> | ||
| 13 | @@ -55,7 +55,7 @@ using VMSize = mach_vm_size_t; | ||
| 14 | using VMAddress = WinVMAddress; | ||
| 15 | using VMSize = WinVMSize; | ||
| 16 | |||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 19 | |||
| 20 | using VMAddress = LinuxVMAddress; | ||
| 21 | using VMSize = LinuxVMSize; | ||
diff --git a/www/chromium/patches/patch-third_party_crashpad_crashpad_util_misc_capture_context_h b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_misc_capture_context_h new file mode 100644 index 0000000..98b19ca --- /dev/null +++ b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_misc_capture_context_h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Index: third_party/crashpad/crashpad/util/misc/capture_context.h | ||
| 2 | --- third_party/crashpad/crashpad/util/misc/capture_context.h.orig | ||
| 3 | +++ third_party/crashpad/crashpad/util/misc/capture_context.h | ||
| 4 | @@ -21,7 +21,8 @@ | ||
| 5 | #include <mach/mach.h> | ||
| 6 | #elif BUILDFLAG(IS_WIN) | ||
| 7 | #include <windows.h> | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ | ||
| 10 | + BUILDFLAG(IS_FREEBSD) | ||
| 11 | #include <ucontext.h> | ||
| 12 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 13 | #include <signal.h> | ||
| 14 | @@ -38,7 +39,8 @@ using NativeCPUContext = arm_unified_thread_state; | ||
| 15 | #elif BUILDFLAG(IS_WIN) | ||
| 16 | using NativeCPUContext = CONTEXT; | ||
| 17 | #elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 18 | - BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) | ||
| 19 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 20 | + BUILDFLAG(IS_BSD) | ||
| 21 | using NativeCPUContext = ucontext_t; | ||
| 22 | #endif // BUILDFLAG(IS_APPLE) | ||
| 23 | |||
diff --git a/www/chromium/patches/patch-third_party_crashpad_crashpad_util_misc_metrics_cc b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_misc_metrics_cc new file mode 100644 index 0000000..465f988 --- /dev/null +++ b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_misc_metrics_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/crashpad/crashpad/util/misc/metrics.cc | ||
| 2 | --- third_party/crashpad/crashpad/util/misc/metrics.cc.orig | ||
| 3 | +++ third_party/crashpad/crashpad/util/misc/metrics.cc | ||
| 4 | @@ -25,7 +25,7 @@ | ||
| 5 | #define METRICS_OS_NAME "Win" | ||
| 6 | #elif BUILDFLAG(IS_ANDROID) | ||
| 7 | #define METRICS_OS_NAME "Android" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #define METRICS_OS_NAME "Linux" | ||
| 11 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 12 | #define METRICS_OS_NAME "Fuchsia" | ||
diff --git a/www/chromium/patches/patch-third_party_crashpad_crashpad_util_misc_uuid_cc b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_misc_uuid_cc new file mode 100644 index 0000000..2ba170f --- /dev/null +++ b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_misc_uuid_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/crashpad/crashpad/util/misc/uuid.cc | ||
| 2 | --- third_party/crashpad/crashpad/util/misc/uuid.cc.orig | ||
| 3 | +++ third_party/crashpad/crashpad/util/misc/uuid.cc | ||
| 4 | @@ -101,7 +101,7 @@ bool UUID::InitializeWithNew() { | ||
| 5 | InitializeFromBytes(uuid); | ||
| 6 | return true; | ||
| 7 | #elif BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | // Linux, Android, and Fuchsia do not provide a UUID generator in a | ||
| 11 | // widely-available system library. On Linux and Android, uuid_generate() | ||
| 12 | // from libuuid is not available everywhere. | ||
diff --git a/www/chromium/patches/patch-third_party_crashpad_crashpad_util_posix_close_multiple_cc b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_posix_close_multiple_cc new file mode 100644 index 0000000..b97cb80 --- /dev/null +++ b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_posix_close_multiple_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/crashpad/crashpad/util/posix/close_multiple.cc | ||
| 2 | --- third_party/crashpad/crashpad/util/posix/close_multiple.cc.orig | ||
| 3 | +++ third_party/crashpad/crashpad/util/posix/close_multiple.cc | ||
| 4 | @@ -72,7 +72,7 @@ void CloseNowOrOnExec(int fd, bool ebadf_ok) { | ||
| 5 | // This is an advantage over looping over all possible file descriptors, because | ||
| 6 | // no attempt needs to be made to close file descriptors that are not open. | ||
| 7 | bool CloseMultipleNowOrOnExecUsingFDDir(int min_fd, int preserve_fd) { | ||
| 8 | -#if BUILDFLAG(IS_APPLE) | ||
| 9 | +#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) | ||
| 10 | static constexpr char kFDDir[] = "/dev/fd"; | ||
| 11 | #elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 12 | static constexpr char kFDDir[] = "/proc/self/fd"; | ||
diff --git a/www/chromium/patches/patch-third_party_crashpad_crashpad_util_posix_drop_privileges_cc b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_posix_drop_privileges_cc new file mode 100644 index 0000000..88aaa2d --- /dev/null +++ b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_posix_drop_privileges_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/crashpad/crashpad/util/posix/drop_privileges.cc | ||
| 2 | --- third_party/crashpad/crashpad/util/posix/drop_privileges.cc.orig | ||
| 3 | +++ third_party/crashpad/crashpad/util/posix/drop_privileges.cc | ||
| 4 | @@ -25,7 +25,7 @@ void DropPrivileges() { | ||
| 5 | gid_t gid = getgid(); | ||
| 6 | uid_t uid = getuid(); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_APPLE) | ||
| 9 | +#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) | ||
| 10 | // Based on the POSIX.1-2008 2013 edition documentation for setreuid() and | ||
| 11 | // setregid(), setreuid() and setregid() alone should be sufficient to drop | ||
| 12 | // privileges. The standard specifies that the saved ID should be set to the | ||
diff --git a/www/chromium/patches/patch-third_party_crashpad_crashpad_util_posix_signals_cc b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_posix_signals_cc new file mode 100644 index 0000000..13649d7 --- /dev/null +++ b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_posix_signals_cc | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | Index: third_party/crashpad/crashpad/util/posix/signals.cc | ||
| 2 | --- third_party/crashpad/crashpad/util/posix/signals.cc.orig | ||
| 3 | +++ third_party/crashpad/crashpad/util/posix/signals.cc | ||
| 4 | @@ -51,7 +51,7 @@ constexpr int kCrashSignals[] = { | ||
| 5 | #if defined(SIGEMT) | ||
| 6 | SIGEMT, | ||
| 7 | #endif // defined(SIGEMT) | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | SIGXCPU, | ||
| 11 | SIGXFSZ, | ||
| 12 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 13 | @@ -91,7 +91,7 @@ constexpr int kTerminateSignals[] = { | ||
| 14 | SIGXCPU, | ||
| 15 | SIGXFSZ, | ||
| 16 | #endif // BUILDFLAG(IS_APPLE) | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | SIGIO, | ||
| 20 | #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 21 | }; | ||
| 22 | @@ -233,8 +233,12 @@ bool Signals::WillSignalReraiseAutonomously(const sigi | ||
| 23 | // remains. See 10.12.3 xnu-3789.41.3/bsd/kern/kern_sig.c | ||
| 24 | // psignal_internal(). | ||
| 25 | (code > 0 && | ||
| 26 | +#if defined(SI_ASYNCIO) | ||
| 27 | code != SI_ASYNCIO && | ||
| 28 | +#endif | ||
| 29 | +#if defined(SI_MESGQ) | ||
| 30 | code != SI_MESGQ && | ||
| 31 | +#endif | ||
| 32 | code != SI_QUEUE && | ||
| 33 | code != SI_TIMER && | ||
| 34 | code != SI_USER && | ||
diff --git a/www/chromium/patches/patch-third_party_crashpad_crashpad_util_posix_symbolic_constants_posix_cc b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_posix_symbolic_constants_posix_cc new file mode 100644 index 0000000..e018088 --- /dev/null +++ b/www/chromium/patches/patch-third_party_crashpad_crashpad_util_posix_symbolic_constants_posix_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/crashpad/crashpad/util/posix/symbolic_constants_posix.cc | ||
| 2 | --- third_party/crashpad/crashpad/util/posix/symbolic_constants_posix.cc.orig | ||
| 3 | +++ third_party/crashpad/crashpad/util/posix/symbolic_constants_posix.cc | ||
| 4 | @@ -66,7 +66,7 @@ constexpr const char* kSignalNames[] = { | ||
| 5 | "INFO", | ||
| 6 | "USR1", | ||
| 7 | "USR2", | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | #if defined(ARCH_CPU_MIPS_FAMILY) | ||
| 11 | "HUP", | ||
| 12 | "INT", | ||
| 13 | @@ -137,7 +137,7 @@ constexpr const char* kSignalNames[] = { | ||
| 14 | #endif // defined(ARCH_CPU_MIPS_FAMILY) | ||
| 15 | #endif | ||
| 16 | }; | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 19 | // NSIG is 64 to account for real-time signals. | ||
| 20 | static_assert(base::size(kSignalNames) == 32, "kSignalNames length"); | ||
| 21 | #else | ||
diff --git a/www/chromium/patches/patch-third_party_crc32c_BUILD_gn b/www/chromium/patches/patch-third_party_crc32c_BUILD_gn new file mode 100644 index 0000000..4a2998f --- /dev/null +++ b/www/chromium/patches/patch-third_party_crc32c_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/crc32c/BUILD.gn | ||
| 2 | --- third_party/crc32c/BUILD.gn.orig | ||
| 3 | +++ third_party/crc32c/BUILD.gn | ||
| 4 | @@ -47,7 +47,7 @@ config("crc32c_config") { | ||
| 5 | } | ||
| 6 | |||
| 7 | # Android added <sys/auxv.h> in API level 18. | ||
| 8 | - if (is_linux || is_chromeos || is_android) { | ||
| 9 | + if (is_linux || is_chromeos || is_android && !is_bsd) { | ||
| 10 | defines += [ | ||
| 11 | "HAVE_STRONG_GETAUXVAL=1", | ||
| 12 | "HAVE_WEAK_GETAUXVAL=1", | ||
diff --git a/www/chromium/patches/patch-third_party_dawn_include_dawn_native_VulkanBackend_h b/www/chromium/patches/patch-third_party_dawn_include_dawn_native_VulkanBackend_h new file mode 100644 index 0000000..bb600a9 --- /dev/null +++ b/www/chromium/patches/patch-third_party_dawn_include_dawn_native_VulkanBackend_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/dawn/include/dawn/native/VulkanBackend.h | ||
| 2 | --- third_party/dawn/include/dawn/native/VulkanBackend.h.orig | ||
| 3 | +++ third_party/dawn/include/dawn/native/VulkanBackend.h | ||
| 4 | @@ -69,7 +69,7 @@ namespace dawn::native::vulkan { | ||
| 5 | }; | ||
| 6 | |||
| 7 | // Can't use DAWN_PLATFORM_LINUX since header included in both Dawn and Chrome | ||
| 8 | -#ifdef __linux__ | ||
| 9 | +#if defined(__linux__) || defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 10 | |||
| 11 | // Common properties of external images represented by FDs. On successful import the file | ||
| 12 | // descriptor's ownership is transferred to the Dawn implementation and they shouldn't be | ||
diff --git a/www/chromium/patches/patch-third_party_dawn_src_dawn_common_Platform_h b/www/chromium/patches/patch-third_party_dawn_src_dawn_common_Platform_h new file mode 100644 index 0000000..5205a8a --- /dev/null +++ b/www/chromium/patches/patch-third_party_dawn_src_dawn_common_Platform_h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: third_party/dawn/src/dawn/common/Platform.h | ||
| 2 | --- third_party/dawn/src/dawn/common/Platform.h.orig | ||
| 3 | +++ third_party/dawn/src/dawn/common/Platform.h | ||
| 4 | @@ -26,6 +26,11 @@ | ||
| 5 | # error "Unsupported Windows platform." | ||
| 6 | # endif | ||
| 7 | |||
| 8 | +#elif defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 9 | +# define DAWN_PLATFORM_BSD 1 | ||
| 10 | +# define DAWN_PLATFORM_LINUX 1 | ||
| 11 | +# define DAWN_PLATFORM_POSIX 1 | ||
| 12 | + | ||
| 13 | #elif defined(__linux__) | ||
| 14 | # define DAWN_PLATFORM_LINUX 1 | ||
| 15 | # define DAWN_PLATFORM_POSIX 1 | ||
diff --git a/www/chromium/patches/patch-third_party_dawn_src_dawn_native_vulkan_BackendVk_cpp b/www/chromium/patches/patch-third_party_dawn_src_dawn_native_vulkan_BackendVk_cpp new file mode 100644 index 0000000..5a0a22a --- /dev/null +++ b/www/chromium/patches/patch-third_party_dawn_src_dawn_native_vulkan_BackendVk_cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp | ||
| 2 | --- third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp.orig | ||
| 3 | +++ third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp | ||
| 4 | @@ -37,7 +37,7 @@ constexpr char kSwiftshaderLibName[] = "libvk_swiftsha | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if defined(DAWN_PLATFORM_LINUX) | ||
| 8 | -# if defined(DAWN_PLATFORM_ANDROID) | ||
| 9 | +# if defined(DAWN_PLATFORM_ANDROID) || defined(DAWN_PLATFORM_BSD) | ||
| 10 | constexpr char kVulkanLibName[] = "libvulkan.so"; | ||
| 11 | # else | ||
| 12 | constexpr char kVulkanLibName[] = "libvulkan.so.1"; | ||
diff --git a/www/chromium/patches/patch-third_party_ffmpeg_BUILD_gn b/www/chromium/patches/patch-third_party_ffmpeg_BUILD_gn new file mode 100644 index 0000000..4773e0d --- /dev/null +++ b/www/chromium/patches/patch-third_party_ffmpeg_BUILD_gn | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: third_party/ffmpeg/BUILD.gn | ||
| 2 | --- third_party/ffmpeg/BUILD.gn.orig | ||
| 3 | +++ third_party/ffmpeg/BUILD.gn | ||
| 4 | @@ -349,7 +349,6 @@ target(link_target_type, "ffmpeg_internal") { | ||
| 5 | libs += [ | ||
| 6 | "m", | ||
| 7 | "z", | ||
| 8 | - "rt", | ||
| 9 | ] | ||
| 10 | } | ||
| 11 | if (is_component_ffmpeg) { | ||
diff --git a/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_arm64_config_h b/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_arm64_config_h new file mode 100644 index 0000000..b349ed0 --- /dev/null +++ b/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_arm64_config_h | |||
| @@ -0,0 +1,2791 @@ | |||
| 1 | Index: third_party/ffmpeg/chromium/config/Chrome/openbsd/arm64/config.h | ||
| 2 | --- third_party/ffmpeg/chromium/config/Chrome/openbsd/arm64/config.h.orig | ||
| 3 | +++ third_party/ffmpeg/chromium/config/Chrome/openbsd/arm64/config.h | ||
| 4 | @@ -0,0 +1,2787 @@ | ||
| 5 | +/* Automatically generated by configure - do not modify! */ | ||
| 6 | +#ifndef FFMPEG_CONFIG_H | ||
| 7 | +#define FFMPEG_CONFIG_H | ||
| 8 | +/* #define FFMPEG_CONFIGURATION "--disable-everything --disable-all --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --enable-avcodec --enable-avformat --enable-avutil --enable-fft --enable-rdft --enable-static --enable-libopus --disable-debug --disable-bzlib --disable-error-resilience --disable-iconv --disable-lzo --disable-network --disable-schannel --disable-sdl2 --disable-symver --disable-xlib --disable-zlib --disable-securetransport --disable-faan --disable-alsa --disable-autodetect --enable-decoder='vorbis,libopus,flac' --enable-decoder='pcm_u8,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le,mp3' --enable-decoder='pcm_s16be,pcm_s24be,pcm_mulaw,pcm_alaw' --enable-demuxer='ogg,matroska,wav,flac,mp3,mov' --enable-parser='opus,vorbis,flac,mpegaudio,vp9' --disable-linux-perf --x86asmexe=nasm --optflags=-O2 --enable-decoder='theora,vp8' --enable-parser='vp3,vp8' --arch=aarch64 --enable-armv8 --extra-cflags='-march=armv8-a' --enable-pic --cc=clang --cxx=clang++ --ld=clang --extra-ldflags='-fuse-ld=lld' --enable-decoder='aac,h264' --enable-demuxer=aac --enable-parser='aac,h264'" -- elide long configuration string from binary */ | ||
| 9 | +#define FFMPEG_LICENSE "LGPL version 2.1 or later" | ||
| 10 | +#define CONFIG_THIS_YEAR 2022 | ||
| 11 | +#define FFMPEG_DATADIR "/usr/local/share/ffmpeg" | ||
| 12 | +#define AVCONV_DATADIR "/usr/local/share/ffmpeg" | ||
| 13 | +#define CC_IDENT "OpenBSD clang version 13.0.0" | ||
| 14 | +#define OS_NAME openbsd | ||
| 15 | +#define av_restrict restrict | ||
| 16 | +#define EXTERN_PREFIX "" | ||
| 17 | +#define EXTERN_ASM | ||
| 18 | +#define BUILDSUF "" | ||
| 19 | +#define SLIBSUF ".so" | ||
| 20 | +#define HAVE_MMX2 HAVE_MMXEXT | ||
| 21 | +#define SWS_MAX_FILTER_SIZE 256 | ||
| 22 | +#define ARCH_AARCH64 1 | ||
| 23 | +#define ARCH_ALPHA 0 | ||
| 24 | +#define ARCH_ARM 0 | ||
| 25 | +#define ARCH_AVR32 0 | ||
| 26 | +#define ARCH_AVR32_AP 0 | ||
| 27 | +#define ARCH_AVR32_UC 0 | ||
| 28 | +#define ARCH_BFIN 0 | ||
| 29 | +#define ARCH_IA64 0 | ||
| 30 | +#define ARCH_LOONGARCH 0 | ||
| 31 | +#define ARCH_LOONGARCH32 0 | ||
| 32 | +#define ARCH_LOONGARCH64 0 | ||
| 33 | +#define ARCH_M68K 0 | ||
| 34 | +#define ARCH_MIPS 0 | ||
| 35 | +#define ARCH_MIPS64 0 | ||
| 36 | +#define ARCH_PARISC 0 | ||
| 37 | +#define ARCH_PPC 0 | ||
| 38 | +#define ARCH_PPC64 0 | ||
| 39 | +#define ARCH_RISCV 0 | ||
| 40 | +#define ARCH_S390 0 | ||
| 41 | +#define ARCH_SH4 0 | ||
| 42 | +#define ARCH_SPARC 0 | ||
| 43 | +#define ARCH_SPARC64 0 | ||
| 44 | +#define ARCH_TILEGX 0 | ||
| 45 | +#define ARCH_TILEPRO 0 | ||
| 46 | +#define ARCH_TOMI 0 | ||
| 47 | +#define ARCH_X86 0 | ||
| 48 | +#define ARCH_X86_32 0 | ||
| 49 | +#define ARCH_X86_64 0 | ||
| 50 | +#define HAVE_ARMV5TE 0 | ||
| 51 | +#define HAVE_ARMV6 0 | ||
| 52 | +#define HAVE_ARMV6T2 0 | ||
| 53 | +#define HAVE_ARMV8 1 | ||
| 54 | +#define HAVE_NEON 1 | ||
| 55 | +#define HAVE_VFP 1 | ||
| 56 | +#define HAVE_VFPV3 0 | ||
| 57 | +#define HAVE_SETEND 0 | ||
| 58 | +#define HAVE_ALTIVEC 0 | ||
| 59 | +#define HAVE_DCBZL 0 | ||
| 60 | +#define HAVE_LDBRX 0 | ||
| 61 | +#define HAVE_POWER8 0 | ||
| 62 | +#define HAVE_PPC4XX 0 | ||
| 63 | +#define HAVE_VSX 0 | ||
| 64 | +#define HAVE_AESNI 0 | ||
| 65 | +#define HAVE_AMD3DNOW 0 | ||
| 66 | +#define HAVE_AMD3DNOWEXT 0 | ||
| 67 | +#define HAVE_AVX 0 | ||
| 68 | +#define HAVE_AVX2 0 | ||
| 69 | +#define HAVE_AVX512 0 | ||
| 70 | +#define HAVE_FMA3 0 | ||
| 71 | +#define HAVE_FMA4 0 | ||
| 72 | +#define HAVE_MMX 0 | ||
| 73 | +#define HAVE_MMXEXT 0 | ||
| 74 | +#define HAVE_SSE 0 | ||
| 75 | +#define HAVE_SSE2 0 | ||
| 76 | +#define HAVE_SSE3 0 | ||
| 77 | +#define HAVE_SSE4 0 | ||
| 78 | +#define HAVE_SSE42 0 | ||
| 79 | +#define HAVE_SSSE3 0 | ||
| 80 | +#define HAVE_XOP 0 | ||
| 81 | +#define HAVE_CPUNOP 0 | ||
| 82 | +#define HAVE_I686 0 | ||
| 83 | +#define HAVE_MIPSFPU 0 | ||
| 84 | +#define HAVE_MIPS32R2 0 | ||
| 85 | +#define HAVE_MIPS32R5 0 | ||
| 86 | +#define HAVE_MIPS64R2 0 | ||
| 87 | +#define HAVE_MIPS32R6 0 | ||
| 88 | +#define HAVE_MIPS64R6 0 | ||
| 89 | +#define HAVE_MIPSDSP 0 | ||
| 90 | +#define HAVE_MIPSDSPR2 0 | ||
| 91 | +#define HAVE_MSA 0 | ||
| 92 | +#define HAVE_LOONGSON2 0 | ||
| 93 | +#define HAVE_LOONGSON3 0 | ||
| 94 | +#define HAVE_MMI 0 | ||
| 95 | +#define HAVE_LSX 0 | ||
| 96 | +#define HAVE_LASX 0 | ||
| 97 | +#define HAVE_ARMV5TE_EXTERNAL 0 | ||
| 98 | +#define HAVE_ARMV6_EXTERNAL 0 | ||
| 99 | +#define HAVE_ARMV6T2_EXTERNAL 0 | ||
| 100 | +#define HAVE_ARMV8_EXTERNAL 1 | ||
| 101 | +#define HAVE_NEON_EXTERNAL 1 | ||
| 102 | +#define HAVE_VFP_EXTERNAL 1 | ||
| 103 | +#define HAVE_VFPV3_EXTERNAL 0 | ||
| 104 | +#define HAVE_SETEND_EXTERNAL 0 | ||
| 105 | +#define HAVE_ALTIVEC_EXTERNAL 0 | ||
| 106 | +#define HAVE_DCBZL_EXTERNAL 0 | ||
| 107 | +#define HAVE_LDBRX_EXTERNAL 0 | ||
| 108 | +#define HAVE_POWER8_EXTERNAL 0 | ||
| 109 | +#define HAVE_PPC4XX_EXTERNAL 0 | ||
| 110 | +#define HAVE_VSX_EXTERNAL 0 | ||
| 111 | +#define HAVE_AESNI_EXTERNAL 0 | ||
| 112 | +#define HAVE_AMD3DNOW_EXTERNAL 0 | ||
| 113 | +#define HAVE_AMD3DNOWEXT_EXTERNAL 0 | ||
| 114 | +#define HAVE_AVX_EXTERNAL 0 | ||
| 115 | +#define HAVE_AVX2_EXTERNAL 0 | ||
| 116 | +#define HAVE_AVX512_EXTERNAL 0 | ||
| 117 | +#define HAVE_FMA3_EXTERNAL 0 | ||
| 118 | +#define HAVE_FMA4_EXTERNAL 0 | ||
| 119 | +#define HAVE_MMX_EXTERNAL 0 | ||
| 120 | +#define HAVE_MMXEXT_EXTERNAL 0 | ||
| 121 | +#define HAVE_SSE_EXTERNAL 0 | ||
| 122 | +#define HAVE_SSE2_EXTERNAL 0 | ||
| 123 | +#define HAVE_SSE3_EXTERNAL 0 | ||
| 124 | +#define HAVE_SSE4_EXTERNAL 0 | ||
| 125 | +#define HAVE_SSE42_EXTERNAL 0 | ||
| 126 | +#define HAVE_SSSE3_EXTERNAL 0 | ||
| 127 | +#define HAVE_XOP_EXTERNAL 0 | ||
| 128 | +#define HAVE_CPUNOP_EXTERNAL 0 | ||
| 129 | +#define HAVE_I686_EXTERNAL 0 | ||
| 130 | +#define HAVE_MIPSFPU_EXTERNAL 0 | ||
| 131 | +#define HAVE_MIPS32R2_EXTERNAL 0 | ||
| 132 | +#define HAVE_MIPS32R5_EXTERNAL 0 | ||
| 133 | +#define HAVE_MIPS64R2_EXTERNAL 0 | ||
| 134 | +#define HAVE_MIPS32R6_EXTERNAL 0 | ||
| 135 | +#define HAVE_MIPS64R6_EXTERNAL 0 | ||
| 136 | +#define HAVE_MIPSDSP_EXTERNAL 0 | ||
| 137 | +#define HAVE_MIPSDSPR2_EXTERNAL 0 | ||
| 138 | +#define HAVE_MSA_EXTERNAL 0 | ||
| 139 | +#define HAVE_LOONGSON2_EXTERNAL 0 | ||
| 140 | +#define HAVE_LOONGSON3_EXTERNAL 0 | ||
| 141 | +#define HAVE_MMI_EXTERNAL 0 | ||
| 142 | +#define HAVE_LSX_EXTERNAL 0 | ||
| 143 | +#define HAVE_LASX_EXTERNAL 0 | ||
| 144 | +#define HAVE_ARMV5TE_INLINE 0 | ||
| 145 | +#define HAVE_ARMV6_INLINE 0 | ||
| 146 | +#define HAVE_ARMV6T2_INLINE 0 | ||
| 147 | +#define HAVE_ARMV8_INLINE 1 | ||
| 148 | +#define HAVE_NEON_INLINE 1 | ||
| 149 | +#define HAVE_VFP_INLINE 1 | ||
| 150 | +#define HAVE_VFPV3_INLINE 0 | ||
| 151 | +#define HAVE_SETEND_INLINE 0 | ||
| 152 | +#define HAVE_ALTIVEC_INLINE 0 | ||
| 153 | +#define HAVE_DCBZL_INLINE 0 | ||
| 154 | +#define HAVE_LDBRX_INLINE 0 | ||
| 155 | +#define HAVE_POWER8_INLINE 0 | ||
| 156 | +#define HAVE_PPC4XX_INLINE 0 | ||
| 157 | +#define HAVE_VSX_INLINE 0 | ||
| 158 | +#define HAVE_AESNI_INLINE 0 | ||
| 159 | +#define HAVE_AMD3DNOW_INLINE 0 | ||
| 160 | +#define HAVE_AMD3DNOWEXT_INLINE 0 | ||
| 161 | +#define HAVE_AVX_INLINE 0 | ||
| 162 | +#define HAVE_AVX2_INLINE 0 | ||
| 163 | +#define HAVE_AVX512_INLINE 0 | ||
| 164 | +#define HAVE_FMA3_INLINE 0 | ||
| 165 | +#define HAVE_FMA4_INLINE 0 | ||
| 166 | +#define HAVE_MMX_INLINE 0 | ||
| 167 | +#define HAVE_MMXEXT_INLINE 0 | ||
| 168 | +#define HAVE_SSE_INLINE 0 | ||
| 169 | +#define HAVE_SSE2_INLINE 0 | ||
| 170 | +#define HAVE_SSE3_INLINE 0 | ||
| 171 | +#define HAVE_SSE4_INLINE 0 | ||
| 172 | +#define HAVE_SSE42_INLINE 0 | ||
| 173 | +#define HAVE_SSSE3_INLINE 0 | ||
| 174 | +#define HAVE_XOP_INLINE 0 | ||
| 175 | +#define HAVE_CPUNOP_INLINE 0 | ||
| 176 | +#define HAVE_I686_INLINE 0 | ||
| 177 | +#define HAVE_MIPSFPU_INLINE 0 | ||
| 178 | +#define HAVE_MIPS32R2_INLINE 0 | ||
| 179 | +#define HAVE_MIPS32R5_INLINE 0 | ||
| 180 | +#define HAVE_MIPS64R2_INLINE 0 | ||
| 181 | +#define HAVE_MIPS32R6_INLINE 0 | ||
| 182 | +#define HAVE_MIPS64R6_INLINE 0 | ||
| 183 | +#define HAVE_MIPSDSP_INLINE 0 | ||
| 184 | +#define HAVE_MIPSDSPR2_INLINE 0 | ||
| 185 | +#define HAVE_MSA_INLINE 0 | ||
| 186 | +#define HAVE_LOONGSON2_INLINE 0 | ||
| 187 | +#define HAVE_LOONGSON3_INLINE 0 | ||
| 188 | +#define HAVE_MMI_INLINE 0 | ||
| 189 | +#define HAVE_LSX_INLINE 0 | ||
| 190 | +#define HAVE_LASX_INLINE 0 | ||
| 191 | +#define HAVE_ALIGNED_STACK 1 | ||
| 192 | +#define HAVE_FAST_64BIT 1 | ||
| 193 | +#define HAVE_FAST_CLZ 1 | ||
| 194 | +#define HAVE_FAST_CMOV 0 | ||
| 195 | +#define HAVE_LOCAL_ALIGNED 0 | ||
| 196 | +#define HAVE_SIMD_ALIGN_16 1 | ||
| 197 | +#define HAVE_SIMD_ALIGN_32 0 | ||
| 198 | +#define HAVE_SIMD_ALIGN_64 0 | ||
| 199 | +#define HAVE_ATOMIC_CAS_PTR 0 | ||
| 200 | +#define HAVE_MACHINE_RW_BARRIER 0 | ||
| 201 | +#define HAVE_MEMORYBARRIER 0 | ||
| 202 | +#define HAVE_MM_EMPTY 0 | ||
| 203 | +#define HAVE_RDTSC 0 | ||
| 204 | +#define HAVE_SEM_TIMEDWAIT 1 | ||
| 205 | +#define HAVE_SYNC_VAL_COMPARE_AND_SWAP 1 | ||
| 206 | +#define HAVE_CABS 0 | ||
| 207 | +#define HAVE_CEXP 0 | ||
| 208 | +#define HAVE_INLINE_ASM 1 | ||
| 209 | +#define HAVE_SYMVER 0 | ||
| 210 | +#define HAVE_X86ASM 0 | ||
| 211 | +#define HAVE_BIGENDIAN 0 | ||
| 212 | +#define HAVE_FAST_UNALIGNED 1 | ||
| 213 | +#define HAVE_ARPA_INET_H 0 | ||
| 214 | +#define HAVE_ASM_TYPES_H 0 | ||
| 215 | +#define HAVE_CDIO_PARANOIA_H 0 | ||
| 216 | +#define HAVE_CDIO_PARANOIA_PARANOIA_H 0 | ||
| 217 | +#define HAVE_CUDA_H 0 | ||
| 218 | +#define HAVE_DISPATCH_DISPATCH_H 0 | ||
| 219 | +#define HAVE_DEV_BKTR_IOCTL_BT848_H 0 | ||
| 220 | +#define HAVE_DEV_BKTR_IOCTL_METEOR_H 0 | ||
| 221 | +#define HAVE_DEV_IC_BT8XX_H 1 | ||
| 222 | +#define HAVE_DEV_VIDEO_BKTR_IOCTL_BT848_H 0 | ||
| 223 | +#define HAVE_DEV_VIDEO_METEOR_IOCTL_METEOR_H 0 | ||
| 224 | +#define HAVE_DIRECT_H 0 | ||
| 225 | +#define HAVE_DIRENT_H 1 | ||
| 226 | +#define HAVE_DXGIDEBUG_H 0 | ||
| 227 | +#define HAVE_DXVA_H 0 | ||
| 228 | +#define HAVE_ES2_GL_H 0 | ||
| 229 | +#define HAVE_GSM_H 0 | ||
| 230 | +#define HAVE_IO_H 0 | ||
| 231 | +#define HAVE_LINUX_DMA_BUF_H 0 | ||
| 232 | +#define HAVE_LINUX_PERF_EVENT_H 0 | ||
| 233 | +#define HAVE_MACHINE_IOCTL_BT848_H 0 | ||
| 234 | +#define HAVE_MACHINE_IOCTL_METEOR_H 0 | ||
| 235 | +#define HAVE_MALLOC_H 0 | ||
| 236 | +#define HAVE_OPENCV2_CORE_CORE_C_H 0 | ||
| 237 | +#define HAVE_OPENGL_GL3_H 0 | ||
| 238 | +#define HAVE_POLL_H 1 | ||
| 239 | +#define HAVE_SYS_PARAM_H 1 | ||
| 240 | +#define HAVE_SYS_RESOURCE_H 1 | ||
| 241 | +#define HAVE_SYS_SELECT_H 1 | ||
| 242 | +#define HAVE_SYS_SOUNDCARD_H 0 | ||
| 243 | +#define HAVE_SYS_TIME_H 1 | ||
| 244 | +#define HAVE_SYS_UN_H 1 | ||
| 245 | +#define HAVE_SYS_VIDEOIO_H 1 | ||
| 246 | +#define HAVE_TERMIOS_H 1 | ||
| 247 | +#define HAVE_UDPLITE_H 0 | ||
| 248 | +#define HAVE_UNISTD_H 1 | ||
| 249 | +#define HAVE_VALGRIND_VALGRIND_H 0 | ||
| 250 | +#define HAVE_WINDOWS_H 0 | ||
| 251 | +#define HAVE_WINSOCK2_H 0 | ||
| 252 | +#define HAVE_INTRINSICS_NEON 1 | ||
| 253 | +#define HAVE_ATANF 1 | ||
| 254 | +#define HAVE_ATAN2F 1 | ||
| 255 | +#define HAVE_CBRT 1 | ||
| 256 | +#define HAVE_CBRTF 1 | ||
| 257 | +#define HAVE_COPYSIGN 1 | ||
| 258 | +#define HAVE_COSF 1 | ||
| 259 | +#define HAVE_ERF 1 | ||
| 260 | +#define HAVE_EXP2 1 | ||
| 261 | +#define HAVE_EXP2F 1 | ||
| 262 | +#define HAVE_EXPF 1 | ||
| 263 | +#define HAVE_HYPOT 1 | ||
| 264 | +#define HAVE_ISFINITE 1 | ||
| 265 | +#define HAVE_ISINF 1 | ||
| 266 | +#define HAVE_ISNAN 1 | ||
| 267 | +#define HAVE_LDEXPF 1 | ||
| 268 | +#define HAVE_LLRINT 1 | ||
| 269 | +#define HAVE_LLRINTF 1 | ||
| 270 | +#define HAVE_LOG2 1 | ||
| 271 | +#define HAVE_LOG2F 1 | ||
| 272 | +#define HAVE_LOG10F 1 | ||
| 273 | +#define HAVE_LRINT 1 | ||
| 274 | +#define HAVE_LRINTF 1 | ||
| 275 | +#define HAVE_POWF 1 | ||
| 276 | +#define HAVE_RINT 1 | ||
| 277 | +#define HAVE_ROUND 1 | ||
| 278 | +#define HAVE_ROUNDF 1 | ||
| 279 | +#define HAVE_SINF 1 | ||
| 280 | +#define HAVE_TRUNC 1 | ||
| 281 | +#define HAVE_TRUNCF 1 | ||
| 282 | +#define HAVE_DOS_PATHS 0 | ||
| 283 | +#define HAVE_LIBC_MSVCRT 0 | ||
| 284 | +#define HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS 0 | ||
| 285 | +#define HAVE_SECTION_DATA_REL_RO 1 | ||
| 286 | +#define HAVE_THREADS 1 | ||
| 287 | +#define HAVE_UWP 0 | ||
| 288 | +#define HAVE_WINRT 0 | ||
| 289 | +#define HAVE_ACCESS 1 | ||
| 290 | +#define HAVE_ALIGNED_MALLOC 0 | ||
| 291 | +#define HAVE_ARC4RANDOM 1 | ||
| 292 | +#define HAVE_CLOCK_GETTIME 1 | ||
| 293 | +#define HAVE_CLOSESOCKET 0 | ||
| 294 | +#define HAVE_COMMANDLINETOARGVW 0 | ||
| 295 | +#define HAVE_FCNTL 1 | ||
| 296 | +#define HAVE_GETADDRINFO 0 | ||
| 297 | +#define HAVE_GETHRTIME 0 | ||
| 298 | +#define HAVE_GETOPT 1 | ||
| 299 | +#define HAVE_GETMODULEHANDLE 0 | ||
| 300 | +#define HAVE_GETPROCESSAFFINITYMASK 0 | ||
| 301 | +#define HAVE_GETPROCESSMEMORYINFO 0 | ||
| 302 | +#define HAVE_GETPROCESSTIMES 0 | ||
| 303 | +#define HAVE_GETRUSAGE 1 | ||
| 304 | +#define HAVE_GETSTDHANDLE 0 | ||
| 305 | +#define HAVE_GETSYSTEMTIMEASFILETIME 0 | ||
| 306 | +#define HAVE_GETTIMEOFDAY 1 | ||
| 307 | +#define HAVE_GLOB 1 | ||
| 308 | +#define HAVE_GLXGETPROCADDRESS 0 | ||
| 309 | +#define HAVE_GMTIME_R 1 | ||
| 310 | +#define HAVE_INET_ATON 0 | ||
| 311 | +#define HAVE_ISATTY 1 | ||
| 312 | +#define HAVE_KBHIT 0 | ||
| 313 | +#define HAVE_LOCALTIME_R 1 | ||
| 314 | +#define HAVE_LSTAT 1 | ||
| 315 | +#define HAVE_LZO1X_999_COMPRESS 0 | ||
| 316 | +#define HAVE_MACH_ABSOLUTE_TIME 0 | ||
| 317 | +#define HAVE_MAPVIEWOFFILE 0 | ||
| 318 | +#define HAVE_MEMALIGN 0 | ||
| 319 | +#define HAVE_MKSTEMP 1 | ||
| 320 | +#define HAVE_MMAP 1 | ||
| 321 | +#define HAVE_MPROTECT 1 | ||
| 322 | +#define HAVE_NANOSLEEP 1 | ||
| 323 | +#define HAVE_PEEKNAMEDPIPE 0 | ||
| 324 | +#define HAVE_POSIX_MEMALIGN 1 | ||
| 325 | +#define HAVE_PTHREAD_CANCEL 1 | ||
| 326 | +#define HAVE_SCHED_GETAFFINITY 0 | ||
| 327 | +#define HAVE_SECITEMIMPORT 0 | ||
| 328 | +#define HAVE_SETCONSOLETEXTATTRIBUTE 0 | ||
| 329 | +#define HAVE_SETCONSOLECTRLHANDLER 0 | ||
| 330 | +#define HAVE_SETDLLDIRECTORY 0 | ||
| 331 | +#define HAVE_SETMODE 0 | ||
| 332 | +#define HAVE_SETRLIMIT 1 | ||
| 333 | +#define HAVE_SLEEP 0 | ||
| 334 | +#define HAVE_STRERROR_R 1 | ||
| 335 | +#define HAVE_SYSCONF 1 | ||
| 336 | +#define HAVE_SYSCTL 1 | ||
| 337 | +#define HAVE_USLEEP 1 | ||
| 338 | +#define HAVE_UTGETOSTYPEFROMSTRING 0 | ||
| 339 | +#define HAVE_VIRTUALALLOC 0 | ||
| 340 | +#define HAVE_WGLGETPROCADDRESS 0 | ||
| 341 | +#define HAVE_BCRYPT 0 | ||
| 342 | +#define HAVE_VAAPI_DRM 0 | ||
| 343 | +#define HAVE_VAAPI_X11 0 | ||
| 344 | +#define HAVE_VDPAU_X11 0 | ||
| 345 | +#define HAVE_PTHREADS 1 | ||
| 346 | +#define HAVE_OS2THREADS 0 | ||
| 347 | +#define HAVE_W32THREADS 0 | ||
| 348 | +#define HAVE_AS_ARCH_DIRECTIVE 0 | ||
| 349 | +#define HAVE_AS_DN_DIRECTIVE 0 | ||
| 350 | +#define HAVE_AS_FPU_DIRECTIVE 0 | ||
| 351 | +#define HAVE_AS_FUNC 0 | ||
| 352 | +#define HAVE_AS_OBJECT_ARCH 0 | ||
| 353 | +#define HAVE_ASM_MOD_Q 0 | ||
| 354 | +#define HAVE_BLOCKS_EXTENSION 0 | ||
| 355 | +#define HAVE_EBP_AVAILABLE 0 | ||
| 356 | +#define HAVE_EBX_AVAILABLE 0 | ||
| 357 | +#define HAVE_GNU_AS 0 | ||
| 358 | +#define HAVE_GNU_WINDRES 0 | ||
| 359 | +#define HAVE_IBM_ASM 0 | ||
| 360 | +#define HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS 0 | ||
| 361 | +#define HAVE_INLINE_ASM_LABELS 1 | ||
| 362 | +#define HAVE_INLINE_ASM_NONLOCAL_LABELS 1 | ||
| 363 | +#define HAVE_PRAGMA_DEPRECATED 1 | ||
| 364 | +#define HAVE_RSYNC_CONTIMEOUT 0 | ||
| 365 | +#define HAVE_SYMVER_ASM_LABEL 1 | ||
| 366 | +#define HAVE_SYMVER_GNU_ASM 1 | ||
| 367 | +/* #define HAVE_VFP_ARGS 0 -- softfp/hardfp selection is done by the chrome build */ | ||
| 368 | +#define HAVE_XFORM_ASM 0 | ||
| 369 | +#define HAVE_XMM_CLOBBERS 0 | ||
| 370 | +#define HAVE_KCMVIDEOCODECTYPE_HEVC 0 | ||
| 371 | +#define HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA 0 | ||
| 372 | +#define HAVE_KCMVIDEOCODECTYPE_VP9 0 | ||
| 373 | +#define HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 374 | +#define HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE 0 | ||
| 375 | +#define HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 376 | +#define HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE 0 | ||
| 377 | +#define HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE 0 | ||
| 378 | +#define HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 379 | +#define HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE 0 | ||
| 380 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ 0 | ||
| 381 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG 0 | ||
| 382 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_LINEAR 0 | ||
| 383 | +#define HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020 0 | ||
| 384 | +#define HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020 0 | ||
| 385 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020 0 | ||
| 386 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1 0 | ||
| 387 | +#define HAVE_SOCKLEN_T 0 | ||
| 388 | +#define HAVE_STRUCT_ADDRINFO 0 | ||
| 389 | +#define HAVE_STRUCT_GROUP_SOURCE_REQ 0 | ||
| 390 | +#define HAVE_STRUCT_IP_MREQ_SOURCE 0 | ||
| 391 | +#define HAVE_STRUCT_IPV6_MREQ 0 | ||
| 392 | +#define HAVE_STRUCT_MSGHDR_MSG_FLAGS 0 | ||
| 393 | +#define HAVE_STRUCT_POLLFD 0 | ||
| 394 | +#define HAVE_STRUCT_RUSAGE_RU_MAXRSS 1 | ||
| 395 | +#define HAVE_STRUCT_SCTP_EVENT_SUBSCRIBE 0 | ||
| 396 | +#define HAVE_STRUCT_SOCKADDR_IN6 0 | ||
| 397 | +#define HAVE_STRUCT_SOCKADDR_SA_LEN 0 | ||
| 398 | +#define HAVE_STRUCT_SOCKADDR_STORAGE 0 | ||
| 399 | +#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | ||
| 400 | +#define HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE 1 | ||
| 401 | +#define HAVE_GZIP 1 | ||
| 402 | +#define HAVE_LIBDRM_GETFB2 0 | ||
| 403 | +#define HAVE_MAKEINFO 1 | ||
| 404 | +#define HAVE_MAKEINFO_HTML 0 | ||
| 405 | +#define HAVE_OPENCL_D3D11 0 | ||
| 406 | +#define HAVE_OPENCL_DRM_ARM 0 | ||
| 407 | +#define HAVE_OPENCL_DRM_BEIGNET 0 | ||
| 408 | +#define HAVE_OPENCL_DXVA2 0 | ||
| 409 | +#define HAVE_OPENCL_VAAPI_BEIGNET 0 | ||
| 410 | +#define HAVE_OPENCL_VAAPI_INTEL_MEDIA 0 | ||
| 411 | +#define HAVE_PERL 1 | ||
| 412 | +#define HAVE_POD2MAN 1 | ||
| 413 | +#define HAVE_TEXI2HTML 0 | ||
| 414 | +#define HAVE_XMLLINT 1 | ||
| 415 | +#define HAVE_ZLIB_GZIP 0 | ||
| 416 | +#define CONFIG_DOC 0 | ||
| 417 | +#define CONFIG_HTMLPAGES 0 | ||
| 418 | +#define CONFIG_MANPAGES 0 | ||
| 419 | +#define CONFIG_PODPAGES 0 | ||
| 420 | +#define CONFIG_TXTPAGES 0 | ||
| 421 | +#define CONFIG_AVIO_LIST_DIR_EXAMPLE 1 | ||
| 422 | +#define CONFIG_AVIO_READING_EXAMPLE 1 | ||
| 423 | +#define CONFIG_DECODE_AUDIO_EXAMPLE 1 | ||
| 424 | +#define CONFIG_DECODE_VIDEO_EXAMPLE 1 | ||
| 425 | +#define CONFIG_DEMUXING_DECODING_EXAMPLE 1 | ||
| 426 | +#define CONFIG_ENCODE_AUDIO_EXAMPLE 1 | ||
| 427 | +#define CONFIG_ENCODE_VIDEO_EXAMPLE 1 | ||
| 428 | +#define CONFIG_EXTRACT_MVS_EXAMPLE 1 | ||
| 429 | +#define CONFIG_FILTER_AUDIO_EXAMPLE 0 | ||
| 430 | +#define CONFIG_FILTERING_AUDIO_EXAMPLE 0 | ||
| 431 | +#define CONFIG_FILTERING_VIDEO_EXAMPLE 0 | ||
| 432 | +#define CONFIG_HTTP_MULTICLIENT_EXAMPLE 1 | ||
| 433 | +#define CONFIG_HW_DECODE_EXAMPLE 1 | ||
| 434 | +#define CONFIG_METADATA_EXAMPLE 1 | ||
| 435 | +#define CONFIG_MUXING_EXAMPLE 0 | ||
| 436 | +#define CONFIG_QSVDEC_EXAMPLE 0 | ||
| 437 | +#define CONFIG_REMUXING_EXAMPLE 1 | ||
| 438 | +#define CONFIG_RESAMPLING_AUDIO_EXAMPLE 0 | ||
| 439 | +#define CONFIG_SCALING_VIDEO_EXAMPLE 0 | ||
| 440 | +#define CONFIG_TRANSCODE_AAC_EXAMPLE 0 | ||
| 441 | +#define CONFIG_TRANSCODING_EXAMPLE 0 | ||
| 442 | +#define CONFIG_VAAPI_ENCODE_EXAMPLE 0 | ||
| 443 | +#define CONFIG_VAAPI_TRANSCODE_EXAMPLE 0 | ||
| 444 | +#define CONFIG_AVISYNTH 0 | ||
| 445 | +#define CONFIG_FREI0R 0 | ||
| 446 | +#define CONFIG_LIBCDIO 0 | ||
| 447 | +#define CONFIG_LIBDAVS2 0 | ||
| 448 | +#define CONFIG_LIBRUBBERBAND 0 | ||
| 449 | +#define CONFIG_LIBVIDSTAB 0 | ||
| 450 | +#define CONFIG_LIBX264 0 | ||
| 451 | +#define CONFIG_LIBX265 0 | ||
| 452 | +#define CONFIG_LIBXAVS 0 | ||
| 453 | +#define CONFIG_LIBXAVS2 0 | ||
| 454 | +#define CONFIG_LIBXVID 0 | ||
| 455 | +#define CONFIG_DECKLINK 0 | ||
| 456 | +#define CONFIG_LIBFDK_AAC 0 | ||
| 457 | +#define CONFIG_LIBTLS 0 | ||
| 458 | +#define CONFIG_GMP 0 | ||
| 459 | +#define CONFIG_LIBARIBB24 0 | ||
| 460 | +#define CONFIG_LIBLENSFUN 0 | ||
| 461 | +#define CONFIG_LIBOPENCORE_AMRNB 0 | ||
| 462 | +#define CONFIG_LIBOPENCORE_AMRWB 0 | ||
| 463 | +#define CONFIG_LIBVO_AMRWBENC 0 | ||
| 464 | +#define CONFIG_MBEDTLS 0 | ||
| 465 | +#define CONFIG_RKMPP 0 | ||
| 466 | +#define CONFIG_LIBSMBCLIENT 0 | ||
| 467 | +#define CONFIG_CHROMAPRINT 0 | ||
| 468 | +#define CONFIG_GCRYPT 0 | ||
| 469 | +#define CONFIG_GNUTLS 0 | ||
| 470 | +#define CONFIG_JNI 0 | ||
| 471 | +#define CONFIG_LADSPA 0 | ||
| 472 | +#define CONFIG_LIBAOM 0 | ||
| 473 | +#define CONFIG_LIBASS 0 | ||
| 474 | +#define CONFIG_LIBBLURAY 0 | ||
| 475 | +#define CONFIG_LIBBS2B 0 | ||
| 476 | +#define CONFIG_LIBCACA 0 | ||
| 477 | +#define CONFIG_LIBCELT 0 | ||
| 478 | +#define CONFIG_LIBCODEC2 0 | ||
| 479 | +#define CONFIG_LIBDAV1D 0 | ||
| 480 | +#define CONFIG_LIBDC1394 0 | ||
| 481 | +#define CONFIG_LIBDRM 0 | ||
| 482 | +#define CONFIG_LIBFLITE 0 | ||
| 483 | +#define CONFIG_LIBFONTCONFIG 0 | ||
| 484 | +#define CONFIG_LIBFREETYPE 0 | ||
| 485 | +#define CONFIG_LIBFRIBIDI 0 | ||
| 486 | +#define CONFIG_LIBGLSLANG 0 | ||
| 487 | +#define CONFIG_LIBGME 0 | ||
| 488 | +#define CONFIG_LIBGSM 0 | ||
| 489 | +#define CONFIG_LIBIEC61883 0 | ||
| 490 | +#define CONFIG_LIBILBC 0 | ||
| 491 | +#define CONFIG_LIBJACK 0 | ||
| 492 | +#define CONFIG_LIBKLVANC 0 | ||
| 493 | +#define CONFIG_LIBKVAZAAR 0 | ||
| 494 | +#define CONFIG_LIBMODPLUG 0 | ||
| 495 | +#define CONFIG_LIBMP3LAME 0 | ||
| 496 | +#define CONFIG_LIBMYSOFA 0 | ||
| 497 | +#define CONFIG_LIBOPENCV 0 | ||
| 498 | +#define CONFIG_LIBOPENH264 0 | ||
| 499 | +#define CONFIG_LIBOPENJPEG 0 | ||
| 500 | +#define CONFIG_LIBOPENMPT 0 | ||
| 501 | +#define CONFIG_LIBOPENVINO 0 | ||
| 502 | +#define CONFIG_LIBOPUS 1 | ||
| 503 | +#define CONFIG_LIBPLACEBO 0 | ||
| 504 | +#define CONFIG_LIBPULSE 0 | ||
| 505 | +#define CONFIG_LIBRABBITMQ 0 | ||
| 506 | +#define CONFIG_LIBRAV1E 0 | ||
| 507 | +#define CONFIG_LIBRIST 0 | ||
| 508 | +#define CONFIG_LIBRSVG 0 | ||
| 509 | +#define CONFIG_LIBRTMP 0 | ||
| 510 | +#define CONFIG_LIBSHADERC 0 | ||
| 511 | +#define CONFIG_LIBSHINE 0 | ||
| 512 | +#define CONFIG_LIBSMBCLIENT 0 | ||
| 513 | +#define CONFIG_LIBSNAPPY 0 | ||
| 514 | +#define CONFIG_LIBSOXR 0 | ||
| 515 | +#define CONFIG_LIBSPEEX 0 | ||
| 516 | +#define CONFIG_LIBSRT 0 | ||
| 517 | +#define CONFIG_LIBSSH 0 | ||
| 518 | +#define CONFIG_LIBSVTAV1 0 | ||
| 519 | +#define CONFIG_LIBTENSORFLOW 0 | ||
| 520 | +#define CONFIG_LIBTESSERACT 0 | ||
| 521 | +#define CONFIG_LIBTHEORA 0 | ||
| 522 | +#define CONFIG_LIBTWOLAME 0 | ||
| 523 | +#define CONFIG_LIBUAVS3D 0 | ||
| 524 | +#define CONFIG_LIBV4L2 0 | ||
| 525 | +#define CONFIG_LIBVMAF 0 | ||
| 526 | +#define CONFIG_LIBVORBIS 0 | ||
| 527 | +#define CONFIG_LIBVPX 0 | ||
| 528 | +#define CONFIG_LIBWEBP 0 | ||
| 529 | +#define CONFIG_LIBXML2 0 | ||
| 530 | +#define CONFIG_LIBZIMG 0 | ||
| 531 | +#define CONFIG_LIBZMQ 0 | ||
| 532 | +#define CONFIG_LIBZVBI 0 | ||
| 533 | +#define CONFIG_LV2 0 | ||
| 534 | +#define CONFIG_MEDIACODEC 0 | ||
| 535 | +#define CONFIG_OPENAL 0 | ||
| 536 | +#define CONFIG_OPENGL 0 | ||
| 537 | +#define CONFIG_OPENSSL 0 | ||
| 538 | +#define CONFIG_POCKETSPHINX 0 | ||
| 539 | +#define CONFIG_VAPOURSYNTH 0 | ||
| 540 | +#define CONFIG_ALSA 0 | ||
| 541 | +#define CONFIG_APPKIT 0 | ||
| 542 | +#define CONFIG_AVFOUNDATION 0 | ||
| 543 | +#define CONFIG_BZLIB 0 | ||
| 544 | +#define CONFIG_COREIMAGE 0 | ||
| 545 | +#define CONFIG_ICONV 0 | ||
| 546 | +#define CONFIG_LIBXCB 0 | ||
| 547 | +#define CONFIG_LIBXCB_SHM 0 | ||
| 548 | +#define CONFIG_LIBXCB_SHAPE 0 | ||
| 549 | +#define CONFIG_LIBXCB_XFIXES 0 | ||
| 550 | +#define CONFIG_LZMA 0 | ||
| 551 | +#define CONFIG_MEDIAFOUNDATION 0 | ||
| 552 | +#define CONFIG_METAL 0 | ||
| 553 | +#define CONFIG_SCHANNEL 0 | ||
| 554 | +#define CONFIG_SDL2 0 | ||
| 555 | +#define CONFIG_SECURETRANSPORT 0 | ||
| 556 | +#define CONFIG_SNDIO 0 | ||
| 557 | +#define CONFIG_XLIB 0 | ||
| 558 | +#define CONFIG_ZLIB 0 | ||
| 559 | +#define CONFIG_CUDA_NVCC 0 | ||
| 560 | +#define CONFIG_CUDA_SDK 0 | ||
| 561 | +#define CONFIG_LIBNPP 0 | ||
| 562 | +#define CONFIG_LIBMFX 0 | ||
| 563 | +#define CONFIG_MMAL 0 | ||
| 564 | +#define CONFIG_OMX 0 | ||
| 565 | +#define CONFIG_OPENCL 0 | ||
| 566 | +#define CONFIG_AMF 0 | ||
| 567 | +#define CONFIG_AUDIOTOOLBOX 0 | ||
| 568 | +#define CONFIG_CRYSTALHD 0 | ||
| 569 | +#define CONFIG_CUDA 0 | ||
| 570 | +#define CONFIG_CUDA_LLVM 0 | ||
| 571 | +#define CONFIG_CUVID 0 | ||
| 572 | +#define CONFIG_D3D11VA 0 | ||
| 573 | +#define CONFIG_DXVA2 0 | ||
| 574 | +#define CONFIG_FFNVCODEC 0 | ||
| 575 | +#define CONFIG_NVDEC 0 | ||
| 576 | +#define CONFIG_NVENC 0 | ||
| 577 | +#define CONFIG_VAAPI 0 | ||
| 578 | +#define CONFIG_VDPAU 0 | ||
| 579 | +#define CONFIG_VIDEOTOOLBOX 0 | ||
| 580 | +#define CONFIG_VULKAN 0 | ||
| 581 | +#define CONFIG_V4L2_M2M 0 | ||
| 582 | +#define CONFIG_XVMC 0 | ||
| 583 | +#define CONFIG_FTRAPV 0 | ||
| 584 | +#define CONFIG_GRAY 0 | ||
| 585 | +#define CONFIG_HARDCODED_TABLES 0 | ||
| 586 | +#define CONFIG_OMX_RPI 0 | ||
| 587 | +#define CONFIG_RUNTIME_CPUDETECT 1 | ||
| 588 | +#define CONFIG_SAFE_BITSTREAM_READER 1 | ||
| 589 | +#define CONFIG_SHARED 0 | ||
| 590 | +#define CONFIG_SMALL 0 | ||
| 591 | +#define CONFIG_STATIC 1 | ||
| 592 | +#define CONFIG_SWSCALE_ALPHA 1 | ||
| 593 | +#define CONFIG_GPL 0 | ||
| 594 | +#define CONFIG_NONFREE 0 | ||
| 595 | +#define CONFIG_VERSION3 0 | ||
| 596 | +#define CONFIG_AVDEVICE 0 | ||
| 597 | +#define CONFIG_AVFILTER 0 | ||
| 598 | +#define CONFIG_SWSCALE 0 | ||
| 599 | +#define CONFIG_POSTPROC 0 | ||
| 600 | +#define CONFIG_AVFORMAT 1 | ||
| 601 | +#define CONFIG_AVCODEC 1 | ||
| 602 | +#define CONFIG_SWRESAMPLE 0 | ||
| 603 | +#define CONFIG_AVUTIL 1 | ||
| 604 | +#define CONFIG_FFPLAY 0 | ||
| 605 | +#define CONFIG_FFPROBE 0 | ||
| 606 | +#define CONFIG_FFMPEG 0 | ||
| 607 | +#define CONFIG_DCT 1 | ||
| 608 | +#define CONFIG_DWT 0 | ||
| 609 | +#define CONFIG_ERROR_RESILIENCE 0 | ||
| 610 | +#define CONFIG_FAAN 0 | ||
| 611 | +#define CONFIG_FAST_UNALIGNED 1 | ||
| 612 | +#define CONFIG_FFT 1 | ||
| 613 | +#define CONFIG_LSP 0 | ||
| 614 | +#define CONFIG_LZO 0 | ||
| 615 | +#define CONFIG_MDCT 1 | ||
| 616 | +#define CONFIG_PIXELUTILS 0 | ||
| 617 | +#define CONFIG_NETWORK 0 | ||
| 618 | +#define CONFIG_RDFT 1 | ||
| 619 | +#define CONFIG_AUTODETECT 0 | ||
| 620 | +#define CONFIG_FONTCONFIG 0 | ||
| 621 | +#define CONFIG_LARGE_TESTS 1 | ||
| 622 | +#define CONFIG_LINUX_PERF 0 | ||
| 623 | +#define CONFIG_MACOS_KPERF 0 | ||
| 624 | +#define CONFIG_MEMORY_POISONING 0 | ||
| 625 | +#define CONFIG_NEON_CLOBBER_TEST 0 | ||
| 626 | +#define CONFIG_OSSFUZZ 0 | ||
| 627 | +#define CONFIG_PIC 1 | ||
| 628 | +#define CONFIG_PTX_COMPRESSION 0 | ||
| 629 | +#define CONFIG_THUMB 0 | ||
| 630 | +#define CONFIG_VALGRIND_BACKTRACE 0 | ||
| 631 | +#define CONFIG_XMM_CLOBBER_TEST 0 | ||
| 632 | +#define CONFIG_BSFS 0 | ||
| 633 | +#define CONFIG_DECODERS 1 | ||
| 634 | +#define CONFIG_ENCODERS 0 | ||
| 635 | +#define CONFIG_HWACCELS 0 | ||
| 636 | +#define CONFIG_PARSERS 1 | ||
| 637 | +#define CONFIG_INDEVS 0 | ||
| 638 | +#define CONFIG_OUTDEVS 0 | ||
| 639 | +#define CONFIG_FILTERS 0 | ||
| 640 | +#define CONFIG_DEMUXERS 1 | ||
| 641 | +#define CONFIG_MUXERS 0 | ||
| 642 | +#define CONFIG_PROTOCOLS 0 | ||
| 643 | +#define CONFIG_AANDCTTABLES 0 | ||
| 644 | +#define CONFIG_AC3DSP 0 | ||
| 645 | +#define CONFIG_ADTS_HEADER 1 | ||
| 646 | +#define CONFIG_ATSC_A53 1 | ||
| 647 | +#define CONFIG_AUDIO_FRAME_QUEUE 0 | ||
| 648 | +#define CONFIG_AUDIODSP 0 | ||
| 649 | +#define CONFIG_BLOCKDSP 0 | ||
| 650 | +#define CONFIG_BSWAPDSP 0 | ||
| 651 | +#define CONFIG_CABAC 1 | ||
| 652 | +#define CONFIG_CBS 0 | ||
| 653 | +#define CONFIG_CBS_AV1 0 | ||
| 654 | +#define CONFIG_CBS_H264 0 | ||
| 655 | +#define CONFIG_CBS_H265 0 | ||
| 656 | +#define CONFIG_CBS_JPEG 0 | ||
| 657 | +#define CONFIG_CBS_MPEG2 0 | ||
| 658 | +#define CONFIG_CBS_VP9 0 | ||
| 659 | +#define CONFIG_DIRAC_PARSE 1 | ||
| 660 | +#define CONFIG_DNN 0 | ||
| 661 | +#define CONFIG_DOVI_RPU 0 | ||
| 662 | +#define CONFIG_DVPROFILE 0 | ||
| 663 | +#define CONFIG_EXIF 0 | ||
| 664 | +#define CONFIG_FAANDCT 0 | ||
| 665 | +#define CONFIG_FAANIDCT 0 | ||
| 666 | +#define CONFIG_FDCTDSP 0 | ||
| 667 | +#define CONFIG_FLACDSP 1 | ||
| 668 | +#define CONFIG_FMTCONVERT 0 | ||
| 669 | +#define CONFIG_FRAME_THREAD_ENCODER 0 | ||
| 670 | +#define CONFIG_G722DSP 0 | ||
| 671 | +#define CONFIG_GOLOMB 1 | ||
| 672 | +#define CONFIG_GPLV3 0 | ||
| 673 | +#define CONFIG_H263DSP 0 | ||
| 674 | +#define CONFIG_H264CHROMA 1 | ||
| 675 | +#define CONFIG_H264DSP 1 | ||
| 676 | +#define CONFIG_H264PARSE 1 | ||
| 677 | +#define CONFIG_H264PRED 1 | ||
| 678 | +#define CONFIG_H264QPEL 1 | ||
| 679 | +#define CONFIG_HEVCPARSE 0 | ||
| 680 | +#define CONFIG_HPELDSP 1 | ||
| 681 | +#define CONFIG_HUFFMAN 0 | ||
| 682 | +#define CONFIG_HUFFYUVDSP 0 | ||
| 683 | +#define CONFIG_HUFFYUVENCDSP 0 | ||
| 684 | +#define CONFIG_IDCTDSP 0 | ||
| 685 | +#define CONFIG_IIRFILTER 0 | ||
| 686 | +#define CONFIG_MDCT15 1 | ||
| 687 | +#define CONFIG_INTRAX8 0 | ||
| 688 | +#define CONFIG_ISO_MEDIA 1 | ||
| 689 | +#define CONFIG_IVIDSP 0 | ||
| 690 | +#define CONFIG_JPEGTABLES 0 | ||
| 691 | +#define CONFIG_LGPLV3 0 | ||
| 692 | +#define CONFIG_LIBX262 0 | ||
| 693 | +#define CONFIG_LLAUDDSP 0 | ||
| 694 | +#define CONFIG_LLVIDDSP 0 | ||
| 695 | +#define CONFIG_LLVIDENCDSP 0 | ||
| 696 | +#define CONFIG_LPC 0 | ||
| 697 | +#define CONFIG_LZF 0 | ||
| 698 | +#define CONFIG_ME_CMP 0 | ||
| 699 | +#define CONFIG_MPEG_ER 0 | ||
| 700 | +#define CONFIG_MPEGAUDIO 1 | ||
| 701 | +#define CONFIG_MPEGAUDIODSP 1 | ||
| 702 | +#define CONFIG_MPEGAUDIOHEADER 1 | ||
| 703 | +#define CONFIG_MPEG4AUDIO 1 | ||
| 704 | +#define CONFIG_MPEGVIDEO 0 | ||
| 705 | +#define CONFIG_MPEGVIDEODEC 0 | ||
| 706 | +#define CONFIG_MPEGVIDEOENC 0 | ||
| 707 | +#define CONFIG_MSS34DSP 0 | ||
| 708 | +#define CONFIG_PIXBLOCKDSP 0 | ||
| 709 | +#define CONFIG_QPELDSP 0 | ||
| 710 | +#define CONFIG_QSV 0 | ||
| 711 | +#define CONFIG_QSVDEC 0 | ||
| 712 | +#define CONFIG_QSVENC 0 | ||
| 713 | +#define CONFIG_QSVVPP 0 | ||
| 714 | +#define CONFIG_RANGECODER 0 | ||
| 715 | +#define CONFIG_RIFFDEC 1 | ||
| 716 | +#define CONFIG_RIFFENC 0 | ||
| 717 | +#define CONFIG_RTPDEC 0 | ||
| 718 | +#define CONFIG_RTPENC_CHAIN 0 | ||
| 719 | +#define CONFIG_RV34DSP 0 | ||
| 720 | +#define CONFIG_SCENE_SAD 0 | ||
| 721 | +#define CONFIG_SINEWIN 1 | ||
| 722 | +#define CONFIG_SNAPPY 0 | ||
| 723 | +#define CONFIG_SRTP 0 | ||
| 724 | +#define CONFIG_STARTCODE 1 | ||
| 725 | +#define CONFIG_TEXTUREDSP 0 | ||
| 726 | +#define CONFIG_TEXTUREDSPENC 0 | ||
| 727 | +#define CONFIG_TPELDSP 0 | ||
| 728 | +#define CONFIG_VAAPI_1 0 | ||
| 729 | +#define CONFIG_VAAPI_ENCODE 0 | ||
| 730 | +#define CONFIG_VC1DSP 0 | ||
| 731 | +#define CONFIG_VIDEODSP 1 | ||
| 732 | +#define CONFIG_VP3DSP 1 | ||
| 733 | +#define CONFIG_VP56DSP 0 | ||
| 734 | +#define CONFIG_VP8DSP 1 | ||
| 735 | +#define CONFIG_WMA_FREQS 0 | ||
| 736 | +#define CONFIG_WMV2DSP 0 | ||
| 737 | +#define CONFIG_AAC_ADTSTOASC_BSF 0 | ||
| 738 | +#define CONFIG_AV1_FRAME_MERGE_BSF 0 | ||
| 739 | +#define CONFIG_AV1_FRAME_SPLIT_BSF 0 | ||
| 740 | +#define CONFIG_AV1_METADATA_BSF 0 | ||
| 741 | +#define CONFIG_CHOMP_BSF 0 | ||
| 742 | +#define CONFIG_DUMP_EXTRADATA_BSF 0 | ||
| 743 | +#define CONFIG_DCA_CORE_BSF 0 | ||
| 744 | +#define CONFIG_EAC3_CORE_BSF 0 | ||
| 745 | +#define CONFIG_EXTRACT_EXTRADATA_BSF 0 | ||
| 746 | +#define CONFIG_FILTER_UNITS_BSF 0 | ||
| 747 | +#define CONFIG_H264_METADATA_BSF 0 | ||
| 748 | +#define CONFIG_H264_MP4TOANNEXB_BSF 0 | ||
| 749 | +#define CONFIG_H264_REDUNDANT_PPS_BSF 0 | ||
| 750 | +#define CONFIG_HAPQA_EXTRACT_BSF 0 | ||
| 751 | +#define CONFIG_HEVC_METADATA_BSF 0 | ||
| 752 | +#define CONFIG_HEVC_MP4TOANNEXB_BSF 0 | ||
| 753 | +#define CONFIG_IMX_DUMP_HEADER_BSF 0 | ||
| 754 | +#define CONFIG_MJPEG2JPEG_BSF 0 | ||
| 755 | +#define CONFIG_MJPEGA_DUMP_HEADER_BSF 0 | ||
| 756 | +#define CONFIG_MP3_HEADER_DECOMPRESS_BSF 0 | ||
| 757 | +#define CONFIG_MPEG2_METADATA_BSF 0 | ||
| 758 | +#define CONFIG_MPEG4_UNPACK_BFRAMES_BSF 0 | ||
| 759 | +#define CONFIG_MOV2TEXTSUB_BSF 0 | ||
| 760 | +#define CONFIG_NOISE_BSF 0 | ||
| 761 | +#define CONFIG_NULL_BSF 0 | ||
| 762 | +#define CONFIG_OPUS_METADATA_BSF 0 | ||
| 763 | +#define CONFIG_PCM_RECHUNK_BSF 0 | ||
| 764 | +#define CONFIG_PRORES_METADATA_BSF 0 | ||
| 765 | +#define CONFIG_REMOVE_EXTRADATA_BSF 0 | ||
| 766 | +#define CONFIG_SETTS_BSF 0 | ||
| 767 | +#define CONFIG_TEXT2MOVSUB_BSF 0 | ||
| 768 | +#define CONFIG_TRACE_HEADERS_BSF 0 | ||
| 769 | +#define CONFIG_TRUEHD_CORE_BSF 0 | ||
| 770 | +#define CONFIG_VP9_METADATA_BSF 0 | ||
| 771 | +#define CONFIG_VP9_RAW_REORDER_BSF 0 | ||
| 772 | +#define CONFIG_VP9_SUPERFRAME_BSF 0 | ||
| 773 | +#define CONFIG_VP9_SUPERFRAME_SPLIT_BSF 0 | ||
| 774 | +#define CONFIG_AASC_DECODER 0 | ||
| 775 | +#define CONFIG_AIC_DECODER 0 | ||
| 776 | +#define CONFIG_ALIAS_PIX_DECODER 0 | ||
| 777 | +#define CONFIG_AGM_DECODER 0 | ||
| 778 | +#define CONFIG_AMV_DECODER 0 | ||
| 779 | +#define CONFIG_ANM_DECODER 0 | ||
| 780 | +#define CONFIG_ANSI_DECODER 0 | ||
| 781 | +#define CONFIG_APNG_DECODER 0 | ||
| 782 | +#define CONFIG_ARBC_DECODER 0 | ||
| 783 | +#define CONFIG_ARGO_DECODER 0 | ||
| 784 | +#define CONFIG_ASV1_DECODER 0 | ||
| 785 | +#define CONFIG_ASV2_DECODER 0 | ||
| 786 | +#define CONFIG_AURA_DECODER 0 | ||
| 787 | +#define CONFIG_AURA2_DECODER 0 | ||
| 788 | +#define CONFIG_AVRP_DECODER 0 | ||
| 789 | +#define CONFIG_AVRN_DECODER 0 | ||
| 790 | +#define CONFIG_AVS_DECODER 0 | ||
| 791 | +#define CONFIG_AVUI_DECODER 0 | ||
| 792 | +#define CONFIG_AYUV_DECODER 0 | ||
| 793 | +#define CONFIG_BETHSOFTVID_DECODER 0 | ||
| 794 | +#define CONFIG_BFI_DECODER 0 | ||
| 795 | +#define CONFIG_BINK_DECODER 0 | ||
| 796 | +#define CONFIG_BITPACKED_DECODER 0 | ||
| 797 | +#define CONFIG_BMP_DECODER 0 | ||
| 798 | +#define CONFIG_BMV_VIDEO_DECODER 0 | ||
| 799 | +#define CONFIG_BRENDER_PIX_DECODER 0 | ||
| 800 | +#define CONFIG_C93_DECODER 0 | ||
| 801 | +#define CONFIG_CAVS_DECODER 0 | ||
| 802 | +#define CONFIG_CDGRAPHICS_DECODER 0 | ||
| 803 | +#define CONFIG_CDTOONS_DECODER 0 | ||
| 804 | +#define CONFIG_CDXL_DECODER 0 | ||
| 805 | +#define CONFIG_CFHD_DECODER 0 | ||
| 806 | +#define CONFIG_CINEPAK_DECODER 0 | ||
| 807 | +#define CONFIG_CLEARVIDEO_DECODER 0 | ||
| 808 | +#define CONFIG_CLJR_DECODER 0 | ||
| 809 | +#define CONFIG_CLLC_DECODER 0 | ||
| 810 | +#define CONFIG_COMFORTNOISE_DECODER 0 | ||
| 811 | +#define CONFIG_CPIA_DECODER 0 | ||
| 812 | +#define CONFIG_CRI_DECODER 0 | ||
| 813 | +#define CONFIG_CSCD_DECODER 0 | ||
| 814 | +#define CONFIG_CYUV_DECODER 0 | ||
| 815 | +#define CONFIG_DDS_DECODER 0 | ||
| 816 | +#define CONFIG_DFA_DECODER 0 | ||
| 817 | +#define CONFIG_DIRAC_DECODER 0 | ||
| 818 | +#define CONFIG_DNXHD_DECODER 0 | ||
| 819 | +#define CONFIG_DPX_DECODER 0 | ||
| 820 | +#define CONFIG_DSICINVIDEO_DECODER 0 | ||
| 821 | +#define CONFIG_DVAUDIO_DECODER 0 | ||
| 822 | +#define CONFIG_DVVIDEO_DECODER 0 | ||
| 823 | +#define CONFIG_DXA_DECODER 0 | ||
| 824 | +#define CONFIG_DXTORY_DECODER 0 | ||
| 825 | +#define CONFIG_DXV_DECODER 0 | ||
| 826 | +#define CONFIG_EACMV_DECODER 0 | ||
| 827 | +#define CONFIG_EAMAD_DECODER 0 | ||
| 828 | +#define CONFIG_EATGQ_DECODER 0 | ||
| 829 | +#define CONFIG_EATGV_DECODER 0 | ||
| 830 | +#define CONFIG_EATQI_DECODER 0 | ||
| 831 | +#define CONFIG_EIGHTBPS_DECODER 0 | ||
| 832 | +#define CONFIG_EIGHTSVX_EXP_DECODER 0 | ||
| 833 | +#define CONFIG_EIGHTSVX_FIB_DECODER 0 | ||
| 834 | +#define CONFIG_ESCAPE124_DECODER 0 | ||
| 835 | +#define CONFIG_ESCAPE130_DECODER 0 | ||
| 836 | +#define CONFIG_EXR_DECODER 0 | ||
| 837 | +#define CONFIG_FFV1_DECODER 0 | ||
| 838 | +#define CONFIG_FFVHUFF_DECODER 0 | ||
| 839 | +#define CONFIG_FIC_DECODER 0 | ||
| 840 | +#define CONFIG_FITS_DECODER 0 | ||
| 841 | +#define CONFIG_FLASHSV_DECODER 0 | ||
| 842 | +#define CONFIG_FLASHSV2_DECODER 0 | ||
| 843 | +#define CONFIG_FLIC_DECODER 0 | ||
| 844 | +#define CONFIG_FLV_DECODER 0 | ||
| 845 | +#define CONFIG_FMVC_DECODER 0 | ||
| 846 | +#define CONFIG_FOURXM_DECODER 0 | ||
| 847 | +#define CONFIG_FRAPS_DECODER 0 | ||
| 848 | +#define CONFIG_FRWU_DECODER 0 | ||
| 849 | +#define CONFIG_G2M_DECODER 0 | ||
| 850 | +#define CONFIG_GDV_DECODER 0 | ||
| 851 | +#define CONFIG_GEM_DECODER 0 | ||
| 852 | +#define CONFIG_GIF_DECODER 0 | ||
| 853 | +#define CONFIG_H261_DECODER 0 | ||
| 854 | +#define CONFIG_H263_DECODER 0 | ||
| 855 | +#define CONFIG_H263I_DECODER 0 | ||
| 856 | +#define CONFIG_H263P_DECODER 0 | ||
| 857 | +#define CONFIG_H263_V4L2M2M_DECODER 0 | ||
| 858 | +#define CONFIG_H264_DECODER 1 | ||
| 859 | +#define CONFIG_H264_CRYSTALHD_DECODER 0 | ||
| 860 | +#define CONFIG_H264_V4L2M2M_DECODER 0 | ||
| 861 | +#define CONFIG_H264_MEDIACODEC_DECODER 0 | ||
| 862 | +#define CONFIG_H264_MMAL_DECODER 0 | ||
| 863 | +#define CONFIG_H264_QSV_DECODER 0 | ||
| 864 | +#define CONFIG_H264_RKMPP_DECODER 0 | ||
| 865 | +#define CONFIG_HAP_DECODER 0 | ||
| 866 | +#define CONFIG_HEVC_DECODER 0 | ||
| 867 | +#define CONFIG_HEVC_QSV_DECODER 0 | ||
| 868 | +#define CONFIG_HEVC_RKMPP_DECODER 0 | ||
| 869 | +#define CONFIG_HEVC_V4L2M2M_DECODER 0 | ||
| 870 | +#define CONFIG_HNM4_VIDEO_DECODER 0 | ||
| 871 | +#define CONFIG_HQ_HQA_DECODER 0 | ||
| 872 | +#define CONFIG_HQX_DECODER 0 | ||
| 873 | +#define CONFIG_HUFFYUV_DECODER 0 | ||
| 874 | +#define CONFIG_HYMT_DECODER 0 | ||
| 875 | +#define CONFIG_IDCIN_DECODER 0 | ||
| 876 | +#define CONFIG_IFF_ILBM_DECODER 0 | ||
| 877 | +#define CONFIG_IMM4_DECODER 0 | ||
| 878 | +#define CONFIG_IMM5_DECODER 0 | ||
| 879 | +#define CONFIG_INDEO2_DECODER 0 | ||
| 880 | +#define CONFIG_INDEO3_DECODER 0 | ||
| 881 | +#define CONFIG_INDEO4_DECODER 0 | ||
| 882 | +#define CONFIG_INDEO5_DECODER 0 | ||
| 883 | +#define CONFIG_INTERPLAY_VIDEO_DECODER 0 | ||
| 884 | +#define CONFIG_IPU_DECODER 0 | ||
| 885 | +#define CONFIG_JPEG2000_DECODER 0 | ||
| 886 | +#define CONFIG_JPEGLS_DECODER 0 | ||
| 887 | +#define CONFIG_JV_DECODER 0 | ||
| 888 | +#define CONFIG_KGV1_DECODER 0 | ||
| 889 | +#define CONFIG_KMVC_DECODER 0 | ||
| 890 | +#define CONFIG_LAGARITH_DECODER 0 | ||
| 891 | +#define CONFIG_LOCO_DECODER 0 | ||
| 892 | +#define CONFIG_LSCR_DECODER 0 | ||
| 893 | +#define CONFIG_M101_DECODER 0 | ||
| 894 | +#define CONFIG_MAGICYUV_DECODER 0 | ||
| 895 | +#define CONFIG_MDEC_DECODER 0 | ||
| 896 | +#define CONFIG_MIMIC_DECODER 0 | ||
| 897 | +#define CONFIG_MJPEG_DECODER 0 | ||
| 898 | +#define CONFIG_MJPEGB_DECODER 0 | ||
| 899 | +#define CONFIG_MMVIDEO_DECODER 0 | ||
| 900 | +#define CONFIG_MOBICLIP_DECODER 0 | ||
| 901 | +#define CONFIG_MOTIONPIXELS_DECODER 0 | ||
| 902 | +#define CONFIG_MPEG1VIDEO_DECODER 0 | ||
| 903 | +#define CONFIG_MPEG2VIDEO_DECODER 0 | ||
| 904 | +#define CONFIG_MPEG4_DECODER 0 | ||
| 905 | +#define CONFIG_MPEG4_CRYSTALHD_DECODER 0 | ||
| 906 | +#define CONFIG_MPEG4_V4L2M2M_DECODER 0 | ||
| 907 | +#define CONFIG_MPEG4_MMAL_DECODER 0 | ||
| 908 | +#define CONFIG_MPEGVIDEO_DECODER 0 | ||
| 909 | +#define CONFIG_MPEG1_V4L2M2M_DECODER 0 | ||
| 910 | +#define CONFIG_MPEG2_MMAL_DECODER 0 | ||
| 911 | +#define CONFIG_MPEG2_CRYSTALHD_DECODER 0 | ||
| 912 | +#define CONFIG_MPEG2_V4L2M2M_DECODER 0 | ||
| 913 | +#define CONFIG_MPEG2_QSV_DECODER 0 | ||
| 914 | +#define CONFIG_MPEG2_MEDIACODEC_DECODER 0 | ||
| 915 | +#define CONFIG_MSA1_DECODER 0 | ||
| 916 | +#define CONFIG_MSCC_DECODER 0 | ||
| 917 | +#define CONFIG_MSMPEG4V1_DECODER 0 | ||
| 918 | +#define CONFIG_MSMPEG4V2_DECODER 0 | ||
| 919 | +#define CONFIG_MSMPEG4V3_DECODER 0 | ||
| 920 | +#define CONFIG_MSMPEG4_CRYSTALHD_DECODER 0 | ||
| 921 | +#define CONFIG_MSP2_DECODER 0 | ||
| 922 | +#define CONFIG_MSRLE_DECODER 0 | ||
| 923 | +#define CONFIG_MSS1_DECODER 0 | ||
| 924 | +#define CONFIG_MSS2_DECODER 0 | ||
| 925 | +#define CONFIG_MSVIDEO1_DECODER 0 | ||
| 926 | +#define CONFIG_MSZH_DECODER 0 | ||
| 927 | +#define CONFIG_MTS2_DECODER 0 | ||
| 928 | +#define CONFIG_MV30_DECODER 0 | ||
| 929 | +#define CONFIG_MVC1_DECODER 0 | ||
| 930 | +#define CONFIG_MVC2_DECODER 0 | ||
| 931 | +#define CONFIG_MVDV_DECODER 0 | ||
| 932 | +#define CONFIG_MVHA_DECODER 0 | ||
| 933 | +#define CONFIG_MWSC_DECODER 0 | ||
| 934 | +#define CONFIG_MXPEG_DECODER 0 | ||
| 935 | +#define CONFIG_NOTCHLC_DECODER 0 | ||
| 936 | +#define CONFIG_NUV_DECODER 0 | ||
| 937 | +#define CONFIG_PAF_VIDEO_DECODER 0 | ||
| 938 | +#define CONFIG_PAM_DECODER 0 | ||
| 939 | +#define CONFIG_PBM_DECODER 0 | ||
| 940 | +#define CONFIG_PCX_DECODER 0 | ||
| 941 | +#define CONFIG_PFM_DECODER 0 | ||
| 942 | +#define CONFIG_PGM_DECODER 0 | ||
| 943 | +#define CONFIG_PGMYUV_DECODER 0 | ||
| 944 | +#define CONFIG_PGX_DECODER 0 | ||
| 945 | +#define CONFIG_PHOTOCD_DECODER 0 | ||
| 946 | +#define CONFIG_PICTOR_DECODER 0 | ||
| 947 | +#define CONFIG_PIXLET_DECODER 0 | ||
| 948 | +#define CONFIG_PNG_DECODER 0 | ||
| 949 | +#define CONFIG_PPM_DECODER 0 | ||
| 950 | +#define CONFIG_PRORES_DECODER 0 | ||
| 951 | +#define CONFIG_PROSUMER_DECODER 0 | ||
| 952 | +#define CONFIG_PSD_DECODER 0 | ||
| 953 | +#define CONFIG_PTX_DECODER 0 | ||
| 954 | +#define CONFIG_QDRAW_DECODER 0 | ||
| 955 | +#define CONFIG_QPEG_DECODER 0 | ||
| 956 | +#define CONFIG_QTRLE_DECODER 0 | ||
| 957 | +#define CONFIG_R10K_DECODER 0 | ||
| 958 | +#define CONFIG_R210_DECODER 0 | ||
| 959 | +#define CONFIG_RASC_DECODER 0 | ||
| 960 | +#define CONFIG_RAWVIDEO_DECODER 0 | ||
| 961 | +#define CONFIG_RL2_DECODER 0 | ||
| 962 | +#define CONFIG_ROQ_DECODER 0 | ||
| 963 | +#define CONFIG_RPZA_DECODER 0 | ||
| 964 | +#define CONFIG_RSCC_DECODER 0 | ||
| 965 | +#define CONFIG_RV10_DECODER 0 | ||
| 966 | +#define CONFIG_RV20_DECODER 0 | ||
| 967 | +#define CONFIG_RV30_DECODER 0 | ||
| 968 | +#define CONFIG_RV40_DECODER 0 | ||
| 969 | +#define CONFIG_S302M_DECODER 0 | ||
| 970 | +#define CONFIG_SANM_DECODER 0 | ||
| 971 | +#define CONFIG_SCPR_DECODER 0 | ||
| 972 | +#define CONFIG_SCREENPRESSO_DECODER 0 | ||
| 973 | +#define CONFIG_SGA_DECODER 0 | ||
| 974 | +#define CONFIG_SGI_DECODER 0 | ||
| 975 | +#define CONFIG_SGIRLE_DECODER 0 | ||
| 976 | +#define CONFIG_SHEERVIDEO_DECODER 0 | ||
| 977 | +#define CONFIG_SIMBIOSIS_IMX_DECODER 0 | ||
| 978 | +#define CONFIG_SMACKER_DECODER 0 | ||
| 979 | +#define CONFIG_SMC_DECODER 0 | ||
| 980 | +#define CONFIG_SMVJPEG_DECODER 0 | ||
| 981 | +#define CONFIG_SNOW_DECODER 0 | ||
| 982 | +#define CONFIG_SP5X_DECODER 0 | ||
| 983 | +#define CONFIG_SPEEDHQ_DECODER 0 | ||
| 984 | +#define CONFIG_SPEEX_DECODER 0 | ||
| 985 | +#define CONFIG_SRGC_DECODER 0 | ||
| 986 | +#define CONFIG_SUNRAST_DECODER 0 | ||
| 987 | +#define CONFIG_SVQ1_DECODER 0 | ||
| 988 | +#define CONFIG_SVQ3_DECODER 0 | ||
| 989 | +#define CONFIG_TARGA_DECODER 0 | ||
| 990 | +#define CONFIG_TARGA_Y216_DECODER 0 | ||
| 991 | +#define CONFIG_TDSC_DECODER 0 | ||
| 992 | +#define CONFIG_THEORA_DECODER 1 | ||
| 993 | +#define CONFIG_THP_DECODER 0 | ||
| 994 | +#define CONFIG_TIERTEXSEQVIDEO_DECODER 0 | ||
| 995 | +#define CONFIG_TIFF_DECODER 0 | ||
| 996 | +#define CONFIG_TMV_DECODER 0 | ||
| 997 | +#define CONFIG_TRUEMOTION1_DECODER 0 | ||
| 998 | +#define CONFIG_TRUEMOTION2_DECODER 0 | ||
| 999 | +#define CONFIG_TRUEMOTION2RT_DECODER 0 | ||
| 1000 | +#define CONFIG_TSCC_DECODER 0 | ||
| 1001 | +#define CONFIG_TSCC2_DECODER 0 | ||
| 1002 | +#define CONFIG_TXD_DECODER 0 | ||
| 1003 | +#define CONFIG_ULTI_DECODER 0 | ||
| 1004 | +#define CONFIG_UTVIDEO_DECODER 0 | ||
| 1005 | +#define CONFIG_V210_DECODER 0 | ||
| 1006 | +#define CONFIG_V210X_DECODER 0 | ||
| 1007 | +#define CONFIG_V308_DECODER 0 | ||
| 1008 | +#define CONFIG_V408_DECODER 0 | ||
| 1009 | +#define CONFIG_V410_DECODER 0 | ||
| 1010 | +#define CONFIG_VB_DECODER 0 | ||
| 1011 | +#define CONFIG_VBLE_DECODER 0 | ||
| 1012 | +#define CONFIG_VC1_DECODER 0 | ||
| 1013 | +#define CONFIG_VC1_CRYSTALHD_DECODER 0 | ||
| 1014 | +#define CONFIG_VC1IMAGE_DECODER 0 | ||
| 1015 | +#define CONFIG_VC1_MMAL_DECODER 0 | ||
| 1016 | +#define CONFIG_VC1_QSV_DECODER 0 | ||
| 1017 | +#define CONFIG_VC1_V4L2M2M_DECODER 0 | ||
| 1018 | +#define CONFIG_VCR1_DECODER 0 | ||
| 1019 | +#define CONFIG_VMDVIDEO_DECODER 0 | ||
| 1020 | +#define CONFIG_VMNC_DECODER 0 | ||
| 1021 | +#define CONFIG_VP3_DECODER 1 | ||
| 1022 | +#define CONFIG_VP4_DECODER 0 | ||
| 1023 | +#define CONFIG_VP5_DECODER 0 | ||
| 1024 | +#define CONFIG_VP6_DECODER 0 | ||
| 1025 | +#define CONFIG_VP6A_DECODER 0 | ||
| 1026 | +#define CONFIG_VP6F_DECODER 0 | ||
| 1027 | +#define CONFIG_VP7_DECODER 0 | ||
| 1028 | +#define CONFIG_VP8_DECODER 1 | ||
| 1029 | +#define CONFIG_VP8_RKMPP_DECODER 0 | ||
| 1030 | +#define CONFIG_VP8_V4L2M2M_DECODER 0 | ||
| 1031 | +#define CONFIG_VP9_DECODER 0 | ||
| 1032 | +#define CONFIG_VP9_RKMPP_DECODER 0 | ||
| 1033 | +#define CONFIG_VP9_V4L2M2M_DECODER 0 | ||
| 1034 | +#define CONFIG_VQA_DECODER 0 | ||
| 1035 | +#define CONFIG_WEBP_DECODER 0 | ||
| 1036 | +#define CONFIG_WCMV_DECODER 0 | ||
| 1037 | +#define CONFIG_WRAPPED_AVFRAME_DECODER 0 | ||
| 1038 | +#define CONFIG_WMV1_DECODER 0 | ||
| 1039 | +#define CONFIG_WMV2_DECODER 0 | ||
| 1040 | +#define CONFIG_WMV3_DECODER 0 | ||
| 1041 | +#define CONFIG_WMV3_CRYSTALHD_DECODER 0 | ||
| 1042 | +#define CONFIG_WMV3IMAGE_DECODER 0 | ||
| 1043 | +#define CONFIG_WNV1_DECODER 0 | ||
| 1044 | +#define CONFIG_XAN_WC3_DECODER 0 | ||
| 1045 | +#define CONFIG_XAN_WC4_DECODER 0 | ||
| 1046 | +#define CONFIG_XBM_DECODER 0 | ||
| 1047 | +#define CONFIG_XFACE_DECODER 0 | ||
| 1048 | +#define CONFIG_XL_DECODER 0 | ||
| 1049 | +#define CONFIG_XPM_DECODER 0 | ||
| 1050 | +#define CONFIG_XWD_DECODER 0 | ||
| 1051 | +#define CONFIG_Y41P_DECODER 0 | ||
| 1052 | +#define CONFIG_YLC_DECODER 0 | ||
| 1053 | +#define CONFIG_YOP_DECODER 0 | ||
| 1054 | +#define CONFIG_YUV4_DECODER 0 | ||
| 1055 | +#define CONFIG_ZERO12V_DECODER 0 | ||
| 1056 | +#define CONFIG_ZEROCODEC_DECODER 0 | ||
| 1057 | +#define CONFIG_ZLIB_DECODER 0 | ||
| 1058 | +#define CONFIG_ZMBV_DECODER 0 | ||
| 1059 | +#define CONFIG_AAC_DECODER 1 | ||
| 1060 | +#define CONFIG_AAC_FIXED_DECODER 0 | ||
| 1061 | +#define CONFIG_AAC_LATM_DECODER 0 | ||
| 1062 | +#define CONFIG_AC3_DECODER 0 | ||
| 1063 | +#define CONFIG_AC3_FIXED_DECODER 0 | ||
| 1064 | +#define CONFIG_ACELP_KELVIN_DECODER 0 | ||
| 1065 | +#define CONFIG_ALAC_DECODER 0 | ||
| 1066 | +#define CONFIG_ALS_DECODER 0 | ||
| 1067 | +#define CONFIG_AMRNB_DECODER 0 | ||
| 1068 | +#define CONFIG_AMRWB_DECODER 0 | ||
| 1069 | +#define CONFIG_APE_DECODER 0 | ||
| 1070 | +#define CONFIG_APTX_DECODER 0 | ||
| 1071 | +#define CONFIG_APTX_HD_DECODER 0 | ||
| 1072 | +#define CONFIG_ATRAC1_DECODER 0 | ||
| 1073 | +#define CONFIG_ATRAC3_DECODER 0 | ||
| 1074 | +#define CONFIG_ATRAC3AL_DECODER 0 | ||
| 1075 | +#define CONFIG_ATRAC3P_DECODER 0 | ||
| 1076 | +#define CONFIG_ATRAC3PAL_DECODER 0 | ||
| 1077 | +#define CONFIG_ATRAC9_DECODER 0 | ||
| 1078 | +#define CONFIG_BINKAUDIO_DCT_DECODER 0 | ||
| 1079 | +#define CONFIG_BINKAUDIO_RDFT_DECODER 0 | ||
| 1080 | +#define CONFIG_BMV_AUDIO_DECODER 0 | ||
| 1081 | +#define CONFIG_COOK_DECODER 0 | ||
| 1082 | +#define CONFIG_DCA_DECODER 0 | ||
| 1083 | +#define CONFIG_DOLBY_E_DECODER 0 | ||
| 1084 | +#define CONFIG_DSD_LSBF_DECODER 0 | ||
| 1085 | +#define CONFIG_DSD_MSBF_DECODER 0 | ||
| 1086 | +#define CONFIG_DSD_LSBF_PLANAR_DECODER 0 | ||
| 1087 | +#define CONFIG_DSD_MSBF_PLANAR_DECODER 0 | ||
| 1088 | +#define CONFIG_DSICINAUDIO_DECODER 0 | ||
| 1089 | +#define CONFIG_DSS_SP_DECODER 0 | ||
| 1090 | +#define CONFIG_DST_DECODER 0 | ||
| 1091 | +#define CONFIG_EAC3_DECODER 0 | ||
| 1092 | +#define CONFIG_EVRC_DECODER 0 | ||
| 1093 | +#define CONFIG_FASTAUDIO_DECODER 0 | ||
| 1094 | +#define CONFIG_FFWAVESYNTH_DECODER 0 | ||
| 1095 | +#define CONFIG_FLAC_DECODER 1 | ||
| 1096 | +#define CONFIG_G723_1_DECODER 0 | ||
| 1097 | +#define CONFIG_G729_DECODER 0 | ||
| 1098 | +#define CONFIG_GSM_DECODER 0 | ||
| 1099 | +#define CONFIG_GSM_MS_DECODER 0 | ||
| 1100 | +#define CONFIG_HCA_DECODER 0 | ||
| 1101 | +#define CONFIG_HCOM_DECODER 0 | ||
| 1102 | +#define CONFIG_IAC_DECODER 0 | ||
| 1103 | +#define CONFIG_ILBC_DECODER 0 | ||
| 1104 | +#define CONFIG_IMC_DECODER 0 | ||
| 1105 | +#define CONFIG_INTERPLAY_ACM_DECODER 0 | ||
| 1106 | +#define CONFIG_MACE3_DECODER 0 | ||
| 1107 | +#define CONFIG_MACE6_DECODER 0 | ||
| 1108 | +#define CONFIG_METASOUND_DECODER 0 | ||
| 1109 | +#define CONFIG_MLP_DECODER 0 | ||
| 1110 | +#define CONFIG_MP1_DECODER 0 | ||
| 1111 | +#define CONFIG_MP1FLOAT_DECODER 0 | ||
| 1112 | +#define CONFIG_MP2_DECODER 0 | ||
| 1113 | +#define CONFIG_MP2FLOAT_DECODER 0 | ||
| 1114 | +#define CONFIG_MP3FLOAT_DECODER 0 | ||
| 1115 | +#define CONFIG_MP3_DECODER 1 | ||
| 1116 | +#define CONFIG_MP3ADUFLOAT_DECODER 0 | ||
| 1117 | +#define CONFIG_MP3ADU_DECODER 0 | ||
| 1118 | +#define CONFIG_MP3ON4FLOAT_DECODER 0 | ||
| 1119 | +#define CONFIG_MP3ON4_DECODER 0 | ||
| 1120 | +#define CONFIG_MPC7_DECODER 0 | ||
| 1121 | +#define CONFIG_MPC8_DECODER 0 | ||
| 1122 | +#define CONFIG_MSNSIREN_DECODER 0 | ||
| 1123 | +#define CONFIG_NELLYMOSER_DECODER 0 | ||
| 1124 | +#define CONFIG_ON2AVC_DECODER 0 | ||
| 1125 | +#define CONFIG_OPUS_DECODER 0 | ||
| 1126 | +#define CONFIG_PAF_AUDIO_DECODER 0 | ||
| 1127 | +#define CONFIG_QCELP_DECODER 0 | ||
| 1128 | +#define CONFIG_QDM2_DECODER 0 | ||
| 1129 | +#define CONFIG_QDMC_DECODER 0 | ||
| 1130 | +#define CONFIG_RA_144_DECODER 0 | ||
| 1131 | +#define CONFIG_RA_288_DECODER 0 | ||
| 1132 | +#define CONFIG_RALF_DECODER 0 | ||
| 1133 | +#define CONFIG_SBC_DECODER 0 | ||
| 1134 | +#define CONFIG_SHORTEN_DECODER 0 | ||
| 1135 | +#define CONFIG_SIPR_DECODER 0 | ||
| 1136 | +#define CONFIG_SIREN_DECODER 0 | ||
| 1137 | +#define CONFIG_SMACKAUD_DECODER 0 | ||
| 1138 | +#define CONFIG_SONIC_DECODER 0 | ||
| 1139 | +#define CONFIG_TAK_DECODER 0 | ||
| 1140 | +#define CONFIG_TRUEHD_DECODER 0 | ||
| 1141 | +#define CONFIG_TRUESPEECH_DECODER 0 | ||
| 1142 | +#define CONFIG_TTA_DECODER 0 | ||
| 1143 | +#define CONFIG_TWINVQ_DECODER 0 | ||
| 1144 | +#define CONFIG_VMDAUDIO_DECODER 0 | ||
| 1145 | +#define CONFIG_VORBIS_DECODER 1 | ||
| 1146 | +#define CONFIG_WAVPACK_DECODER 0 | ||
| 1147 | +#define CONFIG_WMALOSSLESS_DECODER 0 | ||
| 1148 | +#define CONFIG_WMAPRO_DECODER 0 | ||
| 1149 | +#define CONFIG_WMAV1_DECODER 0 | ||
| 1150 | +#define CONFIG_WMAV2_DECODER 0 | ||
| 1151 | +#define CONFIG_WMAVOICE_DECODER 0 | ||
| 1152 | +#define CONFIG_WS_SND1_DECODER 0 | ||
| 1153 | +#define CONFIG_XMA1_DECODER 0 | ||
| 1154 | +#define CONFIG_XMA2_DECODER 0 | ||
| 1155 | +#define CONFIG_PCM_ALAW_DECODER 1 | ||
| 1156 | +#define CONFIG_PCM_BLURAY_DECODER 0 | ||
| 1157 | +#define CONFIG_PCM_DVD_DECODER 0 | ||
| 1158 | +#define CONFIG_PCM_F16LE_DECODER 0 | ||
| 1159 | +#define CONFIG_PCM_F24LE_DECODER 0 | ||
| 1160 | +#define CONFIG_PCM_F32BE_DECODER 0 | ||
| 1161 | +#define CONFIG_PCM_F32LE_DECODER 1 | ||
| 1162 | +#define CONFIG_PCM_F64BE_DECODER 0 | ||
| 1163 | +#define CONFIG_PCM_F64LE_DECODER 0 | ||
| 1164 | +#define CONFIG_PCM_LXF_DECODER 0 | ||
| 1165 | +#define CONFIG_PCM_MULAW_DECODER 1 | ||
| 1166 | +#define CONFIG_PCM_S8_DECODER 0 | ||
| 1167 | +#define CONFIG_PCM_S8_PLANAR_DECODER 0 | ||
| 1168 | +#define CONFIG_PCM_S16BE_DECODER 1 | ||
| 1169 | +#define CONFIG_PCM_S16BE_PLANAR_DECODER 0 | ||
| 1170 | +#define CONFIG_PCM_S16LE_DECODER 1 | ||
| 1171 | +#define CONFIG_PCM_S16LE_PLANAR_DECODER 0 | ||
| 1172 | +#define CONFIG_PCM_S24BE_DECODER 1 | ||
| 1173 | +#define CONFIG_PCM_S24DAUD_DECODER 0 | ||
| 1174 | +#define CONFIG_PCM_S24LE_DECODER 1 | ||
| 1175 | +#define CONFIG_PCM_S24LE_PLANAR_DECODER 0 | ||
| 1176 | +#define CONFIG_PCM_S32BE_DECODER 0 | ||
| 1177 | +#define CONFIG_PCM_S32LE_DECODER 1 | ||
| 1178 | +#define CONFIG_PCM_S32LE_PLANAR_DECODER 0 | ||
| 1179 | +#define CONFIG_PCM_S64BE_DECODER 0 | ||
| 1180 | +#define CONFIG_PCM_S64LE_DECODER 0 | ||
| 1181 | +#define CONFIG_PCM_SGA_DECODER 0 | ||
| 1182 | +#define CONFIG_PCM_U8_DECODER 1 | ||
| 1183 | +#define CONFIG_PCM_U16BE_DECODER 0 | ||
| 1184 | +#define CONFIG_PCM_U16LE_DECODER 0 | ||
| 1185 | +#define CONFIG_PCM_U24BE_DECODER 0 | ||
| 1186 | +#define CONFIG_PCM_U24LE_DECODER 0 | ||
| 1187 | +#define CONFIG_PCM_U32BE_DECODER 0 | ||
| 1188 | +#define CONFIG_PCM_U32LE_DECODER 0 | ||
| 1189 | +#define CONFIG_PCM_VIDC_DECODER 0 | ||
| 1190 | +#define CONFIG_DERF_DPCM_DECODER 0 | ||
| 1191 | +#define CONFIG_GREMLIN_DPCM_DECODER 0 | ||
| 1192 | +#define CONFIG_INTERPLAY_DPCM_DECODER 0 | ||
| 1193 | +#define CONFIG_ROQ_DPCM_DECODER 0 | ||
| 1194 | +#define CONFIG_SDX2_DPCM_DECODER 0 | ||
| 1195 | +#define CONFIG_SOL_DPCM_DECODER 0 | ||
| 1196 | +#define CONFIG_XAN_DPCM_DECODER 0 | ||
| 1197 | +#define CONFIG_ADPCM_4XM_DECODER 0 | ||
| 1198 | +#define CONFIG_ADPCM_ADX_DECODER 0 | ||
| 1199 | +#define CONFIG_ADPCM_AFC_DECODER 0 | ||
| 1200 | +#define CONFIG_ADPCM_AGM_DECODER 0 | ||
| 1201 | +#define CONFIG_ADPCM_AICA_DECODER 0 | ||
| 1202 | +#define CONFIG_ADPCM_ARGO_DECODER 0 | ||
| 1203 | +#define CONFIG_ADPCM_CT_DECODER 0 | ||
| 1204 | +#define CONFIG_ADPCM_DTK_DECODER 0 | ||
| 1205 | +#define CONFIG_ADPCM_EA_DECODER 0 | ||
| 1206 | +#define CONFIG_ADPCM_EA_MAXIS_XA_DECODER 0 | ||
| 1207 | +#define CONFIG_ADPCM_EA_R1_DECODER 0 | ||
| 1208 | +#define CONFIG_ADPCM_EA_R2_DECODER 0 | ||
| 1209 | +#define CONFIG_ADPCM_EA_R3_DECODER 0 | ||
| 1210 | +#define CONFIG_ADPCM_EA_XAS_DECODER 0 | ||
| 1211 | +#define CONFIG_ADPCM_G722_DECODER 0 | ||
| 1212 | +#define CONFIG_ADPCM_G726_DECODER 0 | ||
| 1213 | +#define CONFIG_ADPCM_G726LE_DECODER 0 | ||
| 1214 | +#define CONFIG_ADPCM_IMA_ACORN_DECODER 0 | ||
| 1215 | +#define CONFIG_ADPCM_IMA_AMV_DECODER 0 | ||
| 1216 | +#define CONFIG_ADPCM_IMA_ALP_DECODER 0 | ||
| 1217 | +#define CONFIG_ADPCM_IMA_APC_DECODER 0 | ||
| 1218 | +#define CONFIG_ADPCM_IMA_APM_DECODER 0 | ||
| 1219 | +#define CONFIG_ADPCM_IMA_CUNNING_DECODER 0 | ||
| 1220 | +#define CONFIG_ADPCM_IMA_DAT4_DECODER 0 | ||
| 1221 | +#define CONFIG_ADPCM_IMA_DK3_DECODER 0 | ||
| 1222 | +#define CONFIG_ADPCM_IMA_DK4_DECODER 0 | ||
| 1223 | +#define CONFIG_ADPCM_IMA_EA_EACS_DECODER 0 | ||
| 1224 | +#define CONFIG_ADPCM_IMA_EA_SEAD_DECODER 0 | ||
| 1225 | +#define CONFIG_ADPCM_IMA_ISS_DECODER 0 | ||
| 1226 | +#define CONFIG_ADPCM_IMA_MOFLEX_DECODER 0 | ||
| 1227 | +#define CONFIG_ADPCM_IMA_MTF_DECODER 0 | ||
| 1228 | +#define CONFIG_ADPCM_IMA_OKI_DECODER 0 | ||
| 1229 | +#define CONFIG_ADPCM_IMA_QT_DECODER 0 | ||
| 1230 | +#define CONFIG_ADPCM_IMA_RAD_DECODER 0 | ||
| 1231 | +#define CONFIG_ADPCM_IMA_SSI_DECODER 0 | ||
| 1232 | +#define CONFIG_ADPCM_IMA_SMJPEG_DECODER 0 | ||
| 1233 | +#define CONFIG_ADPCM_IMA_WAV_DECODER 0 | ||
| 1234 | +#define CONFIG_ADPCM_IMA_WS_DECODER 0 | ||
| 1235 | +#define CONFIG_ADPCM_MS_DECODER 0 | ||
| 1236 | +#define CONFIG_ADPCM_MTAF_DECODER 0 | ||
| 1237 | +#define CONFIG_ADPCM_PSX_DECODER 0 | ||
| 1238 | +#define CONFIG_ADPCM_SBPRO_2_DECODER 0 | ||
| 1239 | +#define CONFIG_ADPCM_SBPRO_3_DECODER 0 | ||
| 1240 | +#define CONFIG_ADPCM_SBPRO_4_DECODER 0 | ||
| 1241 | +#define CONFIG_ADPCM_SWF_DECODER 0 | ||
| 1242 | +#define CONFIG_ADPCM_THP_DECODER 0 | ||
| 1243 | +#define CONFIG_ADPCM_THP_LE_DECODER 0 | ||
| 1244 | +#define CONFIG_ADPCM_VIMA_DECODER 0 | ||
| 1245 | +#define CONFIG_ADPCM_XA_DECODER 0 | ||
| 1246 | +#define CONFIG_ADPCM_YAMAHA_DECODER 0 | ||
| 1247 | +#define CONFIG_ADPCM_ZORK_DECODER 0 | ||
| 1248 | +#define CONFIG_SSA_DECODER 0 | ||
| 1249 | +#define CONFIG_ASS_DECODER 0 | ||
| 1250 | +#define CONFIG_CCAPTION_DECODER 0 | ||
| 1251 | +#define CONFIG_DVBSUB_DECODER 0 | ||
| 1252 | +#define CONFIG_DVDSUB_DECODER 0 | ||
| 1253 | +#define CONFIG_JACOSUB_DECODER 0 | ||
| 1254 | +#define CONFIG_MICRODVD_DECODER 0 | ||
| 1255 | +#define CONFIG_MOVTEXT_DECODER 0 | ||
| 1256 | +#define CONFIG_MPL2_DECODER 0 | ||
| 1257 | +#define CONFIG_PGSSUB_DECODER 0 | ||
| 1258 | +#define CONFIG_PJS_DECODER 0 | ||
| 1259 | +#define CONFIG_REALTEXT_DECODER 0 | ||
| 1260 | +#define CONFIG_SAMI_DECODER 0 | ||
| 1261 | +#define CONFIG_SRT_DECODER 0 | ||
| 1262 | +#define CONFIG_STL_DECODER 0 | ||
| 1263 | +#define CONFIG_SUBRIP_DECODER 0 | ||
| 1264 | +#define CONFIG_SUBVIEWER_DECODER 0 | ||
| 1265 | +#define CONFIG_SUBVIEWER1_DECODER 0 | ||
| 1266 | +#define CONFIG_TEXT_DECODER 0 | ||
| 1267 | +#define CONFIG_VPLAYER_DECODER 0 | ||
| 1268 | +#define CONFIG_WEBVTT_DECODER 0 | ||
| 1269 | +#define CONFIG_XSUB_DECODER 0 | ||
| 1270 | +#define CONFIG_AAC_AT_DECODER 0 | ||
| 1271 | +#define CONFIG_AC3_AT_DECODER 0 | ||
| 1272 | +#define CONFIG_ADPCM_IMA_QT_AT_DECODER 0 | ||
| 1273 | +#define CONFIG_ALAC_AT_DECODER 0 | ||
| 1274 | +#define CONFIG_AMR_NB_AT_DECODER 0 | ||
| 1275 | +#define CONFIG_EAC3_AT_DECODER 0 | ||
| 1276 | +#define CONFIG_GSM_MS_AT_DECODER 0 | ||
| 1277 | +#define CONFIG_ILBC_AT_DECODER 0 | ||
| 1278 | +#define CONFIG_MP1_AT_DECODER 0 | ||
| 1279 | +#define CONFIG_MP2_AT_DECODER 0 | ||
| 1280 | +#define CONFIG_MP3_AT_DECODER 0 | ||
| 1281 | +#define CONFIG_PCM_ALAW_AT_DECODER 0 | ||
| 1282 | +#define CONFIG_PCM_MULAW_AT_DECODER 0 | ||
| 1283 | +#define CONFIG_QDMC_AT_DECODER 0 | ||
| 1284 | +#define CONFIG_QDM2_AT_DECODER 0 | ||
| 1285 | +#define CONFIG_LIBARIBB24_DECODER 0 | ||
| 1286 | +#define CONFIG_LIBCELT_DECODER 0 | ||
| 1287 | +#define CONFIG_LIBCODEC2_DECODER 0 | ||
| 1288 | +#define CONFIG_LIBDAV1D_DECODER 0 | ||
| 1289 | +#define CONFIG_LIBDAVS2_DECODER 0 | ||
| 1290 | +#define CONFIG_LIBFDK_AAC_DECODER 0 | ||
| 1291 | +#define CONFIG_LIBGSM_DECODER 0 | ||
| 1292 | +#define CONFIG_LIBGSM_MS_DECODER 0 | ||
| 1293 | +#define CONFIG_LIBILBC_DECODER 0 | ||
| 1294 | +#define CONFIG_LIBOPENCORE_AMRNB_DECODER 0 | ||
| 1295 | +#define CONFIG_LIBOPENCORE_AMRWB_DECODER 0 | ||
| 1296 | +#define CONFIG_LIBOPENJPEG_DECODER 0 | ||
| 1297 | +#define CONFIG_LIBOPUS_DECODER 1 | ||
| 1298 | +#define CONFIG_LIBRSVG_DECODER 0 | ||
| 1299 | +#define CONFIG_LIBSPEEX_DECODER 0 | ||
| 1300 | +#define CONFIG_LIBUAVS3D_DECODER 0 | ||
| 1301 | +#define CONFIG_LIBVORBIS_DECODER 0 | ||
| 1302 | +#define CONFIG_LIBVPX_VP8_DECODER 0 | ||
| 1303 | +#define CONFIG_LIBVPX_VP9_DECODER 0 | ||
| 1304 | +#define CONFIG_LIBZVBI_TELETEXT_DECODER 0 | ||
| 1305 | +#define CONFIG_BINTEXT_DECODER 0 | ||
| 1306 | +#define CONFIG_XBIN_DECODER 0 | ||
| 1307 | +#define CONFIG_IDF_DECODER 0 | ||
| 1308 | +#define CONFIG_LIBAOM_AV1_DECODER 0 | ||
| 1309 | +#define CONFIG_AV1_DECODER 0 | ||
| 1310 | +#define CONFIG_AV1_CUVID_DECODER 0 | ||
| 1311 | +#define CONFIG_AV1_QSV_DECODER 0 | ||
| 1312 | +#define CONFIG_LIBOPENH264_DECODER 0 | ||
| 1313 | +#define CONFIG_H264_CUVID_DECODER 0 | ||
| 1314 | +#define CONFIG_HEVC_CUVID_DECODER 0 | ||
| 1315 | +#define CONFIG_HEVC_MEDIACODEC_DECODER 0 | ||
| 1316 | +#define CONFIG_MJPEG_CUVID_DECODER 0 | ||
| 1317 | +#define CONFIG_MJPEG_QSV_DECODER 0 | ||
| 1318 | +#define CONFIG_MPEG1_CUVID_DECODER 0 | ||
| 1319 | +#define CONFIG_MPEG2_CUVID_DECODER 0 | ||
| 1320 | +#define CONFIG_MPEG4_CUVID_DECODER 0 | ||
| 1321 | +#define CONFIG_MPEG4_MEDIACODEC_DECODER 0 | ||
| 1322 | +#define CONFIG_VC1_CUVID_DECODER 0 | ||
| 1323 | +#define CONFIG_VP8_CUVID_DECODER 0 | ||
| 1324 | +#define CONFIG_VP8_MEDIACODEC_DECODER 0 | ||
| 1325 | +#define CONFIG_VP8_QSV_DECODER 0 | ||
| 1326 | +#define CONFIG_VP9_CUVID_DECODER 0 | ||
| 1327 | +#define CONFIG_VP9_MEDIACODEC_DECODER 0 | ||
| 1328 | +#define CONFIG_VP9_QSV_DECODER 0 | ||
| 1329 | +#define CONFIG_A64MULTI_ENCODER 0 | ||
| 1330 | +#define CONFIG_A64MULTI5_ENCODER 0 | ||
| 1331 | +#define CONFIG_ALIAS_PIX_ENCODER 0 | ||
| 1332 | +#define CONFIG_AMV_ENCODER 0 | ||
| 1333 | +#define CONFIG_APNG_ENCODER 0 | ||
| 1334 | +#define CONFIG_ASV1_ENCODER 0 | ||
| 1335 | +#define CONFIG_ASV2_ENCODER 0 | ||
| 1336 | +#define CONFIG_AVRP_ENCODER 0 | ||
| 1337 | +#define CONFIG_AVUI_ENCODER 0 | ||
| 1338 | +#define CONFIG_AYUV_ENCODER 0 | ||
| 1339 | +#define CONFIG_BITPACKED_ENCODER 0 | ||
| 1340 | +#define CONFIG_BMP_ENCODER 0 | ||
| 1341 | +#define CONFIG_CFHD_ENCODER 0 | ||
| 1342 | +#define CONFIG_CINEPAK_ENCODER 0 | ||
| 1343 | +#define CONFIG_CLJR_ENCODER 0 | ||
| 1344 | +#define CONFIG_COMFORTNOISE_ENCODER 0 | ||
| 1345 | +#define CONFIG_DNXHD_ENCODER 0 | ||
| 1346 | +#define CONFIG_DPX_ENCODER 0 | ||
| 1347 | +#define CONFIG_DVVIDEO_ENCODER 0 | ||
| 1348 | +#define CONFIG_EXR_ENCODER 0 | ||
| 1349 | +#define CONFIG_FFV1_ENCODER 0 | ||
| 1350 | +#define CONFIG_FFVHUFF_ENCODER 0 | ||
| 1351 | +#define CONFIG_FITS_ENCODER 0 | ||
| 1352 | +#define CONFIG_FLASHSV_ENCODER 0 | ||
| 1353 | +#define CONFIG_FLASHSV2_ENCODER 0 | ||
| 1354 | +#define CONFIG_FLV_ENCODER 0 | ||
| 1355 | +#define CONFIG_GIF_ENCODER 0 | ||
| 1356 | +#define CONFIG_H261_ENCODER 0 | ||
| 1357 | +#define CONFIG_H263_ENCODER 0 | ||
| 1358 | +#define CONFIG_H263P_ENCODER 0 | ||
| 1359 | +#define CONFIG_HAP_ENCODER 0 | ||
| 1360 | +#define CONFIG_HUFFYUV_ENCODER 0 | ||
| 1361 | +#define CONFIG_JPEG2000_ENCODER 0 | ||
| 1362 | +#define CONFIG_JPEGLS_ENCODER 0 | ||
| 1363 | +#define CONFIG_LJPEG_ENCODER 0 | ||
| 1364 | +#define CONFIG_MAGICYUV_ENCODER 0 | ||
| 1365 | +#define CONFIG_MJPEG_ENCODER 0 | ||
| 1366 | +#define CONFIG_MPEG1VIDEO_ENCODER 0 | ||
| 1367 | +#define CONFIG_MPEG2VIDEO_ENCODER 0 | ||
| 1368 | +#define CONFIG_MPEG4_ENCODER 0 | ||
| 1369 | +#define CONFIG_MSMPEG4V2_ENCODER 0 | ||
| 1370 | +#define CONFIG_MSMPEG4V3_ENCODER 0 | ||
| 1371 | +#define CONFIG_MSVIDEO1_ENCODER 0 | ||
| 1372 | +#define CONFIG_PAM_ENCODER 0 | ||
| 1373 | +#define CONFIG_PBM_ENCODER 0 | ||
| 1374 | +#define CONFIG_PCX_ENCODER 0 | ||
| 1375 | +#define CONFIG_PFM_ENCODER 0 | ||
| 1376 | +#define CONFIG_PGM_ENCODER 0 | ||
| 1377 | +#define CONFIG_PGMYUV_ENCODER 0 | ||
| 1378 | +#define CONFIG_PNG_ENCODER 0 | ||
| 1379 | +#define CONFIG_PPM_ENCODER 0 | ||
| 1380 | +#define CONFIG_PRORES_ENCODER 0 | ||
| 1381 | +#define CONFIG_PRORES_AW_ENCODER 0 | ||
| 1382 | +#define CONFIG_PRORES_KS_ENCODER 0 | ||
| 1383 | +#define CONFIG_QTRLE_ENCODER 0 | ||
| 1384 | +#define CONFIG_R10K_ENCODER 0 | ||
| 1385 | +#define CONFIG_R210_ENCODER 0 | ||
| 1386 | +#define CONFIG_RAWVIDEO_ENCODER 0 | ||
| 1387 | +#define CONFIG_ROQ_ENCODER 0 | ||
| 1388 | +#define CONFIG_RPZA_ENCODER 0 | ||
| 1389 | +#define CONFIG_RV10_ENCODER 0 | ||
| 1390 | +#define CONFIG_RV20_ENCODER 0 | ||
| 1391 | +#define CONFIG_S302M_ENCODER 0 | ||
| 1392 | +#define CONFIG_SGI_ENCODER 0 | ||
| 1393 | +#define CONFIG_SMC_ENCODER 0 | ||
| 1394 | +#define CONFIG_SNOW_ENCODER 0 | ||
| 1395 | +#define CONFIG_SPEEDHQ_ENCODER 0 | ||
| 1396 | +#define CONFIG_SUNRAST_ENCODER 0 | ||
| 1397 | +#define CONFIG_SVQ1_ENCODER 0 | ||
| 1398 | +#define CONFIG_TARGA_ENCODER 0 | ||
| 1399 | +#define CONFIG_TIFF_ENCODER 0 | ||
| 1400 | +#define CONFIG_UTVIDEO_ENCODER 0 | ||
| 1401 | +#define CONFIG_V210_ENCODER 0 | ||
| 1402 | +#define CONFIG_V308_ENCODER 0 | ||
| 1403 | +#define CONFIG_V408_ENCODER 0 | ||
| 1404 | +#define CONFIG_V410_ENCODER 0 | ||
| 1405 | +#define CONFIG_VC2_ENCODER 0 | ||
| 1406 | +#define CONFIG_WRAPPED_AVFRAME_ENCODER 0 | ||
| 1407 | +#define CONFIG_WMV1_ENCODER 0 | ||
| 1408 | +#define CONFIG_WMV2_ENCODER 0 | ||
| 1409 | +#define CONFIG_XBM_ENCODER 0 | ||
| 1410 | +#define CONFIG_XFACE_ENCODER 0 | ||
| 1411 | +#define CONFIG_XWD_ENCODER 0 | ||
| 1412 | +#define CONFIG_Y41P_ENCODER 0 | ||
| 1413 | +#define CONFIG_YUV4_ENCODER 0 | ||
| 1414 | +#define CONFIG_ZLIB_ENCODER 0 | ||
| 1415 | +#define CONFIG_ZMBV_ENCODER 0 | ||
| 1416 | +#define CONFIG_AAC_ENCODER 0 | ||
| 1417 | +#define CONFIG_AC3_ENCODER 0 | ||
| 1418 | +#define CONFIG_AC3_FIXED_ENCODER 0 | ||
| 1419 | +#define CONFIG_ALAC_ENCODER 0 | ||
| 1420 | +#define CONFIG_APTX_ENCODER 0 | ||
| 1421 | +#define CONFIG_APTX_HD_ENCODER 0 | ||
| 1422 | +#define CONFIG_DCA_ENCODER 0 | ||
| 1423 | +#define CONFIG_EAC3_ENCODER 0 | ||
| 1424 | +#define CONFIG_FLAC_ENCODER 0 | ||
| 1425 | +#define CONFIG_G723_1_ENCODER 0 | ||
| 1426 | +#define CONFIG_MLP_ENCODER 0 | ||
| 1427 | +#define CONFIG_MP2_ENCODER 0 | ||
| 1428 | +#define CONFIG_MP2FIXED_ENCODER 0 | ||
| 1429 | +#define CONFIG_NELLYMOSER_ENCODER 0 | ||
| 1430 | +#define CONFIG_OPUS_ENCODER 0 | ||
| 1431 | +#define CONFIG_RA_144_ENCODER 0 | ||
| 1432 | +#define CONFIG_SBC_ENCODER 0 | ||
| 1433 | +#define CONFIG_SONIC_ENCODER 0 | ||
| 1434 | +#define CONFIG_SONIC_LS_ENCODER 0 | ||
| 1435 | +#define CONFIG_TRUEHD_ENCODER 0 | ||
| 1436 | +#define CONFIG_TTA_ENCODER 0 | ||
| 1437 | +#define CONFIG_VORBIS_ENCODER 0 | ||
| 1438 | +#define CONFIG_WAVPACK_ENCODER 0 | ||
| 1439 | +#define CONFIG_WMAV1_ENCODER 0 | ||
| 1440 | +#define CONFIG_WMAV2_ENCODER 0 | ||
| 1441 | +#define CONFIG_PCM_ALAW_ENCODER 0 | ||
| 1442 | +#define CONFIG_PCM_DVD_ENCODER 0 | ||
| 1443 | +#define CONFIG_PCM_F32BE_ENCODER 0 | ||
| 1444 | +#define CONFIG_PCM_F32LE_ENCODER 0 | ||
| 1445 | +#define CONFIG_PCM_F64BE_ENCODER 0 | ||
| 1446 | +#define CONFIG_PCM_F64LE_ENCODER 0 | ||
| 1447 | +#define CONFIG_PCM_MULAW_ENCODER 0 | ||
| 1448 | +#define CONFIG_PCM_S8_ENCODER 0 | ||
| 1449 | +#define CONFIG_PCM_S8_PLANAR_ENCODER 0 | ||
| 1450 | +#define CONFIG_PCM_S16BE_ENCODER 0 | ||
| 1451 | +#define CONFIG_PCM_S16BE_PLANAR_ENCODER 0 | ||
| 1452 | +#define CONFIG_PCM_S16LE_ENCODER 0 | ||
| 1453 | +#define CONFIG_PCM_S16LE_PLANAR_ENCODER 0 | ||
| 1454 | +#define CONFIG_PCM_S24BE_ENCODER 0 | ||
| 1455 | +#define CONFIG_PCM_S24DAUD_ENCODER 0 | ||
| 1456 | +#define CONFIG_PCM_S24LE_ENCODER 0 | ||
| 1457 | +#define CONFIG_PCM_S24LE_PLANAR_ENCODER 0 | ||
| 1458 | +#define CONFIG_PCM_S32BE_ENCODER 0 | ||
| 1459 | +#define CONFIG_PCM_S32LE_ENCODER 0 | ||
| 1460 | +#define CONFIG_PCM_S32LE_PLANAR_ENCODER 0 | ||
| 1461 | +#define CONFIG_PCM_S64BE_ENCODER 0 | ||
| 1462 | +#define CONFIG_PCM_S64LE_ENCODER 0 | ||
| 1463 | +#define CONFIG_PCM_U8_ENCODER 0 | ||
| 1464 | +#define CONFIG_PCM_U16BE_ENCODER 0 | ||
| 1465 | +#define CONFIG_PCM_U16LE_ENCODER 0 | ||
| 1466 | +#define CONFIG_PCM_U24BE_ENCODER 0 | ||
| 1467 | +#define CONFIG_PCM_U24LE_ENCODER 0 | ||
| 1468 | +#define CONFIG_PCM_U32BE_ENCODER 0 | ||
| 1469 | +#define CONFIG_PCM_U32LE_ENCODER 0 | ||
| 1470 | +#define CONFIG_PCM_VIDC_ENCODER 0 | ||
| 1471 | +#define CONFIG_ROQ_DPCM_ENCODER 0 | ||
| 1472 | +#define CONFIG_ADPCM_ADX_ENCODER 0 | ||
| 1473 | +#define CONFIG_ADPCM_ARGO_ENCODER 0 | ||
| 1474 | +#define CONFIG_ADPCM_G722_ENCODER 0 | ||
| 1475 | +#define CONFIG_ADPCM_G726_ENCODER 0 | ||
| 1476 | +#define CONFIG_ADPCM_G726LE_ENCODER 0 | ||
| 1477 | +#define CONFIG_ADPCM_IMA_AMV_ENCODER 0 | ||
| 1478 | +#define CONFIG_ADPCM_IMA_ALP_ENCODER 0 | ||
| 1479 | +#define CONFIG_ADPCM_IMA_APM_ENCODER 0 | ||
| 1480 | +#define CONFIG_ADPCM_IMA_QT_ENCODER 0 | ||
| 1481 | +#define CONFIG_ADPCM_IMA_SSI_ENCODER 0 | ||
| 1482 | +#define CONFIG_ADPCM_IMA_WAV_ENCODER 0 | ||
| 1483 | +#define CONFIG_ADPCM_IMA_WS_ENCODER 0 | ||
| 1484 | +#define CONFIG_ADPCM_MS_ENCODER 0 | ||
| 1485 | +#define CONFIG_ADPCM_SWF_ENCODER 0 | ||
| 1486 | +#define CONFIG_ADPCM_YAMAHA_ENCODER 0 | ||
| 1487 | +#define CONFIG_SSA_ENCODER 0 | ||
| 1488 | +#define CONFIG_ASS_ENCODER 0 | ||
| 1489 | +#define CONFIG_DVBSUB_ENCODER 0 | ||
| 1490 | +#define CONFIG_DVDSUB_ENCODER 0 | ||
| 1491 | +#define CONFIG_MOVTEXT_ENCODER 0 | ||
| 1492 | +#define CONFIG_SRT_ENCODER 0 | ||
| 1493 | +#define CONFIG_SUBRIP_ENCODER 0 | ||
| 1494 | +#define CONFIG_TEXT_ENCODER 0 | ||
| 1495 | +#define CONFIG_TTML_ENCODER 0 | ||
| 1496 | +#define CONFIG_WEBVTT_ENCODER 0 | ||
| 1497 | +#define CONFIG_XSUB_ENCODER 0 | ||
| 1498 | +#define CONFIG_AAC_AT_ENCODER 0 | ||
| 1499 | +#define CONFIG_ALAC_AT_ENCODER 0 | ||
| 1500 | +#define CONFIG_ILBC_AT_ENCODER 0 | ||
| 1501 | +#define CONFIG_PCM_ALAW_AT_ENCODER 0 | ||
| 1502 | +#define CONFIG_PCM_MULAW_AT_ENCODER 0 | ||
| 1503 | +#define CONFIG_LIBAOM_AV1_ENCODER 0 | ||
| 1504 | +#define CONFIG_LIBCODEC2_ENCODER 0 | ||
| 1505 | +#define CONFIG_LIBFDK_AAC_ENCODER 0 | ||
| 1506 | +#define CONFIG_LIBGSM_ENCODER 0 | ||
| 1507 | +#define CONFIG_LIBGSM_MS_ENCODER 0 | ||
| 1508 | +#define CONFIG_LIBILBC_ENCODER 0 | ||
| 1509 | +#define CONFIG_LIBMP3LAME_ENCODER 0 | ||
| 1510 | +#define CONFIG_LIBOPENCORE_AMRNB_ENCODER 0 | ||
| 1511 | +#define CONFIG_LIBOPENJPEG_ENCODER 0 | ||
| 1512 | +#define CONFIG_LIBOPUS_ENCODER 0 | ||
| 1513 | +#define CONFIG_LIBRAV1E_ENCODER 0 | ||
| 1514 | +#define CONFIG_LIBSHINE_ENCODER 0 | ||
| 1515 | +#define CONFIG_LIBSPEEX_ENCODER 0 | ||
| 1516 | +#define CONFIG_LIBSVTAV1_ENCODER 0 | ||
| 1517 | +#define CONFIG_LIBTHEORA_ENCODER 0 | ||
| 1518 | +#define CONFIG_LIBTWOLAME_ENCODER 0 | ||
| 1519 | +#define CONFIG_LIBVO_AMRWBENC_ENCODER 0 | ||
| 1520 | +#define CONFIG_LIBVORBIS_ENCODER 0 | ||
| 1521 | +#define CONFIG_LIBVPX_VP8_ENCODER 0 | ||
| 1522 | +#define CONFIG_LIBVPX_VP9_ENCODER 0 | ||
| 1523 | +#define CONFIG_LIBWEBP_ANIM_ENCODER 0 | ||
| 1524 | +#define CONFIG_LIBWEBP_ENCODER 0 | ||
| 1525 | +#define CONFIG_LIBX262_ENCODER 0 | ||
| 1526 | +#define CONFIG_LIBX264_ENCODER 0 | ||
| 1527 | +#define CONFIG_LIBX264RGB_ENCODER 0 | ||
| 1528 | +#define CONFIG_LIBX265_ENCODER 0 | ||
| 1529 | +#define CONFIG_LIBXAVS_ENCODER 0 | ||
| 1530 | +#define CONFIG_LIBXAVS2_ENCODER 0 | ||
| 1531 | +#define CONFIG_LIBXVID_ENCODER 0 | ||
| 1532 | +#define CONFIG_AAC_MF_ENCODER 0 | ||
| 1533 | +#define CONFIG_AC3_MF_ENCODER 0 | ||
| 1534 | +#define CONFIG_H263_V4L2M2M_ENCODER 0 | ||
| 1535 | +#define CONFIG_LIBOPENH264_ENCODER 0 | ||
| 1536 | +#define CONFIG_H264_AMF_ENCODER 0 | ||
| 1537 | +#define CONFIG_H264_MF_ENCODER 0 | ||
| 1538 | +#define CONFIG_H264_NVENC_ENCODER 0 | ||
| 1539 | +#define CONFIG_H264_OMX_ENCODER 0 | ||
| 1540 | +#define CONFIG_H264_QSV_ENCODER 0 | ||
| 1541 | +#define CONFIG_H264_V4L2M2M_ENCODER 0 | ||
| 1542 | +#define CONFIG_H264_VAAPI_ENCODER 0 | ||
| 1543 | +#define CONFIG_H264_VIDEOTOOLBOX_ENCODER 0 | ||
| 1544 | +#define CONFIG_HEVC_AMF_ENCODER 0 | ||
| 1545 | +#define CONFIG_HEVC_MF_ENCODER 0 | ||
| 1546 | +#define CONFIG_HEVC_NVENC_ENCODER 0 | ||
| 1547 | +#define CONFIG_HEVC_QSV_ENCODER 0 | ||
| 1548 | +#define CONFIG_HEVC_V4L2M2M_ENCODER 0 | ||
| 1549 | +#define CONFIG_HEVC_VAAPI_ENCODER 0 | ||
| 1550 | +#define CONFIG_HEVC_VIDEOTOOLBOX_ENCODER 0 | ||
| 1551 | +#define CONFIG_LIBKVAZAAR_ENCODER 0 | ||
| 1552 | +#define CONFIG_MJPEG_QSV_ENCODER 0 | ||
| 1553 | +#define CONFIG_MJPEG_VAAPI_ENCODER 0 | ||
| 1554 | +#define CONFIG_MP3_MF_ENCODER 0 | ||
| 1555 | +#define CONFIG_MPEG2_QSV_ENCODER 0 | ||
| 1556 | +#define CONFIG_MPEG2_VAAPI_ENCODER 0 | ||
| 1557 | +#define CONFIG_MPEG4_OMX_ENCODER 0 | ||
| 1558 | +#define CONFIG_MPEG4_V4L2M2M_ENCODER 0 | ||
| 1559 | +#define CONFIG_PRORES_VIDEOTOOLBOX_ENCODER 0 | ||
| 1560 | +#define CONFIG_VP8_V4L2M2M_ENCODER 0 | ||
| 1561 | +#define CONFIG_VP8_VAAPI_ENCODER 0 | ||
| 1562 | +#define CONFIG_VP9_VAAPI_ENCODER 0 | ||
| 1563 | +#define CONFIG_VP9_QSV_ENCODER 0 | ||
| 1564 | +#define CONFIG_AV1_D3D11VA_HWACCEL 0 | ||
| 1565 | +#define CONFIG_AV1_D3D11VA2_HWACCEL 0 | ||
| 1566 | +#define CONFIG_AV1_DXVA2_HWACCEL 0 | ||
| 1567 | +#define CONFIG_AV1_NVDEC_HWACCEL 0 | ||
| 1568 | +#define CONFIG_AV1_VAAPI_HWACCEL 0 | ||
| 1569 | +#define CONFIG_H263_VAAPI_HWACCEL 0 | ||
| 1570 | +#define CONFIG_H263_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1571 | +#define CONFIG_H264_D3D11VA_HWACCEL 0 | ||
| 1572 | +#define CONFIG_H264_D3D11VA2_HWACCEL 0 | ||
| 1573 | +#define CONFIG_H264_DXVA2_HWACCEL 0 | ||
| 1574 | +#define CONFIG_H264_NVDEC_HWACCEL 0 | ||
| 1575 | +#define CONFIG_H264_VAAPI_HWACCEL 0 | ||
| 1576 | +#define CONFIG_H264_VDPAU_HWACCEL 0 | ||
| 1577 | +#define CONFIG_H264_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1578 | +#define CONFIG_HEVC_D3D11VA_HWACCEL 0 | ||
| 1579 | +#define CONFIG_HEVC_D3D11VA2_HWACCEL 0 | ||
| 1580 | +#define CONFIG_HEVC_DXVA2_HWACCEL 0 | ||
| 1581 | +#define CONFIG_HEVC_NVDEC_HWACCEL 0 | ||
| 1582 | +#define CONFIG_HEVC_VAAPI_HWACCEL 0 | ||
| 1583 | +#define CONFIG_HEVC_VDPAU_HWACCEL 0 | ||
| 1584 | +#define CONFIG_HEVC_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1585 | +#define CONFIG_MJPEG_NVDEC_HWACCEL 0 | ||
| 1586 | +#define CONFIG_MJPEG_VAAPI_HWACCEL 0 | ||
| 1587 | +#define CONFIG_MPEG1_NVDEC_HWACCEL 0 | ||
| 1588 | +#define CONFIG_MPEG1_VDPAU_HWACCEL 0 | ||
| 1589 | +#define CONFIG_MPEG1_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1590 | +#define CONFIG_MPEG1_XVMC_HWACCEL 0 | ||
| 1591 | +#define CONFIG_MPEG2_D3D11VA_HWACCEL 0 | ||
| 1592 | +#define CONFIG_MPEG2_D3D11VA2_HWACCEL 0 | ||
| 1593 | +#define CONFIG_MPEG2_NVDEC_HWACCEL 0 | ||
| 1594 | +#define CONFIG_MPEG2_DXVA2_HWACCEL 0 | ||
| 1595 | +#define CONFIG_MPEG2_VAAPI_HWACCEL 0 | ||
| 1596 | +#define CONFIG_MPEG2_VDPAU_HWACCEL 0 | ||
| 1597 | +#define CONFIG_MPEG2_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1598 | +#define CONFIG_MPEG2_XVMC_HWACCEL 0 | ||
| 1599 | +#define CONFIG_MPEG4_NVDEC_HWACCEL 0 | ||
| 1600 | +#define CONFIG_MPEG4_VAAPI_HWACCEL 0 | ||
| 1601 | +#define CONFIG_MPEG4_VDPAU_HWACCEL 0 | ||
| 1602 | +#define CONFIG_MPEG4_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1603 | +#define CONFIG_PRORES_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1604 | +#define CONFIG_VC1_D3D11VA_HWACCEL 0 | ||
| 1605 | +#define CONFIG_VC1_D3D11VA2_HWACCEL 0 | ||
| 1606 | +#define CONFIG_VC1_DXVA2_HWACCEL 0 | ||
| 1607 | +#define CONFIG_VC1_NVDEC_HWACCEL 0 | ||
| 1608 | +#define CONFIG_VC1_VAAPI_HWACCEL 0 | ||
| 1609 | +#define CONFIG_VC1_VDPAU_HWACCEL 0 | ||
| 1610 | +#define CONFIG_VP8_NVDEC_HWACCEL 0 | ||
| 1611 | +#define CONFIG_VP8_VAAPI_HWACCEL 0 | ||
| 1612 | +#define CONFIG_VP9_D3D11VA_HWACCEL 0 | ||
| 1613 | +#define CONFIG_VP9_D3D11VA2_HWACCEL 0 | ||
| 1614 | +#define CONFIG_VP9_DXVA2_HWACCEL 0 | ||
| 1615 | +#define CONFIG_VP9_NVDEC_HWACCEL 0 | ||
| 1616 | +#define CONFIG_VP9_VAAPI_HWACCEL 0 | ||
| 1617 | +#define CONFIG_VP9_VDPAU_HWACCEL 0 | ||
| 1618 | +#define CONFIG_VP9_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1619 | +#define CONFIG_WMV3_D3D11VA_HWACCEL 0 | ||
| 1620 | +#define CONFIG_WMV3_D3D11VA2_HWACCEL 0 | ||
| 1621 | +#define CONFIG_WMV3_DXVA2_HWACCEL 0 | ||
| 1622 | +#define CONFIG_WMV3_NVDEC_HWACCEL 0 | ||
| 1623 | +#define CONFIG_WMV3_VAAPI_HWACCEL 0 | ||
| 1624 | +#define CONFIG_WMV3_VDPAU_HWACCEL 0 | ||
| 1625 | +#define CONFIG_AAC_PARSER 1 | ||
| 1626 | +#define CONFIG_AAC_LATM_PARSER 0 | ||
| 1627 | +#define CONFIG_AC3_PARSER 0 | ||
| 1628 | +#define CONFIG_ADX_PARSER 0 | ||
| 1629 | +#define CONFIG_AMR_PARSER 0 | ||
| 1630 | +#define CONFIG_AV1_PARSER 0 | ||
| 1631 | +#define CONFIG_AVS2_PARSER 0 | ||
| 1632 | +#define CONFIG_AVS3_PARSER 0 | ||
| 1633 | +#define CONFIG_BMP_PARSER 0 | ||
| 1634 | +#define CONFIG_CAVSVIDEO_PARSER 0 | ||
| 1635 | +#define CONFIG_COOK_PARSER 0 | ||
| 1636 | +#define CONFIG_CRI_PARSER 0 | ||
| 1637 | +#define CONFIG_DCA_PARSER 0 | ||
| 1638 | +#define CONFIG_DIRAC_PARSER 0 | ||
| 1639 | +#define CONFIG_DNXHD_PARSER 0 | ||
| 1640 | +#define CONFIG_DOLBY_E_PARSER 0 | ||
| 1641 | +#define CONFIG_DPX_PARSER 0 | ||
| 1642 | +#define CONFIG_DVAUDIO_PARSER 0 | ||
| 1643 | +#define CONFIG_DVBSUB_PARSER 0 | ||
| 1644 | +#define CONFIG_DVDSUB_PARSER 0 | ||
| 1645 | +#define CONFIG_DVD_NAV_PARSER 0 | ||
| 1646 | +#define CONFIG_FLAC_PARSER 1 | ||
| 1647 | +#define CONFIG_G723_1_PARSER 0 | ||
| 1648 | +#define CONFIG_G729_PARSER 0 | ||
| 1649 | +#define CONFIG_GIF_PARSER 0 | ||
| 1650 | +#define CONFIG_GSM_PARSER 0 | ||
| 1651 | +#define CONFIG_H261_PARSER 0 | ||
| 1652 | +#define CONFIG_H263_PARSER 0 | ||
| 1653 | +#define CONFIG_H264_PARSER 1 | ||
| 1654 | +#define CONFIG_HEVC_PARSER 0 | ||
| 1655 | +#define CONFIG_IPU_PARSER 0 | ||
| 1656 | +#define CONFIG_JPEG2000_PARSER 0 | ||
| 1657 | +#define CONFIG_MJPEG_PARSER 0 | ||
| 1658 | +#define CONFIG_MLP_PARSER 0 | ||
| 1659 | +#define CONFIG_MPEG4VIDEO_PARSER 0 | ||
| 1660 | +#define CONFIG_MPEGAUDIO_PARSER 1 | ||
| 1661 | +#define CONFIG_MPEGVIDEO_PARSER 0 | ||
| 1662 | +#define CONFIG_OPUS_PARSER 1 | ||
| 1663 | +#define CONFIG_PNG_PARSER 0 | ||
| 1664 | +#define CONFIG_PNM_PARSER 0 | ||
| 1665 | +#define CONFIG_RV30_PARSER 0 | ||
| 1666 | +#define CONFIG_RV40_PARSER 0 | ||
| 1667 | +#define CONFIG_SBC_PARSER 0 | ||
| 1668 | +#define CONFIG_SIPR_PARSER 0 | ||
| 1669 | +#define CONFIG_TAK_PARSER 0 | ||
| 1670 | +#define CONFIG_VC1_PARSER 0 | ||
| 1671 | +#define CONFIG_VORBIS_PARSER 1 | ||
| 1672 | +#define CONFIG_VP3_PARSER 1 | ||
| 1673 | +#define CONFIG_VP8_PARSER 1 | ||
| 1674 | +#define CONFIG_VP9_PARSER 1 | ||
| 1675 | +#define CONFIG_WEBP_PARSER 0 | ||
| 1676 | +#define CONFIG_XBM_PARSER 0 | ||
| 1677 | +#define CONFIG_XMA_PARSER 0 | ||
| 1678 | +#define CONFIG_ALSA_INDEV 0 | ||
| 1679 | +#define CONFIG_ANDROID_CAMERA_INDEV 0 | ||
| 1680 | +#define CONFIG_AVFOUNDATION_INDEV 0 | ||
| 1681 | +#define CONFIG_BKTR_INDEV 0 | ||
| 1682 | +#define CONFIG_DECKLINK_INDEV 0 | ||
| 1683 | +#define CONFIG_DSHOW_INDEV 0 | ||
| 1684 | +#define CONFIG_FBDEV_INDEV 0 | ||
| 1685 | +#define CONFIG_GDIGRAB_INDEV 0 | ||
| 1686 | +#define CONFIG_IEC61883_INDEV 0 | ||
| 1687 | +#define CONFIG_JACK_INDEV 0 | ||
| 1688 | +#define CONFIG_KMSGRAB_INDEV 0 | ||
| 1689 | +#define CONFIG_LAVFI_INDEV 0 | ||
| 1690 | +#define CONFIG_OPENAL_INDEV 0 | ||
| 1691 | +#define CONFIG_OSS_INDEV 0 | ||
| 1692 | +#define CONFIG_PULSE_INDEV 0 | ||
| 1693 | +#define CONFIG_SNDIO_INDEV 0 | ||
| 1694 | +#define CONFIG_V4L2_INDEV 0 | ||
| 1695 | +#define CONFIG_VFWCAP_INDEV 0 | ||
| 1696 | +#define CONFIG_XCBGRAB_INDEV 0 | ||
| 1697 | +#define CONFIG_LIBCDIO_INDEV 0 | ||
| 1698 | +#define CONFIG_LIBDC1394_INDEV 0 | ||
| 1699 | +#define CONFIG_ALSA_OUTDEV 0 | ||
| 1700 | +#define CONFIG_AUDIOTOOLBOX_OUTDEV 0 | ||
| 1701 | +#define CONFIG_CACA_OUTDEV 0 | ||
| 1702 | +#define CONFIG_DECKLINK_OUTDEV 0 | ||
| 1703 | +#define CONFIG_FBDEV_OUTDEV 0 | ||
| 1704 | +#define CONFIG_OPENGL_OUTDEV 0 | ||
| 1705 | +#define CONFIG_OSS_OUTDEV 0 | ||
| 1706 | +#define CONFIG_PULSE_OUTDEV 0 | ||
| 1707 | +#define CONFIG_SDL2_OUTDEV 0 | ||
| 1708 | +#define CONFIG_SNDIO_OUTDEV 0 | ||
| 1709 | +#define CONFIG_V4L2_OUTDEV 0 | ||
| 1710 | +#define CONFIG_XV_OUTDEV 0 | ||
| 1711 | +#define CONFIG_ABENCH_FILTER 0 | ||
| 1712 | +#define CONFIG_ACOMPRESSOR_FILTER 0 | ||
| 1713 | +#define CONFIG_ACONTRAST_FILTER 0 | ||
| 1714 | +#define CONFIG_ACOPY_FILTER 0 | ||
| 1715 | +#define CONFIG_ACUE_FILTER 0 | ||
| 1716 | +#define CONFIG_ACROSSFADE_FILTER 0 | ||
| 1717 | +#define CONFIG_ACROSSOVER_FILTER 0 | ||
| 1718 | +#define CONFIG_ACRUSHER_FILTER 0 | ||
| 1719 | +#define CONFIG_ADECLICK_FILTER 0 | ||
| 1720 | +#define CONFIG_ADECLIP_FILTER 0 | ||
| 1721 | +#define CONFIG_ADECORRELATE_FILTER 0 | ||
| 1722 | +#define CONFIG_ADELAY_FILTER 0 | ||
| 1723 | +#define CONFIG_ADENORM_FILTER 0 | ||
| 1724 | +#define CONFIG_ADERIVATIVE_FILTER 0 | ||
| 1725 | +#define CONFIG_ADYNAMICEQUALIZER_FILTER 0 | ||
| 1726 | +#define CONFIG_ADYNAMICSMOOTH_FILTER 0 | ||
| 1727 | +#define CONFIG_AECHO_FILTER 0 | ||
| 1728 | +#define CONFIG_AEMPHASIS_FILTER 0 | ||
| 1729 | +#define CONFIG_AEVAL_FILTER 0 | ||
| 1730 | +#define CONFIG_AEXCITER_FILTER 0 | ||
| 1731 | +#define CONFIG_AFADE_FILTER 0 | ||
| 1732 | +#define CONFIG_AFFTDN_FILTER 0 | ||
| 1733 | +#define CONFIG_AFFTFILT_FILTER 0 | ||
| 1734 | +#define CONFIG_AFIR_FILTER 0 | ||
| 1735 | +#define CONFIG_AFORMAT_FILTER 0 | ||
| 1736 | +#define CONFIG_AFREQSHIFT_FILTER 0 | ||
| 1737 | +#define CONFIG_AFWTDN_FILTER 0 | ||
| 1738 | +#define CONFIG_AGATE_FILTER 0 | ||
| 1739 | +#define CONFIG_AIIR_FILTER 0 | ||
| 1740 | +#define CONFIG_AINTEGRAL_FILTER 0 | ||
| 1741 | +#define CONFIG_AINTERLEAVE_FILTER 0 | ||
| 1742 | +#define CONFIG_ALATENCY_FILTER 0 | ||
| 1743 | +#define CONFIG_ALIMITER_FILTER 0 | ||
| 1744 | +#define CONFIG_ALLPASS_FILTER 0 | ||
| 1745 | +#define CONFIG_ALOOP_FILTER 0 | ||
| 1746 | +#define CONFIG_AMERGE_FILTER 0 | ||
| 1747 | +#define CONFIG_AMETADATA_FILTER 0 | ||
| 1748 | +#define CONFIG_AMIX_FILTER 0 | ||
| 1749 | +#define CONFIG_AMULTIPLY_FILTER 0 | ||
| 1750 | +#define CONFIG_ANEQUALIZER_FILTER 0 | ||
| 1751 | +#define CONFIG_ANLMDN_FILTER 0 | ||
| 1752 | +#define CONFIG_ANLMF_FILTER 0 | ||
| 1753 | +#define CONFIG_ANLMS_FILTER 0 | ||
| 1754 | +#define CONFIG_ANULL_FILTER 0 | ||
| 1755 | +#define CONFIG_APAD_FILTER 0 | ||
| 1756 | +#define CONFIG_APERMS_FILTER 0 | ||
| 1757 | +#define CONFIG_APHASER_FILTER 0 | ||
| 1758 | +#define CONFIG_APHASESHIFT_FILTER 0 | ||
| 1759 | +#define CONFIG_APSYCLIP_FILTER 0 | ||
| 1760 | +#define CONFIG_APULSATOR_FILTER 0 | ||
| 1761 | +#define CONFIG_AREALTIME_FILTER 0 | ||
| 1762 | +#define CONFIG_ARESAMPLE_FILTER 0 | ||
| 1763 | +#define CONFIG_AREVERSE_FILTER 0 | ||
| 1764 | +#define CONFIG_ARNNDN_FILTER 0 | ||
| 1765 | +#define CONFIG_ASDR_FILTER 0 | ||
| 1766 | +#define CONFIG_ASEGMENT_FILTER 0 | ||
| 1767 | +#define CONFIG_ASELECT_FILTER 0 | ||
| 1768 | +#define CONFIG_ASENDCMD_FILTER 0 | ||
| 1769 | +#define CONFIG_ASETNSAMPLES_FILTER 0 | ||
| 1770 | +#define CONFIG_ASETPTS_FILTER 0 | ||
| 1771 | +#define CONFIG_ASETRATE_FILTER 0 | ||
| 1772 | +#define CONFIG_ASETTB_FILTER 0 | ||
| 1773 | +#define CONFIG_ASHOWINFO_FILTER 0 | ||
| 1774 | +#define CONFIG_ASIDEDATA_FILTER 0 | ||
| 1775 | +#define CONFIG_ASOFTCLIP_FILTER 0 | ||
| 1776 | +#define CONFIG_ASPECTRALSTATS_FILTER 0 | ||
| 1777 | +#define CONFIG_ASPLIT_FILTER 0 | ||
| 1778 | +#define CONFIG_ASR_FILTER 0 | ||
| 1779 | +#define CONFIG_ASTATS_FILTER 0 | ||
| 1780 | +#define CONFIG_ASTREAMSELECT_FILTER 0 | ||
| 1781 | +#define CONFIG_ASUBBOOST_FILTER 0 | ||
| 1782 | +#define CONFIG_ASUBCUT_FILTER 0 | ||
| 1783 | +#define CONFIG_ASUPERCUT_FILTER 0 | ||
| 1784 | +#define CONFIG_ASUPERPASS_FILTER 0 | ||
| 1785 | +#define CONFIG_ASUPERSTOP_FILTER 0 | ||
| 1786 | +#define CONFIG_ATEMPO_FILTER 0 | ||
| 1787 | +#define CONFIG_ATILT_FILTER 0 | ||
| 1788 | +#define CONFIG_ATRIM_FILTER 0 | ||
| 1789 | +#define CONFIG_AXCORRELATE_FILTER 0 | ||
| 1790 | +#define CONFIG_AZMQ_FILTER 0 | ||
| 1791 | +#define CONFIG_BANDPASS_FILTER 0 | ||
| 1792 | +#define CONFIG_BANDREJECT_FILTER 0 | ||
| 1793 | +#define CONFIG_BASS_FILTER 0 | ||
| 1794 | +#define CONFIG_BIQUAD_FILTER 0 | ||
| 1795 | +#define CONFIG_BS2B_FILTER 0 | ||
| 1796 | +#define CONFIG_CHANNELMAP_FILTER 0 | ||
| 1797 | +#define CONFIG_CHANNELSPLIT_FILTER 0 | ||
| 1798 | +#define CONFIG_CHORUS_FILTER 0 | ||
| 1799 | +#define CONFIG_COMPAND_FILTER 0 | ||
| 1800 | +#define CONFIG_COMPENSATIONDELAY_FILTER 0 | ||
| 1801 | +#define CONFIG_CROSSFEED_FILTER 0 | ||
| 1802 | +#define CONFIG_CRYSTALIZER_FILTER 0 | ||
| 1803 | +#define CONFIG_DCSHIFT_FILTER 0 | ||
| 1804 | +#define CONFIG_DEESSER_FILTER 0 | ||
| 1805 | +#define CONFIG_DRMETER_FILTER 0 | ||
| 1806 | +#define CONFIG_DYNAUDNORM_FILTER 0 | ||
| 1807 | +#define CONFIG_EARWAX_FILTER 0 | ||
| 1808 | +#define CONFIG_EBUR128_FILTER 0 | ||
| 1809 | +#define CONFIG_EQUALIZER_FILTER 0 | ||
| 1810 | +#define CONFIG_EXTRASTEREO_FILTER 0 | ||
| 1811 | +#define CONFIG_FIREQUALIZER_FILTER 0 | ||
| 1812 | +#define CONFIG_FLANGER_FILTER 0 | ||
| 1813 | +#define CONFIG_HAAS_FILTER 0 | ||
| 1814 | +#define CONFIG_HDCD_FILTER 0 | ||
| 1815 | +#define CONFIG_HEADPHONE_FILTER 0 | ||
| 1816 | +#define CONFIG_HIGHPASS_FILTER 0 | ||
| 1817 | +#define CONFIG_HIGHSHELF_FILTER 0 | ||
| 1818 | +#define CONFIG_JOIN_FILTER 0 | ||
| 1819 | +#define CONFIG_LADSPA_FILTER 0 | ||
| 1820 | +#define CONFIG_LOUDNORM_FILTER 0 | ||
| 1821 | +#define CONFIG_LOWPASS_FILTER 0 | ||
| 1822 | +#define CONFIG_LOWSHELF_FILTER 0 | ||
| 1823 | +#define CONFIG_LV2_FILTER 0 | ||
| 1824 | +#define CONFIG_MCOMPAND_FILTER 0 | ||
| 1825 | +#define CONFIG_PAN_FILTER 0 | ||
| 1826 | +#define CONFIG_REPLAYGAIN_FILTER 0 | ||
| 1827 | +#define CONFIG_RUBBERBAND_FILTER 0 | ||
| 1828 | +#define CONFIG_SIDECHAINCOMPRESS_FILTER 0 | ||
| 1829 | +#define CONFIG_SIDECHAINGATE_FILTER 0 | ||
| 1830 | +#define CONFIG_SILENCEDETECT_FILTER 0 | ||
| 1831 | +#define CONFIG_SILENCEREMOVE_FILTER 0 | ||
| 1832 | +#define CONFIG_SOFALIZER_FILTER 0 | ||
| 1833 | +#define CONFIG_SPEECHNORM_FILTER 0 | ||
| 1834 | +#define CONFIG_STEREOTOOLS_FILTER 0 | ||
| 1835 | +#define CONFIG_STEREOWIDEN_FILTER 0 | ||
| 1836 | +#define CONFIG_SUPEREQUALIZER_FILTER 0 | ||
| 1837 | +#define CONFIG_SURROUND_FILTER 0 | ||
| 1838 | +#define CONFIG_TREBLE_FILTER 0 | ||
| 1839 | +#define CONFIG_TREMOLO_FILTER 0 | ||
| 1840 | +#define CONFIG_VIBRATO_FILTER 0 | ||
| 1841 | +#define CONFIG_VOLUME_FILTER 0 | ||
| 1842 | +#define CONFIG_VOLUMEDETECT_FILTER 0 | ||
| 1843 | +#define CONFIG_AEVALSRC_FILTER 0 | ||
| 1844 | +#define CONFIG_AFIRSRC_FILTER 0 | ||
| 1845 | +#define CONFIG_ANOISESRC_FILTER 0 | ||
| 1846 | +#define CONFIG_ANULLSRC_FILTER 0 | ||
| 1847 | +#define CONFIG_FLITE_FILTER 0 | ||
| 1848 | +#define CONFIG_HILBERT_FILTER 0 | ||
| 1849 | +#define CONFIG_SINC_FILTER 0 | ||
| 1850 | +#define CONFIG_SINE_FILTER 0 | ||
| 1851 | +#define CONFIG_ANULLSINK_FILTER 0 | ||
| 1852 | +#define CONFIG_ADDROI_FILTER 0 | ||
| 1853 | +#define CONFIG_ALPHAEXTRACT_FILTER 0 | ||
| 1854 | +#define CONFIG_ALPHAMERGE_FILTER 0 | ||
| 1855 | +#define CONFIG_AMPLIFY_FILTER 0 | ||
| 1856 | +#define CONFIG_ASS_FILTER 0 | ||
| 1857 | +#define CONFIG_ATADENOISE_FILTER 0 | ||
| 1858 | +#define CONFIG_AVGBLUR_FILTER 0 | ||
| 1859 | +#define CONFIG_AVGBLUR_OPENCL_FILTER 0 | ||
| 1860 | +#define CONFIG_AVGBLUR_VULKAN_FILTER 0 | ||
| 1861 | +#define CONFIG_BBOX_FILTER 0 | ||
| 1862 | +#define CONFIG_BENCH_FILTER 0 | ||
| 1863 | +#define CONFIG_BILATERAL_FILTER 0 | ||
| 1864 | +#define CONFIG_BITPLANENOISE_FILTER 0 | ||
| 1865 | +#define CONFIG_BLACKDETECT_FILTER 0 | ||
| 1866 | +#define CONFIG_BLACKFRAME_FILTER 0 | ||
| 1867 | +#define CONFIG_BLEND_FILTER 0 | ||
| 1868 | +#define CONFIG_BLEND_VULKAN_FILTER 0 | ||
| 1869 | +#define CONFIG_BM3D_FILTER 0 | ||
| 1870 | +#define CONFIG_BOXBLUR_FILTER 0 | ||
| 1871 | +#define CONFIG_BOXBLUR_OPENCL_FILTER 0 | ||
| 1872 | +#define CONFIG_BWDIF_FILTER 0 | ||
| 1873 | +#define CONFIG_CAS_FILTER 0 | ||
| 1874 | +#define CONFIG_CHROMABER_VULKAN_FILTER 0 | ||
| 1875 | +#define CONFIG_CHROMAHOLD_FILTER 0 | ||
| 1876 | +#define CONFIG_CHROMAKEY_FILTER 0 | ||
| 1877 | +#define CONFIG_CHROMANR_FILTER 0 | ||
| 1878 | +#define CONFIG_CHROMASHIFT_FILTER 0 | ||
| 1879 | +#define CONFIG_CIESCOPE_FILTER 0 | ||
| 1880 | +#define CONFIG_CODECVIEW_FILTER 0 | ||
| 1881 | +#define CONFIG_COLORBALANCE_FILTER 0 | ||
| 1882 | +#define CONFIG_COLORCHANNELMIXER_FILTER 0 | ||
| 1883 | +#define CONFIG_COLORCONTRAST_FILTER 0 | ||
| 1884 | +#define CONFIG_COLORCORRECT_FILTER 0 | ||
| 1885 | +#define CONFIG_COLORIZE_FILTER 0 | ||
| 1886 | +#define CONFIG_COLORKEY_FILTER 0 | ||
| 1887 | +#define CONFIG_COLORKEY_OPENCL_FILTER 0 | ||
| 1888 | +#define CONFIG_COLORHOLD_FILTER 0 | ||
| 1889 | +#define CONFIG_COLORLEVELS_FILTER 0 | ||
| 1890 | +#define CONFIG_COLORMATRIX_FILTER 0 | ||
| 1891 | +#define CONFIG_COLORSPACE_FILTER 0 | ||
| 1892 | +#define CONFIG_COLORTEMPERATURE_FILTER 0 | ||
| 1893 | +#define CONFIG_CONVOLUTION_FILTER 0 | ||
| 1894 | +#define CONFIG_CONVOLUTION_OPENCL_FILTER 0 | ||
| 1895 | +#define CONFIG_CONVOLVE_FILTER 0 | ||
| 1896 | +#define CONFIG_COPY_FILTER 0 | ||
| 1897 | +#define CONFIG_COREIMAGE_FILTER 0 | ||
| 1898 | +#define CONFIG_COVER_RECT_FILTER 0 | ||
| 1899 | +#define CONFIG_CROP_FILTER 0 | ||
| 1900 | +#define CONFIG_CROPDETECT_FILTER 0 | ||
| 1901 | +#define CONFIG_CUE_FILTER 0 | ||
| 1902 | +#define CONFIG_CURVES_FILTER 0 | ||
| 1903 | +#define CONFIG_DATASCOPE_FILTER 0 | ||
| 1904 | +#define CONFIG_DBLUR_FILTER 0 | ||
| 1905 | +#define CONFIG_DCTDNOIZ_FILTER 0 | ||
| 1906 | +#define CONFIG_DEBAND_FILTER 0 | ||
| 1907 | +#define CONFIG_DEBLOCK_FILTER 0 | ||
| 1908 | +#define CONFIG_DECIMATE_FILTER 0 | ||
| 1909 | +#define CONFIG_DECONVOLVE_FILTER 0 | ||
| 1910 | +#define CONFIG_DEDOT_FILTER 0 | ||
| 1911 | +#define CONFIG_DEFLATE_FILTER 0 | ||
| 1912 | +#define CONFIG_DEFLICKER_FILTER 0 | ||
| 1913 | +#define CONFIG_DEINTERLACE_QSV_FILTER 0 | ||
| 1914 | +#define CONFIG_DEINTERLACE_VAAPI_FILTER 0 | ||
| 1915 | +#define CONFIG_DEJUDDER_FILTER 0 | ||
| 1916 | +#define CONFIG_DELOGO_FILTER 0 | ||
| 1917 | +#define CONFIG_DENOISE_VAAPI_FILTER 0 | ||
| 1918 | +#define CONFIG_DERAIN_FILTER 0 | ||
| 1919 | +#define CONFIG_DESHAKE_FILTER 0 | ||
| 1920 | +#define CONFIG_DESHAKE_OPENCL_FILTER 0 | ||
| 1921 | +#define CONFIG_DESPILL_FILTER 0 | ||
| 1922 | +#define CONFIG_DETELECINE_FILTER 0 | ||
| 1923 | +#define CONFIG_DILATION_FILTER 0 | ||
| 1924 | +#define CONFIG_DILATION_OPENCL_FILTER 0 | ||
| 1925 | +#define CONFIG_DISPLACE_FILTER 0 | ||
| 1926 | +#define CONFIG_DNN_CLASSIFY_FILTER 0 | ||
| 1927 | +#define CONFIG_DNN_DETECT_FILTER 0 | ||
| 1928 | +#define CONFIG_DNN_PROCESSING_FILTER 0 | ||
| 1929 | +#define CONFIG_DOUBLEWEAVE_FILTER 0 | ||
| 1930 | +#define CONFIG_DRAWBOX_FILTER 0 | ||
| 1931 | +#define CONFIG_DRAWGRAPH_FILTER 0 | ||
| 1932 | +#define CONFIG_DRAWGRID_FILTER 0 | ||
| 1933 | +#define CONFIG_DRAWTEXT_FILTER 0 | ||
| 1934 | +#define CONFIG_EDGEDETECT_FILTER 0 | ||
| 1935 | +#define CONFIG_ELBG_FILTER 0 | ||
| 1936 | +#define CONFIG_ENTROPY_FILTER 0 | ||
| 1937 | +#define CONFIG_EPX_FILTER 0 | ||
| 1938 | +#define CONFIG_EQ_FILTER 0 | ||
| 1939 | +#define CONFIG_EROSION_FILTER 0 | ||
| 1940 | +#define CONFIG_EROSION_OPENCL_FILTER 0 | ||
| 1941 | +#define CONFIG_ESTDIF_FILTER 0 | ||
| 1942 | +#define CONFIG_EXPOSURE_FILTER 0 | ||
| 1943 | +#define CONFIG_EXTRACTPLANES_FILTER 0 | ||
| 1944 | +#define CONFIG_FADE_FILTER 0 | ||
| 1945 | +#define CONFIG_FFTDNOIZ_FILTER 0 | ||
| 1946 | +#define CONFIG_FFTFILT_FILTER 0 | ||
| 1947 | +#define CONFIG_FIELD_FILTER 0 | ||
| 1948 | +#define CONFIG_FIELDHINT_FILTER 0 | ||
| 1949 | +#define CONFIG_FIELDMATCH_FILTER 0 | ||
| 1950 | +#define CONFIG_FIELDORDER_FILTER 0 | ||
| 1951 | +#define CONFIG_FILLBORDERS_FILTER 0 | ||
| 1952 | +#define CONFIG_FIND_RECT_FILTER 0 | ||
| 1953 | +#define CONFIG_FLIP_VULKAN_FILTER 0 | ||
| 1954 | +#define CONFIG_FLOODFILL_FILTER 0 | ||
| 1955 | +#define CONFIG_FORMAT_FILTER 0 | ||
| 1956 | +#define CONFIG_FPS_FILTER 0 | ||
| 1957 | +#define CONFIG_FRAMEPACK_FILTER 0 | ||
| 1958 | +#define CONFIG_FRAMERATE_FILTER 0 | ||
| 1959 | +#define CONFIG_FRAMESTEP_FILTER 0 | ||
| 1960 | +#define CONFIG_FREEZEDETECT_FILTER 0 | ||
| 1961 | +#define CONFIG_FREEZEFRAMES_FILTER 0 | ||
| 1962 | +#define CONFIG_FREI0R_FILTER 0 | ||
| 1963 | +#define CONFIG_FSPP_FILTER 0 | ||
| 1964 | +#define CONFIG_GBLUR_FILTER 0 | ||
| 1965 | +#define CONFIG_GBLUR_VULKAN_FILTER 0 | ||
| 1966 | +#define CONFIG_GEQ_FILTER 0 | ||
| 1967 | +#define CONFIG_GRADFUN_FILTER 0 | ||
| 1968 | +#define CONFIG_GRAPHMONITOR_FILTER 0 | ||
| 1969 | +#define CONFIG_GRAYWORLD_FILTER 0 | ||
| 1970 | +#define CONFIG_GREYEDGE_FILTER 0 | ||
| 1971 | +#define CONFIG_GUIDED_FILTER 0 | ||
| 1972 | +#define CONFIG_HALDCLUT_FILTER 0 | ||
| 1973 | +#define CONFIG_HFLIP_FILTER 0 | ||
| 1974 | +#define CONFIG_HFLIP_VULKAN_FILTER 0 | ||
| 1975 | +#define CONFIG_HISTEQ_FILTER 0 | ||
| 1976 | +#define CONFIG_HISTOGRAM_FILTER 0 | ||
| 1977 | +#define CONFIG_HQDN3D_FILTER 0 | ||
| 1978 | +#define CONFIG_HQX_FILTER 0 | ||
| 1979 | +#define CONFIG_HSTACK_FILTER 0 | ||
| 1980 | +#define CONFIG_HSVHOLD_FILTER 0 | ||
| 1981 | +#define CONFIG_HSVKEY_FILTER 0 | ||
| 1982 | +#define CONFIG_HUE_FILTER 0 | ||
| 1983 | +#define CONFIG_HUESATURATION_FILTER 0 | ||
| 1984 | +#define CONFIG_HWDOWNLOAD_FILTER 0 | ||
| 1985 | +#define CONFIG_HWMAP_FILTER 0 | ||
| 1986 | +#define CONFIG_HWUPLOAD_FILTER 0 | ||
| 1987 | +#define CONFIG_HWUPLOAD_CUDA_FILTER 0 | ||
| 1988 | +#define CONFIG_HYSTERESIS_FILTER 0 | ||
| 1989 | +#define CONFIG_IDENTITY_FILTER 0 | ||
| 1990 | +#define CONFIG_IDET_FILTER 0 | ||
| 1991 | +#define CONFIG_IL_FILTER 0 | ||
| 1992 | +#define CONFIG_INFLATE_FILTER 0 | ||
| 1993 | +#define CONFIG_INTERLACE_FILTER 0 | ||
| 1994 | +#define CONFIG_INTERLEAVE_FILTER 0 | ||
| 1995 | +#define CONFIG_KERNDEINT_FILTER 0 | ||
| 1996 | +#define CONFIG_KIRSCH_FILTER 0 | ||
| 1997 | +#define CONFIG_LAGFUN_FILTER 0 | ||
| 1998 | +#define CONFIG_LATENCY_FILTER 0 | ||
| 1999 | +#define CONFIG_LENSCORRECTION_FILTER 0 | ||
| 2000 | +#define CONFIG_LENSFUN_FILTER 0 | ||
| 2001 | +#define CONFIG_LIBPLACEBO_FILTER 0 | ||
| 2002 | +#define CONFIG_LIBVMAF_FILTER 0 | ||
| 2003 | +#define CONFIG_LIMITDIFF_FILTER 0 | ||
| 2004 | +#define CONFIG_LIMITER_FILTER 0 | ||
| 2005 | +#define CONFIG_LOOP_FILTER 0 | ||
| 2006 | +#define CONFIG_LUMAKEY_FILTER 0 | ||
| 2007 | +#define CONFIG_LUT_FILTER 0 | ||
| 2008 | +#define CONFIG_LUT1D_FILTER 0 | ||
| 2009 | +#define CONFIG_LUT2_FILTER 0 | ||
| 2010 | +#define CONFIG_LUT3D_FILTER 0 | ||
| 2011 | +#define CONFIG_LUTRGB_FILTER 0 | ||
| 2012 | +#define CONFIG_LUTYUV_FILTER 0 | ||
| 2013 | +#define CONFIG_MASKEDCLAMP_FILTER 0 | ||
| 2014 | +#define CONFIG_MASKEDMAX_FILTER 0 | ||
| 2015 | +#define CONFIG_MASKEDMERGE_FILTER 0 | ||
| 2016 | +#define CONFIG_MASKEDMIN_FILTER 0 | ||
| 2017 | +#define CONFIG_MASKEDTHRESHOLD_FILTER 0 | ||
| 2018 | +#define CONFIG_MASKFUN_FILTER 0 | ||
| 2019 | +#define CONFIG_MCDEINT_FILTER 0 | ||
| 2020 | +#define CONFIG_MEDIAN_FILTER 0 | ||
| 2021 | +#define CONFIG_MERGEPLANES_FILTER 0 | ||
| 2022 | +#define CONFIG_MESTIMATE_FILTER 0 | ||
| 2023 | +#define CONFIG_METADATA_FILTER 0 | ||
| 2024 | +#define CONFIG_MIDEQUALIZER_FILTER 0 | ||
| 2025 | +#define CONFIG_MINTERPOLATE_FILTER 0 | ||
| 2026 | +#define CONFIG_MIX_FILTER 0 | ||
| 2027 | +#define CONFIG_MONOCHROME_FILTER 0 | ||
| 2028 | +#define CONFIG_MORPHO_FILTER 0 | ||
| 2029 | +#define CONFIG_MPDECIMATE_FILTER 0 | ||
| 2030 | +#define CONFIG_MSAD_FILTER 0 | ||
| 2031 | +#define CONFIG_NEGATE_FILTER 0 | ||
| 2032 | +#define CONFIG_NLMEANS_FILTER 0 | ||
| 2033 | +#define CONFIG_NLMEANS_OPENCL_FILTER 0 | ||
| 2034 | +#define CONFIG_NNEDI_FILTER 0 | ||
| 2035 | +#define CONFIG_NOFORMAT_FILTER 0 | ||
| 2036 | +#define CONFIG_NOISE_FILTER 0 | ||
| 2037 | +#define CONFIG_NORMALIZE_FILTER 0 | ||
| 2038 | +#define CONFIG_NULL_FILTER 0 | ||
| 2039 | +#define CONFIG_OCR_FILTER 0 | ||
| 2040 | +#define CONFIG_OCV_FILTER 0 | ||
| 2041 | +#define CONFIG_OSCILLOSCOPE_FILTER 0 | ||
| 2042 | +#define CONFIG_OVERLAY_FILTER 0 | ||
| 2043 | +#define CONFIG_OVERLAY_OPENCL_FILTER 0 | ||
| 2044 | +#define CONFIG_OVERLAY_QSV_FILTER 0 | ||
| 2045 | +#define CONFIG_OVERLAY_VAAPI_FILTER 0 | ||
| 2046 | +#define CONFIG_OVERLAY_VULKAN_FILTER 0 | ||
| 2047 | +#define CONFIG_OVERLAY_CUDA_FILTER 0 | ||
| 2048 | +#define CONFIG_OWDENOISE_FILTER 0 | ||
| 2049 | +#define CONFIG_PAD_FILTER 0 | ||
| 2050 | +#define CONFIG_PAD_OPENCL_FILTER 0 | ||
| 2051 | +#define CONFIG_PALETTEGEN_FILTER 0 | ||
| 2052 | +#define CONFIG_PALETTEUSE_FILTER 0 | ||
| 2053 | +#define CONFIG_PERMS_FILTER 0 | ||
| 2054 | +#define CONFIG_PERSPECTIVE_FILTER 0 | ||
| 2055 | +#define CONFIG_PHASE_FILTER 0 | ||
| 2056 | +#define CONFIG_PHOTOSENSITIVITY_FILTER 0 | ||
| 2057 | +#define CONFIG_PIXDESCTEST_FILTER 0 | ||
| 2058 | +#define CONFIG_PIXSCOPE_FILTER 0 | ||
| 2059 | +#define CONFIG_PP_FILTER 0 | ||
| 2060 | +#define CONFIG_PP7_FILTER 0 | ||
| 2061 | +#define CONFIG_PREMULTIPLY_FILTER 0 | ||
| 2062 | +#define CONFIG_PREWITT_FILTER 0 | ||
| 2063 | +#define CONFIG_PREWITT_OPENCL_FILTER 0 | ||
| 2064 | +#define CONFIG_PROCAMP_VAAPI_FILTER 0 | ||
| 2065 | +#define CONFIG_PROGRAM_OPENCL_FILTER 0 | ||
| 2066 | +#define CONFIG_PSEUDOCOLOR_FILTER 0 | ||
| 2067 | +#define CONFIG_PSNR_FILTER 0 | ||
| 2068 | +#define CONFIG_PULLUP_FILTER 0 | ||
| 2069 | +#define CONFIG_QP_FILTER 0 | ||
| 2070 | +#define CONFIG_RANDOM_FILTER 0 | ||
| 2071 | +#define CONFIG_READEIA608_FILTER 0 | ||
| 2072 | +#define CONFIG_READVITC_FILTER 0 | ||
| 2073 | +#define CONFIG_REALTIME_FILTER 0 | ||
| 2074 | +#define CONFIG_REMAP_FILTER 0 | ||
| 2075 | +#define CONFIG_REMOVEGRAIN_FILTER 0 | ||
| 2076 | +#define CONFIG_REMOVELOGO_FILTER 0 | ||
| 2077 | +#define CONFIG_REPEATFIELDS_FILTER 0 | ||
| 2078 | +#define CONFIG_REVERSE_FILTER 0 | ||
| 2079 | +#define CONFIG_RGBASHIFT_FILTER 0 | ||
| 2080 | +#define CONFIG_ROBERTS_FILTER 0 | ||
| 2081 | +#define CONFIG_ROBERTS_OPENCL_FILTER 0 | ||
| 2082 | +#define CONFIG_ROTATE_FILTER 0 | ||
| 2083 | +#define CONFIG_SAB_FILTER 0 | ||
| 2084 | +#define CONFIG_SCALE_FILTER 0 | ||
| 2085 | +#define CONFIG_SCALE_CUDA_FILTER 0 | ||
| 2086 | +#define CONFIG_SCALE_NPP_FILTER 0 | ||
| 2087 | +#define CONFIG_SCALE_QSV_FILTER 0 | ||
| 2088 | +#define CONFIG_SCALE_VAAPI_FILTER 0 | ||
| 2089 | +#define CONFIG_SCALE_VULKAN_FILTER 0 | ||
| 2090 | +#define CONFIG_SCALE2REF_FILTER 0 | ||
| 2091 | +#define CONFIG_SCALE2REF_NPP_FILTER 0 | ||
| 2092 | +#define CONFIG_SCDET_FILTER 0 | ||
| 2093 | +#define CONFIG_SCHARR_FILTER 0 | ||
| 2094 | +#define CONFIG_SCROLL_FILTER 0 | ||
| 2095 | +#define CONFIG_SEGMENT_FILTER 0 | ||
| 2096 | +#define CONFIG_SELECT_FILTER 0 | ||
| 2097 | +#define CONFIG_SELECTIVECOLOR_FILTER 0 | ||
| 2098 | +#define CONFIG_SENDCMD_FILTER 0 | ||
| 2099 | +#define CONFIG_SEPARATEFIELDS_FILTER 0 | ||
| 2100 | +#define CONFIG_SETDAR_FILTER 0 | ||
| 2101 | +#define CONFIG_SETFIELD_FILTER 0 | ||
| 2102 | +#define CONFIG_SETPARAMS_FILTER 0 | ||
| 2103 | +#define CONFIG_SETPTS_FILTER 0 | ||
| 2104 | +#define CONFIG_SETRANGE_FILTER 0 | ||
| 2105 | +#define CONFIG_SETSAR_FILTER 0 | ||
| 2106 | +#define CONFIG_SETTB_FILTER 0 | ||
| 2107 | +#define CONFIG_SHARPEN_NPP_FILTER 0 | ||
| 2108 | +#define CONFIG_SHARPNESS_VAAPI_FILTER 0 | ||
| 2109 | +#define CONFIG_SHEAR_FILTER 0 | ||
| 2110 | +#define CONFIG_SHOWINFO_FILTER 0 | ||
| 2111 | +#define CONFIG_SHOWPALETTE_FILTER 0 | ||
| 2112 | +#define CONFIG_SHUFFLEFRAMES_FILTER 0 | ||
| 2113 | +#define CONFIG_SHUFFLEPIXELS_FILTER 0 | ||
| 2114 | +#define CONFIG_SHUFFLEPLANES_FILTER 0 | ||
| 2115 | +#define CONFIG_SIDEDATA_FILTER 0 | ||
| 2116 | +#define CONFIG_SIGNALSTATS_FILTER 0 | ||
| 2117 | +#define CONFIG_SIGNATURE_FILTER 0 | ||
| 2118 | +#define CONFIG_SMARTBLUR_FILTER 0 | ||
| 2119 | +#define CONFIG_SOBEL_FILTER 0 | ||
| 2120 | +#define CONFIG_SOBEL_OPENCL_FILTER 0 | ||
| 2121 | +#define CONFIG_SPLIT_FILTER 0 | ||
| 2122 | +#define CONFIG_SPP_FILTER 0 | ||
| 2123 | +#define CONFIG_SR_FILTER 0 | ||
| 2124 | +#define CONFIG_SSIM_FILTER 0 | ||
| 2125 | +#define CONFIG_STEREO3D_FILTER 0 | ||
| 2126 | +#define CONFIG_STREAMSELECT_FILTER 0 | ||
| 2127 | +#define CONFIG_SUBTITLES_FILTER 0 | ||
| 2128 | +#define CONFIG_SUPER2XSAI_FILTER 0 | ||
| 2129 | +#define CONFIG_SWAPRECT_FILTER 0 | ||
| 2130 | +#define CONFIG_SWAPUV_FILTER 0 | ||
| 2131 | +#define CONFIG_TBLEND_FILTER 0 | ||
| 2132 | +#define CONFIG_TELECINE_FILTER 0 | ||
| 2133 | +#define CONFIG_THISTOGRAM_FILTER 0 | ||
| 2134 | +#define CONFIG_THRESHOLD_FILTER 0 | ||
| 2135 | +#define CONFIG_THUMBNAIL_FILTER 0 | ||
| 2136 | +#define CONFIG_THUMBNAIL_CUDA_FILTER 0 | ||
| 2137 | +#define CONFIG_TILE_FILTER 0 | ||
| 2138 | +#define CONFIG_TINTERLACE_FILTER 0 | ||
| 2139 | +#define CONFIG_TLUT2_FILTER 0 | ||
| 2140 | +#define CONFIG_TMEDIAN_FILTER 0 | ||
| 2141 | +#define CONFIG_TMIDEQUALIZER_FILTER 0 | ||
| 2142 | +#define CONFIG_TMIX_FILTER 0 | ||
| 2143 | +#define CONFIG_TONEMAP_FILTER 0 | ||
| 2144 | +#define CONFIG_TONEMAP_OPENCL_FILTER 0 | ||
| 2145 | +#define CONFIG_TONEMAP_VAAPI_FILTER 0 | ||
| 2146 | +#define CONFIG_TPAD_FILTER 0 | ||
| 2147 | +#define CONFIG_TRANSPOSE_FILTER 0 | ||
| 2148 | +#define CONFIG_TRANSPOSE_NPP_FILTER 0 | ||
| 2149 | +#define CONFIG_TRANSPOSE_OPENCL_FILTER 0 | ||
| 2150 | +#define CONFIG_TRANSPOSE_VAAPI_FILTER 0 | ||
| 2151 | +#define CONFIG_TRANSPOSE_VULKAN_FILTER 0 | ||
| 2152 | +#define CONFIG_TRIM_FILTER 0 | ||
| 2153 | +#define CONFIG_UNPREMULTIPLY_FILTER 0 | ||
| 2154 | +#define CONFIG_UNSHARP_FILTER 0 | ||
| 2155 | +#define CONFIG_UNSHARP_OPENCL_FILTER 0 | ||
| 2156 | +#define CONFIG_UNTILE_FILTER 0 | ||
| 2157 | +#define CONFIG_USPP_FILTER 0 | ||
| 2158 | +#define CONFIG_V360_FILTER 0 | ||
| 2159 | +#define CONFIG_VAGUEDENOISER_FILTER 0 | ||
| 2160 | +#define CONFIG_VARBLUR_FILTER 0 | ||
| 2161 | +#define CONFIG_VECTORSCOPE_FILTER 0 | ||
| 2162 | +#define CONFIG_VFLIP_FILTER 0 | ||
| 2163 | +#define CONFIG_VFLIP_VULKAN_FILTER 0 | ||
| 2164 | +#define CONFIG_VFRDET_FILTER 0 | ||
| 2165 | +#define CONFIG_VIBRANCE_FILTER 0 | ||
| 2166 | +#define CONFIG_VIDSTABDETECT_FILTER 0 | ||
| 2167 | +#define CONFIG_VIDSTABTRANSFORM_FILTER 0 | ||
| 2168 | +#define CONFIG_VIF_FILTER 0 | ||
| 2169 | +#define CONFIG_VIGNETTE_FILTER 0 | ||
| 2170 | +#define CONFIG_VMAFMOTION_FILTER 0 | ||
| 2171 | +#define CONFIG_VPP_QSV_FILTER 0 | ||
| 2172 | +#define CONFIG_VSTACK_FILTER 0 | ||
| 2173 | +#define CONFIG_W3FDIF_FILTER 0 | ||
| 2174 | +#define CONFIG_WAVEFORM_FILTER 0 | ||
| 2175 | +#define CONFIG_WEAVE_FILTER 0 | ||
| 2176 | +#define CONFIG_XBR_FILTER 0 | ||
| 2177 | +#define CONFIG_XCORRELATE_FILTER 0 | ||
| 2178 | +#define CONFIG_XFADE_FILTER 0 | ||
| 2179 | +#define CONFIG_XFADE_OPENCL_FILTER 0 | ||
| 2180 | +#define CONFIG_XMEDIAN_FILTER 0 | ||
| 2181 | +#define CONFIG_XSTACK_FILTER 0 | ||
| 2182 | +#define CONFIG_YADIF_FILTER 0 | ||
| 2183 | +#define CONFIG_YADIF_CUDA_FILTER 0 | ||
| 2184 | +#define CONFIG_YADIF_VIDEOTOOLBOX_FILTER 0 | ||
| 2185 | +#define CONFIG_YAEPBLUR_FILTER 0 | ||
| 2186 | +#define CONFIG_ZMQ_FILTER 0 | ||
| 2187 | +#define CONFIG_ZOOMPAN_FILTER 0 | ||
| 2188 | +#define CONFIG_ZSCALE_FILTER 0 | ||
| 2189 | +#define CONFIG_ALLRGB_FILTER 0 | ||
| 2190 | +#define CONFIG_ALLYUV_FILTER 0 | ||
| 2191 | +#define CONFIG_CELLAUTO_FILTER 0 | ||
| 2192 | +#define CONFIG_COLOR_FILTER 0 | ||
| 2193 | +#define CONFIG_COLORSPECTRUM_FILTER 0 | ||
| 2194 | +#define CONFIG_COREIMAGESRC_FILTER 0 | ||
| 2195 | +#define CONFIG_FREI0R_SRC_FILTER 0 | ||
| 2196 | +#define CONFIG_GRADIENTS_FILTER 0 | ||
| 2197 | +#define CONFIG_HALDCLUTSRC_FILTER 0 | ||
| 2198 | +#define CONFIG_LIFE_FILTER 0 | ||
| 2199 | +#define CONFIG_MANDELBROT_FILTER 0 | ||
| 2200 | +#define CONFIG_MPTESTSRC_FILTER 0 | ||
| 2201 | +#define CONFIG_NULLSRC_FILTER 0 | ||
| 2202 | +#define CONFIG_OPENCLSRC_FILTER 0 | ||
| 2203 | +#define CONFIG_PAL75BARS_FILTER 0 | ||
| 2204 | +#define CONFIG_PAL100BARS_FILTER 0 | ||
| 2205 | +#define CONFIG_RGBTESTSRC_FILTER 0 | ||
| 2206 | +#define CONFIG_SIERPINSKI_FILTER 0 | ||
| 2207 | +#define CONFIG_SMPTEBARS_FILTER 0 | ||
| 2208 | +#define CONFIG_SMPTEHDBARS_FILTER 0 | ||
| 2209 | +#define CONFIG_TESTSRC_FILTER 0 | ||
| 2210 | +#define CONFIG_TESTSRC2_FILTER 0 | ||
| 2211 | +#define CONFIG_YUVTESTSRC_FILTER 0 | ||
| 2212 | +#define CONFIG_NULLSINK_FILTER 0 | ||
| 2213 | +#define CONFIG_ABITSCOPE_FILTER 0 | ||
| 2214 | +#define CONFIG_ADRAWGRAPH_FILTER 0 | ||
| 2215 | +#define CONFIG_AGRAPHMONITOR_FILTER 0 | ||
| 2216 | +#define CONFIG_AHISTOGRAM_FILTER 0 | ||
| 2217 | +#define CONFIG_APHASEMETER_FILTER 0 | ||
| 2218 | +#define CONFIG_AVECTORSCOPE_FILTER 0 | ||
| 2219 | +#define CONFIG_CONCAT_FILTER 0 | ||
| 2220 | +#define CONFIG_SHOWCQT_FILTER 0 | ||
| 2221 | +#define CONFIG_SHOWFREQS_FILTER 0 | ||
| 2222 | +#define CONFIG_SHOWSPATIAL_FILTER 0 | ||
| 2223 | +#define CONFIG_SHOWSPECTRUM_FILTER 0 | ||
| 2224 | +#define CONFIG_SHOWSPECTRUMPIC_FILTER 0 | ||
| 2225 | +#define CONFIG_SHOWVOLUME_FILTER 0 | ||
| 2226 | +#define CONFIG_SHOWWAVES_FILTER 0 | ||
| 2227 | +#define CONFIG_SHOWWAVESPIC_FILTER 0 | ||
| 2228 | +#define CONFIG_SPECTRUMSYNTH_FILTER 0 | ||
| 2229 | +#define CONFIG_AMOVIE_FILTER 0 | ||
| 2230 | +#define CONFIG_MOVIE_FILTER 0 | ||
| 2231 | +#define CONFIG_AFIFO_FILTER 0 | ||
| 2232 | +#define CONFIG_FIFO_FILTER 0 | ||
| 2233 | +#define CONFIG_AA_DEMUXER 0 | ||
| 2234 | +#define CONFIG_AAC_DEMUXER 1 | ||
| 2235 | +#define CONFIG_AAX_DEMUXER 0 | ||
| 2236 | +#define CONFIG_AC3_DEMUXER 0 | ||
| 2237 | +#define CONFIG_ACE_DEMUXER 0 | ||
| 2238 | +#define CONFIG_ACM_DEMUXER 0 | ||
| 2239 | +#define CONFIG_ACT_DEMUXER 0 | ||
| 2240 | +#define CONFIG_ADF_DEMUXER 0 | ||
| 2241 | +#define CONFIG_ADP_DEMUXER 0 | ||
| 2242 | +#define CONFIG_ADS_DEMUXER 0 | ||
| 2243 | +#define CONFIG_ADX_DEMUXER 0 | ||
| 2244 | +#define CONFIG_AEA_DEMUXER 0 | ||
| 2245 | +#define CONFIG_AFC_DEMUXER 0 | ||
| 2246 | +#define CONFIG_AIFF_DEMUXER 0 | ||
| 2247 | +#define CONFIG_AIX_DEMUXER 0 | ||
| 2248 | +#define CONFIG_ALP_DEMUXER 0 | ||
| 2249 | +#define CONFIG_AMR_DEMUXER 0 | ||
| 2250 | +#define CONFIG_AMRNB_DEMUXER 0 | ||
| 2251 | +#define CONFIG_AMRWB_DEMUXER 0 | ||
| 2252 | +#define CONFIG_ANM_DEMUXER 0 | ||
| 2253 | +#define CONFIG_APC_DEMUXER 0 | ||
| 2254 | +#define CONFIG_APE_DEMUXER 0 | ||
| 2255 | +#define CONFIG_APM_DEMUXER 0 | ||
| 2256 | +#define CONFIG_APNG_DEMUXER 0 | ||
| 2257 | +#define CONFIG_APTX_DEMUXER 0 | ||
| 2258 | +#define CONFIG_APTX_HD_DEMUXER 0 | ||
| 2259 | +#define CONFIG_AQTITLE_DEMUXER 0 | ||
| 2260 | +#define CONFIG_ARGO_ASF_DEMUXER 0 | ||
| 2261 | +#define CONFIG_ARGO_BRP_DEMUXER 0 | ||
| 2262 | +#define CONFIG_ARGO_CVG_DEMUXER 0 | ||
| 2263 | +#define CONFIG_ASF_DEMUXER 0 | ||
| 2264 | +#define CONFIG_ASF_O_DEMUXER 0 | ||
| 2265 | +#define CONFIG_ASS_DEMUXER 0 | ||
| 2266 | +#define CONFIG_AST_DEMUXER 0 | ||
| 2267 | +#define CONFIG_AU_DEMUXER 0 | ||
| 2268 | +#define CONFIG_AV1_DEMUXER 0 | ||
| 2269 | +#define CONFIG_AVI_DEMUXER 0 | ||
| 2270 | +#define CONFIG_AVISYNTH_DEMUXER 0 | ||
| 2271 | +#define CONFIG_AVR_DEMUXER 0 | ||
| 2272 | +#define CONFIG_AVS_DEMUXER 0 | ||
| 2273 | +#define CONFIG_AVS2_DEMUXER 0 | ||
| 2274 | +#define CONFIG_AVS3_DEMUXER 0 | ||
| 2275 | +#define CONFIG_BETHSOFTVID_DEMUXER 0 | ||
| 2276 | +#define CONFIG_BFI_DEMUXER 0 | ||
| 2277 | +#define CONFIG_BINTEXT_DEMUXER 0 | ||
| 2278 | +#define CONFIG_BINK_DEMUXER 0 | ||
| 2279 | +#define CONFIG_BINKA_DEMUXER 0 | ||
| 2280 | +#define CONFIG_BIT_DEMUXER 0 | ||
| 2281 | +#define CONFIG_BITPACKED_DEMUXER 0 | ||
| 2282 | +#define CONFIG_BMV_DEMUXER 0 | ||
| 2283 | +#define CONFIG_BFSTM_DEMUXER 0 | ||
| 2284 | +#define CONFIG_BRSTM_DEMUXER 0 | ||
| 2285 | +#define CONFIG_BOA_DEMUXER 0 | ||
| 2286 | +#define CONFIG_C93_DEMUXER 0 | ||
| 2287 | +#define CONFIG_CAF_DEMUXER 0 | ||
| 2288 | +#define CONFIG_CAVSVIDEO_DEMUXER 0 | ||
| 2289 | +#define CONFIG_CDG_DEMUXER 0 | ||
| 2290 | +#define CONFIG_CDXL_DEMUXER 0 | ||
| 2291 | +#define CONFIG_CINE_DEMUXER 0 | ||
| 2292 | +#define CONFIG_CODEC2_DEMUXER 0 | ||
| 2293 | +#define CONFIG_CODEC2RAW_DEMUXER 0 | ||
| 2294 | +#define CONFIG_CONCAT_DEMUXER 0 | ||
| 2295 | +#define CONFIG_DASH_DEMUXER 0 | ||
| 2296 | +#define CONFIG_DATA_DEMUXER 0 | ||
| 2297 | +#define CONFIG_DAUD_DEMUXER 0 | ||
| 2298 | +#define CONFIG_DCSTR_DEMUXER 0 | ||
| 2299 | +#define CONFIG_DERF_DEMUXER 0 | ||
| 2300 | +#define CONFIG_DFA_DEMUXER 0 | ||
| 2301 | +#define CONFIG_DHAV_DEMUXER 0 | ||
| 2302 | +#define CONFIG_DIRAC_DEMUXER 0 | ||
| 2303 | +#define CONFIG_DNXHD_DEMUXER 0 | ||
| 2304 | +#define CONFIG_DSF_DEMUXER 0 | ||
| 2305 | +#define CONFIG_DSICIN_DEMUXER 0 | ||
| 2306 | +#define CONFIG_DSS_DEMUXER 0 | ||
| 2307 | +#define CONFIG_DTS_DEMUXER 0 | ||
| 2308 | +#define CONFIG_DTSHD_DEMUXER 0 | ||
| 2309 | +#define CONFIG_DV_DEMUXER 0 | ||
| 2310 | +#define CONFIG_DVBSUB_DEMUXER 0 | ||
| 2311 | +#define CONFIG_DVBTXT_DEMUXER 0 | ||
| 2312 | +#define CONFIG_DXA_DEMUXER 0 | ||
| 2313 | +#define CONFIG_EA_DEMUXER 0 | ||
| 2314 | +#define CONFIG_EA_CDATA_DEMUXER 0 | ||
| 2315 | +#define CONFIG_EAC3_DEMUXER 0 | ||
| 2316 | +#define CONFIG_EPAF_DEMUXER 0 | ||
| 2317 | +#define CONFIG_FFMETADATA_DEMUXER 0 | ||
| 2318 | +#define CONFIG_FILMSTRIP_DEMUXER 0 | ||
| 2319 | +#define CONFIG_FITS_DEMUXER 0 | ||
| 2320 | +#define CONFIG_FLAC_DEMUXER 1 | ||
| 2321 | +#define CONFIG_FLIC_DEMUXER 0 | ||
| 2322 | +#define CONFIG_FLV_DEMUXER 0 | ||
| 2323 | +#define CONFIG_LIVE_FLV_DEMUXER 0 | ||
| 2324 | +#define CONFIG_FOURXM_DEMUXER 0 | ||
| 2325 | +#define CONFIG_FRM_DEMUXER 0 | ||
| 2326 | +#define CONFIG_FSB_DEMUXER 0 | ||
| 2327 | +#define CONFIG_FWSE_DEMUXER 0 | ||
| 2328 | +#define CONFIG_G722_DEMUXER 0 | ||
| 2329 | +#define CONFIG_G723_1_DEMUXER 0 | ||
| 2330 | +#define CONFIG_G726_DEMUXER 0 | ||
| 2331 | +#define CONFIG_G726LE_DEMUXER 0 | ||
| 2332 | +#define CONFIG_G729_DEMUXER 0 | ||
| 2333 | +#define CONFIG_GDV_DEMUXER 0 | ||
| 2334 | +#define CONFIG_GENH_DEMUXER 0 | ||
| 2335 | +#define CONFIG_GIF_DEMUXER 0 | ||
| 2336 | +#define CONFIG_GSM_DEMUXER 0 | ||
| 2337 | +#define CONFIG_GXF_DEMUXER 0 | ||
| 2338 | +#define CONFIG_H261_DEMUXER 0 | ||
| 2339 | +#define CONFIG_H263_DEMUXER 0 | ||
| 2340 | +#define CONFIG_H264_DEMUXER 0 | ||
| 2341 | +#define CONFIG_HCA_DEMUXER 0 | ||
| 2342 | +#define CONFIG_HCOM_DEMUXER 0 | ||
| 2343 | +#define CONFIG_HEVC_DEMUXER 0 | ||
| 2344 | +#define CONFIG_HLS_DEMUXER 0 | ||
| 2345 | +#define CONFIG_HNM_DEMUXER 0 | ||
| 2346 | +#define CONFIG_ICO_DEMUXER 0 | ||
| 2347 | +#define CONFIG_IDCIN_DEMUXER 0 | ||
| 2348 | +#define CONFIG_IDF_DEMUXER 0 | ||
| 2349 | +#define CONFIG_IFF_DEMUXER 0 | ||
| 2350 | +#define CONFIG_IFV_DEMUXER 0 | ||
| 2351 | +#define CONFIG_ILBC_DEMUXER 0 | ||
| 2352 | +#define CONFIG_IMAGE2_DEMUXER 0 | ||
| 2353 | +#define CONFIG_IMAGE2PIPE_DEMUXER 0 | ||
| 2354 | +#define CONFIG_IMAGE2_ALIAS_PIX_DEMUXER 0 | ||
| 2355 | +#define CONFIG_IMAGE2_BRENDER_PIX_DEMUXER 0 | ||
| 2356 | +#define CONFIG_IMF_DEMUXER 0 | ||
| 2357 | +#define CONFIG_INGENIENT_DEMUXER 0 | ||
| 2358 | +#define CONFIG_IPMOVIE_DEMUXER 0 | ||
| 2359 | +#define CONFIG_IPU_DEMUXER 0 | ||
| 2360 | +#define CONFIG_IRCAM_DEMUXER 0 | ||
| 2361 | +#define CONFIG_ISS_DEMUXER 0 | ||
| 2362 | +#define CONFIG_IV8_DEMUXER 0 | ||
| 2363 | +#define CONFIG_IVF_DEMUXER 0 | ||
| 2364 | +#define CONFIG_IVR_DEMUXER 0 | ||
| 2365 | +#define CONFIG_JACOSUB_DEMUXER 0 | ||
| 2366 | +#define CONFIG_JV_DEMUXER 0 | ||
| 2367 | +#define CONFIG_KUX_DEMUXER 0 | ||
| 2368 | +#define CONFIG_KVAG_DEMUXER 0 | ||
| 2369 | +#define CONFIG_LMLM4_DEMUXER 0 | ||
| 2370 | +#define CONFIG_LOAS_DEMUXER 0 | ||
| 2371 | +#define CONFIG_LUODAT_DEMUXER 0 | ||
| 2372 | +#define CONFIG_LRC_DEMUXER 0 | ||
| 2373 | +#define CONFIG_LVF_DEMUXER 0 | ||
| 2374 | +#define CONFIG_LXF_DEMUXER 0 | ||
| 2375 | +#define CONFIG_M4V_DEMUXER 0 | ||
| 2376 | +#define CONFIG_MCA_DEMUXER 0 | ||
| 2377 | +#define CONFIG_MCC_DEMUXER 0 | ||
| 2378 | +#define CONFIG_MATROSKA_DEMUXER 1 | ||
| 2379 | +#define CONFIG_MGSTS_DEMUXER 0 | ||
| 2380 | +#define CONFIG_MICRODVD_DEMUXER 0 | ||
| 2381 | +#define CONFIG_MJPEG_DEMUXER 0 | ||
| 2382 | +#define CONFIG_MJPEG_2000_DEMUXER 0 | ||
| 2383 | +#define CONFIG_MLP_DEMUXER 0 | ||
| 2384 | +#define CONFIG_MLV_DEMUXER 0 | ||
| 2385 | +#define CONFIG_MM_DEMUXER 0 | ||
| 2386 | +#define CONFIG_MMF_DEMUXER 0 | ||
| 2387 | +#define CONFIG_MODS_DEMUXER 0 | ||
| 2388 | +#define CONFIG_MOFLEX_DEMUXER 0 | ||
| 2389 | +#define CONFIG_MOV_DEMUXER 1 | ||
| 2390 | +#define CONFIG_MP3_DEMUXER 1 | ||
| 2391 | +#define CONFIG_MPC_DEMUXER 0 | ||
| 2392 | +#define CONFIG_MPC8_DEMUXER 0 | ||
| 2393 | +#define CONFIG_MPEGPS_DEMUXER 0 | ||
| 2394 | +#define CONFIG_MPEGTS_DEMUXER 0 | ||
| 2395 | +#define CONFIG_MPEGTSRAW_DEMUXER 0 | ||
| 2396 | +#define CONFIG_MPEGVIDEO_DEMUXER 0 | ||
| 2397 | +#define CONFIG_MPJPEG_DEMUXER 0 | ||
| 2398 | +#define CONFIG_MPL2_DEMUXER 0 | ||
| 2399 | +#define CONFIG_MPSUB_DEMUXER 0 | ||
| 2400 | +#define CONFIG_MSF_DEMUXER 0 | ||
| 2401 | +#define CONFIG_MSNWC_TCP_DEMUXER 0 | ||
| 2402 | +#define CONFIG_MSP_DEMUXER 0 | ||
| 2403 | +#define CONFIG_MTAF_DEMUXER 0 | ||
| 2404 | +#define CONFIG_MTV_DEMUXER 0 | ||
| 2405 | +#define CONFIG_MUSX_DEMUXER 0 | ||
| 2406 | +#define CONFIG_MV_DEMUXER 0 | ||
| 2407 | +#define CONFIG_MVI_DEMUXER 0 | ||
| 2408 | +#define CONFIG_MXF_DEMUXER 0 | ||
| 2409 | +#define CONFIG_MXG_DEMUXER 0 | ||
| 2410 | +#define CONFIG_NC_DEMUXER 0 | ||
| 2411 | +#define CONFIG_NISTSPHERE_DEMUXER 0 | ||
| 2412 | +#define CONFIG_NSP_DEMUXER 0 | ||
| 2413 | +#define CONFIG_NSV_DEMUXER 0 | ||
| 2414 | +#define CONFIG_NUT_DEMUXER 0 | ||
| 2415 | +#define CONFIG_NUV_DEMUXER 0 | ||
| 2416 | +#define CONFIG_OBU_DEMUXER 0 | ||
| 2417 | +#define CONFIG_OGG_DEMUXER 1 | ||
| 2418 | +#define CONFIG_OMA_DEMUXER 0 | ||
| 2419 | +#define CONFIG_PAF_DEMUXER 0 | ||
| 2420 | +#define CONFIG_PCM_ALAW_DEMUXER 0 | ||
| 2421 | +#define CONFIG_PCM_MULAW_DEMUXER 0 | ||
| 2422 | +#define CONFIG_PCM_VIDC_DEMUXER 0 | ||
| 2423 | +#define CONFIG_PCM_F64BE_DEMUXER 0 | ||
| 2424 | +#define CONFIG_PCM_F64LE_DEMUXER 0 | ||
| 2425 | +#define CONFIG_PCM_F32BE_DEMUXER 0 | ||
| 2426 | +#define CONFIG_PCM_F32LE_DEMUXER 0 | ||
| 2427 | +#define CONFIG_PCM_S32BE_DEMUXER 0 | ||
| 2428 | +#define CONFIG_PCM_S32LE_DEMUXER 0 | ||
| 2429 | +#define CONFIG_PCM_S24BE_DEMUXER 0 | ||
| 2430 | +#define CONFIG_PCM_S24LE_DEMUXER 0 | ||
| 2431 | +#define CONFIG_PCM_S16BE_DEMUXER 0 | ||
| 2432 | +#define CONFIG_PCM_S16LE_DEMUXER 0 | ||
| 2433 | +#define CONFIG_PCM_S8_DEMUXER 0 | ||
| 2434 | +#define CONFIG_PCM_U32BE_DEMUXER 0 | ||
| 2435 | +#define CONFIG_PCM_U32LE_DEMUXER 0 | ||
| 2436 | +#define CONFIG_PCM_U24BE_DEMUXER 0 | ||
| 2437 | +#define CONFIG_PCM_U24LE_DEMUXER 0 | ||
| 2438 | +#define CONFIG_PCM_U16BE_DEMUXER 0 | ||
| 2439 | +#define CONFIG_PCM_U16LE_DEMUXER 0 | ||
| 2440 | +#define CONFIG_PCM_U8_DEMUXER 0 | ||
| 2441 | +#define CONFIG_PJS_DEMUXER 0 | ||
| 2442 | +#define CONFIG_PMP_DEMUXER 0 | ||
| 2443 | +#define CONFIG_PP_BNK_DEMUXER 0 | ||
| 2444 | +#define CONFIG_PVA_DEMUXER 0 | ||
| 2445 | +#define CONFIG_PVF_DEMUXER 0 | ||
| 2446 | +#define CONFIG_QCP_DEMUXER 0 | ||
| 2447 | +#define CONFIG_R3D_DEMUXER 0 | ||
| 2448 | +#define CONFIG_RAWVIDEO_DEMUXER 0 | ||
| 2449 | +#define CONFIG_REALTEXT_DEMUXER 0 | ||
| 2450 | +#define CONFIG_REDSPARK_DEMUXER 0 | ||
| 2451 | +#define CONFIG_RL2_DEMUXER 0 | ||
| 2452 | +#define CONFIG_RM_DEMUXER 0 | ||
| 2453 | +#define CONFIG_ROQ_DEMUXER 0 | ||
| 2454 | +#define CONFIG_RPL_DEMUXER 0 | ||
| 2455 | +#define CONFIG_RSD_DEMUXER 0 | ||
| 2456 | +#define CONFIG_RSO_DEMUXER 0 | ||
| 2457 | +#define CONFIG_RTP_DEMUXER 0 | ||
| 2458 | +#define CONFIG_RTSP_DEMUXER 0 | ||
| 2459 | +#define CONFIG_S337M_DEMUXER 0 | ||
| 2460 | +#define CONFIG_SAMI_DEMUXER 0 | ||
| 2461 | +#define CONFIG_SAP_DEMUXER 0 | ||
| 2462 | +#define CONFIG_SBC_DEMUXER 0 | ||
| 2463 | +#define CONFIG_SBG_DEMUXER 0 | ||
| 2464 | +#define CONFIG_SCC_DEMUXER 0 | ||
| 2465 | +#define CONFIG_SCD_DEMUXER 0 | ||
| 2466 | +#define CONFIG_SDP_DEMUXER 0 | ||
| 2467 | +#define CONFIG_SDR2_DEMUXER 0 | ||
| 2468 | +#define CONFIG_SDS_DEMUXER 0 | ||
| 2469 | +#define CONFIG_SDX_DEMUXER 0 | ||
| 2470 | +#define CONFIG_SEGAFILM_DEMUXER 0 | ||
| 2471 | +#define CONFIG_SER_DEMUXER 0 | ||
| 2472 | +#define CONFIG_SGA_DEMUXER 0 | ||
| 2473 | +#define CONFIG_SHORTEN_DEMUXER 0 | ||
| 2474 | +#define CONFIG_SIFF_DEMUXER 0 | ||
| 2475 | +#define CONFIG_SIMBIOSIS_IMX_DEMUXER 0 | ||
| 2476 | +#define CONFIG_SLN_DEMUXER 0 | ||
| 2477 | +#define CONFIG_SMACKER_DEMUXER 0 | ||
| 2478 | +#define CONFIG_SMJPEG_DEMUXER 0 | ||
| 2479 | +#define CONFIG_SMUSH_DEMUXER 0 | ||
| 2480 | +#define CONFIG_SOL_DEMUXER 0 | ||
| 2481 | +#define CONFIG_SOX_DEMUXER 0 | ||
| 2482 | +#define CONFIG_SPDIF_DEMUXER 0 | ||
| 2483 | +#define CONFIG_SRT_DEMUXER 0 | ||
| 2484 | +#define CONFIG_STR_DEMUXER 0 | ||
| 2485 | +#define CONFIG_STL_DEMUXER 0 | ||
| 2486 | +#define CONFIG_SUBVIEWER1_DEMUXER 0 | ||
| 2487 | +#define CONFIG_SUBVIEWER_DEMUXER 0 | ||
| 2488 | +#define CONFIG_SUP_DEMUXER 0 | ||
| 2489 | +#define CONFIG_SVAG_DEMUXER 0 | ||
| 2490 | +#define CONFIG_SVS_DEMUXER 0 | ||
| 2491 | +#define CONFIG_SWF_DEMUXER 0 | ||
| 2492 | +#define CONFIG_TAK_DEMUXER 0 | ||
| 2493 | +#define CONFIG_TEDCAPTIONS_DEMUXER 0 | ||
| 2494 | +#define CONFIG_THP_DEMUXER 0 | ||
| 2495 | +#define CONFIG_THREEDOSTR_DEMUXER 0 | ||
| 2496 | +#define CONFIG_TIERTEXSEQ_DEMUXER 0 | ||
| 2497 | +#define CONFIG_TMV_DEMUXER 0 | ||
| 2498 | +#define CONFIG_TRUEHD_DEMUXER 0 | ||
| 2499 | +#define CONFIG_TTA_DEMUXER 0 | ||
| 2500 | +#define CONFIG_TXD_DEMUXER 0 | ||
| 2501 | +#define CONFIG_TTY_DEMUXER 0 | ||
| 2502 | +#define CONFIG_TY_DEMUXER 0 | ||
| 2503 | +#define CONFIG_V210_DEMUXER 0 | ||
| 2504 | +#define CONFIG_V210X_DEMUXER 0 | ||
| 2505 | +#define CONFIG_VAG_DEMUXER 0 | ||
| 2506 | +#define CONFIG_VC1_DEMUXER 0 | ||
| 2507 | +#define CONFIG_VC1T_DEMUXER 0 | ||
| 2508 | +#define CONFIG_VIVIDAS_DEMUXER 0 | ||
| 2509 | +#define CONFIG_VIVO_DEMUXER 0 | ||
| 2510 | +#define CONFIG_VMD_DEMUXER 0 | ||
| 2511 | +#define CONFIG_VOBSUB_DEMUXER 0 | ||
| 2512 | +#define CONFIG_VOC_DEMUXER 0 | ||
| 2513 | +#define CONFIG_VPK_DEMUXER 0 | ||
| 2514 | +#define CONFIG_VPLAYER_DEMUXER 0 | ||
| 2515 | +#define CONFIG_VQF_DEMUXER 0 | ||
| 2516 | +#define CONFIG_W64_DEMUXER 0 | ||
| 2517 | +#define CONFIG_WAV_DEMUXER 1 | ||
| 2518 | +#define CONFIG_WC3_DEMUXER 0 | ||
| 2519 | +#define CONFIG_WEBM_DASH_MANIFEST_DEMUXER 0 | ||
| 2520 | +#define CONFIG_WEBVTT_DEMUXER 0 | ||
| 2521 | +#define CONFIG_WSAUD_DEMUXER 0 | ||
| 2522 | +#define CONFIG_WSD_DEMUXER 0 | ||
| 2523 | +#define CONFIG_WSVQA_DEMUXER 0 | ||
| 2524 | +#define CONFIG_WTV_DEMUXER 0 | ||
| 2525 | +#define CONFIG_WVE_DEMUXER 0 | ||
| 2526 | +#define CONFIG_WV_DEMUXER 0 | ||
| 2527 | +#define CONFIG_XA_DEMUXER 0 | ||
| 2528 | +#define CONFIG_XBIN_DEMUXER 0 | ||
| 2529 | +#define CONFIG_XMV_DEMUXER 0 | ||
| 2530 | +#define CONFIG_XVAG_DEMUXER 0 | ||
| 2531 | +#define CONFIG_XWMA_DEMUXER 0 | ||
| 2532 | +#define CONFIG_YOP_DEMUXER 0 | ||
| 2533 | +#define CONFIG_YUV4MPEGPIPE_DEMUXER 0 | ||
| 2534 | +#define CONFIG_IMAGE_BMP_PIPE_DEMUXER 0 | ||
| 2535 | +#define CONFIG_IMAGE_CRI_PIPE_DEMUXER 0 | ||
| 2536 | +#define CONFIG_IMAGE_DDS_PIPE_DEMUXER 0 | ||
| 2537 | +#define CONFIG_IMAGE_DPX_PIPE_DEMUXER 0 | ||
| 2538 | +#define CONFIG_IMAGE_EXR_PIPE_DEMUXER 0 | ||
| 2539 | +#define CONFIG_IMAGE_GEM_PIPE_DEMUXER 0 | ||
| 2540 | +#define CONFIG_IMAGE_GIF_PIPE_DEMUXER 0 | ||
| 2541 | +#define CONFIG_IMAGE_J2K_PIPE_DEMUXER 0 | ||
| 2542 | +#define CONFIG_IMAGE_JPEG_PIPE_DEMUXER 0 | ||
| 2543 | +#define CONFIG_IMAGE_JPEGLS_PIPE_DEMUXER 0 | ||
| 2544 | +#define CONFIG_IMAGE_PAM_PIPE_DEMUXER 0 | ||
| 2545 | +#define CONFIG_IMAGE_PBM_PIPE_DEMUXER 0 | ||
| 2546 | +#define CONFIG_IMAGE_PCX_PIPE_DEMUXER 0 | ||
| 2547 | +#define CONFIG_IMAGE_PGMYUV_PIPE_DEMUXER 0 | ||
| 2548 | +#define CONFIG_IMAGE_PGM_PIPE_DEMUXER 0 | ||
| 2549 | +#define CONFIG_IMAGE_PGX_PIPE_DEMUXER 0 | ||
| 2550 | +#define CONFIG_IMAGE_PHOTOCD_PIPE_DEMUXER 0 | ||
| 2551 | +#define CONFIG_IMAGE_PICTOR_PIPE_DEMUXER 0 | ||
| 2552 | +#define CONFIG_IMAGE_PNG_PIPE_DEMUXER 0 | ||
| 2553 | +#define CONFIG_IMAGE_PPM_PIPE_DEMUXER 0 | ||
| 2554 | +#define CONFIG_IMAGE_PSD_PIPE_DEMUXER 0 | ||
| 2555 | +#define CONFIG_IMAGE_QDRAW_PIPE_DEMUXER 0 | ||
| 2556 | +#define CONFIG_IMAGE_SGI_PIPE_DEMUXER 0 | ||
| 2557 | +#define CONFIG_IMAGE_SVG_PIPE_DEMUXER 0 | ||
| 2558 | +#define CONFIG_IMAGE_SUNRAST_PIPE_DEMUXER 0 | ||
| 2559 | +#define CONFIG_IMAGE_TIFF_PIPE_DEMUXER 0 | ||
| 2560 | +#define CONFIG_IMAGE_WEBP_PIPE_DEMUXER 0 | ||
| 2561 | +#define CONFIG_IMAGE_XBM_PIPE_DEMUXER 0 | ||
| 2562 | +#define CONFIG_IMAGE_XPM_PIPE_DEMUXER 0 | ||
| 2563 | +#define CONFIG_IMAGE_XWD_PIPE_DEMUXER 0 | ||
| 2564 | +#define CONFIG_LIBGME_DEMUXER 0 | ||
| 2565 | +#define CONFIG_LIBMODPLUG_DEMUXER 0 | ||
| 2566 | +#define CONFIG_LIBOPENMPT_DEMUXER 0 | ||
| 2567 | +#define CONFIG_VAPOURSYNTH_DEMUXER 0 | ||
| 2568 | +#define CONFIG_A64_MUXER 0 | ||
| 2569 | +#define CONFIG_AC3_MUXER 0 | ||
| 2570 | +#define CONFIG_ADTS_MUXER 0 | ||
| 2571 | +#define CONFIG_ADX_MUXER 0 | ||
| 2572 | +#define CONFIG_AIFF_MUXER 0 | ||
| 2573 | +#define CONFIG_ALP_MUXER 0 | ||
| 2574 | +#define CONFIG_AMR_MUXER 0 | ||
| 2575 | +#define CONFIG_AMV_MUXER 0 | ||
| 2576 | +#define CONFIG_APM_MUXER 0 | ||
| 2577 | +#define CONFIG_APNG_MUXER 0 | ||
| 2578 | +#define CONFIG_APTX_MUXER 0 | ||
| 2579 | +#define CONFIG_APTX_HD_MUXER 0 | ||
| 2580 | +#define CONFIG_ARGO_ASF_MUXER 0 | ||
| 2581 | +#define CONFIG_ARGO_CVG_MUXER 0 | ||
| 2582 | +#define CONFIG_ASF_MUXER 0 | ||
| 2583 | +#define CONFIG_ASS_MUXER 0 | ||
| 2584 | +#define CONFIG_AST_MUXER 0 | ||
| 2585 | +#define CONFIG_ASF_STREAM_MUXER 0 | ||
| 2586 | +#define CONFIG_AU_MUXER 0 | ||
| 2587 | +#define CONFIG_AVI_MUXER 0 | ||
| 2588 | +#define CONFIG_AVM2_MUXER 0 | ||
| 2589 | +#define CONFIG_AVS2_MUXER 0 | ||
| 2590 | +#define CONFIG_AVS3_MUXER 0 | ||
| 2591 | +#define CONFIG_BIT_MUXER 0 | ||
| 2592 | +#define CONFIG_CAF_MUXER 0 | ||
| 2593 | +#define CONFIG_CAVSVIDEO_MUXER 0 | ||
| 2594 | +#define CONFIG_CODEC2_MUXER 0 | ||
| 2595 | +#define CONFIG_CODEC2RAW_MUXER 0 | ||
| 2596 | +#define CONFIG_CRC_MUXER 0 | ||
| 2597 | +#define CONFIG_DASH_MUXER 0 | ||
| 2598 | +#define CONFIG_DATA_MUXER 0 | ||
| 2599 | +#define CONFIG_DAUD_MUXER 0 | ||
| 2600 | +#define CONFIG_DIRAC_MUXER 0 | ||
| 2601 | +#define CONFIG_DNXHD_MUXER 0 | ||
| 2602 | +#define CONFIG_DTS_MUXER 0 | ||
| 2603 | +#define CONFIG_DV_MUXER 0 | ||
| 2604 | +#define CONFIG_EAC3_MUXER 0 | ||
| 2605 | +#define CONFIG_F4V_MUXER 0 | ||
| 2606 | +#define CONFIG_FFMETADATA_MUXER 0 | ||
| 2607 | +#define CONFIG_FIFO_MUXER 0 | ||
| 2608 | +#define CONFIG_FIFO_TEST_MUXER 0 | ||
| 2609 | +#define CONFIG_FILMSTRIP_MUXER 0 | ||
| 2610 | +#define CONFIG_FITS_MUXER 0 | ||
| 2611 | +#define CONFIG_FLAC_MUXER 0 | ||
| 2612 | +#define CONFIG_FLV_MUXER 0 | ||
| 2613 | +#define CONFIG_FRAMECRC_MUXER 0 | ||
| 2614 | +#define CONFIG_FRAMEHASH_MUXER 0 | ||
| 2615 | +#define CONFIG_FRAMEMD5_MUXER 0 | ||
| 2616 | +#define CONFIG_G722_MUXER 0 | ||
| 2617 | +#define CONFIG_G723_1_MUXER 0 | ||
| 2618 | +#define CONFIG_G726_MUXER 0 | ||
| 2619 | +#define CONFIG_G726LE_MUXER 0 | ||
| 2620 | +#define CONFIG_GIF_MUXER 0 | ||
| 2621 | +#define CONFIG_GSM_MUXER 0 | ||
| 2622 | +#define CONFIG_GXF_MUXER 0 | ||
| 2623 | +#define CONFIG_H261_MUXER 0 | ||
| 2624 | +#define CONFIG_H263_MUXER 0 | ||
| 2625 | +#define CONFIG_H264_MUXER 0 | ||
| 2626 | +#define CONFIG_HASH_MUXER 0 | ||
| 2627 | +#define CONFIG_HDS_MUXER 0 | ||
| 2628 | +#define CONFIG_HEVC_MUXER 0 | ||
| 2629 | +#define CONFIG_HLS_MUXER 0 | ||
| 2630 | +#define CONFIG_ICO_MUXER 0 | ||
| 2631 | +#define CONFIG_ILBC_MUXER 0 | ||
| 2632 | +#define CONFIG_IMAGE2_MUXER 0 | ||
| 2633 | +#define CONFIG_IMAGE2PIPE_MUXER 0 | ||
| 2634 | +#define CONFIG_IPOD_MUXER 0 | ||
| 2635 | +#define CONFIG_IRCAM_MUXER 0 | ||
| 2636 | +#define CONFIG_ISMV_MUXER 0 | ||
| 2637 | +#define CONFIG_IVF_MUXER 0 | ||
| 2638 | +#define CONFIG_JACOSUB_MUXER 0 | ||
| 2639 | +#define CONFIG_KVAG_MUXER 0 | ||
| 2640 | +#define CONFIG_LATM_MUXER 0 | ||
| 2641 | +#define CONFIG_LRC_MUXER 0 | ||
| 2642 | +#define CONFIG_M4V_MUXER 0 | ||
| 2643 | +#define CONFIG_MD5_MUXER 0 | ||
| 2644 | +#define CONFIG_MATROSKA_MUXER 0 | ||
| 2645 | +#define CONFIG_MATROSKA_AUDIO_MUXER 0 | ||
| 2646 | +#define CONFIG_MICRODVD_MUXER 0 | ||
| 2647 | +#define CONFIG_MJPEG_MUXER 0 | ||
| 2648 | +#define CONFIG_MLP_MUXER 0 | ||
| 2649 | +#define CONFIG_MMF_MUXER 0 | ||
| 2650 | +#define CONFIG_MOV_MUXER 0 | ||
| 2651 | +#define CONFIG_MP2_MUXER 0 | ||
| 2652 | +#define CONFIG_MP3_MUXER 0 | ||
| 2653 | +#define CONFIG_MP4_MUXER 0 | ||
| 2654 | +#define CONFIG_MPEG1SYSTEM_MUXER 0 | ||
| 2655 | +#define CONFIG_MPEG1VCD_MUXER 0 | ||
| 2656 | +#define CONFIG_MPEG1VIDEO_MUXER 0 | ||
| 2657 | +#define CONFIG_MPEG2DVD_MUXER 0 | ||
| 2658 | +#define CONFIG_MPEG2SVCD_MUXER 0 | ||
| 2659 | +#define CONFIG_MPEG2VIDEO_MUXER 0 | ||
| 2660 | +#define CONFIG_MPEG2VOB_MUXER 0 | ||
| 2661 | +#define CONFIG_MPEGTS_MUXER 0 | ||
| 2662 | +#define CONFIG_MPJPEG_MUXER 0 | ||
| 2663 | +#define CONFIG_MXF_MUXER 0 | ||
| 2664 | +#define CONFIG_MXF_D10_MUXER 0 | ||
| 2665 | +#define CONFIG_MXF_OPATOM_MUXER 0 | ||
| 2666 | +#define CONFIG_NULL_MUXER 0 | ||
| 2667 | +#define CONFIG_NUT_MUXER 0 | ||
| 2668 | +#define CONFIG_OBU_MUXER 0 | ||
| 2669 | +#define CONFIG_OGA_MUXER 0 | ||
| 2670 | +#define CONFIG_OGG_MUXER 0 | ||
| 2671 | +#define CONFIG_OGV_MUXER 0 | ||
| 2672 | +#define CONFIG_OMA_MUXER 0 | ||
| 2673 | +#define CONFIG_OPUS_MUXER 0 | ||
| 2674 | +#define CONFIG_PCM_ALAW_MUXER 0 | ||
| 2675 | +#define CONFIG_PCM_MULAW_MUXER 0 | ||
| 2676 | +#define CONFIG_PCM_VIDC_MUXER 0 | ||
| 2677 | +#define CONFIG_PCM_F64BE_MUXER 0 | ||
| 2678 | +#define CONFIG_PCM_F64LE_MUXER 0 | ||
| 2679 | +#define CONFIG_PCM_F32BE_MUXER 0 | ||
| 2680 | +#define CONFIG_PCM_F32LE_MUXER 0 | ||
| 2681 | +#define CONFIG_PCM_S32BE_MUXER 0 | ||
| 2682 | +#define CONFIG_PCM_S32LE_MUXER 0 | ||
| 2683 | +#define CONFIG_PCM_S24BE_MUXER 0 | ||
| 2684 | +#define CONFIG_PCM_S24LE_MUXER 0 | ||
| 2685 | +#define CONFIG_PCM_S16BE_MUXER 0 | ||
| 2686 | +#define CONFIG_PCM_S16LE_MUXER 0 | ||
| 2687 | +#define CONFIG_PCM_S8_MUXER 0 | ||
| 2688 | +#define CONFIG_PCM_U32BE_MUXER 0 | ||
| 2689 | +#define CONFIG_PCM_U32LE_MUXER 0 | ||
| 2690 | +#define CONFIG_PCM_U24BE_MUXER 0 | ||
| 2691 | +#define CONFIG_PCM_U24LE_MUXER 0 | ||
| 2692 | +#define CONFIG_PCM_U16BE_MUXER 0 | ||
| 2693 | +#define CONFIG_PCM_U16LE_MUXER 0 | ||
| 2694 | +#define CONFIG_PCM_U8_MUXER 0 | ||
| 2695 | +#define CONFIG_PSP_MUXER 0 | ||
| 2696 | +#define CONFIG_RAWVIDEO_MUXER 0 | ||
| 2697 | +#define CONFIG_RM_MUXER 0 | ||
| 2698 | +#define CONFIG_ROQ_MUXER 0 | ||
| 2699 | +#define CONFIG_RSO_MUXER 0 | ||
| 2700 | +#define CONFIG_RTP_MUXER 0 | ||
| 2701 | +#define CONFIG_RTP_MPEGTS_MUXER 0 | ||
| 2702 | +#define CONFIG_RTSP_MUXER 0 | ||
| 2703 | +#define CONFIG_SAP_MUXER 0 | ||
| 2704 | +#define CONFIG_SBC_MUXER 0 | ||
| 2705 | +#define CONFIG_SCC_MUXER 0 | ||
| 2706 | +#define CONFIG_SEGAFILM_MUXER 0 | ||
| 2707 | +#define CONFIG_SEGMENT_MUXER 0 | ||
| 2708 | +#define CONFIG_STREAM_SEGMENT_MUXER 0 | ||
| 2709 | +#define CONFIG_SMJPEG_MUXER 0 | ||
| 2710 | +#define CONFIG_SMOOTHSTREAMING_MUXER 0 | ||
| 2711 | +#define CONFIG_SOX_MUXER 0 | ||
| 2712 | +#define CONFIG_SPX_MUXER 0 | ||
| 2713 | +#define CONFIG_SPDIF_MUXER 0 | ||
| 2714 | +#define CONFIG_SRT_MUXER 0 | ||
| 2715 | +#define CONFIG_STREAMHASH_MUXER 0 | ||
| 2716 | +#define CONFIG_SUP_MUXER 0 | ||
| 2717 | +#define CONFIG_SWF_MUXER 0 | ||
| 2718 | +#define CONFIG_TEE_MUXER 0 | ||
| 2719 | +#define CONFIG_TG2_MUXER 0 | ||
| 2720 | +#define CONFIG_TGP_MUXER 0 | ||
| 2721 | +#define CONFIG_MKVTIMESTAMP_V2_MUXER 0 | ||
| 2722 | +#define CONFIG_TRUEHD_MUXER 0 | ||
| 2723 | +#define CONFIG_TTA_MUXER 0 | ||
| 2724 | +#define CONFIG_TTML_MUXER 0 | ||
| 2725 | +#define CONFIG_UNCODEDFRAMECRC_MUXER 0 | ||
| 2726 | +#define CONFIG_VC1_MUXER 0 | ||
| 2727 | +#define CONFIG_VC1T_MUXER 0 | ||
| 2728 | +#define CONFIG_VOC_MUXER 0 | ||
| 2729 | +#define CONFIG_W64_MUXER 0 | ||
| 2730 | +#define CONFIG_WAV_MUXER 0 | ||
| 2731 | +#define CONFIG_WEBM_MUXER 0 | ||
| 2732 | +#define CONFIG_WEBM_DASH_MANIFEST_MUXER 0 | ||
| 2733 | +#define CONFIG_WEBM_CHUNK_MUXER 0 | ||
| 2734 | +#define CONFIG_WEBP_MUXER 0 | ||
| 2735 | +#define CONFIG_WEBVTT_MUXER 0 | ||
| 2736 | +#define CONFIG_WSAUD_MUXER 0 | ||
| 2737 | +#define CONFIG_WTV_MUXER 0 | ||
| 2738 | +#define CONFIG_WV_MUXER 0 | ||
| 2739 | +#define CONFIG_YUV4MPEGPIPE_MUXER 0 | ||
| 2740 | +#define CONFIG_CHROMAPRINT_MUXER 0 | ||
| 2741 | +#define CONFIG_ASYNC_PROTOCOL 0 | ||
| 2742 | +#define CONFIG_BLURAY_PROTOCOL 0 | ||
| 2743 | +#define CONFIG_CACHE_PROTOCOL 0 | ||
| 2744 | +#define CONFIG_CONCAT_PROTOCOL 0 | ||
| 2745 | +#define CONFIG_CONCATF_PROTOCOL 0 | ||
| 2746 | +#define CONFIG_CRYPTO_PROTOCOL 0 | ||
| 2747 | +#define CONFIG_DATA_PROTOCOL 0 | ||
| 2748 | +#define CONFIG_FFRTMPCRYPT_PROTOCOL 0 | ||
| 2749 | +#define CONFIG_FFRTMPHTTP_PROTOCOL 0 | ||
| 2750 | +#define CONFIG_FILE_PROTOCOL 0 | ||
| 2751 | +#define CONFIG_FTP_PROTOCOL 0 | ||
| 2752 | +#define CONFIG_GOPHER_PROTOCOL 0 | ||
| 2753 | +#define CONFIG_GOPHERS_PROTOCOL 0 | ||
| 2754 | +#define CONFIG_HLS_PROTOCOL 0 | ||
| 2755 | +#define CONFIG_HTTP_PROTOCOL 0 | ||
| 2756 | +#define CONFIG_HTTPPROXY_PROTOCOL 0 | ||
| 2757 | +#define CONFIG_HTTPS_PROTOCOL 0 | ||
| 2758 | +#define CONFIG_ICECAST_PROTOCOL 0 | ||
| 2759 | +#define CONFIG_MMSH_PROTOCOL 0 | ||
| 2760 | +#define CONFIG_MMST_PROTOCOL 0 | ||
| 2761 | +#define CONFIG_MD5_PROTOCOL 0 | ||
| 2762 | +#define CONFIG_PIPE_PROTOCOL 0 | ||
| 2763 | +#define CONFIG_PROMPEG_PROTOCOL 0 | ||
| 2764 | +#define CONFIG_RTMP_PROTOCOL 0 | ||
| 2765 | +#define CONFIG_RTMPE_PROTOCOL 0 | ||
| 2766 | +#define CONFIG_RTMPS_PROTOCOL 0 | ||
| 2767 | +#define CONFIG_RTMPT_PROTOCOL 0 | ||
| 2768 | +#define CONFIG_RTMPTE_PROTOCOL 0 | ||
| 2769 | +#define CONFIG_RTMPTS_PROTOCOL 0 | ||
| 2770 | +#define CONFIG_RTP_PROTOCOL 0 | ||
| 2771 | +#define CONFIG_SCTP_PROTOCOL 0 | ||
| 2772 | +#define CONFIG_SRTP_PROTOCOL 0 | ||
| 2773 | +#define CONFIG_SUBFILE_PROTOCOL 0 | ||
| 2774 | +#define CONFIG_TEE_PROTOCOL 0 | ||
| 2775 | +#define CONFIG_TCP_PROTOCOL 0 | ||
| 2776 | +#define CONFIG_TLS_PROTOCOL 0 | ||
| 2777 | +#define CONFIG_UDP_PROTOCOL 0 | ||
| 2778 | +#define CONFIG_UDPLITE_PROTOCOL 0 | ||
| 2779 | +#define CONFIG_UNIX_PROTOCOL 0 | ||
| 2780 | +#define CONFIG_LIBAMQP_PROTOCOL 0 | ||
| 2781 | +#define CONFIG_LIBRIST_PROTOCOL 0 | ||
| 2782 | +#define CONFIG_LIBRTMP_PROTOCOL 0 | ||
| 2783 | +#define CONFIG_LIBRTMPE_PROTOCOL 0 | ||
| 2784 | +#define CONFIG_LIBRTMPS_PROTOCOL 0 | ||
| 2785 | +#define CONFIG_LIBRTMPT_PROTOCOL 0 | ||
| 2786 | +#define CONFIG_LIBRTMPTE_PROTOCOL 0 | ||
| 2787 | +#define CONFIG_LIBSRT_PROTOCOL 0 | ||
| 2788 | +#define CONFIG_LIBSSH_PROTOCOL 0 | ||
| 2789 | +#define CONFIG_LIBSMBCLIENT_PROTOCOL 0 | ||
| 2790 | +#define CONFIG_LIBZMQ_PROTOCOL 0 | ||
| 2791 | +#endif /* FFMPEG_CONFIG_H */ | ||
diff --git a/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_ia32_config_asm b/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_ia32_config_asm new file mode 100644 index 0000000..1c21450 --- /dev/null +++ b/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_ia32_config_asm | |||
| @@ -0,0 +1,2774 @@ | |||
| 1 | Index: third_party/ffmpeg/chromium/config/Chrome/openbsd/ia32/config.asm | ||
| 2 | --- third_party/ffmpeg/chromium/config/Chrome/openbsd/ia32/config.asm.orig | ||
| 3 | +++ third_party/ffmpeg/chromium/config/Chrome/openbsd/ia32/config.asm | ||
| 4 | @@ -0,0 +1,2770 @@ | ||
| 5 | +; Automatically generated by configure - do not modify! | ||
| 6 | +%define ARCH_AARCH64 0 | ||
| 7 | +%define ARCH_ALPHA 0 | ||
| 8 | +%define ARCH_ARM 0 | ||
| 9 | +%define ARCH_AVR32 0 | ||
| 10 | +%define ARCH_AVR32_AP 0 | ||
| 11 | +%define ARCH_AVR32_UC 0 | ||
| 12 | +%define ARCH_BFIN 0 | ||
| 13 | +%define ARCH_IA64 0 | ||
| 14 | +%define ARCH_LOONGARCH 0 | ||
| 15 | +%define ARCH_LOONGARCH32 0 | ||
| 16 | +%define ARCH_LOONGARCH64 0 | ||
| 17 | +%define ARCH_M68K 0 | ||
| 18 | +%define ARCH_MIPS 0 | ||
| 19 | +%define ARCH_MIPS64 0 | ||
| 20 | +%define ARCH_PARISC 0 | ||
| 21 | +%define ARCH_PPC 0 | ||
| 22 | +%define ARCH_PPC64 0 | ||
| 23 | +%define ARCH_RISCV 0 | ||
| 24 | +%define ARCH_S390 0 | ||
| 25 | +%define ARCH_SH4 0 | ||
| 26 | +%define ARCH_SPARC 0 | ||
| 27 | +%define ARCH_SPARC64 0 | ||
| 28 | +%define ARCH_TILEGX 0 | ||
| 29 | +%define ARCH_TILEPRO 0 | ||
| 30 | +%define ARCH_TOMI 0 | ||
| 31 | +%define ARCH_X86 1 | ||
| 32 | +%define ARCH_X86_32 1 | ||
| 33 | +%define ARCH_X86_64 0 | ||
| 34 | +%define HAVE_ARMV5TE 0 | ||
| 35 | +%define HAVE_ARMV6 0 | ||
| 36 | +%define HAVE_ARMV6T2 0 | ||
| 37 | +%define HAVE_ARMV8 0 | ||
| 38 | +%define HAVE_NEON 0 | ||
| 39 | +%define HAVE_VFP 0 | ||
| 40 | +%define HAVE_VFPV3 0 | ||
| 41 | +%define HAVE_SETEND 0 | ||
| 42 | +%define HAVE_ALTIVEC 0 | ||
| 43 | +%define HAVE_DCBZL 0 | ||
| 44 | +%define HAVE_LDBRX 0 | ||
| 45 | +%define HAVE_POWER8 0 | ||
| 46 | +%define HAVE_PPC4XX 0 | ||
| 47 | +%define HAVE_VSX 0 | ||
| 48 | +%define HAVE_AESNI 1 | ||
| 49 | +%define HAVE_AMD3DNOW 1 | ||
| 50 | +%define HAVE_AMD3DNOWEXT 1 | ||
| 51 | +%define HAVE_AVX 1 | ||
| 52 | +%define HAVE_AVX2 1 | ||
| 53 | +%define HAVE_AVX512 1 | ||
| 54 | +%define HAVE_FMA3 1 | ||
| 55 | +%define HAVE_FMA4 1 | ||
| 56 | +%define HAVE_MMX 1 | ||
| 57 | +%define HAVE_MMXEXT 1 | ||
| 58 | +%define HAVE_SSE 1 | ||
| 59 | +%define HAVE_SSE2 1 | ||
| 60 | +%define HAVE_SSE3 1 | ||
| 61 | +%define HAVE_SSE4 1 | ||
| 62 | +%define HAVE_SSE42 1 | ||
| 63 | +%define HAVE_SSSE3 1 | ||
| 64 | +%define HAVE_XOP 1 | ||
| 65 | +%define HAVE_CPUNOP 0 | ||
| 66 | +%define HAVE_I686 1 | ||
| 67 | +%define HAVE_MIPSFPU 0 | ||
| 68 | +%define HAVE_MIPS32R2 0 | ||
| 69 | +%define HAVE_MIPS32R5 0 | ||
| 70 | +%define HAVE_MIPS64R2 0 | ||
| 71 | +%define HAVE_MIPS32R6 0 | ||
| 72 | +%define HAVE_MIPS64R6 0 | ||
| 73 | +%define HAVE_MIPSDSP 0 | ||
| 74 | +%define HAVE_MIPSDSPR2 0 | ||
| 75 | +%define HAVE_MSA 0 | ||
| 76 | +%define HAVE_LOONGSON2 0 | ||
| 77 | +%define HAVE_LOONGSON3 0 | ||
| 78 | +%define HAVE_MMI 0 | ||
| 79 | +%define HAVE_LSX 0 | ||
| 80 | +%define HAVE_LASX 0 | ||
| 81 | +%define HAVE_ARMV5TE_EXTERNAL 0 | ||
| 82 | +%define HAVE_ARMV6_EXTERNAL 0 | ||
| 83 | +%define HAVE_ARMV6T2_EXTERNAL 0 | ||
| 84 | +%define HAVE_ARMV8_EXTERNAL 0 | ||
| 85 | +%define HAVE_NEON_EXTERNAL 0 | ||
| 86 | +%define HAVE_VFP_EXTERNAL 0 | ||
| 87 | +%define HAVE_VFPV3_EXTERNAL 0 | ||
| 88 | +%define HAVE_SETEND_EXTERNAL 0 | ||
| 89 | +%define HAVE_ALTIVEC_EXTERNAL 0 | ||
| 90 | +%define HAVE_DCBZL_EXTERNAL 0 | ||
| 91 | +%define HAVE_LDBRX_EXTERNAL 0 | ||
| 92 | +%define HAVE_POWER8_EXTERNAL 0 | ||
| 93 | +%define HAVE_PPC4XX_EXTERNAL 0 | ||
| 94 | +%define HAVE_VSX_EXTERNAL 0 | ||
| 95 | +%define HAVE_AESNI_EXTERNAL 1 | ||
| 96 | +%define HAVE_AMD3DNOW_EXTERNAL 1 | ||
| 97 | +%define HAVE_AMD3DNOWEXT_EXTERNAL 1 | ||
| 98 | +%define HAVE_AVX_EXTERNAL 1 | ||
| 99 | +%define HAVE_AVX2_EXTERNAL 1 | ||
| 100 | +%define HAVE_AVX512_EXTERNAL 1 | ||
| 101 | +%define HAVE_FMA3_EXTERNAL 1 | ||
| 102 | +%define HAVE_FMA4_EXTERNAL 1 | ||
| 103 | +%define HAVE_MMX_EXTERNAL 1 | ||
| 104 | +%define HAVE_MMXEXT_EXTERNAL 1 | ||
| 105 | +%define HAVE_SSE_EXTERNAL 1 | ||
| 106 | +%define HAVE_SSE2_EXTERNAL 1 | ||
| 107 | +%define HAVE_SSE3_EXTERNAL 1 | ||
| 108 | +%define HAVE_SSE4_EXTERNAL 1 | ||
| 109 | +%define HAVE_SSE42_EXTERNAL 1 | ||
| 110 | +%define HAVE_SSSE3_EXTERNAL 1 | ||
| 111 | +%define HAVE_XOP_EXTERNAL 1 | ||
| 112 | +%define HAVE_CPUNOP_EXTERNAL 0 | ||
| 113 | +%define HAVE_I686_EXTERNAL 0 | ||
| 114 | +%define HAVE_MIPSFPU_EXTERNAL 0 | ||
| 115 | +%define HAVE_MIPS32R2_EXTERNAL 0 | ||
| 116 | +%define HAVE_MIPS32R5_EXTERNAL 0 | ||
| 117 | +%define HAVE_MIPS64R2_EXTERNAL 0 | ||
| 118 | +%define HAVE_MIPS32R6_EXTERNAL 0 | ||
| 119 | +%define HAVE_MIPS64R6_EXTERNAL 0 | ||
| 120 | +%define HAVE_MIPSDSP_EXTERNAL 0 | ||
| 121 | +%define HAVE_MIPSDSPR2_EXTERNAL 0 | ||
| 122 | +%define HAVE_MSA_EXTERNAL 0 | ||
| 123 | +%define HAVE_LOONGSON2_EXTERNAL 0 | ||
| 124 | +%define HAVE_LOONGSON3_EXTERNAL 0 | ||
| 125 | +%define HAVE_MMI_EXTERNAL 0 | ||
| 126 | +%define HAVE_LSX_EXTERNAL 0 | ||
| 127 | +%define HAVE_LASX_EXTERNAL 0 | ||
| 128 | +%define HAVE_ARMV5TE_INLINE 0 | ||
| 129 | +%define HAVE_ARMV6_INLINE 0 | ||
| 130 | +%define HAVE_ARMV6T2_INLINE 0 | ||
| 131 | +%define HAVE_ARMV8_INLINE 0 | ||
| 132 | +%define HAVE_NEON_INLINE 0 | ||
| 133 | +%define HAVE_VFP_INLINE 0 | ||
| 134 | +%define HAVE_VFPV3_INLINE 0 | ||
| 135 | +%define HAVE_SETEND_INLINE 0 | ||
| 136 | +%define HAVE_ALTIVEC_INLINE 0 | ||
| 137 | +%define HAVE_DCBZL_INLINE 0 | ||
| 138 | +%define HAVE_LDBRX_INLINE 0 | ||
| 139 | +%define HAVE_POWER8_INLINE 0 | ||
| 140 | +%define HAVE_PPC4XX_INLINE 0 | ||
| 141 | +%define HAVE_VSX_INLINE 0 | ||
| 142 | +%define HAVE_AESNI_INLINE 1 | ||
| 143 | +%define HAVE_AMD3DNOW_INLINE 1 | ||
| 144 | +%define HAVE_AMD3DNOWEXT_INLINE 1 | ||
| 145 | +%define HAVE_AVX_INLINE 1 | ||
| 146 | +%define HAVE_AVX2_INLINE 1 | ||
| 147 | +%define HAVE_AVX512_INLINE 1 | ||
| 148 | +%define HAVE_FMA3_INLINE 1 | ||
| 149 | +%define HAVE_FMA4_INLINE 1 | ||
| 150 | +%define HAVE_MMX_INLINE 1 | ||
| 151 | +%define HAVE_MMXEXT_INLINE 1 | ||
| 152 | +%define HAVE_SSE_INLINE 1 | ||
| 153 | +%define HAVE_SSE2_INLINE 1 | ||
| 154 | +%define HAVE_SSE3_INLINE 1 | ||
| 155 | +%define HAVE_SSE4_INLINE 1 | ||
| 156 | +%define HAVE_SSE42_INLINE 1 | ||
| 157 | +%define HAVE_SSSE3_INLINE 1 | ||
| 158 | +%define HAVE_XOP_INLINE 1 | ||
| 159 | +%define HAVE_CPUNOP_INLINE 0 | ||
| 160 | +%define HAVE_I686_INLINE 0 | ||
| 161 | +%define HAVE_MIPSFPU_INLINE 0 | ||
| 162 | +%define HAVE_MIPS32R2_INLINE 0 | ||
| 163 | +%define HAVE_MIPS32R5_INLINE 0 | ||
| 164 | +%define HAVE_MIPS64R2_INLINE 0 | ||
| 165 | +%define HAVE_MIPS32R6_INLINE 0 | ||
| 166 | +%define HAVE_MIPS64R6_INLINE 0 | ||
| 167 | +%define HAVE_MIPSDSP_INLINE 0 | ||
| 168 | +%define HAVE_MIPSDSPR2_INLINE 0 | ||
| 169 | +%define HAVE_MSA_INLINE 0 | ||
| 170 | +%define HAVE_LOONGSON2_INLINE 0 | ||
| 171 | +%define HAVE_LOONGSON3_INLINE 0 | ||
| 172 | +%define HAVE_MMI_INLINE 0 | ||
| 173 | +%define HAVE_LSX_INLINE 0 | ||
| 174 | +%define HAVE_LASX_INLINE 0 | ||
| 175 | +%define HAVE_ALIGNED_STACK 0 | ||
| 176 | +%define HAVE_FAST_64BIT 0 | ||
| 177 | +%define HAVE_FAST_CLZ 1 | ||
| 178 | +%define HAVE_FAST_CMOV 0 | ||
| 179 | +%define HAVE_LOCAL_ALIGNED 1 | ||
| 180 | +%define HAVE_SIMD_ALIGN_16 1 | ||
| 181 | +%define HAVE_SIMD_ALIGN_32 1 | ||
| 182 | +%define HAVE_SIMD_ALIGN_64 1 | ||
| 183 | +%define HAVE_ATOMIC_CAS_PTR 0 | ||
| 184 | +%define HAVE_MACHINE_RW_BARRIER 0 | ||
| 185 | +%define HAVE_MEMORYBARRIER 0 | ||
| 186 | +%define HAVE_MM_EMPTY 0 | ||
| 187 | +%define HAVE_RDTSC 0 | ||
| 188 | +%define HAVE_SEM_TIMEDWAIT 1 | ||
| 189 | +%define HAVE_SYNC_VAL_COMPARE_AND_SWAP 1 | ||
| 190 | +%define HAVE_CABS 0 | ||
| 191 | +%define HAVE_CEXP 0 | ||
| 192 | +%define HAVE_INLINE_ASM 1 | ||
| 193 | +%define HAVE_SYMVER 0 | ||
| 194 | +%define HAVE_X86ASM 1 | ||
| 195 | +%define HAVE_BIGENDIAN 0 | ||
| 196 | +%define HAVE_FAST_UNALIGNED 1 | ||
| 197 | +%define HAVE_ARPA_INET_H 0 | ||
| 198 | +%define HAVE_ASM_TYPES_H 0 | ||
| 199 | +%define HAVE_CDIO_PARANOIA_H 0 | ||
| 200 | +%define HAVE_CDIO_PARANOIA_PARANOIA_H 0 | ||
| 201 | +%define HAVE_CUDA_H 0 | ||
| 202 | +%define HAVE_DISPATCH_DISPATCH_H 0 | ||
| 203 | +%define HAVE_DEV_BKTR_IOCTL_BT848_H 0 | ||
| 204 | +%define HAVE_DEV_BKTR_IOCTL_METEOR_H 0 | ||
| 205 | +%define HAVE_DEV_IC_BT8XX_H 1 | ||
| 206 | +%define HAVE_DEV_VIDEO_BKTR_IOCTL_BT848_H 0 | ||
| 207 | +%define HAVE_DEV_VIDEO_METEOR_IOCTL_METEOR_H 0 | ||
| 208 | +%define HAVE_DIRECT_H 0 | ||
| 209 | +%define HAVE_DIRENT_H 1 | ||
| 210 | +%define HAVE_DXGIDEBUG_H 0 | ||
| 211 | +%define HAVE_DXVA_H 0 | ||
| 212 | +%define HAVE_ES2_GL_H 0 | ||
| 213 | +%define HAVE_GSM_H 0 | ||
| 214 | +%define HAVE_IO_H 0 | ||
| 215 | +%define HAVE_LINUX_DMA_BUF_H 0 | ||
| 216 | +%define HAVE_LINUX_PERF_EVENT_H 0 | ||
| 217 | +%define HAVE_MACHINE_IOCTL_BT848_H 0 | ||
| 218 | +%define HAVE_MACHINE_IOCTL_METEOR_H 0 | ||
| 219 | +%define HAVE_MALLOC_H 0 | ||
| 220 | +%define HAVE_OPENCV2_CORE_CORE_C_H 0 | ||
| 221 | +%define HAVE_OPENGL_GL3_H 0 | ||
| 222 | +%define HAVE_POLL_H 1 | ||
| 223 | +%define HAVE_SYS_PARAM_H 1 | ||
| 224 | +%define HAVE_SYS_RESOURCE_H 1 | ||
| 225 | +%define HAVE_SYS_SELECT_H 1 | ||
| 226 | +%define HAVE_SYS_SOUNDCARD_H 0 | ||
| 227 | +%define HAVE_SYS_TIME_H 1 | ||
| 228 | +%define HAVE_SYS_UN_H 1 | ||
| 229 | +%define HAVE_SYS_VIDEOIO_H 1 | ||
| 230 | +%define HAVE_TERMIOS_H 1 | ||
| 231 | +%define HAVE_UDPLITE_H 0 | ||
| 232 | +%define HAVE_UNISTD_H 1 | ||
| 233 | +%define HAVE_VALGRIND_VALGRIND_H 0 | ||
| 234 | +%define HAVE_WINDOWS_H 0 | ||
| 235 | +%define HAVE_WINSOCK2_H 0 | ||
| 236 | +%define HAVE_INTRINSICS_NEON 0 | ||
| 237 | +%define HAVE_ATANF 1 | ||
| 238 | +%define HAVE_ATAN2F 1 | ||
| 239 | +%define HAVE_CBRT 1 | ||
| 240 | +%define HAVE_CBRTF 1 | ||
| 241 | +%define HAVE_COPYSIGN 1 | ||
| 242 | +%define HAVE_COSF 1 | ||
| 243 | +%define HAVE_ERF 1 | ||
| 244 | +%define HAVE_EXP2 1 | ||
| 245 | +%define HAVE_EXP2F 1 | ||
| 246 | +%define HAVE_EXPF 1 | ||
| 247 | +%define HAVE_HYPOT 1 | ||
| 248 | +%define HAVE_ISFINITE 1 | ||
| 249 | +%define HAVE_ISINF 1 | ||
| 250 | +%define HAVE_ISNAN 1 | ||
| 251 | +%define HAVE_LDEXPF 1 | ||
| 252 | +%define HAVE_LLRINT 1 | ||
| 253 | +%define HAVE_LLRINTF 1 | ||
| 254 | +%define HAVE_LOG2 1 | ||
| 255 | +%define HAVE_LOG2F 1 | ||
| 256 | +%define HAVE_LOG10F 1 | ||
| 257 | +%define HAVE_LRINT 1 | ||
| 258 | +%define HAVE_LRINTF 1 | ||
| 259 | +%define HAVE_POWF 1 | ||
| 260 | +%define HAVE_RINT 1 | ||
| 261 | +%define HAVE_ROUND 1 | ||
| 262 | +%define HAVE_ROUNDF 1 | ||
| 263 | +%define HAVE_SINF 1 | ||
| 264 | +%define HAVE_TRUNC 1 | ||
| 265 | +%define HAVE_TRUNCF 1 | ||
| 266 | +%define HAVE_DOS_PATHS 0 | ||
| 267 | +%define HAVE_LIBC_MSVCRT 0 | ||
| 268 | +%define HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS 0 | ||
| 269 | +%define HAVE_SECTION_DATA_REL_RO 1 | ||
| 270 | +%define HAVE_THREADS 1 | ||
| 271 | +%define HAVE_UWP 0 | ||
| 272 | +%define HAVE_WINRT 0 | ||
| 273 | +%define HAVE_ACCESS 1 | ||
| 274 | +%define HAVE_ALIGNED_MALLOC 0 | ||
| 275 | +%define HAVE_ARC4RANDOM 1 | ||
| 276 | +%define HAVE_CLOCK_GETTIME 1 | ||
| 277 | +%define HAVE_CLOSESOCKET 0 | ||
| 278 | +%define HAVE_COMMANDLINETOARGVW 0 | ||
| 279 | +%define HAVE_FCNTL 1 | ||
| 280 | +%define HAVE_GETADDRINFO 0 | ||
| 281 | +%define HAVE_GETHRTIME 0 | ||
| 282 | +%define HAVE_GETOPT 1 | ||
| 283 | +%define HAVE_GETMODULEHANDLE 0 | ||
| 284 | +%define HAVE_GETPROCESSAFFINITYMASK 0 | ||
| 285 | +%define HAVE_GETPROCESSMEMORYINFO 0 | ||
| 286 | +%define HAVE_GETPROCESSTIMES 0 | ||
| 287 | +%define HAVE_GETRUSAGE 1 | ||
| 288 | +%define HAVE_GETSTDHANDLE 0 | ||
| 289 | +%define HAVE_GETSYSTEMTIMEASFILETIME 0 | ||
| 290 | +%define HAVE_GETTIMEOFDAY 1 | ||
| 291 | +%define HAVE_GLOB 1 | ||
| 292 | +%define HAVE_GLXGETPROCADDRESS 0 | ||
| 293 | +%define HAVE_GMTIME_R 1 | ||
| 294 | +%define HAVE_INET_ATON 0 | ||
| 295 | +%define HAVE_ISATTY 1 | ||
| 296 | +%define HAVE_KBHIT 0 | ||
| 297 | +%define HAVE_LOCALTIME_R 1 | ||
| 298 | +%define HAVE_LSTAT 1 | ||
| 299 | +%define HAVE_LZO1X_999_COMPRESS 0 | ||
| 300 | +%define HAVE_MACH_ABSOLUTE_TIME 0 | ||
| 301 | +%define HAVE_MAPVIEWOFFILE 0 | ||
| 302 | +%define HAVE_MEMALIGN 0 | ||
| 303 | +%define HAVE_MKSTEMP 1 | ||
| 304 | +%define HAVE_MMAP 1 | ||
| 305 | +%define HAVE_MPROTECT 1 | ||
| 306 | +%define HAVE_NANOSLEEP 1 | ||
| 307 | +%define HAVE_PEEKNAMEDPIPE 0 | ||
| 308 | +%define HAVE_POSIX_MEMALIGN 1 | ||
| 309 | +%define HAVE_PTHREAD_CANCEL 1 | ||
| 310 | +%define HAVE_SCHED_GETAFFINITY 0 | ||
| 311 | +%define HAVE_SECITEMIMPORT 0 | ||
| 312 | +%define HAVE_SETCONSOLETEXTATTRIBUTE 0 | ||
| 313 | +%define HAVE_SETCONSOLECTRLHANDLER 0 | ||
| 314 | +%define HAVE_SETDLLDIRECTORY 0 | ||
| 315 | +%define HAVE_SETMODE 0 | ||
| 316 | +%define HAVE_SETRLIMIT 1 | ||
| 317 | +%define HAVE_SLEEP 0 | ||
| 318 | +%define HAVE_STRERROR_R 1 | ||
| 319 | +%define HAVE_SYSCONF 1 | ||
| 320 | +%define HAVE_SYSCTL 1 | ||
| 321 | +%define HAVE_USLEEP 1 | ||
| 322 | +%define HAVE_UTGETOSTYPEFROMSTRING 0 | ||
| 323 | +%define HAVE_VIRTUALALLOC 0 | ||
| 324 | +%define HAVE_WGLGETPROCADDRESS 0 | ||
| 325 | +%define HAVE_BCRYPT 0 | ||
| 326 | +%define HAVE_VAAPI_DRM 0 | ||
| 327 | +%define HAVE_VAAPI_X11 0 | ||
| 328 | +%define HAVE_VDPAU_X11 0 | ||
| 329 | +%define HAVE_PTHREADS 1 | ||
| 330 | +%define HAVE_OS2THREADS 0 | ||
| 331 | +%define HAVE_W32THREADS 0 | ||
| 332 | +%define HAVE_AS_ARCH_DIRECTIVE 0 | ||
| 333 | +%define HAVE_AS_DN_DIRECTIVE 0 | ||
| 334 | +%define HAVE_AS_FPU_DIRECTIVE 0 | ||
| 335 | +%define HAVE_AS_FUNC 0 | ||
| 336 | +%define HAVE_AS_OBJECT_ARCH 0 | ||
| 337 | +%define HAVE_ASM_MOD_Q 0 | ||
| 338 | +%define HAVE_BLOCKS_EXTENSION 0 | ||
| 339 | +%define HAVE_EBP_AVAILABLE 1 | ||
| 340 | +%define HAVE_EBX_AVAILABLE 1 | ||
| 341 | +%define HAVE_GNU_AS 0 | ||
| 342 | +%define HAVE_GNU_WINDRES 0 | ||
| 343 | +%define HAVE_IBM_ASM 0 | ||
| 344 | +%define HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS 1 | ||
| 345 | +%define HAVE_INLINE_ASM_LABELS 1 | ||
| 346 | +%define HAVE_INLINE_ASM_NONLOCAL_LABELS 1 | ||
| 347 | +%define HAVE_PRAGMA_DEPRECATED 1 | ||
| 348 | +%define HAVE_RSYNC_CONTIMEOUT 1 | ||
| 349 | +%define HAVE_SYMVER_ASM_LABEL 1 | ||
| 350 | +%define HAVE_SYMVER_GNU_ASM 1 | ||
| 351 | +%define HAVE_VFP_ARGS 0 | ||
| 352 | +%define HAVE_XFORM_ASM 0 | ||
| 353 | +%define HAVE_XMM_CLOBBERS 1 | ||
| 354 | +%define HAVE_KCMVIDEOCODECTYPE_HEVC 0 | ||
| 355 | +%define HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA 0 | ||
| 356 | +%define HAVE_KCMVIDEOCODECTYPE_VP9 0 | ||
| 357 | +%define HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 358 | +%define HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE 0 | ||
| 359 | +%define HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 360 | +%define HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE 0 | ||
| 361 | +%define HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE 0 | ||
| 362 | +%define HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 363 | +%define HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE 0 | ||
| 364 | +%define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ 0 | ||
| 365 | +%define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG 0 | ||
| 366 | +%define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_LINEAR 0 | ||
| 367 | +%define HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020 0 | ||
| 368 | +%define HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020 0 | ||
| 369 | +%define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020 0 | ||
| 370 | +%define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1 0 | ||
| 371 | +%define HAVE_SOCKLEN_T 0 | ||
| 372 | +%define HAVE_STRUCT_ADDRINFO 0 | ||
| 373 | +%define HAVE_STRUCT_GROUP_SOURCE_REQ 0 | ||
| 374 | +%define HAVE_STRUCT_IP_MREQ_SOURCE 0 | ||
| 375 | +%define HAVE_STRUCT_IPV6_MREQ 0 | ||
| 376 | +%define HAVE_STRUCT_MSGHDR_MSG_FLAGS 0 | ||
| 377 | +%define HAVE_STRUCT_POLLFD 0 | ||
| 378 | +%define HAVE_STRUCT_RUSAGE_RU_MAXRSS 1 | ||
| 379 | +%define HAVE_STRUCT_SCTP_EVENT_SUBSCRIBE 0 | ||
| 380 | +%define HAVE_STRUCT_SOCKADDR_IN6 0 | ||
| 381 | +%define HAVE_STRUCT_SOCKADDR_SA_LEN 0 | ||
| 382 | +%define HAVE_STRUCT_SOCKADDR_STORAGE 0 | ||
| 383 | +%define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | ||
| 384 | +%define HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE 1 | ||
| 385 | +%define HAVE_GZIP 1 | ||
| 386 | +%define HAVE_LIBDRM_GETFB2 0 | ||
| 387 | +%define HAVE_MAKEINFO 1 | ||
| 388 | +%define HAVE_MAKEINFO_HTML 0 | ||
| 389 | +%define HAVE_OPENCL_D3D11 0 | ||
| 390 | +%define HAVE_OPENCL_DRM_ARM 0 | ||
| 391 | +%define HAVE_OPENCL_DRM_BEIGNET 0 | ||
| 392 | +%define HAVE_OPENCL_DXVA2 0 | ||
| 393 | +%define HAVE_OPENCL_VAAPI_BEIGNET 0 | ||
| 394 | +%define HAVE_OPENCL_VAAPI_INTEL_MEDIA 0 | ||
| 395 | +%define HAVE_PERL 1 | ||
| 396 | +%define HAVE_POD2MAN 1 | ||
| 397 | +%define HAVE_TEXI2HTML 0 | ||
| 398 | +%define HAVE_XMLLINT 1 | ||
| 399 | +%define HAVE_ZLIB_GZIP 0 | ||
| 400 | +%define CONFIG_DOC 0 | ||
| 401 | +%define CONFIG_HTMLPAGES 0 | ||
| 402 | +%define CONFIG_MANPAGES 0 | ||
| 403 | +%define CONFIG_PODPAGES 0 | ||
| 404 | +%define CONFIG_TXTPAGES 0 | ||
| 405 | +%define CONFIG_AVIO_LIST_DIR_EXAMPLE 1 | ||
| 406 | +%define CONFIG_AVIO_READING_EXAMPLE 1 | ||
| 407 | +%define CONFIG_DECODE_AUDIO_EXAMPLE 1 | ||
| 408 | +%define CONFIG_DECODE_VIDEO_EXAMPLE 1 | ||
| 409 | +%define CONFIG_DEMUXING_DECODING_EXAMPLE 1 | ||
| 410 | +%define CONFIG_ENCODE_AUDIO_EXAMPLE 1 | ||
| 411 | +%define CONFIG_ENCODE_VIDEO_EXAMPLE 1 | ||
| 412 | +%define CONFIG_EXTRACT_MVS_EXAMPLE 1 | ||
| 413 | +%define CONFIG_FILTER_AUDIO_EXAMPLE 0 | ||
| 414 | +%define CONFIG_FILTERING_AUDIO_EXAMPLE 0 | ||
| 415 | +%define CONFIG_FILTERING_VIDEO_EXAMPLE 0 | ||
| 416 | +%define CONFIG_HTTP_MULTICLIENT_EXAMPLE 1 | ||
| 417 | +%define CONFIG_HW_DECODE_EXAMPLE 1 | ||
| 418 | +%define CONFIG_METADATA_EXAMPLE 1 | ||
| 419 | +%define CONFIG_MUXING_EXAMPLE 0 | ||
| 420 | +%define CONFIG_QSVDEC_EXAMPLE 0 | ||
| 421 | +%define CONFIG_REMUXING_EXAMPLE 1 | ||
| 422 | +%define CONFIG_RESAMPLING_AUDIO_EXAMPLE 0 | ||
| 423 | +%define CONFIG_SCALING_VIDEO_EXAMPLE 0 | ||
| 424 | +%define CONFIG_TRANSCODE_AAC_EXAMPLE 0 | ||
| 425 | +%define CONFIG_TRANSCODING_EXAMPLE 0 | ||
| 426 | +%define CONFIG_VAAPI_ENCODE_EXAMPLE 0 | ||
| 427 | +%define CONFIG_VAAPI_TRANSCODE_EXAMPLE 0 | ||
| 428 | +%define CONFIG_AVISYNTH 0 | ||
| 429 | +%define CONFIG_FREI0R 0 | ||
| 430 | +%define CONFIG_LIBCDIO 0 | ||
| 431 | +%define CONFIG_LIBDAVS2 0 | ||
| 432 | +%define CONFIG_LIBRUBBERBAND 0 | ||
| 433 | +%define CONFIG_LIBVIDSTAB 0 | ||
| 434 | +%define CONFIG_LIBX264 0 | ||
| 435 | +%define CONFIG_LIBX265 0 | ||
| 436 | +%define CONFIG_LIBXAVS 0 | ||
| 437 | +%define CONFIG_LIBXAVS2 0 | ||
| 438 | +%define CONFIG_LIBXVID 0 | ||
| 439 | +%define CONFIG_DECKLINK 0 | ||
| 440 | +%define CONFIG_LIBFDK_AAC 0 | ||
| 441 | +%define CONFIG_LIBTLS 0 | ||
| 442 | +%define CONFIG_GMP 0 | ||
| 443 | +%define CONFIG_LIBARIBB24 0 | ||
| 444 | +%define CONFIG_LIBLENSFUN 0 | ||
| 445 | +%define CONFIG_LIBOPENCORE_AMRNB 0 | ||
| 446 | +%define CONFIG_LIBOPENCORE_AMRWB 0 | ||
| 447 | +%define CONFIG_LIBVO_AMRWBENC 0 | ||
| 448 | +%define CONFIG_MBEDTLS 0 | ||
| 449 | +%define CONFIG_RKMPP 0 | ||
| 450 | +%define CONFIG_LIBSMBCLIENT 0 | ||
| 451 | +%define CONFIG_CHROMAPRINT 0 | ||
| 452 | +%define CONFIG_GCRYPT 0 | ||
| 453 | +%define CONFIG_GNUTLS 0 | ||
| 454 | +%define CONFIG_JNI 0 | ||
| 455 | +%define CONFIG_LADSPA 0 | ||
| 456 | +%define CONFIG_LIBAOM 0 | ||
| 457 | +%define CONFIG_LIBASS 0 | ||
| 458 | +%define CONFIG_LIBBLURAY 0 | ||
| 459 | +%define CONFIG_LIBBS2B 0 | ||
| 460 | +%define CONFIG_LIBCACA 0 | ||
| 461 | +%define CONFIG_LIBCELT 0 | ||
| 462 | +%define CONFIG_LIBCODEC2 0 | ||
| 463 | +%define CONFIG_LIBDAV1D 0 | ||
| 464 | +%define CONFIG_LIBDC1394 0 | ||
| 465 | +%define CONFIG_LIBDRM 0 | ||
| 466 | +%define CONFIG_LIBFLITE 0 | ||
| 467 | +%define CONFIG_LIBFONTCONFIG 0 | ||
| 468 | +%define CONFIG_LIBFREETYPE 0 | ||
| 469 | +%define CONFIG_LIBFRIBIDI 0 | ||
| 470 | +%define CONFIG_LIBGLSLANG 0 | ||
| 471 | +%define CONFIG_LIBGME 0 | ||
| 472 | +%define CONFIG_LIBGSM 0 | ||
| 473 | +%define CONFIG_LIBIEC61883 0 | ||
| 474 | +%define CONFIG_LIBILBC 0 | ||
| 475 | +%define CONFIG_LIBJACK 0 | ||
| 476 | +%define CONFIG_LIBKLVANC 0 | ||
| 477 | +%define CONFIG_LIBKVAZAAR 0 | ||
| 478 | +%define CONFIG_LIBMODPLUG 0 | ||
| 479 | +%define CONFIG_LIBMP3LAME 0 | ||
| 480 | +%define CONFIG_LIBMYSOFA 0 | ||
| 481 | +%define CONFIG_LIBOPENCV 0 | ||
| 482 | +%define CONFIG_LIBOPENH264 0 | ||
| 483 | +%define CONFIG_LIBOPENJPEG 0 | ||
| 484 | +%define CONFIG_LIBOPENMPT 0 | ||
| 485 | +%define CONFIG_LIBOPENVINO 0 | ||
| 486 | +%define CONFIG_LIBOPUS 1 | ||
| 487 | +%define CONFIG_LIBPLACEBO 0 | ||
| 488 | +%define CONFIG_LIBPULSE 0 | ||
| 489 | +%define CONFIG_LIBRABBITMQ 0 | ||
| 490 | +%define CONFIG_LIBRAV1E 0 | ||
| 491 | +%define CONFIG_LIBRIST 0 | ||
| 492 | +%define CONFIG_LIBRSVG 0 | ||
| 493 | +%define CONFIG_LIBRTMP 0 | ||
| 494 | +%define CONFIG_LIBSHADERC 0 | ||
| 495 | +%define CONFIG_LIBSHINE 0 | ||
| 496 | +%define CONFIG_LIBSMBCLIENT 0 | ||
| 497 | +%define CONFIG_LIBSNAPPY 0 | ||
| 498 | +%define CONFIG_LIBSOXR 0 | ||
| 499 | +%define CONFIG_LIBSPEEX 0 | ||
| 500 | +%define CONFIG_LIBSRT 0 | ||
| 501 | +%define CONFIG_LIBSSH 0 | ||
| 502 | +%define CONFIG_LIBSVTAV1 0 | ||
| 503 | +%define CONFIG_LIBTENSORFLOW 0 | ||
| 504 | +%define CONFIG_LIBTESSERACT 0 | ||
| 505 | +%define CONFIG_LIBTHEORA 0 | ||
| 506 | +%define CONFIG_LIBTWOLAME 0 | ||
| 507 | +%define CONFIG_LIBUAVS3D 0 | ||
| 508 | +%define CONFIG_LIBV4L2 0 | ||
| 509 | +%define CONFIG_LIBVMAF 0 | ||
| 510 | +%define CONFIG_LIBVORBIS 0 | ||
| 511 | +%define CONFIG_LIBVPX 0 | ||
| 512 | +%define CONFIG_LIBWEBP 0 | ||
| 513 | +%define CONFIG_LIBXML2 0 | ||
| 514 | +%define CONFIG_LIBZIMG 0 | ||
| 515 | +%define CONFIG_LIBZMQ 0 | ||
| 516 | +%define CONFIG_LIBZVBI 0 | ||
| 517 | +%define CONFIG_LV2 0 | ||
| 518 | +%define CONFIG_MEDIACODEC 0 | ||
| 519 | +%define CONFIG_OPENAL 0 | ||
| 520 | +%define CONFIG_OPENGL 0 | ||
| 521 | +%define CONFIG_OPENSSL 0 | ||
| 522 | +%define CONFIG_POCKETSPHINX 0 | ||
| 523 | +%define CONFIG_VAPOURSYNTH 0 | ||
| 524 | +%define CONFIG_ALSA 0 | ||
| 525 | +%define CONFIG_APPKIT 0 | ||
| 526 | +%define CONFIG_AVFOUNDATION 0 | ||
| 527 | +%define CONFIG_BZLIB 0 | ||
| 528 | +%define CONFIG_COREIMAGE 0 | ||
| 529 | +%define CONFIG_ICONV 0 | ||
| 530 | +%define CONFIG_LIBXCB 0 | ||
| 531 | +%define CONFIG_LIBXCB_SHM 0 | ||
| 532 | +%define CONFIG_LIBXCB_SHAPE 0 | ||
| 533 | +%define CONFIG_LIBXCB_XFIXES 0 | ||
| 534 | +%define CONFIG_LZMA 0 | ||
| 535 | +%define CONFIG_MEDIAFOUNDATION 0 | ||
| 536 | +%define CONFIG_METAL 0 | ||
| 537 | +%define CONFIG_SCHANNEL 0 | ||
| 538 | +%define CONFIG_SDL2 0 | ||
| 539 | +%define CONFIG_SECURETRANSPORT 0 | ||
| 540 | +%define CONFIG_SNDIO 0 | ||
| 541 | +%define CONFIG_XLIB 0 | ||
| 542 | +%define CONFIG_ZLIB 0 | ||
| 543 | +%define CONFIG_CUDA_NVCC 0 | ||
| 544 | +%define CONFIG_CUDA_SDK 0 | ||
| 545 | +%define CONFIG_LIBNPP 0 | ||
| 546 | +%define CONFIG_LIBMFX 0 | ||
| 547 | +%define CONFIG_MMAL 0 | ||
| 548 | +%define CONFIG_OMX 0 | ||
| 549 | +%define CONFIG_OPENCL 0 | ||
| 550 | +%define CONFIG_AMF 0 | ||
| 551 | +%define CONFIG_AUDIOTOOLBOX 0 | ||
| 552 | +%define CONFIG_CRYSTALHD 0 | ||
| 553 | +%define CONFIG_CUDA 0 | ||
| 554 | +%define CONFIG_CUDA_LLVM 0 | ||
| 555 | +%define CONFIG_CUVID 0 | ||
| 556 | +%define CONFIG_D3D11VA 0 | ||
| 557 | +%define CONFIG_DXVA2 0 | ||
| 558 | +%define CONFIG_FFNVCODEC 0 | ||
| 559 | +%define CONFIG_NVDEC 0 | ||
| 560 | +%define CONFIG_NVENC 0 | ||
| 561 | +%define CONFIG_VAAPI 0 | ||
| 562 | +%define CONFIG_VDPAU 0 | ||
| 563 | +%define CONFIG_VIDEOTOOLBOX 0 | ||
| 564 | +%define CONFIG_VULKAN 0 | ||
| 565 | +%define CONFIG_V4L2_M2M 0 | ||
| 566 | +%define CONFIG_XVMC 0 | ||
| 567 | +%define CONFIG_FTRAPV 0 | ||
| 568 | +%define CONFIG_GRAY 0 | ||
| 569 | +%define CONFIG_HARDCODED_TABLES 0 | ||
| 570 | +%define CONFIG_OMX_RPI 0 | ||
| 571 | +%define CONFIG_RUNTIME_CPUDETECT 1 | ||
| 572 | +%define CONFIG_SAFE_BITSTREAM_READER 1 | ||
| 573 | +%define CONFIG_SHARED 0 | ||
| 574 | +%define CONFIG_SMALL 0 | ||
| 575 | +%define CONFIG_STATIC 1 | ||
| 576 | +%define CONFIG_SWSCALE_ALPHA 1 | ||
| 577 | +%define CONFIG_GPL 0 | ||
| 578 | +%define CONFIG_NONFREE 0 | ||
| 579 | +%define CONFIG_VERSION3 0 | ||
| 580 | +%define CONFIG_AVDEVICE 0 | ||
| 581 | +%define CONFIG_AVFILTER 0 | ||
| 582 | +%define CONFIG_SWSCALE 0 | ||
| 583 | +%define CONFIG_POSTPROC 0 | ||
| 584 | +%define CONFIG_AVFORMAT 1 | ||
| 585 | +%define CONFIG_AVCODEC 1 | ||
| 586 | +%define CONFIG_SWRESAMPLE 0 | ||
| 587 | +%define CONFIG_AVUTIL 1 | ||
| 588 | +%define CONFIG_FFPLAY 0 | ||
| 589 | +%define CONFIG_FFPROBE 0 | ||
| 590 | +%define CONFIG_FFMPEG 0 | ||
| 591 | +%define CONFIG_DCT 1 | ||
| 592 | +%define CONFIG_DWT 0 | ||
| 593 | +%define CONFIG_ERROR_RESILIENCE 0 | ||
| 594 | +%define CONFIG_FAAN 0 | ||
| 595 | +%define CONFIG_FAST_UNALIGNED 1 | ||
| 596 | +%define CONFIG_FFT 1 | ||
| 597 | +%define CONFIG_LSP 0 | ||
| 598 | +%define CONFIG_LZO 0 | ||
| 599 | +%define CONFIG_MDCT 1 | ||
| 600 | +%define CONFIG_PIXELUTILS 0 | ||
| 601 | +%define CONFIG_NETWORK 0 | ||
| 602 | +%define CONFIG_RDFT 1 | ||
| 603 | +%define CONFIG_AUTODETECT 0 | ||
| 604 | +%define CONFIG_FONTCONFIG 0 | ||
| 605 | +%define CONFIG_LARGE_TESTS 1 | ||
| 606 | +%define CONFIG_LINUX_PERF 0 | ||
| 607 | +%define CONFIG_MACOS_KPERF 0 | ||
| 608 | +%define CONFIG_MEMORY_POISONING 0 | ||
| 609 | +%define CONFIG_NEON_CLOBBER_TEST 0 | ||
| 610 | +%define CONFIG_OSSFUZZ 0 | ||
| 611 | +%define CONFIG_PIC 1 | ||
| 612 | +%define CONFIG_PTX_COMPRESSION 0 | ||
| 613 | +%define CONFIG_THUMB 0 | ||
| 614 | +%define CONFIG_VALGRIND_BACKTRACE 0 | ||
| 615 | +%define CONFIG_XMM_CLOBBER_TEST 0 | ||
| 616 | +%define CONFIG_BSFS 0 | ||
| 617 | +%define CONFIG_DECODERS 1 | ||
| 618 | +%define CONFIG_ENCODERS 0 | ||
| 619 | +%define CONFIG_HWACCELS 0 | ||
| 620 | +%define CONFIG_PARSERS 1 | ||
| 621 | +%define CONFIG_INDEVS 0 | ||
| 622 | +%define CONFIG_OUTDEVS 0 | ||
| 623 | +%define CONFIG_FILTERS 0 | ||
| 624 | +%define CONFIG_DEMUXERS 1 | ||
| 625 | +%define CONFIG_MUXERS 0 | ||
| 626 | +%define CONFIG_PROTOCOLS 0 | ||
| 627 | +%define CONFIG_AANDCTTABLES 0 | ||
| 628 | +%define CONFIG_AC3DSP 0 | ||
| 629 | +%define CONFIG_ADTS_HEADER 1 | ||
| 630 | +%define CONFIG_ATSC_A53 1 | ||
| 631 | +%define CONFIG_AUDIO_FRAME_QUEUE 0 | ||
| 632 | +%define CONFIG_AUDIODSP 0 | ||
| 633 | +%define CONFIG_BLOCKDSP 0 | ||
| 634 | +%define CONFIG_BSWAPDSP 0 | ||
| 635 | +%define CONFIG_CABAC 1 | ||
| 636 | +%define CONFIG_CBS 0 | ||
| 637 | +%define CONFIG_CBS_AV1 0 | ||
| 638 | +%define CONFIG_CBS_H264 0 | ||
| 639 | +%define CONFIG_CBS_H265 0 | ||
| 640 | +%define CONFIG_CBS_JPEG 0 | ||
| 641 | +%define CONFIG_CBS_MPEG2 0 | ||
| 642 | +%define CONFIG_CBS_VP9 0 | ||
| 643 | +%define CONFIG_DIRAC_PARSE 1 | ||
| 644 | +%define CONFIG_DNN 0 | ||
| 645 | +%define CONFIG_DOVI_RPU 0 | ||
| 646 | +%define CONFIG_DVPROFILE 0 | ||
| 647 | +%define CONFIG_EXIF 0 | ||
| 648 | +%define CONFIG_FAANDCT 0 | ||
| 649 | +%define CONFIG_FAANIDCT 0 | ||
| 650 | +%define CONFIG_FDCTDSP 0 | ||
| 651 | +%define CONFIG_FLACDSP 1 | ||
| 652 | +%define CONFIG_FMTCONVERT 0 | ||
| 653 | +%define CONFIG_FRAME_THREAD_ENCODER 0 | ||
| 654 | +%define CONFIG_G722DSP 0 | ||
| 655 | +%define CONFIG_GOLOMB 1 | ||
| 656 | +%define CONFIG_GPLV3 0 | ||
| 657 | +%define CONFIG_H263DSP 0 | ||
| 658 | +%define CONFIG_H264CHROMA 1 | ||
| 659 | +%define CONFIG_H264DSP 1 | ||
| 660 | +%define CONFIG_H264PARSE 1 | ||
| 661 | +%define CONFIG_H264PRED 1 | ||
| 662 | +%define CONFIG_H264QPEL 1 | ||
| 663 | +%define CONFIG_HEVCPARSE 0 | ||
| 664 | +%define CONFIG_HPELDSP 1 | ||
| 665 | +%define CONFIG_HUFFMAN 0 | ||
| 666 | +%define CONFIG_HUFFYUVDSP 0 | ||
| 667 | +%define CONFIG_HUFFYUVENCDSP 0 | ||
| 668 | +%define CONFIG_IDCTDSP 0 | ||
| 669 | +%define CONFIG_IIRFILTER 0 | ||
| 670 | +%define CONFIG_MDCT15 1 | ||
| 671 | +%define CONFIG_INTRAX8 0 | ||
| 672 | +%define CONFIG_ISO_MEDIA 1 | ||
| 673 | +%define CONFIG_IVIDSP 0 | ||
| 674 | +%define CONFIG_JPEGTABLES 0 | ||
| 675 | +%define CONFIG_LGPLV3 0 | ||
| 676 | +%define CONFIG_LIBX262 0 | ||
| 677 | +%define CONFIG_LLAUDDSP 0 | ||
| 678 | +%define CONFIG_LLVIDDSP 0 | ||
| 679 | +%define CONFIG_LLVIDENCDSP 0 | ||
| 680 | +%define CONFIG_LPC 0 | ||
| 681 | +%define CONFIG_LZF 0 | ||
| 682 | +%define CONFIG_ME_CMP 0 | ||
| 683 | +%define CONFIG_MPEG_ER 0 | ||
| 684 | +%define CONFIG_MPEGAUDIO 1 | ||
| 685 | +%define CONFIG_MPEGAUDIODSP 1 | ||
| 686 | +%define CONFIG_MPEGAUDIOHEADER 1 | ||
| 687 | +%define CONFIG_MPEG4AUDIO 1 | ||
| 688 | +%define CONFIG_MPEGVIDEO 0 | ||
| 689 | +%define CONFIG_MPEGVIDEODEC 0 | ||
| 690 | +%define CONFIG_MPEGVIDEOENC 0 | ||
| 691 | +%define CONFIG_MSS34DSP 0 | ||
| 692 | +%define CONFIG_PIXBLOCKDSP 0 | ||
| 693 | +%define CONFIG_QPELDSP 0 | ||
| 694 | +%define CONFIG_QSV 0 | ||
| 695 | +%define CONFIG_QSVDEC 0 | ||
| 696 | +%define CONFIG_QSVENC 0 | ||
| 697 | +%define CONFIG_QSVVPP 0 | ||
| 698 | +%define CONFIG_RANGECODER 0 | ||
| 699 | +%define CONFIG_RIFFDEC 1 | ||
| 700 | +%define CONFIG_RIFFENC 0 | ||
| 701 | +%define CONFIG_RTPDEC 0 | ||
| 702 | +%define CONFIG_RTPENC_CHAIN 0 | ||
| 703 | +%define CONFIG_RV34DSP 0 | ||
| 704 | +%define CONFIG_SCENE_SAD 0 | ||
| 705 | +%define CONFIG_SINEWIN 1 | ||
| 706 | +%define CONFIG_SNAPPY 0 | ||
| 707 | +%define CONFIG_SRTP 0 | ||
| 708 | +%define CONFIG_STARTCODE 1 | ||
| 709 | +%define CONFIG_TEXTUREDSP 0 | ||
| 710 | +%define CONFIG_TEXTUREDSPENC 0 | ||
| 711 | +%define CONFIG_TPELDSP 0 | ||
| 712 | +%define CONFIG_VAAPI_1 0 | ||
| 713 | +%define CONFIG_VAAPI_ENCODE 0 | ||
| 714 | +%define CONFIG_VC1DSP 0 | ||
| 715 | +%define CONFIG_VIDEODSP 1 | ||
| 716 | +%define CONFIG_VP3DSP 1 | ||
| 717 | +%define CONFIG_VP56DSP 0 | ||
| 718 | +%define CONFIG_VP8DSP 1 | ||
| 719 | +%define CONFIG_WMA_FREQS 0 | ||
| 720 | +%define CONFIG_WMV2DSP 0 | ||
| 721 | +%define CONFIG_AAC_ADTSTOASC_BSF 0 | ||
| 722 | +%define CONFIG_AV1_FRAME_MERGE_BSF 0 | ||
| 723 | +%define CONFIG_AV1_FRAME_SPLIT_BSF 0 | ||
| 724 | +%define CONFIG_AV1_METADATA_BSF 0 | ||
| 725 | +%define CONFIG_CHOMP_BSF 0 | ||
| 726 | +%define CONFIG_DUMP_EXTRADATA_BSF 0 | ||
| 727 | +%define CONFIG_DCA_CORE_BSF 0 | ||
| 728 | +%define CONFIG_EAC3_CORE_BSF 0 | ||
| 729 | +%define CONFIG_EXTRACT_EXTRADATA_BSF 0 | ||
| 730 | +%define CONFIG_FILTER_UNITS_BSF 0 | ||
| 731 | +%define CONFIG_H264_METADATA_BSF 0 | ||
| 732 | +%define CONFIG_H264_MP4TOANNEXB_BSF 0 | ||
| 733 | +%define CONFIG_H264_REDUNDANT_PPS_BSF 0 | ||
| 734 | +%define CONFIG_HAPQA_EXTRACT_BSF 0 | ||
| 735 | +%define CONFIG_HEVC_METADATA_BSF 0 | ||
| 736 | +%define CONFIG_HEVC_MP4TOANNEXB_BSF 0 | ||
| 737 | +%define CONFIG_IMX_DUMP_HEADER_BSF 0 | ||
| 738 | +%define CONFIG_MJPEG2JPEG_BSF 0 | ||
| 739 | +%define CONFIG_MJPEGA_DUMP_HEADER_BSF 0 | ||
| 740 | +%define CONFIG_MP3_HEADER_DECOMPRESS_BSF 0 | ||
| 741 | +%define CONFIG_MPEG2_METADATA_BSF 0 | ||
| 742 | +%define CONFIG_MPEG4_UNPACK_BFRAMES_BSF 0 | ||
| 743 | +%define CONFIG_MOV2TEXTSUB_BSF 0 | ||
| 744 | +%define CONFIG_NOISE_BSF 0 | ||
| 745 | +%define CONFIG_NULL_BSF 0 | ||
| 746 | +%define CONFIG_OPUS_METADATA_BSF 0 | ||
| 747 | +%define CONFIG_PCM_RECHUNK_BSF 0 | ||
| 748 | +%define CONFIG_PRORES_METADATA_BSF 0 | ||
| 749 | +%define CONFIG_REMOVE_EXTRADATA_BSF 0 | ||
| 750 | +%define CONFIG_SETTS_BSF 0 | ||
| 751 | +%define CONFIG_TEXT2MOVSUB_BSF 0 | ||
| 752 | +%define CONFIG_TRACE_HEADERS_BSF 0 | ||
| 753 | +%define CONFIG_TRUEHD_CORE_BSF 0 | ||
| 754 | +%define CONFIG_VP9_METADATA_BSF 0 | ||
| 755 | +%define CONFIG_VP9_RAW_REORDER_BSF 0 | ||
| 756 | +%define CONFIG_VP9_SUPERFRAME_BSF 0 | ||
| 757 | +%define CONFIG_VP9_SUPERFRAME_SPLIT_BSF 0 | ||
| 758 | +%define CONFIG_AASC_DECODER 0 | ||
| 759 | +%define CONFIG_AIC_DECODER 0 | ||
| 760 | +%define CONFIG_ALIAS_PIX_DECODER 0 | ||
| 761 | +%define CONFIG_AGM_DECODER 0 | ||
| 762 | +%define CONFIG_AMV_DECODER 0 | ||
| 763 | +%define CONFIG_ANM_DECODER 0 | ||
| 764 | +%define CONFIG_ANSI_DECODER 0 | ||
| 765 | +%define CONFIG_APNG_DECODER 0 | ||
| 766 | +%define CONFIG_ARBC_DECODER 0 | ||
| 767 | +%define CONFIG_ARGO_DECODER 0 | ||
| 768 | +%define CONFIG_ASV1_DECODER 0 | ||
| 769 | +%define CONFIG_ASV2_DECODER 0 | ||
| 770 | +%define CONFIG_AURA_DECODER 0 | ||
| 771 | +%define CONFIG_AURA2_DECODER 0 | ||
| 772 | +%define CONFIG_AVRP_DECODER 0 | ||
| 773 | +%define CONFIG_AVRN_DECODER 0 | ||
| 774 | +%define CONFIG_AVS_DECODER 0 | ||
| 775 | +%define CONFIG_AVUI_DECODER 0 | ||
| 776 | +%define CONFIG_AYUV_DECODER 0 | ||
| 777 | +%define CONFIG_BETHSOFTVID_DECODER 0 | ||
| 778 | +%define CONFIG_BFI_DECODER 0 | ||
| 779 | +%define CONFIG_BINK_DECODER 0 | ||
| 780 | +%define CONFIG_BITPACKED_DECODER 0 | ||
| 781 | +%define CONFIG_BMP_DECODER 0 | ||
| 782 | +%define CONFIG_BMV_VIDEO_DECODER 0 | ||
| 783 | +%define CONFIG_BRENDER_PIX_DECODER 0 | ||
| 784 | +%define CONFIG_C93_DECODER 0 | ||
| 785 | +%define CONFIG_CAVS_DECODER 0 | ||
| 786 | +%define CONFIG_CDGRAPHICS_DECODER 0 | ||
| 787 | +%define CONFIG_CDTOONS_DECODER 0 | ||
| 788 | +%define CONFIG_CDXL_DECODER 0 | ||
| 789 | +%define CONFIG_CFHD_DECODER 0 | ||
| 790 | +%define CONFIG_CINEPAK_DECODER 0 | ||
| 791 | +%define CONFIG_CLEARVIDEO_DECODER 0 | ||
| 792 | +%define CONFIG_CLJR_DECODER 0 | ||
| 793 | +%define CONFIG_CLLC_DECODER 0 | ||
| 794 | +%define CONFIG_COMFORTNOISE_DECODER 0 | ||
| 795 | +%define CONFIG_CPIA_DECODER 0 | ||
| 796 | +%define CONFIG_CRI_DECODER 0 | ||
| 797 | +%define CONFIG_CSCD_DECODER 0 | ||
| 798 | +%define CONFIG_CYUV_DECODER 0 | ||
| 799 | +%define CONFIG_DDS_DECODER 0 | ||
| 800 | +%define CONFIG_DFA_DECODER 0 | ||
| 801 | +%define CONFIG_DIRAC_DECODER 0 | ||
| 802 | +%define CONFIG_DNXHD_DECODER 0 | ||
| 803 | +%define CONFIG_DPX_DECODER 0 | ||
| 804 | +%define CONFIG_DSICINVIDEO_DECODER 0 | ||
| 805 | +%define CONFIG_DVAUDIO_DECODER 0 | ||
| 806 | +%define CONFIG_DVVIDEO_DECODER 0 | ||
| 807 | +%define CONFIG_DXA_DECODER 0 | ||
| 808 | +%define CONFIG_DXTORY_DECODER 0 | ||
| 809 | +%define CONFIG_DXV_DECODER 0 | ||
| 810 | +%define CONFIG_EACMV_DECODER 0 | ||
| 811 | +%define CONFIG_EAMAD_DECODER 0 | ||
| 812 | +%define CONFIG_EATGQ_DECODER 0 | ||
| 813 | +%define CONFIG_EATGV_DECODER 0 | ||
| 814 | +%define CONFIG_EATQI_DECODER 0 | ||
| 815 | +%define CONFIG_EIGHTBPS_DECODER 0 | ||
| 816 | +%define CONFIG_EIGHTSVX_EXP_DECODER 0 | ||
| 817 | +%define CONFIG_EIGHTSVX_FIB_DECODER 0 | ||
| 818 | +%define CONFIG_ESCAPE124_DECODER 0 | ||
| 819 | +%define CONFIG_ESCAPE130_DECODER 0 | ||
| 820 | +%define CONFIG_EXR_DECODER 0 | ||
| 821 | +%define CONFIG_FFV1_DECODER 0 | ||
| 822 | +%define CONFIG_FFVHUFF_DECODER 0 | ||
| 823 | +%define CONFIG_FIC_DECODER 0 | ||
| 824 | +%define CONFIG_FITS_DECODER 0 | ||
| 825 | +%define CONFIG_FLASHSV_DECODER 0 | ||
| 826 | +%define CONFIG_FLASHSV2_DECODER 0 | ||
| 827 | +%define CONFIG_FLIC_DECODER 0 | ||
| 828 | +%define CONFIG_FLV_DECODER 0 | ||
| 829 | +%define CONFIG_FMVC_DECODER 0 | ||
| 830 | +%define CONFIG_FOURXM_DECODER 0 | ||
| 831 | +%define CONFIG_FRAPS_DECODER 0 | ||
| 832 | +%define CONFIG_FRWU_DECODER 0 | ||
| 833 | +%define CONFIG_G2M_DECODER 0 | ||
| 834 | +%define CONFIG_GDV_DECODER 0 | ||
| 835 | +%define CONFIG_GEM_DECODER 0 | ||
| 836 | +%define CONFIG_GIF_DECODER 0 | ||
| 837 | +%define CONFIG_H261_DECODER 0 | ||
| 838 | +%define CONFIG_H263_DECODER 0 | ||
| 839 | +%define CONFIG_H263I_DECODER 0 | ||
| 840 | +%define CONFIG_H263P_DECODER 0 | ||
| 841 | +%define CONFIG_H263_V4L2M2M_DECODER 0 | ||
| 842 | +%define CONFIG_H264_DECODER 1 | ||
| 843 | +%define CONFIG_H264_CRYSTALHD_DECODER 0 | ||
| 844 | +%define CONFIG_H264_V4L2M2M_DECODER 0 | ||
| 845 | +%define CONFIG_H264_MEDIACODEC_DECODER 0 | ||
| 846 | +%define CONFIG_H264_MMAL_DECODER 0 | ||
| 847 | +%define CONFIG_H264_QSV_DECODER 0 | ||
| 848 | +%define CONFIG_H264_RKMPP_DECODER 0 | ||
| 849 | +%define CONFIG_HAP_DECODER 0 | ||
| 850 | +%define CONFIG_HEVC_DECODER 0 | ||
| 851 | +%define CONFIG_HEVC_QSV_DECODER 0 | ||
| 852 | +%define CONFIG_HEVC_RKMPP_DECODER 0 | ||
| 853 | +%define CONFIG_HEVC_V4L2M2M_DECODER 0 | ||
| 854 | +%define CONFIG_HNM4_VIDEO_DECODER 0 | ||
| 855 | +%define CONFIG_HQ_HQA_DECODER 0 | ||
| 856 | +%define CONFIG_HQX_DECODER 0 | ||
| 857 | +%define CONFIG_HUFFYUV_DECODER 0 | ||
| 858 | +%define CONFIG_HYMT_DECODER 0 | ||
| 859 | +%define CONFIG_IDCIN_DECODER 0 | ||
| 860 | +%define CONFIG_IFF_ILBM_DECODER 0 | ||
| 861 | +%define CONFIG_IMM4_DECODER 0 | ||
| 862 | +%define CONFIG_IMM5_DECODER 0 | ||
| 863 | +%define CONFIG_INDEO2_DECODER 0 | ||
| 864 | +%define CONFIG_INDEO3_DECODER 0 | ||
| 865 | +%define CONFIG_INDEO4_DECODER 0 | ||
| 866 | +%define CONFIG_INDEO5_DECODER 0 | ||
| 867 | +%define CONFIG_INTERPLAY_VIDEO_DECODER 0 | ||
| 868 | +%define CONFIG_IPU_DECODER 0 | ||
| 869 | +%define CONFIG_JPEG2000_DECODER 0 | ||
| 870 | +%define CONFIG_JPEGLS_DECODER 0 | ||
| 871 | +%define CONFIG_JV_DECODER 0 | ||
| 872 | +%define CONFIG_KGV1_DECODER 0 | ||
| 873 | +%define CONFIG_KMVC_DECODER 0 | ||
| 874 | +%define CONFIG_LAGARITH_DECODER 0 | ||
| 875 | +%define CONFIG_LOCO_DECODER 0 | ||
| 876 | +%define CONFIG_LSCR_DECODER 0 | ||
| 877 | +%define CONFIG_M101_DECODER 0 | ||
| 878 | +%define CONFIG_MAGICYUV_DECODER 0 | ||
| 879 | +%define CONFIG_MDEC_DECODER 0 | ||
| 880 | +%define CONFIG_MIMIC_DECODER 0 | ||
| 881 | +%define CONFIG_MJPEG_DECODER 0 | ||
| 882 | +%define CONFIG_MJPEGB_DECODER 0 | ||
| 883 | +%define CONFIG_MMVIDEO_DECODER 0 | ||
| 884 | +%define CONFIG_MOBICLIP_DECODER 0 | ||
| 885 | +%define CONFIG_MOTIONPIXELS_DECODER 0 | ||
| 886 | +%define CONFIG_MPEG1VIDEO_DECODER 0 | ||
| 887 | +%define CONFIG_MPEG2VIDEO_DECODER 0 | ||
| 888 | +%define CONFIG_MPEG4_DECODER 0 | ||
| 889 | +%define CONFIG_MPEG4_CRYSTALHD_DECODER 0 | ||
| 890 | +%define CONFIG_MPEG4_V4L2M2M_DECODER 0 | ||
| 891 | +%define CONFIG_MPEG4_MMAL_DECODER 0 | ||
| 892 | +%define CONFIG_MPEGVIDEO_DECODER 0 | ||
| 893 | +%define CONFIG_MPEG1_V4L2M2M_DECODER 0 | ||
| 894 | +%define CONFIG_MPEG2_MMAL_DECODER 0 | ||
| 895 | +%define CONFIG_MPEG2_CRYSTALHD_DECODER 0 | ||
| 896 | +%define CONFIG_MPEG2_V4L2M2M_DECODER 0 | ||
| 897 | +%define CONFIG_MPEG2_QSV_DECODER 0 | ||
| 898 | +%define CONFIG_MPEG2_MEDIACODEC_DECODER 0 | ||
| 899 | +%define CONFIG_MSA1_DECODER 0 | ||
| 900 | +%define CONFIG_MSCC_DECODER 0 | ||
| 901 | +%define CONFIG_MSMPEG4V1_DECODER 0 | ||
| 902 | +%define CONFIG_MSMPEG4V2_DECODER 0 | ||
| 903 | +%define CONFIG_MSMPEG4V3_DECODER 0 | ||
| 904 | +%define CONFIG_MSMPEG4_CRYSTALHD_DECODER 0 | ||
| 905 | +%define CONFIG_MSP2_DECODER 0 | ||
| 906 | +%define CONFIG_MSRLE_DECODER 0 | ||
| 907 | +%define CONFIG_MSS1_DECODER 0 | ||
| 908 | +%define CONFIG_MSS2_DECODER 0 | ||
| 909 | +%define CONFIG_MSVIDEO1_DECODER 0 | ||
| 910 | +%define CONFIG_MSZH_DECODER 0 | ||
| 911 | +%define CONFIG_MTS2_DECODER 0 | ||
| 912 | +%define CONFIG_MV30_DECODER 0 | ||
| 913 | +%define CONFIG_MVC1_DECODER 0 | ||
| 914 | +%define CONFIG_MVC2_DECODER 0 | ||
| 915 | +%define CONFIG_MVDV_DECODER 0 | ||
| 916 | +%define CONFIG_MVHA_DECODER 0 | ||
| 917 | +%define CONFIG_MWSC_DECODER 0 | ||
| 918 | +%define CONFIG_MXPEG_DECODER 0 | ||
| 919 | +%define CONFIG_NOTCHLC_DECODER 0 | ||
| 920 | +%define CONFIG_NUV_DECODER 0 | ||
| 921 | +%define CONFIG_PAF_VIDEO_DECODER 0 | ||
| 922 | +%define CONFIG_PAM_DECODER 0 | ||
| 923 | +%define CONFIG_PBM_DECODER 0 | ||
| 924 | +%define CONFIG_PCX_DECODER 0 | ||
| 925 | +%define CONFIG_PFM_DECODER 0 | ||
| 926 | +%define CONFIG_PGM_DECODER 0 | ||
| 927 | +%define CONFIG_PGMYUV_DECODER 0 | ||
| 928 | +%define CONFIG_PGX_DECODER 0 | ||
| 929 | +%define CONFIG_PHOTOCD_DECODER 0 | ||
| 930 | +%define CONFIG_PICTOR_DECODER 0 | ||
| 931 | +%define CONFIG_PIXLET_DECODER 0 | ||
| 932 | +%define CONFIG_PNG_DECODER 0 | ||
| 933 | +%define CONFIG_PPM_DECODER 0 | ||
| 934 | +%define CONFIG_PRORES_DECODER 0 | ||
| 935 | +%define CONFIG_PROSUMER_DECODER 0 | ||
| 936 | +%define CONFIG_PSD_DECODER 0 | ||
| 937 | +%define CONFIG_PTX_DECODER 0 | ||
| 938 | +%define CONFIG_QDRAW_DECODER 0 | ||
| 939 | +%define CONFIG_QPEG_DECODER 0 | ||
| 940 | +%define CONFIG_QTRLE_DECODER 0 | ||
| 941 | +%define CONFIG_R10K_DECODER 0 | ||
| 942 | +%define CONFIG_R210_DECODER 0 | ||
| 943 | +%define CONFIG_RASC_DECODER 0 | ||
| 944 | +%define CONFIG_RAWVIDEO_DECODER 0 | ||
| 945 | +%define CONFIG_RL2_DECODER 0 | ||
| 946 | +%define CONFIG_ROQ_DECODER 0 | ||
| 947 | +%define CONFIG_RPZA_DECODER 0 | ||
| 948 | +%define CONFIG_RSCC_DECODER 0 | ||
| 949 | +%define CONFIG_RV10_DECODER 0 | ||
| 950 | +%define CONFIG_RV20_DECODER 0 | ||
| 951 | +%define CONFIG_RV30_DECODER 0 | ||
| 952 | +%define CONFIG_RV40_DECODER 0 | ||
| 953 | +%define CONFIG_S302M_DECODER 0 | ||
| 954 | +%define CONFIG_SANM_DECODER 0 | ||
| 955 | +%define CONFIG_SCPR_DECODER 0 | ||
| 956 | +%define CONFIG_SCREENPRESSO_DECODER 0 | ||
| 957 | +%define CONFIG_SGA_DECODER 0 | ||
| 958 | +%define CONFIG_SGI_DECODER 0 | ||
| 959 | +%define CONFIG_SGIRLE_DECODER 0 | ||
| 960 | +%define CONFIG_SHEERVIDEO_DECODER 0 | ||
| 961 | +%define CONFIG_SIMBIOSIS_IMX_DECODER 0 | ||
| 962 | +%define CONFIG_SMACKER_DECODER 0 | ||
| 963 | +%define CONFIG_SMC_DECODER 0 | ||
| 964 | +%define CONFIG_SMVJPEG_DECODER 0 | ||
| 965 | +%define CONFIG_SNOW_DECODER 0 | ||
| 966 | +%define CONFIG_SP5X_DECODER 0 | ||
| 967 | +%define CONFIG_SPEEDHQ_DECODER 0 | ||
| 968 | +%define CONFIG_SPEEX_DECODER 0 | ||
| 969 | +%define CONFIG_SRGC_DECODER 0 | ||
| 970 | +%define CONFIG_SUNRAST_DECODER 0 | ||
| 971 | +%define CONFIG_SVQ1_DECODER 0 | ||
| 972 | +%define CONFIG_SVQ3_DECODER 0 | ||
| 973 | +%define CONFIG_TARGA_DECODER 0 | ||
| 974 | +%define CONFIG_TARGA_Y216_DECODER 0 | ||
| 975 | +%define CONFIG_TDSC_DECODER 0 | ||
| 976 | +%define CONFIG_THEORA_DECODER 1 | ||
| 977 | +%define CONFIG_THP_DECODER 0 | ||
| 978 | +%define CONFIG_TIERTEXSEQVIDEO_DECODER 0 | ||
| 979 | +%define CONFIG_TIFF_DECODER 0 | ||
| 980 | +%define CONFIG_TMV_DECODER 0 | ||
| 981 | +%define CONFIG_TRUEMOTION1_DECODER 0 | ||
| 982 | +%define CONFIG_TRUEMOTION2_DECODER 0 | ||
| 983 | +%define CONFIG_TRUEMOTION2RT_DECODER 0 | ||
| 984 | +%define CONFIG_TSCC_DECODER 0 | ||
| 985 | +%define CONFIG_TSCC2_DECODER 0 | ||
| 986 | +%define CONFIG_TXD_DECODER 0 | ||
| 987 | +%define CONFIG_ULTI_DECODER 0 | ||
| 988 | +%define CONFIG_UTVIDEO_DECODER 0 | ||
| 989 | +%define CONFIG_V210_DECODER 0 | ||
| 990 | +%define CONFIG_V210X_DECODER 0 | ||
| 991 | +%define CONFIG_V308_DECODER 0 | ||
| 992 | +%define CONFIG_V408_DECODER 0 | ||
| 993 | +%define CONFIG_V410_DECODER 0 | ||
| 994 | +%define CONFIG_VB_DECODER 0 | ||
| 995 | +%define CONFIG_VBLE_DECODER 0 | ||
| 996 | +%define CONFIG_VC1_DECODER 0 | ||
| 997 | +%define CONFIG_VC1_CRYSTALHD_DECODER 0 | ||
| 998 | +%define CONFIG_VC1IMAGE_DECODER 0 | ||
| 999 | +%define CONFIG_VC1_MMAL_DECODER 0 | ||
| 1000 | +%define CONFIG_VC1_QSV_DECODER 0 | ||
| 1001 | +%define CONFIG_VC1_V4L2M2M_DECODER 0 | ||
| 1002 | +%define CONFIG_VCR1_DECODER 0 | ||
| 1003 | +%define CONFIG_VMDVIDEO_DECODER 0 | ||
| 1004 | +%define CONFIG_VMNC_DECODER 0 | ||
| 1005 | +%define CONFIG_VP3_DECODER 1 | ||
| 1006 | +%define CONFIG_VP4_DECODER 0 | ||
| 1007 | +%define CONFIG_VP5_DECODER 0 | ||
| 1008 | +%define CONFIG_VP6_DECODER 0 | ||
| 1009 | +%define CONFIG_VP6A_DECODER 0 | ||
| 1010 | +%define CONFIG_VP6F_DECODER 0 | ||
| 1011 | +%define CONFIG_VP7_DECODER 0 | ||
| 1012 | +%define CONFIG_VP8_DECODER 1 | ||
| 1013 | +%define CONFIG_VP8_RKMPP_DECODER 0 | ||
| 1014 | +%define CONFIG_VP8_V4L2M2M_DECODER 0 | ||
| 1015 | +%define CONFIG_VP9_DECODER 0 | ||
| 1016 | +%define CONFIG_VP9_RKMPP_DECODER 0 | ||
| 1017 | +%define CONFIG_VP9_V4L2M2M_DECODER 0 | ||
| 1018 | +%define CONFIG_VQA_DECODER 0 | ||
| 1019 | +%define CONFIG_WEBP_DECODER 0 | ||
| 1020 | +%define CONFIG_WCMV_DECODER 0 | ||
| 1021 | +%define CONFIG_WRAPPED_AVFRAME_DECODER 0 | ||
| 1022 | +%define CONFIG_WMV1_DECODER 0 | ||
| 1023 | +%define CONFIG_WMV2_DECODER 0 | ||
| 1024 | +%define CONFIG_WMV3_DECODER 0 | ||
| 1025 | +%define CONFIG_WMV3_CRYSTALHD_DECODER 0 | ||
| 1026 | +%define CONFIG_WMV3IMAGE_DECODER 0 | ||
| 1027 | +%define CONFIG_WNV1_DECODER 0 | ||
| 1028 | +%define CONFIG_XAN_WC3_DECODER 0 | ||
| 1029 | +%define CONFIG_XAN_WC4_DECODER 0 | ||
| 1030 | +%define CONFIG_XBM_DECODER 0 | ||
| 1031 | +%define CONFIG_XFACE_DECODER 0 | ||
| 1032 | +%define CONFIG_XL_DECODER 0 | ||
| 1033 | +%define CONFIG_XPM_DECODER 0 | ||
| 1034 | +%define CONFIG_XWD_DECODER 0 | ||
| 1035 | +%define CONFIG_Y41P_DECODER 0 | ||
| 1036 | +%define CONFIG_YLC_DECODER 0 | ||
| 1037 | +%define CONFIG_YOP_DECODER 0 | ||
| 1038 | +%define CONFIG_YUV4_DECODER 0 | ||
| 1039 | +%define CONFIG_ZERO12V_DECODER 0 | ||
| 1040 | +%define CONFIG_ZEROCODEC_DECODER 0 | ||
| 1041 | +%define CONFIG_ZLIB_DECODER 0 | ||
| 1042 | +%define CONFIG_ZMBV_DECODER 0 | ||
| 1043 | +%define CONFIG_AAC_DECODER 1 | ||
| 1044 | +%define CONFIG_AAC_FIXED_DECODER 0 | ||
| 1045 | +%define CONFIG_AAC_LATM_DECODER 0 | ||
| 1046 | +%define CONFIG_AC3_DECODER 0 | ||
| 1047 | +%define CONFIG_AC3_FIXED_DECODER 0 | ||
| 1048 | +%define CONFIG_ACELP_KELVIN_DECODER 0 | ||
| 1049 | +%define CONFIG_ALAC_DECODER 0 | ||
| 1050 | +%define CONFIG_ALS_DECODER 0 | ||
| 1051 | +%define CONFIG_AMRNB_DECODER 0 | ||
| 1052 | +%define CONFIG_AMRWB_DECODER 0 | ||
| 1053 | +%define CONFIG_APE_DECODER 0 | ||
| 1054 | +%define CONFIG_APTX_DECODER 0 | ||
| 1055 | +%define CONFIG_APTX_HD_DECODER 0 | ||
| 1056 | +%define CONFIG_ATRAC1_DECODER 0 | ||
| 1057 | +%define CONFIG_ATRAC3_DECODER 0 | ||
| 1058 | +%define CONFIG_ATRAC3AL_DECODER 0 | ||
| 1059 | +%define CONFIG_ATRAC3P_DECODER 0 | ||
| 1060 | +%define CONFIG_ATRAC3PAL_DECODER 0 | ||
| 1061 | +%define CONFIG_ATRAC9_DECODER 0 | ||
| 1062 | +%define CONFIG_BINKAUDIO_DCT_DECODER 0 | ||
| 1063 | +%define CONFIG_BINKAUDIO_RDFT_DECODER 0 | ||
| 1064 | +%define CONFIG_BMV_AUDIO_DECODER 0 | ||
| 1065 | +%define CONFIG_COOK_DECODER 0 | ||
| 1066 | +%define CONFIG_DCA_DECODER 0 | ||
| 1067 | +%define CONFIG_DOLBY_E_DECODER 0 | ||
| 1068 | +%define CONFIG_DSD_LSBF_DECODER 0 | ||
| 1069 | +%define CONFIG_DSD_MSBF_DECODER 0 | ||
| 1070 | +%define CONFIG_DSD_LSBF_PLANAR_DECODER 0 | ||
| 1071 | +%define CONFIG_DSD_MSBF_PLANAR_DECODER 0 | ||
| 1072 | +%define CONFIG_DSICINAUDIO_DECODER 0 | ||
| 1073 | +%define CONFIG_DSS_SP_DECODER 0 | ||
| 1074 | +%define CONFIG_DST_DECODER 0 | ||
| 1075 | +%define CONFIG_EAC3_DECODER 0 | ||
| 1076 | +%define CONFIG_EVRC_DECODER 0 | ||
| 1077 | +%define CONFIG_FASTAUDIO_DECODER 0 | ||
| 1078 | +%define CONFIG_FFWAVESYNTH_DECODER 0 | ||
| 1079 | +%define CONFIG_FLAC_DECODER 1 | ||
| 1080 | +%define CONFIG_G723_1_DECODER 0 | ||
| 1081 | +%define CONFIG_G729_DECODER 0 | ||
| 1082 | +%define CONFIG_GSM_DECODER 0 | ||
| 1083 | +%define CONFIG_GSM_MS_DECODER 0 | ||
| 1084 | +%define CONFIG_HCA_DECODER 0 | ||
| 1085 | +%define CONFIG_HCOM_DECODER 0 | ||
| 1086 | +%define CONFIG_IAC_DECODER 0 | ||
| 1087 | +%define CONFIG_ILBC_DECODER 0 | ||
| 1088 | +%define CONFIG_IMC_DECODER 0 | ||
| 1089 | +%define CONFIG_INTERPLAY_ACM_DECODER 0 | ||
| 1090 | +%define CONFIG_MACE3_DECODER 0 | ||
| 1091 | +%define CONFIG_MACE6_DECODER 0 | ||
| 1092 | +%define CONFIG_METASOUND_DECODER 0 | ||
| 1093 | +%define CONFIG_MLP_DECODER 0 | ||
| 1094 | +%define CONFIG_MP1_DECODER 0 | ||
| 1095 | +%define CONFIG_MP1FLOAT_DECODER 0 | ||
| 1096 | +%define CONFIG_MP2_DECODER 0 | ||
| 1097 | +%define CONFIG_MP2FLOAT_DECODER 0 | ||
| 1098 | +%define CONFIG_MP3FLOAT_DECODER 0 | ||
| 1099 | +%define CONFIG_MP3_DECODER 1 | ||
| 1100 | +%define CONFIG_MP3ADUFLOAT_DECODER 0 | ||
| 1101 | +%define CONFIG_MP3ADU_DECODER 0 | ||
| 1102 | +%define CONFIG_MP3ON4FLOAT_DECODER 0 | ||
| 1103 | +%define CONFIG_MP3ON4_DECODER 0 | ||
| 1104 | +%define CONFIG_MPC7_DECODER 0 | ||
| 1105 | +%define CONFIG_MPC8_DECODER 0 | ||
| 1106 | +%define CONFIG_MSNSIREN_DECODER 0 | ||
| 1107 | +%define CONFIG_NELLYMOSER_DECODER 0 | ||
| 1108 | +%define CONFIG_ON2AVC_DECODER 0 | ||
| 1109 | +%define CONFIG_OPUS_DECODER 0 | ||
| 1110 | +%define CONFIG_PAF_AUDIO_DECODER 0 | ||
| 1111 | +%define CONFIG_QCELP_DECODER 0 | ||
| 1112 | +%define CONFIG_QDM2_DECODER 0 | ||
| 1113 | +%define CONFIG_QDMC_DECODER 0 | ||
| 1114 | +%define CONFIG_RA_144_DECODER 0 | ||
| 1115 | +%define CONFIG_RA_288_DECODER 0 | ||
| 1116 | +%define CONFIG_RALF_DECODER 0 | ||
| 1117 | +%define CONFIG_SBC_DECODER 0 | ||
| 1118 | +%define CONFIG_SHORTEN_DECODER 0 | ||
| 1119 | +%define CONFIG_SIPR_DECODER 0 | ||
| 1120 | +%define CONFIG_SIREN_DECODER 0 | ||
| 1121 | +%define CONFIG_SMACKAUD_DECODER 0 | ||
| 1122 | +%define CONFIG_SONIC_DECODER 0 | ||
| 1123 | +%define CONFIG_TAK_DECODER 0 | ||
| 1124 | +%define CONFIG_TRUEHD_DECODER 0 | ||
| 1125 | +%define CONFIG_TRUESPEECH_DECODER 0 | ||
| 1126 | +%define CONFIG_TTA_DECODER 0 | ||
| 1127 | +%define CONFIG_TWINVQ_DECODER 0 | ||
| 1128 | +%define CONFIG_VMDAUDIO_DECODER 0 | ||
| 1129 | +%define CONFIG_VORBIS_DECODER 1 | ||
| 1130 | +%define CONFIG_WAVPACK_DECODER 0 | ||
| 1131 | +%define CONFIG_WMALOSSLESS_DECODER 0 | ||
| 1132 | +%define CONFIG_WMAPRO_DECODER 0 | ||
| 1133 | +%define CONFIG_WMAV1_DECODER 0 | ||
| 1134 | +%define CONFIG_WMAV2_DECODER 0 | ||
| 1135 | +%define CONFIG_WMAVOICE_DECODER 0 | ||
| 1136 | +%define CONFIG_WS_SND1_DECODER 0 | ||
| 1137 | +%define CONFIG_XMA1_DECODER 0 | ||
| 1138 | +%define CONFIG_XMA2_DECODER 0 | ||
| 1139 | +%define CONFIG_PCM_ALAW_DECODER 1 | ||
| 1140 | +%define CONFIG_PCM_BLURAY_DECODER 0 | ||
| 1141 | +%define CONFIG_PCM_DVD_DECODER 0 | ||
| 1142 | +%define CONFIG_PCM_F16LE_DECODER 0 | ||
| 1143 | +%define CONFIG_PCM_F24LE_DECODER 0 | ||
| 1144 | +%define CONFIG_PCM_F32BE_DECODER 0 | ||
| 1145 | +%define CONFIG_PCM_F32LE_DECODER 1 | ||
| 1146 | +%define CONFIG_PCM_F64BE_DECODER 0 | ||
| 1147 | +%define CONFIG_PCM_F64LE_DECODER 0 | ||
| 1148 | +%define CONFIG_PCM_LXF_DECODER 0 | ||
| 1149 | +%define CONFIG_PCM_MULAW_DECODER 1 | ||
| 1150 | +%define CONFIG_PCM_S8_DECODER 0 | ||
| 1151 | +%define CONFIG_PCM_S8_PLANAR_DECODER 0 | ||
| 1152 | +%define CONFIG_PCM_S16BE_DECODER 1 | ||
| 1153 | +%define CONFIG_PCM_S16BE_PLANAR_DECODER 0 | ||
| 1154 | +%define CONFIG_PCM_S16LE_DECODER 1 | ||
| 1155 | +%define CONFIG_PCM_S16LE_PLANAR_DECODER 0 | ||
| 1156 | +%define CONFIG_PCM_S24BE_DECODER 1 | ||
| 1157 | +%define CONFIG_PCM_S24DAUD_DECODER 0 | ||
| 1158 | +%define CONFIG_PCM_S24LE_DECODER 1 | ||
| 1159 | +%define CONFIG_PCM_S24LE_PLANAR_DECODER 0 | ||
| 1160 | +%define CONFIG_PCM_S32BE_DECODER 0 | ||
| 1161 | +%define CONFIG_PCM_S32LE_DECODER 1 | ||
| 1162 | +%define CONFIG_PCM_S32LE_PLANAR_DECODER 0 | ||
| 1163 | +%define CONFIG_PCM_S64BE_DECODER 0 | ||
| 1164 | +%define CONFIG_PCM_S64LE_DECODER 0 | ||
| 1165 | +%define CONFIG_PCM_SGA_DECODER 0 | ||
| 1166 | +%define CONFIG_PCM_U8_DECODER 1 | ||
| 1167 | +%define CONFIG_PCM_U16BE_DECODER 0 | ||
| 1168 | +%define CONFIG_PCM_U16LE_DECODER 0 | ||
| 1169 | +%define CONFIG_PCM_U24BE_DECODER 0 | ||
| 1170 | +%define CONFIG_PCM_U24LE_DECODER 0 | ||
| 1171 | +%define CONFIG_PCM_U32BE_DECODER 0 | ||
| 1172 | +%define CONFIG_PCM_U32LE_DECODER 0 | ||
| 1173 | +%define CONFIG_PCM_VIDC_DECODER 0 | ||
| 1174 | +%define CONFIG_DERF_DPCM_DECODER 0 | ||
| 1175 | +%define CONFIG_GREMLIN_DPCM_DECODER 0 | ||
| 1176 | +%define CONFIG_INTERPLAY_DPCM_DECODER 0 | ||
| 1177 | +%define CONFIG_ROQ_DPCM_DECODER 0 | ||
| 1178 | +%define CONFIG_SDX2_DPCM_DECODER 0 | ||
| 1179 | +%define CONFIG_SOL_DPCM_DECODER 0 | ||
| 1180 | +%define CONFIG_XAN_DPCM_DECODER 0 | ||
| 1181 | +%define CONFIG_ADPCM_4XM_DECODER 0 | ||
| 1182 | +%define CONFIG_ADPCM_ADX_DECODER 0 | ||
| 1183 | +%define CONFIG_ADPCM_AFC_DECODER 0 | ||
| 1184 | +%define CONFIG_ADPCM_AGM_DECODER 0 | ||
| 1185 | +%define CONFIG_ADPCM_AICA_DECODER 0 | ||
| 1186 | +%define CONFIG_ADPCM_ARGO_DECODER 0 | ||
| 1187 | +%define CONFIG_ADPCM_CT_DECODER 0 | ||
| 1188 | +%define CONFIG_ADPCM_DTK_DECODER 0 | ||
| 1189 | +%define CONFIG_ADPCM_EA_DECODER 0 | ||
| 1190 | +%define CONFIG_ADPCM_EA_MAXIS_XA_DECODER 0 | ||
| 1191 | +%define CONFIG_ADPCM_EA_R1_DECODER 0 | ||
| 1192 | +%define CONFIG_ADPCM_EA_R2_DECODER 0 | ||
| 1193 | +%define CONFIG_ADPCM_EA_R3_DECODER 0 | ||
| 1194 | +%define CONFIG_ADPCM_EA_XAS_DECODER 0 | ||
| 1195 | +%define CONFIG_ADPCM_G722_DECODER 0 | ||
| 1196 | +%define CONFIG_ADPCM_G726_DECODER 0 | ||
| 1197 | +%define CONFIG_ADPCM_G726LE_DECODER 0 | ||
| 1198 | +%define CONFIG_ADPCM_IMA_ACORN_DECODER 0 | ||
| 1199 | +%define CONFIG_ADPCM_IMA_AMV_DECODER 0 | ||
| 1200 | +%define CONFIG_ADPCM_IMA_ALP_DECODER 0 | ||
| 1201 | +%define CONFIG_ADPCM_IMA_APC_DECODER 0 | ||
| 1202 | +%define CONFIG_ADPCM_IMA_APM_DECODER 0 | ||
| 1203 | +%define CONFIG_ADPCM_IMA_CUNNING_DECODER 0 | ||
| 1204 | +%define CONFIG_ADPCM_IMA_DAT4_DECODER 0 | ||
| 1205 | +%define CONFIG_ADPCM_IMA_DK3_DECODER 0 | ||
| 1206 | +%define CONFIG_ADPCM_IMA_DK4_DECODER 0 | ||
| 1207 | +%define CONFIG_ADPCM_IMA_EA_EACS_DECODER 0 | ||
| 1208 | +%define CONFIG_ADPCM_IMA_EA_SEAD_DECODER 0 | ||
| 1209 | +%define CONFIG_ADPCM_IMA_ISS_DECODER 0 | ||
| 1210 | +%define CONFIG_ADPCM_IMA_MOFLEX_DECODER 0 | ||
| 1211 | +%define CONFIG_ADPCM_IMA_MTF_DECODER 0 | ||
| 1212 | +%define CONFIG_ADPCM_IMA_OKI_DECODER 0 | ||
| 1213 | +%define CONFIG_ADPCM_IMA_QT_DECODER 0 | ||
| 1214 | +%define CONFIG_ADPCM_IMA_RAD_DECODER 0 | ||
| 1215 | +%define CONFIG_ADPCM_IMA_SSI_DECODER 0 | ||
| 1216 | +%define CONFIG_ADPCM_IMA_SMJPEG_DECODER 0 | ||
| 1217 | +%define CONFIG_ADPCM_IMA_WAV_DECODER 0 | ||
| 1218 | +%define CONFIG_ADPCM_IMA_WS_DECODER 0 | ||
| 1219 | +%define CONFIG_ADPCM_MS_DECODER 0 | ||
| 1220 | +%define CONFIG_ADPCM_MTAF_DECODER 0 | ||
| 1221 | +%define CONFIG_ADPCM_PSX_DECODER 0 | ||
| 1222 | +%define CONFIG_ADPCM_SBPRO_2_DECODER 0 | ||
| 1223 | +%define CONFIG_ADPCM_SBPRO_3_DECODER 0 | ||
| 1224 | +%define CONFIG_ADPCM_SBPRO_4_DECODER 0 | ||
| 1225 | +%define CONFIG_ADPCM_SWF_DECODER 0 | ||
| 1226 | +%define CONFIG_ADPCM_THP_DECODER 0 | ||
| 1227 | +%define CONFIG_ADPCM_THP_LE_DECODER 0 | ||
| 1228 | +%define CONFIG_ADPCM_VIMA_DECODER 0 | ||
| 1229 | +%define CONFIG_ADPCM_XA_DECODER 0 | ||
| 1230 | +%define CONFIG_ADPCM_YAMAHA_DECODER 0 | ||
| 1231 | +%define CONFIG_ADPCM_ZORK_DECODER 0 | ||
| 1232 | +%define CONFIG_SSA_DECODER 0 | ||
| 1233 | +%define CONFIG_ASS_DECODER 0 | ||
| 1234 | +%define CONFIG_CCAPTION_DECODER 0 | ||
| 1235 | +%define CONFIG_DVBSUB_DECODER 0 | ||
| 1236 | +%define CONFIG_DVDSUB_DECODER 0 | ||
| 1237 | +%define CONFIG_JACOSUB_DECODER 0 | ||
| 1238 | +%define CONFIG_MICRODVD_DECODER 0 | ||
| 1239 | +%define CONFIG_MOVTEXT_DECODER 0 | ||
| 1240 | +%define CONFIG_MPL2_DECODER 0 | ||
| 1241 | +%define CONFIG_PGSSUB_DECODER 0 | ||
| 1242 | +%define CONFIG_PJS_DECODER 0 | ||
| 1243 | +%define CONFIG_REALTEXT_DECODER 0 | ||
| 1244 | +%define CONFIG_SAMI_DECODER 0 | ||
| 1245 | +%define CONFIG_SRT_DECODER 0 | ||
| 1246 | +%define CONFIG_STL_DECODER 0 | ||
| 1247 | +%define CONFIG_SUBRIP_DECODER 0 | ||
| 1248 | +%define CONFIG_SUBVIEWER_DECODER 0 | ||
| 1249 | +%define CONFIG_SUBVIEWER1_DECODER 0 | ||
| 1250 | +%define CONFIG_TEXT_DECODER 0 | ||
| 1251 | +%define CONFIG_VPLAYER_DECODER 0 | ||
| 1252 | +%define CONFIG_WEBVTT_DECODER 0 | ||
| 1253 | +%define CONFIG_XSUB_DECODER 0 | ||
| 1254 | +%define CONFIG_AAC_AT_DECODER 0 | ||
| 1255 | +%define CONFIG_AC3_AT_DECODER 0 | ||
| 1256 | +%define CONFIG_ADPCM_IMA_QT_AT_DECODER 0 | ||
| 1257 | +%define CONFIG_ALAC_AT_DECODER 0 | ||
| 1258 | +%define CONFIG_AMR_NB_AT_DECODER 0 | ||
| 1259 | +%define CONFIG_EAC3_AT_DECODER 0 | ||
| 1260 | +%define CONFIG_GSM_MS_AT_DECODER 0 | ||
| 1261 | +%define CONFIG_ILBC_AT_DECODER 0 | ||
| 1262 | +%define CONFIG_MP1_AT_DECODER 0 | ||
| 1263 | +%define CONFIG_MP2_AT_DECODER 0 | ||
| 1264 | +%define CONFIG_MP3_AT_DECODER 0 | ||
| 1265 | +%define CONFIG_PCM_ALAW_AT_DECODER 0 | ||
| 1266 | +%define CONFIG_PCM_MULAW_AT_DECODER 0 | ||
| 1267 | +%define CONFIG_QDMC_AT_DECODER 0 | ||
| 1268 | +%define CONFIG_QDM2_AT_DECODER 0 | ||
| 1269 | +%define CONFIG_LIBARIBB24_DECODER 0 | ||
| 1270 | +%define CONFIG_LIBCELT_DECODER 0 | ||
| 1271 | +%define CONFIG_LIBCODEC2_DECODER 0 | ||
| 1272 | +%define CONFIG_LIBDAV1D_DECODER 0 | ||
| 1273 | +%define CONFIG_LIBDAVS2_DECODER 0 | ||
| 1274 | +%define CONFIG_LIBFDK_AAC_DECODER 0 | ||
| 1275 | +%define CONFIG_LIBGSM_DECODER 0 | ||
| 1276 | +%define CONFIG_LIBGSM_MS_DECODER 0 | ||
| 1277 | +%define CONFIG_LIBILBC_DECODER 0 | ||
| 1278 | +%define CONFIG_LIBOPENCORE_AMRNB_DECODER 0 | ||
| 1279 | +%define CONFIG_LIBOPENCORE_AMRWB_DECODER 0 | ||
| 1280 | +%define CONFIG_LIBOPENJPEG_DECODER 0 | ||
| 1281 | +%define CONFIG_LIBOPUS_DECODER 1 | ||
| 1282 | +%define CONFIG_LIBRSVG_DECODER 0 | ||
| 1283 | +%define CONFIG_LIBSPEEX_DECODER 0 | ||
| 1284 | +%define CONFIG_LIBUAVS3D_DECODER 0 | ||
| 1285 | +%define CONFIG_LIBVORBIS_DECODER 0 | ||
| 1286 | +%define CONFIG_LIBVPX_VP8_DECODER 0 | ||
| 1287 | +%define CONFIG_LIBVPX_VP9_DECODER 0 | ||
| 1288 | +%define CONFIG_LIBZVBI_TELETEXT_DECODER 0 | ||
| 1289 | +%define CONFIG_BINTEXT_DECODER 0 | ||
| 1290 | +%define CONFIG_XBIN_DECODER 0 | ||
| 1291 | +%define CONFIG_IDF_DECODER 0 | ||
| 1292 | +%define CONFIG_LIBAOM_AV1_DECODER 0 | ||
| 1293 | +%define CONFIG_AV1_DECODER 0 | ||
| 1294 | +%define CONFIG_AV1_CUVID_DECODER 0 | ||
| 1295 | +%define CONFIG_AV1_QSV_DECODER 0 | ||
| 1296 | +%define CONFIG_LIBOPENH264_DECODER 0 | ||
| 1297 | +%define CONFIG_H264_CUVID_DECODER 0 | ||
| 1298 | +%define CONFIG_HEVC_CUVID_DECODER 0 | ||
| 1299 | +%define CONFIG_HEVC_MEDIACODEC_DECODER 0 | ||
| 1300 | +%define CONFIG_MJPEG_CUVID_DECODER 0 | ||
| 1301 | +%define CONFIG_MJPEG_QSV_DECODER 0 | ||
| 1302 | +%define CONFIG_MPEG1_CUVID_DECODER 0 | ||
| 1303 | +%define CONFIG_MPEG2_CUVID_DECODER 0 | ||
| 1304 | +%define CONFIG_MPEG4_CUVID_DECODER 0 | ||
| 1305 | +%define CONFIG_MPEG4_MEDIACODEC_DECODER 0 | ||
| 1306 | +%define CONFIG_VC1_CUVID_DECODER 0 | ||
| 1307 | +%define CONFIG_VP8_CUVID_DECODER 0 | ||
| 1308 | +%define CONFIG_VP8_MEDIACODEC_DECODER 0 | ||
| 1309 | +%define CONFIG_VP8_QSV_DECODER 0 | ||
| 1310 | +%define CONFIG_VP9_CUVID_DECODER 0 | ||
| 1311 | +%define CONFIG_VP9_MEDIACODEC_DECODER 0 | ||
| 1312 | +%define CONFIG_VP9_QSV_DECODER 0 | ||
| 1313 | +%define CONFIG_A64MULTI_ENCODER 0 | ||
| 1314 | +%define CONFIG_A64MULTI5_ENCODER 0 | ||
| 1315 | +%define CONFIG_ALIAS_PIX_ENCODER 0 | ||
| 1316 | +%define CONFIG_AMV_ENCODER 0 | ||
| 1317 | +%define CONFIG_APNG_ENCODER 0 | ||
| 1318 | +%define CONFIG_ASV1_ENCODER 0 | ||
| 1319 | +%define CONFIG_ASV2_ENCODER 0 | ||
| 1320 | +%define CONFIG_AVRP_ENCODER 0 | ||
| 1321 | +%define CONFIG_AVUI_ENCODER 0 | ||
| 1322 | +%define CONFIG_AYUV_ENCODER 0 | ||
| 1323 | +%define CONFIG_BITPACKED_ENCODER 0 | ||
| 1324 | +%define CONFIG_BMP_ENCODER 0 | ||
| 1325 | +%define CONFIG_CFHD_ENCODER 0 | ||
| 1326 | +%define CONFIG_CINEPAK_ENCODER 0 | ||
| 1327 | +%define CONFIG_CLJR_ENCODER 0 | ||
| 1328 | +%define CONFIG_COMFORTNOISE_ENCODER 0 | ||
| 1329 | +%define CONFIG_DNXHD_ENCODER 0 | ||
| 1330 | +%define CONFIG_DPX_ENCODER 0 | ||
| 1331 | +%define CONFIG_DVVIDEO_ENCODER 0 | ||
| 1332 | +%define CONFIG_EXR_ENCODER 0 | ||
| 1333 | +%define CONFIG_FFV1_ENCODER 0 | ||
| 1334 | +%define CONFIG_FFVHUFF_ENCODER 0 | ||
| 1335 | +%define CONFIG_FITS_ENCODER 0 | ||
| 1336 | +%define CONFIG_FLASHSV_ENCODER 0 | ||
| 1337 | +%define CONFIG_FLASHSV2_ENCODER 0 | ||
| 1338 | +%define CONFIG_FLV_ENCODER 0 | ||
| 1339 | +%define CONFIG_GIF_ENCODER 0 | ||
| 1340 | +%define CONFIG_H261_ENCODER 0 | ||
| 1341 | +%define CONFIG_H263_ENCODER 0 | ||
| 1342 | +%define CONFIG_H263P_ENCODER 0 | ||
| 1343 | +%define CONFIG_HAP_ENCODER 0 | ||
| 1344 | +%define CONFIG_HUFFYUV_ENCODER 0 | ||
| 1345 | +%define CONFIG_JPEG2000_ENCODER 0 | ||
| 1346 | +%define CONFIG_JPEGLS_ENCODER 0 | ||
| 1347 | +%define CONFIG_LJPEG_ENCODER 0 | ||
| 1348 | +%define CONFIG_MAGICYUV_ENCODER 0 | ||
| 1349 | +%define CONFIG_MJPEG_ENCODER 0 | ||
| 1350 | +%define CONFIG_MPEG1VIDEO_ENCODER 0 | ||
| 1351 | +%define CONFIG_MPEG2VIDEO_ENCODER 0 | ||
| 1352 | +%define CONFIG_MPEG4_ENCODER 0 | ||
| 1353 | +%define CONFIG_MSMPEG4V2_ENCODER 0 | ||
| 1354 | +%define CONFIG_MSMPEG4V3_ENCODER 0 | ||
| 1355 | +%define CONFIG_MSVIDEO1_ENCODER 0 | ||
| 1356 | +%define CONFIG_PAM_ENCODER 0 | ||
| 1357 | +%define CONFIG_PBM_ENCODER 0 | ||
| 1358 | +%define CONFIG_PCX_ENCODER 0 | ||
| 1359 | +%define CONFIG_PFM_ENCODER 0 | ||
| 1360 | +%define CONFIG_PGM_ENCODER 0 | ||
| 1361 | +%define CONFIG_PGMYUV_ENCODER 0 | ||
| 1362 | +%define CONFIG_PNG_ENCODER 0 | ||
| 1363 | +%define CONFIG_PPM_ENCODER 0 | ||
| 1364 | +%define CONFIG_PRORES_ENCODER 0 | ||
| 1365 | +%define CONFIG_PRORES_AW_ENCODER 0 | ||
| 1366 | +%define CONFIG_PRORES_KS_ENCODER 0 | ||
| 1367 | +%define CONFIG_QTRLE_ENCODER 0 | ||
| 1368 | +%define CONFIG_R10K_ENCODER 0 | ||
| 1369 | +%define CONFIG_R210_ENCODER 0 | ||
| 1370 | +%define CONFIG_RAWVIDEO_ENCODER 0 | ||
| 1371 | +%define CONFIG_ROQ_ENCODER 0 | ||
| 1372 | +%define CONFIG_RPZA_ENCODER 0 | ||
| 1373 | +%define CONFIG_RV10_ENCODER 0 | ||
| 1374 | +%define CONFIG_RV20_ENCODER 0 | ||
| 1375 | +%define CONFIG_S302M_ENCODER 0 | ||
| 1376 | +%define CONFIG_SGI_ENCODER 0 | ||
| 1377 | +%define CONFIG_SMC_ENCODER 0 | ||
| 1378 | +%define CONFIG_SNOW_ENCODER 0 | ||
| 1379 | +%define CONFIG_SPEEDHQ_ENCODER 0 | ||
| 1380 | +%define CONFIG_SUNRAST_ENCODER 0 | ||
| 1381 | +%define CONFIG_SVQ1_ENCODER 0 | ||
| 1382 | +%define CONFIG_TARGA_ENCODER 0 | ||
| 1383 | +%define CONFIG_TIFF_ENCODER 0 | ||
| 1384 | +%define CONFIG_UTVIDEO_ENCODER 0 | ||
| 1385 | +%define CONFIG_V210_ENCODER 0 | ||
| 1386 | +%define CONFIG_V308_ENCODER 0 | ||
| 1387 | +%define CONFIG_V408_ENCODER 0 | ||
| 1388 | +%define CONFIG_V410_ENCODER 0 | ||
| 1389 | +%define CONFIG_VC2_ENCODER 0 | ||
| 1390 | +%define CONFIG_WRAPPED_AVFRAME_ENCODER 0 | ||
| 1391 | +%define CONFIG_WMV1_ENCODER 0 | ||
| 1392 | +%define CONFIG_WMV2_ENCODER 0 | ||
| 1393 | +%define CONFIG_XBM_ENCODER 0 | ||
| 1394 | +%define CONFIG_XFACE_ENCODER 0 | ||
| 1395 | +%define CONFIG_XWD_ENCODER 0 | ||
| 1396 | +%define CONFIG_Y41P_ENCODER 0 | ||
| 1397 | +%define CONFIG_YUV4_ENCODER 0 | ||
| 1398 | +%define CONFIG_ZLIB_ENCODER 0 | ||
| 1399 | +%define CONFIG_ZMBV_ENCODER 0 | ||
| 1400 | +%define CONFIG_AAC_ENCODER 0 | ||
| 1401 | +%define CONFIG_AC3_ENCODER 0 | ||
| 1402 | +%define CONFIG_AC3_FIXED_ENCODER 0 | ||
| 1403 | +%define CONFIG_ALAC_ENCODER 0 | ||
| 1404 | +%define CONFIG_APTX_ENCODER 0 | ||
| 1405 | +%define CONFIG_APTX_HD_ENCODER 0 | ||
| 1406 | +%define CONFIG_DCA_ENCODER 0 | ||
| 1407 | +%define CONFIG_EAC3_ENCODER 0 | ||
| 1408 | +%define CONFIG_FLAC_ENCODER 0 | ||
| 1409 | +%define CONFIG_G723_1_ENCODER 0 | ||
| 1410 | +%define CONFIG_MLP_ENCODER 0 | ||
| 1411 | +%define CONFIG_MP2_ENCODER 0 | ||
| 1412 | +%define CONFIG_MP2FIXED_ENCODER 0 | ||
| 1413 | +%define CONFIG_NELLYMOSER_ENCODER 0 | ||
| 1414 | +%define CONFIG_OPUS_ENCODER 0 | ||
| 1415 | +%define CONFIG_RA_144_ENCODER 0 | ||
| 1416 | +%define CONFIG_SBC_ENCODER 0 | ||
| 1417 | +%define CONFIG_SONIC_ENCODER 0 | ||
| 1418 | +%define CONFIG_SONIC_LS_ENCODER 0 | ||
| 1419 | +%define CONFIG_TRUEHD_ENCODER 0 | ||
| 1420 | +%define CONFIG_TTA_ENCODER 0 | ||
| 1421 | +%define CONFIG_VORBIS_ENCODER 0 | ||
| 1422 | +%define CONFIG_WAVPACK_ENCODER 0 | ||
| 1423 | +%define CONFIG_WMAV1_ENCODER 0 | ||
| 1424 | +%define CONFIG_WMAV2_ENCODER 0 | ||
| 1425 | +%define CONFIG_PCM_ALAW_ENCODER 0 | ||
| 1426 | +%define CONFIG_PCM_DVD_ENCODER 0 | ||
| 1427 | +%define CONFIG_PCM_F32BE_ENCODER 0 | ||
| 1428 | +%define CONFIG_PCM_F32LE_ENCODER 0 | ||
| 1429 | +%define CONFIG_PCM_F64BE_ENCODER 0 | ||
| 1430 | +%define CONFIG_PCM_F64LE_ENCODER 0 | ||
| 1431 | +%define CONFIG_PCM_MULAW_ENCODER 0 | ||
| 1432 | +%define CONFIG_PCM_S8_ENCODER 0 | ||
| 1433 | +%define CONFIG_PCM_S8_PLANAR_ENCODER 0 | ||
| 1434 | +%define CONFIG_PCM_S16BE_ENCODER 0 | ||
| 1435 | +%define CONFIG_PCM_S16BE_PLANAR_ENCODER 0 | ||
| 1436 | +%define CONFIG_PCM_S16LE_ENCODER 0 | ||
| 1437 | +%define CONFIG_PCM_S16LE_PLANAR_ENCODER 0 | ||
| 1438 | +%define CONFIG_PCM_S24BE_ENCODER 0 | ||
| 1439 | +%define CONFIG_PCM_S24DAUD_ENCODER 0 | ||
| 1440 | +%define CONFIG_PCM_S24LE_ENCODER 0 | ||
| 1441 | +%define CONFIG_PCM_S24LE_PLANAR_ENCODER 0 | ||
| 1442 | +%define CONFIG_PCM_S32BE_ENCODER 0 | ||
| 1443 | +%define CONFIG_PCM_S32LE_ENCODER 0 | ||
| 1444 | +%define CONFIG_PCM_S32LE_PLANAR_ENCODER 0 | ||
| 1445 | +%define CONFIG_PCM_S64BE_ENCODER 0 | ||
| 1446 | +%define CONFIG_PCM_S64LE_ENCODER 0 | ||
| 1447 | +%define CONFIG_PCM_U8_ENCODER 0 | ||
| 1448 | +%define CONFIG_PCM_U16BE_ENCODER 0 | ||
| 1449 | +%define CONFIG_PCM_U16LE_ENCODER 0 | ||
| 1450 | +%define CONFIG_PCM_U24BE_ENCODER 0 | ||
| 1451 | +%define CONFIG_PCM_U24LE_ENCODER 0 | ||
| 1452 | +%define CONFIG_PCM_U32BE_ENCODER 0 | ||
| 1453 | +%define CONFIG_PCM_U32LE_ENCODER 0 | ||
| 1454 | +%define CONFIG_PCM_VIDC_ENCODER 0 | ||
| 1455 | +%define CONFIG_ROQ_DPCM_ENCODER 0 | ||
| 1456 | +%define CONFIG_ADPCM_ADX_ENCODER 0 | ||
| 1457 | +%define CONFIG_ADPCM_ARGO_ENCODER 0 | ||
| 1458 | +%define CONFIG_ADPCM_G722_ENCODER 0 | ||
| 1459 | +%define CONFIG_ADPCM_G726_ENCODER 0 | ||
| 1460 | +%define CONFIG_ADPCM_G726LE_ENCODER 0 | ||
| 1461 | +%define CONFIG_ADPCM_IMA_AMV_ENCODER 0 | ||
| 1462 | +%define CONFIG_ADPCM_IMA_ALP_ENCODER 0 | ||
| 1463 | +%define CONFIG_ADPCM_IMA_APM_ENCODER 0 | ||
| 1464 | +%define CONFIG_ADPCM_IMA_QT_ENCODER 0 | ||
| 1465 | +%define CONFIG_ADPCM_IMA_SSI_ENCODER 0 | ||
| 1466 | +%define CONFIG_ADPCM_IMA_WAV_ENCODER 0 | ||
| 1467 | +%define CONFIG_ADPCM_IMA_WS_ENCODER 0 | ||
| 1468 | +%define CONFIG_ADPCM_MS_ENCODER 0 | ||
| 1469 | +%define CONFIG_ADPCM_SWF_ENCODER 0 | ||
| 1470 | +%define CONFIG_ADPCM_YAMAHA_ENCODER 0 | ||
| 1471 | +%define CONFIG_SSA_ENCODER 0 | ||
| 1472 | +%define CONFIG_ASS_ENCODER 0 | ||
| 1473 | +%define CONFIG_DVBSUB_ENCODER 0 | ||
| 1474 | +%define CONFIG_DVDSUB_ENCODER 0 | ||
| 1475 | +%define CONFIG_MOVTEXT_ENCODER 0 | ||
| 1476 | +%define CONFIG_SRT_ENCODER 0 | ||
| 1477 | +%define CONFIG_SUBRIP_ENCODER 0 | ||
| 1478 | +%define CONFIG_TEXT_ENCODER 0 | ||
| 1479 | +%define CONFIG_TTML_ENCODER 0 | ||
| 1480 | +%define CONFIG_WEBVTT_ENCODER 0 | ||
| 1481 | +%define CONFIG_XSUB_ENCODER 0 | ||
| 1482 | +%define CONFIG_AAC_AT_ENCODER 0 | ||
| 1483 | +%define CONFIG_ALAC_AT_ENCODER 0 | ||
| 1484 | +%define CONFIG_ILBC_AT_ENCODER 0 | ||
| 1485 | +%define CONFIG_PCM_ALAW_AT_ENCODER 0 | ||
| 1486 | +%define CONFIG_PCM_MULAW_AT_ENCODER 0 | ||
| 1487 | +%define CONFIG_LIBAOM_AV1_ENCODER 0 | ||
| 1488 | +%define CONFIG_LIBCODEC2_ENCODER 0 | ||
| 1489 | +%define CONFIG_LIBFDK_AAC_ENCODER 0 | ||
| 1490 | +%define CONFIG_LIBGSM_ENCODER 0 | ||
| 1491 | +%define CONFIG_LIBGSM_MS_ENCODER 0 | ||
| 1492 | +%define CONFIG_LIBILBC_ENCODER 0 | ||
| 1493 | +%define CONFIG_LIBMP3LAME_ENCODER 0 | ||
| 1494 | +%define CONFIG_LIBOPENCORE_AMRNB_ENCODER 0 | ||
| 1495 | +%define CONFIG_LIBOPENJPEG_ENCODER 0 | ||
| 1496 | +%define CONFIG_LIBOPUS_ENCODER 0 | ||
| 1497 | +%define CONFIG_LIBRAV1E_ENCODER 0 | ||
| 1498 | +%define CONFIG_LIBSHINE_ENCODER 0 | ||
| 1499 | +%define CONFIG_LIBSPEEX_ENCODER 0 | ||
| 1500 | +%define CONFIG_LIBSVTAV1_ENCODER 0 | ||
| 1501 | +%define CONFIG_LIBTHEORA_ENCODER 0 | ||
| 1502 | +%define CONFIG_LIBTWOLAME_ENCODER 0 | ||
| 1503 | +%define CONFIG_LIBVO_AMRWBENC_ENCODER 0 | ||
| 1504 | +%define CONFIG_LIBVORBIS_ENCODER 0 | ||
| 1505 | +%define CONFIG_LIBVPX_VP8_ENCODER 0 | ||
| 1506 | +%define CONFIG_LIBVPX_VP9_ENCODER 0 | ||
| 1507 | +%define CONFIG_LIBWEBP_ANIM_ENCODER 0 | ||
| 1508 | +%define CONFIG_LIBWEBP_ENCODER 0 | ||
| 1509 | +%define CONFIG_LIBX262_ENCODER 0 | ||
| 1510 | +%define CONFIG_LIBX264_ENCODER 0 | ||
| 1511 | +%define CONFIG_LIBX264RGB_ENCODER 0 | ||
| 1512 | +%define CONFIG_LIBX265_ENCODER 0 | ||
| 1513 | +%define CONFIG_LIBXAVS_ENCODER 0 | ||
| 1514 | +%define CONFIG_LIBXAVS2_ENCODER 0 | ||
| 1515 | +%define CONFIG_LIBXVID_ENCODER 0 | ||
| 1516 | +%define CONFIG_AAC_MF_ENCODER 0 | ||
| 1517 | +%define CONFIG_AC3_MF_ENCODER 0 | ||
| 1518 | +%define CONFIG_H263_V4L2M2M_ENCODER 0 | ||
| 1519 | +%define CONFIG_LIBOPENH264_ENCODER 0 | ||
| 1520 | +%define CONFIG_H264_AMF_ENCODER 0 | ||
| 1521 | +%define CONFIG_H264_MF_ENCODER 0 | ||
| 1522 | +%define CONFIG_H264_NVENC_ENCODER 0 | ||
| 1523 | +%define CONFIG_H264_OMX_ENCODER 0 | ||
| 1524 | +%define CONFIG_H264_QSV_ENCODER 0 | ||
| 1525 | +%define CONFIG_H264_V4L2M2M_ENCODER 0 | ||
| 1526 | +%define CONFIG_H264_VAAPI_ENCODER 0 | ||
| 1527 | +%define CONFIG_H264_VIDEOTOOLBOX_ENCODER 0 | ||
| 1528 | +%define CONFIG_HEVC_AMF_ENCODER 0 | ||
| 1529 | +%define CONFIG_HEVC_MF_ENCODER 0 | ||
| 1530 | +%define CONFIG_HEVC_NVENC_ENCODER 0 | ||
| 1531 | +%define CONFIG_HEVC_QSV_ENCODER 0 | ||
| 1532 | +%define CONFIG_HEVC_V4L2M2M_ENCODER 0 | ||
| 1533 | +%define CONFIG_HEVC_VAAPI_ENCODER 0 | ||
| 1534 | +%define CONFIG_HEVC_VIDEOTOOLBOX_ENCODER 0 | ||
| 1535 | +%define CONFIG_LIBKVAZAAR_ENCODER 0 | ||
| 1536 | +%define CONFIG_MJPEG_QSV_ENCODER 0 | ||
| 1537 | +%define CONFIG_MJPEG_VAAPI_ENCODER 0 | ||
| 1538 | +%define CONFIG_MP3_MF_ENCODER 0 | ||
| 1539 | +%define CONFIG_MPEG2_QSV_ENCODER 0 | ||
| 1540 | +%define CONFIG_MPEG2_VAAPI_ENCODER 0 | ||
| 1541 | +%define CONFIG_MPEG4_OMX_ENCODER 0 | ||
| 1542 | +%define CONFIG_MPEG4_V4L2M2M_ENCODER 0 | ||
| 1543 | +%define CONFIG_PRORES_VIDEOTOOLBOX_ENCODER 0 | ||
| 1544 | +%define CONFIG_VP8_V4L2M2M_ENCODER 0 | ||
| 1545 | +%define CONFIG_VP8_VAAPI_ENCODER 0 | ||
| 1546 | +%define CONFIG_VP9_VAAPI_ENCODER 0 | ||
| 1547 | +%define CONFIG_VP9_QSV_ENCODER 0 | ||
| 1548 | +%define CONFIG_AV1_D3D11VA_HWACCEL 0 | ||
| 1549 | +%define CONFIG_AV1_D3D11VA2_HWACCEL 0 | ||
| 1550 | +%define CONFIG_AV1_DXVA2_HWACCEL 0 | ||
| 1551 | +%define CONFIG_AV1_NVDEC_HWACCEL 0 | ||
| 1552 | +%define CONFIG_AV1_VAAPI_HWACCEL 0 | ||
| 1553 | +%define CONFIG_H263_VAAPI_HWACCEL 0 | ||
| 1554 | +%define CONFIG_H263_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1555 | +%define CONFIG_H264_D3D11VA_HWACCEL 0 | ||
| 1556 | +%define CONFIG_H264_D3D11VA2_HWACCEL 0 | ||
| 1557 | +%define CONFIG_H264_DXVA2_HWACCEL 0 | ||
| 1558 | +%define CONFIG_H264_NVDEC_HWACCEL 0 | ||
| 1559 | +%define CONFIG_H264_VAAPI_HWACCEL 0 | ||
| 1560 | +%define CONFIG_H264_VDPAU_HWACCEL 0 | ||
| 1561 | +%define CONFIG_H264_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1562 | +%define CONFIG_HEVC_D3D11VA_HWACCEL 0 | ||
| 1563 | +%define CONFIG_HEVC_D3D11VA2_HWACCEL 0 | ||
| 1564 | +%define CONFIG_HEVC_DXVA2_HWACCEL 0 | ||
| 1565 | +%define CONFIG_HEVC_NVDEC_HWACCEL 0 | ||
| 1566 | +%define CONFIG_HEVC_VAAPI_HWACCEL 0 | ||
| 1567 | +%define CONFIG_HEVC_VDPAU_HWACCEL 0 | ||
| 1568 | +%define CONFIG_HEVC_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1569 | +%define CONFIG_MJPEG_NVDEC_HWACCEL 0 | ||
| 1570 | +%define CONFIG_MJPEG_VAAPI_HWACCEL 0 | ||
| 1571 | +%define CONFIG_MPEG1_NVDEC_HWACCEL 0 | ||
| 1572 | +%define CONFIG_MPEG1_VDPAU_HWACCEL 0 | ||
| 1573 | +%define CONFIG_MPEG1_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1574 | +%define CONFIG_MPEG1_XVMC_HWACCEL 0 | ||
| 1575 | +%define CONFIG_MPEG2_D3D11VA_HWACCEL 0 | ||
| 1576 | +%define CONFIG_MPEG2_D3D11VA2_HWACCEL 0 | ||
| 1577 | +%define CONFIG_MPEG2_NVDEC_HWACCEL 0 | ||
| 1578 | +%define CONFIG_MPEG2_DXVA2_HWACCEL 0 | ||
| 1579 | +%define CONFIG_MPEG2_VAAPI_HWACCEL 0 | ||
| 1580 | +%define CONFIG_MPEG2_VDPAU_HWACCEL 0 | ||
| 1581 | +%define CONFIG_MPEG2_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1582 | +%define CONFIG_MPEG2_XVMC_HWACCEL 0 | ||
| 1583 | +%define CONFIG_MPEG4_NVDEC_HWACCEL 0 | ||
| 1584 | +%define CONFIG_MPEG4_VAAPI_HWACCEL 0 | ||
| 1585 | +%define CONFIG_MPEG4_VDPAU_HWACCEL 0 | ||
| 1586 | +%define CONFIG_MPEG4_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1587 | +%define CONFIG_PRORES_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1588 | +%define CONFIG_VC1_D3D11VA_HWACCEL 0 | ||
| 1589 | +%define CONFIG_VC1_D3D11VA2_HWACCEL 0 | ||
| 1590 | +%define CONFIG_VC1_DXVA2_HWACCEL 0 | ||
| 1591 | +%define CONFIG_VC1_NVDEC_HWACCEL 0 | ||
| 1592 | +%define CONFIG_VC1_VAAPI_HWACCEL 0 | ||
| 1593 | +%define CONFIG_VC1_VDPAU_HWACCEL 0 | ||
| 1594 | +%define CONFIG_VP8_NVDEC_HWACCEL 0 | ||
| 1595 | +%define CONFIG_VP8_VAAPI_HWACCEL 0 | ||
| 1596 | +%define CONFIG_VP9_D3D11VA_HWACCEL 0 | ||
| 1597 | +%define CONFIG_VP9_D3D11VA2_HWACCEL 0 | ||
| 1598 | +%define CONFIG_VP9_DXVA2_HWACCEL 0 | ||
| 1599 | +%define CONFIG_VP9_NVDEC_HWACCEL 0 | ||
| 1600 | +%define CONFIG_VP9_VAAPI_HWACCEL 0 | ||
| 1601 | +%define CONFIG_VP9_VDPAU_HWACCEL 0 | ||
| 1602 | +%define CONFIG_VP9_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1603 | +%define CONFIG_WMV3_D3D11VA_HWACCEL 0 | ||
| 1604 | +%define CONFIG_WMV3_D3D11VA2_HWACCEL 0 | ||
| 1605 | +%define CONFIG_WMV3_DXVA2_HWACCEL 0 | ||
| 1606 | +%define CONFIG_WMV3_NVDEC_HWACCEL 0 | ||
| 1607 | +%define CONFIG_WMV3_VAAPI_HWACCEL 0 | ||
| 1608 | +%define CONFIG_WMV3_VDPAU_HWACCEL 0 | ||
| 1609 | +%define CONFIG_AAC_PARSER 1 | ||
| 1610 | +%define CONFIG_AAC_LATM_PARSER 0 | ||
| 1611 | +%define CONFIG_AC3_PARSER 0 | ||
| 1612 | +%define CONFIG_ADX_PARSER 0 | ||
| 1613 | +%define CONFIG_AMR_PARSER 0 | ||
| 1614 | +%define CONFIG_AV1_PARSER 0 | ||
| 1615 | +%define CONFIG_AVS2_PARSER 0 | ||
| 1616 | +%define CONFIG_AVS3_PARSER 0 | ||
| 1617 | +%define CONFIG_BMP_PARSER 0 | ||
| 1618 | +%define CONFIG_CAVSVIDEO_PARSER 0 | ||
| 1619 | +%define CONFIG_COOK_PARSER 0 | ||
| 1620 | +%define CONFIG_CRI_PARSER 0 | ||
| 1621 | +%define CONFIG_DCA_PARSER 0 | ||
| 1622 | +%define CONFIG_DIRAC_PARSER 0 | ||
| 1623 | +%define CONFIG_DNXHD_PARSER 0 | ||
| 1624 | +%define CONFIG_DOLBY_E_PARSER 0 | ||
| 1625 | +%define CONFIG_DPX_PARSER 0 | ||
| 1626 | +%define CONFIG_DVAUDIO_PARSER 0 | ||
| 1627 | +%define CONFIG_DVBSUB_PARSER 0 | ||
| 1628 | +%define CONFIG_DVDSUB_PARSER 0 | ||
| 1629 | +%define CONFIG_DVD_NAV_PARSER 0 | ||
| 1630 | +%define CONFIG_FLAC_PARSER 1 | ||
| 1631 | +%define CONFIG_G723_1_PARSER 0 | ||
| 1632 | +%define CONFIG_G729_PARSER 0 | ||
| 1633 | +%define CONFIG_GIF_PARSER 0 | ||
| 1634 | +%define CONFIG_GSM_PARSER 0 | ||
| 1635 | +%define CONFIG_H261_PARSER 0 | ||
| 1636 | +%define CONFIG_H263_PARSER 0 | ||
| 1637 | +%define CONFIG_H264_PARSER 1 | ||
| 1638 | +%define CONFIG_HEVC_PARSER 0 | ||
| 1639 | +%define CONFIG_IPU_PARSER 0 | ||
| 1640 | +%define CONFIG_JPEG2000_PARSER 0 | ||
| 1641 | +%define CONFIG_MJPEG_PARSER 0 | ||
| 1642 | +%define CONFIG_MLP_PARSER 0 | ||
| 1643 | +%define CONFIG_MPEG4VIDEO_PARSER 0 | ||
| 1644 | +%define CONFIG_MPEGAUDIO_PARSER 1 | ||
| 1645 | +%define CONFIG_MPEGVIDEO_PARSER 0 | ||
| 1646 | +%define CONFIG_OPUS_PARSER 1 | ||
| 1647 | +%define CONFIG_PNG_PARSER 0 | ||
| 1648 | +%define CONFIG_PNM_PARSER 0 | ||
| 1649 | +%define CONFIG_RV30_PARSER 0 | ||
| 1650 | +%define CONFIG_RV40_PARSER 0 | ||
| 1651 | +%define CONFIG_SBC_PARSER 0 | ||
| 1652 | +%define CONFIG_SIPR_PARSER 0 | ||
| 1653 | +%define CONFIG_TAK_PARSER 0 | ||
| 1654 | +%define CONFIG_VC1_PARSER 0 | ||
| 1655 | +%define CONFIG_VORBIS_PARSER 1 | ||
| 1656 | +%define CONFIG_VP3_PARSER 1 | ||
| 1657 | +%define CONFIG_VP8_PARSER 1 | ||
| 1658 | +%define CONFIG_VP9_PARSER 1 | ||
| 1659 | +%define CONFIG_WEBP_PARSER 0 | ||
| 1660 | +%define CONFIG_XBM_PARSER 0 | ||
| 1661 | +%define CONFIG_XMA_PARSER 0 | ||
| 1662 | +%define CONFIG_ALSA_INDEV 0 | ||
| 1663 | +%define CONFIG_ANDROID_CAMERA_INDEV 0 | ||
| 1664 | +%define CONFIG_AVFOUNDATION_INDEV 0 | ||
| 1665 | +%define CONFIG_BKTR_INDEV 0 | ||
| 1666 | +%define CONFIG_DECKLINK_INDEV 0 | ||
| 1667 | +%define CONFIG_DSHOW_INDEV 0 | ||
| 1668 | +%define CONFIG_FBDEV_INDEV 0 | ||
| 1669 | +%define CONFIG_GDIGRAB_INDEV 0 | ||
| 1670 | +%define CONFIG_IEC61883_INDEV 0 | ||
| 1671 | +%define CONFIG_JACK_INDEV 0 | ||
| 1672 | +%define CONFIG_KMSGRAB_INDEV 0 | ||
| 1673 | +%define CONFIG_LAVFI_INDEV 0 | ||
| 1674 | +%define CONFIG_OPENAL_INDEV 0 | ||
| 1675 | +%define CONFIG_OSS_INDEV 0 | ||
| 1676 | +%define CONFIG_PULSE_INDEV 0 | ||
| 1677 | +%define CONFIG_SNDIO_INDEV 0 | ||
| 1678 | +%define CONFIG_V4L2_INDEV 0 | ||
| 1679 | +%define CONFIG_VFWCAP_INDEV 0 | ||
| 1680 | +%define CONFIG_XCBGRAB_INDEV 0 | ||
| 1681 | +%define CONFIG_LIBCDIO_INDEV 0 | ||
| 1682 | +%define CONFIG_LIBDC1394_INDEV 0 | ||
| 1683 | +%define CONFIG_ALSA_OUTDEV 0 | ||
| 1684 | +%define CONFIG_AUDIOTOOLBOX_OUTDEV 0 | ||
| 1685 | +%define CONFIG_CACA_OUTDEV 0 | ||
| 1686 | +%define CONFIG_DECKLINK_OUTDEV 0 | ||
| 1687 | +%define CONFIG_FBDEV_OUTDEV 0 | ||
| 1688 | +%define CONFIG_OPENGL_OUTDEV 0 | ||
| 1689 | +%define CONFIG_OSS_OUTDEV 0 | ||
| 1690 | +%define CONFIG_PULSE_OUTDEV 0 | ||
| 1691 | +%define CONFIG_SDL2_OUTDEV 0 | ||
| 1692 | +%define CONFIG_SNDIO_OUTDEV 0 | ||
| 1693 | +%define CONFIG_V4L2_OUTDEV 0 | ||
| 1694 | +%define CONFIG_XV_OUTDEV 0 | ||
| 1695 | +%define CONFIG_ABENCH_FILTER 0 | ||
| 1696 | +%define CONFIG_ACOMPRESSOR_FILTER 0 | ||
| 1697 | +%define CONFIG_ACONTRAST_FILTER 0 | ||
| 1698 | +%define CONFIG_ACOPY_FILTER 0 | ||
| 1699 | +%define CONFIG_ACUE_FILTER 0 | ||
| 1700 | +%define CONFIG_ACROSSFADE_FILTER 0 | ||
| 1701 | +%define CONFIG_ACROSSOVER_FILTER 0 | ||
| 1702 | +%define CONFIG_ACRUSHER_FILTER 0 | ||
| 1703 | +%define CONFIG_ADECLICK_FILTER 0 | ||
| 1704 | +%define CONFIG_ADECLIP_FILTER 0 | ||
| 1705 | +%define CONFIG_ADECORRELATE_FILTER 0 | ||
| 1706 | +%define CONFIG_ADELAY_FILTER 0 | ||
| 1707 | +%define CONFIG_ADENORM_FILTER 0 | ||
| 1708 | +%define CONFIG_ADERIVATIVE_FILTER 0 | ||
| 1709 | +%define CONFIG_ADYNAMICEQUALIZER_FILTER 0 | ||
| 1710 | +%define CONFIG_ADYNAMICSMOOTH_FILTER 0 | ||
| 1711 | +%define CONFIG_AECHO_FILTER 0 | ||
| 1712 | +%define CONFIG_AEMPHASIS_FILTER 0 | ||
| 1713 | +%define CONFIG_AEVAL_FILTER 0 | ||
| 1714 | +%define CONFIG_AEXCITER_FILTER 0 | ||
| 1715 | +%define CONFIG_AFADE_FILTER 0 | ||
| 1716 | +%define CONFIG_AFFTDN_FILTER 0 | ||
| 1717 | +%define CONFIG_AFFTFILT_FILTER 0 | ||
| 1718 | +%define CONFIG_AFIR_FILTER 0 | ||
| 1719 | +%define CONFIG_AFORMAT_FILTER 0 | ||
| 1720 | +%define CONFIG_AFREQSHIFT_FILTER 0 | ||
| 1721 | +%define CONFIG_AFWTDN_FILTER 0 | ||
| 1722 | +%define CONFIG_AGATE_FILTER 0 | ||
| 1723 | +%define CONFIG_AIIR_FILTER 0 | ||
| 1724 | +%define CONFIG_AINTEGRAL_FILTER 0 | ||
| 1725 | +%define CONFIG_AINTERLEAVE_FILTER 0 | ||
| 1726 | +%define CONFIG_ALATENCY_FILTER 0 | ||
| 1727 | +%define CONFIG_ALIMITER_FILTER 0 | ||
| 1728 | +%define CONFIG_ALLPASS_FILTER 0 | ||
| 1729 | +%define CONFIG_ALOOP_FILTER 0 | ||
| 1730 | +%define CONFIG_AMERGE_FILTER 0 | ||
| 1731 | +%define CONFIG_AMETADATA_FILTER 0 | ||
| 1732 | +%define CONFIG_AMIX_FILTER 0 | ||
| 1733 | +%define CONFIG_AMULTIPLY_FILTER 0 | ||
| 1734 | +%define CONFIG_ANEQUALIZER_FILTER 0 | ||
| 1735 | +%define CONFIG_ANLMDN_FILTER 0 | ||
| 1736 | +%define CONFIG_ANLMF_FILTER 0 | ||
| 1737 | +%define CONFIG_ANLMS_FILTER 0 | ||
| 1738 | +%define CONFIG_ANULL_FILTER 0 | ||
| 1739 | +%define CONFIG_APAD_FILTER 0 | ||
| 1740 | +%define CONFIG_APERMS_FILTER 0 | ||
| 1741 | +%define CONFIG_APHASER_FILTER 0 | ||
| 1742 | +%define CONFIG_APHASESHIFT_FILTER 0 | ||
| 1743 | +%define CONFIG_APSYCLIP_FILTER 0 | ||
| 1744 | +%define CONFIG_APULSATOR_FILTER 0 | ||
| 1745 | +%define CONFIG_AREALTIME_FILTER 0 | ||
| 1746 | +%define CONFIG_ARESAMPLE_FILTER 0 | ||
| 1747 | +%define CONFIG_AREVERSE_FILTER 0 | ||
| 1748 | +%define CONFIG_ARNNDN_FILTER 0 | ||
| 1749 | +%define CONFIG_ASDR_FILTER 0 | ||
| 1750 | +%define CONFIG_ASEGMENT_FILTER 0 | ||
| 1751 | +%define CONFIG_ASELECT_FILTER 0 | ||
| 1752 | +%define CONFIG_ASENDCMD_FILTER 0 | ||
| 1753 | +%define CONFIG_ASETNSAMPLES_FILTER 0 | ||
| 1754 | +%define CONFIG_ASETPTS_FILTER 0 | ||
| 1755 | +%define CONFIG_ASETRATE_FILTER 0 | ||
| 1756 | +%define CONFIG_ASETTB_FILTER 0 | ||
| 1757 | +%define CONFIG_ASHOWINFO_FILTER 0 | ||
| 1758 | +%define CONFIG_ASIDEDATA_FILTER 0 | ||
| 1759 | +%define CONFIG_ASOFTCLIP_FILTER 0 | ||
| 1760 | +%define CONFIG_ASPECTRALSTATS_FILTER 0 | ||
| 1761 | +%define CONFIG_ASPLIT_FILTER 0 | ||
| 1762 | +%define CONFIG_ASR_FILTER 0 | ||
| 1763 | +%define CONFIG_ASTATS_FILTER 0 | ||
| 1764 | +%define CONFIG_ASTREAMSELECT_FILTER 0 | ||
| 1765 | +%define CONFIG_ASUBBOOST_FILTER 0 | ||
| 1766 | +%define CONFIG_ASUBCUT_FILTER 0 | ||
| 1767 | +%define CONFIG_ASUPERCUT_FILTER 0 | ||
| 1768 | +%define CONFIG_ASUPERPASS_FILTER 0 | ||
| 1769 | +%define CONFIG_ASUPERSTOP_FILTER 0 | ||
| 1770 | +%define CONFIG_ATEMPO_FILTER 0 | ||
| 1771 | +%define CONFIG_ATILT_FILTER 0 | ||
| 1772 | +%define CONFIG_ATRIM_FILTER 0 | ||
| 1773 | +%define CONFIG_AXCORRELATE_FILTER 0 | ||
| 1774 | +%define CONFIG_AZMQ_FILTER 0 | ||
| 1775 | +%define CONFIG_BANDPASS_FILTER 0 | ||
| 1776 | +%define CONFIG_BANDREJECT_FILTER 0 | ||
| 1777 | +%define CONFIG_BASS_FILTER 0 | ||
| 1778 | +%define CONFIG_BIQUAD_FILTER 0 | ||
| 1779 | +%define CONFIG_BS2B_FILTER 0 | ||
| 1780 | +%define CONFIG_CHANNELMAP_FILTER 0 | ||
| 1781 | +%define CONFIG_CHANNELSPLIT_FILTER 0 | ||
| 1782 | +%define CONFIG_CHORUS_FILTER 0 | ||
| 1783 | +%define CONFIG_COMPAND_FILTER 0 | ||
| 1784 | +%define CONFIG_COMPENSATIONDELAY_FILTER 0 | ||
| 1785 | +%define CONFIG_CROSSFEED_FILTER 0 | ||
| 1786 | +%define CONFIG_CRYSTALIZER_FILTER 0 | ||
| 1787 | +%define CONFIG_DCSHIFT_FILTER 0 | ||
| 1788 | +%define CONFIG_DEESSER_FILTER 0 | ||
| 1789 | +%define CONFIG_DRMETER_FILTER 0 | ||
| 1790 | +%define CONFIG_DYNAUDNORM_FILTER 0 | ||
| 1791 | +%define CONFIG_EARWAX_FILTER 0 | ||
| 1792 | +%define CONFIG_EBUR128_FILTER 0 | ||
| 1793 | +%define CONFIG_EQUALIZER_FILTER 0 | ||
| 1794 | +%define CONFIG_EXTRASTEREO_FILTER 0 | ||
| 1795 | +%define CONFIG_FIREQUALIZER_FILTER 0 | ||
| 1796 | +%define CONFIG_FLANGER_FILTER 0 | ||
| 1797 | +%define CONFIG_HAAS_FILTER 0 | ||
| 1798 | +%define CONFIG_HDCD_FILTER 0 | ||
| 1799 | +%define CONFIG_HEADPHONE_FILTER 0 | ||
| 1800 | +%define CONFIG_HIGHPASS_FILTER 0 | ||
| 1801 | +%define CONFIG_HIGHSHELF_FILTER 0 | ||
| 1802 | +%define CONFIG_JOIN_FILTER 0 | ||
| 1803 | +%define CONFIG_LADSPA_FILTER 0 | ||
| 1804 | +%define CONFIG_LOUDNORM_FILTER 0 | ||
| 1805 | +%define CONFIG_LOWPASS_FILTER 0 | ||
| 1806 | +%define CONFIG_LOWSHELF_FILTER 0 | ||
| 1807 | +%define CONFIG_LV2_FILTER 0 | ||
| 1808 | +%define CONFIG_MCOMPAND_FILTER 0 | ||
| 1809 | +%define CONFIG_PAN_FILTER 0 | ||
| 1810 | +%define CONFIG_REPLAYGAIN_FILTER 0 | ||
| 1811 | +%define CONFIG_RUBBERBAND_FILTER 0 | ||
| 1812 | +%define CONFIG_SIDECHAINCOMPRESS_FILTER 0 | ||
| 1813 | +%define CONFIG_SIDECHAINGATE_FILTER 0 | ||
| 1814 | +%define CONFIG_SILENCEDETECT_FILTER 0 | ||
| 1815 | +%define CONFIG_SILENCEREMOVE_FILTER 0 | ||
| 1816 | +%define CONFIG_SOFALIZER_FILTER 0 | ||
| 1817 | +%define CONFIG_SPEECHNORM_FILTER 0 | ||
| 1818 | +%define CONFIG_STEREOTOOLS_FILTER 0 | ||
| 1819 | +%define CONFIG_STEREOWIDEN_FILTER 0 | ||
| 1820 | +%define CONFIG_SUPEREQUALIZER_FILTER 0 | ||
| 1821 | +%define CONFIG_SURROUND_FILTER 0 | ||
| 1822 | +%define CONFIG_TREBLE_FILTER 0 | ||
| 1823 | +%define CONFIG_TREMOLO_FILTER 0 | ||
| 1824 | +%define CONFIG_VIBRATO_FILTER 0 | ||
| 1825 | +%define CONFIG_VOLUME_FILTER 0 | ||
| 1826 | +%define CONFIG_VOLUMEDETECT_FILTER 0 | ||
| 1827 | +%define CONFIG_AEVALSRC_FILTER 0 | ||
| 1828 | +%define CONFIG_AFIRSRC_FILTER 0 | ||
| 1829 | +%define CONFIG_ANOISESRC_FILTER 0 | ||
| 1830 | +%define CONFIG_ANULLSRC_FILTER 0 | ||
| 1831 | +%define CONFIG_FLITE_FILTER 0 | ||
| 1832 | +%define CONFIG_HILBERT_FILTER 0 | ||
| 1833 | +%define CONFIG_SINC_FILTER 0 | ||
| 1834 | +%define CONFIG_SINE_FILTER 0 | ||
| 1835 | +%define CONFIG_ANULLSINK_FILTER 0 | ||
| 1836 | +%define CONFIG_ADDROI_FILTER 0 | ||
| 1837 | +%define CONFIG_ALPHAEXTRACT_FILTER 0 | ||
| 1838 | +%define CONFIG_ALPHAMERGE_FILTER 0 | ||
| 1839 | +%define CONFIG_AMPLIFY_FILTER 0 | ||
| 1840 | +%define CONFIG_ASS_FILTER 0 | ||
| 1841 | +%define CONFIG_ATADENOISE_FILTER 0 | ||
| 1842 | +%define CONFIG_AVGBLUR_FILTER 0 | ||
| 1843 | +%define CONFIG_AVGBLUR_OPENCL_FILTER 0 | ||
| 1844 | +%define CONFIG_AVGBLUR_VULKAN_FILTER 0 | ||
| 1845 | +%define CONFIG_BBOX_FILTER 0 | ||
| 1846 | +%define CONFIG_BENCH_FILTER 0 | ||
| 1847 | +%define CONFIG_BILATERAL_FILTER 0 | ||
| 1848 | +%define CONFIG_BITPLANENOISE_FILTER 0 | ||
| 1849 | +%define CONFIG_BLACKDETECT_FILTER 0 | ||
| 1850 | +%define CONFIG_BLACKFRAME_FILTER 0 | ||
| 1851 | +%define CONFIG_BLEND_FILTER 0 | ||
| 1852 | +%define CONFIG_BLEND_VULKAN_FILTER 0 | ||
| 1853 | +%define CONFIG_BM3D_FILTER 0 | ||
| 1854 | +%define CONFIG_BOXBLUR_FILTER 0 | ||
| 1855 | +%define CONFIG_BOXBLUR_OPENCL_FILTER 0 | ||
| 1856 | +%define CONFIG_BWDIF_FILTER 0 | ||
| 1857 | +%define CONFIG_CAS_FILTER 0 | ||
| 1858 | +%define CONFIG_CHROMABER_VULKAN_FILTER 0 | ||
| 1859 | +%define CONFIG_CHROMAHOLD_FILTER 0 | ||
| 1860 | +%define CONFIG_CHROMAKEY_FILTER 0 | ||
| 1861 | +%define CONFIG_CHROMANR_FILTER 0 | ||
| 1862 | +%define CONFIG_CHROMASHIFT_FILTER 0 | ||
| 1863 | +%define CONFIG_CIESCOPE_FILTER 0 | ||
| 1864 | +%define CONFIG_CODECVIEW_FILTER 0 | ||
| 1865 | +%define CONFIG_COLORBALANCE_FILTER 0 | ||
| 1866 | +%define CONFIG_COLORCHANNELMIXER_FILTER 0 | ||
| 1867 | +%define CONFIG_COLORCONTRAST_FILTER 0 | ||
| 1868 | +%define CONFIG_COLORCORRECT_FILTER 0 | ||
| 1869 | +%define CONFIG_COLORIZE_FILTER 0 | ||
| 1870 | +%define CONFIG_COLORKEY_FILTER 0 | ||
| 1871 | +%define CONFIG_COLORKEY_OPENCL_FILTER 0 | ||
| 1872 | +%define CONFIG_COLORHOLD_FILTER 0 | ||
| 1873 | +%define CONFIG_COLORLEVELS_FILTER 0 | ||
| 1874 | +%define CONFIG_COLORMATRIX_FILTER 0 | ||
| 1875 | +%define CONFIG_COLORSPACE_FILTER 0 | ||
| 1876 | +%define CONFIG_COLORTEMPERATURE_FILTER 0 | ||
| 1877 | +%define CONFIG_CONVOLUTION_FILTER 0 | ||
| 1878 | +%define CONFIG_CONVOLUTION_OPENCL_FILTER 0 | ||
| 1879 | +%define CONFIG_CONVOLVE_FILTER 0 | ||
| 1880 | +%define CONFIG_COPY_FILTER 0 | ||
| 1881 | +%define CONFIG_COREIMAGE_FILTER 0 | ||
| 1882 | +%define CONFIG_COVER_RECT_FILTER 0 | ||
| 1883 | +%define CONFIG_CROP_FILTER 0 | ||
| 1884 | +%define CONFIG_CROPDETECT_FILTER 0 | ||
| 1885 | +%define CONFIG_CUE_FILTER 0 | ||
| 1886 | +%define CONFIG_CURVES_FILTER 0 | ||
| 1887 | +%define CONFIG_DATASCOPE_FILTER 0 | ||
| 1888 | +%define CONFIG_DBLUR_FILTER 0 | ||
| 1889 | +%define CONFIG_DCTDNOIZ_FILTER 0 | ||
| 1890 | +%define CONFIG_DEBAND_FILTER 0 | ||
| 1891 | +%define CONFIG_DEBLOCK_FILTER 0 | ||
| 1892 | +%define CONFIG_DECIMATE_FILTER 0 | ||
| 1893 | +%define CONFIG_DECONVOLVE_FILTER 0 | ||
| 1894 | +%define CONFIG_DEDOT_FILTER 0 | ||
| 1895 | +%define CONFIG_DEFLATE_FILTER 0 | ||
| 1896 | +%define CONFIG_DEFLICKER_FILTER 0 | ||
| 1897 | +%define CONFIG_DEINTERLACE_QSV_FILTER 0 | ||
| 1898 | +%define CONFIG_DEINTERLACE_VAAPI_FILTER 0 | ||
| 1899 | +%define CONFIG_DEJUDDER_FILTER 0 | ||
| 1900 | +%define CONFIG_DELOGO_FILTER 0 | ||
| 1901 | +%define CONFIG_DENOISE_VAAPI_FILTER 0 | ||
| 1902 | +%define CONFIG_DERAIN_FILTER 0 | ||
| 1903 | +%define CONFIG_DESHAKE_FILTER 0 | ||
| 1904 | +%define CONFIG_DESHAKE_OPENCL_FILTER 0 | ||
| 1905 | +%define CONFIG_DESPILL_FILTER 0 | ||
| 1906 | +%define CONFIG_DETELECINE_FILTER 0 | ||
| 1907 | +%define CONFIG_DILATION_FILTER 0 | ||
| 1908 | +%define CONFIG_DILATION_OPENCL_FILTER 0 | ||
| 1909 | +%define CONFIG_DISPLACE_FILTER 0 | ||
| 1910 | +%define CONFIG_DNN_CLASSIFY_FILTER 0 | ||
| 1911 | +%define CONFIG_DNN_DETECT_FILTER 0 | ||
| 1912 | +%define CONFIG_DNN_PROCESSING_FILTER 0 | ||
| 1913 | +%define CONFIG_DOUBLEWEAVE_FILTER 0 | ||
| 1914 | +%define CONFIG_DRAWBOX_FILTER 0 | ||
| 1915 | +%define CONFIG_DRAWGRAPH_FILTER 0 | ||
| 1916 | +%define CONFIG_DRAWGRID_FILTER 0 | ||
| 1917 | +%define CONFIG_DRAWTEXT_FILTER 0 | ||
| 1918 | +%define CONFIG_EDGEDETECT_FILTER 0 | ||
| 1919 | +%define CONFIG_ELBG_FILTER 0 | ||
| 1920 | +%define CONFIG_ENTROPY_FILTER 0 | ||
| 1921 | +%define CONFIG_EPX_FILTER 0 | ||
| 1922 | +%define CONFIG_EQ_FILTER 0 | ||
| 1923 | +%define CONFIG_EROSION_FILTER 0 | ||
| 1924 | +%define CONFIG_EROSION_OPENCL_FILTER 0 | ||
| 1925 | +%define CONFIG_ESTDIF_FILTER 0 | ||
| 1926 | +%define CONFIG_EXPOSURE_FILTER 0 | ||
| 1927 | +%define CONFIG_EXTRACTPLANES_FILTER 0 | ||
| 1928 | +%define CONFIG_FADE_FILTER 0 | ||
| 1929 | +%define CONFIG_FFTDNOIZ_FILTER 0 | ||
| 1930 | +%define CONFIG_FFTFILT_FILTER 0 | ||
| 1931 | +%define CONFIG_FIELD_FILTER 0 | ||
| 1932 | +%define CONFIG_FIELDHINT_FILTER 0 | ||
| 1933 | +%define CONFIG_FIELDMATCH_FILTER 0 | ||
| 1934 | +%define CONFIG_FIELDORDER_FILTER 0 | ||
| 1935 | +%define CONFIG_FILLBORDERS_FILTER 0 | ||
| 1936 | +%define CONFIG_FIND_RECT_FILTER 0 | ||
| 1937 | +%define CONFIG_FLIP_VULKAN_FILTER 0 | ||
| 1938 | +%define CONFIG_FLOODFILL_FILTER 0 | ||
| 1939 | +%define CONFIG_FORMAT_FILTER 0 | ||
| 1940 | +%define CONFIG_FPS_FILTER 0 | ||
| 1941 | +%define CONFIG_FRAMEPACK_FILTER 0 | ||
| 1942 | +%define CONFIG_FRAMERATE_FILTER 0 | ||
| 1943 | +%define CONFIG_FRAMESTEP_FILTER 0 | ||
| 1944 | +%define CONFIG_FREEZEDETECT_FILTER 0 | ||
| 1945 | +%define CONFIG_FREEZEFRAMES_FILTER 0 | ||
| 1946 | +%define CONFIG_FREI0R_FILTER 0 | ||
| 1947 | +%define CONFIG_FSPP_FILTER 0 | ||
| 1948 | +%define CONFIG_GBLUR_FILTER 0 | ||
| 1949 | +%define CONFIG_GBLUR_VULKAN_FILTER 0 | ||
| 1950 | +%define CONFIG_GEQ_FILTER 0 | ||
| 1951 | +%define CONFIG_GRADFUN_FILTER 0 | ||
| 1952 | +%define CONFIG_GRAPHMONITOR_FILTER 0 | ||
| 1953 | +%define CONFIG_GRAYWORLD_FILTER 0 | ||
| 1954 | +%define CONFIG_GREYEDGE_FILTER 0 | ||
| 1955 | +%define CONFIG_GUIDED_FILTER 0 | ||
| 1956 | +%define CONFIG_HALDCLUT_FILTER 0 | ||
| 1957 | +%define CONFIG_HFLIP_FILTER 0 | ||
| 1958 | +%define CONFIG_HFLIP_VULKAN_FILTER 0 | ||
| 1959 | +%define CONFIG_HISTEQ_FILTER 0 | ||
| 1960 | +%define CONFIG_HISTOGRAM_FILTER 0 | ||
| 1961 | +%define CONFIG_HQDN3D_FILTER 0 | ||
| 1962 | +%define CONFIG_HQX_FILTER 0 | ||
| 1963 | +%define CONFIG_HSTACK_FILTER 0 | ||
| 1964 | +%define CONFIG_HSVHOLD_FILTER 0 | ||
| 1965 | +%define CONFIG_HSVKEY_FILTER 0 | ||
| 1966 | +%define CONFIG_HUE_FILTER 0 | ||
| 1967 | +%define CONFIG_HUESATURATION_FILTER 0 | ||
| 1968 | +%define CONFIG_HWDOWNLOAD_FILTER 0 | ||
| 1969 | +%define CONFIG_HWMAP_FILTER 0 | ||
| 1970 | +%define CONFIG_HWUPLOAD_FILTER 0 | ||
| 1971 | +%define CONFIG_HWUPLOAD_CUDA_FILTER 0 | ||
| 1972 | +%define CONFIG_HYSTERESIS_FILTER 0 | ||
| 1973 | +%define CONFIG_IDENTITY_FILTER 0 | ||
| 1974 | +%define CONFIG_IDET_FILTER 0 | ||
| 1975 | +%define CONFIG_IL_FILTER 0 | ||
| 1976 | +%define CONFIG_INFLATE_FILTER 0 | ||
| 1977 | +%define CONFIG_INTERLACE_FILTER 0 | ||
| 1978 | +%define CONFIG_INTERLEAVE_FILTER 0 | ||
| 1979 | +%define CONFIG_KERNDEINT_FILTER 0 | ||
| 1980 | +%define CONFIG_KIRSCH_FILTER 0 | ||
| 1981 | +%define CONFIG_LAGFUN_FILTER 0 | ||
| 1982 | +%define CONFIG_LATENCY_FILTER 0 | ||
| 1983 | +%define CONFIG_LENSCORRECTION_FILTER 0 | ||
| 1984 | +%define CONFIG_LENSFUN_FILTER 0 | ||
| 1985 | +%define CONFIG_LIBPLACEBO_FILTER 0 | ||
| 1986 | +%define CONFIG_LIBVMAF_FILTER 0 | ||
| 1987 | +%define CONFIG_LIMITDIFF_FILTER 0 | ||
| 1988 | +%define CONFIG_LIMITER_FILTER 0 | ||
| 1989 | +%define CONFIG_LOOP_FILTER 0 | ||
| 1990 | +%define CONFIG_LUMAKEY_FILTER 0 | ||
| 1991 | +%define CONFIG_LUT_FILTER 0 | ||
| 1992 | +%define CONFIG_LUT1D_FILTER 0 | ||
| 1993 | +%define CONFIG_LUT2_FILTER 0 | ||
| 1994 | +%define CONFIG_LUT3D_FILTER 0 | ||
| 1995 | +%define CONFIG_LUTRGB_FILTER 0 | ||
| 1996 | +%define CONFIG_LUTYUV_FILTER 0 | ||
| 1997 | +%define CONFIG_MASKEDCLAMP_FILTER 0 | ||
| 1998 | +%define CONFIG_MASKEDMAX_FILTER 0 | ||
| 1999 | +%define CONFIG_MASKEDMERGE_FILTER 0 | ||
| 2000 | +%define CONFIG_MASKEDMIN_FILTER 0 | ||
| 2001 | +%define CONFIG_MASKEDTHRESHOLD_FILTER 0 | ||
| 2002 | +%define CONFIG_MASKFUN_FILTER 0 | ||
| 2003 | +%define CONFIG_MCDEINT_FILTER 0 | ||
| 2004 | +%define CONFIG_MEDIAN_FILTER 0 | ||
| 2005 | +%define CONFIG_MERGEPLANES_FILTER 0 | ||
| 2006 | +%define CONFIG_MESTIMATE_FILTER 0 | ||
| 2007 | +%define CONFIG_METADATA_FILTER 0 | ||
| 2008 | +%define CONFIG_MIDEQUALIZER_FILTER 0 | ||
| 2009 | +%define CONFIG_MINTERPOLATE_FILTER 0 | ||
| 2010 | +%define CONFIG_MIX_FILTER 0 | ||
| 2011 | +%define CONFIG_MONOCHROME_FILTER 0 | ||
| 2012 | +%define CONFIG_MORPHO_FILTER 0 | ||
| 2013 | +%define CONFIG_MPDECIMATE_FILTER 0 | ||
| 2014 | +%define CONFIG_MSAD_FILTER 0 | ||
| 2015 | +%define CONFIG_NEGATE_FILTER 0 | ||
| 2016 | +%define CONFIG_NLMEANS_FILTER 0 | ||
| 2017 | +%define CONFIG_NLMEANS_OPENCL_FILTER 0 | ||
| 2018 | +%define CONFIG_NNEDI_FILTER 0 | ||
| 2019 | +%define CONFIG_NOFORMAT_FILTER 0 | ||
| 2020 | +%define CONFIG_NOISE_FILTER 0 | ||
| 2021 | +%define CONFIG_NORMALIZE_FILTER 0 | ||
| 2022 | +%define CONFIG_NULL_FILTER 0 | ||
| 2023 | +%define CONFIG_OCR_FILTER 0 | ||
| 2024 | +%define CONFIG_OCV_FILTER 0 | ||
| 2025 | +%define CONFIG_OSCILLOSCOPE_FILTER 0 | ||
| 2026 | +%define CONFIG_OVERLAY_FILTER 0 | ||
| 2027 | +%define CONFIG_OVERLAY_OPENCL_FILTER 0 | ||
| 2028 | +%define CONFIG_OVERLAY_QSV_FILTER 0 | ||
| 2029 | +%define CONFIG_OVERLAY_VAAPI_FILTER 0 | ||
| 2030 | +%define CONFIG_OVERLAY_VULKAN_FILTER 0 | ||
| 2031 | +%define CONFIG_OVERLAY_CUDA_FILTER 0 | ||
| 2032 | +%define CONFIG_OWDENOISE_FILTER 0 | ||
| 2033 | +%define CONFIG_PAD_FILTER 0 | ||
| 2034 | +%define CONFIG_PAD_OPENCL_FILTER 0 | ||
| 2035 | +%define CONFIG_PALETTEGEN_FILTER 0 | ||
| 2036 | +%define CONFIG_PALETTEUSE_FILTER 0 | ||
| 2037 | +%define CONFIG_PERMS_FILTER 0 | ||
| 2038 | +%define CONFIG_PERSPECTIVE_FILTER 0 | ||
| 2039 | +%define CONFIG_PHASE_FILTER 0 | ||
| 2040 | +%define CONFIG_PHOTOSENSITIVITY_FILTER 0 | ||
| 2041 | +%define CONFIG_PIXDESCTEST_FILTER 0 | ||
| 2042 | +%define CONFIG_PIXSCOPE_FILTER 0 | ||
| 2043 | +%define CONFIG_PP_FILTER 0 | ||
| 2044 | +%define CONFIG_PP7_FILTER 0 | ||
| 2045 | +%define CONFIG_PREMULTIPLY_FILTER 0 | ||
| 2046 | +%define CONFIG_PREWITT_FILTER 0 | ||
| 2047 | +%define CONFIG_PREWITT_OPENCL_FILTER 0 | ||
| 2048 | +%define CONFIG_PROCAMP_VAAPI_FILTER 0 | ||
| 2049 | +%define CONFIG_PROGRAM_OPENCL_FILTER 0 | ||
| 2050 | +%define CONFIG_PSEUDOCOLOR_FILTER 0 | ||
| 2051 | +%define CONFIG_PSNR_FILTER 0 | ||
| 2052 | +%define CONFIG_PULLUP_FILTER 0 | ||
| 2053 | +%define CONFIG_QP_FILTER 0 | ||
| 2054 | +%define CONFIG_RANDOM_FILTER 0 | ||
| 2055 | +%define CONFIG_READEIA608_FILTER 0 | ||
| 2056 | +%define CONFIG_READVITC_FILTER 0 | ||
| 2057 | +%define CONFIG_REALTIME_FILTER 0 | ||
| 2058 | +%define CONFIG_REMAP_FILTER 0 | ||
| 2059 | +%define CONFIG_REMOVEGRAIN_FILTER 0 | ||
| 2060 | +%define CONFIG_REMOVELOGO_FILTER 0 | ||
| 2061 | +%define CONFIG_REPEATFIELDS_FILTER 0 | ||
| 2062 | +%define CONFIG_REVERSE_FILTER 0 | ||
| 2063 | +%define CONFIG_RGBASHIFT_FILTER 0 | ||
| 2064 | +%define CONFIG_ROBERTS_FILTER 0 | ||
| 2065 | +%define CONFIG_ROBERTS_OPENCL_FILTER 0 | ||
| 2066 | +%define CONFIG_ROTATE_FILTER 0 | ||
| 2067 | +%define CONFIG_SAB_FILTER 0 | ||
| 2068 | +%define CONFIG_SCALE_FILTER 0 | ||
| 2069 | +%define CONFIG_SCALE_CUDA_FILTER 0 | ||
| 2070 | +%define CONFIG_SCALE_NPP_FILTER 0 | ||
| 2071 | +%define CONFIG_SCALE_QSV_FILTER 0 | ||
| 2072 | +%define CONFIG_SCALE_VAAPI_FILTER 0 | ||
| 2073 | +%define CONFIG_SCALE_VULKAN_FILTER 0 | ||
| 2074 | +%define CONFIG_SCALE2REF_FILTER 0 | ||
| 2075 | +%define CONFIG_SCALE2REF_NPP_FILTER 0 | ||
| 2076 | +%define CONFIG_SCDET_FILTER 0 | ||
| 2077 | +%define CONFIG_SCHARR_FILTER 0 | ||
| 2078 | +%define CONFIG_SCROLL_FILTER 0 | ||
| 2079 | +%define CONFIG_SEGMENT_FILTER 0 | ||
| 2080 | +%define CONFIG_SELECT_FILTER 0 | ||
| 2081 | +%define CONFIG_SELECTIVECOLOR_FILTER 0 | ||
| 2082 | +%define CONFIG_SENDCMD_FILTER 0 | ||
| 2083 | +%define CONFIG_SEPARATEFIELDS_FILTER 0 | ||
| 2084 | +%define CONFIG_SETDAR_FILTER 0 | ||
| 2085 | +%define CONFIG_SETFIELD_FILTER 0 | ||
| 2086 | +%define CONFIG_SETPARAMS_FILTER 0 | ||
| 2087 | +%define CONFIG_SETPTS_FILTER 0 | ||
| 2088 | +%define CONFIG_SETRANGE_FILTER 0 | ||
| 2089 | +%define CONFIG_SETSAR_FILTER 0 | ||
| 2090 | +%define CONFIG_SETTB_FILTER 0 | ||
| 2091 | +%define CONFIG_SHARPEN_NPP_FILTER 0 | ||
| 2092 | +%define CONFIG_SHARPNESS_VAAPI_FILTER 0 | ||
| 2093 | +%define CONFIG_SHEAR_FILTER 0 | ||
| 2094 | +%define CONFIG_SHOWINFO_FILTER 0 | ||
| 2095 | +%define CONFIG_SHOWPALETTE_FILTER 0 | ||
| 2096 | +%define CONFIG_SHUFFLEFRAMES_FILTER 0 | ||
| 2097 | +%define CONFIG_SHUFFLEPIXELS_FILTER 0 | ||
| 2098 | +%define CONFIG_SHUFFLEPLANES_FILTER 0 | ||
| 2099 | +%define CONFIG_SIDEDATA_FILTER 0 | ||
| 2100 | +%define CONFIG_SIGNALSTATS_FILTER 0 | ||
| 2101 | +%define CONFIG_SIGNATURE_FILTER 0 | ||
| 2102 | +%define CONFIG_SMARTBLUR_FILTER 0 | ||
| 2103 | +%define CONFIG_SOBEL_FILTER 0 | ||
| 2104 | +%define CONFIG_SOBEL_OPENCL_FILTER 0 | ||
| 2105 | +%define CONFIG_SPLIT_FILTER 0 | ||
| 2106 | +%define CONFIG_SPP_FILTER 0 | ||
| 2107 | +%define CONFIG_SR_FILTER 0 | ||
| 2108 | +%define CONFIG_SSIM_FILTER 0 | ||
| 2109 | +%define CONFIG_STEREO3D_FILTER 0 | ||
| 2110 | +%define CONFIG_STREAMSELECT_FILTER 0 | ||
| 2111 | +%define CONFIG_SUBTITLES_FILTER 0 | ||
| 2112 | +%define CONFIG_SUPER2XSAI_FILTER 0 | ||
| 2113 | +%define CONFIG_SWAPRECT_FILTER 0 | ||
| 2114 | +%define CONFIG_SWAPUV_FILTER 0 | ||
| 2115 | +%define CONFIG_TBLEND_FILTER 0 | ||
| 2116 | +%define CONFIG_TELECINE_FILTER 0 | ||
| 2117 | +%define CONFIG_THISTOGRAM_FILTER 0 | ||
| 2118 | +%define CONFIG_THRESHOLD_FILTER 0 | ||
| 2119 | +%define CONFIG_THUMBNAIL_FILTER 0 | ||
| 2120 | +%define CONFIG_THUMBNAIL_CUDA_FILTER 0 | ||
| 2121 | +%define CONFIG_TILE_FILTER 0 | ||
| 2122 | +%define CONFIG_TINTERLACE_FILTER 0 | ||
| 2123 | +%define CONFIG_TLUT2_FILTER 0 | ||
| 2124 | +%define CONFIG_TMEDIAN_FILTER 0 | ||
| 2125 | +%define CONFIG_TMIDEQUALIZER_FILTER 0 | ||
| 2126 | +%define CONFIG_TMIX_FILTER 0 | ||
| 2127 | +%define CONFIG_TONEMAP_FILTER 0 | ||
| 2128 | +%define CONFIG_TONEMAP_OPENCL_FILTER 0 | ||
| 2129 | +%define CONFIG_TONEMAP_VAAPI_FILTER 0 | ||
| 2130 | +%define CONFIG_TPAD_FILTER 0 | ||
| 2131 | +%define CONFIG_TRANSPOSE_FILTER 0 | ||
| 2132 | +%define CONFIG_TRANSPOSE_NPP_FILTER 0 | ||
| 2133 | +%define CONFIG_TRANSPOSE_OPENCL_FILTER 0 | ||
| 2134 | +%define CONFIG_TRANSPOSE_VAAPI_FILTER 0 | ||
| 2135 | +%define CONFIG_TRANSPOSE_VULKAN_FILTER 0 | ||
| 2136 | +%define CONFIG_TRIM_FILTER 0 | ||
| 2137 | +%define CONFIG_UNPREMULTIPLY_FILTER 0 | ||
| 2138 | +%define CONFIG_UNSHARP_FILTER 0 | ||
| 2139 | +%define CONFIG_UNSHARP_OPENCL_FILTER 0 | ||
| 2140 | +%define CONFIG_UNTILE_FILTER 0 | ||
| 2141 | +%define CONFIG_USPP_FILTER 0 | ||
| 2142 | +%define CONFIG_V360_FILTER 0 | ||
| 2143 | +%define CONFIG_VAGUEDENOISER_FILTER 0 | ||
| 2144 | +%define CONFIG_VARBLUR_FILTER 0 | ||
| 2145 | +%define CONFIG_VECTORSCOPE_FILTER 0 | ||
| 2146 | +%define CONFIG_VFLIP_FILTER 0 | ||
| 2147 | +%define CONFIG_VFLIP_VULKAN_FILTER 0 | ||
| 2148 | +%define CONFIG_VFRDET_FILTER 0 | ||
| 2149 | +%define CONFIG_VIBRANCE_FILTER 0 | ||
| 2150 | +%define CONFIG_VIDSTABDETECT_FILTER 0 | ||
| 2151 | +%define CONFIG_VIDSTABTRANSFORM_FILTER 0 | ||
| 2152 | +%define CONFIG_VIF_FILTER 0 | ||
| 2153 | +%define CONFIG_VIGNETTE_FILTER 0 | ||
| 2154 | +%define CONFIG_VMAFMOTION_FILTER 0 | ||
| 2155 | +%define CONFIG_VPP_QSV_FILTER 0 | ||
| 2156 | +%define CONFIG_VSTACK_FILTER 0 | ||
| 2157 | +%define CONFIG_W3FDIF_FILTER 0 | ||
| 2158 | +%define CONFIG_WAVEFORM_FILTER 0 | ||
| 2159 | +%define CONFIG_WEAVE_FILTER 0 | ||
| 2160 | +%define CONFIG_XBR_FILTER 0 | ||
| 2161 | +%define CONFIG_XCORRELATE_FILTER 0 | ||
| 2162 | +%define CONFIG_XFADE_FILTER 0 | ||
| 2163 | +%define CONFIG_XFADE_OPENCL_FILTER 0 | ||
| 2164 | +%define CONFIG_XMEDIAN_FILTER 0 | ||
| 2165 | +%define CONFIG_XSTACK_FILTER 0 | ||
| 2166 | +%define CONFIG_YADIF_FILTER 0 | ||
| 2167 | +%define CONFIG_YADIF_CUDA_FILTER 0 | ||
| 2168 | +%define CONFIG_YADIF_VIDEOTOOLBOX_FILTER 0 | ||
| 2169 | +%define CONFIG_YAEPBLUR_FILTER 0 | ||
| 2170 | +%define CONFIG_ZMQ_FILTER 0 | ||
| 2171 | +%define CONFIG_ZOOMPAN_FILTER 0 | ||
| 2172 | +%define CONFIG_ZSCALE_FILTER 0 | ||
| 2173 | +%define CONFIG_ALLRGB_FILTER 0 | ||
| 2174 | +%define CONFIG_ALLYUV_FILTER 0 | ||
| 2175 | +%define CONFIG_CELLAUTO_FILTER 0 | ||
| 2176 | +%define CONFIG_COLOR_FILTER 0 | ||
| 2177 | +%define CONFIG_COLORSPECTRUM_FILTER 0 | ||
| 2178 | +%define CONFIG_COREIMAGESRC_FILTER 0 | ||
| 2179 | +%define CONFIG_FREI0R_SRC_FILTER 0 | ||
| 2180 | +%define CONFIG_GRADIENTS_FILTER 0 | ||
| 2181 | +%define CONFIG_HALDCLUTSRC_FILTER 0 | ||
| 2182 | +%define CONFIG_LIFE_FILTER 0 | ||
| 2183 | +%define CONFIG_MANDELBROT_FILTER 0 | ||
| 2184 | +%define CONFIG_MPTESTSRC_FILTER 0 | ||
| 2185 | +%define CONFIG_NULLSRC_FILTER 0 | ||
| 2186 | +%define CONFIG_OPENCLSRC_FILTER 0 | ||
| 2187 | +%define CONFIG_PAL75BARS_FILTER 0 | ||
| 2188 | +%define CONFIG_PAL100BARS_FILTER 0 | ||
| 2189 | +%define CONFIG_RGBTESTSRC_FILTER 0 | ||
| 2190 | +%define CONFIG_SIERPINSKI_FILTER 0 | ||
| 2191 | +%define CONFIG_SMPTEBARS_FILTER 0 | ||
| 2192 | +%define CONFIG_SMPTEHDBARS_FILTER 0 | ||
| 2193 | +%define CONFIG_TESTSRC_FILTER 0 | ||
| 2194 | +%define CONFIG_TESTSRC2_FILTER 0 | ||
| 2195 | +%define CONFIG_YUVTESTSRC_FILTER 0 | ||
| 2196 | +%define CONFIG_NULLSINK_FILTER 0 | ||
| 2197 | +%define CONFIG_ABITSCOPE_FILTER 0 | ||
| 2198 | +%define CONFIG_ADRAWGRAPH_FILTER 0 | ||
| 2199 | +%define CONFIG_AGRAPHMONITOR_FILTER 0 | ||
| 2200 | +%define CONFIG_AHISTOGRAM_FILTER 0 | ||
| 2201 | +%define CONFIG_APHASEMETER_FILTER 0 | ||
| 2202 | +%define CONFIG_AVECTORSCOPE_FILTER 0 | ||
| 2203 | +%define CONFIG_CONCAT_FILTER 0 | ||
| 2204 | +%define CONFIG_SHOWCQT_FILTER 0 | ||
| 2205 | +%define CONFIG_SHOWFREQS_FILTER 0 | ||
| 2206 | +%define CONFIG_SHOWSPATIAL_FILTER 0 | ||
| 2207 | +%define CONFIG_SHOWSPECTRUM_FILTER 0 | ||
| 2208 | +%define CONFIG_SHOWSPECTRUMPIC_FILTER 0 | ||
| 2209 | +%define CONFIG_SHOWVOLUME_FILTER 0 | ||
| 2210 | +%define CONFIG_SHOWWAVES_FILTER 0 | ||
| 2211 | +%define CONFIG_SHOWWAVESPIC_FILTER 0 | ||
| 2212 | +%define CONFIG_SPECTRUMSYNTH_FILTER 0 | ||
| 2213 | +%define CONFIG_AMOVIE_FILTER 0 | ||
| 2214 | +%define CONFIG_MOVIE_FILTER 0 | ||
| 2215 | +%define CONFIG_AFIFO_FILTER 0 | ||
| 2216 | +%define CONFIG_FIFO_FILTER 0 | ||
| 2217 | +%define CONFIG_AA_DEMUXER 0 | ||
| 2218 | +%define CONFIG_AAC_DEMUXER 1 | ||
| 2219 | +%define CONFIG_AAX_DEMUXER 0 | ||
| 2220 | +%define CONFIG_AC3_DEMUXER 0 | ||
| 2221 | +%define CONFIG_ACE_DEMUXER 0 | ||
| 2222 | +%define CONFIG_ACM_DEMUXER 0 | ||
| 2223 | +%define CONFIG_ACT_DEMUXER 0 | ||
| 2224 | +%define CONFIG_ADF_DEMUXER 0 | ||
| 2225 | +%define CONFIG_ADP_DEMUXER 0 | ||
| 2226 | +%define CONFIG_ADS_DEMUXER 0 | ||
| 2227 | +%define CONFIG_ADX_DEMUXER 0 | ||
| 2228 | +%define CONFIG_AEA_DEMUXER 0 | ||
| 2229 | +%define CONFIG_AFC_DEMUXER 0 | ||
| 2230 | +%define CONFIG_AIFF_DEMUXER 0 | ||
| 2231 | +%define CONFIG_AIX_DEMUXER 0 | ||
| 2232 | +%define CONFIG_ALP_DEMUXER 0 | ||
| 2233 | +%define CONFIG_AMR_DEMUXER 0 | ||
| 2234 | +%define CONFIG_AMRNB_DEMUXER 0 | ||
| 2235 | +%define CONFIG_AMRWB_DEMUXER 0 | ||
| 2236 | +%define CONFIG_ANM_DEMUXER 0 | ||
| 2237 | +%define CONFIG_APC_DEMUXER 0 | ||
| 2238 | +%define CONFIG_APE_DEMUXER 0 | ||
| 2239 | +%define CONFIG_APM_DEMUXER 0 | ||
| 2240 | +%define CONFIG_APNG_DEMUXER 0 | ||
| 2241 | +%define CONFIG_APTX_DEMUXER 0 | ||
| 2242 | +%define CONFIG_APTX_HD_DEMUXER 0 | ||
| 2243 | +%define CONFIG_AQTITLE_DEMUXER 0 | ||
| 2244 | +%define CONFIG_ARGO_ASF_DEMUXER 0 | ||
| 2245 | +%define CONFIG_ARGO_BRP_DEMUXER 0 | ||
| 2246 | +%define CONFIG_ARGO_CVG_DEMUXER 0 | ||
| 2247 | +%define CONFIG_ASF_DEMUXER 0 | ||
| 2248 | +%define CONFIG_ASF_O_DEMUXER 0 | ||
| 2249 | +%define CONFIG_ASS_DEMUXER 0 | ||
| 2250 | +%define CONFIG_AST_DEMUXER 0 | ||
| 2251 | +%define CONFIG_AU_DEMUXER 0 | ||
| 2252 | +%define CONFIG_AV1_DEMUXER 0 | ||
| 2253 | +%define CONFIG_AVI_DEMUXER 0 | ||
| 2254 | +%define CONFIG_AVISYNTH_DEMUXER 0 | ||
| 2255 | +%define CONFIG_AVR_DEMUXER 0 | ||
| 2256 | +%define CONFIG_AVS_DEMUXER 0 | ||
| 2257 | +%define CONFIG_AVS2_DEMUXER 0 | ||
| 2258 | +%define CONFIG_AVS3_DEMUXER 0 | ||
| 2259 | +%define CONFIG_BETHSOFTVID_DEMUXER 0 | ||
| 2260 | +%define CONFIG_BFI_DEMUXER 0 | ||
| 2261 | +%define CONFIG_BINTEXT_DEMUXER 0 | ||
| 2262 | +%define CONFIG_BINK_DEMUXER 0 | ||
| 2263 | +%define CONFIG_BINKA_DEMUXER 0 | ||
| 2264 | +%define CONFIG_BIT_DEMUXER 0 | ||
| 2265 | +%define CONFIG_BITPACKED_DEMUXER 0 | ||
| 2266 | +%define CONFIG_BMV_DEMUXER 0 | ||
| 2267 | +%define CONFIG_BFSTM_DEMUXER 0 | ||
| 2268 | +%define CONFIG_BRSTM_DEMUXER 0 | ||
| 2269 | +%define CONFIG_BOA_DEMUXER 0 | ||
| 2270 | +%define CONFIG_C93_DEMUXER 0 | ||
| 2271 | +%define CONFIG_CAF_DEMUXER 0 | ||
| 2272 | +%define CONFIG_CAVSVIDEO_DEMUXER 0 | ||
| 2273 | +%define CONFIG_CDG_DEMUXER 0 | ||
| 2274 | +%define CONFIG_CDXL_DEMUXER 0 | ||
| 2275 | +%define CONFIG_CINE_DEMUXER 0 | ||
| 2276 | +%define CONFIG_CODEC2_DEMUXER 0 | ||
| 2277 | +%define CONFIG_CODEC2RAW_DEMUXER 0 | ||
| 2278 | +%define CONFIG_CONCAT_DEMUXER 0 | ||
| 2279 | +%define CONFIG_DASH_DEMUXER 0 | ||
| 2280 | +%define CONFIG_DATA_DEMUXER 0 | ||
| 2281 | +%define CONFIG_DAUD_DEMUXER 0 | ||
| 2282 | +%define CONFIG_DCSTR_DEMUXER 0 | ||
| 2283 | +%define CONFIG_DERF_DEMUXER 0 | ||
| 2284 | +%define CONFIG_DFA_DEMUXER 0 | ||
| 2285 | +%define CONFIG_DHAV_DEMUXER 0 | ||
| 2286 | +%define CONFIG_DIRAC_DEMUXER 0 | ||
| 2287 | +%define CONFIG_DNXHD_DEMUXER 0 | ||
| 2288 | +%define CONFIG_DSF_DEMUXER 0 | ||
| 2289 | +%define CONFIG_DSICIN_DEMUXER 0 | ||
| 2290 | +%define CONFIG_DSS_DEMUXER 0 | ||
| 2291 | +%define CONFIG_DTS_DEMUXER 0 | ||
| 2292 | +%define CONFIG_DTSHD_DEMUXER 0 | ||
| 2293 | +%define CONFIG_DV_DEMUXER 0 | ||
| 2294 | +%define CONFIG_DVBSUB_DEMUXER 0 | ||
| 2295 | +%define CONFIG_DVBTXT_DEMUXER 0 | ||
| 2296 | +%define CONFIG_DXA_DEMUXER 0 | ||
| 2297 | +%define CONFIG_EA_DEMUXER 0 | ||
| 2298 | +%define CONFIG_EA_CDATA_DEMUXER 0 | ||
| 2299 | +%define CONFIG_EAC3_DEMUXER 0 | ||
| 2300 | +%define CONFIG_EPAF_DEMUXER 0 | ||
| 2301 | +%define CONFIG_FFMETADATA_DEMUXER 0 | ||
| 2302 | +%define CONFIG_FILMSTRIP_DEMUXER 0 | ||
| 2303 | +%define CONFIG_FITS_DEMUXER 0 | ||
| 2304 | +%define CONFIG_FLAC_DEMUXER 1 | ||
| 2305 | +%define CONFIG_FLIC_DEMUXER 0 | ||
| 2306 | +%define CONFIG_FLV_DEMUXER 0 | ||
| 2307 | +%define CONFIG_LIVE_FLV_DEMUXER 0 | ||
| 2308 | +%define CONFIG_FOURXM_DEMUXER 0 | ||
| 2309 | +%define CONFIG_FRM_DEMUXER 0 | ||
| 2310 | +%define CONFIG_FSB_DEMUXER 0 | ||
| 2311 | +%define CONFIG_FWSE_DEMUXER 0 | ||
| 2312 | +%define CONFIG_G722_DEMUXER 0 | ||
| 2313 | +%define CONFIG_G723_1_DEMUXER 0 | ||
| 2314 | +%define CONFIG_G726_DEMUXER 0 | ||
| 2315 | +%define CONFIG_G726LE_DEMUXER 0 | ||
| 2316 | +%define CONFIG_G729_DEMUXER 0 | ||
| 2317 | +%define CONFIG_GDV_DEMUXER 0 | ||
| 2318 | +%define CONFIG_GENH_DEMUXER 0 | ||
| 2319 | +%define CONFIG_GIF_DEMUXER 0 | ||
| 2320 | +%define CONFIG_GSM_DEMUXER 0 | ||
| 2321 | +%define CONFIG_GXF_DEMUXER 0 | ||
| 2322 | +%define CONFIG_H261_DEMUXER 0 | ||
| 2323 | +%define CONFIG_H263_DEMUXER 0 | ||
| 2324 | +%define CONFIG_H264_DEMUXER 0 | ||
| 2325 | +%define CONFIG_HCA_DEMUXER 0 | ||
| 2326 | +%define CONFIG_HCOM_DEMUXER 0 | ||
| 2327 | +%define CONFIG_HEVC_DEMUXER 0 | ||
| 2328 | +%define CONFIG_HLS_DEMUXER 0 | ||
| 2329 | +%define CONFIG_HNM_DEMUXER 0 | ||
| 2330 | +%define CONFIG_ICO_DEMUXER 0 | ||
| 2331 | +%define CONFIG_IDCIN_DEMUXER 0 | ||
| 2332 | +%define CONFIG_IDF_DEMUXER 0 | ||
| 2333 | +%define CONFIG_IFF_DEMUXER 0 | ||
| 2334 | +%define CONFIG_IFV_DEMUXER 0 | ||
| 2335 | +%define CONFIG_ILBC_DEMUXER 0 | ||
| 2336 | +%define CONFIG_IMAGE2_DEMUXER 0 | ||
| 2337 | +%define CONFIG_IMAGE2PIPE_DEMUXER 0 | ||
| 2338 | +%define CONFIG_IMAGE2_ALIAS_PIX_DEMUXER 0 | ||
| 2339 | +%define CONFIG_IMAGE2_BRENDER_PIX_DEMUXER 0 | ||
| 2340 | +%define CONFIG_IMF_DEMUXER 0 | ||
| 2341 | +%define CONFIG_INGENIENT_DEMUXER 0 | ||
| 2342 | +%define CONFIG_IPMOVIE_DEMUXER 0 | ||
| 2343 | +%define CONFIG_IPU_DEMUXER 0 | ||
| 2344 | +%define CONFIG_IRCAM_DEMUXER 0 | ||
| 2345 | +%define CONFIG_ISS_DEMUXER 0 | ||
| 2346 | +%define CONFIG_IV8_DEMUXER 0 | ||
| 2347 | +%define CONFIG_IVF_DEMUXER 0 | ||
| 2348 | +%define CONFIG_IVR_DEMUXER 0 | ||
| 2349 | +%define CONFIG_JACOSUB_DEMUXER 0 | ||
| 2350 | +%define CONFIG_JV_DEMUXER 0 | ||
| 2351 | +%define CONFIG_KUX_DEMUXER 0 | ||
| 2352 | +%define CONFIG_KVAG_DEMUXER 0 | ||
| 2353 | +%define CONFIG_LMLM4_DEMUXER 0 | ||
| 2354 | +%define CONFIG_LOAS_DEMUXER 0 | ||
| 2355 | +%define CONFIG_LUODAT_DEMUXER 0 | ||
| 2356 | +%define CONFIG_LRC_DEMUXER 0 | ||
| 2357 | +%define CONFIG_LVF_DEMUXER 0 | ||
| 2358 | +%define CONFIG_LXF_DEMUXER 0 | ||
| 2359 | +%define CONFIG_M4V_DEMUXER 0 | ||
| 2360 | +%define CONFIG_MCA_DEMUXER 0 | ||
| 2361 | +%define CONFIG_MCC_DEMUXER 0 | ||
| 2362 | +%define CONFIG_MATROSKA_DEMUXER 1 | ||
| 2363 | +%define CONFIG_MGSTS_DEMUXER 0 | ||
| 2364 | +%define CONFIG_MICRODVD_DEMUXER 0 | ||
| 2365 | +%define CONFIG_MJPEG_DEMUXER 0 | ||
| 2366 | +%define CONFIG_MJPEG_2000_DEMUXER 0 | ||
| 2367 | +%define CONFIG_MLP_DEMUXER 0 | ||
| 2368 | +%define CONFIG_MLV_DEMUXER 0 | ||
| 2369 | +%define CONFIG_MM_DEMUXER 0 | ||
| 2370 | +%define CONFIG_MMF_DEMUXER 0 | ||
| 2371 | +%define CONFIG_MODS_DEMUXER 0 | ||
| 2372 | +%define CONFIG_MOFLEX_DEMUXER 0 | ||
| 2373 | +%define CONFIG_MOV_DEMUXER 1 | ||
| 2374 | +%define CONFIG_MP3_DEMUXER 1 | ||
| 2375 | +%define CONFIG_MPC_DEMUXER 0 | ||
| 2376 | +%define CONFIG_MPC8_DEMUXER 0 | ||
| 2377 | +%define CONFIG_MPEGPS_DEMUXER 0 | ||
| 2378 | +%define CONFIG_MPEGTS_DEMUXER 0 | ||
| 2379 | +%define CONFIG_MPEGTSRAW_DEMUXER 0 | ||
| 2380 | +%define CONFIG_MPEGVIDEO_DEMUXER 0 | ||
| 2381 | +%define CONFIG_MPJPEG_DEMUXER 0 | ||
| 2382 | +%define CONFIG_MPL2_DEMUXER 0 | ||
| 2383 | +%define CONFIG_MPSUB_DEMUXER 0 | ||
| 2384 | +%define CONFIG_MSF_DEMUXER 0 | ||
| 2385 | +%define CONFIG_MSNWC_TCP_DEMUXER 0 | ||
| 2386 | +%define CONFIG_MSP_DEMUXER 0 | ||
| 2387 | +%define CONFIG_MTAF_DEMUXER 0 | ||
| 2388 | +%define CONFIG_MTV_DEMUXER 0 | ||
| 2389 | +%define CONFIG_MUSX_DEMUXER 0 | ||
| 2390 | +%define CONFIG_MV_DEMUXER 0 | ||
| 2391 | +%define CONFIG_MVI_DEMUXER 0 | ||
| 2392 | +%define CONFIG_MXF_DEMUXER 0 | ||
| 2393 | +%define CONFIG_MXG_DEMUXER 0 | ||
| 2394 | +%define CONFIG_NC_DEMUXER 0 | ||
| 2395 | +%define CONFIG_NISTSPHERE_DEMUXER 0 | ||
| 2396 | +%define CONFIG_NSP_DEMUXER 0 | ||
| 2397 | +%define CONFIG_NSV_DEMUXER 0 | ||
| 2398 | +%define CONFIG_NUT_DEMUXER 0 | ||
| 2399 | +%define CONFIG_NUV_DEMUXER 0 | ||
| 2400 | +%define CONFIG_OBU_DEMUXER 0 | ||
| 2401 | +%define CONFIG_OGG_DEMUXER 1 | ||
| 2402 | +%define CONFIG_OMA_DEMUXER 0 | ||
| 2403 | +%define CONFIG_PAF_DEMUXER 0 | ||
| 2404 | +%define CONFIG_PCM_ALAW_DEMUXER 0 | ||
| 2405 | +%define CONFIG_PCM_MULAW_DEMUXER 0 | ||
| 2406 | +%define CONFIG_PCM_VIDC_DEMUXER 0 | ||
| 2407 | +%define CONFIG_PCM_F64BE_DEMUXER 0 | ||
| 2408 | +%define CONFIG_PCM_F64LE_DEMUXER 0 | ||
| 2409 | +%define CONFIG_PCM_F32BE_DEMUXER 0 | ||
| 2410 | +%define CONFIG_PCM_F32LE_DEMUXER 0 | ||
| 2411 | +%define CONFIG_PCM_S32BE_DEMUXER 0 | ||
| 2412 | +%define CONFIG_PCM_S32LE_DEMUXER 0 | ||
| 2413 | +%define CONFIG_PCM_S24BE_DEMUXER 0 | ||
| 2414 | +%define CONFIG_PCM_S24LE_DEMUXER 0 | ||
| 2415 | +%define CONFIG_PCM_S16BE_DEMUXER 0 | ||
| 2416 | +%define CONFIG_PCM_S16LE_DEMUXER 0 | ||
| 2417 | +%define CONFIG_PCM_S8_DEMUXER 0 | ||
| 2418 | +%define CONFIG_PCM_U32BE_DEMUXER 0 | ||
| 2419 | +%define CONFIG_PCM_U32LE_DEMUXER 0 | ||
| 2420 | +%define CONFIG_PCM_U24BE_DEMUXER 0 | ||
| 2421 | +%define CONFIG_PCM_U24LE_DEMUXER 0 | ||
| 2422 | +%define CONFIG_PCM_U16BE_DEMUXER 0 | ||
| 2423 | +%define CONFIG_PCM_U16LE_DEMUXER 0 | ||
| 2424 | +%define CONFIG_PCM_U8_DEMUXER 0 | ||
| 2425 | +%define CONFIG_PJS_DEMUXER 0 | ||
| 2426 | +%define CONFIG_PMP_DEMUXER 0 | ||
| 2427 | +%define CONFIG_PP_BNK_DEMUXER 0 | ||
| 2428 | +%define CONFIG_PVA_DEMUXER 0 | ||
| 2429 | +%define CONFIG_PVF_DEMUXER 0 | ||
| 2430 | +%define CONFIG_QCP_DEMUXER 0 | ||
| 2431 | +%define CONFIG_R3D_DEMUXER 0 | ||
| 2432 | +%define CONFIG_RAWVIDEO_DEMUXER 0 | ||
| 2433 | +%define CONFIG_REALTEXT_DEMUXER 0 | ||
| 2434 | +%define CONFIG_REDSPARK_DEMUXER 0 | ||
| 2435 | +%define CONFIG_RL2_DEMUXER 0 | ||
| 2436 | +%define CONFIG_RM_DEMUXER 0 | ||
| 2437 | +%define CONFIG_ROQ_DEMUXER 0 | ||
| 2438 | +%define CONFIG_RPL_DEMUXER 0 | ||
| 2439 | +%define CONFIG_RSD_DEMUXER 0 | ||
| 2440 | +%define CONFIG_RSO_DEMUXER 0 | ||
| 2441 | +%define CONFIG_RTP_DEMUXER 0 | ||
| 2442 | +%define CONFIG_RTSP_DEMUXER 0 | ||
| 2443 | +%define CONFIG_S337M_DEMUXER 0 | ||
| 2444 | +%define CONFIG_SAMI_DEMUXER 0 | ||
| 2445 | +%define CONFIG_SAP_DEMUXER 0 | ||
| 2446 | +%define CONFIG_SBC_DEMUXER 0 | ||
| 2447 | +%define CONFIG_SBG_DEMUXER 0 | ||
| 2448 | +%define CONFIG_SCC_DEMUXER 0 | ||
| 2449 | +%define CONFIG_SCD_DEMUXER 0 | ||
| 2450 | +%define CONFIG_SDP_DEMUXER 0 | ||
| 2451 | +%define CONFIG_SDR2_DEMUXER 0 | ||
| 2452 | +%define CONFIG_SDS_DEMUXER 0 | ||
| 2453 | +%define CONFIG_SDX_DEMUXER 0 | ||
| 2454 | +%define CONFIG_SEGAFILM_DEMUXER 0 | ||
| 2455 | +%define CONFIG_SER_DEMUXER 0 | ||
| 2456 | +%define CONFIG_SGA_DEMUXER 0 | ||
| 2457 | +%define CONFIG_SHORTEN_DEMUXER 0 | ||
| 2458 | +%define CONFIG_SIFF_DEMUXER 0 | ||
| 2459 | +%define CONFIG_SIMBIOSIS_IMX_DEMUXER 0 | ||
| 2460 | +%define CONFIG_SLN_DEMUXER 0 | ||
| 2461 | +%define CONFIG_SMACKER_DEMUXER 0 | ||
| 2462 | +%define CONFIG_SMJPEG_DEMUXER 0 | ||
| 2463 | +%define CONFIG_SMUSH_DEMUXER 0 | ||
| 2464 | +%define CONFIG_SOL_DEMUXER 0 | ||
| 2465 | +%define CONFIG_SOX_DEMUXER 0 | ||
| 2466 | +%define CONFIG_SPDIF_DEMUXER 0 | ||
| 2467 | +%define CONFIG_SRT_DEMUXER 0 | ||
| 2468 | +%define CONFIG_STR_DEMUXER 0 | ||
| 2469 | +%define CONFIG_STL_DEMUXER 0 | ||
| 2470 | +%define CONFIG_SUBVIEWER1_DEMUXER 0 | ||
| 2471 | +%define CONFIG_SUBVIEWER_DEMUXER 0 | ||
| 2472 | +%define CONFIG_SUP_DEMUXER 0 | ||
| 2473 | +%define CONFIG_SVAG_DEMUXER 0 | ||
| 2474 | +%define CONFIG_SVS_DEMUXER 0 | ||
| 2475 | +%define CONFIG_SWF_DEMUXER 0 | ||
| 2476 | +%define CONFIG_TAK_DEMUXER 0 | ||
| 2477 | +%define CONFIG_TEDCAPTIONS_DEMUXER 0 | ||
| 2478 | +%define CONFIG_THP_DEMUXER 0 | ||
| 2479 | +%define CONFIG_THREEDOSTR_DEMUXER 0 | ||
| 2480 | +%define CONFIG_TIERTEXSEQ_DEMUXER 0 | ||
| 2481 | +%define CONFIG_TMV_DEMUXER 0 | ||
| 2482 | +%define CONFIG_TRUEHD_DEMUXER 0 | ||
| 2483 | +%define CONFIG_TTA_DEMUXER 0 | ||
| 2484 | +%define CONFIG_TXD_DEMUXER 0 | ||
| 2485 | +%define CONFIG_TTY_DEMUXER 0 | ||
| 2486 | +%define CONFIG_TY_DEMUXER 0 | ||
| 2487 | +%define CONFIG_V210_DEMUXER 0 | ||
| 2488 | +%define CONFIG_V210X_DEMUXER 0 | ||
| 2489 | +%define CONFIG_VAG_DEMUXER 0 | ||
| 2490 | +%define CONFIG_VC1_DEMUXER 0 | ||
| 2491 | +%define CONFIG_VC1T_DEMUXER 0 | ||
| 2492 | +%define CONFIG_VIVIDAS_DEMUXER 0 | ||
| 2493 | +%define CONFIG_VIVO_DEMUXER 0 | ||
| 2494 | +%define CONFIG_VMD_DEMUXER 0 | ||
| 2495 | +%define CONFIG_VOBSUB_DEMUXER 0 | ||
| 2496 | +%define CONFIG_VOC_DEMUXER 0 | ||
| 2497 | +%define CONFIG_VPK_DEMUXER 0 | ||
| 2498 | +%define CONFIG_VPLAYER_DEMUXER 0 | ||
| 2499 | +%define CONFIG_VQF_DEMUXER 0 | ||
| 2500 | +%define CONFIG_W64_DEMUXER 0 | ||
| 2501 | +%define CONFIG_WAV_DEMUXER 1 | ||
| 2502 | +%define CONFIG_WC3_DEMUXER 0 | ||
| 2503 | +%define CONFIG_WEBM_DASH_MANIFEST_DEMUXER 0 | ||
| 2504 | +%define CONFIG_WEBVTT_DEMUXER 0 | ||
| 2505 | +%define CONFIG_WSAUD_DEMUXER 0 | ||
| 2506 | +%define CONFIG_WSD_DEMUXER 0 | ||
| 2507 | +%define CONFIG_WSVQA_DEMUXER 0 | ||
| 2508 | +%define CONFIG_WTV_DEMUXER 0 | ||
| 2509 | +%define CONFIG_WVE_DEMUXER 0 | ||
| 2510 | +%define CONFIG_WV_DEMUXER 0 | ||
| 2511 | +%define CONFIG_XA_DEMUXER 0 | ||
| 2512 | +%define CONFIG_XBIN_DEMUXER 0 | ||
| 2513 | +%define CONFIG_XMV_DEMUXER 0 | ||
| 2514 | +%define CONFIG_XVAG_DEMUXER 0 | ||
| 2515 | +%define CONFIG_XWMA_DEMUXER 0 | ||
| 2516 | +%define CONFIG_YOP_DEMUXER 0 | ||
| 2517 | +%define CONFIG_YUV4MPEGPIPE_DEMUXER 0 | ||
| 2518 | +%define CONFIG_IMAGE_BMP_PIPE_DEMUXER 0 | ||
| 2519 | +%define CONFIG_IMAGE_CRI_PIPE_DEMUXER 0 | ||
| 2520 | +%define CONFIG_IMAGE_DDS_PIPE_DEMUXER 0 | ||
| 2521 | +%define CONFIG_IMAGE_DPX_PIPE_DEMUXER 0 | ||
| 2522 | +%define CONFIG_IMAGE_EXR_PIPE_DEMUXER 0 | ||
| 2523 | +%define CONFIG_IMAGE_GEM_PIPE_DEMUXER 0 | ||
| 2524 | +%define CONFIG_IMAGE_GIF_PIPE_DEMUXER 0 | ||
| 2525 | +%define CONFIG_IMAGE_J2K_PIPE_DEMUXER 0 | ||
| 2526 | +%define CONFIG_IMAGE_JPEG_PIPE_DEMUXER 0 | ||
| 2527 | +%define CONFIG_IMAGE_JPEGLS_PIPE_DEMUXER 0 | ||
| 2528 | +%define CONFIG_IMAGE_PAM_PIPE_DEMUXER 0 | ||
| 2529 | +%define CONFIG_IMAGE_PBM_PIPE_DEMUXER 0 | ||
| 2530 | +%define CONFIG_IMAGE_PCX_PIPE_DEMUXER 0 | ||
| 2531 | +%define CONFIG_IMAGE_PGMYUV_PIPE_DEMUXER 0 | ||
| 2532 | +%define CONFIG_IMAGE_PGM_PIPE_DEMUXER 0 | ||
| 2533 | +%define CONFIG_IMAGE_PGX_PIPE_DEMUXER 0 | ||
| 2534 | +%define CONFIG_IMAGE_PHOTOCD_PIPE_DEMUXER 0 | ||
| 2535 | +%define CONFIG_IMAGE_PICTOR_PIPE_DEMUXER 0 | ||
| 2536 | +%define CONFIG_IMAGE_PNG_PIPE_DEMUXER 0 | ||
| 2537 | +%define CONFIG_IMAGE_PPM_PIPE_DEMUXER 0 | ||
| 2538 | +%define CONFIG_IMAGE_PSD_PIPE_DEMUXER 0 | ||
| 2539 | +%define CONFIG_IMAGE_QDRAW_PIPE_DEMUXER 0 | ||
| 2540 | +%define CONFIG_IMAGE_SGI_PIPE_DEMUXER 0 | ||
| 2541 | +%define CONFIG_IMAGE_SVG_PIPE_DEMUXER 0 | ||
| 2542 | +%define CONFIG_IMAGE_SUNRAST_PIPE_DEMUXER 0 | ||
| 2543 | +%define CONFIG_IMAGE_TIFF_PIPE_DEMUXER 0 | ||
| 2544 | +%define CONFIG_IMAGE_WEBP_PIPE_DEMUXER 0 | ||
| 2545 | +%define CONFIG_IMAGE_XBM_PIPE_DEMUXER 0 | ||
| 2546 | +%define CONFIG_IMAGE_XPM_PIPE_DEMUXER 0 | ||
| 2547 | +%define CONFIG_IMAGE_XWD_PIPE_DEMUXER 0 | ||
| 2548 | +%define CONFIG_LIBGME_DEMUXER 0 | ||
| 2549 | +%define CONFIG_LIBMODPLUG_DEMUXER 0 | ||
| 2550 | +%define CONFIG_LIBOPENMPT_DEMUXER 0 | ||
| 2551 | +%define CONFIG_VAPOURSYNTH_DEMUXER 0 | ||
| 2552 | +%define CONFIG_A64_MUXER 0 | ||
| 2553 | +%define CONFIG_AC3_MUXER 0 | ||
| 2554 | +%define CONFIG_ADTS_MUXER 0 | ||
| 2555 | +%define CONFIG_ADX_MUXER 0 | ||
| 2556 | +%define CONFIG_AIFF_MUXER 0 | ||
| 2557 | +%define CONFIG_ALP_MUXER 0 | ||
| 2558 | +%define CONFIG_AMR_MUXER 0 | ||
| 2559 | +%define CONFIG_AMV_MUXER 0 | ||
| 2560 | +%define CONFIG_APM_MUXER 0 | ||
| 2561 | +%define CONFIG_APNG_MUXER 0 | ||
| 2562 | +%define CONFIG_APTX_MUXER 0 | ||
| 2563 | +%define CONFIG_APTX_HD_MUXER 0 | ||
| 2564 | +%define CONFIG_ARGO_ASF_MUXER 0 | ||
| 2565 | +%define CONFIG_ARGO_CVG_MUXER 0 | ||
| 2566 | +%define CONFIG_ASF_MUXER 0 | ||
| 2567 | +%define CONFIG_ASS_MUXER 0 | ||
| 2568 | +%define CONFIG_AST_MUXER 0 | ||
| 2569 | +%define CONFIG_ASF_STREAM_MUXER 0 | ||
| 2570 | +%define CONFIG_AU_MUXER 0 | ||
| 2571 | +%define CONFIG_AVI_MUXER 0 | ||
| 2572 | +%define CONFIG_AVM2_MUXER 0 | ||
| 2573 | +%define CONFIG_AVS2_MUXER 0 | ||
| 2574 | +%define CONFIG_AVS3_MUXER 0 | ||
| 2575 | +%define CONFIG_BIT_MUXER 0 | ||
| 2576 | +%define CONFIG_CAF_MUXER 0 | ||
| 2577 | +%define CONFIG_CAVSVIDEO_MUXER 0 | ||
| 2578 | +%define CONFIG_CODEC2_MUXER 0 | ||
| 2579 | +%define CONFIG_CODEC2RAW_MUXER 0 | ||
| 2580 | +%define CONFIG_CRC_MUXER 0 | ||
| 2581 | +%define CONFIG_DASH_MUXER 0 | ||
| 2582 | +%define CONFIG_DATA_MUXER 0 | ||
| 2583 | +%define CONFIG_DAUD_MUXER 0 | ||
| 2584 | +%define CONFIG_DIRAC_MUXER 0 | ||
| 2585 | +%define CONFIG_DNXHD_MUXER 0 | ||
| 2586 | +%define CONFIG_DTS_MUXER 0 | ||
| 2587 | +%define CONFIG_DV_MUXER 0 | ||
| 2588 | +%define CONFIG_EAC3_MUXER 0 | ||
| 2589 | +%define CONFIG_F4V_MUXER 0 | ||
| 2590 | +%define CONFIG_FFMETADATA_MUXER 0 | ||
| 2591 | +%define CONFIG_FIFO_MUXER 0 | ||
| 2592 | +%define CONFIG_FIFO_TEST_MUXER 0 | ||
| 2593 | +%define CONFIG_FILMSTRIP_MUXER 0 | ||
| 2594 | +%define CONFIG_FITS_MUXER 0 | ||
| 2595 | +%define CONFIG_FLAC_MUXER 0 | ||
| 2596 | +%define CONFIG_FLV_MUXER 0 | ||
| 2597 | +%define CONFIG_FRAMECRC_MUXER 0 | ||
| 2598 | +%define CONFIG_FRAMEHASH_MUXER 0 | ||
| 2599 | +%define CONFIG_FRAMEMD5_MUXER 0 | ||
| 2600 | +%define CONFIG_G722_MUXER 0 | ||
| 2601 | +%define CONFIG_G723_1_MUXER 0 | ||
| 2602 | +%define CONFIG_G726_MUXER 0 | ||
| 2603 | +%define CONFIG_G726LE_MUXER 0 | ||
| 2604 | +%define CONFIG_GIF_MUXER 0 | ||
| 2605 | +%define CONFIG_GSM_MUXER 0 | ||
| 2606 | +%define CONFIG_GXF_MUXER 0 | ||
| 2607 | +%define CONFIG_H261_MUXER 0 | ||
| 2608 | +%define CONFIG_H263_MUXER 0 | ||
| 2609 | +%define CONFIG_H264_MUXER 0 | ||
| 2610 | +%define CONFIG_HASH_MUXER 0 | ||
| 2611 | +%define CONFIG_HDS_MUXER 0 | ||
| 2612 | +%define CONFIG_HEVC_MUXER 0 | ||
| 2613 | +%define CONFIG_HLS_MUXER 0 | ||
| 2614 | +%define CONFIG_ICO_MUXER 0 | ||
| 2615 | +%define CONFIG_ILBC_MUXER 0 | ||
| 2616 | +%define CONFIG_IMAGE2_MUXER 0 | ||
| 2617 | +%define CONFIG_IMAGE2PIPE_MUXER 0 | ||
| 2618 | +%define CONFIG_IPOD_MUXER 0 | ||
| 2619 | +%define CONFIG_IRCAM_MUXER 0 | ||
| 2620 | +%define CONFIG_ISMV_MUXER 0 | ||
| 2621 | +%define CONFIG_IVF_MUXER 0 | ||
| 2622 | +%define CONFIG_JACOSUB_MUXER 0 | ||
| 2623 | +%define CONFIG_KVAG_MUXER 0 | ||
| 2624 | +%define CONFIG_LATM_MUXER 0 | ||
| 2625 | +%define CONFIG_LRC_MUXER 0 | ||
| 2626 | +%define CONFIG_M4V_MUXER 0 | ||
| 2627 | +%define CONFIG_MD5_MUXER 0 | ||
| 2628 | +%define CONFIG_MATROSKA_MUXER 0 | ||
| 2629 | +%define CONFIG_MATROSKA_AUDIO_MUXER 0 | ||
| 2630 | +%define CONFIG_MICRODVD_MUXER 0 | ||
| 2631 | +%define CONFIG_MJPEG_MUXER 0 | ||
| 2632 | +%define CONFIG_MLP_MUXER 0 | ||
| 2633 | +%define CONFIG_MMF_MUXER 0 | ||
| 2634 | +%define CONFIG_MOV_MUXER 0 | ||
| 2635 | +%define CONFIG_MP2_MUXER 0 | ||
| 2636 | +%define CONFIG_MP3_MUXER 0 | ||
| 2637 | +%define CONFIG_MP4_MUXER 0 | ||
| 2638 | +%define CONFIG_MPEG1SYSTEM_MUXER 0 | ||
| 2639 | +%define CONFIG_MPEG1VCD_MUXER 0 | ||
| 2640 | +%define CONFIG_MPEG1VIDEO_MUXER 0 | ||
| 2641 | +%define CONFIG_MPEG2DVD_MUXER 0 | ||
| 2642 | +%define CONFIG_MPEG2SVCD_MUXER 0 | ||
| 2643 | +%define CONFIG_MPEG2VIDEO_MUXER 0 | ||
| 2644 | +%define CONFIG_MPEG2VOB_MUXER 0 | ||
| 2645 | +%define CONFIG_MPEGTS_MUXER 0 | ||
| 2646 | +%define CONFIG_MPJPEG_MUXER 0 | ||
| 2647 | +%define CONFIG_MXF_MUXER 0 | ||
| 2648 | +%define CONFIG_MXF_D10_MUXER 0 | ||
| 2649 | +%define CONFIG_MXF_OPATOM_MUXER 0 | ||
| 2650 | +%define CONFIG_NULL_MUXER 0 | ||
| 2651 | +%define CONFIG_NUT_MUXER 0 | ||
| 2652 | +%define CONFIG_OBU_MUXER 0 | ||
| 2653 | +%define CONFIG_OGA_MUXER 0 | ||
| 2654 | +%define CONFIG_OGG_MUXER 0 | ||
| 2655 | +%define CONFIG_OGV_MUXER 0 | ||
| 2656 | +%define CONFIG_OMA_MUXER 0 | ||
| 2657 | +%define CONFIG_OPUS_MUXER 0 | ||
| 2658 | +%define CONFIG_PCM_ALAW_MUXER 0 | ||
| 2659 | +%define CONFIG_PCM_MULAW_MUXER 0 | ||
| 2660 | +%define CONFIG_PCM_VIDC_MUXER 0 | ||
| 2661 | +%define CONFIG_PCM_F64BE_MUXER 0 | ||
| 2662 | +%define CONFIG_PCM_F64LE_MUXER 0 | ||
| 2663 | +%define CONFIG_PCM_F32BE_MUXER 0 | ||
| 2664 | +%define CONFIG_PCM_F32LE_MUXER 0 | ||
| 2665 | +%define CONFIG_PCM_S32BE_MUXER 0 | ||
| 2666 | +%define CONFIG_PCM_S32LE_MUXER 0 | ||
| 2667 | +%define CONFIG_PCM_S24BE_MUXER 0 | ||
| 2668 | +%define CONFIG_PCM_S24LE_MUXER 0 | ||
| 2669 | +%define CONFIG_PCM_S16BE_MUXER 0 | ||
| 2670 | +%define CONFIG_PCM_S16LE_MUXER 0 | ||
| 2671 | +%define CONFIG_PCM_S8_MUXER 0 | ||
| 2672 | +%define CONFIG_PCM_U32BE_MUXER 0 | ||
| 2673 | +%define CONFIG_PCM_U32LE_MUXER 0 | ||
| 2674 | +%define CONFIG_PCM_U24BE_MUXER 0 | ||
| 2675 | +%define CONFIG_PCM_U24LE_MUXER 0 | ||
| 2676 | +%define CONFIG_PCM_U16BE_MUXER 0 | ||
| 2677 | +%define CONFIG_PCM_U16LE_MUXER 0 | ||
| 2678 | +%define CONFIG_PCM_U8_MUXER 0 | ||
| 2679 | +%define CONFIG_PSP_MUXER 0 | ||
| 2680 | +%define CONFIG_RAWVIDEO_MUXER 0 | ||
| 2681 | +%define CONFIG_RM_MUXER 0 | ||
| 2682 | +%define CONFIG_ROQ_MUXER 0 | ||
| 2683 | +%define CONFIG_RSO_MUXER 0 | ||
| 2684 | +%define CONFIG_RTP_MUXER 0 | ||
| 2685 | +%define CONFIG_RTP_MPEGTS_MUXER 0 | ||
| 2686 | +%define CONFIG_RTSP_MUXER 0 | ||
| 2687 | +%define CONFIG_SAP_MUXER 0 | ||
| 2688 | +%define CONFIG_SBC_MUXER 0 | ||
| 2689 | +%define CONFIG_SCC_MUXER 0 | ||
| 2690 | +%define CONFIG_SEGAFILM_MUXER 0 | ||
| 2691 | +%define CONFIG_SEGMENT_MUXER 0 | ||
| 2692 | +%define CONFIG_STREAM_SEGMENT_MUXER 0 | ||
| 2693 | +%define CONFIG_SMJPEG_MUXER 0 | ||
| 2694 | +%define CONFIG_SMOOTHSTREAMING_MUXER 0 | ||
| 2695 | +%define CONFIG_SOX_MUXER 0 | ||
| 2696 | +%define CONFIG_SPX_MUXER 0 | ||
| 2697 | +%define CONFIG_SPDIF_MUXER 0 | ||
| 2698 | +%define CONFIG_SRT_MUXER 0 | ||
| 2699 | +%define CONFIG_STREAMHASH_MUXER 0 | ||
| 2700 | +%define CONFIG_SUP_MUXER 0 | ||
| 2701 | +%define CONFIG_SWF_MUXER 0 | ||
| 2702 | +%define CONFIG_TEE_MUXER 0 | ||
| 2703 | +%define CONFIG_TG2_MUXER 0 | ||
| 2704 | +%define CONFIG_TGP_MUXER 0 | ||
| 2705 | +%define CONFIG_MKVTIMESTAMP_V2_MUXER 0 | ||
| 2706 | +%define CONFIG_TRUEHD_MUXER 0 | ||
| 2707 | +%define CONFIG_TTA_MUXER 0 | ||
| 2708 | +%define CONFIG_TTML_MUXER 0 | ||
| 2709 | +%define CONFIG_UNCODEDFRAMECRC_MUXER 0 | ||
| 2710 | +%define CONFIG_VC1_MUXER 0 | ||
| 2711 | +%define CONFIG_VC1T_MUXER 0 | ||
| 2712 | +%define CONFIG_VOC_MUXER 0 | ||
| 2713 | +%define CONFIG_W64_MUXER 0 | ||
| 2714 | +%define CONFIG_WAV_MUXER 0 | ||
| 2715 | +%define CONFIG_WEBM_MUXER 0 | ||
| 2716 | +%define CONFIG_WEBM_DASH_MANIFEST_MUXER 0 | ||
| 2717 | +%define CONFIG_WEBM_CHUNK_MUXER 0 | ||
| 2718 | +%define CONFIG_WEBP_MUXER 0 | ||
| 2719 | +%define CONFIG_WEBVTT_MUXER 0 | ||
| 2720 | +%define CONFIG_WSAUD_MUXER 0 | ||
| 2721 | +%define CONFIG_WTV_MUXER 0 | ||
| 2722 | +%define CONFIG_WV_MUXER 0 | ||
| 2723 | +%define CONFIG_YUV4MPEGPIPE_MUXER 0 | ||
| 2724 | +%define CONFIG_CHROMAPRINT_MUXER 0 | ||
| 2725 | +%define CONFIG_ASYNC_PROTOCOL 0 | ||
| 2726 | +%define CONFIG_BLURAY_PROTOCOL 0 | ||
| 2727 | +%define CONFIG_CACHE_PROTOCOL 0 | ||
| 2728 | +%define CONFIG_CONCAT_PROTOCOL 0 | ||
| 2729 | +%define CONFIG_CONCATF_PROTOCOL 0 | ||
| 2730 | +%define CONFIG_CRYPTO_PROTOCOL 0 | ||
| 2731 | +%define CONFIG_DATA_PROTOCOL 0 | ||
| 2732 | +%define CONFIG_FFRTMPCRYPT_PROTOCOL 0 | ||
| 2733 | +%define CONFIG_FFRTMPHTTP_PROTOCOL 0 | ||
| 2734 | +%define CONFIG_FILE_PROTOCOL 0 | ||
| 2735 | +%define CONFIG_FTP_PROTOCOL 0 | ||
| 2736 | +%define CONFIG_GOPHER_PROTOCOL 0 | ||
| 2737 | +%define CONFIG_GOPHERS_PROTOCOL 0 | ||
| 2738 | +%define CONFIG_HLS_PROTOCOL 0 | ||
| 2739 | +%define CONFIG_HTTP_PROTOCOL 0 | ||
| 2740 | +%define CONFIG_HTTPPROXY_PROTOCOL 0 | ||
| 2741 | +%define CONFIG_HTTPS_PROTOCOL 0 | ||
| 2742 | +%define CONFIG_ICECAST_PROTOCOL 0 | ||
| 2743 | +%define CONFIG_MMSH_PROTOCOL 0 | ||
| 2744 | +%define CONFIG_MMST_PROTOCOL 0 | ||
| 2745 | +%define CONFIG_MD5_PROTOCOL 0 | ||
| 2746 | +%define CONFIG_PIPE_PROTOCOL 0 | ||
| 2747 | +%define CONFIG_PROMPEG_PROTOCOL 0 | ||
| 2748 | +%define CONFIG_RTMP_PROTOCOL 0 | ||
| 2749 | +%define CONFIG_RTMPE_PROTOCOL 0 | ||
| 2750 | +%define CONFIG_RTMPS_PROTOCOL 0 | ||
| 2751 | +%define CONFIG_RTMPT_PROTOCOL 0 | ||
| 2752 | +%define CONFIG_RTMPTE_PROTOCOL 0 | ||
| 2753 | +%define CONFIG_RTMPTS_PROTOCOL 0 | ||
| 2754 | +%define CONFIG_RTP_PROTOCOL 0 | ||
| 2755 | +%define CONFIG_SCTP_PROTOCOL 0 | ||
| 2756 | +%define CONFIG_SRTP_PROTOCOL 0 | ||
| 2757 | +%define CONFIG_SUBFILE_PROTOCOL 0 | ||
| 2758 | +%define CONFIG_TEE_PROTOCOL 0 | ||
| 2759 | +%define CONFIG_TCP_PROTOCOL 0 | ||
| 2760 | +%define CONFIG_TLS_PROTOCOL 0 | ||
| 2761 | +%define CONFIG_UDP_PROTOCOL 0 | ||
| 2762 | +%define CONFIG_UDPLITE_PROTOCOL 0 | ||
| 2763 | +%define CONFIG_UNIX_PROTOCOL 0 | ||
| 2764 | +%define CONFIG_LIBAMQP_PROTOCOL 0 | ||
| 2765 | +%define CONFIG_LIBRIST_PROTOCOL 0 | ||
| 2766 | +%define CONFIG_LIBRTMP_PROTOCOL 0 | ||
| 2767 | +%define CONFIG_LIBRTMPE_PROTOCOL 0 | ||
| 2768 | +%define CONFIG_LIBRTMPS_PROTOCOL 0 | ||
| 2769 | +%define CONFIG_LIBRTMPT_PROTOCOL 0 | ||
| 2770 | +%define CONFIG_LIBRTMPTE_PROTOCOL 0 | ||
| 2771 | +%define CONFIG_LIBSRT_PROTOCOL 0 | ||
| 2772 | +%define CONFIG_LIBSSH_PROTOCOL 0 | ||
| 2773 | +%define CONFIG_LIBSMBCLIENT_PROTOCOL 0 | ||
| 2774 | +%define CONFIG_LIBZMQ_PROTOCOL 0 | ||
diff --git a/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_ia32_config_h b/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_ia32_config_h new file mode 100644 index 0000000..04f0718 --- /dev/null +++ b/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_ia32_config_h | |||
| @@ -0,0 +1,2791 @@ | |||
| 1 | Index: third_party/ffmpeg/chromium/config/Chrome/openbsd/ia32/config.h | ||
| 2 | --- third_party/ffmpeg/chromium/config/Chrome/openbsd/ia32/config.h.orig | ||
| 3 | +++ third_party/ffmpeg/chromium/config/Chrome/openbsd/ia32/config.h | ||
| 4 | @@ -0,0 +1,2787 @@ | ||
| 5 | +/* Automatically generated by configure - do not modify! */ | ||
| 6 | +#ifndef FFMPEG_CONFIG_H | ||
| 7 | +#define FFMPEG_CONFIG_H | ||
| 8 | +/* #define FFMPEG_CONFIGURATION "--disable-everything --disable-all --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --enable-avcodec --enable-avformat --enable-avutil --enable-fft --enable-rdft --enable-static --enable-libopus --disable-debug --disable-bzlib --disable-error-resilience --disable-iconv --disable-lzo --disable-network --disable-schannel --disable-sdl2 --disable-symver --disable-xlib --disable-zlib --disable-securetransport --disable-faan --disable-alsa --disable-autodetect --enable-decoder='vorbis,libopus,flac' --enable-decoder='pcm_u8,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le,mp3' --enable-decoder='pcm_s16be,pcm_s24be,pcm_mulaw,pcm_alaw' --enable-demuxer='ogg,matroska,wav,flac,mp3,mov' --enable-parser='opus,vorbis,flac,mpegaudio,vp9' --extra-cflags=-I/usr/local/google/home/jrummell/chromium/src/third_party/opus/src/include --disable-linux-perf --x86asmexe=nasm --optflags=-O2 --enable-decoder='theora,vp8' --enable-parser='vp3,vp8' --arch=i686 --extra-cflags=-m32 --extra-ldflags=-m32 --enable-pic --cc=clang --cxx=clang++ --ld=clang --enable-decoder='aac,h264' --enable-demuxer=aac --enable-parser='aac,h264'" -- elide long configuration string from binary */ | ||
| 9 | +#define FFMPEG_LICENSE "LGPL version 2.1 or later" | ||
| 10 | +#define CONFIG_THIS_YEAR 2022 | ||
| 11 | +#define FFMPEG_DATADIR "/usr/local/share/ffmpeg" | ||
| 12 | +#define AVCONV_DATADIR "/usr/local/share/ffmpeg" | ||
| 13 | +#define CC_IDENT "OpenBSD clang version 13.0.0" | ||
| 14 | +#define OS_NAME openbsd | ||
| 15 | +#define av_restrict restrict | ||
| 16 | +#define EXTERN_PREFIX "" | ||
| 17 | +#define EXTERN_ASM | ||
| 18 | +#define BUILDSUF "" | ||
| 19 | +#define SLIBSUF ".so" | ||
| 20 | +#define HAVE_MMX2 HAVE_MMXEXT | ||
| 21 | +#define SWS_MAX_FILTER_SIZE 256 | ||
| 22 | +#define ARCH_AARCH64 0 | ||
| 23 | +#define ARCH_ALPHA 0 | ||
| 24 | +#define ARCH_ARM 0 | ||
| 25 | +#define ARCH_AVR32 0 | ||
| 26 | +#define ARCH_AVR32_AP 0 | ||
| 27 | +#define ARCH_AVR32_UC 0 | ||
| 28 | +#define ARCH_BFIN 0 | ||
| 29 | +#define ARCH_IA64 0 | ||
| 30 | +#define ARCH_LOONGARCH 0 | ||
| 31 | +#define ARCH_LOONGARCH32 0 | ||
| 32 | +#define ARCH_LOONGARCH64 0 | ||
| 33 | +#define ARCH_M68K 0 | ||
| 34 | +#define ARCH_MIPS 0 | ||
| 35 | +#define ARCH_MIPS64 0 | ||
| 36 | +#define ARCH_PARISC 0 | ||
| 37 | +#define ARCH_PPC 0 | ||
| 38 | +#define ARCH_PPC64 0 | ||
| 39 | +#define ARCH_RISCV 0 | ||
| 40 | +#define ARCH_S390 0 | ||
| 41 | +#define ARCH_SH4 0 | ||
| 42 | +#define ARCH_SPARC 0 | ||
| 43 | +#define ARCH_SPARC64 0 | ||
| 44 | +#define ARCH_TILEGX 0 | ||
| 45 | +#define ARCH_TILEPRO 0 | ||
| 46 | +#define ARCH_TOMI 0 | ||
| 47 | +#define ARCH_X86 1 | ||
| 48 | +#define ARCH_X86_32 1 | ||
| 49 | +#define ARCH_X86_64 0 | ||
| 50 | +#define HAVE_ARMV5TE 0 | ||
| 51 | +#define HAVE_ARMV6 0 | ||
| 52 | +#define HAVE_ARMV6T2 0 | ||
| 53 | +#define HAVE_ARMV8 0 | ||
| 54 | +#define HAVE_NEON 0 | ||
| 55 | +#define HAVE_VFP 0 | ||
| 56 | +#define HAVE_VFPV3 0 | ||
| 57 | +#define HAVE_SETEND 0 | ||
| 58 | +#define HAVE_ALTIVEC 0 | ||
| 59 | +#define HAVE_DCBZL 0 | ||
| 60 | +#define HAVE_LDBRX 0 | ||
| 61 | +#define HAVE_POWER8 0 | ||
| 62 | +#define HAVE_PPC4XX 0 | ||
| 63 | +#define HAVE_VSX 0 | ||
| 64 | +#define HAVE_AESNI 1 | ||
| 65 | +#define HAVE_AMD3DNOW 1 | ||
| 66 | +#define HAVE_AMD3DNOWEXT 1 | ||
| 67 | +#define HAVE_AVX 1 | ||
| 68 | +#define HAVE_AVX2 1 | ||
| 69 | +#define HAVE_AVX512 1 | ||
| 70 | +#define HAVE_FMA3 1 | ||
| 71 | +#define HAVE_FMA4 1 | ||
| 72 | +#define HAVE_MMX 1 | ||
| 73 | +#define HAVE_MMXEXT 1 | ||
| 74 | +#define HAVE_SSE 1 | ||
| 75 | +#define HAVE_SSE2 1 | ||
| 76 | +#define HAVE_SSE3 1 | ||
| 77 | +#define HAVE_SSE4 1 | ||
| 78 | +#define HAVE_SSE42 1 | ||
| 79 | +#define HAVE_SSSE3 1 | ||
| 80 | +#define HAVE_XOP 1 | ||
| 81 | +#define HAVE_CPUNOP 0 | ||
| 82 | +#define HAVE_I686 1 | ||
| 83 | +#define HAVE_MIPSFPU 0 | ||
| 84 | +#define HAVE_MIPS32R2 0 | ||
| 85 | +#define HAVE_MIPS32R5 0 | ||
| 86 | +#define HAVE_MIPS64R2 0 | ||
| 87 | +#define HAVE_MIPS32R6 0 | ||
| 88 | +#define HAVE_MIPS64R6 0 | ||
| 89 | +#define HAVE_MIPSDSP 0 | ||
| 90 | +#define HAVE_MIPSDSPR2 0 | ||
| 91 | +#define HAVE_MSA 0 | ||
| 92 | +#define HAVE_LOONGSON2 0 | ||
| 93 | +#define HAVE_LOONGSON3 0 | ||
| 94 | +#define HAVE_MMI 0 | ||
| 95 | +#define HAVE_LSX 0 | ||
| 96 | +#define HAVE_LASX 0 | ||
| 97 | +#define HAVE_ARMV5TE_EXTERNAL 0 | ||
| 98 | +#define HAVE_ARMV6_EXTERNAL 0 | ||
| 99 | +#define HAVE_ARMV6T2_EXTERNAL 0 | ||
| 100 | +#define HAVE_ARMV8_EXTERNAL 0 | ||
| 101 | +#define HAVE_NEON_EXTERNAL 0 | ||
| 102 | +#define HAVE_VFP_EXTERNAL 0 | ||
| 103 | +#define HAVE_VFPV3_EXTERNAL 0 | ||
| 104 | +#define HAVE_SETEND_EXTERNAL 0 | ||
| 105 | +#define HAVE_ALTIVEC_EXTERNAL 0 | ||
| 106 | +#define HAVE_DCBZL_EXTERNAL 0 | ||
| 107 | +#define HAVE_LDBRX_EXTERNAL 0 | ||
| 108 | +#define HAVE_POWER8_EXTERNAL 0 | ||
| 109 | +#define HAVE_PPC4XX_EXTERNAL 0 | ||
| 110 | +#define HAVE_VSX_EXTERNAL 0 | ||
| 111 | +#define HAVE_AESNI_EXTERNAL 1 | ||
| 112 | +#define HAVE_AMD3DNOW_EXTERNAL 1 | ||
| 113 | +#define HAVE_AMD3DNOWEXT_EXTERNAL 1 | ||
| 114 | +#define HAVE_AVX_EXTERNAL 1 | ||
| 115 | +#define HAVE_AVX2_EXTERNAL 1 | ||
| 116 | +#define HAVE_AVX512_EXTERNAL 1 | ||
| 117 | +#define HAVE_FMA3_EXTERNAL 1 | ||
| 118 | +#define HAVE_FMA4_EXTERNAL 1 | ||
| 119 | +#define HAVE_MMX_EXTERNAL 1 | ||
| 120 | +#define HAVE_MMXEXT_EXTERNAL 1 | ||
| 121 | +#define HAVE_SSE_EXTERNAL 1 | ||
| 122 | +#define HAVE_SSE2_EXTERNAL 1 | ||
| 123 | +#define HAVE_SSE3_EXTERNAL 1 | ||
| 124 | +#define HAVE_SSE4_EXTERNAL 1 | ||
| 125 | +#define HAVE_SSE42_EXTERNAL 1 | ||
| 126 | +#define HAVE_SSSE3_EXTERNAL 1 | ||
| 127 | +#define HAVE_XOP_EXTERNAL 1 | ||
| 128 | +#define HAVE_CPUNOP_EXTERNAL 0 | ||
| 129 | +#define HAVE_I686_EXTERNAL 0 | ||
| 130 | +#define HAVE_MIPSFPU_EXTERNAL 0 | ||
| 131 | +#define HAVE_MIPS32R2_EXTERNAL 0 | ||
| 132 | +#define HAVE_MIPS32R5_EXTERNAL 0 | ||
| 133 | +#define HAVE_MIPS64R2_EXTERNAL 0 | ||
| 134 | +#define HAVE_MIPS32R6_EXTERNAL 0 | ||
| 135 | +#define HAVE_MIPS64R6_EXTERNAL 0 | ||
| 136 | +#define HAVE_MIPSDSP_EXTERNAL 0 | ||
| 137 | +#define HAVE_MIPSDSPR2_EXTERNAL 0 | ||
| 138 | +#define HAVE_MSA_EXTERNAL 0 | ||
| 139 | +#define HAVE_LOONGSON2_EXTERNAL 0 | ||
| 140 | +#define HAVE_LOONGSON3_EXTERNAL 0 | ||
| 141 | +#define HAVE_MMI_EXTERNAL 0 | ||
| 142 | +#define HAVE_LSX_EXTERNAL 0 | ||
| 143 | +#define HAVE_LASX_EXTERNAL 0 | ||
| 144 | +#define HAVE_ARMV5TE_INLINE 0 | ||
| 145 | +#define HAVE_ARMV6_INLINE 0 | ||
| 146 | +#define HAVE_ARMV6T2_INLINE 0 | ||
| 147 | +#define HAVE_ARMV8_INLINE 0 | ||
| 148 | +#define HAVE_NEON_INLINE 0 | ||
| 149 | +#define HAVE_VFP_INLINE 0 | ||
| 150 | +#define HAVE_VFPV3_INLINE 0 | ||
| 151 | +#define HAVE_SETEND_INLINE 0 | ||
| 152 | +#define HAVE_ALTIVEC_INLINE 0 | ||
| 153 | +#define HAVE_DCBZL_INLINE 0 | ||
| 154 | +#define HAVE_LDBRX_INLINE 0 | ||
| 155 | +#define HAVE_POWER8_INLINE 0 | ||
| 156 | +#define HAVE_PPC4XX_INLINE 0 | ||
| 157 | +#define HAVE_VSX_INLINE 0 | ||
| 158 | +#define HAVE_AESNI_INLINE 1 | ||
| 159 | +#define HAVE_AMD3DNOW_INLINE 1 | ||
| 160 | +#define HAVE_AMD3DNOWEXT_INLINE 1 | ||
| 161 | +#define HAVE_AVX_INLINE 1 | ||
| 162 | +#define HAVE_AVX2_INLINE 1 | ||
| 163 | +#define HAVE_AVX512_INLINE 1 | ||
| 164 | +#define HAVE_FMA3_INLINE 1 | ||
| 165 | +#define HAVE_FMA4_INLINE 1 | ||
| 166 | +#define HAVE_MMX_INLINE 1 | ||
| 167 | +#define HAVE_MMXEXT_INLINE 1 | ||
| 168 | +#define HAVE_SSE_INLINE 1 | ||
| 169 | +#define HAVE_SSE2_INLINE 1 | ||
| 170 | +#define HAVE_SSE3_INLINE 1 | ||
| 171 | +#define HAVE_SSE4_INLINE 1 | ||
| 172 | +#define HAVE_SSE42_INLINE 1 | ||
| 173 | +#define HAVE_SSSE3_INLINE 1 | ||
| 174 | +#define HAVE_XOP_INLINE 1 | ||
| 175 | +#define HAVE_CPUNOP_INLINE 0 | ||
| 176 | +#define HAVE_I686_INLINE 0 | ||
| 177 | +#define HAVE_MIPSFPU_INLINE 0 | ||
| 178 | +#define HAVE_MIPS32R2_INLINE 0 | ||
| 179 | +#define HAVE_MIPS32R5_INLINE 0 | ||
| 180 | +#define HAVE_MIPS64R2_INLINE 0 | ||
| 181 | +#define HAVE_MIPS32R6_INLINE 0 | ||
| 182 | +#define HAVE_MIPS64R6_INLINE 0 | ||
| 183 | +#define HAVE_MIPSDSP_INLINE 0 | ||
| 184 | +#define HAVE_MIPSDSPR2_INLINE 0 | ||
| 185 | +#define HAVE_MSA_INLINE 0 | ||
| 186 | +#define HAVE_LOONGSON2_INLINE 0 | ||
| 187 | +#define HAVE_LOONGSON3_INLINE 0 | ||
| 188 | +#define HAVE_MMI_INLINE 0 | ||
| 189 | +#define HAVE_LSX_INLINE 0 | ||
| 190 | +#define HAVE_LASX_INLINE 0 | ||
| 191 | +#define HAVE_ALIGNED_STACK 0 | ||
| 192 | +#define HAVE_FAST_64BIT 0 | ||
| 193 | +#define HAVE_FAST_CLZ 1 | ||
| 194 | +#define HAVE_FAST_CMOV 0 | ||
| 195 | +#define HAVE_LOCAL_ALIGNED 1 | ||
| 196 | +#define HAVE_SIMD_ALIGN_16 1 | ||
| 197 | +#define HAVE_SIMD_ALIGN_32 1 | ||
| 198 | +#define HAVE_SIMD_ALIGN_64 1 | ||
| 199 | +#define HAVE_ATOMIC_CAS_PTR 0 | ||
| 200 | +#define HAVE_MACHINE_RW_BARRIER 0 | ||
| 201 | +#define HAVE_MEMORYBARRIER 0 | ||
| 202 | +#define HAVE_MM_EMPTY 0 | ||
| 203 | +#define HAVE_RDTSC 0 | ||
| 204 | +#define HAVE_SEM_TIMEDWAIT 1 | ||
| 205 | +#define HAVE_SYNC_VAL_COMPARE_AND_SWAP 1 | ||
| 206 | +#define HAVE_CABS 0 | ||
| 207 | +#define HAVE_CEXP 0 | ||
| 208 | +#define HAVE_INLINE_ASM 1 | ||
| 209 | +#define HAVE_SYMVER 0 | ||
| 210 | +#define HAVE_X86ASM 1 | ||
| 211 | +#define HAVE_BIGENDIAN 0 | ||
| 212 | +#define HAVE_FAST_UNALIGNED 1 | ||
| 213 | +#define HAVE_ARPA_INET_H 0 | ||
| 214 | +#define HAVE_ASM_TYPES_H 0 | ||
| 215 | +#define HAVE_CDIO_PARANOIA_H 0 | ||
| 216 | +#define HAVE_CDIO_PARANOIA_PARANOIA_H 0 | ||
| 217 | +#define HAVE_CUDA_H 0 | ||
| 218 | +#define HAVE_DISPATCH_DISPATCH_H 0 | ||
| 219 | +#define HAVE_DEV_BKTR_IOCTL_BT848_H 0 | ||
| 220 | +#define HAVE_DEV_BKTR_IOCTL_METEOR_H 0 | ||
| 221 | +#define HAVE_DEV_IC_BT8XX_H 1 | ||
| 222 | +#define HAVE_DEV_VIDEO_BKTR_IOCTL_BT848_H 0 | ||
| 223 | +#define HAVE_DEV_VIDEO_METEOR_IOCTL_METEOR_H 0 | ||
| 224 | +#define HAVE_DIRECT_H 0 | ||
| 225 | +#define HAVE_DIRENT_H 1 | ||
| 226 | +#define HAVE_DXGIDEBUG_H 0 | ||
| 227 | +#define HAVE_DXVA_H 0 | ||
| 228 | +#define HAVE_ES2_GL_H 0 | ||
| 229 | +#define HAVE_GSM_H 0 | ||
| 230 | +#define HAVE_IO_H 0 | ||
| 231 | +#define HAVE_LINUX_DMA_BUF_H 0 | ||
| 232 | +#define HAVE_LINUX_PERF_EVENT_H 0 | ||
| 233 | +#define HAVE_MACHINE_IOCTL_BT848_H 0 | ||
| 234 | +#define HAVE_MACHINE_IOCTL_METEOR_H 0 | ||
| 235 | +#define HAVE_MALLOC_H 0 | ||
| 236 | +#define HAVE_OPENCV2_CORE_CORE_C_H 0 | ||
| 237 | +#define HAVE_OPENGL_GL3_H 0 | ||
| 238 | +#define HAVE_POLL_H 1 | ||
| 239 | +#define HAVE_SYS_PARAM_H 1 | ||
| 240 | +#define HAVE_SYS_RESOURCE_H 1 | ||
| 241 | +#define HAVE_SYS_SELECT_H 1 | ||
| 242 | +#define HAVE_SYS_SOUNDCARD_H 0 | ||
| 243 | +#define HAVE_SYS_TIME_H 1 | ||
| 244 | +#define HAVE_SYS_UN_H 1 | ||
| 245 | +#define HAVE_SYS_VIDEOIO_H 1 | ||
| 246 | +#define HAVE_TERMIOS_H 1 | ||
| 247 | +#define HAVE_UDPLITE_H 0 | ||
| 248 | +#define HAVE_UNISTD_H 1 | ||
| 249 | +#define HAVE_VALGRIND_VALGRIND_H 0 | ||
| 250 | +#define HAVE_WINDOWS_H 0 | ||
| 251 | +#define HAVE_WINSOCK2_H 0 | ||
| 252 | +#define HAVE_INTRINSICS_NEON 0 | ||
| 253 | +#define HAVE_ATANF 1 | ||
| 254 | +#define HAVE_ATAN2F 1 | ||
| 255 | +#define HAVE_CBRT 1 | ||
| 256 | +#define HAVE_CBRTF 1 | ||
| 257 | +#define HAVE_COPYSIGN 1 | ||
| 258 | +#define HAVE_COSF 1 | ||
| 259 | +#define HAVE_ERF 1 | ||
| 260 | +#define HAVE_EXP2 1 | ||
| 261 | +#define HAVE_EXP2F 1 | ||
| 262 | +#define HAVE_EXPF 1 | ||
| 263 | +#define HAVE_HYPOT 1 | ||
| 264 | +#define HAVE_ISFINITE 1 | ||
| 265 | +#define HAVE_ISINF 1 | ||
| 266 | +#define HAVE_ISNAN 1 | ||
| 267 | +#define HAVE_LDEXPF 1 | ||
| 268 | +#define HAVE_LLRINT 1 | ||
| 269 | +#define HAVE_LLRINTF 1 | ||
| 270 | +#define HAVE_LOG2 1 | ||
| 271 | +#define HAVE_LOG2F 1 | ||
| 272 | +#define HAVE_LOG10F 1 | ||
| 273 | +#define HAVE_LRINT 1 | ||
| 274 | +#define HAVE_LRINTF 1 | ||
| 275 | +#define HAVE_POWF 1 | ||
| 276 | +#define HAVE_RINT 1 | ||
| 277 | +#define HAVE_ROUND 1 | ||
| 278 | +#define HAVE_ROUNDF 1 | ||
| 279 | +#define HAVE_SINF 1 | ||
| 280 | +#define HAVE_TRUNC 1 | ||
| 281 | +#define HAVE_TRUNCF 1 | ||
| 282 | +#define HAVE_DOS_PATHS 0 | ||
| 283 | +#define HAVE_LIBC_MSVCRT 0 | ||
| 284 | +#define HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS 0 | ||
| 285 | +#define HAVE_SECTION_DATA_REL_RO 1 | ||
| 286 | +#define HAVE_THREADS 1 | ||
| 287 | +#define HAVE_UWP 0 | ||
| 288 | +#define HAVE_WINRT 0 | ||
| 289 | +#define HAVE_ACCESS 1 | ||
| 290 | +#define HAVE_ALIGNED_MALLOC 0 | ||
| 291 | +#define HAVE_ARC4RANDOM 1 | ||
| 292 | +#define HAVE_CLOCK_GETTIME 1 | ||
| 293 | +#define HAVE_CLOSESOCKET 0 | ||
| 294 | +#define HAVE_COMMANDLINETOARGVW 0 | ||
| 295 | +#define HAVE_FCNTL 1 | ||
| 296 | +#define HAVE_GETADDRINFO 0 | ||
| 297 | +#define HAVE_GETHRTIME 0 | ||
| 298 | +#define HAVE_GETOPT 1 | ||
| 299 | +#define HAVE_GETMODULEHANDLE 0 | ||
| 300 | +#define HAVE_GETPROCESSAFFINITYMASK 0 | ||
| 301 | +#define HAVE_GETPROCESSMEMORYINFO 0 | ||
| 302 | +#define HAVE_GETPROCESSTIMES 0 | ||
| 303 | +#define HAVE_GETRUSAGE 1 | ||
| 304 | +#define HAVE_GETSTDHANDLE 0 | ||
| 305 | +#define HAVE_GETSYSTEMTIMEASFILETIME 0 | ||
| 306 | +#define HAVE_GETTIMEOFDAY 1 | ||
| 307 | +#define HAVE_GLOB 1 | ||
| 308 | +#define HAVE_GLXGETPROCADDRESS 0 | ||
| 309 | +#define HAVE_GMTIME_R 1 | ||
| 310 | +#define HAVE_INET_ATON 0 | ||
| 311 | +#define HAVE_ISATTY 1 | ||
| 312 | +#define HAVE_KBHIT 0 | ||
| 313 | +#define HAVE_LOCALTIME_R 1 | ||
| 314 | +#define HAVE_LSTAT 1 | ||
| 315 | +#define HAVE_LZO1X_999_COMPRESS 0 | ||
| 316 | +#define HAVE_MACH_ABSOLUTE_TIME 0 | ||
| 317 | +#define HAVE_MAPVIEWOFFILE 0 | ||
| 318 | +#define HAVE_MEMALIGN 0 | ||
| 319 | +#define HAVE_MKSTEMP 1 | ||
| 320 | +#define HAVE_MMAP 1 | ||
| 321 | +#define HAVE_MPROTECT 1 | ||
| 322 | +#define HAVE_NANOSLEEP 1 | ||
| 323 | +#define HAVE_PEEKNAMEDPIPE 0 | ||
| 324 | +#define HAVE_POSIX_MEMALIGN 1 | ||
| 325 | +#define HAVE_PTHREAD_CANCEL 1 | ||
| 326 | +#define HAVE_SCHED_GETAFFINITY 0 | ||
| 327 | +#define HAVE_SECITEMIMPORT 0 | ||
| 328 | +#define HAVE_SETCONSOLETEXTATTRIBUTE 0 | ||
| 329 | +#define HAVE_SETCONSOLECTRLHANDLER 0 | ||
| 330 | +#define HAVE_SETDLLDIRECTORY 0 | ||
| 331 | +#define HAVE_SETMODE 0 | ||
| 332 | +#define HAVE_SETRLIMIT 1 | ||
| 333 | +#define HAVE_SLEEP 0 | ||
| 334 | +#define HAVE_STRERROR_R 1 | ||
| 335 | +#define HAVE_SYSCONF 1 | ||
| 336 | +#define HAVE_SYSCTL 1 | ||
| 337 | +#define HAVE_USLEEP 1 | ||
| 338 | +#define HAVE_UTGETOSTYPEFROMSTRING 0 | ||
| 339 | +#define HAVE_VIRTUALALLOC 0 | ||
| 340 | +#define HAVE_WGLGETPROCADDRESS 0 | ||
| 341 | +#define HAVE_BCRYPT 0 | ||
| 342 | +#define HAVE_VAAPI_DRM 0 | ||
| 343 | +#define HAVE_VAAPI_X11 0 | ||
| 344 | +#define HAVE_VDPAU_X11 0 | ||
| 345 | +#define HAVE_PTHREADS 1 | ||
| 346 | +#define HAVE_OS2THREADS 0 | ||
| 347 | +#define HAVE_W32THREADS 0 | ||
| 348 | +#define HAVE_AS_ARCH_DIRECTIVE 0 | ||
| 349 | +#define HAVE_AS_DN_DIRECTIVE 0 | ||
| 350 | +#define HAVE_AS_FPU_DIRECTIVE 0 | ||
| 351 | +#define HAVE_AS_FUNC 0 | ||
| 352 | +#define HAVE_AS_OBJECT_ARCH 0 | ||
| 353 | +#define HAVE_ASM_MOD_Q 0 | ||
| 354 | +#define HAVE_BLOCKS_EXTENSION 0 | ||
| 355 | +/* #define HAVE_EBP_AVAILABLE 1 -- ebp selection is done by the chrome build */ | ||
| 356 | +#define HAVE_EBX_AVAILABLE 1 | ||
| 357 | +#define HAVE_GNU_AS 0 | ||
| 358 | +#define HAVE_GNU_WINDRES 0 | ||
| 359 | +#define HAVE_IBM_ASM 0 | ||
| 360 | +#define HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS 1 | ||
| 361 | +#define HAVE_INLINE_ASM_LABELS 1 | ||
| 362 | +#define HAVE_INLINE_ASM_NONLOCAL_LABELS 1 | ||
| 363 | +#define HAVE_PRAGMA_DEPRECATED 1 | ||
| 364 | +#define HAVE_RSYNC_CONTIMEOUT 1 | ||
| 365 | +#define HAVE_SYMVER_ASM_LABEL 1 | ||
| 366 | +#define HAVE_SYMVER_GNU_ASM 1 | ||
| 367 | +#define HAVE_VFP_ARGS 0 | ||
| 368 | +#define HAVE_XFORM_ASM 0 | ||
| 369 | +#define HAVE_XMM_CLOBBERS 1 | ||
| 370 | +#define HAVE_KCMVIDEOCODECTYPE_HEVC 0 | ||
| 371 | +#define HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA 0 | ||
| 372 | +#define HAVE_KCMVIDEOCODECTYPE_VP9 0 | ||
| 373 | +#define HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 374 | +#define HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE 0 | ||
| 375 | +#define HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 376 | +#define HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE 0 | ||
| 377 | +#define HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE 0 | ||
| 378 | +#define HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 379 | +#define HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE 0 | ||
| 380 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ 0 | ||
| 381 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG 0 | ||
| 382 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_LINEAR 0 | ||
| 383 | +#define HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020 0 | ||
| 384 | +#define HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020 0 | ||
| 385 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020 0 | ||
| 386 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1 0 | ||
| 387 | +#define HAVE_SOCKLEN_T 0 | ||
| 388 | +#define HAVE_STRUCT_ADDRINFO 0 | ||
| 389 | +#define HAVE_STRUCT_GROUP_SOURCE_REQ 0 | ||
| 390 | +#define HAVE_STRUCT_IP_MREQ_SOURCE 0 | ||
| 391 | +#define HAVE_STRUCT_IPV6_MREQ 0 | ||
| 392 | +#define HAVE_STRUCT_MSGHDR_MSG_FLAGS 0 | ||
| 393 | +#define HAVE_STRUCT_POLLFD 0 | ||
| 394 | +#define HAVE_STRUCT_RUSAGE_RU_MAXRSS 1 | ||
| 395 | +#define HAVE_STRUCT_SCTP_EVENT_SUBSCRIBE 0 | ||
| 396 | +#define HAVE_STRUCT_SOCKADDR_IN6 0 | ||
| 397 | +#define HAVE_STRUCT_SOCKADDR_SA_LEN 0 | ||
| 398 | +#define HAVE_STRUCT_SOCKADDR_STORAGE 0 | ||
| 399 | +#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | ||
| 400 | +#define HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE 1 | ||
| 401 | +#define HAVE_GZIP 1 | ||
| 402 | +#define HAVE_LIBDRM_GETFB2 0 | ||
| 403 | +#define HAVE_MAKEINFO 1 | ||
| 404 | +#define HAVE_MAKEINFO_HTML 0 | ||
| 405 | +#define HAVE_OPENCL_D3D11 0 | ||
| 406 | +#define HAVE_OPENCL_DRM_ARM 0 | ||
| 407 | +#define HAVE_OPENCL_DRM_BEIGNET 0 | ||
| 408 | +#define HAVE_OPENCL_DXVA2 0 | ||
| 409 | +#define HAVE_OPENCL_VAAPI_BEIGNET 0 | ||
| 410 | +#define HAVE_OPENCL_VAAPI_INTEL_MEDIA 0 | ||
| 411 | +#define HAVE_PERL 1 | ||
| 412 | +#define HAVE_POD2MAN 1 | ||
| 413 | +#define HAVE_TEXI2HTML 0 | ||
| 414 | +#define HAVE_XMLLINT 1 | ||
| 415 | +#define HAVE_ZLIB_GZIP 0 | ||
| 416 | +#define CONFIG_DOC 0 | ||
| 417 | +#define CONFIG_HTMLPAGES 0 | ||
| 418 | +#define CONFIG_MANPAGES 0 | ||
| 419 | +#define CONFIG_PODPAGES 0 | ||
| 420 | +#define CONFIG_TXTPAGES 0 | ||
| 421 | +#define CONFIG_AVIO_LIST_DIR_EXAMPLE 1 | ||
| 422 | +#define CONFIG_AVIO_READING_EXAMPLE 1 | ||
| 423 | +#define CONFIG_DECODE_AUDIO_EXAMPLE 1 | ||
| 424 | +#define CONFIG_DECODE_VIDEO_EXAMPLE 1 | ||
| 425 | +#define CONFIG_DEMUXING_DECODING_EXAMPLE 1 | ||
| 426 | +#define CONFIG_ENCODE_AUDIO_EXAMPLE 1 | ||
| 427 | +#define CONFIG_ENCODE_VIDEO_EXAMPLE 1 | ||
| 428 | +#define CONFIG_EXTRACT_MVS_EXAMPLE 1 | ||
| 429 | +#define CONFIG_FILTER_AUDIO_EXAMPLE 0 | ||
| 430 | +#define CONFIG_FILTERING_AUDIO_EXAMPLE 0 | ||
| 431 | +#define CONFIG_FILTERING_VIDEO_EXAMPLE 0 | ||
| 432 | +#define CONFIG_HTTP_MULTICLIENT_EXAMPLE 1 | ||
| 433 | +#define CONFIG_HW_DECODE_EXAMPLE 1 | ||
| 434 | +#define CONFIG_METADATA_EXAMPLE 1 | ||
| 435 | +#define CONFIG_MUXING_EXAMPLE 0 | ||
| 436 | +#define CONFIG_QSVDEC_EXAMPLE 0 | ||
| 437 | +#define CONFIG_REMUXING_EXAMPLE 1 | ||
| 438 | +#define CONFIG_RESAMPLING_AUDIO_EXAMPLE 0 | ||
| 439 | +#define CONFIG_SCALING_VIDEO_EXAMPLE 0 | ||
| 440 | +#define CONFIG_TRANSCODE_AAC_EXAMPLE 0 | ||
| 441 | +#define CONFIG_TRANSCODING_EXAMPLE 0 | ||
| 442 | +#define CONFIG_VAAPI_ENCODE_EXAMPLE 0 | ||
| 443 | +#define CONFIG_VAAPI_TRANSCODE_EXAMPLE 0 | ||
| 444 | +#define CONFIG_AVISYNTH 0 | ||
| 445 | +#define CONFIG_FREI0R 0 | ||
| 446 | +#define CONFIG_LIBCDIO 0 | ||
| 447 | +#define CONFIG_LIBDAVS2 0 | ||
| 448 | +#define CONFIG_LIBRUBBERBAND 0 | ||
| 449 | +#define CONFIG_LIBVIDSTAB 0 | ||
| 450 | +#define CONFIG_LIBX264 0 | ||
| 451 | +#define CONFIG_LIBX265 0 | ||
| 452 | +#define CONFIG_LIBXAVS 0 | ||
| 453 | +#define CONFIG_LIBXAVS2 0 | ||
| 454 | +#define CONFIG_LIBXVID 0 | ||
| 455 | +#define CONFIG_DECKLINK 0 | ||
| 456 | +#define CONFIG_LIBFDK_AAC 0 | ||
| 457 | +#define CONFIG_LIBTLS 0 | ||
| 458 | +#define CONFIG_GMP 0 | ||
| 459 | +#define CONFIG_LIBARIBB24 0 | ||
| 460 | +#define CONFIG_LIBLENSFUN 0 | ||
| 461 | +#define CONFIG_LIBOPENCORE_AMRNB 0 | ||
| 462 | +#define CONFIG_LIBOPENCORE_AMRWB 0 | ||
| 463 | +#define CONFIG_LIBVO_AMRWBENC 0 | ||
| 464 | +#define CONFIG_MBEDTLS 0 | ||
| 465 | +#define CONFIG_RKMPP 0 | ||
| 466 | +#define CONFIG_LIBSMBCLIENT 0 | ||
| 467 | +#define CONFIG_CHROMAPRINT 0 | ||
| 468 | +#define CONFIG_GCRYPT 0 | ||
| 469 | +#define CONFIG_GNUTLS 0 | ||
| 470 | +#define CONFIG_JNI 0 | ||
| 471 | +#define CONFIG_LADSPA 0 | ||
| 472 | +#define CONFIG_LIBAOM 0 | ||
| 473 | +#define CONFIG_LIBASS 0 | ||
| 474 | +#define CONFIG_LIBBLURAY 0 | ||
| 475 | +#define CONFIG_LIBBS2B 0 | ||
| 476 | +#define CONFIG_LIBCACA 0 | ||
| 477 | +#define CONFIG_LIBCELT 0 | ||
| 478 | +#define CONFIG_LIBCODEC2 0 | ||
| 479 | +#define CONFIG_LIBDAV1D 0 | ||
| 480 | +#define CONFIG_LIBDC1394 0 | ||
| 481 | +#define CONFIG_LIBDRM 0 | ||
| 482 | +#define CONFIG_LIBFLITE 0 | ||
| 483 | +#define CONFIG_LIBFONTCONFIG 0 | ||
| 484 | +#define CONFIG_LIBFREETYPE 0 | ||
| 485 | +#define CONFIG_LIBFRIBIDI 0 | ||
| 486 | +#define CONFIG_LIBGLSLANG 0 | ||
| 487 | +#define CONFIG_LIBGME 0 | ||
| 488 | +#define CONFIG_LIBGSM 0 | ||
| 489 | +#define CONFIG_LIBIEC61883 0 | ||
| 490 | +#define CONFIG_LIBILBC 0 | ||
| 491 | +#define CONFIG_LIBJACK 0 | ||
| 492 | +#define CONFIG_LIBKLVANC 0 | ||
| 493 | +#define CONFIG_LIBKVAZAAR 0 | ||
| 494 | +#define CONFIG_LIBMODPLUG 0 | ||
| 495 | +#define CONFIG_LIBMP3LAME 0 | ||
| 496 | +#define CONFIG_LIBMYSOFA 0 | ||
| 497 | +#define CONFIG_LIBOPENCV 0 | ||
| 498 | +#define CONFIG_LIBOPENH264 0 | ||
| 499 | +#define CONFIG_LIBOPENJPEG 0 | ||
| 500 | +#define CONFIG_LIBOPENMPT 0 | ||
| 501 | +#define CONFIG_LIBOPENVINO 0 | ||
| 502 | +#define CONFIG_LIBOPUS 1 | ||
| 503 | +#define CONFIG_LIBPLACEBO 0 | ||
| 504 | +#define CONFIG_LIBPULSE 0 | ||
| 505 | +#define CONFIG_LIBRABBITMQ 0 | ||
| 506 | +#define CONFIG_LIBRAV1E 0 | ||
| 507 | +#define CONFIG_LIBRIST 0 | ||
| 508 | +#define CONFIG_LIBRSVG 0 | ||
| 509 | +#define CONFIG_LIBRTMP 0 | ||
| 510 | +#define CONFIG_LIBSHADERC 0 | ||
| 511 | +#define CONFIG_LIBSHINE 0 | ||
| 512 | +#define CONFIG_LIBSMBCLIENT 0 | ||
| 513 | +#define CONFIG_LIBSNAPPY 0 | ||
| 514 | +#define CONFIG_LIBSOXR 0 | ||
| 515 | +#define CONFIG_LIBSPEEX 0 | ||
| 516 | +#define CONFIG_LIBSRT 0 | ||
| 517 | +#define CONFIG_LIBSSH 0 | ||
| 518 | +#define CONFIG_LIBSVTAV1 0 | ||
| 519 | +#define CONFIG_LIBTENSORFLOW 0 | ||
| 520 | +#define CONFIG_LIBTESSERACT 0 | ||
| 521 | +#define CONFIG_LIBTHEORA 0 | ||
| 522 | +#define CONFIG_LIBTWOLAME 0 | ||
| 523 | +#define CONFIG_LIBUAVS3D 0 | ||
| 524 | +#define CONFIG_LIBV4L2 0 | ||
| 525 | +#define CONFIG_LIBVMAF 0 | ||
| 526 | +#define CONFIG_LIBVORBIS 0 | ||
| 527 | +#define CONFIG_LIBVPX 0 | ||
| 528 | +#define CONFIG_LIBWEBP 0 | ||
| 529 | +#define CONFIG_LIBXML2 0 | ||
| 530 | +#define CONFIG_LIBZIMG 0 | ||
| 531 | +#define CONFIG_LIBZMQ 0 | ||
| 532 | +#define CONFIG_LIBZVBI 0 | ||
| 533 | +#define CONFIG_LV2 0 | ||
| 534 | +#define CONFIG_MEDIACODEC 0 | ||
| 535 | +#define CONFIG_OPENAL 0 | ||
| 536 | +#define CONFIG_OPENGL 0 | ||
| 537 | +#define CONFIG_OPENSSL 0 | ||
| 538 | +#define CONFIG_POCKETSPHINX 0 | ||
| 539 | +#define CONFIG_VAPOURSYNTH 0 | ||
| 540 | +#define CONFIG_ALSA 0 | ||
| 541 | +#define CONFIG_APPKIT 0 | ||
| 542 | +#define CONFIG_AVFOUNDATION 0 | ||
| 543 | +#define CONFIG_BZLIB 0 | ||
| 544 | +#define CONFIG_COREIMAGE 0 | ||
| 545 | +#define CONFIG_ICONV 0 | ||
| 546 | +#define CONFIG_LIBXCB 0 | ||
| 547 | +#define CONFIG_LIBXCB_SHM 0 | ||
| 548 | +#define CONFIG_LIBXCB_SHAPE 0 | ||
| 549 | +#define CONFIG_LIBXCB_XFIXES 0 | ||
| 550 | +#define CONFIG_LZMA 0 | ||
| 551 | +#define CONFIG_MEDIAFOUNDATION 0 | ||
| 552 | +#define CONFIG_METAL 0 | ||
| 553 | +#define CONFIG_SCHANNEL 0 | ||
| 554 | +#define CONFIG_SDL2 0 | ||
| 555 | +#define CONFIG_SECURETRANSPORT 0 | ||
| 556 | +#define CONFIG_SNDIO 0 | ||
| 557 | +#define CONFIG_XLIB 0 | ||
| 558 | +#define CONFIG_ZLIB 0 | ||
| 559 | +#define CONFIG_CUDA_NVCC 0 | ||
| 560 | +#define CONFIG_CUDA_SDK 0 | ||
| 561 | +#define CONFIG_LIBNPP 0 | ||
| 562 | +#define CONFIG_LIBMFX 0 | ||
| 563 | +#define CONFIG_MMAL 0 | ||
| 564 | +#define CONFIG_OMX 0 | ||
| 565 | +#define CONFIG_OPENCL 0 | ||
| 566 | +#define CONFIG_AMF 0 | ||
| 567 | +#define CONFIG_AUDIOTOOLBOX 0 | ||
| 568 | +#define CONFIG_CRYSTALHD 0 | ||
| 569 | +#define CONFIG_CUDA 0 | ||
| 570 | +#define CONFIG_CUDA_LLVM 0 | ||
| 571 | +#define CONFIG_CUVID 0 | ||
| 572 | +#define CONFIG_D3D11VA 0 | ||
| 573 | +#define CONFIG_DXVA2 0 | ||
| 574 | +#define CONFIG_FFNVCODEC 0 | ||
| 575 | +#define CONFIG_NVDEC 0 | ||
| 576 | +#define CONFIG_NVENC 0 | ||
| 577 | +#define CONFIG_VAAPI 0 | ||
| 578 | +#define CONFIG_VDPAU 0 | ||
| 579 | +#define CONFIG_VIDEOTOOLBOX 0 | ||
| 580 | +#define CONFIG_VULKAN 0 | ||
| 581 | +#define CONFIG_V4L2_M2M 0 | ||
| 582 | +#define CONFIG_XVMC 0 | ||
| 583 | +#define CONFIG_FTRAPV 0 | ||
| 584 | +#define CONFIG_GRAY 0 | ||
| 585 | +#define CONFIG_HARDCODED_TABLES 0 | ||
| 586 | +#define CONFIG_OMX_RPI 0 | ||
| 587 | +#define CONFIG_RUNTIME_CPUDETECT 1 | ||
| 588 | +#define CONFIG_SAFE_BITSTREAM_READER 1 | ||
| 589 | +#define CONFIG_SHARED 0 | ||
| 590 | +#define CONFIG_SMALL 0 | ||
| 591 | +#define CONFIG_STATIC 1 | ||
| 592 | +#define CONFIG_SWSCALE_ALPHA 1 | ||
| 593 | +#define CONFIG_GPL 0 | ||
| 594 | +#define CONFIG_NONFREE 0 | ||
| 595 | +#define CONFIG_VERSION3 0 | ||
| 596 | +#define CONFIG_AVDEVICE 0 | ||
| 597 | +#define CONFIG_AVFILTER 0 | ||
| 598 | +#define CONFIG_SWSCALE 0 | ||
| 599 | +#define CONFIG_POSTPROC 0 | ||
| 600 | +#define CONFIG_AVFORMAT 1 | ||
| 601 | +#define CONFIG_AVCODEC 1 | ||
| 602 | +#define CONFIG_SWRESAMPLE 0 | ||
| 603 | +#define CONFIG_AVUTIL 1 | ||
| 604 | +#define CONFIG_FFPLAY 0 | ||
| 605 | +#define CONFIG_FFPROBE 0 | ||
| 606 | +#define CONFIG_FFMPEG 0 | ||
| 607 | +#define CONFIG_DCT 1 | ||
| 608 | +#define CONFIG_DWT 0 | ||
| 609 | +#define CONFIG_ERROR_RESILIENCE 0 | ||
| 610 | +#define CONFIG_FAAN 0 | ||
| 611 | +#define CONFIG_FAST_UNALIGNED 1 | ||
| 612 | +#define CONFIG_FFT 1 | ||
| 613 | +#define CONFIG_LSP 0 | ||
| 614 | +#define CONFIG_LZO 0 | ||
| 615 | +#define CONFIG_MDCT 1 | ||
| 616 | +#define CONFIG_PIXELUTILS 0 | ||
| 617 | +#define CONFIG_NETWORK 0 | ||
| 618 | +#define CONFIG_RDFT 1 | ||
| 619 | +#define CONFIG_AUTODETECT 0 | ||
| 620 | +#define CONFIG_FONTCONFIG 0 | ||
| 621 | +#define CONFIG_LARGE_TESTS 1 | ||
| 622 | +#define CONFIG_LINUX_PERF 0 | ||
| 623 | +#define CONFIG_MACOS_KPERF 0 | ||
| 624 | +#define CONFIG_MEMORY_POISONING 0 | ||
| 625 | +#define CONFIG_NEON_CLOBBER_TEST 0 | ||
| 626 | +#define CONFIG_OSSFUZZ 0 | ||
| 627 | +#define CONFIG_PIC 1 | ||
| 628 | +#define CONFIG_PTX_COMPRESSION 0 | ||
| 629 | +#define CONFIG_THUMB 0 | ||
| 630 | +#define CONFIG_VALGRIND_BACKTRACE 0 | ||
| 631 | +#define CONFIG_XMM_CLOBBER_TEST 0 | ||
| 632 | +#define CONFIG_BSFS 0 | ||
| 633 | +#define CONFIG_DECODERS 1 | ||
| 634 | +#define CONFIG_ENCODERS 0 | ||
| 635 | +#define CONFIG_HWACCELS 0 | ||
| 636 | +#define CONFIG_PARSERS 1 | ||
| 637 | +#define CONFIG_INDEVS 0 | ||
| 638 | +#define CONFIG_OUTDEVS 0 | ||
| 639 | +#define CONFIG_FILTERS 0 | ||
| 640 | +#define CONFIG_DEMUXERS 1 | ||
| 641 | +#define CONFIG_MUXERS 0 | ||
| 642 | +#define CONFIG_PROTOCOLS 0 | ||
| 643 | +#define CONFIG_AANDCTTABLES 0 | ||
| 644 | +#define CONFIG_AC3DSP 0 | ||
| 645 | +#define CONFIG_ADTS_HEADER 1 | ||
| 646 | +#define CONFIG_ATSC_A53 1 | ||
| 647 | +#define CONFIG_AUDIO_FRAME_QUEUE 0 | ||
| 648 | +#define CONFIG_AUDIODSP 0 | ||
| 649 | +#define CONFIG_BLOCKDSP 0 | ||
| 650 | +#define CONFIG_BSWAPDSP 0 | ||
| 651 | +#define CONFIG_CABAC 1 | ||
| 652 | +#define CONFIG_CBS 0 | ||
| 653 | +#define CONFIG_CBS_AV1 0 | ||
| 654 | +#define CONFIG_CBS_H264 0 | ||
| 655 | +#define CONFIG_CBS_H265 0 | ||
| 656 | +#define CONFIG_CBS_JPEG 0 | ||
| 657 | +#define CONFIG_CBS_MPEG2 0 | ||
| 658 | +#define CONFIG_CBS_VP9 0 | ||
| 659 | +#define CONFIG_DIRAC_PARSE 1 | ||
| 660 | +#define CONFIG_DNN 0 | ||
| 661 | +#define CONFIG_DOVI_RPU 0 | ||
| 662 | +#define CONFIG_DVPROFILE 0 | ||
| 663 | +#define CONFIG_EXIF 0 | ||
| 664 | +#define CONFIG_FAANDCT 0 | ||
| 665 | +#define CONFIG_FAANIDCT 0 | ||
| 666 | +#define CONFIG_FDCTDSP 0 | ||
| 667 | +#define CONFIG_FLACDSP 1 | ||
| 668 | +#define CONFIG_FMTCONVERT 0 | ||
| 669 | +#define CONFIG_FRAME_THREAD_ENCODER 0 | ||
| 670 | +#define CONFIG_G722DSP 0 | ||
| 671 | +#define CONFIG_GOLOMB 1 | ||
| 672 | +#define CONFIG_GPLV3 0 | ||
| 673 | +#define CONFIG_H263DSP 0 | ||
| 674 | +#define CONFIG_H264CHROMA 1 | ||
| 675 | +#define CONFIG_H264DSP 1 | ||
| 676 | +#define CONFIG_H264PARSE 1 | ||
| 677 | +#define CONFIG_H264PRED 1 | ||
| 678 | +#define CONFIG_H264QPEL 1 | ||
| 679 | +#define CONFIG_HEVCPARSE 0 | ||
| 680 | +#define CONFIG_HPELDSP 1 | ||
| 681 | +#define CONFIG_HUFFMAN 0 | ||
| 682 | +#define CONFIG_HUFFYUVDSP 0 | ||
| 683 | +#define CONFIG_HUFFYUVENCDSP 0 | ||
| 684 | +#define CONFIG_IDCTDSP 0 | ||
| 685 | +#define CONFIG_IIRFILTER 0 | ||
| 686 | +#define CONFIG_MDCT15 1 | ||
| 687 | +#define CONFIG_INTRAX8 0 | ||
| 688 | +#define CONFIG_ISO_MEDIA 1 | ||
| 689 | +#define CONFIG_IVIDSP 0 | ||
| 690 | +#define CONFIG_JPEGTABLES 0 | ||
| 691 | +#define CONFIG_LGPLV3 0 | ||
| 692 | +#define CONFIG_LIBX262 0 | ||
| 693 | +#define CONFIG_LLAUDDSP 0 | ||
| 694 | +#define CONFIG_LLVIDDSP 0 | ||
| 695 | +#define CONFIG_LLVIDENCDSP 0 | ||
| 696 | +#define CONFIG_LPC 0 | ||
| 697 | +#define CONFIG_LZF 0 | ||
| 698 | +#define CONFIG_ME_CMP 0 | ||
| 699 | +#define CONFIG_MPEG_ER 0 | ||
| 700 | +#define CONFIG_MPEGAUDIO 1 | ||
| 701 | +#define CONFIG_MPEGAUDIODSP 1 | ||
| 702 | +#define CONFIG_MPEGAUDIOHEADER 1 | ||
| 703 | +#define CONFIG_MPEG4AUDIO 1 | ||
| 704 | +#define CONFIG_MPEGVIDEO 0 | ||
| 705 | +#define CONFIG_MPEGVIDEODEC 0 | ||
| 706 | +#define CONFIG_MPEGVIDEOENC 0 | ||
| 707 | +#define CONFIG_MSS34DSP 0 | ||
| 708 | +#define CONFIG_PIXBLOCKDSP 0 | ||
| 709 | +#define CONFIG_QPELDSP 0 | ||
| 710 | +#define CONFIG_QSV 0 | ||
| 711 | +#define CONFIG_QSVDEC 0 | ||
| 712 | +#define CONFIG_QSVENC 0 | ||
| 713 | +#define CONFIG_QSVVPP 0 | ||
| 714 | +#define CONFIG_RANGECODER 0 | ||
| 715 | +#define CONFIG_RIFFDEC 1 | ||
| 716 | +#define CONFIG_RIFFENC 0 | ||
| 717 | +#define CONFIG_RTPDEC 0 | ||
| 718 | +#define CONFIG_RTPENC_CHAIN 0 | ||
| 719 | +#define CONFIG_RV34DSP 0 | ||
| 720 | +#define CONFIG_SCENE_SAD 0 | ||
| 721 | +#define CONFIG_SINEWIN 1 | ||
| 722 | +#define CONFIG_SNAPPY 0 | ||
| 723 | +#define CONFIG_SRTP 0 | ||
| 724 | +#define CONFIG_STARTCODE 1 | ||
| 725 | +#define CONFIG_TEXTUREDSP 0 | ||
| 726 | +#define CONFIG_TEXTUREDSPENC 0 | ||
| 727 | +#define CONFIG_TPELDSP 0 | ||
| 728 | +#define CONFIG_VAAPI_1 0 | ||
| 729 | +#define CONFIG_VAAPI_ENCODE 0 | ||
| 730 | +#define CONFIG_VC1DSP 0 | ||
| 731 | +#define CONFIG_VIDEODSP 1 | ||
| 732 | +#define CONFIG_VP3DSP 1 | ||
| 733 | +#define CONFIG_VP56DSP 0 | ||
| 734 | +#define CONFIG_VP8DSP 1 | ||
| 735 | +#define CONFIG_WMA_FREQS 0 | ||
| 736 | +#define CONFIG_WMV2DSP 0 | ||
| 737 | +#define CONFIG_AAC_ADTSTOASC_BSF 0 | ||
| 738 | +#define CONFIG_AV1_FRAME_MERGE_BSF 0 | ||
| 739 | +#define CONFIG_AV1_FRAME_SPLIT_BSF 0 | ||
| 740 | +#define CONFIG_AV1_METADATA_BSF 0 | ||
| 741 | +#define CONFIG_CHOMP_BSF 0 | ||
| 742 | +#define CONFIG_DUMP_EXTRADATA_BSF 0 | ||
| 743 | +#define CONFIG_DCA_CORE_BSF 0 | ||
| 744 | +#define CONFIG_EAC3_CORE_BSF 0 | ||
| 745 | +#define CONFIG_EXTRACT_EXTRADATA_BSF 0 | ||
| 746 | +#define CONFIG_FILTER_UNITS_BSF 0 | ||
| 747 | +#define CONFIG_H264_METADATA_BSF 0 | ||
| 748 | +#define CONFIG_H264_MP4TOANNEXB_BSF 0 | ||
| 749 | +#define CONFIG_H264_REDUNDANT_PPS_BSF 0 | ||
| 750 | +#define CONFIG_HAPQA_EXTRACT_BSF 0 | ||
| 751 | +#define CONFIG_HEVC_METADATA_BSF 0 | ||
| 752 | +#define CONFIG_HEVC_MP4TOANNEXB_BSF 0 | ||
| 753 | +#define CONFIG_IMX_DUMP_HEADER_BSF 0 | ||
| 754 | +#define CONFIG_MJPEG2JPEG_BSF 0 | ||
| 755 | +#define CONFIG_MJPEGA_DUMP_HEADER_BSF 0 | ||
| 756 | +#define CONFIG_MP3_HEADER_DECOMPRESS_BSF 0 | ||
| 757 | +#define CONFIG_MPEG2_METADATA_BSF 0 | ||
| 758 | +#define CONFIG_MPEG4_UNPACK_BFRAMES_BSF 0 | ||
| 759 | +#define CONFIG_MOV2TEXTSUB_BSF 0 | ||
| 760 | +#define CONFIG_NOISE_BSF 0 | ||
| 761 | +#define CONFIG_NULL_BSF 0 | ||
| 762 | +#define CONFIG_OPUS_METADATA_BSF 0 | ||
| 763 | +#define CONFIG_PCM_RECHUNK_BSF 0 | ||
| 764 | +#define CONFIG_PRORES_METADATA_BSF 0 | ||
| 765 | +#define CONFIG_REMOVE_EXTRADATA_BSF 0 | ||
| 766 | +#define CONFIG_SETTS_BSF 0 | ||
| 767 | +#define CONFIG_TEXT2MOVSUB_BSF 0 | ||
| 768 | +#define CONFIG_TRACE_HEADERS_BSF 0 | ||
| 769 | +#define CONFIG_TRUEHD_CORE_BSF 0 | ||
| 770 | +#define CONFIG_VP9_METADATA_BSF 0 | ||
| 771 | +#define CONFIG_VP9_RAW_REORDER_BSF 0 | ||
| 772 | +#define CONFIG_VP9_SUPERFRAME_BSF 0 | ||
| 773 | +#define CONFIG_VP9_SUPERFRAME_SPLIT_BSF 0 | ||
| 774 | +#define CONFIG_AASC_DECODER 0 | ||
| 775 | +#define CONFIG_AIC_DECODER 0 | ||
| 776 | +#define CONFIG_ALIAS_PIX_DECODER 0 | ||
| 777 | +#define CONFIG_AGM_DECODER 0 | ||
| 778 | +#define CONFIG_AMV_DECODER 0 | ||
| 779 | +#define CONFIG_ANM_DECODER 0 | ||
| 780 | +#define CONFIG_ANSI_DECODER 0 | ||
| 781 | +#define CONFIG_APNG_DECODER 0 | ||
| 782 | +#define CONFIG_ARBC_DECODER 0 | ||
| 783 | +#define CONFIG_ARGO_DECODER 0 | ||
| 784 | +#define CONFIG_ASV1_DECODER 0 | ||
| 785 | +#define CONFIG_ASV2_DECODER 0 | ||
| 786 | +#define CONFIG_AURA_DECODER 0 | ||
| 787 | +#define CONFIG_AURA2_DECODER 0 | ||
| 788 | +#define CONFIG_AVRP_DECODER 0 | ||
| 789 | +#define CONFIG_AVRN_DECODER 0 | ||
| 790 | +#define CONFIG_AVS_DECODER 0 | ||
| 791 | +#define CONFIG_AVUI_DECODER 0 | ||
| 792 | +#define CONFIG_AYUV_DECODER 0 | ||
| 793 | +#define CONFIG_BETHSOFTVID_DECODER 0 | ||
| 794 | +#define CONFIG_BFI_DECODER 0 | ||
| 795 | +#define CONFIG_BINK_DECODER 0 | ||
| 796 | +#define CONFIG_BITPACKED_DECODER 0 | ||
| 797 | +#define CONFIG_BMP_DECODER 0 | ||
| 798 | +#define CONFIG_BMV_VIDEO_DECODER 0 | ||
| 799 | +#define CONFIG_BRENDER_PIX_DECODER 0 | ||
| 800 | +#define CONFIG_C93_DECODER 0 | ||
| 801 | +#define CONFIG_CAVS_DECODER 0 | ||
| 802 | +#define CONFIG_CDGRAPHICS_DECODER 0 | ||
| 803 | +#define CONFIG_CDTOONS_DECODER 0 | ||
| 804 | +#define CONFIG_CDXL_DECODER 0 | ||
| 805 | +#define CONFIG_CFHD_DECODER 0 | ||
| 806 | +#define CONFIG_CINEPAK_DECODER 0 | ||
| 807 | +#define CONFIG_CLEARVIDEO_DECODER 0 | ||
| 808 | +#define CONFIG_CLJR_DECODER 0 | ||
| 809 | +#define CONFIG_CLLC_DECODER 0 | ||
| 810 | +#define CONFIG_COMFORTNOISE_DECODER 0 | ||
| 811 | +#define CONFIG_CPIA_DECODER 0 | ||
| 812 | +#define CONFIG_CRI_DECODER 0 | ||
| 813 | +#define CONFIG_CSCD_DECODER 0 | ||
| 814 | +#define CONFIG_CYUV_DECODER 0 | ||
| 815 | +#define CONFIG_DDS_DECODER 0 | ||
| 816 | +#define CONFIG_DFA_DECODER 0 | ||
| 817 | +#define CONFIG_DIRAC_DECODER 0 | ||
| 818 | +#define CONFIG_DNXHD_DECODER 0 | ||
| 819 | +#define CONFIG_DPX_DECODER 0 | ||
| 820 | +#define CONFIG_DSICINVIDEO_DECODER 0 | ||
| 821 | +#define CONFIG_DVAUDIO_DECODER 0 | ||
| 822 | +#define CONFIG_DVVIDEO_DECODER 0 | ||
| 823 | +#define CONFIG_DXA_DECODER 0 | ||
| 824 | +#define CONFIG_DXTORY_DECODER 0 | ||
| 825 | +#define CONFIG_DXV_DECODER 0 | ||
| 826 | +#define CONFIG_EACMV_DECODER 0 | ||
| 827 | +#define CONFIG_EAMAD_DECODER 0 | ||
| 828 | +#define CONFIG_EATGQ_DECODER 0 | ||
| 829 | +#define CONFIG_EATGV_DECODER 0 | ||
| 830 | +#define CONFIG_EATQI_DECODER 0 | ||
| 831 | +#define CONFIG_EIGHTBPS_DECODER 0 | ||
| 832 | +#define CONFIG_EIGHTSVX_EXP_DECODER 0 | ||
| 833 | +#define CONFIG_EIGHTSVX_FIB_DECODER 0 | ||
| 834 | +#define CONFIG_ESCAPE124_DECODER 0 | ||
| 835 | +#define CONFIG_ESCAPE130_DECODER 0 | ||
| 836 | +#define CONFIG_EXR_DECODER 0 | ||
| 837 | +#define CONFIG_FFV1_DECODER 0 | ||
| 838 | +#define CONFIG_FFVHUFF_DECODER 0 | ||
| 839 | +#define CONFIG_FIC_DECODER 0 | ||
| 840 | +#define CONFIG_FITS_DECODER 0 | ||
| 841 | +#define CONFIG_FLASHSV_DECODER 0 | ||
| 842 | +#define CONFIG_FLASHSV2_DECODER 0 | ||
| 843 | +#define CONFIG_FLIC_DECODER 0 | ||
| 844 | +#define CONFIG_FLV_DECODER 0 | ||
| 845 | +#define CONFIG_FMVC_DECODER 0 | ||
| 846 | +#define CONFIG_FOURXM_DECODER 0 | ||
| 847 | +#define CONFIG_FRAPS_DECODER 0 | ||
| 848 | +#define CONFIG_FRWU_DECODER 0 | ||
| 849 | +#define CONFIG_G2M_DECODER 0 | ||
| 850 | +#define CONFIG_GDV_DECODER 0 | ||
| 851 | +#define CONFIG_GEM_DECODER 0 | ||
| 852 | +#define CONFIG_GIF_DECODER 0 | ||
| 853 | +#define CONFIG_H261_DECODER 0 | ||
| 854 | +#define CONFIG_H263_DECODER 0 | ||
| 855 | +#define CONFIG_H263I_DECODER 0 | ||
| 856 | +#define CONFIG_H263P_DECODER 0 | ||
| 857 | +#define CONFIG_H263_V4L2M2M_DECODER 0 | ||
| 858 | +#define CONFIG_H264_DECODER 1 | ||
| 859 | +#define CONFIG_H264_CRYSTALHD_DECODER 0 | ||
| 860 | +#define CONFIG_H264_V4L2M2M_DECODER 0 | ||
| 861 | +#define CONFIG_H264_MEDIACODEC_DECODER 0 | ||
| 862 | +#define CONFIG_H264_MMAL_DECODER 0 | ||
| 863 | +#define CONFIG_H264_QSV_DECODER 0 | ||
| 864 | +#define CONFIG_H264_RKMPP_DECODER 0 | ||
| 865 | +#define CONFIG_HAP_DECODER 0 | ||
| 866 | +#define CONFIG_HEVC_DECODER 0 | ||
| 867 | +#define CONFIG_HEVC_QSV_DECODER 0 | ||
| 868 | +#define CONFIG_HEVC_RKMPP_DECODER 0 | ||
| 869 | +#define CONFIG_HEVC_V4L2M2M_DECODER 0 | ||
| 870 | +#define CONFIG_HNM4_VIDEO_DECODER 0 | ||
| 871 | +#define CONFIG_HQ_HQA_DECODER 0 | ||
| 872 | +#define CONFIG_HQX_DECODER 0 | ||
| 873 | +#define CONFIG_HUFFYUV_DECODER 0 | ||
| 874 | +#define CONFIG_HYMT_DECODER 0 | ||
| 875 | +#define CONFIG_IDCIN_DECODER 0 | ||
| 876 | +#define CONFIG_IFF_ILBM_DECODER 0 | ||
| 877 | +#define CONFIG_IMM4_DECODER 0 | ||
| 878 | +#define CONFIG_IMM5_DECODER 0 | ||
| 879 | +#define CONFIG_INDEO2_DECODER 0 | ||
| 880 | +#define CONFIG_INDEO3_DECODER 0 | ||
| 881 | +#define CONFIG_INDEO4_DECODER 0 | ||
| 882 | +#define CONFIG_INDEO5_DECODER 0 | ||
| 883 | +#define CONFIG_INTERPLAY_VIDEO_DECODER 0 | ||
| 884 | +#define CONFIG_IPU_DECODER 0 | ||
| 885 | +#define CONFIG_JPEG2000_DECODER 0 | ||
| 886 | +#define CONFIG_JPEGLS_DECODER 0 | ||
| 887 | +#define CONFIG_JV_DECODER 0 | ||
| 888 | +#define CONFIG_KGV1_DECODER 0 | ||
| 889 | +#define CONFIG_KMVC_DECODER 0 | ||
| 890 | +#define CONFIG_LAGARITH_DECODER 0 | ||
| 891 | +#define CONFIG_LOCO_DECODER 0 | ||
| 892 | +#define CONFIG_LSCR_DECODER 0 | ||
| 893 | +#define CONFIG_M101_DECODER 0 | ||
| 894 | +#define CONFIG_MAGICYUV_DECODER 0 | ||
| 895 | +#define CONFIG_MDEC_DECODER 0 | ||
| 896 | +#define CONFIG_MIMIC_DECODER 0 | ||
| 897 | +#define CONFIG_MJPEG_DECODER 0 | ||
| 898 | +#define CONFIG_MJPEGB_DECODER 0 | ||
| 899 | +#define CONFIG_MMVIDEO_DECODER 0 | ||
| 900 | +#define CONFIG_MOBICLIP_DECODER 0 | ||
| 901 | +#define CONFIG_MOTIONPIXELS_DECODER 0 | ||
| 902 | +#define CONFIG_MPEG1VIDEO_DECODER 0 | ||
| 903 | +#define CONFIG_MPEG2VIDEO_DECODER 0 | ||
| 904 | +#define CONFIG_MPEG4_DECODER 0 | ||
| 905 | +#define CONFIG_MPEG4_CRYSTALHD_DECODER 0 | ||
| 906 | +#define CONFIG_MPEG4_V4L2M2M_DECODER 0 | ||
| 907 | +#define CONFIG_MPEG4_MMAL_DECODER 0 | ||
| 908 | +#define CONFIG_MPEGVIDEO_DECODER 0 | ||
| 909 | +#define CONFIG_MPEG1_V4L2M2M_DECODER 0 | ||
| 910 | +#define CONFIG_MPEG2_MMAL_DECODER 0 | ||
| 911 | +#define CONFIG_MPEG2_CRYSTALHD_DECODER 0 | ||
| 912 | +#define CONFIG_MPEG2_V4L2M2M_DECODER 0 | ||
| 913 | +#define CONFIG_MPEG2_QSV_DECODER 0 | ||
| 914 | +#define CONFIG_MPEG2_MEDIACODEC_DECODER 0 | ||
| 915 | +#define CONFIG_MSA1_DECODER 0 | ||
| 916 | +#define CONFIG_MSCC_DECODER 0 | ||
| 917 | +#define CONFIG_MSMPEG4V1_DECODER 0 | ||
| 918 | +#define CONFIG_MSMPEG4V2_DECODER 0 | ||
| 919 | +#define CONFIG_MSMPEG4V3_DECODER 0 | ||
| 920 | +#define CONFIG_MSMPEG4_CRYSTALHD_DECODER 0 | ||
| 921 | +#define CONFIG_MSP2_DECODER 0 | ||
| 922 | +#define CONFIG_MSRLE_DECODER 0 | ||
| 923 | +#define CONFIG_MSS1_DECODER 0 | ||
| 924 | +#define CONFIG_MSS2_DECODER 0 | ||
| 925 | +#define CONFIG_MSVIDEO1_DECODER 0 | ||
| 926 | +#define CONFIG_MSZH_DECODER 0 | ||
| 927 | +#define CONFIG_MTS2_DECODER 0 | ||
| 928 | +#define CONFIG_MV30_DECODER 0 | ||
| 929 | +#define CONFIG_MVC1_DECODER 0 | ||
| 930 | +#define CONFIG_MVC2_DECODER 0 | ||
| 931 | +#define CONFIG_MVDV_DECODER 0 | ||
| 932 | +#define CONFIG_MVHA_DECODER 0 | ||
| 933 | +#define CONFIG_MWSC_DECODER 0 | ||
| 934 | +#define CONFIG_MXPEG_DECODER 0 | ||
| 935 | +#define CONFIG_NOTCHLC_DECODER 0 | ||
| 936 | +#define CONFIG_NUV_DECODER 0 | ||
| 937 | +#define CONFIG_PAF_VIDEO_DECODER 0 | ||
| 938 | +#define CONFIG_PAM_DECODER 0 | ||
| 939 | +#define CONFIG_PBM_DECODER 0 | ||
| 940 | +#define CONFIG_PCX_DECODER 0 | ||
| 941 | +#define CONFIG_PFM_DECODER 0 | ||
| 942 | +#define CONFIG_PGM_DECODER 0 | ||
| 943 | +#define CONFIG_PGMYUV_DECODER 0 | ||
| 944 | +#define CONFIG_PGX_DECODER 0 | ||
| 945 | +#define CONFIG_PHOTOCD_DECODER 0 | ||
| 946 | +#define CONFIG_PICTOR_DECODER 0 | ||
| 947 | +#define CONFIG_PIXLET_DECODER 0 | ||
| 948 | +#define CONFIG_PNG_DECODER 0 | ||
| 949 | +#define CONFIG_PPM_DECODER 0 | ||
| 950 | +#define CONFIG_PRORES_DECODER 0 | ||
| 951 | +#define CONFIG_PROSUMER_DECODER 0 | ||
| 952 | +#define CONFIG_PSD_DECODER 0 | ||
| 953 | +#define CONFIG_PTX_DECODER 0 | ||
| 954 | +#define CONFIG_QDRAW_DECODER 0 | ||
| 955 | +#define CONFIG_QPEG_DECODER 0 | ||
| 956 | +#define CONFIG_QTRLE_DECODER 0 | ||
| 957 | +#define CONFIG_R10K_DECODER 0 | ||
| 958 | +#define CONFIG_R210_DECODER 0 | ||
| 959 | +#define CONFIG_RASC_DECODER 0 | ||
| 960 | +#define CONFIG_RAWVIDEO_DECODER 0 | ||
| 961 | +#define CONFIG_RL2_DECODER 0 | ||
| 962 | +#define CONFIG_ROQ_DECODER 0 | ||
| 963 | +#define CONFIG_RPZA_DECODER 0 | ||
| 964 | +#define CONFIG_RSCC_DECODER 0 | ||
| 965 | +#define CONFIG_RV10_DECODER 0 | ||
| 966 | +#define CONFIG_RV20_DECODER 0 | ||
| 967 | +#define CONFIG_RV30_DECODER 0 | ||
| 968 | +#define CONFIG_RV40_DECODER 0 | ||
| 969 | +#define CONFIG_S302M_DECODER 0 | ||
| 970 | +#define CONFIG_SANM_DECODER 0 | ||
| 971 | +#define CONFIG_SCPR_DECODER 0 | ||
| 972 | +#define CONFIG_SCREENPRESSO_DECODER 0 | ||
| 973 | +#define CONFIG_SGA_DECODER 0 | ||
| 974 | +#define CONFIG_SGI_DECODER 0 | ||
| 975 | +#define CONFIG_SGIRLE_DECODER 0 | ||
| 976 | +#define CONFIG_SHEERVIDEO_DECODER 0 | ||
| 977 | +#define CONFIG_SIMBIOSIS_IMX_DECODER 0 | ||
| 978 | +#define CONFIG_SMACKER_DECODER 0 | ||
| 979 | +#define CONFIG_SMC_DECODER 0 | ||
| 980 | +#define CONFIG_SMVJPEG_DECODER 0 | ||
| 981 | +#define CONFIG_SNOW_DECODER 0 | ||
| 982 | +#define CONFIG_SP5X_DECODER 0 | ||
| 983 | +#define CONFIG_SPEEDHQ_DECODER 0 | ||
| 984 | +#define CONFIG_SPEEX_DECODER 0 | ||
| 985 | +#define CONFIG_SRGC_DECODER 0 | ||
| 986 | +#define CONFIG_SUNRAST_DECODER 0 | ||
| 987 | +#define CONFIG_SVQ1_DECODER 0 | ||
| 988 | +#define CONFIG_SVQ3_DECODER 0 | ||
| 989 | +#define CONFIG_TARGA_DECODER 0 | ||
| 990 | +#define CONFIG_TARGA_Y216_DECODER 0 | ||
| 991 | +#define CONFIG_TDSC_DECODER 0 | ||
| 992 | +#define CONFIG_THEORA_DECODER 1 | ||
| 993 | +#define CONFIG_THP_DECODER 0 | ||
| 994 | +#define CONFIG_TIERTEXSEQVIDEO_DECODER 0 | ||
| 995 | +#define CONFIG_TIFF_DECODER 0 | ||
| 996 | +#define CONFIG_TMV_DECODER 0 | ||
| 997 | +#define CONFIG_TRUEMOTION1_DECODER 0 | ||
| 998 | +#define CONFIG_TRUEMOTION2_DECODER 0 | ||
| 999 | +#define CONFIG_TRUEMOTION2RT_DECODER 0 | ||
| 1000 | +#define CONFIG_TSCC_DECODER 0 | ||
| 1001 | +#define CONFIG_TSCC2_DECODER 0 | ||
| 1002 | +#define CONFIG_TXD_DECODER 0 | ||
| 1003 | +#define CONFIG_ULTI_DECODER 0 | ||
| 1004 | +#define CONFIG_UTVIDEO_DECODER 0 | ||
| 1005 | +#define CONFIG_V210_DECODER 0 | ||
| 1006 | +#define CONFIG_V210X_DECODER 0 | ||
| 1007 | +#define CONFIG_V308_DECODER 0 | ||
| 1008 | +#define CONFIG_V408_DECODER 0 | ||
| 1009 | +#define CONFIG_V410_DECODER 0 | ||
| 1010 | +#define CONFIG_VB_DECODER 0 | ||
| 1011 | +#define CONFIG_VBLE_DECODER 0 | ||
| 1012 | +#define CONFIG_VC1_DECODER 0 | ||
| 1013 | +#define CONFIG_VC1_CRYSTALHD_DECODER 0 | ||
| 1014 | +#define CONFIG_VC1IMAGE_DECODER 0 | ||
| 1015 | +#define CONFIG_VC1_MMAL_DECODER 0 | ||
| 1016 | +#define CONFIG_VC1_QSV_DECODER 0 | ||
| 1017 | +#define CONFIG_VC1_V4L2M2M_DECODER 0 | ||
| 1018 | +#define CONFIG_VCR1_DECODER 0 | ||
| 1019 | +#define CONFIG_VMDVIDEO_DECODER 0 | ||
| 1020 | +#define CONFIG_VMNC_DECODER 0 | ||
| 1021 | +#define CONFIG_VP3_DECODER 1 | ||
| 1022 | +#define CONFIG_VP4_DECODER 0 | ||
| 1023 | +#define CONFIG_VP5_DECODER 0 | ||
| 1024 | +#define CONFIG_VP6_DECODER 0 | ||
| 1025 | +#define CONFIG_VP6A_DECODER 0 | ||
| 1026 | +#define CONFIG_VP6F_DECODER 0 | ||
| 1027 | +#define CONFIG_VP7_DECODER 0 | ||
| 1028 | +#define CONFIG_VP8_DECODER 1 | ||
| 1029 | +#define CONFIG_VP8_RKMPP_DECODER 0 | ||
| 1030 | +#define CONFIG_VP8_V4L2M2M_DECODER 0 | ||
| 1031 | +#define CONFIG_VP9_DECODER 0 | ||
| 1032 | +#define CONFIG_VP9_RKMPP_DECODER 0 | ||
| 1033 | +#define CONFIG_VP9_V4L2M2M_DECODER 0 | ||
| 1034 | +#define CONFIG_VQA_DECODER 0 | ||
| 1035 | +#define CONFIG_WEBP_DECODER 0 | ||
| 1036 | +#define CONFIG_WCMV_DECODER 0 | ||
| 1037 | +#define CONFIG_WRAPPED_AVFRAME_DECODER 0 | ||
| 1038 | +#define CONFIG_WMV1_DECODER 0 | ||
| 1039 | +#define CONFIG_WMV2_DECODER 0 | ||
| 1040 | +#define CONFIG_WMV3_DECODER 0 | ||
| 1041 | +#define CONFIG_WMV3_CRYSTALHD_DECODER 0 | ||
| 1042 | +#define CONFIG_WMV3IMAGE_DECODER 0 | ||
| 1043 | +#define CONFIG_WNV1_DECODER 0 | ||
| 1044 | +#define CONFIG_XAN_WC3_DECODER 0 | ||
| 1045 | +#define CONFIG_XAN_WC4_DECODER 0 | ||
| 1046 | +#define CONFIG_XBM_DECODER 0 | ||
| 1047 | +#define CONFIG_XFACE_DECODER 0 | ||
| 1048 | +#define CONFIG_XL_DECODER 0 | ||
| 1049 | +#define CONFIG_XPM_DECODER 0 | ||
| 1050 | +#define CONFIG_XWD_DECODER 0 | ||
| 1051 | +#define CONFIG_Y41P_DECODER 0 | ||
| 1052 | +#define CONFIG_YLC_DECODER 0 | ||
| 1053 | +#define CONFIG_YOP_DECODER 0 | ||
| 1054 | +#define CONFIG_YUV4_DECODER 0 | ||
| 1055 | +#define CONFIG_ZERO12V_DECODER 0 | ||
| 1056 | +#define CONFIG_ZEROCODEC_DECODER 0 | ||
| 1057 | +#define CONFIG_ZLIB_DECODER 0 | ||
| 1058 | +#define CONFIG_ZMBV_DECODER 0 | ||
| 1059 | +#define CONFIG_AAC_DECODER 1 | ||
| 1060 | +#define CONFIG_AAC_FIXED_DECODER 0 | ||
| 1061 | +#define CONFIG_AAC_LATM_DECODER 0 | ||
| 1062 | +#define CONFIG_AC3_DECODER 0 | ||
| 1063 | +#define CONFIG_AC3_FIXED_DECODER 0 | ||
| 1064 | +#define CONFIG_ACELP_KELVIN_DECODER 0 | ||
| 1065 | +#define CONFIG_ALAC_DECODER 0 | ||
| 1066 | +#define CONFIG_ALS_DECODER 0 | ||
| 1067 | +#define CONFIG_AMRNB_DECODER 0 | ||
| 1068 | +#define CONFIG_AMRWB_DECODER 0 | ||
| 1069 | +#define CONFIG_APE_DECODER 0 | ||
| 1070 | +#define CONFIG_APTX_DECODER 0 | ||
| 1071 | +#define CONFIG_APTX_HD_DECODER 0 | ||
| 1072 | +#define CONFIG_ATRAC1_DECODER 0 | ||
| 1073 | +#define CONFIG_ATRAC3_DECODER 0 | ||
| 1074 | +#define CONFIG_ATRAC3AL_DECODER 0 | ||
| 1075 | +#define CONFIG_ATRAC3P_DECODER 0 | ||
| 1076 | +#define CONFIG_ATRAC3PAL_DECODER 0 | ||
| 1077 | +#define CONFIG_ATRAC9_DECODER 0 | ||
| 1078 | +#define CONFIG_BINKAUDIO_DCT_DECODER 0 | ||
| 1079 | +#define CONFIG_BINKAUDIO_RDFT_DECODER 0 | ||
| 1080 | +#define CONFIG_BMV_AUDIO_DECODER 0 | ||
| 1081 | +#define CONFIG_COOK_DECODER 0 | ||
| 1082 | +#define CONFIG_DCA_DECODER 0 | ||
| 1083 | +#define CONFIG_DOLBY_E_DECODER 0 | ||
| 1084 | +#define CONFIG_DSD_LSBF_DECODER 0 | ||
| 1085 | +#define CONFIG_DSD_MSBF_DECODER 0 | ||
| 1086 | +#define CONFIG_DSD_LSBF_PLANAR_DECODER 0 | ||
| 1087 | +#define CONFIG_DSD_MSBF_PLANAR_DECODER 0 | ||
| 1088 | +#define CONFIG_DSICINAUDIO_DECODER 0 | ||
| 1089 | +#define CONFIG_DSS_SP_DECODER 0 | ||
| 1090 | +#define CONFIG_DST_DECODER 0 | ||
| 1091 | +#define CONFIG_EAC3_DECODER 0 | ||
| 1092 | +#define CONFIG_EVRC_DECODER 0 | ||
| 1093 | +#define CONFIG_FASTAUDIO_DECODER 0 | ||
| 1094 | +#define CONFIG_FFWAVESYNTH_DECODER 0 | ||
| 1095 | +#define CONFIG_FLAC_DECODER 1 | ||
| 1096 | +#define CONFIG_G723_1_DECODER 0 | ||
| 1097 | +#define CONFIG_G729_DECODER 0 | ||
| 1098 | +#define CONFIG_GSM_DECODER 0 | ||
| 1099 | +#define CONFIG_GSM_MS_DECODER 0 | ||
| 1100 | +#define CONFIG_HCA_DECODER 0 | ||
| 1101 | +#define CONFIG_HCOM_DECODER 0 | ||
| 1102 | +#define CONFIG_IAC_DECODER 0 | ||
| 1103 | +#define CONFIG_ILBC_DECODER 0 | ||
| 1104 | +#define CONFIG_IMC_DECODER 0 | ||
| 1105 | +#define CONFIG_INTERPLAY_ACM_DECODER 0 | ||
| 1106 | +#define CONFIG_MACE3_DECODER 0 | ||
| 1107 | +#define CONFIG_MACE6_DECODER 0 | ||
| 1108 | +#define CONFIG_METASOUND_DECODER 0 | ||
| 1109 | +#define CONFIG_MLP_DECODER 0 | ||
| 1110 | +#define CONFIG_MP1_DECODER 0 | ||
| 1111 | +#define CONFIG_MP1FLOAT_DECODER 0 | ||
| 1112 | +#define CONFIG_MP2_DECODER 0 | ||
| 1113 | +#define CONFIG_MP2FLOAT_DECODER 0 | ||
| 1114 | +#define CONFIG_MP3FLOAT_DECODER 0 | ||
| 1115 | +#define CONFIG_MP3_DECODER 1 | ||
| 1116 | +#define CONFIG_MP3ADUFLOAT_DECODER 0 | ||
| 1117 | +#define CONFIG_MP3ADU_DECODER 0 | ||
| 1118 | +#define CONFIG_MP3ON4FLOAT_DECODER 0 | ||
| 1119 | +#define CONFIG_MP3ON4_DECODER 0 | ||
| 1120 | +#define CONFIG_MPC7_DECODER 0 | ||
| 1121 | +#define CONFIG_MPC8_DECODER 0 | ||
| 1122 | +#define CONFIG_MSNSIREN_DECODER 0 | ||
| 1123 | +#define CONFIG_NELLYMOSER_DECODER 0 | ||
| 1124 | +#define CONFIG_ON2AVC_DECODER 0 | ||
| 1125 | +#define CONFIG_OPUS_DECODER 0 | ||
| 1126 | +#define CONFIG_PAF_AUDIO_DECODER 0 | ||
| 1127 | +#define CONFIG_QCELP_DECODER 0 | ||
| 1128 | +#define CONFIG_QDM2_DECODER 0 | ||
| 1129 | +#define CONFIG_QDMC_DECODER 0 | ||
| 1130 | +#define CONFIG_RA_144_DECODER 0 | ||
| 1131 | +#define CONFIG_RA_288_DECODER 0 | ||
| 1132 | +#define CONFIG_RALF_DECODER 0 | ||
| 1133 | +#define CONFIG_SBC_DECODER 0 | ||
| 1134 | +#define CONFIG_SHORTEN_DECODER 0 | ||
| 1135 | +#define CONFIG_SIPR_DECODER 0 | ||
| 1136 | +#define CONFIG_SIREN_DECODER 0 | ||
| 1137 | +#define CONFIG_SMACKAUD_DECODER 0 | ||
| 1138 | +#define CONFIG_SONIC_DECODER 0 | ||
| 1139 | +#define CONFIG_TAK_DECODER 0 | ||
| 1140 | +#define CONFIG_TRUEHD_DECODER 0 | ||
| 1141 | +#define CONFIG_TRUESPEECH_DECODER 0 | ||
| 1142 | +#define CONFIG_TTA_DECODER 0 | ||
| 1143 | +#define CONFIG_TWINVQ_DECODER 0 | ||
| 1144 | +#define CONFIG_VMDAUDIO_DECODER 0 | ||
| 1145 | +#define CONFIG_VORBIS_DECODER 1 | ||
| 1146 | +#define CONFIG_WAVPACK_DECODER 0 | ||
| 1147 | +#define CONFIG_WMALOSSLESS_DECODER 0 | ||
| 1148 | +#define CONFIG_WMAPRO_DECODER 0 | ||
| 1149 | +#define CONFIG_WMAV1_DECODER 0 | ||
| 1150 | +#define CONFIG_WMAV2_DECODER 0 | ||
| 1151 | +#define CONFIG_WMAVOICE_DECODER 0 | ||
| 1152 | +#define CONFIG_WS_SND1_DECODER 0 | ||
| 1153 | +#define CONFIG_XMA1_DECODER 0 | ||
| 1154 | +#define CONFIG_XMA2_DECODER 0 | ||
| 1155 | +#define CONFIG_PCM_ALAW_DECODER 1 | ||
| 1156 | +#define CONFIG_PCM_BLURAY_DECODER 0 | ||
| 1157 | +#define CONFIG_PCM_DVD_DECODER 0 | ||
| 1158 | +#define CONFIG_PCM_F16LE_DECODER 0 | ||
| 1159 | +#define CONFIG_PCM_F24LE_DECODER 0 | ||
| 1160 | +#define CONFIG_PCM_F32BE_DECODER 0 | ||
| 1161 | +#define CONFIG_PCM_F32LE_DECODER 1 | ||
| 1162 | +#define CONFIG_PCM_F64BE_DECODER 0 | ||
| 1163 | +#define CONFIG_PCM_F64LE_DECODER 0 | ||
| 1164 | +#define CONFIG_PCM_LXF_DECODER 0 | ||
| 1165 | +#define CONFIG_PCM_MULAW_DECODER 1 | ||
| 1166 | +#define CONFIG_PCM_S8_DECODER 0 | ||
| 1167 | +#define CONFIG_PCM_S8_PLANAR_DECODER 0 | ||
| 1168 | +#define CONFIG_PCM_S16BE_DECODER 1 | ||
| 1169 | +#define CONFIG_PCM_S16BE_PLANAR_DECODER 0 | ||
| 1170 | +#define CONFIG_PCM_S16LE_DECODER 1 | ||
| 1171 | +#define CONFIG_PCM_S16LE_PLANAR_DECODER 0 | ||
| 1172 | +#define CONFIG_PCM_S24BE_DECODER 1 | ||
| 1173 | +#define CONFIG_PCM_S24DAUD_DECODER 0 | ||
| 1174 | +#define CONFIG_PCM_S24LE_DECODER 1 | ||
| 1175 | +#define CONFIG_PCM_S24LE_PLANAR_DECODER 0 | ||
| 1176 | +#define CONFIG_PCM_S32BE_DECODER 0 | ||
| 1177 | +#define CONFIG_PCM_S32LE_DECODER 1 | ||
| 1178 | +#define CONFIG_PCM_S32LE_PLANAR_DECODER 0 | ||
| 1179 | +#define CONFIG_PCM_S64BE_DECODER 0 | ||
| 1180 | +#define CONFIG_PCM_S64LE_DECODER 0 | ||
| 1181 | +#define CONFIG_PCM_SGA_DECODER 0 | ||
| 1182 | +#define CONFIG_PCM_U8_DECODER 1 | ||
| 1183 | +#define CONFIG_PCM_U16BE_DECODER 0 | ||
| 1184 | +#define CONFIG_PCM_U16LE_DECODER 0 | ||
| 1185 | +#define CONFIG_PCM_U24BE_DECODER 0 | ||
| 1186 | +#define CONFIG_PCM_U24LE_DECODER 0 | ||
| 1187 | +#define CONFIG_PCM_U32BE_DECODER 0 | ||
| 1188 | +#define CONFIG_PCM_U32LE_DECODER 0 | ||
| 1189 | +#define CONFIG_PCM_VIDC_DECODER 0 | ||
| 1190 | +#define CONFIG_DERF_DPCM_DECODER 0 | ||
| 1191 | +#define CONFIG_GREMLIN_DPCM_DECODER 0 | ||
| 1192 | +#define CONFIG_INTERPLAY_DPCM_DECODER 0 | ||
| 1193 | +#define CONFIG_ROQ_DPCM_DECODER 0 | ||
| 1194 | +#define CONFIG_SDX2_DPCM_DECODER 0 | ||
| 1195 | +#define CONFIG_SOL_DPCM_DECODER 0 | ||
| 1196 | +#define CONFIG_XAN_DPCM_DECODER 0 | ||
| 1197 | +#define CONFIG_ADPCM_4XM_DECODER 0 | ||
| 1198 | +#define CONFIG_ADPCM_ADX_DECODER 0 | ||
| 1199 | +#define CONFIG_ADPCM_AFC_DECODER 0 | ||
| 1200 | +#define CONFIG_ADPCM_AGM_DECODER 0 | ||
| 1201 | +#define CONFIG_ADPCM_AICA_DECODER 0 | ||
| 1202 | +#define CONFIG_ADPCM_ARGO_DECODER 0 | ||
| 1203 | +#define CONFIG_ADPCM_CT_DECODER 0 | ||
| 1204 | +#define CONFIG_ADPCM_DTK_DECODER 0 | ||
| 1205 | +#define CONFIG_ADPCM_EA_DECODER 0 | ||
| 1206 | +#define CONFIG_ADPCM_EA_MAXIS_XA_DECODER 0 | ||
| 1207 | +#define CONFIG_ADPCM_EA_R1_DECODER 0 | ||
| 1208 | +#define CONFIG_ADPCM_EA_R2_DECODER 0 | ||
| 1209 | +#define CONFIG_ADPCM_EA_R3_DECODER 0 | ||
| 1210 | +#define CONFIG_ADPCM_EA_XAS_DECODER 0 | ||
| 1211 | +#define CONFIG_ADPCM_G722_DECODER 0 | ||
| 1212 | +#define CONFIG_ADPCM_G726_DECODER 0 | ||
| 1213 | +#define CONFIG_ADPCM_G726LE_DECODER 0 | ||
| 1214 | +#define CONFIG_ADPCM_IMA_ACORN_DECODER 0 | ||
| 1215 | +#define CONFIG_ADPCM_IMA_AMV_DECODER 0 | ||
| 1216 | +#define CONFIG_ADPCM_IMA_ALP_DECODER 0 | ||
| 1217 | +#define CONFIG_ADPCM_IMA_APC_DECODER 0 | ||
| 1218 | +#define CONFIG_ADPCM_IMA_APM_DECODER 0 | ||
| 1219 | +#define CONFIG_ADPCM_IMA_CUNNING_DECODER 0 | ||
| 1220 | +#define CONFIG_ADPCM_IMA_DAT4_DECODER 0 | ||
| 1221 | +#define CONFIG_ADPCM_IMA_DK3_DECODER 0 | ||
| 1222 | +#define CONFIG_ADPCM_IMA_DK4_DECODER 0 | ||
| 1223 | +#define CONFIG_ADPCM_IMA_EA_EACS_DECODER 0 | ||
| 1224 | +#define CONFIG_ADPCM_IMA_EA_SEAD_DECODER 0 | ||
| 1225 | +#define CONFIG_ADPCM_IMA_ISS_DECODER 0 | ||
| 1226 | +#define CONFIG_ADPCM_IMA_MOFLEX_DECODER 0 | ||
| 1227 | +#define CONFIG_ADPCM_IMA_MTF_DECODER 0 | ||
| 1228 | +#define CONFIG_ADPCM_IMA_OKI_DECODER 0 | ||
| 1229 | +#define CONFIG_ADPCM_IMA_QT_DECODER 0 | ||
| 1230 | +#define CONFIG_ADPCM_IMA_RAD_DECODER 0 | ||
| 1231 | +#define CONFIG_ADPCM_IMA_SSI_DECODER 0 | ||
| 1232 | +#define CONFIG_ADPCM_IMA_SMJPEG_DECODER 0 | ||
| 1233 | +#define CONFIG_ADPCM_IMA_WAV_DECODER 0 | ||
| 1234 | +#define CONFIG_ADPCM_IMA_WS_DECODER 0 | ||
| 1235 | +#define CONFIG_ADPCM_MS_DECODER 0 | ||
| 1236 | +#define CONFIG_ADPCM_MTAF_DECODER 0 | ||
| 1237 | +#define CONFIG_ADPCM_PSX_DECODER 0 | ||
| 1238 | +#define CONFIG_ADPCM_SBPRO_2_DECODER 0 | ||
| 1239 | +#define CONFIG_ADPCM_SBPRO_3_DECODER 0 | ||
| 1240 | +#define CONFIG_ADPCM_SBPRO_4_DECODER 0 | ||
| 1241 | +#define CONFIG_ADPCM_SWF_DECODER 0 | ||
| 1242 | +#define CONFIG_ADPCM_THP_DECODER 0 | ||
| 1243 | +#define CONFIG_ADPCM_THP_LE_DECODER 0 | ||
| 1244 | +#define CONFIG_ADPCM_VIMA_DECODER 0 | ||
| 1245 | +#define CONFIG_ADPCM_XA_DECODER 0 | ||
| 1246 | +#define CONFIG_ADPCM_YAMAHA_DECODER 0 | ||
| 1247 | +#define CONFIG_ADPCM_ZORK_DECODER 0 | ||
| 1248 | +#define CONFIG_SSA_DECODER 0 | ||
| 1249 | +#define CONFIG_ASS_DECODER 0 | ||
| 1250 | +#define CONFIG_CCAPTION_DECODER 0 | ||
| 1251 | +#define CONFIG_DVBSUB_DECODER 0 | ||
| 1252 | +#define CONFIG_DVDSUB_DECODER 0 | ||
| 1253 | +#define CONFIG_JACOSUB_DECODER 0 | ||
| 1254 | +#define CONFIG_MICRODVD_DECODER 0 | ||
| 1255 | +#define CONFIG_MOVTEXT_DECODER 0 | ||
| 1256 | +#define CONFIG_MPL2_DECODER 0 | ||
| 1257 | +#define CONFIG_PGSSUB_DECODER 0 | ||
| 1258 | +#define CONFIG_PJS_DECODER 0 | ||
| 1259 | +#define CONFIG_REALTEXT_DECODER 0 | ||
| 1260 | +#define CONFIG_SAMI_DECODER 0 | ||
| 1261 | +#define CONFIG_SRT_DECODER 0 | ||
| 1262 | +#define CONFIG_STL_DECODER 0 | ||
| 1263 | +#define CONFIG_SUBRIP_DECODER 0 | ||
| 1264 | +#define CONFIG_SUBVIEWER_DECODER 0 | ||
| 1265 | +#define CONFIG_SUBVIEWER1_DECODER 0 | ||
| 1266 | +#define CONFIG_TEXT_DECODER 0 | ||
| 1267 | +#define CONFIG_VPLAYER_DECODER 0 | ||
| 1268 | +#define CONFIG_WEBVTT_DECODER 0 | ||
| 1269 | +#define CONFIG_XSUB_DECODER 0 | ||
| 1270 | +#define CONFIG_AAC_AT_DECODER 0 | ||
| 1271 | +#define CONFIG_AC3_AT_DECODER 0 | ||
| 1272 | +#define CONFIG_ADPCM_IMA_QT_AT_DECODER 0 | ||
| 1273 | +#define CONFIG_ALAC_AT_DECODER 0 | ||
| 1274 | +#define CONFIG_AMR_NB_AT_DECODER 0 | ||
| 1275 | +#define CONFIG_EAC3_AT_DECODER 0 | ||
| 1276 | +#define CONFIG_GSM_MS_AT_DECODER 0 | ||
| 1277 | +#define CONFIG_ILBC_AT_DECODER 0 | ||
| 1278 | +#define CONFIG_MP1_AT_DECODER 0 | ||
| 1279 | +#define CONFIG_MP2_AT_DECODER 0 | ||
| 1280 | +#define CONFIG_MP3_AT_DECODER 0 | ||
| 1281 | +#define CONFIG_PCM_ALAW_AT_DECODER 0 | ||
| 1282 | +#define CONFIG_PCM_MULAW_AT_DECODER 0 | ||
| 1283 | +#define CONFIG_QDMC_AT_DECODER 0 | ||
| 1284 | +#define CONFIG_QDM2_AT_DECODER 0 | ||
| 1285 | +#define CONFIG_LIBARIBB24_DECODER 0 | ||
| 1286 | +#define CONFIG_LIBCELT_DECODER 0 | ||
| 1287 | +#define CONFIG_LIBCODEC2_DECODER 0 | ||
| 1288 | +#define CONFIG_LIBDAV1D_DECODER 0 | ||
| 1289 | +#define CONFIG_LIBDAVS2_DECODER 0 | ||
| 1290 | +#define CONFIG_LIBFDK_AAC_DECODER 0 | ||
| 1291 | +#define CONFIG_LIBGSM_DECODER 0 | ||
| 1292 | +#define CONFIG_LIBGSM_MS_DECODER 0 | ||
| 1293 | +#define CONFIG_LIBILBC_DECODER 0 | ||
| 1294 | +#define CONFIG_LIBOPENCORE_AMRNB_DECODER 0 | ||
| 1295 | +#define CONFIG_LIBOPENCORE_AMRWB_DECODER 0 | ||
| 1296 | +#define CONFIG_LIBOPENJPEG_DECODER 0 | ||
| 1297 | +#define CONFIG_LIBOPUS_DECODER 1 | ||
| 1298 | +#define CONFIG_LIBRSVG_DECODER 0 | ||
| 1299 | +#define CONFIG_LIBSPEEX_DECODER 0 | ||
| 1300 | +#define CONFIG_LIBUAVS3D_DECODER 0 | ||
| 1301 | +#define CONFIG_LIBVORBIS_DECODER 0 | ||
| 1302 | +#define CONFIG_LIBVPX_VP8_DECODER 0 | ||
| 1303 | +#define CONFIG_LIBVPX_VP9_DECODER 0 | ||
| 1304 | +#define CONFIG_LIBZVBI_TELETEXT_DECODER 0 | ||
| 1305 | +#define CONFIG_BINTEXT_DECODER 0 | ||
| 1306 | +#define CONFIG_XBIN_DECODER 0 | ||
| 1307 | +#define CONFIG_IDF_DECODER 0 | ||
| 1308 | +#define CONFIG_LIBAOM_AV1_DECODER 0 | ||
| 1309 | +#define CONFIG_AV1_DECODER 0 | ||
| 1310 | +#define CONFIG_AV1_CUVID_DECODER 0 | ||
| 1311 | +#define CONFIG_AV1_QSV_DECODER 0 | ||
| 1312 | +#define CONFIG_LIBOPENH264_DECODER 0 | ||
| 1313 | +#define CONFIG_H264_CUVID_DECODER 0 | ||
| 1314 | +#define CONFIG_HEVC_CUVID_DECODER 0 | ||
| 1315 | +#define CONFIG_HEVC_MEDIACODEC_DECODER 0 | ||
| 1316 | +#define CONFIG_MJPEG_CUVID_DECODER 0 | ||
| 1317 | +#define CONFIG_MJPEG_QSV_DECODER 0 | ||
| 1318 | +#define CONFIG_MPEG1_CUVID_DECODER 0 | ||
| 1319 | +#define CONFIG_MPEG2_CUVID_DECODER 0 | ||
| 1320 | +#define CONFIG_MPEG4_CUVID_DECODER 0 | ||
| 1321 | +#define CONFIG_MPEG4_MEDIACODEC_DECODER 0 | ||
| 1322 | +#define CONFIG_VC1_CUVID_DECODER 0 | ||
| 1323 | +#define CONFIG_VP8_CUVID_DECODER 0 | ||
| 1324 | +#define CONFIG_VP8_MEDIACODEC_DECODER 0 | ||
| 1325 | +#define CONFIG_VP8_QSV_DECODER 0 | ||
| 1326 | +#define CONFIG_VP9_CUVID_DECODER 0 | ||
| 1327 | +#define CONFIG_VP9_MEDIACODEC_DECODER 0 | ||
| 1328 | +#define CONFIG_VP9_QSV_DECODER 0 | ||
| 1329 | +#define CONFIG_A64MULTI_ENCODER 0 | ||
| 1330 | +#define CONFIG_A64MULTI5_ENCODER 0 | ||
| 1331 | +#define CONFIG_ALIAS_PIX_ENCODER 0 | ||
| 1332 | +#define CONFIG_AMV_ENCODER 0 | ||
| 1333 | +#define CONFIG_APNG_ENCODER 0 | ||
| 1334 | +#define CONFIG_ASV1_ENCODER 0 | ||
| 1335 | +#define CONFIG_ASV2_ENCODER 0 | ||
| 1336 | +#define CONFIG_AVRP_ENCODER 0 | ||
| 1337 | +#define CONFIG_AVUI_ENCODER 0 | ||
| 1338 | +#define CONFIG_AYUV_ENCODER 0 | ||
| 1339 | +#define CONFIG_BITPACKED_ENCODER 0 | ||
| 1340 | +#define CONFIG_BMP_ENCODER 0 | ||
| 1341 | +#define CONFIG_CFHD_ENCODER 0 | ||
| 1342 | +#define CONFIG_CINEPAK_ENCODER 0 | ||
| 1343 | +#define CONFIG_CLJR_ENCODER 0 | ||
| 1344 | +#define CONFIG_COMFORTNOISE_ENCODER 0 | ||
| 1345 | +#define CONFIG_DNXHD_ENCODER 0 | ||
| 1346 | +#define CONFIG_DPX_ENCODER 0 | ||
| 1347 | +#define CONFIG_DVVIDEO_ENCODER 0 | ||
| 1348 | +#define CONFIG_EXR_ENCODER 0 | ||
| 1349 | +#define CONFIG_FFV1_ENCODER 0 | ||
| 1350 | +#define CONFIG_FFVHUFF_ENCODER 0 | ||
| 1351 | +#define CONFIG_FITS_ENCODER 0 | ||
| 1352 | +#define CONFIG_FLASHSV_ENCODER 0 | ||
| 1353 | +#define CONFIG_FLASHSV2_ENCODER 0 | ||
| 1354 | +#define CONFIG_FLV_ENCODER 0 | ||
| 1355 | +#define CONFIG_GIF_ENCODER 0 | ||
| 1356 | +#define CONFIG_H261_ENCODER 0 | ||
| 1357 | +#define CONFIG_H263_ENCODER 0 | ||
| 1358 | +#define CONFIG_H263P_ENCODER 0 | ||
| 1359 | +#define CONFIG_HAP_ENCODER 0 | ||
| 1360 | +#define CONFIG_HUFFYUV_ENCODER 0 | ||
| 1361 | +#define CONFIG_JPEG2000_ENCODER 0 | ||
| 1362 | +#define CONFIG_JPEGLS_ENCODER 0 | ||
| 1363 | +#define CONFIG_LJPEG_ENCODER 0 | ||
| 1364 | +#define CONFIG_MAGICYUV_ENCODER 0 | ||
| 1365 | +#define CONFIG_MJPEG_ENCODER 0 | ||
| 1366 | +#define CONFIG_MPEG1VIDEO_ENCODER 0 | ||
| 1367 | +#define CONFIG_MPEG2VIDEO_ENCODER 0 | ||
| 1368 | +#define CONFIG_MPEG4_ENCODER 0 | ||
| 1369 | +#define CONFIG_MSMPEG4V2_ENCODER 0 | ||
| 1370 | +#define CONFIG_MSMPEG4V3_ENCODER 0 | ||
| 1371 | +#define CONFIG_MSVIDEO1_ENCODER 0 | ||
| 1372 | +#define CONFIG_PAM_ENCODER 0 | ||
| 1373 | +#define CONFIG_PBM_ENCODER 0 | ||
| 1374 | +#define CONFIG_PCX_ENCODER 0 | ||
| 1375 | +#define CONFIG_PFM_ENCODER 0 | ||
| 1376 | +#define CONFIG_PGM_ENCODER 0 | ||
| 1377 | +#define CONFIG_PGMYUV_ENCODER 0 | ||
| 1378 | +#define CONFIG_PNG_ENCODER 0 | ||
| 1379 | +#define CONFIG_PPM_ENCODER 0 | ||
| 1380 | +#define CONFIG_PRORES_ENCODER 0 | ||
| 1381 | +#define CONFIG_PRORES_AW_ENCODER 0 | ||
| 1382 | +#define CONFIG_PRORES_KS_ENCODER 0 | ||
| 1383 | +#define CONFIG_QTRLE_ENCODER 0 | ||
| 1384 | +#define CONFIG_R10K_ENCODER 0 | ||
| 1385 | +#define CONFIG_R210_ENCODER 0 | ||
| 1386 | +#define CONFIG_RAWVIDEO_ENCODER 0 | ||
| 1387 | +#define CONFIG_ROQ_ENCODER 0 | ||
| 1388 | +#define CONFIG_RPZA_ENCODER 0 | ||
| 1389 | +#define CONFIG_RV10_ENCODER 0 | ||
| 1390 | +#define CONFIG_RV20_ENCODER 0 | ||
| 1391 | +#define CONFIG_S302M_ENCODER 0 | ||
| 1392 | +#define CONFIG_SGI_ENCODER 0 | ||
| 1393 | +#define CONFIG_SMC_ENCODER 0 | ||
| 1394 | +#define CONFIG_SNOW_ENCODER 0 | ||
| 1395 | +#define CONFIG_SPEEDHQ_ENCODER 0 | ||
| 1396 | +#define CONFIG_SUNRAST_ENCODER 0 | ||
| 1397 | +#define CONFIG_SVQ1_ENCODER 0 | ||
| 1398 | +#define CONFIG_TARGA_ENCODER 0 | ||
| 1399 | +#define CONFIG_TIFF_ENCODER 0 | ||
| 1400 | +#define CONFIG_UTVIDEO_ENCODER 0 | ||
| 1401 | +#define CONFIG_V210_ENCODER 0 | ||
| 1402 | +#define CONFIG_V308_ENCODER 0 | ||
| 1403 | +#define CONFIG_V408_ENCODER 0 | ||
| 1404 | +#define CONFIG_V410_ENCODER 0 | ||
| 1405 | +#define CONFIG_VC2_ENCODER 0 | ||
| 1406 | +#define CONFIG_WRAPPED_AVFRAME_ENCODER 0 | ||
| 1407 | +#define CONFIG_WMV1_ENCODER 0 | ||
| 1408 | +#define CONFIG_WMV2_ENCODER 0 | ||
| 1409 | +#define CONFIG_XBM_ENCODER 0 | ||
| 1410 | +#define CONFIG_XFACE_ENCODER 0 | ||
| 1411 | +#define CONFIG_XWD_ENCODER 0 | ||
| 1412 | +#define CONFIG_Y41P_ENCODER 0 | ||
| 1413 | +#define CONFIG_YUV4_ENCODER 0 | ||
| 1414 | +#define CONFIG_ZLIB_ENCODER 0 | ||
| 1415 | +#define CONFIG_ZMBV_ENCODER 0 | ||
| 1416 | +#define CONFIG_AAC_ENCODER 0 | ||
| 1417 | +#define CONFIG_AC3_ENCODER 0 | ||
| 1418 | +#define CONFIG_AC3_FIXED_ENCODER 0 | ||
| 1419 | +#define CONFIG_ALAC_ENCODER 0 | ||
| 1420 | +#define CONFIG_APTX_ENCODER 0 | ||
| 1421 | +#define CONFIG_APTX_HD_ENCODER 0 | ||
| 1422 | +#define CONFIG_DCA_ENCODER 0 | ||
| 1423 | +#define CONFIG_EAC3_ENCODER 0 | ||
| 1424 | +#define CONFIG_FLAC_ENCODER 0 | ||
| 1425 | +#define CONFIG_G723_1_ENCODER 0 | ||
| 1426 | +#define CONFIG_MLP_ENCODER 0 | ||
| 1427 | +#define CONFIG_MP2_ENCODER 0 | ||
| 1428 | +#define CONFIG_MP2FIXED_ENCODER 0 | ||
| 1429 | +#define CONFIG_NELLYMOSER_ENCODER 0 | ||
| 1430 | +#define CONFIG_OPUS_ENCODER 0 | ||
| 1431 | +#define CONFIG_RA_144_ENCODER 0 | ||
| 1432 | +#define CONFIG_SBC_ENCODER 0 | ||
| 1433 | +#define CONFIG_SONIC_ENCODER 0 | ||
| 1434 | +#define CONFIG_SONIC_LS_ENCODER 0 | ||
| 1435 | +#define CONFIG_TRUEHD_ENCODER 0 | ||
| 1436 | +#define CONFIG_TTA_ENCODER 0 | ||
| 1437 | +#define CONFIG_VORBIS_ENCODER 0 | ||
| 1438 | +#define CONFIG_WAVPACK_ENCODER 0 | ||
| 1439 | +#define CONFIG_WMAV1_ENCODER 0 | ||
| 1440 | +#define CONFIG_WMAV2_ENCODER 0 | ||
| 1441 | +#define CONFIG_PCM_ALAW_ENCODER 0 | ||
| 1442 | +#define CONFIG_PCM_DVD_ENCODER 0 | ||
| 1443 | +#define CONFIG_PCM_F32BE_ENCODER 0 | ||
| 1444 | +#define CONFIG_PCM_F32LE_ENCODER 0 | ||
| 1445 | +#define CONFIG_PCM_F64BE_ENCODER 0 | ||
| 1446 | +#define CONFIG_PCM_F64LE_ENCODER 0 | ||
| 1447 | +#define CONFIG_PCM_MULAW_ENCODER 0 | ||
| 1448 | +#define CONFIG_PCM_S8_ENCODER 0 | ||
| 1449 | +#define CONFIG_PCM_S8_PLANAR_ENCODER 0 | ||
| 1450 | +#define CONFIG_PCM_S16BE_ENCODER 0 | ||
| 1451 | +#define CONFIG_PCM_S16BE_PLANAR_ENCODER 0 | ||
| 1452 | +#define CONFIG_PCM_S16LE_ENCODER 0 | ||
| 1453 | +#define CONFIG_PCM_S16LE_PLANAR_ENCODER 0 | ||
| 1454 | +#define CONFIG_PCM_S24BE_ENCODER 0 | ||
| 1455 | +#define CONFIG_PCM_S24DAUD_ENCODER 0 | ||
| 1456 | +#define CONFIG_PCM_S24LE_ENCODER 0 | ||
| 1457 | +#define CONFIG_PCM_S24LE_PLANAR_ENCODER 0 | ||
| 1458 | +#define CONFIG_PCM_S32BE_ENCODER 0 | ||
| 1459 | +#define CONFIG_PCM_S32LE_ENCODER 0 | ||
| 1460 | +#define CONFIG_PCM_S32LE_PLANAR_ENCODER 0 | ||
| 1461 | +#define CONFIG_PCM_S64BE_ENCODER 0 | ||
| 1462 | +#define CONFIG_PCM_S64LE_ENCODER 0 | ||
| 1463 | +#define CONFIG_PCM_U8_ENCODER 0 | ||
| 1464 | +#define CONFIG_PCM_U16BE_ENCODER 0 | ||
| 1465 | +#define CONFIG_PCM_U16LE_ENCODER 0 | ||
| 1466 | +#define CONFIG_PCM_U24BE_ENCODER 0 | ||
| 1467 | +#define CONFIG_PCM_U24LE_ENCODER 0 | ||
| 1468 | +#define CONFIG_PCM_U32BE_ENCODER 0 | ||
| 1469 | +#define CONFIG_PCM_U32LE_ENCODER 0 | ||
| 1470 | +#define CONFIG_PCM_VIDC_ENCODER 0 | ||
| 1471 | +#define CONFIG_ROQ_DPCM_ENCODER 0 | ||
| 1472 | +#define CONFIG_ADPCM_ADX_ENCODER 0 | ||
| 1473 | +#define CONFIG_ADPCM_ARGO_ENCODER 0 | ||
| 1474 | +#define CONFIG_ADPCM_G722_ENCODER 0 | ||
| 1475 | +#define CONFIG_ADPCM_G726_ENCODER 0 | ||
| 1476 | +#define CONFIG_ADPCM_G726LE_ENCODER 0 | ||
| 1477 | +#define CONFIG_ADPCM_IMA_AMV_ENCODER 0 | ||
| 1478 | +#define CONFIG_ADPCM_IMA_ALP_ENCODER 0 | ||
| 1479 | +#define CONFIG_ADPCM_IMA_APM_ENCODER 0 | ||
| 1480 | +#define CONFIG_ADPCM_IMA_QT_ENCODER 0 | ||
| 1481 | +#define CONFIG_ADPCM_IMA_SSI_ENCODER 0 | ||
| 1482 | +#define CONFIG_ADPCM_IMA_WAV_ENCODER 0 | ||
| 1483 | +#define CONFIG_ADPCM_IMA_WS_ENCODER 0 | ||
| 1484 | +#define CONFIG_ADPCM_MS_ENCODER 0 | ||
| 1485 | +#define CONFIG_ADPCM_SWF_ENCODER 0 | ||
| 1486 | +#define CONFIG_ADPCM_YAMAHA_ENCODER 0 | ||
| 1487 | +#define CONFIG_SSA_ENCODER 0 | ||
| 1488 | +#define CONFIG_ASS_ENCODER 0 | ||
| 1489 | +#define CONFIG_DVBSUB_ENCODER 0 | ||
| 1490 | +#define CONFIG_DVDSUB_ENCODER 0 | ||
| 1491 | +#define CONFIG_MOVTEXT_ENCODER 0 | ||
| 1492 | +#define CONFIG_SRT_ENCODER 0 | ||
| 1493 | +#define CONFIG_SUBRIP_ENCODER 0 | ||
| 1494 | +#define CONFIG_TEXT_ENCODER 0 | ||
| 1495 | +#define CONFIG_TTML_ENCODER 0 | ||
| 1496 | +#define CONFIG_WEBVTT_ENCODER 0 | ||
| 1497 | +#define CONFIG_XSUB_ENCODER 0 | ||
| 1498 | +#define CONFIG_AAC_AT_ENCODER 0 | ||
| 1499 | +#define CONFIG_ALAC_AT_ENCODER 0 | ||
| 1500 | +#define CONFIG_ILBC_AT_ENCODER 0 | ||
| 1501 | +#define CONFIG_PCM_ALAW_AT_ENCODER 0 | ||
| 1502 | +#define CONFIG_PCM_MULAW_AT_ENCODER 0 | ||
| 1503 | +#define CONFIG_LIBAOM_AV1_ENCODER 0 | ||
| 1504 | +#define CONFIG_LIBCODEC2_ENCODER 0 | ||
| 1505 | +#define CONFIG_LIBFDK_AAC_ENCODER 0 | ||
| 1506 | +#define CONFIG_LIBGSM_ENCODER 0 | ||
| 1507 | +#define CONFIG_LIBGSM_MS_ENCODER 0 | ||
| 1508 | +#define CONFIG_LIBILBC_ENCODER 0 | ||
| 1509 | +#define CONFIG_LIBMP3LAME_ENCODER 0 | ||
| 1510 | +#define CONFIG_LIBOPENCORE_AMRNB_ENCODER 0 | ||
| 1511 | +#define CONFIG_LIBOPENJPEG_ENCODER 0 | ||
| 1512 | +#define CONFIG_LIBOPUS_ENCODER 0 | ||
| 1513 | +#define CONFIG_LIBRAV1E_ENCODER 0 | ||
| 1514 | +#define CONFIG_LIBSHINE_ENCODER 0 | ||
| 1515 | +#define CONFIG_LIBSPEEX_ENCODER 0 | ||
| 1516 | +#define CONFIG_LIBSVTAV1_ENCODER 0 | ||
| 1517 | +#define CONFIG_LIBTHEORA_ENCODER 0 | ||
| 1518 | +#define CONFIG_LIBTWOLAME_ENCODER 0 | ||
| 1519 | +#define CONFIG_LIBVO_AMRWBENC_ENCODER 0 | ||
| 1520 | +#define CONFIG_LIBVORBIS_ENCODER 0 | ||
| 1521 | +#define CONFIG_LIBVPX_VP8_ENCODER 0 | ||
| 1522 | +#define CONFIG_LIBVPX_VP9_ENCODER 0 | ||
| 1523 | +#define CONFIG_LIBWEBP_ANIM_ENCODER 0 | ||
| 1524 | +#define CONFIG_LIBWEBP_ENCODER 0 | ||
| 1525 | +#define CONFIG_LIBX262_ENCODER 0 | ||
| 1526 | +#define CONFIG_LIBX264_ENCODER 0 | ||
| 1527 | +#define CONFIG_LIBX264RGB_ENCODER 0 | ||
| 1528 | +#define CONFIG_LIBX265_ENCODER 0 | ||
| 1529 | +#define CONFIG_LIBXAVS_ENCODER 0 | ||
| 1530 | +#define CONFIG_LIBXAVS2_ENCODER 0 | ||
| 1531 | +#define CONFIG_LIBXVID_ENCODER 0 | ||
| 1532 | +#define CONFIG_AAC_MF_ENCODER 0 | ||
| 1533 | +#define CONFIG_AC3_MF_ENCODER 0 | ||
| 1534 | +#define CONFIG_H263_V4L2M2M_ENCODER 0 | ||
| 1535 | +#define CONFIG_LIBOPENH264_ENCODER 0 | ||
| 1536 | +#define CONFIG_H264_AMF_ENCODER 0 | ||
| 1537 | +#define CONFIG_H264_MF_ENCODER 0 | ||
| 1538 | +#define CONFIG_H264_NVENC_ENCODER 0 | ||
| 1539 | +#define CONFIG_H264_OMX_ENCODER 0 | ||
| 1540 | +#define CONFIG_H264_QSV_ENCODER 0 | ||
| 1541 | +#define CONFIG_H264_V4L2M2M_ENCODER 0 | ||
| 1542 | +#define CONFIG_H264_VAAPI_ENCODER 0 | ||
| 1543 | +#define CONFIG_H264_VIDEOTOOLBOX_ENCODER 0 | ||
| 1544 | +#define CONFIG_HEVC_AMF_ENCODER 0 | ||
| 1545 | +#define CONFIG_HEVC_MF_ENCODER 0 | ||
| 1546 | +#define CONFIG_HEVC_NVENC_ENCODER 0 | ||
| 1547 | +#define CONFIG_HEVC_QSV_ENCODER 0 | ||
| 1548 | +#define CONFIG_HEVC_V4L2M2M_ENCODER 0 | ||
| 1549 | +#define CONFIG_HEVC_VAAPI_ENCODER 0 | ||
| 1550 | +#define CONFIG_HEVC_VIDEOTOOLBOX_ENCODER 0 | ||
| 1551 | +#define CONFIG_LIBKVAZAAR_ENCODER 0 | ||
| 1552 | +#define CONFIG_MJPEG_QSV_ENCODER 0 | ||
| 1553 | +#define CONFIG_MJPEG_VAAPI_ENCODER 0 | ||
| 1554 | +#define CONFIG_MP3_MF_ENCODER 0 | ||
| 1555 | +#define CONFIG_MPEG2_QSV_ENCODER 0 | ||
| 1556 | +#define CONFIG_MPEG2_VAAPI_ENCODER 0 | ||
| 1557 | +#define CONFIG_MPEG4_OMX_ENCODER 0 | ||
| 1558 | +#define CONFIG_MPEG4_V4L2M2M_ENCODER 0 | ||
| 1559 | +#define CONFIG_PRORES_VIDEOTOOLBOX_ENCODER 0 | ||
| 1560 | +#define CONFIG_VP8_V4L2M2M_ENCODER 0 | ||
| 1561 | +#define CONFIG_VP8_VAAPI_ENCODER 0 | ||
| 1562 | +#define CONFIG_VP9_VAAPI_ENCODER 0 | ||
| 1563 | +#define CONFIG_VP9_QSV_ENCODER 0 | ||
| 1564 | +#define CONFIG_AV1_D3D11VA_HWACCEL 0 | ||
| 1565 | +#define CONFIG_AV1_D3D11VA2_HWACCEL 0 | ||
| 1566 | +#define CONFIG_AV1_DXVA2_HWACCEL 0 | ||
| 1567 | +#define CONFIG_AV1_NVDEC_HWACCEL 0 | ||
| 1568 | +#define CONFIG_AV1_VAAPI_HWACCEL 0 | ||
| 1569 | +#define CONFIG_H263_VAAPI_HWACCEL 0 | ||
| 1570 | +#define CONFIG_H263_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1571 | +#define CONFIG_H264_D3D11VA_HWACCEL 0 | ||
| 1572 | +#define CONFIG_H264_D3D11VA2_HWACCEL 0 | ||
| 1573 | +#define CONFIG_H264_DXVA2_HWACCEL 0 | ||
| 1574 | +#define CONFIG_H264_NVDEC_HWACCEL 0 | ||
| 1575 | +#define CONFIG_H264_VAAPI_HWACCEL 0 | ||
| 1576 | +#define CONFIG_H264_VDPAU_HWACCEL 0 | ||
| 1577 | +#define CONFIG_H264_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1578 | +#define CONFIG_HEVC_D3D11VA_HWACCEL 0 | ||
| 1579 | +#define CONFIG_HEVC_D3D11VA2_HWACCEL 0 | ||
| 1580 | +#define CONFIG_HEVC_DXVA2_HWACCEL 0 | ||
| 1581 | +#define CONFIG_HEVC_NVDEC_HWACCEL 0 | ||
| 1582 | +#define CONFIG_HEVC_VAAPI_HWACCEL 0 | ||
| 1583 | +#define CONFIG_HEVC_VDPAU_HWACCEL 0 | ||
| 1584 | +#define CONFIG_HEVC_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1585 | +#define CONFIG_MJPEG_NVDEC_HWACCEL 0 | ||
| 1586 | +#define CONFIG_MJPEG_VAAPI_HWACCEL 0 | ||
| 1587 | +#define CONFIG_MPEG1_NVDEC_HWACCEL 0 | ||
| 1588 | +#define CONFIG_MPEG1_VDPAU_HWACCEL 0 | ||
| 1589 | +#define CONFIG_MPEG1_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1590 | +#define CONFIG_MPEG1_XVMC_HWACCEL 0 | ||
| 1591 | +#define CONFIG_MPEG2_D3D11VA_HWACCEL 0 | ||
| 1592 | +#define CONFIG_MPEG2_D3D11VA2_HWACCEL 0 | ||
| 1593 | +#define CONFIG_MPEG2_NVDEC_HWACCEL 0 | ||
| 1594 | +#define CONFIG_MPEG2_DXVA2_HWACCEL 0 | ||
| 1595 | +#define CONFIG_MPEG2_VAAPI_HWACCEL 0 | ||
| 1596 | +#define CONFIG_MPEG2_VDPAU_HWACCEL 0 | ||
| 1597 | +#define CONFIG_MPEG2_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1598 | +#define CONFIG_MPEG2_XVMC_HWACCEL 0 | ||
| 1599 | +#define CONFIG_MPEG4_NVDEC_HWACCEL 0 | ||
| 1600 | +#define CONFIG_MPEG4_VAAPI_HWACCEL 0 | ||
| 1601 | +#define CONFIG_MPEG4_VDPAU_HWACCEL 0 | ||
| 1602 | +#define CONFIG_MPEG4_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1603 | +#define CONFIG_PRORES_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1604 | +#define CONFIG_VC1_D3D11VA_HWACCEL 0 | ||
| 1605 | +#define CONFIG_VC1_D3D11VA2_HWACCEL 0 | ||
| 1606 | +#define CONFIG_VC1_DXVA2_HWACCEL 0 | ||
| 1607 | +#define CONFIG_VC1_NVDEC_HWACCEL 0 | ||
| 1608 | +#define CONFIG_VC1_VAAPI_HWACCEL 0 | ||
| 1609 | +#define CONFIG_VC1_VDPAU_HWACCEL 0 | ||
| 1610 | +#define CONFIG_VP8_NVDEC_HWACCEL 0 | ||
| 1611 | +#define CONFIG_VP8_VAAPI_HWACCEL 0 | ||
| 1612 | +#define CONFIG_VP9_D3D11VA_HWACCEL 0 | ||
| 1613 | +#define CONFIG_VP9_D3D11VA2_HWACCEL 0 | ||
| 1614 | +#define CONFIG_VP9_DXVA2_HWACCEL 0 | ||
| 1615 | +#define CONFIG_VP9_NVDEC_HWACCEL 0 | ||
| 1616 | +#define CONFIG_VP9_VAAPI_HWACCEL 0 | ||
| 1617 | +#define CONFIG_VP9_VDPAU_HWACCEL 0 | ||
| 1618 | +#define CONFIG_VP9_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1619 | +#define CONFIG_WMV3_D3D11VA_HWACCEL 0 | ||
| 1620 | +#define CONFIG_WMV3_D3D11VA2_HWACCEL 0 | ||
| 1621 | +#define CONFIG_WMV3_DXVA2_HWACCEL 0 | ||
| 1622 | +#define CONFIG_WMV3_NVDEC_HWACCEL 0 | ||
| 1623 | +#define CONFIG_WMV3_VAAPI_HWACCEL 0 | ||
| 1624 | +#define CONFIG_WMV3_VDPAU_HWACCEL 0 | ||
| 1625 | +#define CONFIG_AAC_PARSER 1 | ||
| 1626 | +#define CONFIG_AAC_LATM_PARSER 0 | ||
| 1627 | +#define CONFIG_AC3_PARSER 0 | ||
| 1628 | +#define CONFIG_ADX_PARSER 0 | ||
| 1629 | +#define CONFIG_AMR_PARSER 0 | ||
| 1630 | +#define CONFIG_AV1_PARSER 0 | ||
| 1631 | +#define CONFIG_AVS2_PARSER 0 | ||
| 1632 | +#define CONFIG_AVS3_PARSER 0 | ||
| 1633 | +#define CONFIG_BMP_PARSER 0 | ||
| 1634 | +#define CONFIG_CAVSVIDEO_PARSER 0 | ||
| 1635 | +#define CONFIG_COOK_PARSER 0 | ||
| 1636 | +#define CONFIG_CRI_PARSER 0 | ||
| 1637 | +#define CONFIG_DCA_PARSER 0 | ||
| 1638 | +#define CONFIG_DIRAC_PARSER 0 | ||
| 1639 | +#define CONFIG_DNXHD_PARSER 0 | ||
| 1640 | +#define CONFIG_DOLBY_E_PARSER 0 | ||
| 1641 | +#define CONFIG_DPX_PARSER 0 | ||
| 1642 | +#define CONFIG_DVAUDIO_PARSER 0 | ||
| 1643 | +#define CONFIG_DVBSUB_PARSER 0 | ||
| 1644 | +#define CONFIG_DVDSUB_PARSER 0 | ||
| 1645 | +#define CONFIG_DVD_NAV_PARSER 0 | ||
| 1646 | +#define CONFIG_FLAC_PARSER 1 | ||
| 1647 | +#define CONFIG_G723_1_PARSER 0 | ||
| 1648 | +#define CONFIG_G729_PARSER 0 | ||
| 1649 | +#define CONFIG_GIF_PARSER 0 | ||
| 1650 | +#define CONFIG_GSM_PARSER 0 | ||
| 1651 | +#define CONFIG_H261_PARSER 0 | ||
| 1652 | +#define CONFIG_H263_PARSER 0 | ||
| 1653 | +#define CONFIG_H264_PARSER 1 | ||
| 1654 | +#define CONFIG_HEVC_PARSER 0 | ||
| 1655 | +#define CONFIG_IPU_PARSER 0 | ||
| 1656 | +#define CONFIG_JPEG2000_PARSER 0 | ||
| 1657 | +#define CONFIG_MJPEG_PARSER 0 | ||
| 1658 | +#define CONFIG_MLP_PARSER 0 | ||
| 1659 | +#define CONFIG_MPEG4VIDEO_PARSER 0 | ||
| 1660 | +#define CONFIG_MPEGAUDIO_PARSER 1 | ||
| 1661 | +#define CONFIG_MPEGVIDEO_PARSER 0 | ||
| 1662 | +#define CONFIG_OPUS_PARSER 1 | ||
| 1663 | +#define CONFIG_PNG_PARSER 0 | ||
| 1664 | +#define CONFIG_PNM_PARSER 0 | ||
| 1665 | +#define CONFIG_RV30_PARSER 0 | ||
| 1666 | +#define CONFIG_RV40_PARSER 0 | ||
| 1667 | +#define CONFIG_SBC_PARSER 0 | ||
| 1668 | +#define CONFIG_SIPR_PARSER 0 | ||
| 1669 | +#define CONFIG_TAK_PARSER 0 | ||
| 1670 | +#define CONFIG_VC1_PARSER 0 | ||
| 1671 | +#define CONFIG_VORBIS_PARSER 1 | ||
| 1672 | +#define CONFIG_VP3_PARSER 1 | ||
| 1673 | +#define CONFIG_VP8_PARSER 1 | ||
| 1674 | +#define CONFIG_VP9_PARSER 1 | ||
| 1675 | +#define CONFIG_WEBP_PARSER 0 | ||
| 1676 | +#define CONFIG_XBM_PARSER 0 | ||
| 1677 | +#define CONFIG_XMA_PARSER 0 | ||
| 1678 | +#define CONFIG_ALSA_INDEV 0 | ||
| 1679 | +#define CONFIG_ANDROID_CAMERA_INDEV 0 | ||
| 1680 | +#define CONFIG_AVFOUNDATION_INDEV 0 | ||
| 1681 | +#define CONFIG_BKTR_INDEV 0 | ||
| 1682 | +#define CONFIG_DECKLINK_INDEV 0 | ||
| 1683 | +#define CONFIG_DSHOW_INDEV 0 | ||
| 1684 | +#define CONFIG_FBDEV_INDEV 0 | ||
| 1685 | +#define CONFIG_GDIGRAB_INDEV 0 | ||
| 1686 | +#define CONFIG_IEC61883_INDEV 0 | ||
| 1687 | +#define CONFIG_JACK_INDEV 0 | ||
| 1688 | +#define CONFIG_KMSGRAB_INDEV 0 | ||
| 1689 | +#define CONFIG_LAVFI_INDEV 0 | ||
| 1690 | +#define CONFIG_OPENAL_INDEV 0 | ||
| 1691 | +#define CONFIG_OSS_INDEV 0 | ||
| 1692 | +#define CONFIG_PULSE_INDEV 0 | ||
| 1693 | +#define CONFIG_SNDIO_INDEV 0 | ||
| 1694 | +#define CONFIG_V4L2_INDEV 0 | ||
| 1695 | +#define CONFIG_VFWCAP_INDEV 0 | ||
| 1696 | +#define CONFIG_XCBGRAB_INDEV 0 | ||
| 1697 | +#define CONFIG_LIBCDIO_INDEV 0 | ||
| 1698 | +#define CONFIG_LIBDC1394_INDEV 0 | ||
| 1699 | +#define CONFIG_ALSA_OUTDEV 0 | ||
| 1700 | +#define CONFIG_AUDIOTOOLBOX_OUTDEV 0 | ||
| 1701 | +#define CONFIG_CACA_OUTDEV 0 | ||
| 1702 | +#define CONFIG_DECKLINK_OUTDEV 0 | ||
| 1703 | +#define CONFIG_FBDEV_OUTDEV 0 | ||
| 1704 | +#define CONFIG_OPENGL_OUTDEV 0 | ||
| 1705 | +#define CONFIG_OSS_OUTDEV 0 | ||
| 1706 | +#define CONFIG_PULSE_OUTDEV 0 | ||
| 1707 | +#define CONFIG_SDL2_OUTDEV 0 | ||
| 1708 | +#define CONFIG_SNDIO_OUTDEV 0 | ||
| 1709 | +#define CONFIG_V4L2_OUTDEV 0 | ||
| 1710 | +#define CONFIG_XV_OUTDEV 0 | ||
| 1711 | +#define CONFIG_ABENCH_FILTER 0 | ||
| 1712 | +#define CONFIG_ACOMPRESSOR_FILTER 0 | ||
| 1713 | +#define CONFIG_ACONTRAST_FILTER 0 | ||
| 1714 | +#define CONFIG_ACOPY_FILTER 0 | ||
| 1715 | +#define CONFIG_ACUE_FILTER 0 | ||
| 1716 | +#define CONFIG_ACROSSFADE_FILTER 0 | ||
| 1717 | +#define CONFIG_ACROSSOVER_FILTER 0 | ||
| 1718 | +#define CONFIG_ACRUSHER_FILTER 0 | ||
| 1719 | +#define CONFIG_ADECLICK_FILTER 0 | ||
| 1720 | +#define CONFIG_ADECLIP_FILTER 0 | ||
| 1721 | +#define CONFIG_ADECORRELATE_FILTER 0 | ||
| 1722 | +#define CONFIG_ADELAY_FILTER 0 | ||
| 1723 | +#define CONFIG_ADENORM_FILTER 0 | ||
| 1724 | +#define CONFIG_ADERIVATIVE_FILTER 0 | ||
| 1725 | +#define CONFIG_ADYNAMICEQUALIZER_FILTER 0 | ||
| 1726 | +#define CONFIG_ADYNAMICSMOOTH_FILTER 0 | ||
| 1727 | +#define CONFIG_AECHO_FILTER 0 | ||
| 1728 | +#define CONFIG_AEMPHASIS_FILTER 0 | ||
| 1729 | +#define CONFIG_AEVAL_FILTER 0 | ||
| 1730 | +#define CONFIG_AEXCITER_FILTER 0 | ||
| 1731 | +#define CONFIG_AFADE_FILTER 0 | ||
| 1732 | +#define CONFIG_AFFTDN_FILTER 0 | ||
| 1733 | +#define CONFIG_AFFTFILT_FILTER 0 | ||
| 1734 | +#define CONFIG_AFIR_FILTER 0 | ||
| 1735 | +#define CONFIG_AFORMAT_FILTER 0 | ||
| 1736 | +#define CONFIG_AFREQSHIFT_FILTER 0 | ||
| 1737 | +#define CONFIG_AFWTDN_FILTER 0 | ||
| 1738 | +#define CONFIG_AGATE_FILTER 0 | ||
| 1739 | +#define CONFIG_AIIR_FILTER 0 | ||
| 1740 | +#define CONFIG_AINTEGRAL_FILTER 0 | ||
| 1741 | +#define CONFIG_AINTERLEAVE_FILTER 0 | ||
| 1742 | +#define CONFIG_ALATENCY_FILTER 0 | ||
| 1743 | +#define CONFIG_ALIMITER_FILTER 0 | ||
| 1744 | +#define CONFIG_ALLPASS_FILTER 0 | ||
| 1745 | +#define CONFIG_ALOOP_FILTER 0 | ||
| 1746 | +#define CONFIG_AMERGE_FILTER 0 | ||
| 1747 | +#define CONFIG_AMETADATA_FILTER 0 | ||
| 1748 | +#define CONFIG_AMIX_FILTER 0 | ||
| 1749 | +#define CONFIG_AMULTIPLY_FILTER 0 | ||
| 1750 | +#define CONFIG_ANEQUALIZER_FILTER 0 | ||
| 1751 | +#define CONFIG_ANLMDN_FILTER 0 | ||
| 1752 | +#define CONFIG_ANLMF_FILTER 0 | ||
| 1753 | +#define CONFIG_ANLMS_FILTER 0 | ||
| 1754 | +#define CONFIG_ANULL_FILTER 0 | ||
| 1755 | +#define CONFIG_APAD_FILTER 0 | ||
| 1756 | +#define CONFIG_APERMS_FILTER 0 | ||
| 1757 | +#define CONFIG_APHASER_FILTER 0 | ||
| 1758 | +#define CONFIG_APHASESHIFT_FILTER 0 | ||
| 1759 | +#define CONFIG_APSYCLIP_FILTER 0 | ||
| 1760 | +#define CONFIG_APULSATOR_FILTER 0 | ||
| 1761 | +#define CONFIG_AREALTIME_FILTER 0 | ||
| 1762 | +#define CONFIG_ARESAMPLE_FILTER 0 | ||
| 1763 | +#define CONFIG_AREVERSE_FILTER 0 | ||
| 1764 | +#define CONFIG_ARNNDN_FILTER 0 | ||
| 1765 | +#define CONFIG_ASDR_FILTER 0 | ||
| 1766 | +#define CONFIG_ASEGMENT_FILTER 0 | ||
| 1767 | +#define CONFIG_ASELECT_FILTER 0 | ||
| 1768 | +#define CONFIG_ASENDCMD_FILTER 0 | ||
| 1769 | +#define CONFIG_ASETNSAMPLES_FILTER 0 | ||
| 1770 | +#define CONFIG_ASETPTS_FILTER 0 | ||
| 1771 | +#define CONFIG_ASETRATE_FILTER 0 | ||
| 1772 | +#define CONFIG_ASETTB_FILTER 0 | ||
| 1773 | +#define CONFIG_ASHOWINFO_FILTER 0 | ||
| 1774 | +#define CONFIG_ASIDEDATA_FILTER 0 | ||
| 1775 | +#define CONFIG_ASOFTCLIP_FILTER 0 | ||
| 1776 | +#define CONFIG_ASPECTRALSTATS_FILTER 0 | ||
| 1777 | +#define CONFIG_ASPLIT_FILTER 0 | ||
| 1778 | +#define CONFIG_ASR_FILTER 0 | ||
| 1779 | +#define CONFIG_ASTATS_FILTER 0 | ||
| 1780 | +#define CONFIG_ASTREAMSELECT_FILTER 0 | ||
| 1781 | +#define CONFIG_ASUBBOOST_FILTER 0 | ||
| 1782 | +#define CONFIG_ASUBCUT_FILTER 0 | ||
| 1783 | +#define CONFIG_ASUPERCUT_FILTER 0 | ||
| 1784 | +#define CONFIG_ASUPERPASS_FILTER 0 | ||
| 1785 | +#define CONFIG_ASUPERSTOP_FILTER 0 | ||
| 1786 | +#define CONFIG_ATEMPO_FILTER 0 | ||
| 1787 | +#define CONFIG_ATILT_FILTER 0 | ||
| 1788 | +#define CONFIG_ATRIM_FILTER 0 | ||
| 1789 | +#define CONFIG_AXCORRELATE_FILTER 0 | ||
| 1790 | +#define CONFIG_AZMQ_FILTER 0 | ||
| 1791 | +#define CONFIG_BANDPASS_FILTER 0 | ||
| 1792 | +#define CONFIG_BANDREJECT_FILTER 0 | ||
| 1793 | +#define CONFIG_BASS_FILTER 0 | ||
| 1794 | +#define CONFIG_BIQUAD_FILTER 0 | ||
| 1795 | +#define CONFIG_BS2B_FILTER 0 | ||
| 1796 | +#define CONFIG_CHANNELMAP_FILTER 0 | ||
| 1797 | +#define CONFIG_CHANNELSPLIT_FILTER 0 | ||
| 1798 | +#define CONFIG_CHORUS_FILTER 0 | ||
| 1799 | +#define CONFIG_COMPAND_FILTER 0 | ||
| 1800 | +#define CONFIG_COMPENSATIONDELAY_FILTER 0 | ||
| 1801 | +#define CONFIG_CROSSFEED_FILTER 0 | ||
| 1802 | +#define CONFIG_CRYSTALIZER_FILTER 0 | ||
| 1803 | +#define CONFIG_DCSHIFT_FILTER 0 | ||
| 1804 | +#define CONFIG_DEESSER_FILTER 0 | ||
| 1805 | +#define CONFIG_DRMETER_FILTER 0 | ||
| 1806 | +#define CONFIG_DYNAUDNORM_FILTER 0 | ||
| 1807 | +#define CONFIG_EARWAX_FILTER 0 | ||
| 1808 | +#define CONFIG_EBUR128_FILTER 0 | ||
| 1809 | +#define CONFIG_EQUALIZER_FILTER 0 | ||
| 1810 | +#define CONFIG_EXTRASTEREO_FILTER 0 | ||
| 1811 | +#define CONFIG_FIREQUALIZER_FILTER 0 | ||
| 1812 | +#define CONFIG_FLANGER_FILTER 0 | ||
| 1813 | +#define CONFIG_HAAS_FILTER 0 | ||
| 1814 | +#define CONFIG_HDCD_FILTER 0 | ||
| 1815 | +#define CONFIG_HEADPHONE_FILTER 0 | ||
| 1816 | +#define CONFIG_HIGHPASS_FILTER 0 | ||
| 1817 | +#define CONFIG_HIGHSHELF_FILTER 0 | ||
| 1818 | +#define CONFIG_JOIN_FILTER 0 | ||
| 1819 | +#define CONFIG_LADSPA_FILTER 0 | ||
| 1820 | +#define CONFIG_LOUDNORM_FILTER 0 | ||
| 1821 | +#define CONFIG_LOWPASS_FILTER 0 | ||
| 1822 | +#define CONFIG_LOWSHELF_FILTER 0 | ||
| 1823 | +#define CONFIG_LV2_FILTER 0 | ||
| 1824 | +#define CONFIG_MCOMPAND_FILTER 0 | ||
| 1825 | +#define CONFIG_PAN_FILTER 0 | ||
| 1826 | +#define CONFIG_REPLAYGAIN_FILTER 0 | ||
| 1827 | +#define CONFIG_RUBBERBAND_FILTER 0 | ||
| 1828 | +#define CONFIG_SIDECHAINCOMPRESS_FILTER 0 | ||
| 1829 | +#define CONFIG_SIDECHAINGATE_FILTER 0 | ||
| 1830 | +#define CONFIG_SILENCEDETECT_FILTER 0 | ||
| 1831 | +#define CONFIG_SILENCEREMOVE_FILTER 0 | ||
| 1832 | +#define CONFIG_SOFALIZER_FILTER 0 | ||
| 1833 | +#define CONFIG_SPEECHNORM_FILTER 0 | ||
| 1834 | +#define CONFIG_STEREOTOOLS_FILTER 0 | ||
| 1835 | +#define CONFIG_STEREOWIDEN_FILTER 0 | ||
| 1836 | +#define CONFIG_SUPEREQUALIZER_FILTER 0 | ||
| 1837 | +#define CONFIG_SURROUND_FILTER 0 | ||
| 1838 | +#define CONFIG_TREBLE_FILTER 0 | ||
| 1839 | +#define CONFIG_TREMOLO_FILTER 0 | ||
| 1840 | +#define CONFIG_VIBRATO_FILTER 0 | ||
| 1841 | +#define CONFIG_VOLUME_FILTER 0 | ||
| 1842 | +#define CONFIG_VOLUMEDETECT_FILTER 0 | ||
| 1843 | +#define CONFIG_AEVALSRC_FILTER 0 | ||
| 1844 | +#define CONFIG_AFIRSRC_FILTER 0 | ||
| 1845 | +#define CONFIG_ANOISESRC_FILTER 0 | ||
| 1846 | +#define CONFIG_ANULLSRC_FILTER 0 | ||
| 1847 | +#define CONFIG_FLITE_FILTER 0 | ||
| 1848 | +#define CONFIG_HILBERT_FILTER 0 | ||
| 1849 | +#define CONFIG_SINC_FILTER 0 | ||
| 1850 | +#define CONFIG_SINE_FILTER 0 | ||
| 1851 | +#define CONFIG_ANULLSINK_FILTER 0 | ||
| 1852 | +#define CONFIG_ADDROI_FILTER 0 | ||
| 1853 | +#define CONFIG_ALPHAEXTRACT_FILTER 0 | ||
| 1854 | +#define CONFIG_ALPHAMERGE_FILTER 0 | ||
| 1855 | +#define CONFIG_AMPLIFY_FILTER 0 | ||
| 1856 | +#define CONFIG_ASS_FILTER 0 | ||
| 1857 | +#define CONFIG_ATADENOISE_FILTER 0 | ||
| 1858 | +#define CONFIG_AVGBLUR_FILTER 0 | ||
| 1859 | +#define CONFIG_AVGBLUR_OPENCL_FILTER 0 | ||
| 1860 | +#define CONFIG_AVGBLUR_VULKAN_FILTER 0 | ||
| 1861 | +#define CONFIG_BBOX_FILTER 0 | ||
| 1862 | +#define CONFIG_BENCH_FILTER 0 | ||
| 1863 | +#define CONFIG_BILATERAL_FILTER 0 | ||
| 1864 | +#define CONFIG_BITPLANENOISE_FILTER 0 | ||
| 1865 | +#define CONFIG_BLACKDETECT_FILTER 0 | ||
| 1866 | +#define CONFIG_BLACKFRAME_FILTER 0 | ||
| 1867 | +#define CONFIG_BLEND_FILTER 0 | ||
| 1868 | +#define CONFIG_BLEND_VULKAN_FILTER 0 | ||
| 1869 | +#define CONFIG_BM3D_FILTER 0 | ||
| 1870 | +#define CONFIG_BOXBLUR_FILTER 0 | ||
| 1871 | +#define CONFIG_BOXBLUR_OPENCL_FILTER 0 | ||
| 1872 | +#define CONFIG_BWDIF_FILTER 0 | ||
| 1873 | +#define CONFIG_CAS_FILTER 0 | ||
| 1874 | +#define CONFIG_CHROMABER_VULKAN_FILTER 0 | ||
| 1875 | +#define CONFIG_CHROMAHOLD_FILTER 0 | ||
| 1876 | +#define CONFIG_CHROMAKEY_FILTER 0 | ||
| 1877 | +#define CONFIG_CHROMANR_FILTER 0 | ||
| 1878 | +#define CONFIG_CHROMASHIFT_FILTER 0 | ||
| 1879 | +#define CONFIG_CIESCOPE_FILTER 0 | ||
| 1880 | +#define CONFIG_CODECVIEW_FILTER 0 | ||
| 1881 | +#define CONFIG_COLORBALANCE_FILTER 0 | ||
| 1882 | +#define CONFIG_COLORCHANNELMIXER_FILTER 0 | ||
| 1883 | +#define CONFIG_COLORCONTRAST_FILTER 0 | ||
| 1884 | +#define CONFIG_COLORCORRECT_FILTER 0 | ||
| 1885 | +#define CONFIG_COLORIZE_FILTER 0 | ||
| 1886 | +#define CONFIG_COLORKEY_FILTER 0 | ||
| 1887 | +#define CONFIG_COLORKEY_OPENCL_FILTER 0 | ||
| 1888 | +#define CONFIG_COLORHOLD_FILTER 0 | ||
| 1889 | +#define CONFIG_COLORLEVELS_FILTER 0 | ||
| 1890 | +#define CONFIG_COLORMATRIX_FILTER 0 | ||
| 1891 | +#define CONFIG_COLORSPACE_FILTER 0 | ||
| 1892 | +#define CONFIG_COLORTEMPERATURE_FILTER 0 | ||
| 1893 | +#define CONFIG_CONVOLUTION_FILTER 0 | ||
| 1894 | +#define CONFIG_CONVOLUTION_OPENCL_FILTER 0 | ||
| 1895 | +#define CONFIG_CONVOLVE_FILTER 0 | ||
| 1896 | +#define CONFIG_COPY_FILTER 0 | ||
| 1897 | +#define CONFIG_COREIMAGE_FILTER 0 | ||
| 1898 | +#define CONFIG_COVER_RECT_FILTER 0 | ||
| 1899 | +#define CONFIG_CROP_FILTER 0 | ||
| 1900 | +#define CONFIG_CROPDETECT_FILTER 0 | ||
| 1901 | +#define CONFIG_CUE_FILTER 0 | ||
| 1902 | +#define CONFIG_CURVES_FILTER 0 | ||
| 1903 | +#define CONFIG_DATASCOPE_FILTER 0 | ||
| 1904 | +#define CONFIG_DBLUR_FILTER 0 | ||
| 1905 | +#define CONFIG_DCTDNOIZ_FILTER 0 | ||
| 1906 | +#define CONFIG_DEBAND_FILTER 0 | ||
| 1907 | +#define CONFIG_DEBLOCK_FILTER 0 | ||
| 1908 | +#define CONFIG_DECIMATE_FILTER 0 | ||
| 1909 | +#define CONFIG_DECONVOLVE_FILTER 0 | ||
| 1910 | +#define CONFIG_DEDOT_FILTER 0 | ||
| 1911 | +#define CONFIG_DEFLATE_FILTER 0 | ||
| 1912 | +#define CONFIG_DEFLICKER_FILTER 0 | ||
| 1913 | +#define CONFIG_DEINTERLACE_QSV_FILTER 0 | ||
| 1914 | +#define CONFIG_DEINTERLACE_VAAPI_FILTER 0 | ||
| 1915 | +#define CONFIG_DEJUDDER_FILTER 0 | ||
| 1916 | +#define CONFIG_DELOGO_FILTER 0 | ||
| 1917 | +#define CONFIG_DENOISE_VAAPI_FILTER 0 | ||
| 1918 | +#define CONFIG_DERAIN_FILTER 0 | ||
| 1919 | +#define CONFIG_DESHAKE_FILTER 0 | ||
| 1920 | +#define CONFIG_DESHAKE_OPENCL_FILTER 0 | ||
| 1921 | +#define CONFIG_DESPILL_FILTER 0 | ||
| 1922 | +#define CONFIG_DETELECINE_FILTER 0 | ||
| 1923 | +#define CONFIG_DILATION_FILTER 0 | ||
| 1924 | +#define CONFIG_DILATION_OPENCL_FILTER 0 | ||
| 1925 | +#define CONFIG_DISPLACE_FILTER 0 | ||
| 1926 | +#define CONFIG_DNN_CLASSIFY_FILTER 0 | ||
| 1927 | +#define CONFIG_DNN_DETECT_FILTER 0 | ||
| 1928 | +#define CONFIG_DNN_PROCESSING_FILTER 0 | ||
| 1929 | +#define CONFIG_DOUBLEWEAVE_FILTER 0 | ||
| 1930 | +#define CONFIG_DRAWBOX_FILTER 0 | ||
| 1931 | +#define CONFIG_DRAWGRAPH_FILTER 0 | ||
| 1932 | +#define CONFIG_DRAWGRID_FILTER 0 | ||
| 1933 | +#define CONFIG_DRAWTEXT_FILTER 0 | ||
| 1934 | +#define CONFIG_EDGEDETECT_FILTER 0 | ||
| 1935 | +#define CONFIG_ELBG_FILTER 0 | ||
| 1936 | +#define CONFIG_ENTROPY_FILTER 0 | ||
| 1937 | +#define CONFIG_EPX_FILTER 0 | ||
| 1938 | +#define CONFIG_EQ_FILTER 0 | ||
| 1939 | +#define CONFIG_EROSION_FILTER 0 | ||
| 1940 | +#define CONFIG_EROSION_OPENCL_FILTER 0 | ||
| 1941 | +#define CONFIG_ESTDIF_FILTER 0 | ||
| 1942 | +#define CONFIG_EXPOSURE_FILTER 0 | ||
| 1943 | +#define CONFIG_EXTRACTPLANES_FILTER 0 | ||
| 1944 | +#define CONFIG_FADE_FILTER 0 | ||
| 1945 | +#define CONFIG_FFTDNOIZ_FILTER 0 | ||
| 1946 | +#define CONFIG_FFTFILT_FILTER 0 | ||
| 1947 | +#define CONFIG_FIELD_FILTER 0 | ||
| 1948 | +#define CONFIG_FIELDHINT_FILTER 0 | ||
| 1949 | +#define CONFIG_FIELDMATCH_FILTER 0 | ||
| 1950 | +#define CONFIG_FIELDORDER_FILTER 0 | ||
| 1951 | +#define CONFIG_FILLBORDERS_FILTER 0 | ||
| 1952 | +#define CONFIG_FIND_RECT_FILTER 0 | ||
| 1953 | +#define CONFIG_FLIP_VULKAN_FILTER 0 | ||
| 1954 | +#define CONFIG_FLOODFILL_FILTER 0 | ||
| 1955 | +#define CONFIG_FORMAT_FILTER 0 | ||
| 1956 | +#define CONFIG_FPS_FILTER 0 | ||
| 1957 | +#define CONFIG_FRAMEPACK_FILTER 0 | ||
| 1958 | +#define CONFIG_FRAMERATE_FILTER 0 | ||
| 1959 | +#define CONFIG_FRAMESTEP_FILTER 0 | ||
| 1960 | +#define CONFIG_FREEZEDETECT_FILTER 0 | ||
| 1961 | +#define CONFIG_FREEZEFRAMES_FILTER 0 | ||
| 1962 | +#define CONFIG_FREI0R_FILTER 0 | ||
| 1963 | +#define CONFIG_FSPP_FILTER 0 | ||
| 1964 | +#define CONFIG_GBLUR_FILTER 0 | ||
| 1965 | +#define CONFIG_GBLUR_VULKAN_FILTER 0 | ||
| 1966 | +#define CONFIG_GEQ_FILTER 0 | ||
| 1967 | +#define CONFIG_GRADFUN_FILTER 0 | ||
| 1968 | +#define CONFIG_GRAPHMONITOR_FILTER 0 | ||
| 1969 | +#define CONFIG_GRAYWORLD_FILTER 0 | ||
| 1970 | +#define CONFIG_GREYEDGE_FILTER 0 | ||
| 1971 | +#define CONFIG_GUIDED_FILTER 0 | ||
| 1972 | +#define CONFIG_HALDCLUT_FILTER 0 | ||
| 1973 | +#define CONFIG_HFLIP_FILTER 0 | ||
| 1974 | +#define CONFIG_HFLIP_VULKAN_FILTER 0 | ||
| 1975 | +#define CONFIG_HISTEQ_FILTER 0 | ||
| 1976 | +#define CONFIG_HISTOGRAM_FILTER 0 | ||
| 1977 | +#define CONFIG_HQDN3D_FILTER 0 | ||
| 1978 | +#define CONFIG_HQX_FILTER 0 | ||
| 1979 | +#define CONFIG_HSTACK_FILTER 0 | ||
| 1980 | +#define CONFIG_HSVHOLD_FILTER 0 | ||
| 1981 | +#define CONFIG_HSVKEY_FILTER 0 | ||
| 1982 | +#define CONFIG_HUE_FILTER 0 | ||
| 1983 | +#define CONFIG_HUESATURATION_FILTER 0 | ||
| 1984 | +#define CONFIG_HWDOWNLOAD_FILTER 0 | ||
| 1985 | +#define CONFIG_HWMAP_FILTER 0 | ||
| 1986 | +#define CONFIG_HWUPLOAD_FILTER 0 | ||
| 1987 | +#define CONFIG_HWUPLOAD_CUDA_FILTER 0 | ||
| 1988 | +#define CONFIG_HYSTERESIS_FILTER 0 | ||
| 1989 | +#define CONFIG_IDENTITY_FILTER 0 | ||
| 1990 | +#define CONFIG_IDET_FILTER 0 | ||
| 1991 | +#define CONFIG_IL_FILTER 0 | ||
| 1992 | +#define CONFIG_INFLATE_FILTER 0 | ||
| 1993 | +#define CONFIG_INTERLACE_FILTER 0 | ||
| 1994 | +#define CONFIG_INTERLEAVE_FILTER 0 | ||
| 1995 | +#define CONFIG_KERNDEINT_FILTER 0 | ||
| 1996 | +#define CONFIG_KIRSCH_FILTER 0 | ||
| 1997 | +#define CONFIG_LAGFUN_FILTER 0 | ||
| 1998 | +#define CONFIG_LATENCY_FILTER 0 | ||
| 1999 | +#define CONFIG_LENSCORRECTION_FILTER 0 | ||
| 2000 | +#define CONFIG_LENSFUN_FILTER 0 | ||
| 2001 | +#define CONFIG_LIBPLACEBO_FILTER 0 | ||
| 2002 | +#define CONFIG_LIBVMAF_FILTER 0 | ||
| 2003 | +#define CONFIG_LIMITDIFF_FILTER 0 | ||
| 2004 | +#define CONFIG_LIMITER_FILTER 0 | ||
| 2005 | +#define CONFIG_LOOP_FILTER 0 | ||
| 2006 | +#define CONFIG_LUMAKEY_FILTER 0 | ||
| 2007 | +#define CONFIG_LUT_FILTER 0 | ||
| 2008 | +#define CONFIG_LUT1D_FILTER 0 | ||
| 2009 | +#define CONFIG_LUT2_FILTER 0 | ||
| 2010 | +#define CONFIG_LUT3D_FILTER 0 | ||
| 2011 | +#define CONFIG_LUTRGB_FILTER 0 | ||
| 2012 | +#define CONFIG_LUTYUV_FILTER 0 | ||
| 2013 | +#define CONFIG_MASKEDCLAMP_FILTER 0 | ||
| 2014 | +#define CONFIG_MASKEDMAX_FILTER 0 | ||
| 2015 | +#define CONFIG_MASKEDMERGE_FILTER 0 | ||
| 2016 | +#define CONFIG_MASKEDMIN_FILTER 0 | ||
| 2017 | +#define CONFIG_MASKEDTHRESHOLD_FILTER 0 | ||
| 2018 | +#define CONFIG_MASKFUN_FILTER 0 | ||
| 2019 | +#define CONFIG_MCDEINT_FILTER 0 | ||
| 2020 | +#define CONFIG_MEDIAN_FILTER 0 | ||
| 2021 | +#define CONFIG_MERGEPLANES_FILTER 0 | ||
| 2022 | +#define CONFIG_MESTIMATE_FILTER 0 | ||
| 2023 | +#define CONFIG_METADATA_FILTER 0 | ||
| 2024 | +#define CONFIG_MIDEQUALIZER_FILTER 0 | ||
| 2025 | +#define CONFIG_MINTERPOLATE_FILTER 0 | ||
| 2026 | +#define CONFIG_MIX_FILTER 0 | ||
| 2027 | +#define CONFIG_MONOCHROME_FILTER 0 | ||
| 2028 | +#define CONFIG_MORPHO_FILTER 0 | ||
| 2029 | +#define CONFIG_MPDECIMATE_FILTER 0 | ||
| 2030 | +#define CONFIG_MSAD_FILTER 0 | ||
| 2031 | +#define CONFIG_NEGATE_FILTER 0 | ||
| 2032 | +#define CONFIG_NLMEANS_FILTER 0 | ||
| 2033 | +#define CONFIG_NLMEANS_OPENCL_FILTER 0 | ||
| 2034 | +#define CONFIG_NNEDI_FILTER 0 | ||
| 2035 | +#define CONFIG_NOFORMAT_FILTER 0 | ||
| 2036 | +#define CONFIG_NOISE_FILTER 0 | ||
| 2037 | +#define CONFIG_NORMALIZE_FILTER 0 | ||
| 2038 | +#define CONFIG_NULL_FILTER 0 | ||
| 2039 | +#define CONFIG_OCR_FILTER 0 | ||
| 2040 | +#define CONFIG_OCV_FILTER 0 | ||
| 2041 | +#define CONFIG_OSCILLOSCOPE_FILTER 0 | ||
| 2042 | +#define CONFIG_OVERLAY_FILTER 0 | ||
| 2043 | +#define CONFIG_OVERLAY_OPENCL_FILTER 0 | ||
| 2044 | +#define CONFIG_OVERLAY_QSV_FILTER 0 | ||
| 2045 | +#define CONFIG_OVERLAY_VAAPI_FILTER 0 | ||
| 2046 | +#define CONFIG_OVERLAY_VULKAN_FILTER 0 | ||
| 2047 | +#define CONFIG_OVERLAY_CUDA_FILTER 0 | ||
| 2048 | +#define CONFIG_OWDENOISE_FILTER 0 | ||
| 2049 | +#define CONFIG_PAD_FILTER 0 | ||
| 2050 | +#define CONFIG_PAD_OPENCL_FILTER 0 | ||
| 2051 | +#define CONFIG_PALETTEGEN_FILTER 0 | ||
| 2052 | +#define CONFIG_PALETTEUSE_FILTER 0 | ||
| 2053 | +#define CONFIG_PERMS_FILTER 0 | ||
| 2054 | +#define CONFIG_PERSPECTIVE_FILTER 0 | ||
| 2055 | +#define CONFIG_PHASE_FILTER 0 | ||
| 2056 | +#define CONFIG_PHOTOSENSITIVITY_FILTER 0 | ||
| 2057 | +#define CONFIG_PIXDESCTEST_FILTER 0 | ||
| 2058 | +#define CONFIG_PIXSCOPE_FILTER 0 | ||
| 2059 | +#define CONFIG_PP_FILTER 0 | ||
| 2060 | +#define CONFIG_PP7_FILTER 0 | ||
| 2061 | +#define CONFIG_PREMULTIPLY_FILTER 0 | ||
| 2062 | +#define CONFIG_PREWITT_FILTER 0 | ||
| 2063 | +#define CONFIG_PREWITT_OPENCL_FILTER 0 | ||
| 2064 | +#define CONFIG_PROCAMP_VAAPI_FILTER 0 | ||
| 2065 | +#define CONFIG_PROGRAM_OPENCL_FILTER 0 | ||
| 2066 | +#define CONFIG_PSEUDOCOLOR_FILTER 0 | ||
| 2067 | +#define CONFIG_PSNR_FILTER 0 | ||
| 2068 | +#define CONFIG_PULLUP_FILTER 0 | ||
| 2069 | +#define CONFIG_QP_FILTER 0 | ||
| 2070 | +#define CONFIG_RANDOM_FILTER 0 | ||
| 2071 | +#define CONFIG_READEIA608_FILTER 0 | ||
| 2072 | +#define CONFIG_READVITC_FILTER 0 | ||
| 2073 | +#define CONFIG_REALTIME_FILTER 0 | ||
| 2074 | +#define CONFIG_REMAP_FILTER 0 | ||
| 2075 | +#define CONFIG_REMOVEGRAIN_FILTER 0 | ||
| 2076 | +#define CONFIG_REMOVELOGO_FILTER 0 | ||
| 2077 | +#define CONFIG_REPEATFIELDS_FILTER 0 | ||
| 2078 | +#define CONFIG_REVERSE_FILTER 0 | ||
| 2079 | +#define CONFIG_RGBASHIFT_FILTER 0 | ||
| 2080 | +#define CONFIG_ROBERTS_FILTER 0 | ||
| 2081 | +#define CONFIG_ROBERTS_OPENCL_FILTER 0 | ||
| 2082 | +#define CONFIG_ROTATE_FILTER 0 | ||
| 2083 | +#define CONFIG_SAB_FILTER 0 | ||
| 2084 | +#define CONFIG_SCALE_FILTER 0 | ||
| 2085 | +#define CONFIG_SCALE_CUDA_FILTER 0 | ||
| 2086 | +#define CONFIG_SCALE_NPP_FILTER 0 | ||
| 2087 | +#define CONFIG_SCALE_QSV_FILTER 0 | ||
| 2088 | +#define CONFIG_SCALE_VAAPI_FILTER 0 | ||
| 2089 | +#define CONFIG_SCALE_VULKAN_FILTER 0 | ||
| 2090 | +#define CONFIG_SCALE2REF_FILTER 0 | ||
| 2091 | +#define CONFIG_SCALE2REF_NPP_FILTER 0 | ||
| 2092 | +#define CONFIG_SCDET_FILTER 0 | ||
| 2093 | +#define CONFIG_SCHARR_FILTER 0 | ||
| 2094 | +#define CONFIG_SCROLL_FILTER 0 | ||
| 2095 | +#define CONFIG_SEGMENT_FILTER 0 | ||
| 2096 | +#define CONFIG_SELECT_FILTER 0 | ||
| 2097 | +#define CONFIG_SELECTIVECOLOR_FILTER 0 | ||
| 2098 | +#define CONFIG_SENDCMD_FILTER 0 | ||
| 2099 | +#define CONFIG_SEPARATEFIELDS_FILTER 0 | ||
| 2100 | +#define CONFIG_SETDAR_FILTER 0 | ||
| 2101 | +#define CONFIG_SETFIELD_FILTER 0 | ||
| 2102 | +#define CONFIG_SETPARAMS_FILTER 0 | ||
| 2103 | +#define CONFIG_SETPTS_FILTER 0 | ||
| 2104 | +#define CONFIG_SETRANGE_FILTER 0 | ||
| 2105 | +#define CONFIG_SETSAR_FILTER 0 | ||
| 2106 | +#define CONFIG_SETTB_FILTER 0 | ||
| 2107 | +#define CONFIG_SHARPEN_NPP_FILTER 0 | ||
| 2108 | +#define CONFIG_SHARPNESS_VAAPI_FILTER 0 | ||
| 2109 | +#define CONFIG_SHEAR_FILTER 0 | ||
| 2110 | +#define CONFIG_SHOWINFO_FILTER 0 | ||
| 2111 | +#define CONFIG_SHOWPALETTE_FILTER 0 | ||
| 2112 | +#define CONFIG_SHUFFLEFRAMES_FILTER 0 | ||
| 2113 | +#define CONFIG_SHUFFLEPIXELS_FILTER 0 | ||
| 2114 | +#define CONFIG_SHUFFLEPLANES_FILTER 0 | ||
| 2115 | +#define CONFIG_SIDEDATA_FILTER 0 | ||
| 2116 | +#define CONFIG_SIGNALSTATS_FILTER 0 | ||
| 2117 | +#define CONFIG_SIGNATURE_FILTER 0 | ||
| 2118 | +#define CONFIG_SMARTBLUR_FILTER 0 | ||
| 2119 | +#define CONFIG_SOBEL_FILTER 0 | ||
| 2120 | +#define CONFIG_SOBEL_OPENCL_FILTER 0 | ||
| 2121 | +#define CONFIG_SPLIT_FILTER 0 | ||
| 2122 | +#define CONFIG_SPP_FILTER 0 | ||
| 2123 | +#define CONFIG_SR_FILTER 0 | ||
| 2124 | +#define CONFIG_SSIM_FILTER 0 | ||
| 2125 | +#define CONFIG_STEREO3D_FILTER 0 | ||
| 2126 | +#define CONFIG_STREAMSELECT_FILTER 0 | ||
| 2127 | +#define CONFIG_SUBTITLES_FILTER 0 | ||
| 2128 | +#define CONFIG_SUPER2XSAI_FILTER 0 | ||
| 2129 | +#define CONFIG_SWAPRECT_FILTER 0 | ||
| 2130 | +#define CONFIG_SWAPUV_FILTER 0 | ||
| 2131 | +#define CONFIG_TBLEND_FILTER 0 | ||
| 2132 | +#define CONFIG_TELECINE_FILTER 0 | ||
| 2133 | +#define CONFIG_THISTOGRAM_FILTER 0 | ||
| 2134 | +#define CONFIG_THRESHOLD_FILTER 0 | ||
| 2135 | +#define CONFIG_THUMBNAIL_FILTER 0 | ||
| 2136 | +#define CONFIG_THUMBNAIL_CUDA_FILTER 0 | ||
| 2137 | +#define CONFIG_TILE_FILTER 0 | ||
| 2138 | +#define CONFIG_TINTERLACE_FILTER 0 | ||
| 2139 | +#define CONFIG_TLUT2_FILTER 0 | ||
| 2140 | +#define CONFIG_TMEDIAN_FILTER 0 | ||
| 2141 | +#define CONFIG_TMIDEQUALIZER_FILTER 0 | ||
| 2142 | +#define CONFIG_TMIX_FILTER 0 | ||
| 2143 | +#define CONFIG_TONEMAP_FILTER 0 | ||
| 2144 | +#define CONFIG_TONEMAP_OPENCL_FILTER 0 | ||
| 2145 | +#define CONFIG_TONEMAP_VAAPI_FILTER 0 | ||
| 2146 | +#define CONFIG_TPAD_FILTER 0 | ||
| 2147 | +#define CONFIG_TRANSPOSE_FILTER 0 | ||
| 2148 | +#define CONFIG_TRANSPOSE_NPP_FILTER 0 | ||
| 2149 | +#define CONFIG_TRANSPOSE_OPENCL_FILTER 0 | ||
| 2150 | +#define CONFIG_TRANSPOSE_VAAPI_FILTER 0 | ||
| 2151 | +#define CONFIG_TRANSPOSE_VULKAN_FILTER 0 | ||
| 2152 | +#define CONFIG_TRIM_FILTER 0 | ||
| 2153 | +#define CONFIG_UNPREMULTIPLY_FILTER 0 | ||
| 2154 | +#define CONFIG_UNSHARP_FILTER 0 | ||
| 2155 | +#define CONFIG_UNSHARP_OPENCL_FILTER 0 | ||
| 2156 | +#define CONFIG_UNTILE_FILTER 0 | ||
| 2157 | +#define CONFIG_USPP_FILTER 0 | ||
| 2158 | +#define CONFIG_V360_FILTER 0 | ||
| 2159 | +#define CONFIG_VAGUEDENOISER_FILTER 0 | ||
| 2160 | +#define CONFIG_VARBLUR_FILTER 0 | ||
| 2161 | +#define CONFIG_VECTORSCOPE_FILTER 0 | ||
| 2162 | +#define CONFIG_VFLIP_FILTER 0 | ||
| 2163 | +#define CONFIG_VFLIP_VULKAN_FILTER 0 | ||
| 2164 | +#define CONFIG_VFRDET_FILTER 0 | ||
| 2165 | +#define CONFIG_VIBRANCE_FILTER 0 | ||
| 2166 | +#define CONFIG_VIDSTABDETECT_FILTER 0 | ||
| 2167 | +#define CONFIG_VIDSTABTRANSFORM_FILTER 0 | ||
| 2168 | +#define CONFIG_VIF_FILTER 0 | ||
| 2169 | +#define CONFIG_VIGNETTE_FILTER 0 | ||
| 2170 | +#define CONFIG_VMAFMOTION_FILTER 0 | ||
| 2171 | +#define CONFIG_VPP_QSV_FILTER 0 | ||
| 2172 | +#define CONFIG_VSTACK_FILTER 0 | ||
| 2173 | +#define CONFIG_W3FDIF_FILTER 0 | ||
| 2174 | +#define CONFIG_WAVEFORM_FILTER 0 | ||
| 2175 | +#define CONFIG_WEAVE_FILTER 0 | ||
| 2176 | +#define CONFIG_XBR_FILTER 0 | ||
| 2177 | +#define CONFIG_XCORRELATE_FILTER 0 | ||
| 2178 | +#define CONFIG_XFADE_FILTER 0 | ||
| 2179 | +#define CONFIG_XFADE_OPENCL_FILTER 0 | ||
| 2180 | +#define CONFIG_XMEDIAN_FILTER 0 | ||
| 2181 | +#define CONFIG_XSTACK_FILTER 0 | ||
| 2182 | +#define CONFIG_YADIF_FILTER 0 | ||
| 2183 | +#define CONFIG_YADIF_CUDA_FILTER 0 | ||
| 2184 | +#define CONFIG_YADIF_VIDEOTOOLBOX_FILTER 0 | ||
| 2185 | +#define CONFIG_YAEPBLUR_FILTER 0 | ||
| 2186 | +#define CONFIG_ZMQ_FILTER 0 | ||
| 2187 | +#define CONFIG_ZOOMPAN_FILTER 0 | ||
| 2188 | +#define CONFIG_ZSCALE_FILTER 0 | ||
| 2189 | +#define CONFIG_ALLRGB_FILTER 0 | ||
| 2190 | +#define CONFIG_ALLYUV_FILTER 0 | ||
| 2191 | +#define CONFIG_CELLAUTO_FILTER 0 | ||
| 2192 | +#define CONFIG_COLOR_FILTER 0 | ||
| 2193 | +#define CONFIG_COLORSPECTRUM_FILTER 0 | ||
| 2194 | +#define CONFIG_COREIMAGESRC_FILTER 0 | ||
| 2195 | +#define CONFIG_FREI0R_SRC_FILTER 0 | ||
| 2196 | +#define CONFIG_GRADIENTS_FILTER 0 | ||
| 2197 | +#define CONFIG_HALDCLUTSRC_FILTER 0 | ||
| 2198 | +#define CONFIG_LIFE_FILTER 0 | ||
| 2199 | +#define CONFIG_MANDELBROT_FILTER 0 | ||
| 2200 | +#define CONFIG_MPTESTSRC_FILTER 0 | ||
| 2201 | +#define CONFIG_NULLSRC_FILTER 0 | ||
| 2202 | +#define CONFIG_OPENCLSRC_FILTER 0 | ||
| 2203 | +#define CONFIG_PAL75BARS_FILTER 0 | ||
| 2204 | +#define CONFIG_PAL100BARS_FILTER 0 | ||
| 2205 | +#define CONFIG_RGBTESTSRC_FILTER 0 | ||
| 2206 | +#define CONFIG_SIERPINSKI_FILTER 0 | ||
| 2207 | +#define CONFIG_SMPTEBARS_FILTER 0 | ||
| 2208 | +#define CONFIG_SMPTEHDBARS_FILTER 0 | ||
| 2209 | +#define CONFIG_TESTSRC_FILTER 0 | ||
| 2210 | +#define CONFIG_TESTSRC2_FILTER 0 | ||
| 2211 | +#define CONFIG_YUVTESTSRC_FILTER 0 | ||
| 2212 | +#define CONFIG_NULLSINK_FILTER 0 | ||
| 2213 | +#define CONFIG_ABITSCOPE_FILTER 0 | ||
| 2214 | +#define CONFIG_ADRAWGRAPH_FILTER 0 | ||
| 2215 | +#define CONFIG_AGRAPHMONITOR_FILTER 0 | ||
| 2216 | +#define CONFIG_AHISTOGRAM_FILTER 0 | ||
| 2217 | +#define CONFIG_APHASEMETER_FILTER 0 | ||
| 2218 | +#define CONFIG_AVECTORSCOPE_FILTER 0 | ||
| 2219 | +#define CONFIG_CONCAT_FILTER 0 | ||
| 2220 | +#define CONFIG_SHOWCQT_FILTER 0 | ||
| 2221 | +#define CONFIG_SHOWFREQS_FILTER 0 | ||
| 2222 | +#define CONFIG_SHOWSPATIAL_FILTER 0 | ||
| 2223 | +#define CONFIG_SHOWSPECTRUM_FILTER 0 | ||
| 2224 | +#define CONFIG_SHOWSPECTRUMPIC_FILTER 0 | ||
| 2225 | +#define CONFIG_SHOWVOLUME_FILTER 0 | ||
| 2226 | +#define CONFIG_SHOWWAVES_FILTER 0 | ||
| 2227 | +#define CONFIG_SHOWWAVESPIC_FILTER 0 | ||
| 2228 | +#define CONFIG_SPECTRUMSYNTH_FILTER 0 | ||
| 2229 | +#define CONFIG_AMOVIE_FILTER 0 | ||
| 2230 | +#define CONFIG_MOVIE_FILTER 0 | ||
| 2231 | +#define CONFIG_AFIFO_FILTER 0 | ||
| 2232 | +#define CONFIG_FIFO_FILTER 0 | ||
| 2233 | +#define CONFIG_AA_DEMUXER 0 | ||
| 2234 | +#define CONFIG_AAC_DEMUXER 1 | ||
| 2235 | +#define CONFIG_AAX_DEMUXER 0 | ||
| 2236 | +#define CONFIG_AC3_DEMUXER 0 | ||
| 2237 | +#define CONFIG_ACE_DEMUXER 0 | ||
| 2238 | +#define CONFIG_ACM_DEMUXER 0 | ||
| 2239 | +#define CONFIG_ACT_DEMUXER 0 | ||
| 2240 | +#define CONFIG_ADF_DEMUXER 0 | ||
| 2241 | +#define CONFIG_ADP_DEMUXER 0 | ||
| 2242 | +#define CONFIG_ADS_DEMUXER 0 | ||
| 2243 | +#define CONFIG_ADX_DEMUXER 0 | ||
| 2244 | +#define CONFIG_AEA_DEMUXER 0 | ||
| 2245 | +#define CONFIG_AFC_DEMUXER 0 | ||
| 2246 | +#define CONFIG_AIFF_DEMUXER 0 | ||
| 2247 | +#define CONFIG_AIX_DEMUXER 0 | ||
| 2248 | +#define CONFIG_ALP_DEMUXER 0 | ||
| 2249 | +#define CONFIG_AMR_DEMUXER 0 | ||
| 2250 | +#define CONFIG_AMRNB_DEMUXER 0 | ||
| 2251 | +#define CONFIG_AMRWB_DEMUXER 0 | ||
| 2252 | +#define CONFIG_ANM_DEMUXER 0 | ||
| 2253 | +#define CONFIG_APC_DEMUXER 0 | ||
| 2254 | +#define CONFIG_APE_DEMUXER 0 | ||
| 2255 | +#define CONFIG_APM_DEMUXER 0 | ||
| 2256 | +#define CONFIG_APNG_DEMUXER 0 | ||
| 2257 | +#define CONFIG_APTX_DEMUXER 0 | ||
| 2258 | +#define CONFIG_APTX_HD_DEMUXER 0 | ||
| 2259 | +#define CONFIG_AQTITLE_DEMUXER 0 | ||
| 2260 | +#define CONFIG_ARGO_ASF_DEMUXER 0 | ||
| 2261 | +#define CONFIG_ARGO_BRP_DEMUXER 0 | ||
| 2262 | +#define CONFIG_ARGO_CVG_DEMUXER 0 | ||
| 2263 | +#define CONFIG_ASF_DEMUXER 0 | ||
| 2264 | +#define CONFIG_ASF_O_DEMUXER 0 | ||
| 2265 | +#define CONFIG_ASS_DEMUXER 0 | ||
| 2266 | +#define CONFIG_AST_DEMUXER 0 | ||
| 2267 | +#define CONFIG_AU_DEMUXER 0 | ||
| 2268 | +#define CONFIG_AV1_DEMUXER 0 | ||
| 2269 | +#define CONFIG_AVI_DEMUXER 0 | ||
| 2270 | +#define CONFIG_AVISYNTH_DEMUXER 0 | ||
| 2271 | +#define CONFIG_AVR_DEMUXER 0 | ||
| 2272 | +#define CONFIG_AVS_DEMUXER 0 | ||
| 2273 | +#define CONFIG_AVS2_DEMUXER 0 | ||
| 2274 | +#define CONFIG_AVS3_DEMUXER 0 | ||
| 2275 | +#define CONFIG_BETHSOFTVID_DEMUXER 0 | ||
| 2276 | +#define CONFIG_BFI_DEMUXER 0 | ||
| 2277 | +#define CONFIG_BINTEXT_DEMUXER 0 | ||
| 2278 | +#define CONFIG_BINK_DEMUXER 0 | ||
| 2279 | +#define CONFIG_BINKA_DEMUXER 0 | ||
| 2280 | +#define CONFIG_BIT_DEMUXER 0 | ||
| 2281 | +#define CONFIG_BITPACKED_DEMUXER 0 | ||
| 2282 | +#define CONFIG_BMV_DEMUXER 0 | ||
| 2283 | +#define CONFIG_BFSTM_DEMUXER 0 | ||
| 2284 | +#define CONFIG_BRSTM_DEMUXER 0 | ||
| 2285 | +#define CONFIG_BOA_DEMUXER 0 | ||
| 2286 | +#define CONFIG_C93_DEMUXER 0 | ||
| 2287 | +#define CONFIG_CAF_DEMUXER 0 | ||
| 2288 | +#define CONFIG_CAVSVIDEO_DEMUXER 0 | ||
| 2289 | +#define CONFIG_CDG_DEMUXER 0 | ||
| 2290 | +#define CONFIG_CDXL_DEMUXER 0 | ||
| 2291 | +#define CONFIG_CINE_DEMUXER 0 | ||
| 2292 | +#define CONFIG_CODEC2_DEMUXER 0 | ||
| 2293 | +#define CONFIG_CODEC2RAW_DEMUXER 0 | ||
| 2294 | +#define CONFIG_CONCAT_DEMUXER 0 | ||
| 2295 | +#define CONFIG_DASH_DEMUXER 0 | ||
| 2296 | +#define CONFIG_DATA_DEMUXER 0 | ||
| 2297 | +#define CONFIG_DAUD_DEMUXER 0 | ||
| 2298 | +#define CONFIG_DCSTR_DEMUXER 0 | ||
| 2299 | +#define CONFIG_DERF_DEMUXER 0 | ||
| 2300 | +#define CONFIG_DFA_DEMUXER 0 | ||
| 2301 | +#define CONFIG_DHAV_DEMUXER 0 | ||
| 2302 | +#define CONFIG_DIRAC_DEMUXER 0 | ||
| 2303 | +#define CONFIG_DNXHD_DEMUXER 0 | ||
| 2304 | +#define CONFIG_DSF_DEMUXER 0 | ||
| 2305 | +#define CONFIG_DSICIN_DEMUXER 0 | ||
| 2306 | +#define CONFIG_DSS_DEMUXER 0 | ||
| 2307 | +#define CONFIG_DTS_DEMUXER 0 | ||
| 2308 | +#define CONFIG_DTSHD_DEMUXER 0 | ||
| 2309 | +#define CONFIG_DV_DEMUXER 0 | ||
| 2310 | +#define CONFIG_DVBSUB_DEMUXER 0 | ||
| 2311 | +#define CONFIG_DVBTXT_DEMUXER 0 | ||
| 2312 | +#define CONFIG_DXA_DEMUXER 0 | ||
| 2313 | +#define CONFIG_EA_DEMUXER 0 | ||
| 2314 | +#define CONFIG_EA_CDATA_DEMUXER 0 | ||
| 2315 | +#define CONFIG_EAC3_DEMUXER 0 | ||
| 2316 | +#define CONFIG_EPAF_DEMUXER 0 | ||
| 2317 | +#define CONFIG_FFMETADATA_DEMUXER 0 | ||
| 2318 | +#define CONFIG_FILMSTRIP_DEMUXER 0 | ||
| 2319 | +#define CONFIG_FITS_DEMUXER 0 | ||
| 2320 | +#define CONFIG_FLAC_DEMUXER 1 | ||
| 2321 | +#define CONFIG_FLIC_DEMUXER 0 | ||
| 2322 | +#define CONFIG_FLV_DEMUXER 0 | ||
| 2323 | +#define CONFIG_LIVE_FLV_DEMUXER 0 | ||
| 2324 | +#define CONFIG_FOURXM_DEMUXER 0 | ||
| 2325 | +#define CONFIG_FRM_DEMUXER 0 | ||
| 2326 | +#define CONFIG_FSB_DEMUXER 0 | ||
| 2327 | +#define CONFIG_FWSE_DEMUXER 0 | ||
| 2328 | +#define CONFIG_G722_DEMUXER 0 | ||
| 2329 | +#define CONFIG_G723_1_DEMUXER 0 | ||
| 2330 | +#define CONFIG_G726_DEMUXER 0 | ||
| 2331 | +#define CONFIG_G726LE_DEMUXER 0 | ||
| 2332 | +#define CONFIG_G729_DEMUXER 0 | ||
| 2333 | +#define CONFIG_GDV_DEMUXER 0 | ||
| 2334 | +#define CONFIG_GENH_DEMUXER 0 | ||
| 2335 | +#define CONFIG_GIF_DEMUXER 0 | ||
| 2336 | +#define CONFIG_GSM_DEMUXER 0 | ||
| 2337 | +#define CONFIG_GXF_DEMUXER 0 | ||
| 2338 | +#define CONFIG_H261_DEMUXER 0 | ||
| 2339 | +#define CONFIG_H263_DEMUXER 0 | ||
| 2340 | +#define CONFIG_H264_DEMUXER 0 | ||
| 2341 | +#define CONFIG_HCA_DEMUXER 0 | ||
| 2342 | +#define CONFIG_HCOM_DEMUXER 0 | ||
| 2343 | +#define CONFIG_HEVC_DEMUXER 0 | ||
| 2344 | +#define CONFIG_HLS_DEMUXER 0 | ||
| 2345 | +#define CONFIG_HNM_DEMUXER 0 | ||
| 2346 | +#define CONFIG_ICO_DEMUXER 0 | ||
| 2347 | +#define CONFIG_IDCIN_DEMUXER 0 | ||
| 2348 | +#define CONFIG_IDF_DEMUXER 0 | ||
| 2349 | +#define CONFIG_IFF_DEMUXER 0 | ||
| 2350 | +#define CONFIG_IFV_DEMUXER 0 | ||
| 2351 | +#define CONFIG_ILBC_DEMUXER 0 | ||
| 2352 | +#define CONFIG_IMAGE2_DEMUXER 0 | ||
| 2353 | +#define CONFIG_IMAGE2PIPE_DEMUXER 0 | ||
| 2354 | +#define CONFIG_IMAGE2_ALIAS_PIX_DEMUXER 0 | ||
| 2355 | +#define CONFIG_IMAGE2_BRENDER_PIX_DEMUXER 0 | ||
| 2356 | +#define CONFIG_IMF_DEMUXER 0 | ||
| 2357 | +#define CONFIG_INGENIENT_DEMUXER 0 | ||
| 2358 | +#define CONFIG_IPMOVIE_DEMUXER 0 | ||
| 2359 | +#define CONFIG_IPU_DEMUXER 0 | ||
| 2360 | +#define CONFIG_IRCAM_DEMUXER 0 | ||
| 2361 | +#define CONFIG_ISS_DEMUXER 0 | ||
| 2362 | +#define CONFIG_IV8_DEMUXER 0 | ||
| 2363 | +#define CONFIG_IVF_DEMUXER 0 | ||
| 2364 | +#define CONFIG_IVR_DEMUXER 0 | ||
| 2365 | +#define CONFIG_JACOSUB_DEMUXER 0 | ||
| 2366 | +#define CONFIG_JV_DEMUXER 0 | ||
| 2367 | +#define CONFIG_KUX_DEMUXER 0 | ||
| 2368 | +#define CONFIG_KVAG_DEMUXER 0 | ||
| 2369 | +#define CONFIG_LMLM4_DEMUXER 0 | ||
| 2370 | +#define CONFIG_LOAS_DEMUXER 0 | ||
| 2371 | +#define CONFIG_LUODAT_DEMUXER 0 | ||
| 2372 | +#define CONFIG_LRC_DEMUXER 0 | ||
| 2373 | +#define CONFIG_LVF_DEMUXER 0 | ||
| 2374 | +#define CONFIG_LXF_DEMUXER 0 | ||
| 2375 | +#define CONFIG_M4V_DEMUXER 0 | ||
| 2376 | +#define CONFIG_MCA_DEMUXER 0 | ||
| 2377 | +#define CONFIG_MCC_DEMUXER 0 | ||
| 2378 | +#define CONFIG_MATROSKA_DEMUXER 1 | ||
| 2379 | +#define CONFIG_MGSTS_DEMUXER 0 | ||
| 2380 | +#define CONFIG_MICRODVD_DEMUXER 0 | ||
| 2381 | +#define CONFIG_MJPEG_DEMUXER 0 | ||
| 2382 | +#define CONFIG_MJPEG_2000_DEMUXER 0 | ||
| 2383 | +#define CONFIG_MLP_DEMUXER 0 | ||
| 2384 | +#define CONFIG_MLV_DEMUXER 0 | ||
| 2385 | +#define CONFIG_MM_DEMUXER 0 | ||
| 2386 | +#define CONFIG_MMF_DEMUXER 0 | ||
| 2387 | +#define CONFIG_MODS_DEMUXER 0 | ||
| 2388 | +#define CONFIG_MOFLEX_DEMUXER 0 | ||
| 2389 | +#define CONFIG_MOV_DEMUXER 1 | ||
| 2390 | +#define CONFIG_MP3_DEMUXER 1 | ||
| 2391 | +#define CONFIG_MPC_DEMUXER 0 | ||
| 2392 | +#define CONFIG_MPC8_DEMUXER 0 | ||
| 2393 | +#define CONFIG_MPEGPS_DEMUXER 0 | ||
| 2394 | +#define CONFIG_MPEGTS_DEMUXER 0 | ||
| 2395 | +#define CONFIG_MPEGTSRAW_DEMUXER 0 | ||
| 2396 | +#define CONFIG_MPEGVIDEO_DEMUXER 0 | ||
| 2397 | +#define CONFIG_MPJPEG_DEMUXER 0 | ||
| 2398 | +#define CONFIG_MPL2_DEMUXER 0 | ||
| 2399 | +#define CONFIG_MPSUB_DEMUXER 0 | ||
| 2400 | +#define CONFIG_MSF_DEMUXER 0 | ||
| 2401 | +#define CONFIG_MSNWC_TCP_DEMUXER 0 | ||
| 2402 | +#define CONFIG_MSP_DEMUXER 0 | ||
| 2403 | +#define CONFIG_MTAF_DEMUXER 0 | ||
| 2404 | +#define CONFIG_MTV_DEMUXER 0 | ||
| 2405 | +#define CONFIG_MUSX_DEMUXER 0 | ||
| 2406 | +#define CONFIG_MV_DEMUXER 0 | ||
| 2407 | +#define CONFIG_MVI_DEMUXER 0 | ||
| 2408 | +#define CONFIG_MXF_DEMUXER 0 | ||
| 2409 | +#define CONFIG_MXG_DEMUXER 0 | ||
| 2410 | +#define CONFIG_NC_DEMUXER 0 | ||
| 2411 | +#define CONFIG_NISTSPHERE_DEMUXER 0 | ||
| 2412 | +#define CONFIG_NSP_DEMUXER 0 | ||
| 2413 | +#define CONFIG_NSV_DEMUXER 0 | ||
| 2414 | +#define CONFIG_NUT_DEMUXER 0 | ||
| 2415 | +#define CONFIG_NUV_DEMUXER 0 | ||
| 2416 | +#define CONFIG_OBU_DEMUXER 0 | ||
| 2417 | +#define CONFIG_OGG_DEMUXER 1 | ||
| 2418 | +#define CONFIG_OMA_DEMUXER 0 | ||
| 2419 | +#define CONFIG_PAF_DEMUXER 0 | ||
| 2420 | +#define CONFIG_PCM_ALAW_DEMUXER 0 | ||
| 2421 | +#define CONFIG_PCM_MULAW_DEMUXER 0 | ||
| 2422 | +#define CONFIG_PCM_VIDC_DEMUXER 0 | ||
| 2423 | +#define CONFIG_PCM_F64BE_DEMUXER 0 | ||
| 2424 | +#define CONFIG_PCM_F64LE_DEMUXER 0 | ||
| 2425 | +#define CONFIG_PCM_F32BE_DEMUXER 0 | ||
| 2426 | +#define CONFIG_PCM_F32LE_DEMUXER 0 | ||
| 2427 | +#define CONFIG_PCM_S32BE_DEMUXER 0 | ||
| 2428 | +#define CONFIG_PCM_S32LE_DEMUXER 0 | ||
| 2429 | +#define CONFIG_PCM_S24BE_DEMUXER 0 | ||
| 2430 | +#define CONFIG_PCM_S24LE_DEMUXER 0 | ||
| 2431 | +#define CONFIG_PCM_S16BE_DEMUXER 0 | ||
| 2432 | +#define CONFIG_PCM_S16LE_DEMUXER 0 | ||
| 2433 | +#define CONFIG_PCM_S8_DEMUXER 0 | ||
| 2434 | +#define CONFIG_PCM_U32BE_DEMUXER 0 | ||
| 2435 | +#define CONFIG_PCM_U32LE_DEMUXER 0 | ||
| 2436 | +#define CONFIG_PCM_U24BE_DEMUXER 0 | ||
| 2437 | +#define CONFIG_PCM_U24LE_DEMUXER 0 | ||
| 2438 | +#define CONFIG_PCM_U16BE_DEMUXER 0 | ||
| 2439 | +#define CONFIG_PCM_U16LE_DEMUXER 0 | ||
| 2440 | +#define CONFIG_PCM_U8_DEMUXER 0 | ||
| 2441 | +#define CONFIG_PJS_DEMUXER 0 | ||
| 2442 | +#define CONFIG_PMP_DEMUXER 0 | ||
| 2443 | +#define CONFIG_PP_BNK_DEMUXER 0 | ||
| 2444 | +#define CONFIG_PVA_DEMUXER 0 | ||
| 2445 | +#define CONFIG_PVF_DEMUXER 0 | ||
| 2446 | +#define CONFIG_QCP_DEMUXER 0 | ||
| 2447 | +#define CONFIG_R3D_DEMUXER 0 | ||
| 2448 | +#define CONFIG_RAWVIDEO_DEMUXER 0 | ||
| 2449 | +#define CONFIG_REALTEXT_DEMUXER 0 | ||
| 2450 | +#define CONFIG_REDSPARK_DEMUXER 0 | ||
| 2451 | +#define CONFIG_RL2_DEMUXER 0 | ||
| 2452 | +#define CONFIG_RM_DEMUXER 0 | ||
| 2453 | +#define CONFIG_ROQ_DEMUXER 0 | ||
| 2454 | +#define CONFIG_RPL_DEMUXER 0 | ||
| 2455 | +#define CONFIG_RSD_DEMUXER 0 | ||
| 2456 | +#define CONFIG_RSO_DEMUXER 0 | ||
| 2457 | +#define CONFIG_RTP_DEMUXER 0 | ||
| 2458 | +#define CONFIG_RTSP_DEMUXER 0 | ||
| 2459 | +#define CONFIG_S337M_DEMUXER 0 | ||
| 2460 | +#define CONFIG_SAMI_DEMUXER 0 | ||
| 2461 | +#define CONFIG_SAP_DEMUXER 0 | ||
| 2462 | +#define CONFIG_SBC_DEMUXER 0 | ||
| 2463 | +#define CONFIG_SBG_DEMUXER 0 | ||
| 2464 | +#define CONFIG_SCC_DEMUXER 0 | ||
| 2465 | +#define CONFIG_SCD_DEMUXER 0 | ||
| 2466 | +#define CONFIG_SDP_DEMUXER 0 | ||
| 2467 | +#define CONFIG_SDR2_DEMUXER 0 | ||
| 2468 | +#define CONFIG_SDS_DEMUXER 0 | ||
| 2469 | +#define CONFIG_SDX_DEMUXER 0 | ||
| 2470 | +#define CONFIG_SEGAFILM_DEMUXER 0 | ||
| 2471 | +#define CONFIG_SER_DEMUXER 0 | ||
| 2472 | +#define CONFIG_SGA_DEMUXER 0 | ||
| 2473 | +#define CONFIG_SHORTEN_DEMUXER 0 | ||
| 2474 | +#define CONFIG_SIFF_DEMUXER 0 | ||
| 2475 | +#define CONFIG_SIMBIOSIS_IMX_DEMUXER 0 | ||
| 2476 | +#define CONFIG_SLN_DEMUXER 0 | ||
| 2477 | +#define CONFIG_SMACKER_DEMUXER 0 | ||
| 2478 | +#define CONFIG_SMJPEG_DEMUXER 0 | ||
| 2479 | +#define CONFIG_SMUSH_DEMUXER 0 | ||
| 2480 | +#define CONFIG_SOL_DEMUXER 0 | ||
| 2481 | +#define CONFIG_SOX_DEMUXER 0 | ||
| 2482 | +#define CONFIG_SPDIF_DEMUXER 0 | ||
| 2483 | +#define CONFIG_SRT_DEMUXER 0 | ||
| 2484 | +#define CONFIG_STR_DEMUXER 0 | ||
| 2485 | +#define CONFIG_STL_DEMUXER 0 | ||
| 2486 | +#define CONFIG_SUBVIEWER1_DEMUXER 0 | ||
| 2487 | +#define CONFIG_SUBVIEWER_DEMUXER 0 | ||
| 2488 | +#define CONFIG_SUP_DEMUXER 0 | ||
| 2489 | +#define CONFIG_SVAG_DEMUXER 0 | ||
| 2490 | +#define CONFIG_SVS_DEMUXER 0 | ||
| 2491 | +#define CONFIG_SWF_DEMUXER 0 | ||
| 2492 | +#define CONFIG_TAK_DEMUXER 0 | ||
| 2493 | +#define CONFIG_TEDCAPTIONS_DEMUXER 0 | ||
| 2494 | +#define CONFIG_THP_DEMUXER 0 | ||
| 2495 | +#define CONFIG_THREEDOSTR_DEMUXER 0 | ||
| 2496 | +#define CONFIG_TIERTEXSEQ_DEMUXER 0 | ||
| 2497 | +#define CONFIG_TMV_DEMUXER 0 | ||
| 2498 | +#define CONFIG_TRUEHD_DEMUXER 0 | ||
| 2499 | +#define CONFIG_TTA_DEMUXER 0 | ||
| 2500 | +#define CONFIG_TXD_DEMUXER 0 | ||
| 2501 | +#define CONFIG_TTY_DEMUXER 0 | ||
| 2502 | +#define CONFIG_TY_DEMUXER 0 | ||
| 2503 | +#define CONFIG_V210_DEMUXER 0 | ||
| 2504 | +#define CONFIG_V210X_DEMUXER 0 | ||
| 2505 | +#define CONFIG_VAG_DEMUXER 0 | ||
| 2506 | +#define CONFIG_VC1_DEMUXER 0 | ||
| 2507 | +#define CONFIG_VC1T_DEMUXER 0 | ||
| 2508 | +#define CONFIG_VIVIDAS_DEMUXER 0 | ||
| 2509 | +#define CONFIG_VIVO_DEMUXER 0 | ||
| 2510 | +#define CONFIG_VMD_DEMUXER 0 | ||
| 2511 | +#define CONFIG_VOBSUB_DEMUXER 0 | ||
| 2512 | +#define CONFIG_VOC_DEMUXER 0 | ||
| 2513 | +#define CONFIG_VPK_DEMUXER 0 | ||
| 2514 | +#define CONFIG_VPLAYER_DEMUXER 0 | ||
| 2515 | +#define CONFIG_VQF_DEMUXER 0 | ||
| 2516 | +#define CONFIG_W64_DEMUXER 0 | ||
| 2517 | +#define CONFIG_WAV_DEMUXER 1 | ||
| 2518 | +#define CONFIG_WC3_DEMUXER 0 | ||
| 2519 | +#define CONFIG_WEBM_DASH_MANIFEST_DEMUXER 0 | ||
| 2520 | +#define CONFIG_WEBVTT_DEMUXER 0 | ||
| 2521 | +#define CONFIG_WSAUD_DEMUXER 0 | ||
| 2522 | +#define CONFIG_WSD_DEMUXER 0 | ||
| 2523 | +#define CONFIG_WSVQA_DEMUXER 0 | ||
| 2524 | +#define CONFIG_WTV_DEMUXER 0 | ||
| 2525 | +#define CONFIG_WVE_DEMUXER 0 | ||
| 2526 | +#define CONFIG_WV_DEMUXER 0 | ||
| 2527 | +#define CONFIG_XA_DEMUXER 0 | ||
| 2528 | +#define CONFIG_XBIN_DEMUXER 0 | ||
| 2529 | +#define CONFIG_XMV_DEMUXER 0 | ||
| 2530 | +#define CONFIG_XVAG_DEMUXER 0 | ||
| 2531 | +#define CONFIG_XWMA_DEMUXER 0 | ||
| 2532 | +#define CONFIG_YOP_DEMUXER 0 | ||
| 2533 | +#define CONFIG_YUV4MPEGPIPE_DEMUXER 0 | ||
| 2534 | +#define CONFIG_IMAGE_BMP_PIPE_DEMUXER 0 | ||
| 2535 | +#define CONFIG_IMAGE_CRI_PIPE_DEMUXER 0 | ||
| 2536 | +#define CONFIG_IMAGE_DDS_PIPE_DEMUXER 0 | ||
| 2537 | +#define CONFIG_IMAGE_DPX_PIPE_DEMUXER 0 | ||
| 2538 | +#define CONFIG_IMAGE_EXR_PIPE_DEMUXER 0 | ||
| 2539 | +#define CONFIG_IMAGE_GEM_PIPE_DEMUXER 0 | ||
| 2540 | +#define CONFIG_IMAGE_GIF_PIPE_DEMUXER 0 | ||
| 2541 | +#define CONFIG_IMAGE_J2K_PIPE_DEMUXER 0 | ||
| 2542 | +#define CONFIG_IMAGE_JPEG_PIPE_DEMUXER 0 | ||
| 2543 | +#define CONFIG_IMAGE_JPEGLS_PIPE_DEMUXER 0 | ||
| 2544 | +#define CONFIG_IMAGE_PAM_PIPE_DEMUXER 0 | ||
| 2545 | +#define CONFIG_IMAGE_PBM_PIPE_DEMUXER 0 | ||
| 2546 | +#define CONFIG_IMAGE_PCX_PIPE_DEMUXER 0 | ||
| 2547 | +#define CONFIG_IMAGE_PGMYUV_PIPE_DEMUXER 0 | ||
| 2548 | +#define CONFIG_IMAGE_PGM_PIPE_DEMUXER 0 | ||
| 2549 | +#define CONFIG_IMAGE_PGX_PIPE_DEMUXER 0 | ||
| 2550 | +#define CONFIG_IMAGE_PHOTOCD_PIPE_DEMUXER 0 | ||
| 2551 | +#define CONFIG_IMAGE_PICTOR_PIPE_DEMUXER 0 | ||
| 2552 | +#define CONFIG_IMAGE_PNG_PIPE_DEMUXER 0 | ||
| 2553 | +#define CONFIG_IMAGE_PPM_PIPE_DEMUXER 0 | ||
| 2554 | +#define CONFIG_IMAGE_PSD_PIPE_DEMUXER 0 | ||
| 2555 | +#define CONFIG_IMAGE_QDRAW_PIPE_DEMUXER 0 | ||
| 2556 | +#define CONFIG_IMAGE_SGI_PIPE_DEMUXER 0 | ||
| 2557 | +#define CONFIG_IMAGE_SVG_PIPE_DEMUXER 0 | ||
| 2558 | +#define CONFIG_IMAGE_SUNRAST_PIPE_DEMUXER 0 | ||
| 2559 | +#define CONFIG_IMAGE_TIFF_PIPE_DEMUXER 0 | ||
| 2560 | +#define CONFIG_IMAGE_WEBP_PIPE_DEMUXER 0 | ||
| 2561 | +#define CONFIG_IMAGE_XBM_PIPE_DEMUXER 0 | ||
| 2562 | +#define CONFIG_IMAGE_XPM_PIPE_DEMUXER 0 | ||
| 2563 | +#define CONFIG_IMAGE_XWD_PIPE_DEMUXER 0 | ||
| 2564 | +#define CONFIG_LIBGME_DEMUXER 0 | ||
| 2565 | +#define CONFIG_LIBMODPLUG_DEMUXER 0 | ||
| 2566 | +#define CONFIG_LIBOPENMPT_DEMUXER 0 | ||
| 2567 | +#define CONFIG_VAPOURSYNTH_DEMUXER 0 | ||
| 2568 | +#define CONFIG_A64_MUXER 0 | ||
| 2569 | +#define CONFIG_AC3_MUXER 0 | ||
| 2570 | +#define CONFIG_ADTS_MUXER 0 | ||
| 2571 | +#define CONFIG_ADX_MUXER 0 | ||
| 2572 | +#define CONFIG_AIFF_MUXER 0 | ||
| 2573 | +#define CONFIG_ALP_MUXER 0 | ||
| 2574 | +#define CONFIG_AMR_MUXER 0 | ||
| 2575 | +#define CONFIG_AMV_MUXER 0 | ||
| 2576 | +#define CONFIG_APM_MUXER 0 | ||
| 2577 | +#define CONFIG_APNG_MUXER 0 | ||
| 2578 | +#define CONFIG_APTX_MUXER 0 | ||
| 2579 | +#define CONFIG_APTX_HD_MUXER 0 | ||
| 2580 | +#define CONFIG_ARGO_ASF_MUXER 0 | ||
| 2581 | +#define CONFIG_ARGO_CVG_MUXER 0 | ||
| 2582 | +#define CONFIG_ASF_MUXER 0 | ||
| 2583 | +#define CONFIG_ASS_MUXER 0 | ||
| 2584 | +#define CONFIG_AST_MUXER 0 | ||
| 2585 | +#define CONFIG_ASF_STREAM_MUXER 0 | ||
| 2586 | +#define CONFIG_AU_MUXER 0 | ||
| 2587 | +#define CONFIG_AVI_MUXER 0 | ||
| 2588 | +#define CONFIG_AVM2_MUXER 0 | ||
| 2589 | +#define CONFIG_AVS2_MUXER 0 | ||
| 2590 | +#define CONFIG_AVS3_MUXER 0 | ||
| 2591 | +#define CONFIG_BIT_MUXER 0 | ||
| 2592 | +#define CONFIG_CAF_MUXER 0 | ||
| 2593 | +#define CONFIG_CAVSVIDEO_MUXER 0 | ||
| 2594 | +#define CONFIG_CODEC2_MUXER 0 | ||
| 2595 | +#define CONFIG_CODEC2RAW_MUXER 0 | ||
| 2596 | +#define CONFIG_CRC_MUXER 0 | ||
| 2597 | +#define CONFIG_DASH_MUXER 0 | ||
| 2598 | +#define CONFIG_DATA_MUXER 0 | ||
| 2599 | +#define CONFIG_DAUD_MUXER 0 | ||
| 2600 | +#define CONFIG_DIRAC_MUXER 0 | ||
| 2601 | +#define CONFIG_DNXHD_MUXER 0 | ||
| 2602 | +#define CONFIG_DTS_MUXER 0 | ||
| 2603 | +#define CONFIG_DV_MUXER 0 | ||
| 2604 | +#define CONFIG_EAC3_MUXER 0 | ||
| 2605 | +#define CONFIG_F4V_MUXER 0 | ||
| 2606 | +#define CONFIG_FFMETADATA_MUXER 0 | ||
| 2607 | +#define CONFIG_FIFO_MUXER 0 | ||
| 2608 | +#define CONFIG_FIFO_TEST_MUXER 0 | ||
| 2609 | +#define CONFIG_FILMSTRIP_MUXER 0 | ||
| 2610 | +#define CONFIG_FITS_MUXER 0 | ||
| 2611 | +#define CONFIG_FLAC_MUXER 0 | ||
| 2612 | +#define CONFIG_FLV_MUXER 0 | ||
| 2613 | +#define CONFIG_FRAMECRC_MUXER 0 | ||
| 2614 | +#define CONFIG_FRAMEHASH_MUXER 0 | ||
| 2615 | +#define CONFIG_FRAMEMD5_MUXER 0 | ||
| 2616 | +#define CONFIG_G722_MUXER 0 | ||
| 2617 | +#define CONFIG_G723_1_MUXER 0 | ||
| 2618 | +#define CONFIG_G726_MUXER 0 | ||
| 2619 | +#define CONFIG_G726LE_MUXER 0 | ||
| 2620 | +#define CONFIG_GIF_MUXER 0 | ||
| 2621 | +#define CONFIG_GSM_MUXER 0 | ||
| 2622 | +#define CONFIG_GXF_MUXER 0 | ||
| 2623 | +#define CONFIG_H261_MUXER 0 | ||
| 2624 | +#define CONFIG_H263_MUXER 0 | ||
| 2625 | +#define CONFIG_H264_MUXER 0 | ||
| 2626 | +#define CONFIG_HASH_MUXER 0 | ||
| 2627 | +#define CONFIG_HDS_MUXER 0 | ||
| 2628 | +#define CONFIG_HEVC_MUXER 0 | ||
| 2629 | +#define CONFIG_HLS_MUXER 0 | ||
| 2630 | +#define CONFIG_ICO_MUXER 0 | ||
| 2631 | +#define CONFIG_ILBC_MUXER 0 | ||
| 2632 | +#define CONFIG_IMAGE2_MUXER 0 | ||
| 2633 | +#define CONFIG_IMAGE2PIPE_MUXER 0 | ||
| 2634 | +#define CONFIG_IPOD_MUXER 0 | ||
| 2635 | +#define CONFIG_IRCAM_MUXER 0 | ||
| 2636 | +#define CONFIG_ISMV_MUXER 0 | ||
| 2637 | +#define CONFIG_IVF_MUXER 0 | ||
| 2638 | +#define CONFIG_JACOSUB_MUXER 0 | ||
| 2639 | +#define CONFIG_KVAG_MUXER 0 | ||
| 2640 | +#define CONFIG_LATM_MUXER 0 | ||
| 2641 | +#define CONFIG_LRC_MUXER 0 | ||
| 2642 | +#define CONFIG_M4V_MUXER 0 | ||
| 2643 | +#define CONFIG_MD5_MUXER 0 | ||
| 2644 | +#define CONFIG_MATROSKA_MUXER 0 | ||
| 2645 | +#define CONFIG_MATROSKA_AUDIO_MUXER 0 | ||
| 2646 | +#define CONFIG_MICRODVD_MUXER 0 | ||
| 2647 | +#define CONFIG_MJPEG_MUXER 0 | ||
| 2648 | +#define CONFIG_MLP_MUXER 0 | ||
| 2649 | +#define CONFIG_MMF_MUXER 0 | ||
| 2650 | +#define CONFIG_MOV_MUXER 0 | ||
| 2651 | +#define CONFIG_MP2_MUXER 0 | ||
| 2652 | +#define CONFIG_MP3_MUXER 0 | ||
| 2653 | +#define CONFIG_MP4_MUXER 0 | ||
| 2654 | +#define CONFIG_MPEG1SYSTEM_MUXER 0 | ||
| 2655 | +#define CONFIG_MPEG1VCD_MUXER 0 | ||
| 2656 | +#define CONFIG_MPEG1VIDEO_MUXER 0 | ||
| 2657 | +#define CONFIG_MPEG2DVD_MUXER 0 | ||
| 2658 | +#define CONFIG_MPEG2SVCD_MUXER 0 | ||
| 2659 | +#define CONFIG_MPEG2VIDEO_MUXER 0 | ||
| 2660 | +#define CONFIG_MPEG2VOB_MUXER 0 | ||
| 2661 | +#define CONFIG_MPEGTS_MUXER 0 | ||
| 2662 | +#define CONFIG_MPJPEG_MUXER 0 | ||
| 2663 | +#define CONFIG_MXF_MUXER 0 | ||
| 2664 | +#define CONFIG_MXF_D10_MUXER 0 | ||
| 2665 | +#define CONFIG_MXF_OPATOM_MUXER 0 | ||
| 2666 | +#define CONFIG_NULL_MUXER 0 | ||
| 2667 | +#define CONFIG_NUT_MUXER 0 | ||
| 2668 | +#define CONFIG_OBU_MUXER 0 | ||
| 2669 | +#define CONFIG_OGA_MUXER 0 | ||
| 2670 | +#define CONFIG_OGG_MUXER 0 | ||
| 2671 | +#define CONFIG_OGV_MUXER 0 | ||
| 2672 | +#define CONFIG_OMA_MUXER 0 | ||
| 2673 | +#define CONFIG_OPUS_MUXER 0 | ||
| 2674 | +#define CONFIG_PCM_ALAW_MUXER 0 | ||
| 2675 | +#define CONFIG_PCM_MULAW_MUXER 0 | ||
| 2676 | +#define CONFIG_PCM_VIDC_MUXER 0 | ||
| 2677 | +#define CONFIG_PCM_F64BE_MUXER 0 | ||
| 2678 | +#define CONFIG_PCM_F64LE_MUXER 0 | ||
| 2679 | +#define CONFIG_PCM_F32BE_MUXER 0 | ||
| 2680 | +#define CONFIG_PCM_F32LE_MUXER 0 | ||
| 2681 | +#define CONFIG_PCM_S32BE_MUXER 0 | ||
| 2682 | +#define CONFIG_PCM_S32LE_MUXER 0 | ||
| 2683 | +#define CONFIG_PCM_S24BE_MUXER 0 | ||
| 2684 | +#define CONFIG_PCM_S24LE_MUXER 0 | ||
| 2685 | +#define CONFIG_PCM_S16BE_MUXER 0 | ||
| 2686 | +#define CONFIG_PCM_S16LE_MUXER 0 | ||
| 2687 | +#define CONFIG_PCM_S8_MUXER 0 | ||
| 2688 | +#define CONFIG_PCM_U32BE_MUXER 0 | ||
| 2689 | +#define CONFIG_PCM_U32LE_MUXER 0 | ||
| 2690 | +#define CONFIG_PCM_U24BE_MUXER 0 | ||
| 2691 | +#define CONFIG_PCM_U24LE_MUXER 0 | ||
| 2692 | +#define CONFIG_PCM_U16BE_MUXER 0 | ||
| 2693 | +#define CONFIG_PCM_U16LE_MUXER 0 | ||
| 2694 | +#define CONFIG_PCM_U8_MUXER 0 | ||
| 2695 | +#define CONFIG_PSP_MUXER 0 | ||
| 2696 | +#define CONFIG_RAWVIDEO_MUXER 0 | ||
| 2697 | +#define CONFIG_RM_MUXER 0 | ||
| 2698 | +#define CONFIG_ROQ_MUXER 0 | ||
| 2699 | +#define CONFIG_RSO_MUXER 0 | ||
| 2700 | +#define CONFIG_RTP_MUXER 0 | ||
| 2701 | +#define CONFIG_RTP_MPEGTS_MUXER 0 | ||
| 2702 | +#define CONFIG_RTSP_MUXER 0 | ||
| 2703 | +#define CONFIG_SAP_MUXER 0 | ||
| 2704 | +#define CONFIG_SBC_MUXER 0 | ||
| 2705 | +#define CONFIG_SCC_MUXER 0 | ||
| 2706 | +#define CONFIG_SEGAFILM_MUXER 0 | ||
| 2707 | +#define CONFIG_SEGMENT_MUXER 0 | ||
| 2708 | +#define CONFIG_STREAM_SEGMENT_MUXER 0 | ||
| 2709 | +#define CONFIG_SMJPEG_MUXER 0 | ||
| 2710 | +#define CONFIG_SMOOTHSTREAMING_MUXER 0 | ||
| 2711 | +#define CONFIG_SOX_MUXER 0 | ||
| 2712 | +#define CONFIG_SPX_MUXER 0 | ||
| 2713 | +#define CONFIG_SPDIF_MUXER 0 | ||
| 2714 | +#define CONFIG_SRT_MUXER 0 | ||
| 2715 | +#define CONFIG_STREAMHASH_MUXER 0 | ||
| 2716 | +#define CONFIG_SUP_MUXER 0 | ||
| 2717 | +#define CONFIG_SWF_MUXER 0 | ||
| 2718 | +#define CONFIG_TEE_MUXER 0 | ||
| 2719 | +#define CONFIG_TG2_MUXER 0 | ||
| 2720 | +#define CONFIG_TGP_MUXER 0 | ||
| 2721 | +#define CONFIG_MKVTIMESTAMP_V2_MUXER 0 | ||
| 2722 | +#define CONFIG_TRUEHD_MUXER 0 | ||
| 2723 | +#define CONFIG_TTA_MUXER 0 | ||
| 2724 | +#define CONFIG_TTML_MUXER 0 | ||
| 2725 | +#define CONFIG_UNCODEDFRAMECRC_MUXER 0 | ||
| 2726 | +#define CONFIG_VC1_MUXER 0 | ||
| 2727 | +#define CONFIG_VC1T_MUXER 0 | ||
| 2728 | +#define CONFIG_VOC_MUXER 0 | ||
| 2729 | +#define CONFIG_W64_MUXER 0 | ||
| 2730 | +#define CONFIG_WAV_MUXER 0 | ||
| 2731 | +#define CONFIG_WEBM_MUXER 0 | ||
| 2732 | +#define CONFIG_WEBM_DASH_MANIFEST_MUXER 0 | ||
| 2733 | +#define CONFIG_WEBM_CHUNK_MUXER 0 | ||
| 2734 | +#define CONFIG_WEBP_MUXER 0 | ||
| 2735 | +#define CONFIG_WEBVTT_MUXER 0 | ||
| 2736 | +#define CONFIG_WSAUD_MUXER 0 | ||
| 2737 | +#define CONFIG_WTV_MUXER 0 | ||
| 2738 | +#define CONFIG_WV_MUXER 0 | ||
| 2739 | +#define CONFIG_YUV4MPEGPIPE_MUXER 0 | ||
| 2740 | +#define CONFIG_CHROMAPRINT_MUXER 0 | ||
| 2741 | +#define CONFIG_ASYNC_PROTOCOL 0 | ||
| 2742 | +#define CONFIG_BLURAY_PROTOCOL 0 | ||
| 2743 | +#define CONFIG_CACHE_PROTOCOL 0 | ||
| 2744 | +#define CONFIG_CONCAT_PROTOCOL 0 | ||
| 2745 | +#define CONFIG_CONCATF_PROTOCOL 0 | ||
| 2746 | +#define CONFIG_CRYPTO_PROTOCOL 0 | ||
| 2747 | +#define CONFIG_DATA_PROTOCOL 0 | ||
| 2748 | +#define CONFIG_FFRTMPCRYPT_PROTOCOL 0 | ||
| 2749 | +#define CONFIG_FFRTMPHTTP_PROTOCOL 0 | ||
| 2750 | +#define CONFIG_FILE_PROTOCOL 0 | ||
| 2751 | +#define CONFIG_FTP_PROTOCOL 0 | ||
| 2752 | +#define CONFIG_GOPHER_PROTOCOL 0 | ||
| 2753 | +#define CONFIG_GOPHERS_PROTOCOL 0 | ||
| 2754 | +#define CONFIG_HLS_PROTOCOL 0 | ||
| 2755 | +#define CONFIG_HTTP_PROTOCOL 0 | ||
| 2756 | +#define CONFIG_HTTPPROXY_PROTOCOL 0 | ||
| 2757 | +#define CONFIG_HTTPS_PROTOCOL 0 | ||
| 2758 | +#define CONFIG_ICECAST_PROTOCOL 0 | ||
| 2759 | +#define CONFIG_MMSH_PROTOCOL 0 | ||
| 2760 | +#define CONFIG_MMST_PROTOCOL 0 | ||
| 2761 | +#define CONFIG_MD5_PROTOCOL 0 | ||
| 2762 | +#define CONFIG_PIPE_PROTOCOL 0 | ||
| 2763 | +#define CONFIG_PROMPEG_PROTOCOL 0 | ||
| 2764 | +#define CONFIG_RTMP_PROTOCOL 0 | ||
| 2765 | +#define CONFIG_RTMPE_PROTOCOL 0 | ||
| 2766 | +#define CONFIG_RTMPS_PROTOCOL 0 | ||
| 2767 | +#define CONFIG_RTMPT_PROTOCOL 0 | ||
| 2768 | +#define CONFIG_RTMPTE_PROTOCOL 0 | ||
| 2769 | +#define CONFIG_RTMPTS_PROTOCOL 0 | ||
| 2770 | +#define CONFIG_RTP_PROTOCOL 0 | ||
| 2771 | +#define CONFIG_SCTP_PROTOCOL 0 | ||
| 2772 | +#define CONFIG_SRTP_PROTOCOL 0 | ||
| 2773 | +#define CONFIG_SUBFILE_PROTOCOL 0 | ||
| 2774 | +#define CONFIG_TEE_PROTOCOL 0 | ||
| 2775 | +#define CONFIG_TCP_PROTOCOL 0 | ||
| 2776 | +#define CONFIG_TLS_PROTOCOL 0 | ||
| 2777 | +#define CONFIG_UDP_PROTOCOL 0 | ||
| 2778 | +#define CONFIG_UDPLITE_PROTOCOL 0 | ||
| 2779 | +#define CONFIG_UNIX_PROTOCOL 0 | ||
| 2780 | +#define CONFIG_LIBAMQP_PROTOCOL 0 | ||
| 2781 | +#define CONFIG_LIBRIST_PROTOCOL 0 | ||
| 2782 | +#define CONFIG_LIBRTMP_PROTOCOL 0 | ||
| 2783 | +#define CONFIG_LIBRTMPE_PROTOCOL 0 | ||
| 2784 | +#define CONFIG_LIBRTMPS_PROTOCOL 0 | ||
| 2785 | +#define CONFIG_LIBRTMPT_PROTOCOL 0 | ||
| 2786 | +#define CONFIG_LIBRTMPTE_PROTOCOL 0 | ||
| 2787 | +#define CONFIG_LIBSRT_PROTOCOL 0 | ||
| 2788 | +#define CONFIG_LIBSSH_PROTOCOL 0 | ||
| 2789 | +#define CONFIG_LIBSMBCLIENT_PROTOCOL 0 | ||
| 2790 | +#define CONFIG_LIBZMQ_PROTOCOL 0 | ||
| 2791 | +#endif /* FFMPEG_CONFIG_H */ | ||
diff --git a/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_x64_config_asm b/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_x64_config_asm new file mode 100644 index 0000000..d3cb9ca --- /dev/null +++ b/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_x64_config_asm | |||
| @@ -0,0 +1,2774 @@ | |||
| 1 | Index: third_party/ffmpeg/chromium/config/Chrome/openbsd/x64/config.asm | ||
| 2 | --- third_party/ffmpeg/chromium/config/Chrome/openbsd/x64/config.asm.orig | ||
| 3 | +++ third_party/ffmpeg/chromium/config/Chrome/openbsd/x64/config.asm | ||
| 4 | @@ -0,0 +1,2770 @@ | ||
| 5 | +; Automatically generated by configure - do not modify! | ||
| 6 | +%define ARCH_AARCH64 0 | ||
| 7 | +%define ARCH_ALPHA 0 | ||
| 8 | +%define ARCH_ARM 0 | ||
| 9 | +%define ARCH_AVR32 0 | ||
| 10 | +%define ARCH_AVR32_AP 0 | ||
| 11 | +%define ARCH_AVR32_UC 0 | ||
| 12 | +%define ARCH_BFIN 0 | ||
| 13 | +%define ARCH_IA64 0 | ||
| 14 | +%define ARCH_LOONGARCH 0 | ||
| 15 | +%define ARCH_LOONGARCH32 0 | ||
| 16 | +%define ARCH_LOONGARCH64 0 | ||
| 17 | +%define ARCH_M68K 0 | ||
| 18 | +%define ARCH_MIPS 0 | ||
| 19 | +%define ARCH_MIPS64 0 | ||
| 20 | +%define ARCH_PARISC 0 | ||
| 21 | +%define ARCH_PPC 0 | ||
| 22 | +%define ARCH_PPC64 0 | ||
| 23 | +%define ARCH_RISCV 0 | ||
| 24 | +%define ARCH_S390 0 | ||
| 25 | +%define ARCH_SH4 0 | ||
| 26 | +%define ARCH_SPARC 0 | ||
| 27 | +%define ARCH_SPARC64 0 | ||
| 28 | +%define ARCH_TILEGX 0 | ||
| 29 | +%define ARCH_TILEPRO 0 | ||
| 30 | +%define ARCH_TOMI 0 | ||
| 31 | +%define ARCH_X86 1 | ||
| 32 | +%define ARCH_X86_32 0 | ||
| 33 | +%define ARCH_X86_64 1 | ||
| 34 | +%define HAVE_ARMV5TE 0 | ||
| 35 | +%define HAVE_ARMV6 0 | ||
| 36 | +%define HAVE_ARMV6T2 0 | ||
| 37 | +%define HAVE_ARMV8 0 | ||
| 38 | +%define HAVE_NEON 0 | ||
| 39 | +%define HAVE_VFP 0 | ||
| 40 | +%define HAVE_VFPV3 0 | ||
| 41 | +%define HAVE_SETEND 0 | ||
| 42 | +%define HAVE_ALTIVEC 0 | ||
| 43 | +%define HAVE_DCBZL 0 | ||
| 44 | +%define HAVE_LDBRX 0 | ||
| 45 | +%define HAVE_POWER8 0 | ||
| 46 | +%define HAVE_PPC4XX 0 | ||
| 47 | +%define HAVE_VSX 0 | ||
| 48 | +%define HAVE_AESNI 1 | ||
| 49 | +%define HAVE_AMD3DNOW 1 | ||
| 50 | +%define HAVE_AMD3DNOWEXT 1 | ||
| 51 | +%define HAVE_AVX 1 | ||
| 52 | +%define HAVE_AVX2 1 | ||
| 53 | +%define HAVE_AVX512 1 | ||
| 54 | +%define HAVE_FMA3 1 | ||
| 55 | +%define HAVE_FMA4 1 | ||
| 56 | +%define HAVE_MMX 1 | ||
| 57 | +%define HAVE_MMXEXT 1 | ||
| 58 | +%define HAVE_SSE 1 | ||
| 59 | +%define HAVE_SSE2 1 | ||
| 60 | +%define HAVE_SSE3 1 | ||
| 61 | +%define HAVE_SSE4 1 | ||
| 62 | +%define HAVE_SSE42 1 | ||
| 63 | +%define HAVE_SSSE3 1 | ||
| 64 | +%define HAVE_XOP 1 | ||
| 65 | +%define HAVE_CPUNOP 0 | ||
| 66 | +%define HAVE_I686 1 | ||
| 67 | +%define HAVE_MIPSFPU 0 | ||
| 68 | +%define HAVE_MIPS32R2 0 | ||
| 69 | +%define HAVE_MIPS32R5 0 | ||
| 70 | +%define HAVE_MIPS64R2 0 | ||
| 71 | +%define HAVE_MIPS32R6 0 | ||
| 72 | +%define HAVE_MIPS64R6 0 | ||
| 73 | +%define HAVE_MIPSDSP 0 | ||
| 74 | +%define HAVE_MIPSDSPR2 0 | ||
| 75 | +%define HAVE_MSA 0 | ||
| 76 | +%define HAVE_LOONGSON2 0 | ||
| 77 | +%define HAVE_LOONGSON3 0 | ||
| 78 | +%define HAVE_MMI 0 | ||
| 79 | +%define HAVE_LSX 0 | ||
| 80 | +%define HAVE_LASX 0 | ||
| 81 | +%define HAVE_ARMV5TE_EXTERNAL 0 | ||
| 82 | +%define HAVE_ARMV6_EXTERNAL 0 | ||
| 83 | +%define HAVE_ARMV6T2_EXTERNAL 0 | ||
| 84 | +%define HAVE_ARMV8_EXTERNAL 0 | ||
| 85 | +%define HAVE_NEON_EXTERNAL 0 | ||
| 86 | +%define HAVE_VFP_EXTERNAL 0 | ||
| 87 | +%define HAVE_VFPV3_EXTERNAL 0 | ||
| 88 | +%define HAVE_SETEND_EXTERNAL 0 | ||
| 89 | +%define HAVE_ALTIVEC_EXTERNAL 0 | ||
| 90 | +%define HAVE_DCBZL_EXTERNAL 0 | ||
| 91 | +%define HAVE_LDBRX_EXTERNAL 0 | ||
| 92 | +%define HAVE_POWER8_EXTERNAL 0 | ||
| 93 | +%define HAVE_PPC4XX_EXTERNAL 0 | ||
| 94 | +%define HAVE_VSX_EXTERNAL 0 | ||
| 95 | +%define HAVE_AESNI_EXTERNAL 1 | ||
| 96 | +%define HAVE_AMD3DNOW_EXTERNAL 1 | ||
| 97 | +%define HAVE_AMD3DNOWEXT_EXTERNAL 1 | ||
| 98 | +%define HAVE_AVX_EXTERNAL 1 | ||
| 99 | +%define HAVE_AVX2_EXTERNAL 1 | ||
| 100 | +%define HAVE_AVX512_EXTERNAL 1 | ||
| 101 | +%define HAVE_FMA3_EXTERNAL 1 | ||
| 102 | +%define HAVE_FMA4_EXTERNAL 1 | ||
| 103 | +%define HAVE_MMX_EXTERNAL 1 | ||
| 104 | +%define HAVE_MMXEXT_EXTERNAL 1 | ||
| 105 | +%define HAVE_SSE_EXTERNAL 1 | ||
| 106 | +%define HAVE_SSE2_EXTERNAL 1 | ||
| 107 | +%define HAVE_SSE3_EXTERNAL 1 | ||
| 108 | +%define HAVE_SSE4_EXTERNAL 1 | ||
| 109 | +%define HAVE_SSE42_EXTERNAL 1 | ||
| 110 | +%define HAVE_SSSE3_EXTERNAL 1 | ||
| 111 | +%define HAVE_XOP_EXTERNAL 1 | ||
| 112 | +%define HAVE_CPUNOP_EXTERNAL 0 | ||
| 113 | +%define HAVE_I686_EXTERNAL 0 | ||
| 114 | +%define HAVE_MIPSFPU_EXTERNAL 0 | ||
| 115 | +%define HAVE_MIPS32R2_EXTERNAL 0 | ||
| 116 | +%define HAVE_MIPS32R5_EXTERNAL 0 | ||
| 117 | +%define HAVE_MIPS64R2_EXTERNAL 0 | ||
| 118 | +%define HAVE_MIPS32R6_EXTERNAL 0 | ||
| 119 | +%define HAVE_MIPS64R6_EXTERNAL 0 | ||
| 120 | +%define HAVE_MIPSDSP_EXTERNAL 0 | ||
| 121 | +%define HAVE_MIPSDSPR2_EXTERNAL 0 | ||
| 122 | +%define HAVE_MSA_EXTERNAL 0 | ||
| 123 | +%define HAVE_LOONGSON2_EXTERNAL 0 | ||
| 124 | +%define HAVE_LOONGSON3_EXTERNAL 0 | ||
| 125 | +%define HAVE_MMI_EXTERNAL 0 | ||
| 126 | +%define HAVE_LSX_EXTERNAL 0 | ||
| 127 | +%define HAVE_LASX_EXTERNAL 0 | ||
| 128 | +%define HAVE_ARMV5TE_INLINE 0 | ||
| 129 | +%define HAVE_ARMV6_INLINE 0 | ||
| 130 | +%define HAVE_ARMV6T2_INLINE 0 | ||
| 131 | +%define HAVE_ARMV8_INLINE 0 | ||
| 132 | +%define HAVE_NEON_INLINE 0 | ||
| 133 | +%define HAVE_VFP_INLINE 0 | ||
| 134 | +%define HAVE_VFPV3_INLINE 0 | ||
| 135 | +%define HAVE_SETEND_INLINE 0 | ||
| 136 | +%define HAVE_ALTIVEC_INLINE 0 | ||
| 137 | +%define HAVE_DCBZL_INLINE 0 | ||
| 138 | +%define HAVE_LDBRX_INLINE 0 | ||
| 139 | +%define HAVE_POWER8_INLINE 0 | ||
| 140 | +%define HAVE_PPC4XX_INLINE 0 | ||
| 141 | +%define HAVE_VSX_INLINE 0 | ||
| 142 | +%define HAVE_AESNI_INLINE 1 | ||
| 143 | +%define HAVE_AMD3DNOW_INLINE 1 | ||
| 144 | +%define HAVE_AMD3DNOWEXT_INLINE 1 | ||
| 145 | +%define HAVE_AVX_INLINE 1 | ||
| 146 | +%define HAVE_AVX2_INLINE 1 | ||
| 147 | +%define HAVE_AVX512_INLINE 1 | ||
| 148 | +%define HAVE_FMA3_INLINE 1 | ||
| 149 | +%define HAVE_FMA4_INLINE 1 | ||
| 150 | +%define HAVE_MMX_INLINE 1 | ||
| 151 | +%define HAVE_MMXEXT_INLINE 1 | ||
| 152 | +%define HAVE_SSE_INLINE 1 | ||
| 153 | +%define HAVE_SSE2_INLINE 1 | ||
| 154 | +%define HAVE_SSE3_INLINE 1 | ||
| 155 | +%define HAVE_SSE4_INLINE 1 | ||
| 156 | +%define HAVE_SSE42_INLINE 1 | ||
| 157 | +%define HAVE_SSSE3_INLINE 1 | ||
| 158 | +%define HAVE_XOP_INLINE 1 | ||
| 159 | +%define HAVE_CPUNOP_INLINE 0 | ||
| 160 | +%define HAVE_I686_INLINE 0 | ||
| 161 | +%define HAVE_MIPSFPU_INLINE 0 | ||
| 162 | +%define HAVE_MIPS32R2_INLINE 0 | ||
| 163 | +%define HAVE_MIPS32R5_INLINE 0 | ||
| 164 | +%define HAVE_MIPS64R2_INLINE 0 | ||
| 165 | +%define HAVE_MIPS32R6_INLINE 0 | ||
| 166 | +%define HAVE_MIPS64R6_INLINE 0 | ||
| 167 | +%define HAVE_MIPSDSP_INLINE 0 | ||
| 168 | +%define HAVE_MIPSDSPR2_INLINE 0 | ||
| 169 | +%define HAVE_MSA_INLINE 0 | ||
| 170 | +%define HAVE_LOONGSON2_INLINE 0 | ||
| 171 | +%define HAVE_LOONGSON3_INLINE 0 | ||
| 172 | +%define HAVE_MMI_INLINE 0 | ||
| 173 | +%define HAVE_LSX_INLINE 0 | ||
| 174 | +%define HAVE_LASX_INLINE 0 | ||
| 175 | +%define HAVE_ALIGNED_STACK 1 | ||
| 176 | +%define HAVE_FAST_64BIT 1 | ||
| 177 | +%define HAVE_FAST_CLZ 1 | ||
| 178 | +%define HAVE_FAST_CMOV 1 | ||
| 179 | +%define HAVE_LOCAL_ALIGNED 1 | ||
| 180 | +%define HAVE_SIMD_ALIGN_16 1 | ||
| 181 | +%define HAVE_SIMD_ALIGN_32 1 | ||
| 182 | +%define HAVE_SIMD_ALIGN_64 1 | ||
| 183 | +%define HAVE_ATOMIC_CAS_PTR 0 | ||
| 184 | +%define HAVE_MACHINE_RW_BARRIER 0 | ||
| 185 | +%define HAVE_MEMORYBARRIER 0 | ||
| 186 | +%define HAVE_MM_EMPTY 1 | ||
| 187 | +%define HAVE_RDTSC 0 | ||
| 188 | +%define HAVE_SEM_TIMEDWAIT 1 | ||
| 189 | +%define HAVE_SYNC_VAL_COMPARE_AND_SWAP 1 | ||
| 190 | +%define HAVE_CABS 0 | ||
| 191 | +%define HAVE_CEXP 0 | ||
| 192 | +%define HAVE_INLINE_ASM 1 | ||
| 193 | +%define HAVE_SYMVER 0 | ||
| 194 | +%define HAVE_X86ASM 1 | ||
| 195 | +%define HAVE_BIGENDIAN 0 | ||
| 196 | +%define HAVE_FAST_UNALIGNED 1 | ||
| 197 | +%define HAVE_ARPA_INET_H 0 | ||
| 198 | +%define HAVE_ASM_TYPES_H 0 | ||
| 199 | +%define HAVE_CDIO_PARANOIA_H 0 | ||
| 200 | +%define HAVE_CDIO_PARANOIA_PARANOIA_H 0 | ||
| 201 | +%define HAVE_CUDA_H 0 | ||
| 202 | +%define HAVE_DISPATCH_DISPATCH_H 0 | ||
| 203 | +%define HAVE_DEV_BKTR_IOCTL_BT848_H 0 | ||
| 204 | +%define HAVE_DEV_BKTR_IOCTL_METEOR_H 0 | ||
| 205 | +%define HAVE_DEV_IC_BT8XX_H 1 | ||
| 206 | +%define HAVE_DEV_VIDEO_BKTR_IOCTL_BT848_H 0 | ||
| 207 | +%define HAVE_DEV_VIDEO_METEOR_IOCTL_METEOR_H 0 | ||
| 208 | +%define HAVE_DIRECT_H 0 | ||
| 209 | +%define HAVE_DIRENT_H 1 | ||
| 210 | +%define HAVE_DXGIDEBUG_H 0 | ||
| 211 | +%define HAVE_DXVA_H 0 | ||
| 212 | +%define HAVE_ES2_GL_H 0 | ||
| 213 | +%define HAVE_GSM_H 0 | ||
| 214 | +%define HAVE_IO_H 0 | ||
| 215 | +%define HAVE_LINUX_DMA_BUF_H 0 | ||
| 216 | +%define HAVE_LINUX_PERF_EVENT_H 0 | ||
| 217 | +%define HAVE_MACHINE_IOCTL_BT848_H 0 | ||
| 218 | +%define HAVE_MACHINE_IOCTL_METEOR_H 0 | ||
| 219 | +%define HAVE_MALLOC_H 0 | ||
| 220 | +%define HAVE_OPENCV2_CORE_CORE_C_H 0 | ||
| 221 | +%define HAVE_OPENGL_GL3_H 0 | ||
| 222 | +%define HAVE_POLL_H 1 | ||
| 223 | +%define HAVE_SYS_PARAM_H 1 | ||
| 224 | +%define HAVE_SYS_RESOURCE_H 1 | ||
| 225 | +%define HAVE_SYS_SELECT_H 1 | ||
| 226 | +%define HAVE_SYS_SOUNDCARD_H 0 | ||
| 227 | +%define HAVE_SYS_TIME_H 1 | ||
| 228 | +%define HAVE_SYS_UN_H 1 | ||
| 229 | +%define HAVE_SYS_VIDEOIO_H 1 | ||
| 230 | +%define HAVE_TERMIOS_H 1 | ||
| 231 | +%define HAVE_UDPLITE_H 0 | ||
| 232 | +%define HAVE_UNISTD_H 1 | ||
| 233 | +%define HAVE_VALGRIND_VALGRIND_H 0 | ||
| 234 | +%define HAVE_WINDOWS_H 0 | ||
| 235 | +%define HAVE_WINSOCK2_H 0 | ||
| 236 | +%define HAVE_INTRINSICS_NEON 0 | ||
| 237 | +%define HAVE_ATANF 1 | ||
| 238 | +%define HAVE_ATAN2F 1 | ||
| 239 | +%define HAVE_CBRT 1 | ||
| 240 | +%define HAVE_CBRTF 1 | ||
| 241 | +%define HAVE_COPYSIGN 1 | ||
| 242 | +%define HAVE_COSF 1 | ||
| 243 | +%define HAVE_ERF 1 | ||
| 244 | +%define HAVE_EXP2 1 | ||
| 245 | +%define HAVE_EXP2F 1 | ||
| 246 | +%define HAVE_EXPF 1 | ||
| 247 | +%define HAVE_HYPOT 1 | ||
| 248 | +%define HAVE_ISFINITE 1 | ||
| 249 | +%define HAVE_ISINF 1 | ||
| 250 | +%define HAVE_ISNAN 1 | ||
| 251 | +%define HAVE_LDEXPF 1 | ||
| 252 | +%define HAVE_LLRINT 1 | ||
| 253 | +%define HAVE_LLRINTF 1 | ||
| 254 | +%define HAVE_LOG2 1 | ||
| 255 | +%define HAVE_LOG2F 1 | ||
| 256 | +%define HAVE_LOG10F 1 | ||
| 257 | +%define HAVE_LRINT 1 | ||
| 258 | +%define HAVE_LRINTF 1 | ||
| 259 | +%define HAVE_POWF 1 | ||
| 260 | +%define HAVE_RINT 1 | ||
| 261 | +%define HAVE_ROUND 1 | ||
| 262 | +%define HAVE_ROUNDF 1 | ||
| 263 | +%define HAVE_SINF 1 | ||
| 264 | +%define HAVE_TRUNC 1 | ||
| 265 | +%define HAVE_TRUNCF 1 | ||
| 266 | +%define HAVE_DOS_PATHS 0 | ||
| 267 | +%define HAVE_LIBC_MSVCRT 0 | ||
| 268 | +%define HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS 0 | ||
| 269 | +%define HAVE_SECTION_DATA_REL_RO 1 | ||
| 270 | +%define HAVE_THREADS 1 | ||
| 271 | +%define HAVE_UWP 0 | ||
| 272 | +%define HAVE_WINRT 0 | ||
| 273 | +%define HAVE_ACCESS 1 | ||
| 274 | +%define HAVE_ALIGNED_MALLOC 0 | ||
| 275 | +%define HAVE_ARC4RANDOM 1 | ||
| 276 | +%define HAVE_CLOCK_GETTIME 1 | ||
| 277 | +%define HAVE_CLOSESOCKET 0 | ||
| 278 | +%define HAVE_COMMANDLINETOARGVW 0 | ||
| 279 | +%define HAVE_FCNTL 1 | ||
| 280 | +%define HAVE_GETADDRINFO 0 | ||
| 281 | +%define HAVE_GETHRTIME 0 | ||
| 282 | +%define HAVE_GETOPT 1 | ||
| 283 | +%define HAVE_GETMODULEHANDLE 0 | ||
| 284 | +%define HAVE_GETPROCESSAFFINITYMASK 0 | ||
| 285 | +%define HAVE_GETPROCESSMEMORYINFO 0 | ||
| 286 | +%define HAVE_GETPROCESSTIMES 0 | ||
| 287 | +%define HAVE_GETRUSAGE 1 | ||
| 288 | +%define HAVE_GETSTDHANDLE 0 | ||
| 289 | +%define HAVE_GETSYSTEMTIMEASFILETIME 0 | ||
| 290 | +%define HAVE_GETTIMEOFDAY 1 | ||
| 291 | +%define HAVE_GLOB 1 | ||
| 292 | +%define HAVE_GLXGETPROCADDRESS 0 | ||
| 293 | +%define HAVE_GMTIME_R 1 | ||
| 294 | +%define HAVE_INET_ATON 0 | ||
| 295 | +%define HAVE_ISATTY 1 | ||
| 296 | +%define HAVE_KBHIT 0 | ||
| 297 | +%define HAVE_LOCALTIME_R 1 | ||
| 298 | +%define HAVE_LSTAT 1 | ||
| 299 | +%define HAVE_LZO1X_999_COMPRESS 0 | ||
| 300 | +%define HAVE_MACH_ABSOLUTE_TIME 0 | ||
| 301 | +%define HAVE_MAPVIEWOFFILE 0 | ||
| 302 | +%define HAVE_MEMALIGN 0 | ||
| 303 | +%define HAVE_MKSTEMP 1 | ||
| 304 | +%define HAVE_MMAP 1 | ||
| 305 | +%define HAVE_MPROTECT 1 | ||
| 306 | +%define HAVE_NANOSLEEP 1 | ||
| 307 | +%define HAVE_PEEKNAMEDPIPE 0 | ||
| 308 | +%define HAVE_POSIX_MEMALIGN 1 | ||
| 309 | +%define HAVE_PTHREAD_CANCEL 1 | ||
| 310 | +%define HAVE_SCHED_GETAFFINITY 0 | ||
| 311 | +%define HAVE_SECITEMIMPORT 0 | ||
| 312 | +%define HAVE_SETCONSOLETEXTATTRIBUTE 0 | ||
| 313 | +%define HAVE_SETCONSOLECTRLHANDLER 0 | ||
| 314 | +%define HAVE_SETDLLDIRECTORY 0 | ||
| 315 | +%define HAVE_SETMODE 0 | ||
| 316 | +%define HAVE_SETRLIMIT 1 | ||
| 317 | +%define HAVE_SLEEP 0 | ||
| 318 | +%define HAVE_STRERROR_R 1 | ||
| 319 | +%define HAVE_SYSCONF 1 | ||
| 320 | +%define HAVE_SYSCTL 1 | ||
| 321 | +%define HAVE_USLEEP 1 | ||
| 322 | +%define HAVE_UTGETOSTYPEFROMSTRING 0 | ||
| 323 | +%define HAVE_VIRTUALALLOC 0 | ||
| 324 | +%define HAVE_WGLGETPROCADDRESS 0 | ||
| 325 | +%define HAVE_BCRYPT 0 | ||
| 326 | +%define HAVE_VAAPI_DRM 0 | ||
| 327 | +%define HAVE_VAAPI_X11 0 | ||
| 328 | +%define HAVE_VDPAU_X11 0 | ||
| 329 | +%define HAVE_PTHREADS 1 | ||
| 330 | +%define HAVE_OS2THREADS 0 | ||
| 331 | +%define HAVE_W32THREADS 0 | ||
| 332 | +%define HAVE_AS_ARCH_DIRECTIVE 0 | ||
| 333 | +%define HAVE_AS_DN_DIRECTIVE 0 | ||
| 334 | +%define HAVE_AS_FPU_DIRECTIVE 0 | ||
| 335 | +%define HAVE_AS_FUNC 0 | ||
| 336 | +%define HAVE_AS_OBJECT_ARCH 0 | ||
| 337 | +%define HAVE_ASM_MOD_Q 0 | ||
| 338 | +%define HAVE_BLOCKS_EXTENSION 0 | ||
| 339 | +%define HAVE_EBP_AVAILABLE 1 | ||
| 340 | +%define HAVE_EBX_AVAILABLE 1 | ||
| 341 | +%define HAVE_GNU_AS 0 | ||
| 342 | +%define HAVE_GNU_WINDRES 0 | ||
| 343 | +%define HAVE_IBM_ASM 0 | ||
| 344 | +%define HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS 0 | ||
| 345 | +%define HAVE_INLINE_ASM_LABELS 1 | ||
| 346 | +%define HAVE_INLINE_ASM_NONLOCAL_LABELS 1 | ||
| 347 | +%define HAVE_PRAGMA_DEPRECATED 1 | ||
| 348 | +%define HAVE_RSYNC_CONTIMEOUT 1 | ||
| 349 | +%define HAVE_SYMVER_ASM_LABEL 1 | ||
| 350 | +%define HAVE_SYMVER_GNU_ASM 1 | ||
| 351 | +%define HAVE_VFP_ARGS 0 | ||
| 352 | +%define HAVE_XFORM_ASM 0 | ||
| 353 | +%define HAVE_XMM_CLOBBERS 1 | ||
| 354 | +%define HAVE_KCMVIDEOCODECTYPE_HEVC 0 | ||
| 355 | +%define HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA 0 | ||
| 356 | +%define HAVE_KCMVIDEOCODECTYPE_VP9 0 | ||
| 357 | +%define HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 358 | +%define HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE 0 | ||
| 359 | +%define HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 360 | +%define HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE 0 | ||
| 361 | +%define HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE 0 | ||
| 362 | +%define HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 363 | +%define HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE 0 | ||
| 364 | +%define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ 0 | ||
| 365 | +%define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG 0 | ||
| 366 | +%define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_LINEAR 0 | ||
| 367 | +%define HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020 0 | ||
| 368 | +%define HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020 0 | ||
| 369 | +%define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020 0 | ||
| 370 | +%define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1 0 | ||
| 371 | +%define HAVE_SOCKLEN_T 0 | ||
| 372 | +%define HAVE_STRUCT_ADDRINFO 0 | ||
| 373 | +%define HAVE_STRUCT_GROUP_SOURCE_REQ 0 | ||
| 374 | +%define HAVE_STRUCT_IP_MREQ_SOURCE 0 | ||
| 375 | +%define HAVE_STRUCT_IPV6_MREQ 0 | ||
| 376 | +%define HAVE_STRUCT_MSGHDR_MSG_FLAGS 0 | ||
| 377 | +%define HAVE_STRUCT_POLLFD 0 | ||
| 378 | +%define HAVE_STRUCT_RUSAGE_RU_MAXRSS 1 | ||
| 379 | +%define HAVE_STRUCT_SCTP_EVENT_SUBSCRIBE 0 | ||
| 380 | +%define HAVE_STRUCT_SOCKADDR_IN6 0 | ||
| 381 | +%define HAVE_STRUCT_SOCKADDR_SA_LEN 0 | ||
| 382 | +%define HAVE_STRUCT_SOCKADDR_STORAGE 0 | ||
| 383 | +%define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | ||
| 384 | +%define HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE 1 | ||
| 385 | +%define HAVE_GZIP 1 | ||
| 386 | +%define HAVE_LIBDRM_GETFB2 0 | ||
| 387 | +%define HAVE_MAKEINFO 1 | ||
| 388 | +%define HAVE_MAKEINFO_HTML 0 | ||
| 389 | +%define HAVE_OPENCL_D3D11 0 | ||
| 390 | +%define HAVE_OPENCL_DRM_ARM 0 | ||
| 391 | +%define HAVE_OPENCL_DRM_BEIGNET 0 | ||
| 392 | +%define HAVE_OPENCL_DXVA2 0 | ||
| 393 | +%define HAVE_OPENCL_VAAPI_BEIGNET 0 | ||
| 394 | +%define HAVE_OPENCL_VAAPI_INTEL_MEDIA 0 | ||
| 395 | +%define HAVE_PERL 1 | ||
| 396 | +%define HAVE_POD2MAN 1 | ||
| 397 | +%define HAVE_TEXI2HTML 0 | ||
| 398 | +%define HAVE_XMLLINT 1 | ||
| 399 | +%define HAVE_ZLIB_GZIP 0 | ||
| 400 | +%define CONFIG_DOC 0 | ||
| 401 | +%define CONFIG_HTMLPAGES 0 | ||
| 402 | +%define CONFIG_MANPAGES 0 | ||
| 403 | +%define CONFIG_PODPAGES 0 | ||
| 404 | +%define CONFIG_TXTPAGES 0 | ||
| 405 | +%define CONFIG_AVIO_LIST_DIR_EXAMPLE 1 | ||
| 406 | +%define CONFIG_AVIO_READING_EXAMPLE 1 | ||
| 407 | +%define CONFIG_DECODE_AUDIO_EXAMPLE 1 | ||
| 408 | +%define CONFIG_DECODE_VIDEO_EXAMPLE 1 | ||
| 409 | +%define CONFIG_DEMUXING_DECODING_EXAMPLE 1 | ||
| 410 | +%define CONFIG_ENCODE_AUDIO_EXAMPLE 1 | ||
| 411 | +%define CONFIG_ENCODE_VIDEO_EXAMPLE 1 | ||
| 412 | +%define CONFIG_EXTRACT_MVS_EXAMPLE 1 | ||
| 413 | +%define CONFIG_FILTER_AUDIO_EXAMPLE 0 | ||
| 414 | +%define CONFIG_FILTERING_AUDIO_EXAMPLE 0 | ||
| 415 | +%define CONFIG_FILTERING_VIDEO_EXAMPLE 0 | ||
| 416 | +%define CONFIG_HTTP_MULTICLIENT_EXAMPLE 1 | ||
| 417 | +%define CONFIG_HW_DECODE_EXAMPLE 1 | ||
| 418 | +%define CONFIG_METADATA_EXAMPLE 1 | ||
| 419 | +%define CONFIG_MUXING_EXAMPLE 0 | ||
| 420 | +%define CONFIG_QSVDEC_EXAMPLE 0 | ||
| 421 | +%define CONFIG_REMUXING_EXAMPLE 1 | ||
| 422 | +%define CONFIG_RESAMPLING_AUDIO_EXAMPLE 0 | ||
| 423 | +%define CONFIG_SCALING_VIDEO_EXAMPLE 0 | ||
| 424 | +%define CONFIG_TRANSCODE_AAC_EXAMPLE 0 | ||
| 425 | +%define CONFIG_TRANSCODING_EXAMPLE 0 | ||
| 426 | +%define CONFIG_VAAPI_ENCODE_EXAMPLE 0 | ||
| 427 | +%define CONFIG_VAAPI_TRANSCODE_EXAMPLE 0 | ||
| 428 | +%define CONFIG_AVISYNTH 0 | ||
| 429 | +%define CONFIG_FREI0R 0 | ||
| 430 | +%define CONFIG_LIBCDIO 0 | ||
| 431 | +%define CONFIG_LIBDAVS2 0 | ||
| 432 | +%define CONFIG_LIBRUBBERBAND 0 | ||
| 433 | +%define CONFIG_LIBVIDSTAB 0 | ||
| 434 | +%define CONFIG_LIBX264 0 | ||
| 435 | +%define CONFIG_LIBX265 0 | ||
| 436 | +%define CONFIG_LIBXAVS 0 | ||
| 437 | +%define CONFIG_LIBXAVS2 0 | ||
| 438 | +%define CONFIG_LIBXVID 0 | ||
| 439 | +%define CONFIG_DECKLINK 0 | ||
| 440 | +%define CONFIG_LIBFDK_AAC 0 | ||
| 441 | +%define CONFIG_LIBTLS 0 | ||
| 442 | +%define CONFIG_GMP 0 | ||
| 443 | +%define CONFIG_LIBARIBB24 0 | ||
| 444 | +%define CONFIG_LIBLENSFUN 0 | ||
| 445 | +%define CONFIG_LIBOPENCORE_AMRNB 0 | ||
| 446 | +%define CONFIG_LIBOPENCORE_AMRWB 0 | ||
| 447 | +%define CONFIG_LIBVO_AMRWBENC 0 | ||
| 448 | +%define CONFIG_MBEDTLS 0 | ||
| 449 | +%define CONFIG_RKMPP 0 | ||
| 450 | +%define CONFIG_LIBSMBCLIENT 0 | ||
| 451 | +%define CONFIG_CHROMAPRINT 0 | ||
| 452 | +%define CONFIG_GCRYPT 0 | ||
| 453 | +%define CONFIG_GNUTLS 0 | ||
| 454 | +%define CONFIG_JNI 0 | ||
| 455 | +%define CONFIG_LADSPA 0 | ||
| 456 | +%define CONFIG_LIBAOM 0 | ||
| 457 | +%define CONFIG_LIBASS 0 | ||
| 458 | +%define CONFIG_LIBBLURAY 0 | ||
| 459 | +%define CONFIG_LIBBS2B 0 | ||
| 460 | +%define CONFIG_LIBCACA 0 | ||
| 461 | +%define CONFIG_LIBCELT 0 | ||
| 462 | +%define CONFIG_LIBCODEC2 0 | ||
| 463 | +%define CONFIG_LIBDAV1D 0 | ||
| 464 | +%define CONFIG_LIBDC1394 0 | ||
| 465 | +%define CONFIG_LIBDRM 0 | ||
| 466 | +%define CONFIG_LIBFLITE 0 | ||
| 467 | +%define CONFIG_LIBFONTCONFIG 0 | ||
| 468 | +%define CONFIG_LIBFREETYPE 0 | ||
| 469 | +%define CONFIG_LIBFRIBIDI 0 | ||
| 470 | +%define CONFIG_LIBGLSLANG 0 | ||
| 471 | +%define CONFIG_LIBGME 0 | ||
| 472 | +%define CONFIG_LIBGSM 0 | ||
| 473 | +%define CONFIG_LIBIEC61883 0 | ||
| 474 | +%define CONFIG_LIBILBC 0 | ||
| 475 | +%define CONFIG_LIBJACK 0 | ||
| 476 | +%define CONFIG_LIBKLVANC 0 | ||
| 477 | +%define CONFIG_LIBKVAZAAR 0 | ||
| 478 | +%define CONFIG_LIBMODPLUG 0 | ||
| 479 | +%define CONFIG_LIBMP3LAME 0 | ||
| 480 | +%define CONFIG_LIBMYSOFA 0 | ||
| 481 | +%define CONFIG_LIBOPENCV 0 | ||
| 482 | +%define CONFIG_LIBOPENH264 0 | ||
| 483 | +%define CONFIG_LIBOPENJPEG 0 | ||
| 484 | +%define CONFIG_LIBOPENMPT 0 | ||
| 485 | +%define CONFIG_LIBOPENVINO 0 | ||
| 486 | +%define CONFIG_LIBOPUS 1 | ||
| 487 | +%define CONFIG_LIBPLACEBO 0 | ||
| 488 | +%define CONFIG_LIBPULSE 0 | ||
| 489 | +%define CONFIG_LIBRABBITMQ 0 | ||
| 490 | +%define CONFIG_LIBRAV1E 0 | ||
| 491 | +%define CONFIG_LIBRIST 0 | ||
| 492 | +%define CONFIG_LIBRSVG 0 | ||
| 493 | +%define CONFIG_LIBRTMP 0 | ||
| 494 | +%define CONFIG_LIBSHADERC 0 | ||
| 495 | +%define CONFIG_LIBSHINE 0 | ||
| 496 | +%define CONFIG_LIBSMBCLIENT 0 | ||
| 497 | +%define CONFIG_LIBSNAPPY 0 | ||
| 498 | +%define CONFIG_LIBSOXR 0 | ||
| 499 | +%define CONFIG_LIBSPEEX 0 | ||
| 500 | +%define CONFIG_LIBSRT 0 | ||
| 501 | +%define CONFIG_LIBSSH 0 | ||
| 502 | +%define CONFIG_LIBSVTAV1 0 | ||
| 503 | +%define CONFIG_LIBTENSORFLOW 0 | ||
| 504 | +%define CONFIG_LIBTESSERACT 0 | ||
| 505 | +%define CONFIG_LIBTHEORA 0 | ||
| 506 | +%define CONFIG_LIBTWOLAME 0 | ||
| 507 | +%define CONFIG_LIBUAVS3D 0 | ||
| 508 | +%define CONFIG_LIBV4L2 0 | ||
| 509 | +%define CONFIG_LIBVMAF 0 | ||
| 510 | +%define CONFIG_LIBVORBIS 0 | ||
| 511 | +%define CONFIG_LIBVPX 0 | ||
| 512 | +%define CONFIG_LIBWEBP 0 | ||
| 513 | +%define CONFIG_LIBXML2 0 | ||
| 514 | +%define CONFIG_LIBZIMG 0 | ||
| 515 | +%define CONFIG_LIBZMQ 0 | ||
| 516 | +%define CONFIG_LIBZVBI 0 | ||
| 517 | +%define CONFIG_LV2 0 | ||
| 518 | +%define CONFIG_MEDIACODEC 0 | ||
| 519 | +%define CONFIG_OPENAL 0 | ||
| 520 | +%define CONFIG_OPENGL 0 | ||
| 521 | +%define CONFIG_OPENSSL 0 | ||
| 522 | +%define CONFIG_POCKETSPHINX 0 | ||
| 523 | +%define CONFIG_VAPOURSYNTH 0 | ||
| 524 | +%define CONFIG_ALSA 0 | ||
| 525 | +%define CONFIG_APPKIT 0 | ||
| 526 | +%define CONFIG_AVFOUNDATION 0 | ||
| 527 | +%define CONFIG_BZLIB 0 | ||
| 528 | +%define CONFIG_COREIMAGE 0 | ||
| 529 | +%define CONFIG_ICONV 0 | ||
| 530 | +%define CONFIG_LIBXCB 0 | ||
| 531 | +%define CONFIG_LIBXCB_SHM 0 | ||
| 532 | +%define CONFIG_LIBXCB_SHAPE 0 | ||
| 533 | +%define CONFIG_LIBXCB_XFIXES 0 | ||
| 534 | +%define CONFIG_LZMA 0 | ||
| 535 | +%define CONFIG_MEDIAFOUNDATION 0 | ||
| 536 | +%define CONFIG_METAL 0 | ||
| 537 | +%define CONFIG_SCHANNEL 0 | ||
| 538 | +%define CONFIG_SDL2 0 | ||
| 539 | +%define CONFIG_SECURETRANSPORT 0 | ||
| 540 | +%define CONFIG_SNDIO 0 | ||
| 541 | +%define CONFIG_XLIB 0 | ||
| 542 | +%define CONFIG_ZLIB 0 | ||
| 543 | +%define CONFIG_CUDA_NVCC 0 | ||
| 544 | +%define CONFIG_CUDA_SDK 0 | ||
| 545 | +%define CONFIG_LIBNPP 0 | ||
| 546 | +%define CONFIG_LIBMFX 0 | ||
| 547 | +%define CONFIG_MMAL 0 | ||
| 548 | +%define CONFIG_OMX 0 | ||
| 549 | +%define CONFIG_OPENCL 0 | ||
| 550 | +%define CONFIG_AMF 0 | ||
| 551 | +%define CONFIG_AUDIOTOOLBOX 0 | ||
| 552 | +%define CONFIG_CRYSTALHD 0 | ||
| 553 | +%define CONFIG_CUDA 0 | ||
| 554 | +%define CONFIG_CUDA_LLVM 0 | ||
| 555 | +%define CONFIG_CUVID 0 | ||
| 556 | +%define CONFIG_D3D11VA 0 | ||
| 557 | +%define CONFIG_DXVA2 0 | ||
| 558 | +%define CONFIG_FFNVCODEC 0 | ||
| 559 | +%define CONFIG_NVDEC 0 | ||
| 560 | +%define CONFIG_NVENC 0 | ||
| 561 | +%define CONFIG_VAAPI 0 | ||
| 562 | +%define CONFIG_VDPAU 0 | ||
| 563 | +%define CONFIG_VIDEOTOOLBOX 0 | ||
| 564 | +%define CONFIG_VULKAN 0 | ||
| 565 | +%define CONFIG_V4L2_M2M 0 | ||
| 566 | +%define CONFIG_XVMC 0 | ||
| 567 | +%define CONFIG_FTRAPV 0 | ||
| 568 | +%define CONFIG_GRAY 0 | ||
| 569 | +%define CONFIG_HARDCODED_TABLES 0 | ||
| 570 | +%define CONFIG_OMX_RPI 0 | ||
| 571 | +%define CONFIG_RUNTIME_CPUDETECT 1 | ||
| 572 | +%define CONFIG_SAFE_BITSTREAM_READER 1 | ||
| 573 | +%define CONFIG_SHARED 0 | ||
| 574 | +%define CONFIG_SMALL 0 | ||
| 575 | +%define CONFIG_STATIC 1 | ||
| 576 | +%define CONFIG_SWSCALE_ALPHA 1 | ||
| 577 | +%define CONFIG_GPL 0 | ||
| 578 | +%define CONFIG_NONFREE 0 | ||
| 579 | +%define CONFIG_VERSION3 0 | ||
| 580 | +%define CONFIG_AVDEVICE 0 | ||
| 581 | +%define CONFIG_AVFILTER 0 | ||
| 582 | +%define CONFIG_SWSCALE 0 | ||
| 583 | +%define CONFIG_POSTPROC 0 | ||
| 584 | +%define CONFIG_AVFORMAT 1 | ||
| 585 | +%define CONFIG_AVCODEC 1 | ||
| 586 | +%define CONFIG_SWRESAMPLE 0 | ||
| 587 | +%define CONFIG_AVUTIL 1 | ||
| 588 | +%define CONFIG_FFPLAY 0 | ||
| 589 | +%define CONFIG_FFPROBE 0 | ||
| 590 | +%define CONFIG_FFMPEG 0 | ||
| 591 | +%define CONFIG_DCT 1 | ||
| 592 | +%define CONFIG_DWT 0 | ||
| 593 | +%define CONFIG_ERROR_RESILIENCE 0 | ||
| 594 | +%define CONFIG_FAAN 0 | ||
| 595 | +%define CONFIG_FAST_UNALIGNED 1 | ||
| 596 | +%define CONFIG_FFT 1 | ||
| 597 | +%define CONFIG_LSP 0 | ||
| 598 | +%define CONFIG_LZO 0 | ||
| 599 | +%define CONFIG_MDCT 1 | ||
| 600 | +%define CONFIG_PIXELUTILS 0 | ||
| 601 | +%define CONFIG_NETWORK 0 | ||
| 602 | +%define CONFIG_RDFT 1 | ||
| 603 | +%define CONFIG_AUTODETECT 0 | ||
| 604 | +%define CONFIG_FONTCONFIG 0 | ||
| 605 | +%define CONFIG_LARGE_TESTS 1 | ||
| 606 | +%define CONFIG_LINUX_PERF 0 | ||
| 607 | +%define CONFIG_MACOS_KPERF 0 | ||
| 608 | +%define CONFIG_MEMORY_POISONING 0 | ||
| 609 | +%define CONFIG_NEON_CLOBBER_TEST 0 | ||
| 610 | +%define CONFIG_OSSFUZZ 0 | ||
| 611 | +%define CONFIG_PIC 1 | ||
| 612 | +%define CONFIG_PTX_COMPRESSION 0 | ||
| 613 | +%define CONFIG_THUMB 0 | ||
| 614 | +%define CONFIG_VALGRIND_BACKTRACE 0 | ||
| 615 | +%define CONFIG_XMM_CLOBBER_TEST 0 | ||
| 616 | +%define CONFIG_BSFS 0 | ||
| 617 | +%define CONFIG_DECODERS 1 | ||
| 618 | +%define CONFIG_ENCODERS 0 | ||
| 619 | +%define CONFIG_HWACCELS 0 | ||
| 620 | +%define CONFIG_PARSERS 1 | ||
| 621 | +%define CONFIG_INDEVS 0 | ||
| 622 | +%define CONFIG_OUTDEVS 0 | ||
| 623 | +%define CONFIG_FILTERS 0 | ||
| 624 | +%define CONFIG_DEMUXERS 1 | ||
| 625 | +%define CONFIG_MUXERS 0 | ||
| 626 | +%define CONFIG_PROTOCOLS 0 | ||
| 627 | +%define CONFIG_AANDCTTABLES 0 | ||
| 628 | +%define CONFIG_AC3DSP 0 | ||
| 629 | +%define CONFIG_ADTS_HEADER 1 | ||
| 630 | +%define CONFIG_ATSC_A53 1 | ||
| 631 | +%define CONFIG_AUDIO_FRAME_QUEUE 0 | ||
| 632 | +%define CONFIG_AUDIODSP 0 | ||
| 633 | +%define CONFIG_BLOCKDSP 0 | ||
| 634 | +%define CONFIG_BSWAPDSP 0 | ||
| 635 | +%define CONFIG_CABAC 1 | ||
| 636 | +%define CONFIG_CBS 0 | ||
| 637 | +%define CONFIG_CBS_AV1 0 | ||
| 638 | +%define CONFIG_CBS_H264 0 | ||
| 639 | +%define CONFIG_CBS_H265 0 | ||
| 640 | +%define CONFIG_CBS_JPEG 0 | ||
| 641 | +%define CONFIG_CBS_MPEG2 0 | ||
| 642 | +%define CONFIG_CBS_VP9 0 | ||
| 643 | +%define CONFIG_DIRAC_PARSE 1 | ||
| 644 | +%define CONFIG_DNN 0 | ||
| 645 | +%define CONFIG_DOVI_RPU 0 | ||
| 646 | +%define CONFIG_DVPROFILE 0 | ||
| 647 | +%define CONFIG_EXIF 0 | ||
| 648 | +%define CONFIG_FAANDCT 0 | ||
| 649 | +%define CONFIG_FAANIDCT 0 | ||
| 650 | +%define CONFIG_FDCTDSP 0 | ||
| 651 | +%define CONFIG_FLACDSP 1 | ||
| 652 | +%define CONFIG_FMTCONVERT 0 | ||
| 653 | +%define CONFIG_FRAME_THREAD_ENCODER 0 | ||
| 654 | +%define CONFIG_G722DSP 0 | ||
| 655 | +%define CONFIG_GOLOMB 1 | ||
| 656 | +%define CONFIG_GPLV3 0 | ||
| 657 | +%define CONFIG_H263DSP 0 | ||
| 658 | +%define CONFIG_H264CHROMA 1 | ||
| 659 | +%define CONFIG_H264DSP 1 | ||
| 660 | +%define CONFIG_H264PARSE 1 | ||
| 661 | +%define CONFIG_H264PRED 1 | ||
| 662 | +%define CONFIG_H264QPEL 1 | ||
| 663 | +%define CONFIG_HEVCPARSE 0 | ||
| 664 | +%define CONFIG_HPELDSP 1 | ||
| 665 | +%define CONFIG_HUFFMAN 0 | ||
| 666 | +%define CONFIG_HUFFYUVDSP 0 | ||
| 667 | +%define CONFIG_HUFFYUVENCDSP 0 | ||
| 668 | +%define CONFIG_IDCTDSP 0 | ||
| 669 | +%define CONFIG_IIRFILTER 0 | ||
| 670 | +%define CONFIG_MDCT15 1 | ||
| 671 | +%define CONFIG_INTRAX8 0 | ||
| 672 | +%define CONFIG_ISO_MEDIA 1 | ||
| 673 | +%define CONFIG_IVIDSP 0 | ||
| 674 | +%define CONFIG_JPEGTABLES 0 | ||
| 675 | +%define CONFIG_LGPLV3 0 | ||
| 676 | +%define CONFIG_LIBX262 0 | ||
| 677 | +%define CONFIG_LLAUDDSP 0 | ||
| 678 | +%define CONFIG_LLVIDDSP 0 | ||
| 679 | +%define CONFIG_LLVIDENCDSP 0 | ||
| 680 | +%define CONFIG_LPC 0 | ||
| 681 | +%define CONFIG_LZF 0 | ||
| 682 | +%define CONFIG_ME_CMP 0 | ||
| 683 | +%define CONFIG_MPEG_ER 0 | ||
| 684 | +%define CONFIG_MPEGAUDIO 1 | ||
| 685 | +%define CONFIG_MPEGAUDIODSP 1 | ||
| 686 | +%define CONFIG_MPEGAUDIOHEADER 1 | ||
| 687 | +%define CONFIG_MPEG4AUDIO 1 | ||
| 688 | +%define CONFIG_MPEGVIDEO 0 | ||
| 689 | +%define CONFIG_MPEGVIDEODEC 0 | ||
| 690 | +%define CONFIG_MPEGVIDEOENC 0 | ||
| 691 | +%define CONFIG_MSS34DSP 0 | ||
| 692 | +%define CONFIG_PIXBLOCKDSP 0 | ||
| 693 | +%define CONFIG_QPELDSP 0 | ||
| 694 | +%define CONFIG_QSV 0 | ||
| 695 | +%define CONFIG_QSVDEC 0 | ||
| 696 | +%define CONFIG_QSVENC 0 | ||
| 697 | +%define CONFIG_QSVVPP 0 | ||
| 698 | +%define CONFIG_RANGECODER 0 | ||
| 699 | +%define CONFIG_RIFFDEC 1 | ||
| 700 | +%define CONFIG_RIFFENC 0 | ||
| 701 | +%define CONFIG_RTPDEC 0 | ||
| 702 | +%define CONFIG_RTPENC_CHAIN 0 | ||
| 703 | +%define CONFIG_RV34DSP 0 | ||
| 704 | +%define CONFIG_SCENE_SAD 0 | ||
| 705 | +%define CONFIG_SINEWIN 1 | ||
| 706 | +%define CONFIG_SNAPPY 0 | ||
| 707 | +%define CONFIG_SRTP 0 | ||
| 708 | +%define CONFIG_STARTCODE 1 | ||
| 709 | +%define CONFIG_TEXTUREDSP 0 | ||
| 710 | +%define CONFIG_TEXTUREDSPENC 0 | ||
| 711 | +%define CONFIG_TPELDSP 0 | ||
| 712 | +%define CONFIG_VAAPI_1 0 | ||
| 713 | +%define CONFIG_VAAPI_ENCODE 0 | ||
| 714 | +%define CONFIG_VC1DSP 0 | ||
| 715 | +%define CONFIG_VIDEODSP 1 | ||
| 716 | +%define CONFIG_VP3DSP 1 | ||
| 717 | +%define CONFIG_VP56DSP 0 | ||
| 718 | +%define CONFIG_VP8DSP 1 | ||
| 719 | +%define CONFIG_WMA_FREQS 0 | ||
| 720 | +%define CONFIG_WMV2DSP 0 | ||
| 721 | +%define CONFIG_AAC_ADTSTOASC_BSF 0 | ||
| 722 | +%define CONFIG_AV1_FRAME_MERGE_BSF 0 | ||
| 723 | +%define CONFIG_AV1_FRAME_SPLIT_BSF 0 | ||
| 724 | +%define CONFIG_AV1_METADATA_BSF 0 | ||
| 725 | +%define CONFIG_CHOMP_BSF 0 | ||
| 726 | +%define CONFIG_DUMP_EXTRADATA_BSF 0 | ||
| 727 | +%define CONFIG_DCA_CORE_BSF 0 | ||
| 728 | +%define CONFIG_EAC3_CORE_BSF 0 | ||
| 729 | +%define CONFIG_EXTRACT_EXTRADATA_BSF 0 | ||
| 730 | +%define CONFIG_FILTER_UNITS_BSF 0 | ||
| 731 | +%define CONFIG_H264_METADATA_BSF 0 | ||
| 732 | +%define CONFIG_H264_MP4TOANNEXB_BSF 0 | ||
| 733 | +%define CONFIG_H264_REDUNDANT_PPS_BSF 0 | ||
| 734 | +%define CONFIG_HAPQA_EXTRACT_BSF 0 | ||
| 735 | +%define CONFIG_HEVC_METADATA_BSF 0 | ||
| 736 | +%define CONFIG_HEVC_MP4TOANNEXB_BSF 0 | ||
| 737 | +%define CONFIG_IMX_DUMP_HEADER_BSF 0 | ||
| 738 | +%define CONFIG_MJPEG2JPEG_BSF 0 | ||
| 739 | +%define CONFIG_MJPEGA_DUMP_HEADER_BSF 0 | ||
| 740 | +%define CONFIG_MP3_HEADER_DECOMPRESS_BSF 0 | ||
| 741 | +%define CONFIG_MPEG2_METADATA_BSF 0 | ||
| 742 | +%define CONFIG_MPEG4_UNPACK_BFRAMES_BSF 0 | ||
| 743 | +%define CONFIG_MOV2TEXTSUB_BSF 0 | ||
| 744 | +%define CONFIG_NOISE_BSF 0 | ||
| 745 | +%define CONFIG_NULL_BSF 0 | ||
| 746 | +%define CONFIG_OPUS_METADATA_BSF 0 | ||
| 747 | +%define CONFIG_PCM_RECHUNK_BSF 0 | ||
| 748 | +%define CONFIG_PRORES_METADATA_BSF 0 | ||
| 749 | +%define CONFIG_REMOVE_EXTRADATA_BSF 0 | ||
| 750 | +%define CONFIG_SETTS_BSF 0 | ||
| 751 | +%define CONFIG_TEXT2MOVSUB_BSF 0 | ||
| 752 | +%define CONFIG_TRACE_HEADERS_BSF 0 | ||
| 753 | +%define CONFIG_TRUEHD_CORE_BSF 0 | ||
| 754 | +%define CONFIG_VP9_METADATA_BSF 0 | ||
| 755 | +%define CONFIG_VP9_RAW_REORDER_BSF 0 | ||
| 756 | +%define CONFIG_VP9_SUPERFRAME_BSF 0 | ||
| 757 | +%define CONFIG_VP9_SUPERFRAME_SPLIT_BSF 0 | ||
| 758 | +%define CONFIG_AASC_DECODER 0 | ||
| 759 | +%define CONFIG_AIC_DECODER 0 | ||
| 760 | +%define CONFIG_ALIAS_PIX_DECODER 0 | ||
| 761 | +%define CONFIG_AGM_DECODER 0 | ||
| 762 | +%define CONFIG_AMV_DECODER 0 | ||
| 763 | +%define CONFIG_ANM_DECODER 0 | ||
| 764 | +%define CONFIG_ANSI_DECODER 0 | ||
| 765 | +%define CONFIG_APNG_DECODER 0 | ||
| 766 | +%define CONFIG_ARBC_DECODER 0 | ||
| 767 | +%define CONFIG_ARGO_DECODER 0 | ||
| 768 | +%define CONFIG_ASV1_DECODER 0 | ||
| 769 | +%define CONFIG_ASV2_DECODER 0 | ||
| 770 | +%define CONFIG_AURA_DECODER 0 | ||
| 771 | +%define CONFIG_AURA2_DECODER 0 | ||
| 772 | +%define CONFIG_AVRP_DECODER 0 | ||
| 773 | +%define CONFIG_AVRN_DECODER 0 | ||
| 774 | +%define CONFIG_AVS_DECODER 0 | ||
| 775 | +%define CONFIG_AVUI_DECODER 0 | ||
| 776 | +%define CONFIG_AYUV_DECODER 0 | ||
| 777 | +%define CONFIG_BETHSOFTVID_DECODER 0 | ||
| 778 | +%define CONFIG_BFI_DECODER 0 | ||
| 779 | +%define CONFIG_BINK_DECODER 0 | ||
| 780 | +%define CONFIG_BITPACKED_DECODER 0 | ||
| 781 | +%define CONFIG_BMP_DECODER 0 | ||
| 782 | +%define CONFIG_BMV_VIDEO_DECODER 0 | ||
| 783 | +%define CONFIG_BRENDER_PIX_DECODER 0 | ||
| 784 | +%define CONFIG_C93_DECODER 0 | ||
| 785 | +%define CONFIG_CAVS_DECODER 0 | ||
| 786 | +%define CONFIG_CDGRAPHICS_DECODER 0 | ||
| 787 | +%define CONFIG_CDTOONS_DECODER 0 | ||
| 788 | +%define CONFIG_CDXL_DECODER 0 | ||
| 789 | +%define CONFIG_CFHD_DECODER 0 | ||
| 790 | +%define CONFIG_CINEPAK_DECODER 0 | ||
| 791 | +%define CONFIG_CLEARVIDEO_DECODER 0 | ||
| 792 | +%define CONFIG_CLJR_DECODER 0 | ||
| 793 | +%define CONFIG_CLLC_DECODER 0 | ||
| 794 | +%define CONFIG_COMFORTNOISE_DECODER 0 | ||
| 795 | +%define CONFIG_CPIA_DECODER 0 | ||
| 796 | +%define CONFIG_CRI_DECODER 0 | ||
| 797 | +%define CONFIG_CSCD_DECODER 0 | ||
| 798 | +%define CONFIG_CYUV_DECODER 0 | ||
| 799 | +%define CONFIG_DDS_DECODER 0 | ||
| 800 | +%define CONFIG_DFA_DECODER 0 | ||
| 801 | +%define CONFIG_DIRAC_DECODER 0 | ||
| 802 | +%define CONFIG_DNXHD_DECODER 0 | ||
| 803 | +%define CONFIG_DPX_DECODER 0 | ||
| 804 | +%define CONFIG_DSICINVIDEO_DECODER 0 | ||
| 805 | +%define CONFIG_DVAUDIO_DECODER 0 | ||
| 806 | +%define CONFIG_DVVIDEO_DECODER 0 | ||
| 807 | +%define CONFIG_DXA_DECODER 0 | ||
| 808 | +%define CONFIG_DXTORY_DECODER 0 | ||
| 809 | +%define CONFIG_DXV_DECODER 0 | ||
| 810 | +%define CONFIG_EACMV_DECODER 0 | ||
| 811 | +%define CONFIG_EAMAD_DECODER 0 | ||
| 812 | +%define CONFIG_EATGQ_DECODER 0 | ||
| 813 | +%define CONFIG_EATGV_DECODER 0 | ||
| 814 | +%define CONFIG_EATQI_DECODER 0 | ||
| 815 | +%define CONFIG_EIGHTBPS_DECODER 0 | ||
| 816 | +%define CONFIG_EIGHTSVX_EXP_DECODER 0 | ||
| 817 | +%define CONFIG_EIGHTSVX_FIB_DECODER 0 | ||
| 818 | +%define CONFIG_ESCAPE124_DECODER 0 | ||
| 819 | +%define CONFIG_ESCAPE130_DECODER 0 | ||
| 820 | +%define CONFIG_EXR_DECODER 0 | ||
| 821 | +%define CONFIG_FFV1_DECODER 0 | ||
| 822 | +%define CONFIG_FFVHUFF_DECODER 0 | ||
| 823 | +%define CONFIG_FIC_DECODER 0 | ||
| 824 | +%define CONFIG_FITS_DECODER 0 | ||
| 825 | +%define CONFIG_FLASHSV_DECODER 0 | ||
| 826 | +%define CONFIG_FLASHSV2_DECODER 0 | ||
| 827 | +%define CONFIG_FLIC_DECODER 0 | ||
| 828 | +%define CONFIG_FLV_DECODER 0 | ||
| 829 | +%define CONFIG_FMVC_DECODER 0 | ||
| 830 | +%define CONFIG_FOURXM_DECODER 0 | ||
| 831 | +%define CONFIG_FRAPS_DECODER 0 | ||
| 832 | +%define CONFIG_FRWU_DECODER 0 | ||
| 833 | +%define CONFIG_G2M_DECODER 0 | ||
| 834 | +%define CONFIG_GDV_DECODER 0 | ||
| 835 | +%define CONFIG_GEM_DECODER 0 | ||
| 836 | +%define CONFIG_GIF_DECODER 0 | ||
| 837 | +%define CONFIG_H261_DECODER 0 | ||
| 838 | +%define CONFIG_H263_DECODER 0 | ||
| 839 | +%define CONFIG_H263I_DECODER 0 | ||
| 840 | +%define CONFIG_H263P_DECODER 0 | ||
| 841 | +%define CONFIG_H263_V4L2M2M_DECODER 0 | ||
| 842 | +%define CONFIG_H264_DECODER 1 | ||
| 843 | +%define CONFIG_H264_CRYSTALHD_DECODER 0 | ||
| 844 | +%define CONFIG_H264_V4L2M2M_DECODER 0 | ||
| 845 | +%define CONFIG_H264_MEDIACODEC_DECODER 0 | ||
| 846 | +%define CONFIG_H264_MMAL_DECODER 0 | ||
| 847 | +%define CONFIG_H264_QSV_DECODER 0 | ||
| 848 | +%define CONFIG_H264_RKMPP_DECODER 0 | ||
| 849 | +%define CONFIG_HAP_DECODER 0 | ||
| 850 | +%define CONFIG_HEVC_DECODER 0 | ||
| 851 | +%define CONFIG_HEVC_QSV_DECODER 0 | ||
| 852 | +%define CONFIG_HEVC_RKMPP_DECODER 0 | ||
| 853 | +%define CONFIG_HEVC_V4L2M2M_DECODER 0 | ||
| 854 | +%define CONFIG_HNM4_VIDEO_DECODER 0 | ||
| 855 | +%define CONFIG_HQ_HQA_DECODER 0 | ||
| 856 | +%define CONFIG_HQX_DECODER 0 | ||
| 857 | +%define CONFIG_HUFFYUV_DECODER 0 | ||
| 858 | +%define CONFIG_HYMT_DECODER 0 | ||
| 859 | +%define CONFIG_IDCIN_DECODER 0 | ||
| 860 | +%define CONFIG_IFF_ILBM_DECODER 0 | ||
| 861 | +%define CONFIG_IMM4_DECODER 0 | ||
| 862 | +%define CONFIG_IMM5_DECODER 0 | ||
| 863 | +%define CONFIG_INDEO2_DECODER 0 | ||
| 864 | +%define CONFIG_INDEO3_DECODER 0 | ||
| 865 | +%define CONFIG_INDEO4_DECODER 0 | ||
| 866 | +%define CONFIG_INDEO5_DECODER 0 | ||
| 867 | +%define CONFIG_INTERPLAY_VIDEO_DECODER 0 | ||
| 868 | +%define CONFIG_IPU_DECODER 0 | ||
| 869 | +%define CONFIG_JPEG2000_DECODER 0 | ||
| 870 | +%define CONFIG_JPEGLS_DECODER 0 | ||
| 871 | +%define CONFIG_JV_DECODER 0 | ||
| 872 | +%define CONFIG_KGV1_DECODER 0 | ||
| 873 | +%define CONFIG_KMVC_DECODER 0 | ||
| 874 | +%define CONFIG_LAGARITH_DECODER 0 | ||
| 875 | +%define CONFIG_LOCO_DECODER 0 | ||
| 876 | +%define CONFIG_LSCR_DECODER 0 | ||
| 877 | +%define CONFIG_M101_DECODER 0 | ||
| 878 | +%define CONFIG_MAGICYUV_DECODER 0 | ||
| 879 | +%define CONFIG_MDEC_DECODER 0 | ||
| 880 | +%define CONFIG_MIMIC_DECODER 0 | ||
| 881 | +%define CONFIG_MJPEG_DECODER 0 | ||
| 882 | +%define CONFIG_MJPEGB_DECODER 0 | ||
| 883 | +%define CONFIG_MMVIDEO_DECODER 0 | ||
| 884 | +%define CONFIG_MOBICLIP_DECODER 0 | ||
| 885 | +%define CONFIG_MOTIONPIXELS_DECODER 0 | ||
| 886 | +%define CONFIG_MPEG1VIDEO_DECODER 0 | ||
| 887 | +%define CONFIG_MPEG2VIDEO_DECODER 0 | ||
| 888 | +%define CONFIG_MPEG4_DECODER 0 | ||
| 889 | +%define CONFIG_MPEG4_CRYSTALHD_DECODER 0 | ||
| 890 | +%define CONFIG_MPEG4_V4L2M2M_DECODER 0 | ||
| 891 | +%define CONFIG_MPEG4_MMAL_DECODER 0 | ||
| 892 | +%define CONFIG_MPEGVIDEO_DECODER 0 | ||
| 893 | +%define CONFIG_MPEG1_V4L2M2M_DECODER 0 | ||
| 894 | +%define CONFIG_MPEG2_MMAL_DECODER 0 | ||
| 895 | +%define CONFIG_MPEG2_CRYSTALHD_DECODER 0 | ||
| 896 | +%define CONFIG_MPEG2_V4L2M2M_DECODER 0 | ||
| 897 | +%define CONFIG_MPEG2_QSV_DECODER 0 | ||
| 898 | +%define CONFIG_MPEG2_MEDIACODEC_DECODER 0 | ||
| 899 | +%define CONFIG_MSA1_DECODER 0 | ||
| 900 | +%define CONFIG_MSCC_DECODER 0 | ||
| 901 | +%define CONFIG_MSMPEG4V1_DECODER 0 | ||
| 902 | +%define CONFIG_MSMPEG4V2_DECODER 0 | ||
| 903 | +%define CONFIG_MSMPEG4V3_DECODER 0 | ||
| 904 | +%define CONFIG_MSMPEG4_CRYSTALHD_DECODER 0 | ||
| 905 | +%define CONFIG_MSP2_DECODER 0 | ||
| 906 | +%define CONFIG_MSRLE_DECODER 0 | ||
| 907 | +%define CONFIG_MSS1_DECODER 0 | ||
| 908 | +%define CONFIG_MSS2_DECODER 0 | ||
| 909 | +%define CONFIG_MSVIDEO1_DECODER 0 | ||
| 910 | +%define CONFIG_MSZH_DECODER 0 | ||
| 911 | +%define CONFIG_MTS2_DECODER 0 | ||
| 912 | +%define CONFIG_MV30_DECODER 0 | ||
| 913 | +%define CONFIG_MVC1_DECODER 0 | ||
| 914 | +%define CONFIG_MVC2_DECODER 0 | ||
| 915 | +%define CONFIG_MVDV_DECODER 0 | ||
| 916 | +%define CONFIG_MVHA_DECODER 0 | ||
| 917 | +%define CONFIG_MWSC_DECODER 0 | ||
| 918 | +%define CONFIG_MXPEG_DECODER 0 | ||
| 919 | +%define CONFIG_NOTCHLC_DECODER 0 | ||
| 920 | +%define CONFIG_NUV_DECODER 0 | ||
| 921 | +%define CONFIG_PAF_VIDEO_DECODER 0 | ||
| 922 | +%define CONFIG_PAM_DECODER 0 | ||
| 923 | +%define CONFIG_PBM_DECODER 0 | ||
| 924 | +%define CONFIG_PCX_DECODER 0 | ||
| 925 | +%define CONFIG_PFM_DECODER 0 | ||
| 926 | +%define CONFIG_PGM_DECODER 0 | ||
| 927 | +%define CONFIG_PGMYUV_DECODER 0 | ||
| 928 | +%define CONFIG_PGX_DECODER 0 | ||
| 929 | +%define CONFIG_PHOTOCD_DECODER 0 | ||
| 930 | +%define CONFIG_PICTOR_DECODER 0 | ||
| 931 | +%define CONFIG_PIXLET_DECODER 0 | ||
| 932 | +%define CONFIG_PNG_DECODER 0 | ||
| 933 | +%define CONFIG_PPM_DECODER 0 | ||
| 934 | +%define CONFIG_PRORES_DECODER 0 | ||
| 935 | +%define CONFIG_PROSUMER_DECODER 0 | ||
| 936 | +%define CONFIG_PSD_DECODER 0 | ||
| 937 | +%define CONFIG_PTX_DECODER 0 | ||
| 938 | +%define CONFIG_QDRAW_DECODER 0 | ||
| 939 | +%define CONFIG_QPEG_DECODER 0 | ||
| 940 | +%define CONFIG_QTRLE_DECODER 0 | ||
| 941 | +%define CONFIG_R10K_DECODER 0 | ||
| 942 | +%define CONFIG_R210_DECODER 0 | ||
| 943 | +%define CONFIG_RASC_DECODER 0 | ||
| 944 | +%define CONFIG_RAWVIDEO_DECODER 0 | ||
| 945 | +%define CONFIG_RL2_DECODER 0 | ||
| 946 | +%define CONFIG_ROQ_DECODER 0 | ||
| 947 | +%define CONFIG_RPZA_DECODER 0 | ||
| 948 | +%define CONFIG_RSCC_DECODER 0 | ||
| 949 | +%define CONFIG_RV10_DECODER 0 | ||
| 950 | +%define CONFIG_RV20_DECODER 0 | ||
| 951 | +%define CONFIG_RV30_DECODER 0 | ||
| 952 | +%define CONFIG_RV40_DECODER 0 | ||
| 953 | +%define CONFIG_S302M_DECODER 0 | ||
| 954 | +%define CONFIG_SANM_DECODER 0 | ||
| 955 | +%define CONFIG_SCPR_DECODER 0 | ||
| 956 | +%define CONFIG_SCREENPRESSO_DECODER 0 | ||
| 957 | +%define CONFIG_SGA_DECODER 0 | ||
| 958 | +%define CONFIG_SGI_DECODER 0 | ||
| 959 | +%define CONFIG_SGIRLE_DECODER 0 | ||
| 960 | +%define CONFIG_SHEERVIDEO_DECODER 0 | ||
| 961 | +%define CONFIG_SIMBIOSIS_IMX_DECODER 0 | ||
| 962 | +%define CONFIG_SMACKER_DECODER 0 | ||
| 963 | +%define CONFIG_SMC_DECODER 0 | ||
| 964 | +%define CONFIG_SMVJPEG_DECODER 0 | ||
| 965 | +%define CONFIG_SNOW_DECODER 0 | ||
| 966 | +%define CONFIG_SP5X_DECODER 0 | ||
| 967 | +%define CONFIG_SPEEDHQ_DECODER 0 | ||
| 968 | +%define CONFIG_SPEEX_DECODER 0 | ||
| 969 | +%define CONFIG_SRGC_DECODER 0 | ||
| 970 | +%define CONFIG_SUNRAST_DECODER 0 | ||
| 971 | +%define CONFIG_SVQ1_DECODER 0 | ||
| 972 | +%define CONFIG_SVQ3_DECODER 0 | ||
| 973 | +%define CONFIG_TARGA_DECODER 0 | ||
| 974 | +%define CONFIG_TARGA_Y216_DECODER 0 | ||
| 975 | +%define CONFIG_TDSC_DECODER 0 | ||
| 976 | +%define CONFIG_THEORA_DECODER 1 | ||
| 977 | +%define CONFIG_THP_DECODER 0 | ||
| 978 | +%define CONFIG_TIERTEXSEQVIDEO_DECODER 0 | ||
| 979 | +%define CONFIG_TIFF_DECODER 0 | ||
| 980 | +%define CONFIG_TMV_DECODER 0 | ||
| 981 | +%define CONFIG_TRUEMOTION1_DECODER 0 | ||
| 982 | +%define CONFIG_TRUEMOTION2_DECODER 0 | ||
| 983 | +%define CONFIG_TRUEMOTION2RT_DECODER 0 | ||
| 984 | +%define CONFIG_TSCC_DECODER 0 | ||
| 985 | +%define CONFIG_TSCC2_DECODER 0 | ||
| 986 | +%define CONFIG_TXD_DECODER 0 | ||
| 987 | +%define CONFIG_ULTI_DECODER 0 | ||
| 988 | +%define CONFIG_UTVIDEO_DECODER 0 | ||
| 989 | +%define CONFIG_V210_DECODER 0 | ||
| 990 | +%define CONFIG_V210X_DECODER 0 | ||
| 991 | +%define CONFIG_V308_DECODER 0 | ||
| 992 | +%define CONFIG_V408_DECODER 0 | ||
| 993 | +%define CONFIG_V410_DECODER 0 | ||
| 994 | +%define CONFIG_VB_DECODER 0 | ||
| 995 | +%define CONFIG_VBLE_DECODER 0 | ||
| 996 | +%define CONFIG_VC1_DECODER 0 | ||
| 997 | +%define CONFIG_VC1_CRYSTALHD_DECODER 0 | ||
| 998 | +%define CONFIG_VC1IMAGE_DECODER 0 | ||
| 999 | +%define CONFIG_VC1_MMAL_DECODER 0 | ||
| 1000 | +%define CONFIG_VC1_QSV_DECODER 0 | ||
| 1001 | +%define CONFIG_VC1_V4L2M2M_DECODER 0 | ||
| 1002 | +%define CONFIG_VCR1_DECODER 0 | ||
| 1003 | +%define CONFIG_VMDVIDEO_DECODER 0 | ||
| 1004 | +%define CONFIG_VMNC_DECODER 0 | ||
| 1005 | +%define CONFIG_VP3_DECODER 1 | ||
| 1006 | +%define CONFIG_VP4_DECODER 0 | ||
| 1007 | +%define CONFIG_VP5_DECODER 0 | ||
| 1008 | +%define CONFIG_VP6_DECODER 0 | ||
| 1009 | +%define CONFIG_VP6A_DECODER 0 | ||
| 1010 | +%define CONFIG_VP6F_DECODER 0 | ||
| 1011 | +%define CONFIG_VP7_DECODER 0 | ||
| 1012 | +%define CONFIG_VP8_DECODER 1 | ||
| 1013 | +%define CONFIG_VP8_RKMPP_DECODER 0 | ||
| 1014 | +%define CONFIG_VP8_V4L2M2M_DECODER 0 | ||
| 1015 | +%define CONFIG_VP9_DECODER 0 | ||
| 1016 | +%define CONFIG_VP9_RKMPP_DECODER 0 | ||
| 1017 | +%define CONFIG_VP9_V4L2M2M_DECODER 0 | ||
| 1018 | +%define CONFIG_VQA_DECODER 0 | ||
| 1019 | +%define CONFIG_WEBP_DECODER 0 | ||
| 1020 | +%define CONFIG_WCMV_DECODER 0 | ||
| 1021 | +%define CONFIG_WRAPPED_AVFRAME_DECODER 0 | ||
| 1022 | +%define CONFIG_WMV1_DECODER 0 | ||
| 1023 | +%define CONFIG_WMV2_DECODER 0 | ||
| 1024 | +%define CONFIG_WMV3_DECODER 0 | ||
| 1025 | +%define CONFIG_WMV3_CRYSTALHD_DECODER 0 | ||
| 1026 | +%define CONFIG_WMV3IMAGE_DECODER 0 | ||
| 1027 | +%define CONFIG_WNV1_DECODER 0 | ||
| 1028 | +%define CONFIG_XAN_WC3_DECODER 0 | ||
| 1029 | +%define CONFIG_XAN_WC4_DECODER 0 | ||
| 1030 | +%define CONFIG_XBM_DECODER 0 | ||
| 1031 | +%define CONFIG_XFACE_DECODER 0 | ||
| 1032 | +%define CONFIG_XL_DECODER 0 | ||
| 1033 | +%define CONFIG_XPM_DECODER 0 | ||
| 1034 | +%define CONFIG_XWD_DECODER 0 | ||
| 1035 | +%define CONFIG_Y41P_DECODER 0 | ||
| 1036 | +%define CONFIG_YLC_DECODER 0 | ||
| 1037 | +%define CONFIG_YOP_DECODER 0 | ||
| 1038 | +%define CONFIG_YUV4_DECODER 0 | ||
| 1039 | +%define CONFIG_ZERO12V_DECODER 0 | ||
| 1040 | +%define CONFIG_ZEROCODEC_DECODER 0 | ||
| 1041 | +%define CONFIG_ZLIB_DECODER 0 | ||
| 1042 | +%define CONFIG_ZMBV_DECODER 0 | ||
| 1043 | +%define CONFIG_AAC_DECODER 1 | ||
| 1044 | +%define CONFIG_AAC_FIXED_DECODER 0 | ||
| 1045 | +%define CONFIG_AAC_LATM_DECODER 0 | ||
| 1046 | +%define CONFIG_AC3_DECODER 0 | ||
| 1047 | +%define CONFIG_AC3_FIXED_DECODER 0 | ||
| 1048 | +%define CONFIG_ACELP_KELVIN_DECODER 0 | ||
| 1049 | +%define CONFIG_ALAC_DECODER 0 | ||
| 1050 | +%define CONFIG_ALS_DECODER 0 | ||
| 1051 | +%define CONFIG_AMRNB_DECODER 0 | ||
| 1052 | +%define CONFIG_AMRWB_DECODER 0 | ||
| 1053 | +%define CONFIG_APE_DECODER 0 | ||
| 1054 | +%define CONFIG_APTX_DECODER 0 | ||
| 1055 | +%define CONFIG_APTX_HD_DECODER 0 | ||
| 1056 | +%define CONFIG_ATRAC1_DECODER 0 | ||
| 1057 | +%define CONFIG_ATRAC3_DECODER 0 | ||
| 1058 | +%define CONFIG_ATRAC3AL_DECODER 0 | ||
| 1059 | +%define CONFIG_ATRAC3P_DECODER 0 | ||
| 1060 | +%define CONFIG_ATRAC3PAL_DECODER 0 | ||
| 1061 | +%define CONFIG_ATRAC9_DECODER 0 | ||
| 1062 | +%define CONFIG_BINKAUDIO_DCT_DECODER 0 | ||
| 1063 | +%define CONFIG_BINKAUDIO_RDFT_DECODER 0 | ||
| 1064 | +%define CONFIG_BMV_AUDIO_DECODER 0 | ||
| 1065 | +%define CONFIG_COOK_DECODER 0 | ||
| 1066 | +%define CONFIG_DCA_DECODER 0 | ||
| 1067 | +%define CONFIG_DOLBY_E_DECODER 0 | ||
| 1068 | +%define CONFIG_DSD_LSBF_DECODER 0 | ||
| 1069 | +%define CONFIG_DSD_MSBF_DECODER 0 | ||
| 1070 | +%define CONFIG_DSD_LSBF_PLANAR_DECODER 0 | ||
| 1071 | +%define CONFIG_DSD_MSBF_PLANAR_DECODER 0 | ||
| 1072 | +%define CONFIG_DSICINAUDIO_DECODER 0 | ||
| 1073 | +%define CONFIG_DSS_SP_DECODER 0 | ||
| 1074 | +%define CONFIG_DST_DECODER 0 | ||
| 1075 | +%define CONFIG_EAC3_DECODER 0 | ||
| 1076 | +%define CONFIG_EVRC_DECODER 0 | ||
| 1077 | +%define CONFIG_FASTAUDIO_DECODER 0 | ||
| 1078 | +%define CONFIG_FFWAVESYNTH_DECODER 0 | ||
| 1079 | +%define CONFIG_FLAC_DECODER 1 | ||
| 1080 | +%define CONFIG_G723_1_DECODER 0 | ||
| 1081 | +%define CONFIG_G729_DECODER 0 | ||
| 1082 | +%define CONFIG_GSM_DECODER 0 | ||
| 1083 | +%define CONFIG_GSM_MS_DECODER 0 | ||
| 1084 | +%define CONFIG_HCA_DECODER 0 | ||
| 1085 | +%define CONFIG_HCOM_DECODER 0 | ||
| 1086 | +%define CONFIG_IAC_DECODER 0 | ||
| 1087 | +%define CONFIG_ILBC_DECODER 0 | ||
| 1088 | +%define CONFIG_IMC_DECODER 0 | ||
| 1089 | +%define CONFIG_INTERPLAY_ACM_DECODER 0 | ||
| 1090 | +%define CONFIG_MACE3_DECODER 0 | ||
| 1091 | +%define CONFIG_MACE6_DECODER 0 | ||
| 1092 | +%define CONFIG_METASOUND_DECODER 0 | ||
| 1093 | +%define CONFIG_MLP_DECODER 0 | ||
| 1094 | +%define CONFIG_MP1_DECODER 0 | ||
| 1095 | +%define CONFIG_MP1FLOAT_DECODER 0 | ||
| 1096 | +%define CONFIG_MP2_DECODER 0 | ||
| 1097 | +%define CONFIG_MP2FLOAT_DECODER 0 | ||
| 1098 | +%define CONFIG_MP3FLOAT_DECODER 0 | ||
| 1099 | +%define CONFIG_MP3_DECODER 1 | ||
| 1100 | +%define CONFIG_MP3ADUFLOAT_DECODER 0 | ||
| 1101 | +%define CONFIG_MP3ADU_DECODER 0 | ||
| 1102 | +%define CONFIG_MP3ON4FLOAT_DECODER 0 | ||
| 1103 | +%define CONFIG_MP3ON4_DECODER 0 | ||
| 1104 | +%define CONFIG_MPC7_DECODER 0 | ||
| 1105 | +%define CONFIG_MPC8_DECODER 0 | ||
| 1106 | +%define CONFIG_MSNSIREN_DECODER 0 | ||
| 1107 | +%define CONFIG_NELLYMOSER_DECODER 0 | ||
| 1108 | +%define CONFIG_ON2AVC_DECODER 0 | ||
| 1109 | +%define CONFIG_OPUS_DECODER 0 | ||
| 1110 | +%define CONFIG_PAF_AUDIO_DECODER 0 | ||
| 1111 | +%define CONFIG_QCELP_DECODER 0 | ||
| 1112 | +%define CONFIG_QDM2_DECODER 0 | ||
| 1113 | +%define CONFIG_QDMC_DECODER 0 | ||
| 1114 | +%define CONFIG_RA_144_DECODER 0 | ||
| 1115 | +%define CONFIG_RA_288_DECODER 0 | ||
| 1116 | +%define CONFIG_RALF_DECODER 0 | ||
| 1117 | +%define CONFIG_SBC_DECODER 0 | ||
| 1118 | +%define CONFIG_SHORTEN_DECODER 0 | ||
| 1119 | +%define CONFIG_SIPR_DECODER 0 | ||
| 1120 | +%define CONFIG_SIREN_DECODER 0 | ||
| 1121 | +%define CONFIG_SMACKAUD_DECODER 0 | ||
| 1122 | +%define CONFIG_SONIC_DECODER 0 | ||
| 1123 | +%define CONFIG_TAK_DECODER 0 | ||
| 1124 | +%define CONFIG_TRUEHD_DECODER 0 | ||
| 1125 | +%define CONFIG_TRUESPEECH_DECODER 0 | ||
| 1126 | +%define CONFIG_TTA_DECODER 0 | ||
| 1127 | +%define CONFIG_TWINVQ_DECODER 0 | ||
| 1128 | +%define CONFIG_VMDAUDIO_DECODER 0 | ||
| 1129 | +%define CONFIG_VORBIS_DECODER 1 | ||
| 1130 | +%define CONFIG_WAVPACK_DECODER 0 | ||
| 1131 | +%define CONFIG_WMALOSSLESS_DECODER 0 | ||
| 1132 | +%define CONFIG_WMAPRO_DECODER 0 | ||
| 1133 | +%define CONFIG_WMAV1_DECODER 0 | ||
| 1134 | +%define CONFIG_WMAV2_DECODER 0 | ||
| 1135 | +%define CONFIG_WMAVOICE_DECODER 0 | ||
| 1136 | +%define CONFIG_WS_SND1_DECODER 0 | ||
| 1137 | +%define CONFIG_XMA1_DECODER 0 | ||
| 1138 | +%define CONFIG_XMA2_DECODER 0 | ||
| 1139 | +%define CONFIG_PCM_ALAW_DECODER 1 | ||
| 1140 | +%define CONFIG_PCM_BLURAY_DECODER 0 | ||
| 1141 | +%define CONFIG_PCM_DVD_DECODER 0 | ||
| 1142 | +%define CONFIG_PCM_F16LE_DECODER 0 | ||
| 1143 | +%define CONFIG_PCM_F24LE_DECODER 0 | ||
| 1144 | +%define CONFIG_PCM_F32BE_DECODER 0 | ||
| 1145 | +%define CONFIG_PCM_F32LE_DECODER 1 | ||
| 1146 | +%define CONFIG_PCM_F64BE_DECODER 0 | ||
| 1147 | +%define CONFIG_PCM_F64LE_DECODER 0 | ||
| 1148 | +%define CONFIG_PCM_LXF_DECODER 0 | ||
| 1149 | +%define CONFIG_PCM_MULAW_DECODER 1 | ||
| 1150 | +%define CONFIG_PCM_S8_DECODER 0 | ||
| 1151 | +%define CONFIG_PCM_S8_PLANAR_DECODER 0 | ||
| 1152 | +%define CONFIG_PCM_S16BE_DECODER 1 | ||
| 1153 | +%define CONFIG_PCM_S16BE_PLANAR_DECODER 0 | ||
| 1154 | +%define CONFIG_PCM_S16LE_DECODER 1 | ||
| 1155 | +%define CONFIG_PCM_S16LE_PLANAR_DECODER 0 | ||
| 1156 | +%define CONFIG_PCM_S24BE_DECODER 1 | ||
| 1157 | +%define CONFIG_PCM_S24DAUD_DECODER 0 | ||
| 1158 | +%define CONFIG_PCM_S24LE_DECODER 1 | ||
| 1159 | +%define CONFIG_PCM_S24LE_PLANAR_DECODER 0 | ||
| 1160 | +%define CONFIG_PCM_S32BE_DECODER 0 | ||
| 1161 | +%define CONFIG_PCM_S32LE_DECODER 1 | ||
| 1162 | +%define CONFIG_PCM_S32LE_PLANAR_DECODER 0 | ||
| 1163 | +%define CONFIG_PCM_S64BE_DECODER 0 | ||
| 1164 | +%define CONFIG_PCM_S64LE_DECODER 0 | ||
| 1165 | +%define CONFIG_PCM_SGA_DECODER 0 | ||
| 1166 | +%define CONFIG_PCM_U8_DECODER 1 | ||
| 1167 | +%define CONFIG_PCM_U16BE_DECODER 0 | ||
| 1168 | +%define CONFIG_PCM_U16LE_DECODER 0 | ||
| 1169 | +%define CONFIG_PCM_U24BE_DECODER 0 | ||
| 1170 | +%define CONFIG_PCM_U24LE_DECODER 0 | ||
| 1171 | +%define CONFIG_PCM_U32BE_DECODER 0 | ||
| 1172 | +%define CONFIG_PCM_U32LE_DECODER 0 | ||
| 1173 | +%define CONFIG_PCM_VIDC_DECODER 0 | ||
| 1174 | +%define CONFIG_DERF_DPCM_DECODER 0 | ||
| 1175 | +%define CONFIG_GREMLIN_DPCM_DECODER 0 | ||
| 1176 | +%define CONFIG_INTERPLAY_DPCM_DECODER 0 | ||
| 1177 | +%define CONFIG_ROQ_DPCM_DECODER 0 | ||
| 1178 | +%define CONFIG_SDX2_DPCM_DECODER 0 | ||
| 1179 | +%define CONFIG_SOL_DPCM_DECODER 0 | ||
| 1180 | +%define CONFIG_XAN_DPCM_DECODER 0 | ||
| 1181 | +%define CONFIG_ADPCM_4XM_DECODER 0 | ||
| 1182 | +%define CONFIG_ADPCM_ADX_DECODER 0 | ||
| 1183 | +%define CONFIG_ADPCM_AFC_DECODER 0 | ||
| 1184 | +%define CONFIG_ADPCM_AGM_DECODER 0 | ||
| 1185 | +%define CONFIG_ADPCM_AICA_DECODER 0 | ||
| 1186 | +%define CONFIG_ADPCM_ARGO_DECODER 0 | ||
| 1187 | +%define CONFIG_ADPCM_CT_DECODER 0 | ||
| 1188 | +%define CONFIG_ADPCM_DTK_DECODER 0 | ||
| 1189 | +%define CONFIG_ADPCM_EA_DECODER 0 | ||
| 1190 | +%define CONFIG_ADPCM_EA_MAXIS_XA_DECODER 0 | ||
| 1191 | +%define CONFIG_ADPCM_EA_R1_DECODER 0 | ||
| 1192 | +%define CONFIG_ADPCM_EA_R2_DECODER 0 | ||
| 1193 | +%define CONFIG_ADPCM_EA_R3_DECODER 0 | ||
| 1194 | +%define CONFIG_ADPCM_EA_XAS_DECODER 0 | ||
| 1195 | +%define CONFIG_ADPCM_G722_DECODER 0 | ||
| 1196 | +%define CONFIG_ADPCM_G726_DECODER 0 | ||
| 1197 | +%define CONFIG_ADPCM_G726LE_DECODER 0 | ||
| 1198 | +%define CONFIG_ADPCM_IMA_ACORN_DECODER 0 | ||
| 1199 | +%define CONFIG_ADPCM_IMA_AMV_DECODER 0 | ||
| 1200 | +%define CONFIG_ADPCM_IMA_ALP_DECODER 0 | ||
| 1201 | +%define CONFIG_ADPCM_IMA_APC_DECODER 0 | ||
| 1202 | +%define CONFIG_ADPCM_IMA_APM_DECODER 0 | ||
| 1203 | +%define CONFIG_ADPCM_IMA_CUNNING_DECODER 0 | ||
| 1204 | +%define CONFIG_ADPCM_IMA_DAT4_DECODER 0 | ||
| 1205 | +%define CONFIG_ADPCM_IMA_DK3_DECODER 0 | ||
| 1206 | +%define CONFIG_ADPCM_IMA_DK4_DECODER 0 | ||
| 1207 | +%define CONFIG_ADPCM_IMA_EA_EACS_DECODER 0 | ||
| 1208 | +%define CONFIG_ADPCM_IMA_EA_SEAD_DECODER 0 | ||
| 1209 | +%define CONFIG_ADPCM_IMA_ISS_DECODER 0 | ||
| 1210 | +%define CONFIG_ADPCM_IMA_MOFLEX_DECODER 0 | ||
| 1211 | +%define CONFIG_ADPCM_IMA_MTF_DECODER 0 | ||
| 1212 | +%define CONFIG_ADPCM_IMA_OKI_DECODER 0 | ||
| 1213 | +%define CONFIG_ADPCM_IMA_QT_DECODER 0 | ||
| 1214 | +%define CONFIG_ADPCM_IMA_RAD_DECODER 0 | ||
| 1215 | +%define CONFIG_ADPCM_IMA_SSI_DECODER 0 | ||
| 1216 | +%define CONFIG_ADPCM_IMA_SMJPEG_DECODER 0 | ||
| 1217 | +%define CONFIG_ADPCM_IMA_WAV_DECODER 0 | ||
| 1218 | +%define CONFIG_ADPCM_IMA_WS_DECODER 0 | ||
| 1219 | +%define CONFIG_ADPCM_MS_DECODER 0 | ||
| 1220 | +%define CONFIG_ADPCM_MTAF_DECODER 0 | ||
| 1221 | +%define CONFIG_ADPCM_PSX_DECODER 0 | ||
| 1222 | +%define CONFIG_ADPCM_SBPRO_2_DECODER 0 | ||
| 1223 | +%define CONFIG_ADPCM_SBPRO_3_DECODER 0 | ||
| 1224 | +%define CONFIG_ADPCM_SBPRO_4_DECODER 0 | ||
| 1225 | +%define CONFIG_ADPCM_SWF_DECODER 0 | ||
| 1226 | +%define CONFIG_ADPCM_THP_DECODER 0 | ||
| 1227 | +%define CONFIG_ADPCM_THP_LE_DECODER 0 | ||
| 1228 | +%define CONFIG_ADPCM_VIMA_DECODER 0 | ||
| 1229 | +%define CONFIG_ADPCM_XA_DECODER 0 | ||
| 1230 | +%define CONFIG_ADPCM_YAMAHA_DECODER 0 | ||
| 1231 | +%define CONFIG_ADPCM_ZORK_DECODER 0 | ||
| 1232 | +%define CONFIG_SSA_DECODER 0 | ||
| 1233 | +%define CONFIG_ASS_DECODER 0 | ||
| 1234 | +%define CONFIG_CCAPTION_DECODER 0 | ||
| 1235 | +%define CONFIG_DVBSUB_DECODER 0 | ||
| 1236 | +%define CONFIG_DVDSUB_DECODER 0 | ||
| 1237 | +%define CONFIG_JACOSUB_DECODER 0 | ||
| 1238 | +%define CONFIG_MICRODVD_DECODER 0 | ||
| 1239 | +%define CONFIG_MOVTEXT_DECODER 0 | ||
| 1240 | +%define CONFIG_MPL2_DECODER 0 | ||
| 1241 | +%define CONFIG_PGSSUB_DECODER 0 | ||
| 1242 | +%define CONFIG_PJS_DECODER 0 | ||
| 1243 | +%define CONFIG_REALTEXT_DECODER 0 | ||
| 1244 | +%define CONFIG_SAMI_DECODER 0 | ||
| 1245 | +%define CONFIG_SRT_DECODER 0 | ||
| 1246 | +%define CONFIG_STL_DECODER 0 | ||
| 1247 | +%define CONFIG_SUBRIP_DECODER 0 | ||
| 1248 | +%define CONFIG_SUBVIEWER_DECODER 0 | ||
| 1249 | +%define CONFIG_SUBVIEWER1_DECODER 0 | ||
| 1250 | +%define CONFIG_TEXT_DECODER 0 | ||
| 1251 | +%define CONFIG_VPLAYER_DECODER 0 | ||
| 1252 | +%define CONFIG_WEBVTT_DECODER 0 | ||
| 1253 | +%define CONFIG_XSUB_DECODER 0 | ||
| 1254 | +%define CONFIG_AAC_AT_DECODER 0 | ||
| 1255 | +%define CONFIG_AC3_AT_DECODER 0 | ||
| 1256 | +%define CONFIG_ADPCM_IMA_QT_AT_DECODER 0 | ||
| 1257 | +%define CONFIG_ALAC_AT_DECODER 0 | ||
| 1258 | +%define CONFIG_AMR_NB_AT_DECODER 0 | ||
| 1259 | +%define CONFIG_EAC3_AT_DECODER 0 | ||
| 1260 | +%define CONFIG_GSM_MS_AT_DECODER 0 | ||
| 1261 | +%define CONFIG_ILBC_AT_DECODER 0 | ||
| 1262 | +%define CONFIG_MP1_AT_DECODER 0 | ||
| 1263 | +%define CONFIG_MP2_AT_DECODER 0 | ||
| 1264 | +%define CONFIG_MP3_AT_DECODER 0 | ||
| 1265 | +%define CONFIG_PCM_ALAW_AT_DECODER 0 | ||
| 1266 | +%define CONFIG_PCM_MULAW_AT_DECODER 0 | ||
| 1267 | +%define CONFIG_QDMC_AT_DECODER 0 | ||
| 1268 | +%define CONFIG_QDM2_AT_DECODER 0 | ||
| 1269 | +%define CONFIG_LIBARIBB24_DECODER 0 | ||
| 1270 | +%define CONFIG_LIBCELT_DECODER 0 | ||
| 1271 | +%define CONFIG_LIBCODEC2_DECODER 0 | ||
| 1272 | +%define CONFIG_LIBDAV1D_DECODER 0 | ||
| 1273 | +%define CONFIG_LIBDAVS2_DECODER 0 | ||
| 1274 | +%define CONFIG_LIBFDK_AAC_DECODER 0 | ||
| 1275 | +%define CONFIG_LIBGSM_DECODER 0 | ||
| 1276 | +%define CONFIG_LIBGSM_MS_DECODER 0 | ||
| 1277 | +%define CONFIG_LIBILBC_DECODER 0 | ||
| 1278 | +%define CONFIG_LIBOPENCORE_AMRNB_DECODER 0 | ||
| 1279 | +%define CONFIG_LIBOPENCORE_AMRWB_DECODER 0 | ||
| 1280 | +%define CONFIG_LIBOPENJPEG_DECODER 0 | ||
| 1281 | +%define CONFIG_LIBOPUS_DECODER 1 | ||
| 1282 | +%define CONFIG_LIBRSVG_DECODER 0 | ||
| 1283 | +%define CONFIG_LIBSPEEX_DECODER 0 | ||
| 1284 | +%define CONFIG_LIBUAVS3D_DECODER 0 | ||
| 1285 | +%define CONFIG_LIBVORBIS_DECODER 0 | ||
| 1286 | +%define CONFIG_LIBVPX_VP8_DECODER 0 | ||
| 1287 | +%define CONFIG_LIBVPX_VP9_DECODER 0 | ||
| 1288 | +%define CONFIG_LIBZVBI_TELETEXT_DECODER 0 | ||
| 1289 | +%define CONFIG_BINTEXT_DECODER 0 | ||
| 1290 | +%define CONFIG_XBIN_DECODER 0 | ||
| 1291 | +%define CONFIG_IDF_DECODER 0 | ||
| 1292 | +%define CONFIG_LIBAOM_AV1_DECODER 0 | ||
| 1293 | +%define CONFIG_AV1_DECODER 0 | ||
| 1294 | +%define CONFIG_AV1_CUVID_DECODER 0 | ||
| 1295 | +%define CONFIG_AV1_QSV_DECODER 0 | ||
| 1296 | +%define CONFIG_LIBOPENH264_DECODER 0 | ||
| 1297 | +%define CONFIG_H264_CUVID_DECODER 0 | ||
| 1298 | +%define CONFIG_HEVC_CUVID_DECODER 0 | ||
| 1299 | +%define CONFIG_HEVC_MEDIACODEC_DECODER 0 | ||
| 1300 | +%define CONFIG_MJPEG_CUVID_DECODER 0 | ||
| 1301 | +%define CONFIG_MJPEG_QSV_DECODER 0 | ||
| 1302 | +%define CONFIG_MPEG1_CUVID_DECODER 0 | ||
| 1303 | +%define CONFIG_MPEG2_CUVID_DECODER 0 | ||
| 1304 | +%define CONFIG_MPEG4_CUVID_DECODER 0 | ||
| 1305 | +%define CONFIG_MPEG4_MEDIACODEC_DECODER 0 | ||
| 1306 | +%define CONFIG_VC1_CUVID_DECODER 0 | ||
| 1307 | +%define CONFIG_VP8_CUVID_DECODER 0 | ||
| 1308 | +%define CONFIG_VP8_MEDIACODEC_DECODER 0 | ||
| 1309 | +%define CONFIG_VP8_QSV_DECODER 0 | ||
| 1310 | +%define CONFIG_VP9_CUVID_DECODER 0 | ||
| 1311 | +%define CONFIG_VP9_MEDIACODEC_DECODER 0 | ||
| 1312 | +%define CONFIG_VP9_QSV_DECODER 0 | ||
| 1313 | +%define CONFIG_A64MULTI_ENCODER 0 | ||
| 1314 | +%define CONFIG_A64MULTI5_ENCODER 0 | ||
| 1315 | +%define CONFIG_ALIAS_PIX_ENCODER 0 | ||
| 1316 | +%define CONFIG_AMV_ENCODER 0 | ||
| 1317 | +%define CONFIG_APNG_ENCODER 0 | ||
| 1318 | +%define CONFIG_ASV1_ENCODER 0 | ||
| 1319 | +%define CONFIG_ASV2_ENCODER 0 | ||
| 1320 | +%define CONFIG_AVRP_ENCODER 0 | ||
| 1321 | +%define CONFIG_AVUI_ENCODER 0 | ||
| 1322 | +%define CONFIG_AYUV_ENCODER 0 | ||
| 1323 | +%define CONFIG_BITPACKED_ENCODER 0 | ||
| 1324 | +%define CONFIG_BMP_ENCODER 0 | ||
| 1325 | +%define CONFIG_CFHD_ENCODER 0 | ||
| 1326 | +%define CONFIG_CINEPAK_ENCODER 0 | ||
| 1327 | +%define CONFIG_CLJR_ENCODER 0 | ||
| 1328 | +%define CONFIG_COMFORTNOISE_ENCODER 0 | ||
| 1329 | +%define CONFIG_DNXHD_ENCODER 0 | ||
| 1330 | +%define CONFIG_DPX_ENCODER 0 | ||
| 1331 | +%define CONFIG_DVVIDEO_ENCODER 0 | ||
| 1332 | +%define CONFIG_EXR_ENCODER 0 | ||
| 1333 | +%define CONFIG_FFV1_ENCODER 0 | ||
| 1334 | +%define CONFIG_FFVHUFF_ENCODER 0 | ||
| 1335 | +%define CONFIG_FITS_ENCODER 0 | ||
| 1336 | +%define CONFIG_FLASHSV_ENCODER 0 | ||
| 1337 | +%define CONFIG_FLASHSV2_ENCODER 0 | ||
| 1338 | +%define CONFIG_FLV_ENCODER 0 | ||
| 1339 | +%define CONFIG_GIF_ENCODER 0 | ||
| 1340 | +%define CONFIG_H261_ENCODER 0 | ||
| 1341 | +%define CONFIG_H263_ENCODER 0 | ||
| 1342 | +%define CONFIG_H263P_ENCODER 0 | ||
| 1343 | +%define CONFIG_HAP_ENCODER 0 | ||
| 1344 | +%define CONFIG_HUFFYUV_ENCODER 0 | ||
| 1345 | +%define CONFIG_JPEG2000_ENCODER 0 | ||
| 1346 | +%define CONFIG_JPEGLS_ENCODER 0 | ||
| 1347 | +%define CONFIG_LJPEG_ENCODER 0 | ||
| 1348 | +%define CONFIG_MAGICYUV_ENCODER 0 | ||
| 1349 | +%define CONFIG_MJPEG_ENCODER 0 | ||
| 1350 | +%define CONFIG_MPEG1VIDEO_ENCODER 0 | ||
| 1351 | +%define CONFIG_MPEG2VIDEO_ENCODER 0 | ||
| 1352 | +%define CONFIG_MPEG4_ENCODER 0 | ||
| 1353 | +%define CONFIG_MSMPEG4V2_ENCODER 0 | ||
| 1354 | +%define CONFIG_MSMPEG4V3_ENCODER 0 | ||
| 1355 | +%define CONFIG_MSVIDEO1_ENCODER 0 | ||
| 1356 | +%define CONFIG_PAM_ENCODER 0 | ||
| 1357 | +%define CONFIG_PBM_ENCODER 0 | ||
| 1358 | +%define CONFIG_PCX_ENCODER 0 | ||
| 1359 | +%define CONFIG_PFM_ENCODER 0 | ||
| 1360 | +%define CONFIG_PGM_ENCODER 0 | ||
| 1361 | +%define CONFIG_PGMYUV_ENCODER 0 | ||
| 1362 | +%define CONFIG_PNG_ENCODER 0 | ||
| 1363 | +%define CONFIG_PPM_ENCODER 0 | ||
| 1364 | +%define CONFIG_PRORES_ENCODER 0 | ||
| 1365 | +%define CONFIG_PRORES_AW_ENCODER 0 | ||
| 1366 | +%define CONFIG_PRORES_KS_ENCODER 0 | ||
| 1367 | +%define CONFIG_QTRLE_ENCODER 0 | ||
| 1368 | +%define CONFIG_R10K_ENCODER 0 | ||
| 1369 | +%define CONFIG_R210_ENCODER 0 | ||
| 1370 | +%define CONFIG_RAWVIDEO_ENCODER 0 | ||
| 1371 | +%define CONFIG_ROQ_ENCODER 0 | ||
| 1372 | +%define CONFIG_RPZA_ENCODER 0 | ||
| 1373 | +%define CONFIG_RV10_ENCODER 0 | ||
| 1374 | +%define CONFIG_RV20_ENCODER 0 | ||
| 1375 | +%define CONFIG_S302M_ENCODER 0 | ||
| 1376 | +%define CONFIG_SGI_ENCODER 0 | ||
| 1377 | +%define CONFIG_SMC_ENCODER 0 | ||
| 1378 | +%define CONFIG_SNOW_ENCODER 0 | ||
| 1379 | +%define CONFIG_SPEEDHQ_ENCODER 0 | ||
| 1380 | +%define CONFIG_SUNRAST_ENCODER 0 | ||
| 1381 | +%define CONFIG_SVQ1_ENCODER 0 | ||
| 1382 | +%define CONFIG_TARGA_ENCODER 0 | ||
| 1383 | +%define CONFIG_TIFF_ENCODER 0 | ||
| 1384 | +%define CONFIG_UTVIDEO_ENCODER 0 | ||
| 1385 | +%define CONFIG_V210_ENCODER 0 | ||
| 1386 | +%define CONFIG_V308_ENCODER 0 | ||
| 1387 | +%define CONFIG_V408_ENCODER 0 | ||
| 1388 | +%define CONFIG_V410_ENCODER 0 | ||
| 1389 | +%define CONFIG_VC2_ENCODER 0 | ||
| 1390 | +%define CONFIG_WRAPPED_AVFRAME_ENCODER 0 | ||
| 1391 | +%define CONFIG_WMV1_ENCODER 0 | ||
| 1392 | +%define CONFIG_WMV2_ENCODER 0 | ||
| 1393 | +%define CONFIG_XBM_ENCODER 0 | ||
| 1394 | +%define CONFIG_XFACE_ENCODER 0 | ||
| 1395 | +%define CONFIG_XWD_ENCODER 0 | ||
| 1396 | +%define CONFIG_Y41P_ENCODER 0 | ||
| 1397 | +%define CONFIG_YUV4_ENCODER 0 | ||
| 1398 | +%define CONFIG_ZLIB_ENCODER 0 | ||
| 1399 | +%define CONFIG_ZMBV_ENCODER 0 | ||
| 1400 | +%define CONFIG_AAC_ENCODER 0 | ||
| 1401 | +%define CONFIG_AC3_ENCODER 0 | ||
| 1402 | +%define CONFIG_AC3_FIXED_ENCODER 0 | ||
| 1403 | +%define CONFIG_ALAC_ENCODER 0 | ||
| 1404 | +%define CONFIG_APTX_ENCODER 0 | ||
| 1405 | +%define CONFIG_APTX_HD_ENCODER 0 | ||
| 1406 | +%define CONFIG_DCA_ENCODER 0 | ||
| 1407 | +%define CONFIG_EAC3_ENCODER 0 | ||
| 1408 | +%define CONFIG_FLAC_ENCODER 0 | ||
| 1409 | +%define CONFIG_G723_1_ENCODER 0 | ||
| 1410 | +%define CONFIG_MLP_ENCODER 0 | ||
| 1411 | +%define CONFIG_MP2_ENCODER 0 | ||
| 1412 | +%define CONFIG_MP2FIXED_ENCODER 0 | ||
| 1413 | +%define CONFIG_NELLYMOSER_ENCODER 0 | ||
| 1414 | +%define CONFIG_OPUS_ENCODER 0 | ||
| 1415 | +%define CONFIG_RA_144_ENCODER 0 | ||
| 1416 | +%define CONFIG_SBC_ENCODER 0 | ||
| 1417 | +%define CONFIG_SONIC_ENCODER 0 | ||
| 1418 | +%define CONFIG_SONIC_LS_ENCODER 0 | ||
| 1419 | +%define CONFIG_TRUEHD_ENCODER 0 | ||
| 1420 | +%define CONFIG_TTA_ENCODER 0 | ||
| 1421 | +%define CONFIG_VORBIS_ENCODER 0 | ||
| 1422 | +%define CONFIG_WAVPACK_ENCODER 0 | ||
| 1423 | +%define CONFIG_WMAV1_ENCODER 0 | ||
| 1424 | +%define CONFIG_WMAV2_ENCODER 0 | ||
| 1425 | +%define CONFIG_PCM_ALAW_ENCODER 0 | ||
| 1426 | +%define CONFIG_PCM_DVD_ENCODER 0 | ||
| 1427 | +%define CONFIG_PCM_F32BE_ENCODER 0 | ||
| 1428 | +%define CONFIG_PCM_F32LE_ENCODER 0 | ||
| 1429 | +%define CONFIG_PCM_F64BE_ENCODER 0 | ||
| 1430 | +%define CONFIG_PCM_F64LE_ENCODER 0 | ||
| 1431 | +%define CONFIG_PCM_MULAW_ENCODER 0 | ||
| 1432 | +%define CONFIG_PCM_S8_ENCODER 0 | ||
| 1433 | +%define CONFIG_PCM_S8_PLANAR_ENCODER 0 | ||
| 1434 | +%define CONFIG_PCM_S16BE_ENCODER 0 | ||
| 1435 | +%define CONFIG_PCM_S16BE_PLANAR_ENCODER 0 | ||
| 1436 | +%define CONFIG_PCM_S16LE_ENCODER 0 | ||
| 1437 | +%define CONFIG_PCM_S16LE_PLANAR_ENCODER 0 | ||
| 1438 | +%define CONFIG_PCM_S24BE_ENCODER 0 | ||
| 1439 | +%define CONFIG_PCM_S24DAUD_ENCODER 0 | ||
| 1440 | +%define CONFIG_PCM_S24LE_ENCODER 0 | ||
| 1441 | +%define CONFIG_PCM_S24LE_PLANAR_ENCODER 0 | ||
| 1442 | +%define CONFIG_PCM_S32BE_ENCODER 0 | ||
| 1443 | +%define CONFIG_PCM_S32LE_ENCODER 0 | ||
| 1444 | +%define CONFIG_PCM_S32LE_PLANAR_ENCODER 0 | ||
| 1445 | +%define CONFIG_PCM_S64BE_ENCODER 0 | ||
| 1446 | +%define CONFIG_PCM_S64LE_ENCODER 0 | ||
| 1447 | +%define CONFIG_PCM_U8_ENCODER 0 | ||
| 1448 | +%define CONFIG_PCM_U16BE_ENCODER 0 | ||
| 1449 | +%define CONFIG_PCM_U16LE_ENCODER 0 | ||
| 1450 | +%define CONFIG_PCM_U24BE_ENCODER 0 | ||
| 1451 | +%define CONFIG_PCM_U24LE_ENCODER 0 | ||
| 1452 | +%define CONFIG_PCM_U32BE_ENCODER 0 | ||
| 1453 | +%define CONFIG_PCM_U32LE_ENCODER 0 | ||
| 1454 | +%define CONFIG_PCM_VIDC_ENCODER 0 | ||
| 1455 | +%define CONFIG_ROQ_DPCM_ENCODER 0 | ||
| 1456 | +%define CONFIG_ADPCM_ADX_ENCODER 0 | ||
| 1457 | +%define CONFIG_ADPCM_ARGO_ENCODER 0 | ||
| 1458 | +%define CONFIG_ADPCM_G722_ENCODER 0 | ||
| 1459 | +%define CONFIG_ADPCM_G726_ENCODER 0 | ||
| 1460 | +%define CONFIG_ADPCM_G726LE_ENCODER 0 | ||
| 1461 | +%define CONFIG_ADPCM_IMA_AMV_ENCODER 0 | ||
| 1462 | +%define CONFIG_ADPCM_IMA_ALP_ENCODER 0 | ||
| 1463 | +%define CONFIG_ADPCM_IMA_APM_ENCODER 0 | ||
| 1464 | +%define CONFIG_ADPCM_IMA_QT_ENCODER 0 | ||
| 1465 | +%define CONFIG_ADPCM_IMA_SSI_ENCODER 0 | ||
| 1466 | +%define CONFIG_ADPCM_IMA_WAV_ENCODER 0 | ||
| 1467 | +%define CONFIG_ADPCM_IMA_WS_ENCODER 0 | ||
| 1468 | +%define CONFIG_ADPCM_MS_ENCODER 0 | ||
| 1469 | +%define CONFIG_ADPCM_SWF_ENCODER 0 | ||
| 1470 | +%define CONFIG_ADPCM_YAMAHA_ENCODER 0 | ||
| 1471 | +%define CONFIG_SSA_ENCODER 0 | ||
| 1472 | +%define CONFIG_ASS_ENCODER 0 | ||
| 1473 | +%define CONFIG_DVBSUB_ENCODER 0 | ||
| 1474 | +%define CONFIG_DVDSUB_ENCODER 0 | ||
| 1475 | +%define CONFIG_MOVTEXT_ENCODER 0 | ||
| 1476 | +%define CONFIG_SRT_ENCODER 0 | ||
| 1477 | +%define CONFIG_SUBRIP_ENCODER 0 | ||
| 1478 | +%define CONFIG_TEXT_ENCODER 0 | ||
| 1479 | +%define CONFIG_TTML_ENCODER 0 | ||
| 1480 | +%define CONFIG_WEBVTT_ENCODER 0 | ||
| 1481 | +%define CONFIG_XSUB_ENCODER 0 | ||
| 1482 | +%define CONFIG_AAC_AT_ENCODER 0 | ||
| 1483 | +%define CONFIG_ALAC_AT_ENCODER 0 | ||
| 1484 | +%define CONFIG_ILBC_AT_ENCODER 0 | ||
| 1485 | +%define CONFIG_PCM_ALAW_AT_ENCODER 0 | ||
| 1486 | +%define CONFIG_PCM_MULAW_AT_ENCODER 0 | ||
| 1487 | +%define CONFIG_LIBAOM_AV1_ENCODER 0 | ||
| 1488 | +%define CONFIG_LIBCODEC2_ENCODER 0 | ||
| 1489 | +%define CONFIG_LIBFDK_AAC_ENCODER 0 | ||
| 1490 | +%define CONFIG_LIBGSM_ENCODER 0 | ||
| 1491 | +%define CONFIG_LIBGSM_MS_ENCODER 0 | ||
| 1492 | +%define CONFIG_LIBILBC_ENCODER 0 | ||
| 1493 | +%define CONFIG_LIBMP3LAME_ENCODER 0 | ||
| 1494 | +%define CONFIG_LIBOPENCORE_AMRNB_ENCODER 0 | ||
| 1495 | +%define CONFIG_LIBOPENJPEG_ENCODER 0 | ||
| 1496 | +%define CONFIG_LIBOPUS_ENCODER 0 | ||
| 1497 | +%define CONFIG_LIBRAV1E_ENCODER 0 | ||
| 1498 | +%define CONFIG_LIBSHINE_ENCODER 0 | ||
| 1499 | +%define CONFIG_LIBSPEEX_ENCODER 0 | ||
| 1500 | +%define CONFIG_LIBSVTAV1_ENCODER 0 | ||
| 1501 | +%define CONFIG_LIBTHEORA_ENCODER 0 | ||
| 1502 | +%define CONFIG_LIBTWOLAME_ENCODER 0 | ||
| 1503 | +%define CONFIG_LIBVO_AMRWBENC_ENCODER 0 | ||
| 1504 | +%define CONFIG_LIBVORBIS_ENCODER 0 | ||
| 1505 | +%define CONFIG_LIBVPX_VP8_ENCODER 0 | ||
| 1506 | +%define CONFIG_LIBVPX_VP9_ENCODER 0 | ||
| 1507 | +%define CONFIG_LIBWEBP_ANIM_ENCODER 0 | ||
| 1508 | +%define CONFIG_LIBWEBP_ENCODER 0 | ||
| 1509 | +%define CONFIG_LIBX262_ENCODER 0 | ||
| 1510 | +%define CONFIG_LIBX264_ENCODER 0 | ||
| 1511 | +%define CONFIG_LIBX264RGB_ENCODER 0 | ||
| 1512 | +%define CONFIG_LIBX265_ENCODER 0 | ||
| 1513 | +%define CONFIG_LIBXAVS_ENCODER 0 | ||
| 1514 | +%define CONFIG_LIBXAVS2_ENCODER 0 | ||
| 1515 | +%define CONFIG_LIBXVID_ENCODER 0 | ||
| 1516 | +%define CONFIG_AAC_MF_ENCODER 0 | ||
| 1517 | +%define CONFIG_AC3_MF_ENCODER 0 | ||
| 1518 | +%define CONFIG_H263_V4L2M2M_ENCODER 0 | ||
| 1519 | +%define CONFIG_LIBOPENH264_ENCODER 0 | ||
| 1520 | +%define CONFIG_H264_AMF_ENCODER 0 | ||
| 1521 | +%define CONFIG_H264_MF_ENCODER 0 | ||
| 1522 | +%define CONFIG_H264_NVENC_ENCODER 0 | ||
| 1523 | +%define CONFIG_H264_OMX_ENCODER 0 | ||
| 1524 | +%define CONFIG_H264_QSV_ENCODER 0 | ||
| 1525 | +%define CONFIG_H264_V4L2M2M_ENCODER 0 | ||
| 1526 | +%define CONFIG_H264_VAAPI_ENCODER 0 | ||
| 1527 | +%define CONFIG_H264_VIDEOTOOLBOX_ENCODER 0 | ||
| 1528 | +%define CONFIG_HEVC_AMF_ENCODER 0 | ||
| 1529 | +%define CONFIG_HEVC_MF_ENCODER 0 | ||
| 1530 | +%define CONFIG_HEVC_NVENC_ENCODER 0 | ||
| 1531 | +%define CONFIG_HEVC_QSV_ENCODER 0 | ||
| 1532 | +%define CONFIG_HEVC_V4L2M2M_ENCODER 0 | ||
| 1533 | +%define CONFIG_HEVC_VAAPI_ENCODER 0 | ||
| 1534 | +%define CONFIG_HEVC_VIDEOTOOLBOX_ENCODER 0 | ||
| 1535 | +%define CONFIG_LIBKVAZAAR_ENCODER 0 | ||
| 1536 | +%define CONFIG_MJPEG_QSV_ENCODER 0 | ||
| 1537 | +%define CONFIG_MJPEG_VAAPI_ENCODER 0 | ||
| 1538 | +%define CONFIG_MP3_MF_ENCODER 0 | ||
| 1539 | +%define CONFIG_MPEG2_QSV_ENCODER 0 | ||
| 1540 | +%define CONFIG_MPEG2_VAAPI_ENCODER 0 | ||
| 1541 | +%define CONFIG_MPEG4_OMX_ENCODER 0 | ||
| 1542 | +%define CONFIG_MPEG4_V4L2M2M_ENCODER 0 | ||
| 1543 | +%define CONFIG_PRORES_VIDEOTOOLBOX_ENCODER 0 | ||
| 1544 | +%define CONFIG_VP8_V4L2M2M_ENCODER 0 | ||
| 1545 | +%define CONFIG_VP8_VAAPI_ENCODER 0 | ||
| 1546 | +%define CONFIG_VP9_VAAPI_ENCODER 0 | ||
| 1547 | +%define CONFIG_VP9_QSV_ENCODER 0 | ||
| 1548 | +%define CONFIG_AV1_D3D11VA_HWACCEL 0 | ||
| 1549 | +%define CONFIG_AV1_D3D11VA2_HWACCEL 0 | ||
| 1550 | +%define CONFIG_AV1_DXVA2_HWACCEL 0 | ||
| 1551 | +%define CONFIG_AV1_NVDEC_HWACCEL 0 | ||
| 1552 | +%define CONFIG_AV1_VAAPI_HWACCEL 0 | ||
| 1553 | +%define CONFIG_H263_VAAPI_HWACCEL 0 | ||
| 1554 | +%define CONFIG_H263_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1555 | +%define CONFIG_H264_D3D11VA_HWACCEL 0 | ||
| 1556 | +%define CONFIG_H264_D3D11VA2_HWACCEL 0 | ||
| 1557 | +%define CONFIG_H264_DXVA2_HWACCEL 0 | ||
| 1558 | +%define CONFIG_H264_NVDEC_HWACCEL 0 | ||
| 1559 | +%define CONFIG_H264_VAAPI_HWACCEL 0 | ||
| 1560 | +%define CONFIG_H264_VDPAU_HWACCEL 0 | ||
| 1561 | +%define CONFIG_H264_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1562 | +%define CONFIG_HEVC_D3D11VA_HWACCEL 0 | ||
| 1563 | +%define CONFIG_HEVC_D3D11VA2_HWACCEL 0 | ||
| 1564 | +%define CONFIG_HEVC_DXVA2_HWACCEL 0 | ||
| 1565 | +%define CONFIG_HEVC_NVDEC_HWACCEL 0 | ||
| 1566 | +%define CONFIG_HEVC_VAAPI_HWACCEL 0 | ||
| 1567 | +%define CONFIG_HEVC_VDPAU_HWACCEL 0 | ||
| 1568 | +%define CONFIG_HEVC_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1569 | +%define CONFIG_MJPEG_NVDEC_HWACCEL 0 | ||
| 1570 | +%define CONFIG_MJPEG_VAAPI_HWACCEL 0 | ||
| 1571 | +%define CONFIG_MPEG1_NVDEC_HWACCEL 0 | ||
| 1572 | +%define CONFIG_MPEG1_VDPAU_HWACCEL 0 | ||
| 1573 | +%define CONFIG_MPEG1_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1574 | +%define CONFIG_MPEG1_XVMC_HWACCEL 0 | ||
| 1575 | +%define CONFIG_MPEG2_D3D11VA_HWACCEL 0 | ||
| 1576 | +%define CONFIG_MPEG2_D3D11VA2_HWACCEL 0 | ||
| 1577 | +%define CONFIG_MPEG2_NVDEC_HWACCEL 0 | ||
| 1578 | +%define CONFIG_MPEG2_DXVA2_HWACCEL 0 | ||
| 1579 | +%define CONFIG_MPEG2_VAAPI_HWACCEL 0 | ||
| 1580 | +%define CONFIG_MPEG2_VDPAU_HWACCEL 0 | ||
| 1581 | +%define CONFIG_MPEG2_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1582 | +%define CONFIG_MPEG2_XVMC_HWACCEL 0 | ||
| 1583 | +%define CONFIG_MPEG4_NVDEC_HWACCEL 0 | ||
| 1584 | +%define CONFIG_MPEG4_VAAPI_HWACCEL 0 | ||
| 1585 | +%define CONFIG_MPEG4_VDPAU_HWACCEL 0 | ||
| 1586 | +%define CONFIG_MPEG4_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1587 | +%define CONFIG_PRORES_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1588 | +%define CONFIG_VC1_D3D11VA_HWACCEL 0 | ||
| 1589 | +%define CONFIG_VC1_D3D11VA2_HWACCEL 0 | ||
| 1590 | +%define CONFIG_VC1_DXVA2_HWACCEL 0 | ||
| 1591 | +%define CONFIG_VC1_NVDEC_HWACCEL 0 | ||
| 1592 | +%define CONFIG_VC1_VAAPI_HWACCEL 0 | ||
| 1593 | +%define CONFIG_VC1_VDPAU_HWACCEL 0 | ||
| 1594 | +%define CONFIG_VP8_NVDEC_HWACCEL 0 | ||
| 1595 | +%define CONFIG_VP8_VAAPI_HWACCEL 0 | ||
| 1596 | +%define CONFIG_VP9_D3D11VA_HWACCEL 0 | ||
| 1597 | +%define CONFIG_VP9_D3D11VA2_HWACCEL 0 | ||
| 1598 | +%define CONFIG_VP9_DXVA2_HWACCEL 0 | ||
| 1599 | +%define CONFIG_VP9_NVDEC_HWACCEL 0 | ||
| 1600 | +%define CONFIG_VP9_VAAPI_HWACCEL 0 | ||
| 1601 | +%define CONFIG_VP9_VDPAU_HWACCEL 0 | ||
| 1602 | +%define CONFIG_VP9_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1603 | +%define CONFIG_WMV3_D3D11VA_HWACCEL 0 | ||
| 1604 | +%define CONFIG_WMV3_D3D11VA2_HWACCEL 0 | ||
| 1605 | +%define CONFIG_WMV3_DXVA2_HWACCEL 0 | ||
| 1606 | +%define CONFIG_WMV3_NVDEC_HWACCEL 0 | ||
| 1607 | +%define CONFIG_WMV3_VAAPI_HWACCEL 0 | ||
| 1608 | +%define CONFIG_WMV3_VDPAU_HWACCEL 0 | ||
| 1609 | +%define CONFIG_AAC_PARSER 1 | ||
| 1610 | +%define CONFIG_AAC_LATM_PARSER 0 | ||
| 1611 | +%define CONFIG_AC3_PARSER 0 | ||
| 1612 | +%define CONFIG_ADX_PARSER 0 | ||
| 1613 | +%define CONFIG_AMR_PARSER 0 | ||
| 1614 | +%define CONFIG_AV1_PARSER 0 | ||
| 1615 | +%define CONFIG_AVS2_PARSER 0 | ||
| 1616 | +%define CONFIG_AVS3_PARSER 0 | ||
| 1617 | +%define CONFIG_BMP_PARSER 0 | ||
| 1618 | +%define CONFIG_CAVSVIDEO_PARSER 0 | ||
| 1619 | +%define CONFIG_COOK_PARSER 0 | ||
| 1620 | +%define CONFIG_CRI_PARSER 0 | ||
| 1621 | +%define CONFIG_DCA_PARSER 0 | ||
| 1622 | +%define CONFIG_DIRAC_PARSER 0 | ||
| 1623 | +%define CONFIG_DNXHD_PARSER 0 | ||
| 1624 | +%define CONFIG_DOLBY_E_PARSER 0 | ||
| 1625 | +%define CONFIG_DPX_PARSER 0 | ||
| 1626 | +%define CONFIG_DVAUDIO_PARSER 0 | ||
| 1627 | +%define CONFIG_DVBSUB_PARSER 0 | ||
| 1628 | +%define CONFIG_DVDSUB_PARSER 0 | ||
| 1629 | +%define CONFIG_DVD_NAV_PARSER 0 | ||
| 1630 | +%define CONFIG_FLAC_PARSER 1 | ||
| 1631 | +%define CONFIG_G723_1_PARSER 0 | ||
| 1632 | +%define CONFIG_G729_PARSER 0 | ||
| 1633 | +%define CONFIG_GIF_PARSER 0 | ||
| 1634 | +%define CONFIG_GSM_PARSER 0 | ||
| 1635 | +%define CONFIG_H261_PARSER 0 | ||
| 1636 | +%define CONFIG_H263_PARSER 0 | ||
| 1637 | +%define CONFIG_H264_PARSER 1 | ||
| 1638 | +%define CONFIG_HEVC_PARSER 0 | ||
| 1639 | +%define CONFIG_IPU_PARSER 0 | ||
| 1640 | +%define CONFIG_JPEG2000_PARSER 0 | ||
| 1641 | +%define CONFIG_MJPEG_PARSER 0 | ||
| 1642 | +%define CONFIG_MLP_PARSER 0 | ||
| 1643 | +%define CONFIG_MPEG4VIDEO_PARSER 0 | ||
| 1644 | +%define CONFIG_MPEGAUDIO_PARSER 1 | ||
| 1645 | +%define CONFIG_MPEGVIDEO_PARSER 0 | ||
| 1646 | +%define CONFIG_OPUS_PARSER 1 | ||
| 1647 | +%define CONFIG_PNG_PARSER 0 | ||
| 1648 | +%define CONFIG_PNM_PARSER 0 | ||
| 1649 | +%define CONFIG_RV30_PARSER 0 | ||
| 1650 | +%define CONFIG_RV40_PARSER 0 | ||
| 1651 | +%define CONFIG_SBC_PARSER 0 | ||
| 1652 | +%define CONFIG_SIPR_PARSER 0 | ||
| 1653 | +%define CONFIG_TAK_PARSER 0 | ||
| 1654 | +%define CONFIG_VC1_PARSER 0 | ||
| 1655 | +%define CONFIG_VORBIS_PARSER 1 | ||
| 1656 | +%define CONFIG_VP3_PARSER 1 | ||
| 1657 | +%define CONFIG_VP8_PARSER 1 | ||
| 1658 | +%define CONFIG_VP9_PARSER 1 | ||
| 1659 | +%define CONFIG_WEBP_PARSER 0 | ||
| 1660 | +%define CONFIG_XBM_PARSER 0 | ||
| 1661 | +%define CONFIG_XMA_PARSER 0 | ||
| 1662 | +%define CONFIG_ALSA_INDEV 0 | ||
| 1663 | +%define CONFIG_ANDROID_CAMERA_INDEV 0 | ||
| 1664 | +%define CONFIG_AVFOUNDATION_INDEV 0 | ||
| 1665 | +%define CONFIG_BKTR_INDEV 0 | ||
| 1666 | +%define CONFIG_DECKLINK_INDEV 0 | ||
| 1667 | +%define CONFIG_DSHOW_INDEV 0 | ||
| 1668 | +%define CONFIG_FBDEV_INDEV 0 | ||
| 1669 | +%define CONFIG_GDIGRAB_INDEV 0 | ||
| 1670 | +%define CONFIG_IEC61883_INDEV 0 | ||
| 1671 | +%define CONFIG_JACK_INDEV 0 | ||
| 1672 | +%define CONFIG_KMSGRAB_INDEV 0 | ||
| 1673 | +%define CONFIG_LAVFI_INDEV 0 | ||
| 1674 | +%define CONFIG_OPENAL_INDEV 0 | ||
| 1675 | +%define CONFIG_OSS_INDEV 0 | ||
| 1676 | +%define CONFIG_PULSE_INDEV 0 | ||
| 1677 | +%define CONFIG_SNDIO_INDEV 0 | ||
| 1678 | +%define CONFIG_V4L2_INDEV 0 | ||
| 1679 | +%define CONFIG_VFWCAP_INDEV 0 | ||
| 1680 | +%define CONFIG_XCBGRAB_INDEV 0 | ||
| 1681 | +%define CONFIG_LIBCDIO_INDEV 0 | ||
| 1682 | +%define CONFIG_LIBDC1394_INDEV 0 | ||
| 1683 | +%define CONFIG_ALSA_OUTDEV 0 | ||
| 1684 | +%define CONFIG_AUDIOTOOLBOX_OUTDEV 0 | ||
| 1685 | +%define CONFIG_CACA_OUTDEV 0 | ||
| 1686 | +%define CONFIG_DECKLINK_OUTDEV 0 | ||
| 1687 | +%define CONFIG_FBDEV_OUTDEV 0 | ||
| 1688 | +%define CONFIG_OPENGL_OUTDEV 0 | ||
| 1689 | +%define CONFIG_OSS_OUTDEV 0 | ||
| 1690 | +%define CONFIG_PULSE_OUTDEV 0 | ||
| 1691 | +%define CONFIG_SDL2_OUTDEV 0 | ||
| 1692 | +%define CONFIG_SNDIO_OUTDEV 0 | ||
| 1693 | +%define CONFIG_V4L2_OUTDEV 0 | ||
| 1694 | +%define CONFIG_XV_OUTDEV 0 | ||
| 1695 | +%define CONFIG_ABENCH_FILTER 0 | ||
| 1696 | +%define CONFIG_ACOMPRESSOR_FILTER 0 | ||
| 1697 | +%define CONFIG_ACONTRAST_FILTER 0 | ||
| 1698 | +%define CONFIG_ACOPY_FILTER 0 | ||
| 1699 | +%define CONFIG_ACUE_FILTER 0 | ||
| 1700 | +%define CONFIG_ACROSSFADE_FILTER 0 | ||
| 1701 | +%define CONFIG_ACROSSOVER_FILTER 0 | ||
| 1702 | +%define CONFIG_ACRUSHER_FILTER 0 | ||
| 1703 | +%define CONFIG_ADECLICK_FILTER 0 | ||
| 1704 | +%define CONFIG_ADECLIP_FILTER 0 | ||
| 1705 | +%define CONFIG_ADECORRELATE_FILTER 0 | ||
| 1706 | +%define CONFIG_ADELAY_FILTER 0 | ||
| 1707 | +%define CONFIG_ADENORM_FILTER 0 | ||
| 1708 | +%define CONFIG_ADERIVATIVE_FILTER 0 | ||
| 1709 | +%define CONFIG_ADYNAMICEQUALIZER_FILTER 0 | ||
| 1710 | +%define CONFIG_ADYNAMICSMOOTH_FILTER 0 | ||
| 1711 | +%define CONFIG_AECHO_FILTER 0 | ||
| 1712 | +%define CONFIG_AEMPHASIS_FILTER 0 | ||
| 1713 | +%define CONFIG_AEVAL_FILTER 0 | ||
| 1714 | +%define CONFIG_AEXCITER_FILTER 0 | ||
| 1715 | +%define CONFIG_AFADE_FILTER 0 | ||
| 1716 | +%define CONFIG_AFFTDN_FILTER 0 | ||
| 1717 | +%define CONFIG_AFFTFILT_FILTER 0 | ||
| 1718 | +%define CONFIG_AFIR_FILTER 0 | ||
| 1719 | +%define CONFIG_AFORMAT_FILTER 0 | ||
| 1720 | +%define CONFIG_AFREQSHIFT_FILTER 0 | ||
| 1721 | +%define CONFIG_AFWTDN_FILTER 0 | ||
| 1722 | +%define CONFIG_AGATE_FILTER 0 | ||
| 1723 | +%define CONFIG_AIIR_FILTER 0 | ||
| 1724 | +%define CONFIG_AINTEGRAL_FILTER 0 | ||
| 1725 | +%define CONFIG_AINTERLEAVE_FILTER 0 | ||
| 1726 | +%define CONFIG_ALATENCY_FILTER 0 | ||
| 1727 | +%define CONFIG_ALIMITER_FILTER 0 | ||
| 1728 | +%define CONFIG_ALLPASS_FILTER 0 | ||
| 1729 | +%define CONFIG_ALOOP_FILTER 0 | ||
| 1730 | +%define CONFIG_AMERGE_FILTER 0 | ||
| 1731 | +%define CONFIG_AMETADATA_FILTER 0 | ||
| 1732 | +%define CONFIG_AMIX_FILTER 0 | ||
| 1733 | +%define CONFIG_AMULTIPLY_FILTER 0 | ||
| 1734 | +%define CONFIG_ANEQUALIZER_FILTER 0 | ||
| 1735 | +%define CONFIG_ANLMDN_FILTER 0 | ||
| 1736 | +%define CONFIG_ANLMF_FILTER 0 | ||
| 1737 | +%define CONFIG_ANLMS_FILTER 0 | ||
| 1738 | +%define CONFIG_ANULL_FILTER 0 | ||
| 1739 | +%define CONFIG_APAD_FILTER 0 | ||
| 1740 | +%define CONFIG_APERMS_FILTER 0 | ||
| 1741 | +%define CONFIG_APHASER_FILTER 0 | ||
| 1742 | +%define CONFIG_APHASESHIFT_FILTER 0 | ||
| 1743 | +%define CONFIG_APSYCLIP_FILTER 0 | ||
| 1744 | +%define CONFIG_APULSATOR_FILTER 0 | ||
| 1745 | +%define CONFIG_AREALTIME_FILTER 0 | ||
| 1746 | +%define CONFIG_ARESAMPLE_FILTER 0 | ||
| 1747 | +%define CONFIG_AREVERSE_FILTER 0 | ||
| 1748 | +%define CONFIG_ARNNDN_FILTER 0 | ||
| 1749 | +%define CONFIG_ASDR_FILTER 0 | ||
| 1750 | +%define CONFIG_ASEGMENT_FILTER 0 | ||
| 1751 | +%define CONFIG_ASELECT_FILTER 0 | ||
| 1752 | +%define CONFIG_ASENDCMD_FILTER 0 | ||
| 1753 | +%define CONFIG_ASETNSAMPLES_FILTER 0 | ||
| 1754 | +%define CONFIG_ASETPTS_FILTER 0 | ||
| 1755 | +%define CONFIG_ASETRATE_FILTER 0 | ||
| 1756 | +%define CONFIG_ASETTB_FILTER 0 | ||
| 1757 | +%define CONFIG_ASHOWINFO_FILTER 0 | ||
| 1758 | +%define CONFIG_ASIDEDATA_FILTER 0 | ||
| 1759 | +%define CONFIG_ASOFTCLIP_FILTER 0 | ||
| 1760 | +%define CONFIG_ASPECTRALSTATS_FILTER 0 | ||
| 1761 | +%define CONFIG_ASPLIT_FILTER 0 | ||
| 1762 | +%define CONFIG_ASR_FILTER 0 | ||
| 1763 | +%define CONFIG_ASTATS_FILTER 0 | ||
| 1764 | +%define CONFIG_ASTREAMSELECT_FILTER 0 | ||
| 1765 | +%define CONFIG_ASUBBOOST_FILTER 0 | ||
| 1766 | +%define CONFIG_ASUBCUT_FILTER 0 | ||
| 1767 | +%define CONFIG_ASUPERCUT_FILTER 0 | ||
| 1768 | +%define CONFIG_ASUPERPASS_FILTER 0 | ||
| 1769 | +%define CONFIG_ASUPERSTOP_FILTER 0 | ||
| 1770 | +%define CONFIG_ATEMPO_FILTER 0 | ||
| 1771 | +%define CONFIG_ATILT_FILTER 0 | ||
| 1772 | +%define CONFIG_ATRIM_FILTER 0 | ||
| 1773 | +%define CONFIG_AXCORRELATE_FILTER 0 | ||
| 1774 | +%define CONFIG_AZMQ_FILTER 0 | ||
| 1775 | +%define CONFIG_BANDPASS_FILTER 0 | ||
| 1776 | +%define CONFIG_BANDREJECT_FILTER 0 | ||
| 1777 | +%define CONFIG_BASS_FILTER 0 | ||
| 1778 | +%define CONFIG_BIQUAD_FILTER 0 | ||
| 1779 | +%define CONFIG_BS2B_FILTER 0 | ||
| 1780 | +%define CONFIG_CHANNELMAP_FILTER 0 | ||
| 1781 | +%define CONFIG_CHANNELSPLIT_FILTER 0 | ||
| 1782 | +%define CONFIG_CHORUS_FILTER 0 | ||
| 1783 | +%define CONFIG_COMPAND_FILTER 0 | ||
| 1784 | +%define CONFIG_COMPENSATIONDELAY_FILTER 0 | ||
| 1785 | +%define CONFIG_CROSSFEED_FILTER 0 | ||
| 1786 | +%define CONFIG_CRYSTALIZER_FILTER 0 | ||
| 1787 | +%define CONFIG_DCSHIFT_FILTER 0 | ||
| 1788 | +%define CONFIG_DEESSER_FILTER 0 | ||
| 1789 | +%define CONFIG_DRMETER_FILTER 0 | ||
| 1790 | +%define CONFIG_DYNAUDNORM_FILTER 0 | ||
| 1791 | +%define CONFIG_EARWAX_FILTER 0 | ||
| 1792 | +%define CONFIG_EBUR128_FILTER 0 | ||
| 1793 | +%define CONFIG_EQUALIZER_FILTER 0 | ||
| 1794 | +%define CONFIG_EXTRASTEREO_FILTER 0 | ||
| 1795 | +%define CONFIG_FIREQUALIZER_FILTER 0 | ||
| 1796 | +%define CONFIG_FLANGER_FILTER 0 | ||
| 1797 | +%define CONFIG_HAAS_FILTER 0 | ||
| 1798 | +%define CONFIG_HDCD_FILTER 0 | ||
| 1799 | +%define CONFIG_HEADPHONE_FILTER 0 | ||
| 1800 | +%define CONFIG_HIGHPASS_FILTER 0 | ||
| 1801 | +%define CONFIG_HIGHSHELF_FILTER 0 | ||
| 1802 | +%define CONFIG_JOIN_FILTER 0 | ||
| 1803 | +%define CONFIG_LADSPA_FILTER 0 | ||
| 1804 | +%define CONFIG_LOUDNORM_FILTER 0 | ||
| 1805 | +%define CONFIG_LOWPASS_FILTER 0 | ||
| 1806 | +%define CONFIG_LOWSHELF_FILTER 0 | ||
| 1807 | +%define CONFIG_LV2_FILTER 0 | ||
| 1808 | +%define CONFIG_MCOMPAND_FILTER 0 | ||
| 1809 | +%define CONFIG_PAN_FILTER 0 | ||
| 1810 | +%define CONFIG_REPLAYGAIN_FILTER 0 | ||
| 1811 | +%define CONFIG_RUBBERBAND_FILTER 0 | ||
| 1812 | +%define CONFIG_SIDECHAINCOMPRESS_FILTER 0 | ||
| 1813 | +%define CONFIG_SIDECHAINGATE_FILTER 0 | ||
| 1814 | +%define CONFIG_SILENCEDETECT_FILTER 0 | ||
| 1815 | +%define CONFIG_SILENCEREMOVE_FILTER 0 | ||
| 1816 | +%define CONFIG_SOFALIZER_FILTER 0 | ||
| 1817 | +%define CONFIG_SPEECHNORM_FILTER 0 | ||
| 1818 | +%define CONFIG_STEREOTOOLS_FILTER 0 | ||
| 1819 | +%define CONFIG_STEREOWIDEN_FILTER 0 | ||
| 1820 | +%define CONFIG_SUPEREQUALIZER_FILTER 0 | ||
| 1821 | +%define CONFIG_SURROUND_FILTER 0 | ||
| 1822 | +%define CONFIG_TREBLE_FILTER 0 | ||
| 1823 | +%define CONFIG_TREMOLO_FILTER 0 | ||
| 1824 | +%define CONFIG_VIBRATO_FILTER 0 | ||
| 1825 | +%define CONFIG_VOLUME_FILTER 0 | ||
| 1826 | +%define CONFIG_VOLUMEDETECT_FILTER 0 | ||
| 1827 | +%define CONFIG_AEVALSRC_FILTER 0 | ||
| 1828 | +%define CONFIG_AFIRSRC_FILTER 0 | ||
| 1829 | +%define CONFIG_ANOISESRC_FILTER 0 | ||
| 1830 | +%define CONFIG_ANULLSRC_FILTER 0 | ||
| 1831 | +%define CONFIG_FLITE_FILTER 0 | ||
| 1832 | +%define CONFIG_HILBERT_FILTER 0 | ||
| 1833 | +%define CONFIG_SINC_FILTER 0 | ||
| 1834 | +%define CONFIG_SINE_FILTER 0 | ||
| 1835 | +%define CONFIG_ANULLSINK_FILTER 0 | ||
| 1836 | +%define CONFIG_ADDROI_FILTER 0 | ||
| 1837 | +%define CONFIG_ALPHAEXTRACT_FILTER 0 | ||
| 1838 | +%define CONFIG_ALPHAMERGE_FILTER 0 | ||
| 1839 | +%define CONFIG_AMPLIFY_FILTER 0 | ||
| 1840 | +%define CONFIG_ASS_FILTER 0 | ||
| 1841 | +%define CONFIG_ATADENOISE_FILTER 0 | ||
| 1842 | +%define CONFIG_AVGBLUR_FILTER 0 | ||
| 1843 | +%define CONFIG_AVGBLUR_OPENCL_FILTER 0 | ||
| 1844 | +%define CONFIG_AVGBLUR_VULKAN_FILTER 0 | ||
| 1845 | +%define CONFIG_BBOX_FILTER 0 | ||
| 1846 | +%define CONFIG_BENCH_FILTER 0 | ||
| 1847 | +%define CONFIG_BILATERAL_FILTER 0 | ||
| 1848 | +%define CONFIG_BITPLANENOISE_FILTER 0 | ||
| 1849 | +%define CONFIG_BLACKDETECT_FILTER 0 | ||
| 1850 | +%define CONFIG_BLACKFRAME_FILTER 0 | ||
| 1851 | +%define CONFIG_BLEND_FILTER 0 | ||
| 1852 | +%define CONFIG_BLEND_VULKAN_FILTER 0 | ||
| 1853 | +%define CONFIG_BM3D_FILTER 0 | ||
| 1854 | +%define CONFIG_BOXBLUR_FILTER 0 | ||
| 1855 | +%define CONFIG_BOXBLUR_OPENCL_FILTER 0 | ||
| 1856 | +%define CONFIG_BWDIF_FILTER 0 | ||
| 1857 | +%define CONFIG_CAS_FILTER 0 | ||
| 1858 | +%define CONFIG_CHROMABER_VULKAN_FILTER 0 | ||
| 1859 | +%define CONFIG_CHROMAHOLD_FILTER 0 | ||
| 1860 | +%define CONFIG_CHROMAKEY_FILTER 0 | ||
| 1861 | +%define CONFIG_CHROMANR_FILTER 0 | ||
| 1862 | +%define CONFIG_CHROMASHIFT_FILTER 0 | ||
| 1863 | +%define CONFIG_CIESCOPE_FILTER 0 | ||
| 1864 | +%define CONFIG_CODECVIEW_FILTER 0 | ||
| 1865 | +%define CONFIG_COLORBALANCE_FILTER 0 | ||
| 1866 | +%define CONFIG_COLORCHANNELMIXER_FILTER 0 | ||
| 1867 | +%define CONFIG_COLORCONTRAST_FILTER 0 | ||
| 1868 | +%define CONFIG_COLORCORRECT_FILTER 0 | ||
| 1869 | +%define CONFIG_COLORIZE_FILTER 0 | ||
| 1870 | +%define CONFIG_COLORKEY_FILTER 0 | ||
| 1871 | +%define CONFIG_COLORKEY_OPENCL_FILTER 0 | ||
| 1872 | +%define CONFIG_COLORHOLD_FILTER 0 | ||
| 1873 | +%define CONFIG_COLORLEVELS_FILTER 0 | ||
| 1874 | +%define CONFIG_COLORMATRIX_FILTER 0 | ||
| 1875 | +%define CONFIG_COLORSPACE_FILTER 0 | ||
| 1876 | +%define CONFIG_COLORTEMPERATURE_FILTER 0 | ||
| 1877 | +%define CONFIG_CONVOLUTION_FILTER 0 | ||
| 1878 | +%define CONFIG_CONVOLUTION_OPENCL_FILTER 0 | ||
| 1879 | +%define CONFIG_CONVOLVE_FILTER 0 | ||
| 1880 | +%define CONFIG_COPY_FILTER 0 | ||
| 1881 | +%define CONFIG_COREIMAGE_FILTER 0 | ||
| 1882 | +%define CONFIG_COVER_RECT_FILTER 0 | ||
| 1883 | +%define CONFIG_CROP_FILTER 0 | ||
| 1884 | +%define CONFIG_CROPDETECT_FILTER 0 | ||
| 1885 | +%define CONFIG_CUE_FILTER 0 | ||
| 1886 | +%define CONFIG_CURVES_FILTER 0 | ||
| 1887 | +%define CONFIG_DATASCOPE_FILTER 0 | ||
| 1888 | +%define CONFIG_DBLUR_FILTER 0 | ||
| 1889 | +%define CONFIG_DCTDNOIZ_FILTER 0 | ||
| 1890 | +%define CONFIG_DEBAND_FILTER 0 | ||
| 1891 | +%define CONFIG_DEBLOCK_FILTER 0 | ||
| 1892 | +%define CONFIG_DECIMATE_FILTER 0 | ||
| 1893 | +%define CONFIG_DECONVOLVE_FILTER 0 | ||
| 1894 | +%define CONFIG_DEDOT_FILTER 0 | ||
| 1895 | +%define CONFIG_DEFLATE_FILTER 0 | ||
| 1896 | +%define CONFIG_DEFLICKER_FILTER 0 | ||
| 1897 | +%define CONFIG_DEINTERLACE_QSV_FILTER 0 | ||
| 1898 | +%define CONFIG_DEINTERLACE_VAAPI_FILTER 0 | ||
| 1899 | +%define CONFIG_DEJUDDER_FILTER 0 | ||
| 1900 | +%define CONFIG_DELOGO_FILTER 0 | ||
| 1901 | +%define CONFIG_DENOISE_VAAPI_FILTER 0 | ||
| 1902 | +%define CONFIG_DERAIN_FILTER 0 | ||
| 1903 | +%define CONFIG_DESHAKE_FILTER 0 | ||
| 1904 | +%define CONFIG_DESHAKE_OPENCL_FILTER 0 | ||
| 1905 | +%define CONFIG_DESPILL_FILTER 0 | ||
| 1906 | +%define CONFIG_DETELECINE_FILTER 0 | ||
| 1907 | +%define CONFIG_DILATION_FILTER 0 | ||
| 1908 | +%define CONFIG_DILATION_OPENCL_FILTER 0 | ||
| 1909 | +%define CONFIG_DISPLACE_FILTER 0 | ||
| 1910 | +%define CONFIG_DNN_CLASSIFY_FILTER 0 | ||
| 1911 | +%define CONFIG_DNN_DETECT_FILTER 0 | ||
| 1912 | +%define CONFIG_DNN_PROCESSING_FILTER 0 | ||
| 1913 | +%define CONFIG_DOUBLEWEAVE_FILTER 0 | ||
| 1914 | +%define CONFIG_DRAWBOX_FILTER 0 | ||
| 1915 | +%define CONFIG_DRAWGRAPH_FILTER 0 | ||
| 1916 | +%define CONFIG_DRAWGRID_FILTER 0 | ||
| 1917 | +%define CONFIG_DRAWTEXT_FILTER 0 | ||
| 1918 | +%define CONFIG_EDGEDETECT_FILTER 0 | ||
| 1919 | +%define CONFIG_ELBG_FILTER 0 | ||
| 1920 | +%define CONFIG_ENTROPY_FILTER 0 | ||
| 1921 | +%define CONFIG_EPX_FILTER 0 | ||
| 1922 | +%define CONFIG_EQ_FILTER 0 | ||
| 1923 | +%define CONFIG_EROSION_FILTER 0 | ||
| 1924 | +%define CONFIG_EROSION_OPENCL_FILTER 0 | ||
| 1925 | +%define CONFIG_ESTDIF_FILTER 0 | ||
| 1926 | +%define CONFIG_EXPOSURE_FILTER 0 | ||
| 1927 | +%define CONFIG_EXTRACTPLANES_FILTER 0 | ||
| 1928 | +%define CONFIG_FADE_FILTER 0 | ||
| 1929 | +%define CONFIG_FFTDNOIZ_FILTER 0 | ||
| 1930 | +%define CONFIG_FFTFILT_FILTER 0 | ||
| 1931 | +%define CONFIG_FIELD_FILTER 0 | ||
| 1932 | +%define CONFIG_FIELDHINT_FILTER 0 | ||
| 1933 | +%define CONFIG_FIELDMATCH_FILTER 0 | ||
| 1934 | +%define CONFIG_FIELDORDER_FILTER 0 | ||
| 1935 | +%define CONFIG_FILLBORDERS_FILTER 0 | ||
| 1936 | +%define CONFIG_FIND_RECT_FILTER 0 | ||
| 1937 | +%define CONFIG_FLIP_VULKAN_FILTER 0 | ||
| 1938 | +%define CONFIG_FLOODFILL_FILTER 0 | ||
| 1939 | +%define CONFIG_FORMAT_FILTER 0 | ||
| 1940 | +%define CONFIG_FPS_FILTER 0 | ||
| 1941 | +%define CONFIG_FRAMEPACK_FILTER 0 | ||
| 1942 | +%define CONFIG_FRAMERATE_FILTER 0 | ||
| 1943 | +%define CONFIG_FRAMESTEP_FILTER 0 | ||
| 1944 | +%define CONFIG_FREEZEDETECT_FILTER 0 | ||
| 1945 | +%define CONFIG_FREEZEFRAMES_FILTER 0 | ||
| 1946 | +%define CONFIG_FREI0R_FILTER 0 | ||
| 1947 | +%define CONFIG_FSPP_FILTER 0 | ||
| 1948 | +%define CONFIG_GBLUR_FILTER 0 | ||
| 1949 | +%define CONFIG_GBLUR_VULKAN_FILTER 0 | ||
| 1950 | +%define CONFIG_GEQ_FILTER 0 | ||
| 1951 | +%define CONFIG_GRADFUN_FILTER 0 | ||
| 1952 | +%define CONFIG_GRAPHMONITOR_FILTER 0 | ||
| 1953 | +%define CONFIG_GRAYWORLD_FILTER 0 | ||
| 1954 | +%define CONFIG_GREYEDGE_FILTER 0 | ||
| 1955 | +%define CONFIG_GUIDED_FILTER 0 | ||
| 1956 | +%define CONFIG_HALDCLUT_FILTER 0 | ||
| 1957 | +%define CONFIG_HFLIP_FILTER 0 | ||
| 1958 | +%define CONFIG_HFLIP_VULKAN_FILTER 0 | ||
| 1959 | +%define CONFIG_HISTEQ_FILTER 0 | ||
| 1960 | +%define CONFIG_HISTOGRAM_FILTER 0 | ||
| 1961 | +%define CONFIG_HQDN3D_FILTER 0 | ||
| 1962 | +%define CONFIG_HQX_FILTER 0 | ||
| 1963 | +%define CONFIG_HSTACK_FILTER 0 | ||
| 1964 | +%define CONFIG_HSVHOLD_FILTER 0 | ||
| 1965 | +%define CONFIG_HSVKEY_FILTER 0 | ||
| 1966 | +%define CONFIG_HUE_FILTER 0 | ||
| 1967 | +%define CONFIG_HUESATURATION_FILTER 0 | ||
| 1968 | +%define CONFIG_HWDOWNLOAD_FILTER 0 | ||
| 1969 | +%define CONFIG_HWMAP_FILTER 0 | ||
| 1970 | +%define CONFIG_HWUPLOAD_FILTER 0 | ||
| 1971 | +%define CONFIG_HWUPLOAD_CUDA_FILTER 0 | ||
| 1972 | +%define CONFIG_HYSTERESIS_FILTER 0 | ||
| 1973 | +%define CONFIG_IDENTITY_FILTER 0 | ||
| 1974 | +%define CONFIG_IDET_FILTER 0 | ||
| 1975 | +%define CONFIG_IL_FILTER 0 | ||
| 1976 | +%define CONFIG_INFLATE_FILTER 0 | ||
| 1977 | +%define CONFIG_INTERLACE_FILTER 0 | ||
| 1978 | +%define CONFIG_INTERLEAVE_FILTER 0 | ||
| 1979 | +%define CONFIG_KERNDEINT_FILTER 0 | ||
| 1980 | +%define CONFIG_KIRSCH_FILTER 0 | ||
| 1981 | +%define CONFIG_LAGFUN_FILTER 0 | ||
| 1982 | +%define CONFIG_LATENCY_FILTER 0 | ||
| 1983 | +%define CONFIG_LENSCORRECTION_FILTER 0 | ||
| 1984 | +%define CONFIG_LENSFUN_FILTER 0 | ||
| 1985 | +%define CONFIG_LIBPLACEBO_FILTER 0 | ||
| 1986 | +%define CONFIG_LIBVMAF_FILTER 0 | ||
| 1987 | +%define CONFIG_LIMITDIFF_FILTER 0 | ||
| 1988 | +%define CONFIG_LIMITER_FILTER 0 | ||
| 1989 | +%define CONFIG_LOOP_FILTER 0 | ||
| 1990 | +%define CONFIG_LUMAKEY_FILTER 0 | ||
| 1991 | +%define CONFIG_LUT_FILTER 0 | ||
| 1992 | +%define CONFIG_LUT1D_FILTER 0 | ||
| 1993 | +%define CONFIG_LUT2_FILTER 0 | ||
| 1994 | +%define CONFIG_LUT3D_FILTER 0 | ||
| 1995 | +%define CONFIG_LUTRGB_FILTER 0 | ||
| 1996 | +%define CONFIG_LUTYUV_FILTER 0 | ||
| 1997 | +%define CONFIG_MASKEDCLAMP_FILTER 0 | ||
| 1998 | +%define CONFIG_MASKEDMAX_FILTER 0 | ||
| 1999 | +%define CONFIG_MASKEDMERGE_FILTER 0 | ||
| 2000 | +%define CONFIG_MASKEDMIN_FILTER 0 | ||
| 2001 | +%define CONFIG_MASKEDTHRESHOLD_FILTER 0 | ||
| 2002 | +%define CONFIG_MASKFUN_FILTER 0 | ||
| 2003 | +%define CONFIG_MCDEINT_FILTER 0 | ||
| 2004 | +%define CONFIG_MEDIAN_FILTER 0 | ||
| 2005 | +%define CONFIG_MERGEPLANES_FILTER 0 | ||
| 2006 | +%define CONFIG_MESTIMATE_FILTER 0 | ||
| 2007 | +%define CONFIG_METADATA_FILTER 0 | ||
| 2008 | +%define CONFIG_MIDEQUALIZER_FILTER 0 | ||
| 2009 | +%define CONFIG_MINTERPOLATE_FILTER 0 | ||
| 2010 | +%define CONFIG_MIX_FILTER 0 | ||
| 2011 | +%define CONFIG_MONOCHROME_FILTER 0 | ||
| 2012 | +%define CONFIG_MORPHO_FILTER 0 | ||
| 2013 | +%define CONFIG_MPDECIMATE_FILTER 0 | ||
| 2014 | +%define CONFIG_MSAD_FILTER 0 | ||
| 2015 | +%define CONFIG_NEGATE_FILTER 0 | ||
| 2016 | +%define CONFIG_NLMEANS_FILTER 0 | ||
| 2017 | +%define CONFIG_NLMEANS_OPENCL_FILTER 0 | ||
| 2018 | +%define CONFIG_NNEDI_FILTER 0 | ||
| 2019 | +%define CONFIG_NOFORMAT_FILTER 0 | ||
| 2020 | +%define CONFIG_NOISE_FILTER 0 | ||
| 2021 | +%define CONFIG_NORMALIZE_FILTER 0 | ||
| 2022 | +%define CONFIG_NULL_FILTER 0 | ||
| 2023 | +%define CONFIG_OCR_FILTER 0 | ||
| 2024 | +%define CONFIG_OCV_FILTER 0 | ||
| 2025 | +%define CONFIG_OSCILLOSCOPE_FILTER 0 | ||
| 2026 | +%define CONFIG_OVERLAY_FILTER 0 | ||
| 2027 | +%define CONFIG_OVERLAY_OPENCL_FILTER 0 | ||
| 2028 | +%define CONFIG_OVERLAY_QSV_FILTER 0 | ||
| 2029 | +%define CONFIG_OVERLAY_VAAPI_FILTER 0 | ||
| 2030 | +%define CONFIG_OVERLAY_VULKAN_FILTER 0 | ||
| 2031 | +%define CONFIG_OVERLAY_CUDA_FILTER 0 | ||
| 2032 | +%define CONFIG_OWDENOISE_FILTER 0 | ||
| 2033 | +%define CONFIG_PAD_FILTER 0 | ||
| 2034 | +%define CONFIG_PAD_OPENCL_FILTER 0 | ||
| 2035 | +%define CONFIG_PALETTEGEN_FILTER 0 | ||
| 2036 | +%define CONFIG_PALETTEUSE_FILTER 0 | ||
| 2037 | +%define CONFIG_PERMS_FILTER 0 | ||
| 2038 | +%define CONFIG_PERSPECTIVE_FILTER 0 | ||
| 2039 | +%define CONFIG_PHASE_FILTER 0 | ||
| 2040 | +%define CONFIG_PHOTOSENSITIVITY_FILTER 0 | ||
| 2041 | +%define CONFIG_PIXDESCTEST_FILTER 0 | ||
| 2042 | +%define CONFIG_PIXSCOPE_FILTER 0 | ||
| 2043 | +%define CONFIG_PP_FILTER 0 | ||
| 2044 | +%define CONFIG_PP7_FILTER 0 | ||
| 2045 | +%define CONFIG_PREMULTIPLY_FILTER 0 | ||
| 2046 | +%define CONFIG_PREWITT_FILTER 0 | ||
| 2047 | +%define CONFIG_PREWITT_OPENCL_FILTER 0 | ||
| 2048 | +%define CONFIG_PROCAMP_VAAPI_FILTER 0 | ||
| 2049 | +%define CONFIG_PROGRAM_OPENCL_FILTER 0 | ||
| 2050 | +%define CONFIG_PSEUDOCOLOR_FILTER 0 | ||
| 2051 | +%define CONFIG_PSNR_FILTER 0 | ||
| 2052 | +%define CONFIG_PULLUP_FILTER 0 | ||
| 2053 | +%define CONFIG_QP_FILTER 0 | ||
| 2054 | +%define CONFIG_RANDOM_FILTER 0 | ||
| 2055 | +%define CONFIG_READEIA608_FILTER 0 | ||
| 2056 | +%define CONFIG_READVITC_FILTER 0 | ||
| 2057 | +%define CONFIG_REALTIME_FILTER 0 | ||
| 2058 | +%define CONFIG_REMAP_FILTER 0 | ||
| 2059 | +%define CONFIG_REMOVEGRAIN_FILTER 0 | ||
| 2060 | +%define CONFIG_REMOVELOGO_FILTER 0 | ||
| 2061 | +%define CONFIG_REPEATFIELDS_FILTER 0 | ||
| 2062 | +%define CONFIG_REVERSE_FILTER 0 | ||
| 2063 | +%define CONFIG_RGBASHIFT_FILTER 0 | ||
| 2064 | +%define CONFIG_ROBERTS_FILTER 0 | ||
| 2065 | +%define CONFIG_ROBERTS_OPENCL_FILTER 0 | ||
| 2066 | +%define CONFIG_ROTATE_FILTER 0 | ||
| 2067 | +%define CONFIG_SAB_FILTER 0 | ||
| 2068 | +%define CONFIG_SCALE_FILTER 0 | ||
| 2069 | +%define CONFIG_SCALE_CUDA_FILTER 0 | ||
| 2070 | +%define CONFIG_SCALE_NPP_FILTER 0 | ||
| 2071 | +%define CONFIG_SCALE_QSV_FILTER 0 | ||
| 2072 | +%define CONFIG_SCALE_VAAPI_FILTER 0 | ||
| 2073 | +%define CONFIG_SCALE_VULKAN_FILTER 0 | ||
| 2074 | +%define CONFIG_SCALE2REF_FILTER 0 | ||
| 2075 | +%define CONFIG_SCALE2REF_NPP_FILTER 0 | ||
| 2076 | +%define CONFIG_SCDET_FILTER 0 | ||
| 2077 | +%define CONFIG_SCHARR_FILTER 0 | ||
| 2078 | +%define CONFIG_SCROLL_FILTER 0 | ||
| 2079 | +%define CONFIG_SEGMENT_FILTER 0 | ||
| 2080 | +%define CONFIG_SELECT_FILTER 0 | ||
| 2081 | +%define CONFIG_SELECTIVECOLOR_FILTER 0 | ||
| 2082 | +%define CONFIG_SENDCMD_FILTER 0 | ||
| 2083 | +%define CONFIG_SEPARATEFIELDS_FILTER 0 | ||
| 2084 | +%define CONFIG_SETDAR_FILTER 0 | ||
| 2085 | +%define CONFIG_SETFIELD_FILTER 0 | ||
| 2086 | +%define CONFIG_SETPARAMS_FILTER 0 | ||
| 2087 | +%define CONFIG_SETPTS_FILTER 0 | ||
| 2088 | +%define CONFIG_SETRANGE_FILTER 0 | ||
| 2089 | +%define CONFIG_SETSAR_FILTER 0 | ||
| 2090 | +%define CONFIG_SETTB_FILTER 0 | ||
| 2091 | +%define CONFIG_SHARPEN_NPP_FILTER 0 | ||
| 2092 | +%define CONFIG_SHARPNESS_VAAPI_FILTER 0 | ||
| 2093 | +%define CONFIG_SHEAR_FILTER 0 | ||
| 2094 | +%define CONFIG_SHOWINFO_FILTER 0 | ||
| 2095 | +%define CONFIG_SHOWPALETTE_FILTER 0 | ||
| 2096 | +%define CONFIG_SHUFFLEFRAMES_FILTER 0 | ||
| 2097 | +%define CONFIG_SHUFFLEPIXELS_FILTER 0 | ||
| 2098 | +%define CONFIG_SHUFFLEPLANES_FILTER 0 | ||
| 2099 | +%define CONFIG_SIDEDATA_FILTER 0 | ||
| 2100 | +%define CONFIG_SIGNALSTATS_FILTER 0 | ||
| 2101 | +%define CONFIG_SIGNATURE_FILTER 0 | ||
| 2102 | +%define CONFIG_SMARTBLUR_FILTER 0 | ||
| 2103 | +%define CONFIG_SOBEL_FILTER 0 | ||
| 2104 | +%define CONFIG_SOBEL_OPENCL_FILTER 0 | ||
| 2105 | +%define CONFIG_SPLIT_FILTER 0 | ||
| 2106 | +%define CONFIG_SPP_FILTER 0 | ||
| 2107 | +%define CONFIG_SR_FILTER 0 | ||
| 2108 | +%define CONFIG_SSIM_FILTER 0 | ||
| 2109 | +%define CONFIG_STEREO3D_FILTER 0 | ||
| 2110 | +%define CONFIG_STREAMSELECT_FILTER 0 | ||
| 2111 | +%define CONFIG_SUBTITLES_FILTER 0 | ||
| 2112 | +%define CONFIG_SUPER2XSAI_FILTER 0 | ||
| 2113 | +%define CONFIG_SWAPRECT_FILTER 0 | ||
| 2114 | +%define CONFIG_SWAPUV_FILTER 0 | ||
| 2115 | +%define CONFIG_TBLEND_FILTER 0 | ||
| 2116 | +%define CONFIG_TELECINE_FILTER 0 | ||
| 2117 | +%define CONFIG_THISTOGRAM_FILTER 0 | ||
| 2118 | +%define CONFIG_THRESHOLD_FILTER 0 | ||
| 2119 | +%define CONFIG_THUMBNAIL_FILTER 0 | ||
| 2120 | +%define CONFIG_THUMBNAIL_CUDA_FILTER 0 | ||
| 2121 | +%define CONFIG_TILE_FILTER 0 | ||
| 2122 | +%define CONFIG_TINTERLACE_FILTER 0 | ||
| 2123 | +%define CONFIG_TLUT2_FILTER 0 | ||
| 2124 | +%define CONFIG_TMEDIAN_FILTER 0 | ||
| 2125 | +%define CONFIG_TMIDEQUALIZER_FILTER 0 | ||
| 2126 | +%define CONFIG_TMIX_FILTER 0 | ||
| 2127 | +%define CONFIG_TONEMAP_FILTER 0 | ||
| 2128 | +%define CONFIG_TONEMAP_OPENCL_FILTER 0 | ||
| 2129 | +%define CONFIG_TONEMAP_VAAPI_FILTER 0 | ||
| 2130 | +%define CONFIG_TPAD_FILTER 0 | ||
| 2131 | +%define CONFIG_TRANSPOSE_FILTER 0 | ||
| 2132 | +%define CONFIG_TRANSPOSE_NPP_FILTER 0 | ||
| 2133 | +%define CONFIG_TRANSPOSE_OPENCL_FILTER 0 | ||
| 2134 | +%define CONFIG_TRANSPOSE_VAAPI_FILTER 0 | ||
| 2135 | +%define CONFIG_TRANSPOSE_VULKAN_FILTER 0 | ||
| 2136 | +%define CONFIG_TRIM_FILTER 0 | ||
| 2137 | +%define CONFIG_UNPREMULTIPLY_FILTER 0 | ||
| 2138 | +%define CONFIG_UNSHARP_FILTER 0 | ||
| 2139 | +%define CONFIG_UNSHARP_OPENCL_FILTER 0 | ||
| 2140 | +%define CONFIG_UNTILE_FILTER 0 | ||
| 2141 | +%define CONFIG_USPP_FILTER 0 | ||
| 2142 | +%define CONFIG_V360_FILTER 0 | ||
| 2143 | +%define CONFIG_VAGUEDENOISER_FILTER 0 | ||
| 2144 | +%define CONFIG_VARBLUR_FILTER 0 | ||
| 2145 | +%define CONFIG_VECTORSCOPE_FILTER 0 | ||
| 2146 | +%define CONFIG_VFLIP_FILTER 0 | ||
| 2147 | +%define CONFIG_VFLIP_VULKAN_FILTER 0 | ||
| 2148 | +%define CONFIG_VFRDET_FILTER 0 | ||
| 2149 | +%define CONFIG_VIBRANCE_FILTER 0 | ||
| 2150 | +%define CONFIG_VIDSTABDETECT_FILTER 0 | ||
| 2151 | +%define CONFIG_VIDSTABTRANSFORM_FILTER 0 | ||
| 2152 | +%define CONFIG_VIF_FILTER 0 | ||
| 2153 | +%define CONFIG_VIGNETTE_FILTER 0 | ||
| 2154 | +%define CONFIG_VMAFMOTION_FILTER 0 | ||
| 2155 | +%define CONFIG_VPP_QSV_FILTER 0 | ||
| 2156 | +%define CONFIG_VSTACK_FILTER 0 | ||
| 2157 | +%define CONFIG_W3FDIF_FILTER 0 | ||
| 2158 | +%define CONFIG_WAVEFORM_FILTER 0 | ||
| 2159 | +%define CONFIG_WEAVE_FILTER 0 | ||
| 2160 | +%define CONFIG_XBR_FILTER 0 | ||
| 2161 | +%define CONFIG_XCORRELATE_FILTER 0 | ||
| 2162 | +%define CONFIG_XFADE_FILTER 0 | ||
| 2163 | +%define CONFIG_XFADE_OPENCL_FILTER 0 | ||
| 2164 | +%define CONFIG_XMEDIAN_FILTER 0 | ||
| 2165 | +%define CONFIG_XSTACK_FILTER 0 | ||
| 2166 | +%define CONFIG_YADIF_FILTER 0 | ||
| 2167 | +%define CONFIG_YADIF_CUDA_FILTER 0 | ||
| 2168 | +%define CONFIG_YADIF_VIDEOTOOLBOX_FILTER 0 | ||
| 2169 | +%define CONFIG_YAEPBLUR_FILTER 0 | ||
| 2170 | +%define CONFIG_ZMQ_FILTER 0 | ||
| 2171 | +%define CONFIG_ZOOMPAN_FILTER 0 | ||
| 2172 | +%define CONFIG_ZSCALE_FILTER 0 | ||
| 2173 | +%define CONFIG_ALLRGB_FILTER 0 | ||
| 2174 | +%define CONFIG_ALLYUV_FILTER 0 | ||
| 2175 | +%define CONFIG_CELLAUTO_FILTER 0 | ||
| 2176 | +%define CONFIG_COLOR_FILTER 0 | ||
| 2177 | +%define CONFIG_COLORSPECTRUM_FILTER 0 | ||
| 2178 | +%define CONFIG_COREIMAGESRC_FILTER 0 | ||
| 2179 | +%define CONFIG_FREI0R_SRC_FILTER 0 | ||
| 2180 | +%define CONFIG_GRADIENTS_FILTER 0 | ||
| 2181 | +%define CONFIG_HALDCLUTSRC_FILTER 0 | ||
| 2182 | +%define CONFIG_LIFE_FILTER 0 | ||
| 2183 | +%define CONFIG_MANDELBROT_FILTER 0 | ||
| 2184 | +%define CONFIG_MPTESTSRC_FILTER 0 | ||
| 2185 | +%define CONFIG_NULLSRC_FILTER 0 | ||
| 2186 | +%define CONFIG_OPENCLSRC_FILTER 0 | ||
| 2187 | +%define CONFIG_PAL75BARS_FILTER 0 | ||
| 2188 | +%define CONFIG_PAL100BARS_FILTER 0 | ||
| 2189 | +%define CONFIG_RGBTESTSRC_FILTER 0 | ||
| 2190 | +%define CONFIG_SIERPINSKI_FILTER 0 | ||
| 2191 | +%define CONFIG_SMPTEBARS_FILTER 0 | ||
| 2192 | +%define CONFIG_SMPTEHDBARS_FILTER 0 | ||
| 2193 | +%define CONFIG_TESTSRC_FILTER 0 | ||
| 2194 | +%define CONFIG_TESTSRC2_FILTER 0 | ||
| 2195 | +%define CONFIG_YUVTESTSRC_FILTER 0 | ||
| 2196 | +%define CONFIG_NULLSINK_FILTER 0 | ||
| 2197 | +%define CONFIG_ABITSCOPE_FILTER 0 | ||
| 2198 | +%define CONFIG_ADRAWGRAPH_FILTER 0 | ||
| 2199 | +%define CONFIG_AGRAPHMONITOR_FILTER 0 | ||
| 2200 | +%define CONFIG_AHISTOGRAM_FILTER 0 | ||
| 2201 | +%define CONFIG_APHASEMETER_FILTER 0 | ||
| 2202 | +%define CONFIG_AVECTORSCOPE_FILTER 0 | ||
| 2203 | +%define CONFIG_CONCAT_FILTER 0 | ||
| 2204 | +%define CONFIG_SHOWCQT_FILTER 0 | ||
| 2205 | +%define CONFIG_SHOWFREQS_FILTER 0 | ||
| 2206 | +%define CONFIG_SHOWSPATIAL_FILTER 0 | ||
| 2207 | +%define CONFIG_SHOWSPECTRUM_FILTER 0 | ||
| 2208 | +%define CONFIG_SHOWSPECTRUMPIC_FILTER 0 | ||
| 2209 | +%define CONFIG_SHOWVOLUME_FILTER 0 | ||
| 2210 | +%define CONFIG_SHOWWAVES_FILTER 0 | ||
| 2211 | +%define CONFIG_SHOWWAVESPIC_FILTER 0 | ||
| 2212 | +%define CONFIG_SPECTRUMSYNTH_FILTER 0 | ||
| 2213 | +%define CONFIG_AMOVIE_FILTER 0 | ||
| 2214 | +%define CONFIG_MOVIE_FILTER 0 | ||
| 2215 | +%define CONFIG_AFIFO_FILTER 0 | ||
| 2216 | +%define CONFIG_FIFO_FILTER 0 | ||
| 2217 | +%define CONFIG_AA_DEMUXER 0 | ||
| 2218 | +%define CONFIG_AAC_DEMUXER 1 | ||
| 2219 | +%define CONFIG_AAX_DEMUXER 0 | ||
| 2220 | +%define CONFIG_AC3_DEMUXER 0 | ||
| 2221 | +%define CONFIG_ACE_DEMUXER 0 | ||
| 2222 | +%define CONFIG_ACM_DEMUXER 0 | ||
| 2223 | +%define CONFIG_ACT_DEMUXER 0 | ||
| 2224 | +%define CONFIG_ADF_DEMUXER 0 | ||
| 2225 | +%define CONFIG_ADP_DEMUXER 0 | ||
| 2226 | +%define CONFIG_ADS_DEMUXER 0 | ||
| 2227 | +%define CONFIG_ADX_DEMUXER 0 | ||
| 2228 | +%define CONFIG_AEA_DEMUXER 0 | ||
| 2229 | +%define CONFIG_AFC_DEMUXER 0 | ||
| 2230 | +%define CONFIG_AIFF_DEMUXER 0 | ||
| 2231 | +%define CONFIG_AIX_DEMUXER 0 | ||
| 2232 | +%define CONFIG_ALP_DEMUXER 0 | ||
| 2233 | +%define CONFIG_AMR_DEMUXER 0 | ||
| 2234 | +%define CONFIG_AMRNB_DEMUXER 0 | ||
| 2235 | +%define CONFIG_AMRWB_DEMUXER 0 | ||
| 2236 | +%define CONFIG_ANM_DEMUXER 0 | ||
| 2237 | +%define CONFIG_APC_DEMUXER 0 | ||
| 2238 | +%define CONFIG_APE_DEMUXER 0 | ||
| 2239 | +%define CONFIG_APM_DEMUXER 0 | ||
| 2240 | +%define CONFIG_APNG_DEMUXER 0 | ||
| 2241 | +%define CONFIG_APTX_DEMUXER 0 | ||
| 2242 | +%define CONFIG_APTX_HD_DEMUXER 0 | ||
| 2243 | +%define CONFIG_AQTITLE_DEMUXER 0 | ||
| 2244 | +%define CONFIG_ARGO_ASF_DEMUXER 0 | ||
| 2245 | +%define CONFIG_ARGO_BRP_DEMUXER 0 | ||
| 2246 | +%define CONFIG_ARGO_CVG_DEMUXER 0 | ||
| 2247 | +%define CONFIG_ASF_DEMUXER 0 | ||
| 2248 | +%define CONFIG_ASF_O_DEMUXER 0 | ||
| 2249 | +%define CONFIG_ASS_DEMUXER 0 | ||
| 2250 | +%define CONFIG_AST_DEMUXER 0 | ||
| 2251 | +%define CONFIG_AU_DEMUXER 0 | ||
| 2252 | +%define CONFIG_AV1_DEMUXER 0 | ||
| 2253 | +%define CONFIG_AVI_DEMUXER 0 | ||
| 2254 | +%define CONFIG_AVISYNTH_DEMUXER 0 | ||
| 2255 | +%define CONFIG_AVR_DEMUXER 0 | ||
| 2256 | +%define CONFIG_AVS_DEMUXER 0 | ||
| 2257 | +%define CONFIG_AVS2_DEMUXER 0 | ||
| 2258 | +%define CONFIG_AVS3_DEMUXER 0 | ||
| 2259 | +%define CONFIG_BETHSOFTVID_DEMUXER 0 | ||
| 2260 | +%define CONFIG_BFI_DEMUXER 0 | ||
| 2261 | +%define CONFIG_BINTEXT_DEMUXER 0 | ||
| 2262 | +%define CONFIG_BINK_DEMUXER 0 | ||
| 2263 | +%define CONFIG_BINKA_DEMUXER 0 | ||
| 2264 | +%define CONFIG_BIT_DEMUXER 0 | ||
| 2265 | +%define CONFIG_BITPACKED_DEMUXER 0 | ||
| 2266 | +%define CONFIG_BMV_DEMUXER 0 | ||
| 2267 | +%define CONFIG_BFSTM_DEMUXER 0 | ||
| 2268 | +%define CONFIG_BRSTM_DEMUXER 0 | ||
| 2269 | +%define CONFIG_BOA_DEMUXER 0 | ||
| 2270 | +%define CONFIG_C93_DEMUXER 0 | ||
| 2271 | +%define CONFIG_CAF_DEMUXER 0 | ||
| 2272 | +%define CONFIG_CAVSVIDEO_DEMUXER 0 | ||
| 2273 | +%define CONFIG_CDG_DEMUXER 0 | ||
| 2274 | +%define CONFIG_CDXL_DEMUXER 0 | ||
| 2275 | +%define CONFIG_CINE_DEMUXER 0 | ||
| 2276 | +%define CONFIG_CODEC2_DEMUXER 0 | ||
| 2277 | +%define CONFIG_CODEC2RAW_DEMUXER 0 | ||
| 2278 | +%define CONFIG_CONCAT_DEMUXER 0 | ||
| 2279 | +%define CONFIG_DASH_DEMUXER 0 | ||
| 2280 | +%define CONFIG_DATA_DEMUXER 0 | ||
| 2281 | +%define CONFIG_DAUD_DEMUXER 0 | ||
| 2282 | +%define CONFIG_DCSTR_DEMUXER 0 | ||
| 2283 | +%define CONFIG_DERF_DEMUXER 0 | ||
| 2284 | +%define CONFIG_DFA_DEMUXER 0 | ||
| 2285 | +%define CONFIG_DHAV_DEMUXER 0 | ||
| 2286 | +%define CONFIG_DIRAC_DEMUXER 0 | ||
| 2287 | +%define CONFIG_DNXHD_DEMUXER 0 | ||
| 2288 | +%define CONFIG_DSF_DEMUXER 0 | ||
| 2289 | +%define CONFIG_DSICIN_DEMUXER 0 | ||
| 2290 | +%define CONFIG_DSS_DEMUXER 0 | ||
| 2291 | +%define CONFIG_DTS_DEMUXER 0 | ||
| 2292 | +%define CONFIG_DTSHD_DEMUXER 0 | ||
| 2293 | +%define CONFIG_DV_DEMUXER 0 | ||
| 2294 | +%define CONFIG_DVBSUB_DEMUXER 0 | ||
| 2295 | +%define CONFIG_DVBTXT_DEMUXER 0 | ||
| 2296 | +%define CONFIG_DXA_DEMUXER 0 | ||
| 2297 | +%define CONFIG_EA_DEMUXER 0 | ||
| 2298 | +%define CONFIG_EA_CDATA_DEMUXER 0 | ||
| 2299 | +%define CONFIG_EAC3_DEMUXER 0 | ||
| 2300 | +%define CONFIG_EPAF_DEMUXER 0 | ||
| 2301 | +%define CONFIG_FFMETADATA_DEMUXER 0 | ||
| 2302 | +%define CONFIG_FILMSTRIP_DEMUXER 0 | ||
| 2303 | +%define CONFIG_FITS_DEMUXER 0 | ||
| 2304 | +%define CONFIG_FLAC_DEMUXER 1 | ||
| 2305 | +%define CONFIG_FLIC_DEMUXER 0 | ||
| 2306 | +%define CONFIG_FLV_DEMUXER 0 | ||
| 2307 | +%define CONFIG_LIVE_FLV_DEMUXER 0 | ||
| 2308 | +%define CONFIG_FOURXM_DEMUXER 0 | ||
| 2309 | +%define CONFIG_FRM_DEMUXER 0 | ||
| 2310 | +%define CONFIG_FSB_DEMUXER 0 | ||
| 2311 | +%define CONFIG_FWSE_DEMUXER 0 | ||
| 2312 | +%define CONFIG_G722_DEMUXER 0 | ||
| 2313 | +%define CONFIG_G723_1_DEMUXER 0 | ||
| 2314 | +%define CONFIG_G726_DEMUXER 0 | ||
| 2315 | +%define CONFIG_G726LE_DEMUXER 0 | ||
| 2316 | +%define CONFIG_G729_DEMUXER 0 | ||
| 2317 | +%define CONFIG_GDV_DEMUXER 0 | ||
| 2318 | +%define CONFIG_GENH_DEMUXER 0 | ||
| 2319 | +%define CONFIG_GIF_DEMUXER 0 | ||
| 2320 | +%define CONFIG_GSM_DEMUXER 0 | ||
| 2321 | +%define CONFIG_GXF_DEMUXER 0 | ||
| 2322 | +%define CONFIG_H261_DEMUXER 0 | ||
| 2323 | +%define CONFIG_H263_DEMUXER 0 | ||
| 2324 | +%define CONFIG_H264_DEMUXER 0 | ||
| 2325 | +%define CONFIG_HCA_DEMUXER 0 | ||
| 2326 | +%define CONFIG_HCOM_DEMUXER 0 | ||
| 2327 | +%define CONFIG_HEVC_DEMUXER 0 | ||
| 2328 | +%define CONFIG_HLS_DEMUXER 0 | ||
| 2329 | +%define CONFIG_HNM_DEMUXER 0 | ||
| 2330 | +%define CONFIG_ICO_DEMUXER 0 | ||
| 2331 | +%define CONFIG_IDCIN_DEMUXER 0 | ||
| 2332 | +%define CONFIG_IDF_DEMUXER 0 | ||
| 2333 | +%define CONFIG_IFF_DEMUXER 0 | ||
| 2334 | +%define CONFIG_IFV_DEMUXER 0 | ||
| 2335 | +%define CONFIG_ILBC_DEMUXER 0 | ||
| 2336 | +%define CONFIG_IMAGE2_DEMUXER 0 | ||
| 2337 | +%define CONFIG_IMAGE2PIPE_DEMUXER 0 | ||
| 2338 | +%define CONFIG_IMAGE2_ALIAS_PIX_DEMUXER 0 | ||
| 2339 | +%define CONFIG_IMAGE2_BRENDER_PIX_DEMUXER 0 | ||
| 2340 | +%define CONFIG_IMF_DEMUXER 0 | ||
| 2341 | +%define CONFIG_INGENIENT_DEMUXER 0 | ||
| 2342 | +%define CONFIG_IPMOVIE_DEMUXER 0 | ||
| 2343 | +%define CONFIG_IPU_DEMUXER 0 | ||
| 2344 | +%define CONFIG_IRCAM_DEMUXER 0 | ||
| 2345 | +%define CONFIG_ISS_DEMUXER 0 | ||
| 2346 | +%define CONFIG_IV8_DEMUXER 0 | ||
| 2347 | +%define CONFIG_IVF_DEMUXER 0 | ||
| 2348 | +%define CONFIG_IVR_DEMUXER 0 | ||
| 2349 | +%define CONFIG_JACOSUB_DEMUXER 0 | ||
| 2350 | +%define CONFIG_JV_DEMUXER 0 | ||
| 2351 | +%define CONFIG_KUX_DEMUXER 0 | ||
| 2352 | +%define CONFIG_KVAG_DEMUXER 0 | ||
| 2353 | +%define CONFIG_LMLM4_DEMUXER 0 | ||
| 2354 | +%define CONFIG_LOAS_DEMUXER 0 | ||
| 2355 | +%define CONFIG_LUODAT_DEMUXER 0 | ||
| 2356 | +%define CONFIG_LRC_DEMUXER 0 | ||
| 2357 | +%define CONFIG_LVF_DEMUXER 0 | ||
| 2358 | +%define CONFIG_LXF_DEMUXER 0 | ||
| 2359 | +%define CONFIG_M4V_DEMUXER 0 | ||
| 2360 | +%define CONFIG_MCA_DEMUXER 0 | ||
| 2361 | +%define CONFIG_MCC_DEMUXER 0 | ||
| 2362 | +%define CONFIG_MATROSKA_DEMUXER 1 | ||
| 2363 | +%define CONFIG_MGSTS_DEMUXER 0 | ||
| 2364 | +%define CONFIG_MICRODVD_DEMUXER 0 | ||
| 2365 | +%define CONFIG_MJPEG_DEMUXER 0 | ||
| 2366 | +%define CONFIG_MJPEG_2000_DEMUXER 0 | ||
| 2367 | +%define CONFIG_MLP_DEMUXER 0 | ||
| 2368 | +%define CONFIG_MLV_DEMUXER 0 | ||
| 2369 | +%define CONFIG_MM_DEMUXER 0 | ||
| 2370 | +%define CONFIG_MMF_DEMUXER 0 | ||
| 2371 | +%define CONFIG_MODS_DEMUXER 0 | ||
| 2372 | +%define CONFIG_MOFLEX_DEMUXER 0 | ||
| 2373 | +%define CONFIG_MOV_DEMUXER 1 | ||
| 2374 | +%define CONFIG_MP3_DEMUXER 1 | ||
| 2375 | +%define CONFIG_MPC_DEMUXER 0 | ||
| 2376 | +%define CONFIG_MPC8_DEMUXER 0 | ||
| 2377 | +%define CONFIG_MPEGPS_DEMUXER 0 | ||
| 2378 | +%define CONFIG_MPEGTS_DEMUXER 0 | ||
| 2379 | +%define CONFIG_MPEGTSRAW_DEMUXER 0 | ||
| 2380 | +%define CONFIG_MPEGVIDEO_DEMUXER 0 | ||
| 2381 | +%define CONFIG_MPJPEG_DEMUXER 0 | ||
| 2382 | +%define CONFIG_MPL2_DEMUXER 0 | ||
| 2383 | +%define CONFIG_MPSUB_DEMUXER 0 | ||
| 2384 | +%define CONFIG_MSF_DEMUXER 0 | ||
| 2385 | +%define CONFIG_MSNWC_TCP_DEMUXER 0 | ||
| 2386 | +%define CONFIG_MSP_DEMUXER 0 | ||
| 2387 | +%define CONFIG_MTAF_DEMUXER 0 | ||
| 2388 | +%define CONFIG_MTV_DEMUXER 0 | ||
| 2389 | +%define CONFIG_MUSX_DEMUXER 0 | ||
| 2390 | +%define CONFIG_MV_DEMUXER 0 | ||
| 2391 | +%define CONFIG_MVI_DEMUXER 0 | ||
| 2392 | +%define CONFIG_MXF_DEMUXER 0 | ||
| 2393 | +%define CONFIG_MXG_DEMUXER 0 | ||
| 2394 | +%define CONFIG_NC_DEMUXER 0 | ||
| 2395 | +%define CONFIG_NISTSPHERE_DEMUXER 0 | ||
| 2396 | +%define CONFIG_NSP_DEMUXER 0 | ||
| 2397 | +%define CONFIG_NSV_DEMUXER 0 | ||
| 2398 | +%define CONFIG_NUT_DEMUXER 0 | ||
| 2399 | +%define CONFIG_NUV_DEMUXER 0 | ||
| 2400 | +%define CONFIG_OBU_DEMUXER 0 | ||
| 2401 | +%define CONFIG_OGG_DEMUXER 1 | ||
| 2402 | +%define CONFIG_OMA_DEMUXER 0 | ||
| 2403 | +%define CONFIG_PAF_DEMUXER 0 | ||
| 2404 | +%define CONFIG_PCM_ALAW_DEMUXER 0 | ||
| 2405 | +%define CONFIG_PCM_MULAW_DEMUXER 0 | ||
| 2406 | +%define CONFIG_PCM_VIDC_DEMUXER 0 | ||
| 2407 | +%define CONFIG_PCM_F64BE_DEMUXER 0 | ||
| 2408 | +%define CONFIG_PCM_F64LE_DEMUXER 0 | ||
| 2409 | +%define CONFIG_PCM_F32BE_DEMUXER 0 | ||
| 2410 | +%define CONFIG_PCM_F32LE_DEMUXER 0 | ||
| 2411 | +%define CONFIG_PCM_S32BE_DEMUXER 0 | ||
| 2412 | +%define CONFIG_PCM_S32LE_DEMUXER 0 | ||
| 2413 | +%define CONFIG_PCM_S24BE_DEMUXER 0 | ||
| 2414 | +%define CONFIG_PCM_S24LE_DEMUXER 0 | ||
| 2415 | +%define CONFIG_PCM_S16BE_DEMUXER 0 | ||
| 2416 | +%define CONFIG_PCM_S16LE_DEMUXER 0 | ||
| 2417 | +%define CONFIG_PCM_S8_DEMUXER 0 | ||
| 2418 | +%define CONFIG_PCM_U32BE_DEMUXER 0 | ||
| 2419 | +%define CONFIG_PCM_U32LE_DEMUXER 0 | ||
| 2420 | +%define CONFIG_PCM_U24BE_DEMUXER 0 | ||
| 2421 | +%define CONFIG_PCM_U24LE_DEMUXER 0 | ||
| 2422 | +%define CONFIG_PCM_U16BE_DEMUXER 0 | ||
| 2423 | +%define CONFIG_PCM_U16LE_DEMUXER 0 | ||
| 2424 | +%define CONFIG_PCM_U8_DEMUXER 0 | ||
| 2425 | +%define CONFIG_PJS_DEMUXER 0 | ||
| 2426 | +%define CONFIG_PMP_DEMUXER 0 | ||
| 2427 | +%define CONFIG_PP_BNK_DEMUXER 0 | ||
| 2428 | +%define CONFIG_PVA_DEMUXER 0 | ||
| 2429 | +%define CONFIG_PVF_DEMUXER 0 | ||
| 2430 | +%define CONFIG_QCP_DEMUXER 0 | ||
| 2431 | +%define CONFIG_R3D_DEMUXER 0 | ||
| 2432 | +%define CONFIG_RAWVIDEO_DEMUXER 0 | ||
| 2433 | +%define CONFIG_REALTEXT_DEMUXER 0 | ||
| 2434 | +%define CONFIG_REDSPARK_DEMUXER 0 | ||
| 2435 | +%define CONFIG_RL2_DEMUXER 0 | ||
| 2436 | +%define CONFIG_RM_DEMUXER 0 | ||
| 2437 | +%define CONFIG_ROQ_DEMUXER 0 | ||
| 2438 | +%define CONFIG_RPL_DEMUXER 0 | ||
| 2439 | +%define CONFIG_RSD_DEMUXER 0 | ||
| 2440 | +%define CONFIG_RSO_DEMUXER 0 | ||
| 2441 | +%define CONFIG_RTP_DEMUXER 0 | ||
| 2442 | +%define CONFIG_RTSP_DEMUXER 0 | ||
| 2443 | +%define CONFIG_S337M_DEMUXER 0 | ||
| 2444 | +%define CONFIG_SAMI_DEMUXER 0 | ||
| 2445 | +%define CONFIG_SAP_DEMUXER 0 | ||
| 2446 | +%define CONFIG_SBC_DEMUXER 0 | ||
| 2447 | +%define CONFIG_SBG_DEMUXER 0 | ||
| 2448 | +%define CONFIG_SCC_DEMUXER 0 | ||
| 2449 | +%define CONFIG_SCD_DEMUXER 0 | ||
| 2450 | +%define CONFIG_SDP_DEMUXER 0 | ||
| 2451 | +%define CONFIG_SDR2_DEMUXER 0 | ||
| 2452 | +%define CONFIG_SDS_DEMUXER 0 | ||
| 2453 | +%define CONFIG_SDX_DEMUXER 0 | ||
| 2454 | +%define CONFIG_SEGAFILM_DEMUXER 0 | ||
| 2455 | +%define CONFIG_SER_DEMUXER 0 | ||
| 2456 | +%define CONFIG_SGA_DEMUXER 0 | ||
| 2457 | +%define CONFIG_SHORTEN_DEMUXER 0 | ||
| 2458 | +%define CONFIG_SIFF_DEMUXER 0 | ||
| 2459 | +%define CONFIG_SIMBIOSIS_IMX_DEMUXER 0 | ||
| 2460 | +%define CONFIG_SLN_DEMUXER 0 | ||
| 2461 | +%define CONFIG_SMACKER_DEMUXER 0 | ||
| 2462 | +%define CONFIG_SMJPEG_DEMUXER 0 | ||
| 2463 | +%define CONFIG_SMUSH_DEMUXER 0 | ||
| 2464 | +%define CONFIG_SOL_DEMUXER 0 | ||
| 2465 | +%define CONFIG_SOX_DEMUXER 0 | ||
| 2466 | +%define CONFIG_SPDIF_DEMUXER 0 | ||
| 2467 | +%define CONFIG_SRT_DEMUXER 0 | ||
| 2468 | +%define CONFIG_STR_DEMUXER 0 | ||
| 2469 | +%define CONFIG_STL_DEMUXER 0 | ||
| 2470 | +%define CONFIG_SUBVIEWER1_DEMUXER 0 | ||
| 2471 | +%define CONFIG_SUBVIEWER_DEMUXER 0 | ||
| 2472 | +%define CONFIG_SUP_DEMUXER 0 | ||
| 2473 | +%define CONFIG_SVAG_DEMUXER 0 | ||
| 2474 | +%define CONFIG_SVS_DEMUXER 0 | ||
| 2475 | +%define CONFIG_SWF_DEMUXER 0 | ||
| 2476 | +%define CONFIG_TAK_DEMUXER 0 | ||
| 2477 | +%define CONFIG_TEDCAPTIONS_DEMUXER 0 | ||
| 2478 | +%define CONFIG_THP_DEMUXER 0 | ||
| 2479 | +%define CONFIG_THREEDOSTR_DEMUXER 0 | ||
| 2480 | +%define CONFIG_TIERTEXSEQ_DEMUXER 0 | ||
| 2481 | +%define CONFIG_TMV_DEMUXER 0 | ||
| 2482 | +%define CONFIG_TRUEHD_DEMUXER 0 | ||
| 2483 | +%define CONFIG_TTA_DEMUXER 0 | ||
| 2484 | +%define CONFIG_TXD_DEMUXER 0 | ||
| 2485 | +%define CONFIG_TTY_DEMUXER 0 | ||
| 2486 | +%define CONFIG_TY_DEMUXER 0 | ||
| 2487 | +%define CONFIG_V210_DEMUXER 0 | ||
| 2488 | +%define CONFIG_V210X_DEMUXER 0 | ||
| 2489 | +%define CONFIG_VAG_DEMUXER 0 | ||
| 2490 | +%define CONFIG_VC1_DEMUXER 0 | ||
| 2491 | +%define CONFIG_VC1T_DEMUXER 0 | ||
| 2492 | +%define CONFIG_VIVIDAS_DEMUXER 0 | ||
| 2493 | +%define CONFIG_VIVO_DEMUXER 0 | ||
| 2494 | +%define CONFIG_VMD_DEMUXER 0 | ||
| 2495 | +%define CONFIG_VOBSUB_DEMUXER 0 | ||
| 2496 | +%define CONFIG_VOC_DEMUXER 0 | ||
| 2497 | +%define CONFIG_VPK_DEMUXER 0 | ||
| 2498 | +%define CONFIG_VPLAYER_DEMUXER 0 | ||
| 2499 | +%define CONFIG_VQF_DEMUXER 0 | ||
| 2500 | +%define CONFIG_W64_DEMUXER 0 | ||
| 2501 | +%define CONFIG_WAV_DEMUXER 1 | ||
| 2502 | +%define CONFIG_WC3_DEMUXER 0 | ||
| 2503 | +%define CONFIG_WEBM_DASH_MANIFEST_DEMUXER 0 | ||
| 2504 | +%define CONFIG_WEBVTT_DEMUXER 0 | ||
| 2505 | +%define CONFIG_WSAUD_DEMUXER 0 | ||
| 2506 | +%define CONFIG_WSD_DEMUXER 0 | ||
| 2507 | +%define CONFIG_WSVQA_DEMUXER 0 | ||
| 2508 | +%define CONFIG_WTV_DEMUXER 0 | ||
| 2509 | +%define CONFIG_WVE_DEMUXER 0 | ||
| 2510 | +%define CONFIG_WV_DEMUXER 0 | ||
| 2511 | +%define CONFIG_XA_DEMUXER 0 | ||
| 2512 | +%define CONFIG_XBIN_DEMUXER 0 | ||
| 2513 | +%define CONFIG_XMV_DEMUXER 0 | ||
| 2514 | +%define CONFIG_XVAG_DEMUXER 0 | ||
| 2515 | +%define CONFIG_XWMA_DEMUXER 0 | ||
| 2516 | +%define CONFIG_YOP_DEMUXER 0 | ||
| 2517 | +%define CONFIG_YUV4MPEGPIPE_DEMUXER 0 | ||
| 2518 | +%define CONFIG_IMAGE_BMP_PIPE_DEMUXER 0 | ||
| 2519 | +%define CONFIG_IMAGE_CRI_PIPE_DEMUXER 0 | ||
| 2520 | +%define CONFIG_IMAGE_DDS_PIPE_DEMUXER 0 | ||
| 2521 | +%define CONFIG_IMAGE_DPX_PIPE_DEMUXER 0 | ||
| 2522 | +%define CONFIG_IMAGE_EXR_PIPE_DEMUXER 0 | ||
| 2523 | +%define CONFIG_IMAGE_GEM_PIPE_DEMUXER 0 | ||
| 2524 | +%define CONFIG_IMAGE_GIF_PIPE_DEMUXER 0 | ||
| 2525 | +%define CONFIG_IMAGE_J2K_PIPE_DEMUXER 0 | ||
| 2526 | +%define CONFIG_IMAGE_JPEG_PIPE_DEMUXER 0 | ||
| 2527 | +%define CONFIG_IMAGE_JPEGLS_PIPE_DEMUXER 0 | ||
| 2528 | +%define CONFIG_IMAGE_PAM_PIPE_DEMUXER 0 | ||
| 2529 | +%define CONFIG_IMAGE_PBM_PIPE_DEMUXER 0 | ||
| 2530 | +%define CONFIG_IMAGE_PCX_PIPE_DEMUXER 0 | ||
| 2531 | +%define CONFIG_IMAGE_PGMYUV_PIPE_DEMUXER 0 | ||
| 2532 | +%define CONFIG_IMAGE_PGM_PIPE_DEMUXER 0 | ||
| 2533 | +%define CONFIG_IMAGE_PGX_PIPE_DEMUXER 0 | ||
| 2534 | +%define CONFIG_IMAGE_PHOTOCD_PIPE_DEMUXER 0 | ||
| 2535 | +%define CONFIG_IMAGE_PICTOR_PIPE_DEMUXER 0 | ||
| 2536 | +%define CONFIG_IMAGE_PNG_PIPE_DEMUXER 0 | ||
| 2537 | +%define CONFIG_IMAGE_PPM_PIPE_DEMUXER 0 | ||
| 2538 | +%define CONFIG_IMAGE_PSD_PIPE_DEMUXER 0 | ||
| 2539 | +%define CONFIG_IMAGE_QDRAW_PIPE_DEMUXER 0 | ||
| 2540 | +%define CONFIG_IMAGE_SGI_PIPE_DEMUXER 0 | ||
| 2541 | +%define CONFIG_IMAGE_SVG_PIPE_DEMUXER 0 | ||
| 2542 | +%define CONFIG_IMAGE_SUNRAST_PIPE_DEMUXER 0 | ||
| 2543 | +%define CONFIG_IMAGE_TIFF_PIPE_DEMUXER 0 | ||
| 2544 | +%define CONFIG_IMAGE_WEBP_PIPE_DEMUXER 0 | ||
| 2545 | +%define CONFIG_IMAGE_XBM_PIPE_DEMUXER 0 | ||
| 2546 | +%define CONFIG_IMAGE_XPM_PIPE_DEMUXER 0 | ||
| 2547 | +%define CONFIG_IMAGE_XWD_PIPE_DEMUXER 0 | ||
| 2548 | +%define CONFIG_LIBGME_DEMUXER 0 | ||
| 2549 | +%define CONFIG_LIBMODPLUG_DEMUXER 0 | ||
| 2550 | +%define CONFIG_LIBOPENMPT_DEMUXER 0 | ||
| 2551 | +%define CONFIG_VAPOURSYNTH_DEMUXER 0 | ||
| 2552 | +%define CONFIG_A64_MUXER 0 | ||
| 2553 | +%define CONFIG_AC3_MUXER 0 | ||
| 2554 | +%define CONFIG_ADTS_MUXER 0 | ||
| 2555 | +%define CONFIG_ADX_MUXER 0 | ||
| 2556 | +%define CONFIG_AIFF_MUXER 0 | ||
| 2557 | +%define CONFIG_ALP_MUXER 0 | ||
| 2558 | +%define CONFIG_AMR_MUXER 0 | ||
| 2559 | +%define CONFIG_AMV_MUXER 0 | ||
| 2560 | +%define CONFIG_APM_MUXER 0 | ||
| 2561 | +%define CONFIG_APNG_MUXER 0 | ||
| 2562 | +%define CONFIG_APTX_MUXER 0 | ||
| 2563 | +%define CONFIG_APTX_HD_MUXER 0 | ||
| 2564 | +%define CONFIG_ARGO_ASF_MUXER 0 | ||
| 2565 | +%define CONFIG_ARGO_CVG_MUXER 0 | ||
| 2566 | +%define CONFIG_ASF_MUXER 0 | ||
| 2567 | +%define CONFIG_ASS_MUXER 0 | ||
| 2568 | +%define CONFIG_AST_MUXER 0 | ||
| 2569 | +%define CONFIG_ASF_STREAM_MUXER 0 | ||
| 2570 | +%define CONFIG_AU_MUXER 0 | ||
| 2571 | +%define CONFIG_AVI_MUXER 0 | ||
| 2572 | +%define CONFIG_AVM2_MUXER 0 | ||
| 2573 | +%define CONFIG_AVS2_MUXER 0 | ||
| 2574 | +%define CONFIG_AVS3_MUXER 0 | ||
| 2575 | +%define CONFIG_BIT_MUXER 0 | ||
| 2576 | +%define CONFIG_CAF_MUXER 0 | ||
| 2577 | +%define CONFIG_CAVSVIDEO_MUXER 0 | ||
| 2578 | +%define CONFIG_CODEC2_MUXER 0 | ||
| 2579 | +%define CONFIG_CODEC2RAW_MUXER 0 | ||
| 2580 | +%define CONFIG_CRC_MUXER 0 | ||
| 2581 | +%define CONFIG_DASH_MUXER 0 | ||
| 2582 | +%define CONFIG_DATA_MUXER 0 | ||
| 2583 | +%define CONFIG_DAUD_MUXER 0 | ||
| 2584 | +%define CONFIG_DIRAC_MUXER 0 | ||
| 2585 | +%define CONFIG_DNXHD_MUXER 0 | ||
| 2586 | +%define CONFIG_DTS_MUXER 0 | ||
| 2587 | +%define CONFIG_DV_MUXER 0 | ||
| 2588 | +%define CONFIG_EAC3_MUXER 0 | ||
| 2589 | +%define CONFIG_F4V_MUXER 0 | ||
| 2590 | +%define CONFIG_FFMETADATA_MUXER 0 | ||
| 2591 | +%define CONFIG_FIFO_MUXER 0 | ||
| 2592 | +%define CONFIG_FIFO_TEST_MUXER 0 | ||
| 2593 | +%define CONFIG_FILMSTRIP_MUXER 0 | ||
| 2594 | +%define CONFIG_FITS_MUXER 0 | ||
| 2595 | +%define CONFIG_FLAC_MUXER 0 | ||
| 2596 | +%define CONFIG_FLV_MUXER 0 | ||
| 2597 | +%define CONFIG_FRAMECRC_MUXER 0 | ||
| 2598 | +%define CONFIG_FRAMEHASH_MUXER 0 | ||
| 2599 | +%define CONFIG_FRAMEMD5_MUXER 0 | ||
| 2600 | +%define CONFIG_G722_MUXER 0 | ||
| 2601 | +%define CONFIG_G723_1_MUXER 0 | ||
| 2602 | +%define CONFIG_G726_MUXER 0 | ||
| 2603 | +%define CONFIG_G726LE_MUXER 0 | ||
| 2604 | +%define CONFIG_GIF_MUXER 0 | ||
| 2605 | +%define CONFIG_GSM_MUXER 0 | ||
| 2606 | +%define CONFIG_GXF_MUXER 0 | ||
| 2607 | +%define CONFIG_H261_MUXER 0 | ||
| 2608 | +%define CONFIG_H263_MUXER 0 | ||
| 2609 | +%define CONFIG_H264_MUXER 0 | ||
| 2610 | +%define CONFIG_HASH_MUXER 0 | ||
| 2611 | +%define CONFIG_HDS_MUXER 0 | ||
| 2612 | +%define CONFIG_HEVC_MUXER 0 | ||
| 2613 | +%define CONFIG_HLS_MUXER 0 | ||
| 2614 | +%define CONFIG_ICO_MUXER 0 | ||
| 2615 | +%define CONFIG_ILBC_MUXER 0 | ||
| 2616 | +%define CONFIG_IMAGE2_MUXER 0 | ||
| 2617 | +%define CONFIG_IMAGE2PIPE_MUXER 0 | ||
| 2618 | +%define CONFIG_IPOD_MUXER 0 | ||
| 2619 | +%define CONFIG_IRCAM_MUXER 0 | ||
| 2620 | +%define CONFIG_ISMV_MUXER 0 | ||
| 2621 | +%define CONFIG_IVF_MUXER 0 | ||
| 2622 | +%define CONFIG_JACOSUB_MUXER 0 | ||
| 2623 | +%define CONFIG_KVAG_MUXER 0 | ||
| 2624 | +%define CONFIG_LATM_MUXER 0 | ||
| 2625 | +%define CONFIG_LRC_MUXER 0 | ||
| 2626 | +%define CONFIG_M4V_MUXER 0 | ||
| 2627 | +%define CONFIG_MD5_MUXER 0 | ||
| 2628 | +%define CONFIG_MATROSKA_MUXER 0 | ||
| 2629 | +%define CONFIG_MATROSKA_AUDIO_MUXER 0 | ||
| 2630 | +%define CONFIG_MICRODVD_MUXER 0 | ||
| 2631 | +%define CONFIG_MJPEG_MUXER 0 | ||
| 2632 | +%define CONFIG_MLP_MUXER 0 | ||
| 2633 | +%define CONFIG_MMF_MUXER 0 | ||
| 2634 | +%define CONFIG_MOV_MUXER 0 | ||
| 2635 | +%define CONFIG_MP2_MUXER 0 | ||
| 2636 | +%define CONFIG_MP3_MUXER 0 | ||
| 2637 | +%define CONFIG_MP4_MUXER 0 | ||
| 2638 | +%define CONFIG_MPEG1SYSTEM_MUXER 0 | ||
| 2639 | +%define CONFIG_MPEG1VCD_MUXER 0 | ||
| 2640 | +%define CONFIG_MPEG1VIDEO_MUXER 0 | ||
| 2641 | +%define CONFIG_MPEG2DVD_MUXER 0 | ||
| 2642 | +%define CONFIG_MPEG2SVCD_MUXER 0 | ||
| 2643 | +%define CONFIG_MPEG2VIDEO_MUXER 0 | ||
| 2644 | +%define CONFIG_MPEG2VOB_MUXER 0 | ||
| 2645 | +%define CONFIG_MPEGTS_MUXER 0 | ||
| 2646 | +%define CONFIG_MPJPEG_MUXER 0 | ||
| 2647 | +%define CONFIG_MXF_MUXER 0 | ||
| 2648 | +%define CONFIG_MXF_D10_MUXER 0 | ||
| 2649 | +%define CONFIG_MXF_OPATOM_MUXER 0 | ||
| 2650 | +%define CONFIG_NULL_MUXER 0 | ||
| 2651 | +%define CONFIG_NUT_MUXER 0 | ||
| 2652 | +%define CONFIG_OBU_MUXER 0 | ||
| 2653 | +%define CONFIG_OGA_MUXER 0 | ||
| 2654 | +%define CONFIG_OGG_MUXER 0 | ||
| 2655 | +%define CONFIG_OGV_MUXER 0 | ||
| 2656 | +%define CONFIG_OMA_MUXER 0 | ||
| 2657 | +%define CONFIG_OPUS_MUXER 0 | ||
| 2658 | +%define CONFIG_PCM_ALAW_MUXER 0 | ||
| 2659 | +%define CONFIG_PCM_MULAW_MUXER 0 | ||
| 2660 | +%define CONFIG_PCM_VIDC_MUXER 0 | ||
| 2661 | +%define CONFIG_PCM_F64BE_MUXER 0 | ||
| 2662 | +%define CONFIG_PCM_F64LE_MUXER 0 | ||
| 2663 | +%define CONFIG_PCM_F32BE_MUXER 0 | ||
| 2664 | +%define CONFIG_PCM_F32LE_MUXER 0 | ||
| 2665 | +%define CONFIG_PCM_S32BE_MUXER 0 | ||
| 2666 | +%define CONFIG_PCM_S32LE_MUXER 0 | ||
| 2667 | +%define CONFIG_PCM_S24BE_MUXER 0 | ||
| 2668 | +%define CONFIG_PCM_S24LE_MUXER 0 | ||
| 2669 | +%define CONFIG_PCM_S16BE_MUXER 0 | ||
| 2670 | +%define CONFIG_PCM_S16LE_MUXER 0 | ||
| 2671 | +%define CONFIG_PCM_S8_MUXER 0 | ||
| 2672 | +%define CONFIG_PCM_U32BE_MUXER 0 | ||
| 2673 | +%define CONFIG_PCM_U32LE_MUXER 0 | ||
| 2674 | +%define CONFIG_PCM_U24BE_MUXER 0 | ||
| 2675 | +%define CONFIG_PCM_U24LE_MUXER 0 | ||
| 2676 | +%define CONFIG_PCM_U16BE_MUXER 0 | ||
| 2677 | +%define CONFIG_PCM_U16LE_MUXER 0 | ||
| 2678 | +%define CONFIG_PCM_U8_MUXER 0 | ||
| 2679 | +%define CONFIG_PSP_MUXER 0 | ||
| 2680 | +%define CONFIG_RAWVIDEO_MUXER 0 | ||
| 2681 | +%define CONFIG_RM_MUXER 0 | ||
| 2682 | +%define CONFIG_ROQ_MUXER 0 | ||
| 2683 | +%define CONFIG_RSO_MUXER 0 | ||
| 2684 | +%define CONFIG_RTP_MUXER 0 | ||
| 2685 | +%define CONFIG_RTP_MPEGTS_MUXER 0 | ||
| 2686 | +%define CONFIG_RTSP_MUXER 0 | ||
| 2687 | +%define CONFIG_SAP_MUXER 0 | ||
| 2688 | +%define CONFIG_SBC_MUXER 0 | ||
| 2689 | +%define CONFIG_SCC_MUXER 0 | ||
| 2690 | +%define CONFIG_SEGAFILM_MUXER 0 | ||
| 2691 | +%define CONFIG_SEGMENT_MUXER 0 | ||
| 2692 | +%define CONFIG_STREAM_SEGMENT_MUXER 0 | ||
| 2693 | +%define CONFIG_SMJPEG_MUXER 0 | ||
| 2694 | +%define CONFIG_SMOOTHSTREAMING_MUXER 0 | ||
| 2695 | +%define CONFIG_SOX_MUXER 0 | ||
| 2696 | +%define CONFIG_SPX_MUXER 0 | ||
| 2697 | +%define CONFIG_SPDIF_MUXER 0 | ||
| 2698 | +%define CONFIG_SRT_MUXER 0 | ||
| 2699 | +%define CONFIG_STREAMHASH_MUXER 0 | ||
| 2700 | +%define CONFIG_SUP_MUXER 0 | ||
| 2701 | +%define CONFIG_SWF_MUXER 0 | ||
| 2702 | +%define CONFIG_TEE_MUXER 0 | ||
| 2703 | +%define CONFIG_TG2_MUXER 0 | ||
| 2704 | +%define CONFIG_TGP_MUXER 0 | ||
| 2705 | +%define CONFIG_MKVTIMESTAMP_V2_MUXER 0 | ||
| 2706 | +%define CONFIG_TRUEHD_MUXER 0 | ||
| 2707 | +%define CONFIG_TTA_MUXER 0 | ||
| 2708 | +%define CONFIG_TTML_MUXER 0 | ||
| 2709 | +%define CONFIG_UNCODEDFRAMECRC_MUXER 0 | ||
| 2710 | +%define CONFIG_VC1_MUXER 0 | ||
| 2711 | +%define CONFIG_VC1T_MUXER 0 | ||
| 2712 | +%define CONFIG_VOC_MUXER 0 | ||
| 2713 | +%define CONFIG_W64_MUXER 0 | ||
| 2714 | +%define CONFIG_WAV_MUXER 0 | ||
| 2715 | +%define CONFIG_WEBM_MUXER 0 | ||
| 2716 | +%define CONFIG_WEBM_DASH_MANIFEST_MUXER 0 | ||
| 2717 | +%define CONFIG_WEBM_CHUNK_MUXER 0 | ||
| 2718 | +%define CONFIG_WEBP_MUXER 0 | ||
| 2719 | +%define CONFIG_WEBVTT_MUXER 0 | ||
| 2720 | +%define CONFIG_WSAUD_MUXER 0 | ||
| 2721 | +%define CONFIG_WTV_MUXER 0 | ||
| 2722 | +%define CONFIG_WV_MUXER 0 | ||
| 2723 | +%define CONFIG_YUV4MPEGPIPE_MUXER 0 | ||
| 2724 | +%define CONFIG_CHROMAPRINT_MUXER 0 | ||
| 2725 | +%define CONFIG_ASYNC_PROTOCOL 0 | ||
| 2726 | +%define CONFIG_BLURAY_PROTOCOL 0 | ||
| 2727 | +%define CONFIG_CACHE_PROTOCOL 0 | ||
| 2728 | +%define CONFIG_CONCAT_PROTOCOL 0 | ||
| 2729 | +%define CONFIG_CONCATF_PROTOCOL 0 | ||
| 2730 | +%define CONFIG_CRYPTO_PROTOCOL 0 | ||
| 2731 | +%define CONFIG_DATA_PROTOCOL 0 | ||
| 2732 | +%define CONFIG_FFRTMPCRYPT_PROTOCOL 0 | ||
| 2733 | +%define CONFIG_FFRTMPHTTP_PROTOCOL 0 | ||
| 2734 | +%define CONFIG_FILE_PROTOCOL 0 | ||
| 2735 | +%define CONFIG_FTP_PROTOCOL 0 | ||
| 2736 | +%define CONFIG_GOPHER_PROTOCOL 0 | ||
| 2737 | +%define CONFIG_GOPHERS_PROTOCOL 0 | ||
| 2738 | +%define CONFIG_HLS_PROTOCOL 0 | ||
| 2739 | +%define CONFIG_HTTP_PROTOCOL 0 | ||
| 2740 | +%define CONFIG_HTTPPROXY_PROTOCOL 0 | ||
| 2741 | +%define CONFIG_HTTPS_PROTOCOL 0 | ||
| 2742 | +%define CONFIG_ICECAST_PROTOCOL 0 | ||
| 2743 | +%define CONFIG_MMSH_PROTOCOL 0 | ||
| 2744 | +%define CONFIG_MMST_PROTOCOL 0 | ||
| 2745 | +%define CONFIG_MD5_PROTOCOL 0 | ||
| 2746 | +%define CONFIG_PIPE_PROTOCOL 0 | ||
| 2747 | +%define CONFIG_PROMPEG_PROTOCOL 0 | ||
| 2748 | +%define CONFIG_RTMP_PROTOCOL 0 | ||
| 2749 | +%define CONFIG_RTMPE_PROTOCOL 0 | ||
| 2750 | +%define CONFIG_RTMPS_PROTOCOL 0 | ||
| 2751 | +%define CONFIG_RTMPT_PROTOCOL 0 | ||
| 2752 | +%define CONFIG_RTMPTE_PROTOCOL 0 | ||
| 2753 | +%define CONFIG_RTMPTS_PROTOCOL 0 | ||
| 2754 | +%define CONFIG_RTP_PROTOCOL 0 | ||
| 2755 | +%define CONFIG_SCTP_PROTOCOL 0 | ||
| 2756 | +%define CONFIG_SRTP_PROTOCOL 0 | ||
| 2757 | +%define CONFIG_SUBFILE_PROTOCOL 0 | ||
| 2758 | +%define CONFIG_TEE_PROTOCOL 0 | ||
| 2759 | +%define CONFIG_TCP_PROTOCOL 0 | ||
| 2760 | +%define CONFIG_TLS_PROTOCOL 0 | ||
| 2761 | +%define CONFIG_UDP_PROTOCOL 0 | ||
| 2762 | +%define CONFIG_UDPLITE_PROTOCOL 0 | ||
| 2763 | +%define CONFIG_UNIX_PROTOCOL 0 | ||
| 2764 | +%define CONFIG_LIBAMQP_PROTOCOL 0 | ||
| 2765 | +%define CONFIG_LIBRIST_PROTOCOL 0 | ||
| 2766 | +%define CONFIG_LIBRTMP_PROTOCOL 0 | ||
| 2767 | +%define CONFIG_LIBRTMPE_PROTOCOL 0 | ||
| 2768 | +%define CONFIG_LIBRTMPS_PROTOCOL 0 | ||
| 2769 | +%define CONFIG_LIBRTMPT_PROTOCOL 0 | ||
| 2770 | +%define CONFIG_LIBRTMPTE_PROTOCOL 0 | ||
| 2771 | +%define CONFIG_LIBSRT_PROTOCOL 0 | ||
| 2772 | +%define CONFIG_LIBSSH_PROTOCOL 0 | ||
| 2773 | +%define CONFIG_LIBSMBCLIENT_PROTOCOL 0 | ||
| 2774 | +%define CONFIG_LIBZMQ_PROTOCOL 0 | ||
diff --git a/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_x64_config_h b/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_x64_config_h new file mode 100644 index 0000000..9205176 --- /dev/null +++ b/www/chromium/patches/patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_x64_config_h | |||
| @@ -0,0 +1,2791 @@ | |||
| 1 | Index: third_party/ffmpeg/chromium/config/Chrome/openbsd/x64/config.h | ||
| 2 | --- third_party/ffmpeg/chromium/config/Chrome/openbsd/x64/config.h.orig | ||
| 3 | +++ third_party/ffmpeg/chromium/config/Chrome/openbsd/x64/config.h | ||
| 4 | @@ -0,0 +1,2787 @@ | ||
| 5 | +/* Automatically generated by configure - do not modify! */ | ||
| 6 | +#ifndef FFMPEG_CONFIG_H | ||
| 7 | +#define FFMPEG_CONFIG_H | ||
| 8 | +/* #define FFMPEG_CONFIGURATION "--disable-everything --disable-all --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --enable-avcodec --enable-avformat --enable-avutil --enable-fft --enable-rdft --enable-static --enable-libopus --disable-debug --disable-bzlib --disable-error-resilience --disable-iconv --disable-lzo --disable-network --disable-schannel --disable-sdl2 --disable-symver --disable-xlib --disable-zlib --disable-securetransport --disable-faan --disable-alsa --disable-autodetect --enable-decoder='vorbis,libopus,flac' --enable-decoder='pcm_u8,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le,mp3' --enable-decoder='pcm_s16be,pcm_s24be,pcm_mulaw,pcm_alaw' --enable-demuxer='ogg,matroska,wav,flac,mp3,mov' --enable-parser='opus,vorbis,flac,mpegaudio,vp9' --extra-cflags=-I/usr/local/google/home/chcunningham/src/chrome/src/third_party/opus/src/include --disable-linux-perf --x86asmexe=nasm --optflags='\"-O2\"' --enable-decoder='theora,vp8' --enable-parser='vp3,vp8' --enable-lto --enable-pic --cc=clang --cxx=clang++ --ld=clang --extra-ldflags='-fuse-ld=lld' --enable-decoder='aac,h264' --enable-demuxer=aac --enable-parser='aac,h264'" -- elide long configuration string from binary */ | ||
| 9 | +#define FFMPEG_LICENSE "LGPL version 2.1 or later" | ||
| 10 | +#define CONFIG_THIS_YEAR 2022 | ||
| 11 | +#define FFMPEG_DATADIR "/usr/local/share/ffmpeg" | ||
| 12 | +#define AVCONV_DATADIR "/usr/local/share/ffmpeg" | ||
| 13 | +#define CC_IDENT "OpenBSD clang version 13.0.0" | ||
| 14 | +#define OS_NAME openbsd | ||
| 15 | +#define av_restrict restrict | ||
| 16 | +#define EXTERN_PREFIX "" | ||
| 17 | +#define EXTERN_ASM | ||
| 18 | +#define BUILDSUF "" | ||
| 19 | +#define SLIBSUF ".so" | ||
| 20 | +#define HAVE_MMX2 HAVE_MMXEXT | ||
| 21 | +#define SWS_MAX_FILTER_SIZE 256 | ||
| 22 | +#define ARCH_AARCH64 0 | ||
| 23 | +#define ARCH_ALPHA 0 | ||
| 24 | +#define ARCH_ARM 0 | ||
| 25 | +#define ARCH_AVR32 0 | ||
| 26 | +#define ARCH_AVR32_AP 0 | ||
| 27 | +#define ARCH_AVR32_UC 0 | ||
| 28 | +#define ARCH_BFIN 0 | ||
| 29 | +#define ARCH_IA64 0 | ||
| 30 | +#define ARCH_LOONGARCH 0 | ||
| 31 | +#define ARCH_LOONGARCH32 0 | ||
| 32 | +#define ARCH_LOONGARCH64 0 | ||
| 33 | +#define ARCH_M68K 0 | ||
| 34 | +#define ARCH_MIPS 0 | ||
| 35 | +#define ARCH_MIPS64 0 | ||
| 36 | +#define ARCH_PARISC 0 | ||
| 37 | +#define ARCH_PPC 0 | ||
| 38 | +#define ARCH_PPC64 0 | ||
| 39 | +#define ARCH_RISCV 0 | ||
| 40 | +#define ARCH_S390 0 | ||
| 41 | +#define ARCH_SH4 0 | ||
| 42 | +#define ARCH_SPARC 0 | ||
| 43 | +#define ARCH_SPARC64 0 | ||
| 44 | +#define ARCH_TILEGX 0 | ||
| 45 | +#define ARCH_TILEPRO 0 | ||
| 46 | +#define ARCH_TOMI 0 | ||
| 47 | +#define ARCH_X86 1 | ||
| 48 | +#define ARCH_X86_32 0 | ||
| 49 | +#define ARCH_X86_64 1 | ||
| 50 | +#define HAVE_ARMV5TE 0 | ||
| 51 | +#define HAVE_ARMV6 0 | ||
| 52 | +#define HAVE_ARMV6T2 0 | ||
| 53 | +#define HAVE_ARMV8 0 | ||
| 54 | +#define HAVE_NEON 0 | ||
| 55 | +#define HAVE_VFP 0 | ||
| 56 | +#define HAVE_VFPV3 0 | ||
| 57 | +#define HAVE_SETEND 0 | ||
| 58 | +#define HAVE_ALTIVEC 0 | ||
| 59 | +#define HAVE_DCBZL 0 | ||
| 60 | +#define HAVE_LDBRX 0 | ||
| 61 | +#define HAVE_POWER8 0 | ||
| 62 | +#define HAVE_PPC4XX 0 | ||
| 63 | +#define HAVE_VSX 0 | ||
| 64 | +#define HAVE_AESNI 1 | ||
| 65 | +#define HAVE_AMD3DNOW 1 | ||
| 66 | +#define HAVE_AMD3DNOWEXT 1 | ||
| 67 | +#define HAVE_AVX 1 | ||
| 68 | +#define HAVE_AVX2 1 | ||
| 69 | +#define HAVE_AVX512 1 | ||
| 70 | +#define HAVE_FMA3 1 | ||
| 71 | +#define HAVE_FMA4 1 | ||
| 72 | +#define HAVE_MMX 1 | ||
| 73 | +#define HAVE_MMXEXT 1 | ||
| 74 | +#define HAVE_SSE 1 | ||
| 75 | +#define HAVE_SSE2 1 | ||
| 76 | +#define HAVE_SSE3 1 | ||
| 77 | +#define HAVE_SSE4 1 | ||
| 78 | +#define HAVE_SSE42 1 | ||
| 79 | +#define HAVE_SSSE3 1 | ||
| 80 | +#define HAVE_XOP 1 | ||
| 81 | +#define HAVE_CPUNOP 0 | ||
| 82 | +#define HAVE_I686 1 | ||
| 83 | +#define HAVE_MIPSFPU 0 | ||
| 84 | +#define HAVE_MIPS32R2 0 | ||
| 85 | +#define HAVE_MIPS32R5 0 | ||
| 86 | +#define HAVE_MIPS64R2 0 | ||
| 87 | +#define HAVE_MIPS32R6 0 | ||
| 88 | +#define HAVE_MIPS64R6 0 | ||
| 89 | +#define HAVE_MIPSDSP 0 | ||
| 90 | +#define HAVE_MIPSDSPR2 0 | ||
| 91 | +#define HAVE_MSA 0 | ||
| 92 | +#define HAVE_LOONGSON2 0 | ||
| 93 | +#define HAVE_LOONGSON3 0 | ||
| 94 | +#define HAVE_MMI 0 | ||
| 95 | +#define HAVE_LSX 0 | ||
| 96 | +#define HAVE_LASX 0 | ||
| 97 | +#define HAVE_ARMV5TE_EXTERNAL 0 | ||
| 98 | +#define HAVE_ARMV6_EXTERNAL 0 | ||
| 99 | +#define HAVE_ARMV6T2_EXTERNAL 0 | ||
| 100 | +#define HAVE_ARMV8_EXTERNAL 0 | ||
| 101 | +#define HAVE_NEON_EXTERNAL 0 | ||
| 102 | +#define HAVE_VFP_EXTERNAL 0 | ||
| 103 | +#define HAVE_VFPV3_EXTERNAL 0 | ||
| 104 | +#define HAVE_SETEND_EXTERNAL 0 | ||
| 105 | +#define HAVE_ALTIVEC_EXTERNAL 0 | ||
| 106 | +#define HAVE_DCBZL_EXTERNAL 0 | ||
| 107 | +#define HAVE_LDBRX_EXTERNAL 0 | ||
| 108 | +#define HAVE_POWER8_EXTERNAL 0 | ||
| 109 | +#define HAVE_PPC4XX_EXTERNAL 0 | ||
| 110 | +#define HAVE_VSX_EXTERNAL 0 | ||
| 111 | +#define HAVE_AESNI_EXTERNAL 1 | ||
| 112 | +#define HAVE_AMD3DNOW_EXTERNAL 1 | ||
| 113 | +#define HAVE_AMD3DNOWEXT_EXTERNAL 1 | ||
| 114 | +#define HAVE_AVX_EXTERNAL 1 | ||
| 115 | +#define HAVE_AVX2_EXTERNAL 1 | ||
| 116 | +#define HAVE_AVX512_EXTERNAL 1 | ||
| 117 | +#define HAVE_FMA3_EXTERNAL 1 | ||
| 118 | +#define HAVE_FMA4_EXTERNAL 1 | ||
| 119 | +#define HAVE_MMX_EXTERNAL 1 | ||
| 120 | +#define HAVE_MMXEXT_EXTERNAL 1 | ||
| 121 | +#define HAVE_SSE_EXTERNAL 1 | ||
| 122 | +#define HAVE_SSE2_EXTERNAL 1 | ||
| 123 | +#define HAVE_SSE3_EXTERNAL 1 | ||
| 124 | +#define HAVE_SSE4_EXTERNAL 1 | ||
| 125 | +#define HAVE_SSE42_EXTERNAL 1 | ||
| 126 | +#define HAVE_SSSE3_EXTERNAL 1 | ||
| 127 | +#define HAVE_XOP_EXTERNAL 1 | ||
| 128 | +#define HAVE_CPUNOP_EXTERNAL 0 | ||
| 129 | +#define HAVE_I686_EXTERNAL 0 | ||
| 130 | +#define HAVE_MIPSFPU_EXTERNAL 0 | ||
| 131 | +#define HAVE_MIPS32R2_EXTERNAL 0 | ||
| 132 | +#define HAVE_MIPS32R5_EXTERNAL 0 | ||
| 133 | +#define HAVE_MIPS64R2_EXTERNAL 0 | ||
| 134 | +#define HAVE_MIPS32R6_EXTERNAL 0 | ||
| 135 | +#define HAVE_MIPS64R6_EXTERNAL 0 | ||
| 136 | +#define HAVE_MIPSDSP_EXTERNAL 0 | ||
| 137 | +#define HAVE_MIPSDSPR2_EXTERNAL 0 | ||
| 138 | +#define HAVE_MSA_EXTERNAL 0 | ||
| 139 | +#define HAVE_LOONGSON2_EXTERNAL 0 | ||
| 140 | +#define HAVE_LOONGSON3_EXTERNAL 0 | ||
| 141 | +#define HAVE_MMI_EXTERNAL 0 | ||
| 142 | +#define HAVE_LSX_EXTERNAL 0 | ||
| 143 | +#define HAVE_LASX_EXTERNAL 0 | ||
| 144 | +#define HAVE_ARMV5TE_INLINE 0 | ||
| 145 | +#define HAVE_ARMV6_INLINE 0 | ||
| 146 | +#define HAVE_ARMV6T2_INLINE 0 | ||
| 147 | +#define HAVE_ARMV8_INLINE 0 | ||
| 148 | +#define HAVE_NEON_INLINE 0 | ||
| 149 | +#define HAVE_VFP_INLINE 0 | ||
| 150 | +#define HAVE_VFPV3_INLINE 0 | ||
| 151 | +#define HAVE_SETEND_INLINE 0 | ||
| 152 | +#define HAVE_ALTIVEC_INLINE 0 | ||
| 153 | +#define HAVE_DCBZL_INLINE 0 | ||
| 154 | +#define HAVE_LDBRX_INLINE 0 | ||
| 155 | +#define HAVE_POWER8_INLINE 0 | ||
| 156 | +#define HAVE_PPC4XX_INLINE 0 | ||
| 157 | +#define HAVE_VSX_INLINE 0 | ||
| 158 | +#define HAVE_AESNI_INLINE 1 | ||
| 159 | +#define HAVE_AMD3DNOW_INLINE 1 | ||
| 160 | +#define HAVE_AMD3DNOWEXT_INLINE 1 | ||
| 161 | +#define HAVE_AVX_INLINE 1 | ||
| 162 | +#define HAVE_AVX2_INLINE 1 | ||
| 163 | +#define HAVE_AVX512_INLINE 1 | ||
| 164 | +#define HAVE_FMA3_INLINE 1 | ||
| 165 | +#define HAVE_FMA4_INLINE 1 | ||
| 166 | +#define HAVE_MMX_INLINE 1 | ||
| 167 | +#define HAVE_MMXEXT_INLINE 1 | ||
| 168 | +#define HAVE_SSE_INLINE 1 | ||
| 169 | +#define HAVE_SSE2_INLINE 1 | ||
| 170 | +#define HAVE_SSE3_INLINE 1 | ||
| 171 | +#define HAVE_SSE4_INLINE 1 | ||
| 172 | +#define HAVE_SSE42_INLINE 1 | ||
| 173 | +#define HAVE_SSSE3_INLINE 1 | ||
| 174 | +#define HAVE_XOP_INLINE 1 | ||
| 175 | +#define HAVE_CPUNOP_INLINE 0 | ||
| 176 | +#define HAVE_I686_INLINE 0 | ||
| 177 | +#define HAVE_MIPSFPU_INLINE 0 | ||
| 178 | +#define HAVE_MIPS32R2_INLINE 0 | ||
| 179 | +#define HAVE_MIPS32R5_INLINE 0 | ||
| 180 | +#define HAVE_MIPS64R2_INLINE 0 | ||
| 181 | +#define HAVE_MIPS32R6_INLINE 0 | ||
| 182 | +#define HAVE_MIPS64R6_INLINE 0 | ||
| 183 | +#define HAVE_MIPSDSP_INLINE 0 | ||
| 184 | +#define HAVE_MIPSDSPR2_INLINE 0 | ||
| 185 | +#define HAVE_MSA_INLINE 0 | ||
| 186 | +#define HAVE_LOONGSON2_INLINE 0 | ||
| 187 | +#define HAVE_LOONGSON3_INLINE 0 | ||
| 188 | +#define HAVE_MMI_INLINE 0 | ||
| 189 | +#define HAVE_LSX_INLINE 0 | ||
| 190 | +#define HAVE_LASX_INLINE 0 | ||
| 191 | +#define HAVE_ALIGNED_STACK 1 | ||
| 192 | +#define HAVE_FAST_64BIT 1 | ||
| 193 | +#define HAVE_FAST_CLZ 1 | ||
| 194 | +#define HAVE_FAST_CMOV 1 | ||
| 195 | +#define HAVE_LOCAL_ALIGNED 1 | ||
| 196 | +#define HAVE_SIMD_ALIGN_16 1 | ||
| 197 | +#define HAVE_SIMD_ALIGN_32 1 | ||
| 198 | +#define HAVE_SIMD_ALIGN_64 1 | ||
| 199 | +#define HAVE_ATOMIC_CAS_PTR 0 | ||
| 200 | +#define HAVE_MACHINE_RW_BARRIER 0 | ||
| 201 | +#define HAVE_MEMORYBARRIER 0 | ||
| 202 | +#define HAVE_MM_EMPTY 1 | ||
| 203 | +#define HAVE_RDTSC 0 | ||
| 204 | +#define HAVE_SEM_TIMEDWAIT 1 | ||
| 205 | +#define HAVE_SYNC_VAL_COMPARE_AND_SWAP 1 | ||
| 206 | +#define HAVE_CABS 0 | ||
| 207 | +#define HAVE_CEXP 0 | ||
| 208 | +#define HAVE_INLINE_ASM 1 | ||
| 209 | +#define HAVE_SYMVER 0 | ||
| 210 | +#define HAVE_X86ASM 1 | ||
| 211 | +#define HAVE_BIGENDIAN 0 | ||
| 212 | +#define HAVE_FAST_UNALIGNED 1 | ||
| 213 | +#define HAVE_ARPA_INET_H 0 | ||
| 214 | +#define HAVE_ASM_TYPES_H 0 | ||
| 215 | +#define HAVE_CDIO_PARANOIA_H 0 | ||
| 216 | +#define HAVE_CDIO_PARANOIA_PARANOIA_H 0 | ||
| 217 | +#define HAVE_CUDA_H 0 | ||
| 218 | +#define HAVE_DISPATCH_DISPATCH_H 0 | ||
| 219 | +#define HAVE_DEV_BKTR_IOCTL_BT848_H 0 | ||
| 220 | +#define HAVE_DEV_BKTR_IOCTL_METEOR_H 0 | ||
| 221 | +#define HAVE_DEV_IC_BT8XX_H 1 | ||
| 222 | +#define HAVE_DEV_VIDEO_BKTR_IOCTL_BT848_H 0 | ||
| 223 | +#define HAVE_DEV_VIDEO_METEOR_IOCTL_METEOR_H 0 | ||
| 224 | +#define HAVE_DIRECT_H 0 | ||
| 225 | +#define HAVE_DIRENT_H 1 | ||
| 226 | +#define HAVE_DXGIDEBUG_H 0 | ||
| 227 | +#define HAVE_DXVA_H 0 | ||
| 228 | +#define HAVE_ES2_GL_H 0 | ||
| 229 | +#define HAVE_GSM_H 0 | ||
| 230 | +#define HAVE_IO_H 0 | ||
| 231 | +#define HAVE_LINUX_DMA_BUF_H 0 | ||
| 232 | +#define HAVE_LINUX_PERF_EVENT_H 0 | ||
| 233 | +#define HAVE_MACHINE_IOCTL_BT848_H 0 | ||
| 234 | +#define HAVE_MACHINE_IOCTL_METEOR_H 0 | ||
| 235 | +#define HAVE_MALLOC_H 0 | ||
| 236 | +#define HAVE_OPENCV2_CORE_CORE_C_H 0 | ||
| 237 | +#define HAVE_OPENGL_GL3_H 0 | ||
| 238 | +#define HAVE_POLL_H 1 | ||
| 239 | +#define HAVE_SYS_PARAM_H 1 | ||
| 240 | +#define HAVE_SYS_RESOURCE_H 1 | ||
| 241 | +#define HAVE_SYS_SELECT_H 1 | ||
| 242 | +#define HAVE_SYS_SOUNDCARD_H 0 | ||
| 243 | +#define HAVE_SYS_TIME_H 1 | ||
| 244 | +#define HAVE_SYS_UN_H 1 | ||
| 245 | +#define HAVE_SYS_VIDEOIO_H 1 | ||
| 246 | +#define HAVE_TERMIOS_H 1 | ||
| 247 | +#define HAVE_UDPLITE_H 0 | ||
| 248 | +#define HAVE_UNISTD_H 1 | ||
| 249 | +#define HAVE_VALGRIND_VALGRIND_H 0 /* #define HAVE_VALGRIND_VALGRIND_H 0 -- forced to 0. See https://crbug.com/590440 */ | ||
| 250 | +#define HAVE_WINDOWS_H 0 | ||
| 251 | +#define HAVE_WINSOCK2_H 0 | ||
| 252 | +#define HAVE_INTRINSICS_NEON 0 | ||
| 253 | +#define HAVE_ATANF 1 | ||
| 254 | +#define HAVE_ATAN2F 1 | ||
| 255 | +#define HAVE_CBRT 1 | ||
| 256 | +#define HAVE_CBRTF 1 | ||
| 257 | +#define HAVE_COPYSIGN 1 | ||
| 258 | +#define HAVE_COSF 1 | ||
| 259 | +#define HAVE_ERF 1 | ||
| 260 | +#define HAVE_EXP2 1 | ||
| 261 | +#define HAVE_EXP2F 1 | ||
| 262 | +#define HAVE_EXPF 1 | ||
| 263 | +#define HAVE_HYPOT 1 | ||
| 264 | +#define HAVE_ISFINITE 1 | ||
| 265 | +#define HAVE_ISINF 1 | ||
| 266 | +#define HAVE_ISNAN 1 | ||
| 267 | +#define HAVE_LDEXPF 1 | ||
| 268 | +#define HAVE_LLRINT 1 | ||
| 269 | +#define HAVE_LLRINTF 1 | ||
| 270 | +#define HAVE_LOG2 1 | ||
| 271 | +#define HAVE_LOG2F 1 | ||
| 272 | +#define HAVE_LOG10F 1 | ||
| 273 | +#define HAVE_LRINT 1 | ||
| 274 | +#define HAVE_LRINTF 1 | ||
| 275 | +#define HAVE_POWF 1 | ||
| 276 | +#define HAVE_RINT 1 | ||
| 277 | +#define HAVE_ROUND 1 | ||
| 278 | +#define HAVE_ROUNDF 1 | ||
| 279 | +#define HAVE_SINF 1 | ||
| 280 | +#define HAVE_TRUNC 1 | ||
| 281 | +#define HAVE_TRUNCF 1 | ||
| 282 | +#define HAVE_DOS_PATHS 0 | ||
| 283 | +#define HAVE_LIBC_MSVCRT 0 | ||
| 284 | +#define HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS 0 | ||
| 285 | +#define HAVE_SECTION_DATA_REL_RO 1 | ||
| 286 | +#define HAVE_THREADS 1 | ||
| 287 | +#define HAVE_UWP 0 | ||
| 288 | +#define HAVE_WINRT 0 | ||
| 289 | +#define HAVE_ACCESS 1 | ||
| 290 | +#define HAVE_ALIGNED_MALLOC 0 | ||
| 291 | +#define HAVE_ARC4RANDOM 1 | ||
| 292 | +#define HAVE_CLOCK_GETTIME 1 | ||
| 293 | +#define HAVE_CLOSESOCKET 0 | ||
| 294 | +#define HAVE_COMMANDLINETOARGVW 0 | ||
| 295 | +#define HAVE_FCNTL 1 | ||
| 296 | +#define HAVE_GETADDRINFO 0 | ||
| 297 | +#define HAVE_GETHRTIME 0 | ||
| 298 | +#define HAVE_GETOPT 1 | ||
| 299 | +#define HAVE_GETMODULEHANDLE 0 | ||
| 300 | +#define HAVE_GETPROCESSAFFINITYMASK 0 | ||
| 301 | +#define HAVE_GETPROCESSMEMORYINFO 0 | ||
| 302 | +#define HAVE_GETPROCESSTIMES 0 | ||
| 303 | +#define HAVE_GETRUSAGE 1 | ||
| 304 | +#define HAVE_GETSTDHANDLE 0 | ||
| 305 | +#define HAVE_GETSYSTEMTIMEASFILETIME 0 | ||
| 306 | +#define HAVE_GETTIMEOFDAY 1 | ||
| 307 | +#define HAVE_GLOB 1 | ||
| 308 | +#define HAVE_GLXGETPROCADDRESS 0 | ||
| 309 | +#define HAVE_GMTIME_R 1 | ||
| 310 | +#define HAVE_INET_ATON 0 | ||
| 311 | +#define HAVE_ISATTY 1 | ||
| 312 | +#define HAVE_KBHIT 0 | ||
| 313 | +#define HAVE_LOCALTIME_R 1 | ||
| 314 | +#define HAVE_LSTAT 1 | ||
| 315 | +#define HAVE_LZO1X_999_COMPRESS 0 | ||
| 316 | +#define HAVE_MACH_ABSOLUTE_TIME 0 | ||
| 317 | +#define HAVE_MAPVIEWOFFILE 0 | ||
| 318 | +#define HAVE_MEMALIGN 0 | ||
| 319 | +#define HAVE_MKSTEMP 1 | ||
| 320 | +#define HAVE_MMAP 1 | ||
| 321 | +#define HAVE_MPROTECT 1 | ||
| 322 | +#define HAVE_NANOSLEEP 1 | ||
| 323 | +#define HAVE_PEEKNAMEDPIPE 0 | ||
| 324 | +#define HAVE_POSIX_MEMALIGN 1 | ||
| 325 | +#define HAVE_PTHREAD_CANCEL 1 | ||
| 326 | +#define HAVE_SCHED_GETAFFINITY 0 | ||
| 327 | +#define HAVE_SECITEMIMPORT 0 | ||
| 328 | +#define HAVE_SETCONSOLETEXTATTRIBUTE 0 | ||
| 329 | +#define HAVE_SETCONSOLECTRLHANDLER 0 | ||
| 330 | +#define HAVE_SETDLLDIRECTORY 0 | ||
| 331 | +#define HAVE_SETMODE 0 | ||
| 332 | +#define HAVE_SETRLIMIT 1 | ||
| 333 | +#define HAVE_SLEEP 0 | ||
| 334 | +#define HAVE_STRERROR_R 1 | ||
| 335 | +#define HAVE_SYSCONF 1 | ||
| 336 | +#define HAVE_SYSCTL 1 | ||
| 337 | +#define HAVE_USLEEP 1 | ||
| 338 | +#define HAVE_UTGETOSTYPEFROMSTRING 0 | ||
| 339 | +#define HAVE_VIRTUALALLOC 0 | ||
| 340 | +#define HAVE_WGLGETPROCADDRESS 0 | ||
| 341 | +#define HAVE_BCRYPT 0 | ||
| 342 | +#define HAVE_VAAPI_DRM 0 | ||
| 343 | +#define HAVE_VAAPI_X11 0 | ||
| 344 | +#define HAVE_VDPAU_X11 0 | ||
| 345 | +#define HAVE_PTHREADS 1 | ||
| 346 | +#define HAVE_OS2THREADS 0 | ||
| 347 | +#define HAVE_W32THREADS 0 | ||
| 348 | +#define HAVE_AS_ARCH_DIRECTIVE 0 | ||
| 349 | +#define HAVE_AS_DN_DIRECTIVE 0 | ||
| 350 | +#define HAVE_AS_FPU_DIRECTIVE 0 | ||
| 351 | +#define HAVE_AS_FUNC 0 | ||
| 352 | +#define HAVE_AS_OBJECT_ARCH 0 | ||
| 353 | +#define HAVE_ASM_MOD_Q 0 | ||
| 354 | +#define HAVE_BLOCKS_EXTENSION 0 | ||
| 355 | +#define HAVE_EBP_AVAILABLE 1 | ||
| 356 | +#define HAVE_EBX_AVAILABLE 1 | ||
| 357 | +#define HAVE_GNU_AS 0 | ||
| 358 | +#define HAVE_GNU_WINDRES 0 | ||
| 359 | +#define HAVE_IBM_ASM 0 | ||
| 360 | +#define HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS 0 | ||
| 361 | +#define HAVE_INLINE_ASM_LABELS 1 | ||
| 362 | +#define HAVE_INLINE_ASM_NONLOCAL_LABELS 1 | ||
| 363 | +#define HAVE_PRAGMA_DEPRECATED 1 | ||
| 364 | +#define HAVE_RSYNC_CONTIMEOUT 1 | ||
| 365 | +#define HAVE_SYMVER_ASM_LABEL 1 | ||
| 366 | +#define HAVE_SYMVER_GNU_ASM 1 | ||
| 367 | +#define HAVE_VFP_ARGS 0 | ||
| 368 | +#define HAVE_XFORM_ASM 0 | ||
| 369 | +#define HAVE_XMM_CLOBBERS 1 | ||
| 370 | +#define HAVE_KCMVIDEOCODECTYPE_HEVC 0 | ||
| 371 | +#define HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA 0 | ||
| 372 | +#define HAVE_KCMVIDEOCODECTYPE_VP9 0 | ||
| 373 | +#define HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 374 | +#define HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE 0 | ||
| 375 | +#define HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 376 | +#define HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE 0 | ||
| 377 | +#define HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE 0 | ||
| 378 | +#define HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE 0 | ||
| 379 | +#define HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE 0 | ||
| 380 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ 0 | ||
| 381 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG 0 | ||
| 382 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_LINEAR 0 | ||
| 383 | +#define HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020 0 | ||
| 384 | +#define HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020 0 | ||
| 385 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020 0 | ||
| 386 | +#define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1 0 | ||
| 387 | +#define HAVE_SOCKLEN_T 0 | ||
| 388 | +#define HAVE_STRUCT_ADDRINFO 0 | ||
| 389 | +#define HAVE_STRUCT_GROUP_SOURCE_REQ 0 | ||
| 390 | +#define HAVE_STRUCT_IP_MREQ_SOURCE 0 | ||
| 391 | +#define HAVE_STRUCT_IPV6_MREQ 0 | ||
| 392 | +#define HAVE_STRUCT_MSGHDR_MSG_FLAGS 0 | ||
| 393 | +#define HAVE_STRUCT_POLLFD 0 | ||
| 394 | +#define HAVE_STRUCT_RUSAGE_RU_MAXRSS 1 | ||
| 395 | +#define HAVE_STRUCT_SCTP_EVENT_SUBSCRIBE 0 | ||
| 396 | +#define HAVE_STRUCT_SOCKADDR_IN6 0 | ||
| 397 | +#define HAVE_STRUCT_SOCKADDR_SA_LEN 0 | ||
| 398 | +#define HAVE_STRUCT_SOCKADDR_STORAGE 0 | ||
| 399 | +#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | ||
| 400 | +#define HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE 1 | ||
| 401 | +#define HAVE_GZIP 1 | ||
| 402 | +#define HAVE_LIBDRM_GETFB2 0 | ||
| 403 | +#define HAVE_MAKEINFO 1 | ||
| 404 | +#define HAVE_MAKEINFO_HTML 0 | ||
| 405 | +#define HAVE_OPENCL_D3D11 0 | ||
| 406 | +#define HAVE_OPENCL_DRM_ARM 0 | ||
| 407 | +#define HAVE_OPENCL_DRM_BEIGNET 0 | ||
| 408 | +#define HAVE_OPENCL_DXVA2 0 | ||
| 409 | +#define HAVE_OPENCL_VAAPI_BEIGNET 0 | ||
| 410 | +#define HAVE_OPENCL_VAAPI_INTEL_MEDIA 0 | ||
| 411 | +#define HAVE_PERL 1 | ||
| 412 | +#define HAVE_POD2MAN 1 | ||
| 413 | +#define HAVE_TEXI2HTML 0 | ||
| 414 | +#define HAVE_XMLLINT 1 | ||
| 415 | +#define HAVE_ZLIB_GZIP 0 | ||
| 416 | +#define CONFIG_DOC 0 | ||
| 417 | +#define CONFIG_HTMLPAGES 0 | ||
| 418 | +#define CONFIG_MANPAGES 0 | ||
| 419 | +#define CONFIG_PODPAGES 0 | ||
| 420 | +#define CONFIG_TXTPAGES 0 | ||
| 421 | +#define CONFIG_AVIO_LIST_DIR_EXAMPLE 1 | ||
| 422 | +#define CONFIG_AVIO_READING_EXAMPLE 1 | ||
| 423 | +#define CONFIG_DECODE_AUDIO_EXAMPLE 1 | ||
| 424 | +#define CONFIG_DECODE_VIDEO_EXAMPLE 1 | ||
| 425 | +#define CONFIG_DEMUXING_DECODING_EXAMPLE 1 | ||
| 426 | +#define CONFIG_ENCODE_AUDIO_EXAMPLE 1 | ||
| 427 | +#define CONFIG_ENCODE_VIDEO_EXAMPLE 1 | ||
| 428 | +#define CONFIG_EXTRACT_MVS_EXAMPLE 1 | ||
| 429 | +#define CONFIG_FILTER_AUDIO_EXAMPLE 0 | ||
| 430 | +#define CONFIG_FILTERING_AUDIO_EXAMPLE 0 | ||
| 431 | +#define CONFIG_FILTERING_VIDEO_EXAMPLE 0 | ||
| 432 | +#define CONFIG_HTTP_MULTICLIENT_EXAMPLE 1 | ||
| 433 | +#define CONFIG_HW_DECODE_EXAMPLE 1 | ||
| 434 | +#define CONFIG_METADATA_EXAMPLE 1 | ||
| 435 | +#define CONFIG_MUXING_EXAMPLE 0 | ||
| 436 | +#define CONFIG_QSVDEC_EXAMPLE 0 | ||
| 437 | +#define CONFIG_REMUXING_EXAMPLE 1 | ||
| 438 | +#define CONFIG_RESAMPLING_AUDIO_EXAMPLE 0 | ||
| 439 | +#define CONFIG_SCALING_VIDEO_EXAMPLE 0 | ||
| 440 | +#define CONFIG_TRANSCODE_AAC_EXAMPLE 0 | ||
| 441 | +#define CONFIG_TRANSCODING_EXAMPLE 0 | ||
| 442 | +#define CONFIG_VAAPI_ENCODE_EXAMPLE 0 | ||
| 443 | +#define CONFIG_VAAPI_TRANSCODE_EXAMPLE 0 | ||
| 444 | +#define CONFIG_AVISYNTH 0 | ||
| 445 | +#define CONFIG_FREI0R 0 | ||
| 446 | +#define CONFIG_LIBCDIO 0 | ||
| 447 | +#define CONFIG_LIBDAVS2 0 | ||
| 448 | +#define CONFIG_LIBRUBBERBAND 0 | ||
| 449 | +#define CONFIG_LIBVIDSTAB 0 | ||
| 450 | +#define CONFIG_LIBX264 0 | ||
| 451 | +#define CONFIG_LIBX265 0 | ||
| 452 | +#define CONFIG_LIBXAVS 0 | ||
| 453 | +#define CONFIG_LIBXAVS2 0 | ||
| 454 | +#define CONFIG_LIBXVID 0 | ||
| 455 | +#define CONFIG_DECKLINK 0 | ||
| 456 | +#define CONFIG_LIBFDK_AAC 0 | ||
| 457 | +#define CONFIG_LIBTLS 0 | ||
| 458 | +#define CONFIG_GMP 0 | ||
| 459 | +#define CONFIG_LIBARIBB24 0 | ||
| 460 | +#define CONFIG_LIBLENSFUN 0 | ||
| 461 | +#define CONFIG_LIBOPENCORE_AMRNB 0 | ||
| 462 | +#define CONFIG_LIBOPENCORE_AMRWB 0 | ||
| 463 | +#define CONFIG_LIBVO_AMRWBENC 0 | ||
| 464 | +#define CONFIG_MBEDTLS 0 | ||
| 465 | +#define CONFIG_RKMPP 0 | ||
| 466 | +#define CONFIG_LIBSMBCLIENT 0 | ||
| 467 | +#define CONFIG_CHROMAPRINT 0 | ||
| 468 | +#define CONFIG_GCRYPT 0 | ||
| 469 | +#define CONFIG_GNUTLS 0 | ||
| 470 | +#define CONFIG_JNI 0 | ||
| 471 | +#define CONFIG_LADSPA 0 | ||
| 472 | +#define CONFIG_LIBAOM 0 | ||
| 473 | +#define CONFIG_LIBASS 0 | ||
| 474 | +#define CONFIG_LIBBLURAY 0 | ||
| 475 | +#define CONFIG_LIBBS2B 0 | ||
| 476 | +#define CONFIG_LIBCACA 0 | ||
| 477 | +#define CONFIG_LIBCELT 0 | ||
| 478 | +#define CONFIG_LIBCODEC2 0 | ||
| 479 | +#define CONFIG_LIBDAV1D 0 | ||
| 480 | +#define CONFIG_LIBDC1394 0 | ||
| 481 | +#define CONFIG_LIBDRM 0 | ||
| 482 | +#define CONFIG_LIBFLITE 0 | ||
| 483 | +#define CONFIG_LIBFONTCONFIG 0 | ||
| 484 | +#define CONFIG_LIBFREETYPE 0 | ||
| 485 | +#define CONFIG_LIBFRIBIDI 0 | ||
| 486 | +#define CONFIG_LIBGLSLANG 0 | ||
| 487 | +#define CONFIG_LIBGME 0 | ||
| 488 | +#define CONFIG_LIBGSM 0 | ||
| 489 | +#define CONFIG_LIBIEC61883 0 | ||
| 490 | +#define CONFIG_LIBILBC 0 | ||
| 491 | +#define CONFIG_LIBJACK 0 | ||
| 492 | +#define CONFIG_LIBKLVANC 0 | ||
| 493 | +#define CONFIG_LIBKVAZAAR 0 | ||
| 494 | +#define CONFIG_LIBMODPLUG 0 | ||
| 495 | +#define CONFIG_LIBMP3LAME 0 | ||
| 496 | +#define CONFIG_LIBMYSOFA 0 | ||
| 497 | +#define CONFIG_LIBOPENCV 0 | ||
| 498 | +#define CONFIG_LIBOPENH264 0 | ||
| 499 | +#define CONFIG_LIBOPENJPEG 0 | ||
| 500 | +#define CONFIG_LIBOPENMPT 0 | ||
| 501 | +#define CONFIG_LIBOPENVINO 0 | ||
| 502 | +#define CONFIG_LIBOPUS 1 | ||
| 503 | +#define CONFIG_LIBPLACEBO 0 | ||
| 504 | +#define CONFIG_LIBPULSE 0 | ||
| 505 | +#define CONFIG_LIBRABBITMQ 0 | ||
| 506 | +#define CONFIG_LIBRAV1E 0 | ||
| 507 | +#define CONFIG_LIBRIST 0 | ||
| 508 | +#define CONFIG_LIBRSVG 0 | ||
| 509 | +#define CONFIG_LIBRTMP 0 | ||
| 510 | +#define CONFIG_LIBSHADERC 0 | ||
| 511 | +#define CONFIG_LIBSHINE 0 | ||
| 512 | +#define CONFIG_LIBSMBCLIENT 0 | ||
| 513 | +#define CONFIG_LIBSNAPPY 0 | ||
| 514 | +#define CONFIG_LIBSOXR 0 | ||
| 515 | +#define CONFIG_LIBSPEEX 0 | ||
| 516 | +#define CONFIG_LIBSRT 0 | ||
| 517 | +#define CONFIG_LIBSSH 0 | ||
| 518 | +#define CONFIG_LIBSVTAV1 0 | ||
| 519 | +#define CONFIG_LIBTENSORFLOW 0 | ||
| 520 | +#define CONFIG_LIBTESSERACT 0 | ||
| 521 | +#define CONFIG_LIBTHEORA 0 | ||
| 522 | +#define CONFIG_LIBTWOLAME 0 | ||
| 523 | +#define CONFIG_LIBUAVS3D 0 | ||
| 524 | +#define CONFIG_LIBV4L2 0 | ||
| 525 | +#define CONFIG_LIBVMAF 0 | ||
| 526 | +#define CONFIG_LIBVORBIS 0 | ||
| 527 | +#define CONFIG_LIBVPX 0 | ||
| 528 | +#define CONFIG_LIBWEBP 0 | ||
| 529 | +#define CONFIG_LIBXML2 0 | ||
| 530 | +#define CONFIG_LIBZIMG 0 | ||
| 531 | +#define CONFIG_LIBZMQ 0 | ||
| 532 | +#define CONFIG_LIBZVBI 0 | ||
| 533 | +#define CONFIG_LV2 0 | ||
| 534 | +#define CONFIG_MEDIACODEC 0 | ||
| 535 | +#define CONFIG_OPENAL 0 | ||
| 536 | +#define CONFIG_OPENGL 0 | ||
| 537 | +#define CONFIG_OPENSSL 0 | ||
| 538 | +#define CONFIG_POCKETSPHINX 0 | ||
| 539 | +#define CONFIG_VAPOURSYNTH 0 | ||
| 540 | +#define CONFIG_ALSA 0 | ||
| 541 | +#define CONFIG_APPKIT 0 | ||
| 542 | +#define CONFIG_AVFOUNDATION 0 | ||
| 543 | +#define CONFIG_BZLIB 0 | ||
| 544 | +#define CONFIG_COREIMAGE 0 | ||
| 545 | +#define CONFIG_ICONV 0 | ||
| 546 | +#define CONFIG_LIBXCB 0 | ||
| 547 | +#define CONFIG_LIBXCB_SHM 0 | ||
| 548 | +#define CONFIG_LIBXCB_SHAPE 0 | ||
| 549 | +#define CONFIG_LIBXCB_XFIXES 0 | ||
| 550 | +#define CONFIG_LZMA 0 | ||
| 551 | +#define CONFIG_MEDIAFOUNDATION 0 | ||
| 552 | +#define CONFIG_METAL 0 | ||
| 553 | +#define CONFIG_SCHANNEL 0 | ||
| 554 | +#define CONFIG_SDL2 0 | ||
| 555 | +#define CONFIG_SECURETRANSPORT 0 | ||
| 556 | +#define CONFIG_SNDIO 0 | ||
| 557 | +#define CONFIG_XLIB 0 | ||
| 558 | +#define CONFIG_ZLIB 0 | ||
| 559 | +#define CONFIG_CUDA_NVCC 0 | ||
| 560 | +#define CONFIG_CUDA_SDK 0 | ||
| 561 | +#define CONFIG_LIBNPP 0 | ||
| 562 | +#define CONFIG_LIBMFX 0 | ||
| 563 | +#define CONFIG_MMAL 0 | ||
| 564 | +#define CONFIG_OMX 0 | ||
| 565 | +#define CONFIG_OPENCL 0 | ||
| 566 | +#define CONFIG_AMF 0 | ||
| 567 | +#define CONFIG_AUDIOTOOLBOX 0 | ||
| 568 | +#define CONFIG_CRYSTALHD 0 | ||
| 569 | +#define CONFIG_CUDA 0 | ||
| 570 | +#define CONFIG_CUDA_LLVM 0 | ||
| 571 | +#define CONFIG_CUVID 0 | ||
| 572 | +#define CONFIG_D3D11VA 0 | ||
| 573 | +#define CONFIG_DXVA2 0 | ||
| 574 | +#define CONFIG_FFNVCODEC 0 | ||
| 575 | +#define CONFIG_NVDEC 0 | ||
| 576 | +#define CONFIG_NVENC 0 | ||
| 577 | +#define CONFIG_VAAPI 0 | ||
| 578 | +#define CONFIG_VDPAU 0 | ||
| 579 | +#define CONFIG_VIDEOTOOLBOX 0 | ||
| 580 | +#define CONFIG_VULKAN 0 | ||
| 581 | +#define CONFIG_V4L2_M2M 0 | ||
| 582 | +#define CONFIG_XVMC 0 | ||
| 583 | +#define CONFIG_FTRAPV 0 | ||
| 584 | +#define CONFIG_GRAY 0 | ||
| 585 | +#define CONFIG_HARDCODED_TABLES 0 | ||
| 586 | +#define CONFIG_OMX_RPI 0 | ||
| 587 | +#define CONFIG_RUNTIME_CPUDETECT 1 | ||
| 588 | +#define CONFIG_SAFE_BITSTREAM_READER 1 | ||
| 589 | +#define CONFIG_SHARED 0 | ||
| 590 | +#define CONFIG_SMALL 0 | ||
| 591 | +#define CONFIG_STATIC 1 | ||
| 592 | +#define CONFIG_SWSCALE_ALPHA 1 | ||
| 593 | +#define CONFIG_GPL 0 | ||
| 594 | +#define CONFIG_NONFREE 0 | ||
| 595 | +#define CONFIG_VERSION3 0 | ||
| 596 | +#define CONFIG_AVDEVICE 0 | ||
| 597 | +#define CONFIG_AVFILTER 0 | ||
| 598 | +#define CONFIG_SWSCALE 0 | ||
| 599 | +#define CONFIG_POSTPROC 0 | ||
| 600 | +#define CONFIG_AVFORMAT 1 | ||
| 601 | +#define CONFIG_AVCODEC 1 | ||
| 602 | +#define CONFIG_SWRESAMPLE 0 | ||
| 603 | +#define CONFIG_AVUTIL 1 | ||
| 604 | +#define CONFIG_FFPLAY 0 | ||
| 605 | +#define CONFIG_FFPROBE 0 | ||
| 606 | +#define CONFIG_FFMPEG 0 | ||
| 607 | +#define CONFIG_DCT 1 | ||
| 608 | +#define CONFIG_DWT 0 | ||
| 609 | +#define CONFIG_ERROR_RESILIENCE 0 | ||
| 610 | +#define CONFIG_FAAN 0 | ||
| 611 | +#define CONFIG_FAST_UNALIGNED 1 | ||
| 612 | +#define CONFIG_FFT 1 | ||
| 613 | +#define CONFIG_LSP 0 | ||
| 614 | +#define CONFIG_LZO 0 | ||
| 615 | +#define CONFIG_MDCT 1 | ||
| 616 | +#define CONFIG_PIXELUTILS 0 | ||
| 617 | +#define CONFIG_NETWORK 0 | ||
| 618 | +#define CONFIG_RDFT 1 | ||
| 619 | +#define CONFIG_AUTODETECT 0 | ||
| 620 | +#define CONFIG_FONTCONFIG 0 | ||
| 621 | +#define CONFIG_LARGE_TESTS 1 | ||
| 622 | +#define CONFIG_LINUX_PERF 0 | ||
| 623 | +#define CONFIG_MACOS_KPERF 0 | ||
| 624 | +#define CONFIG_MEMORY_POISONING 0 | ||
| 625 | +#define CONFIG_NEON_CLOBBER_TEST 0 | ||
| 626 | +#define CONFIG_OSSFUZZ 0 | ||
| 627 | +#define CONFIG_PIC 1 | ||
| 628 | +#define CONFIG_PTX_COMPRESSION 0 | ||
| 629 | +#define CONFIG_THUMB 0 | ||
| 630 | +#define CONFIG_VALGRIND_BACKTRACE 0 | ||
| 631 | +#define CONFIG_XMM_CLOBBER_TEST 0 | ||
| 632 | +#define CONFIG_BSFS 0 | ||
| 633 | +#define CONFIG_DECODERS 1 | ||
| 634 | +#define CONFIG_ENCODERS 0 | ||
| 635 | +#define CONFIG_HWACCELS 0 | ||
| 636 | +#define CONFIG_PARSERS 1 | ||
| 637 | +#define CONFIG_INDEVS 0 | ||
| 638 | +#define CONFIG_OUTDEVS 0 | ||
| 639 | +#define CONFIG_FILTERS 0 | ||
| 640 | +#define CONFIG_DEMUXERS 1 | ||
| 641 | +#define CONFIG_MUXERS 0 | ||
| 642 | +#define CONFIG_PROTOCOLS 0 | ||
| 643 | +#define CONFIG_AANDCTTABLES 0 | ||
| 644 | +#define CONFIG_AC3DSP 0 | ||
| 645 | +#define CONFIG_ADTS_HEADER 1 | ||
| 646 | +#define CONFIG_ATSC_A53 1 | ||
| 647 | +#define CONFIG_AUDIO_FRAME_QUEUE 0 | ||
| 648 | +#define CONFIG_AUDIODSP 0 | ||
| 649 | +#define CONFIG_BLOCKDSP 0 | ||
| 650 | +#define CONFIG_BSWAPDSP 0 | ||
| 651 | +#define CONFIG_CABAC 1 | ||
| 652 | +#define CONFIG_CBS 0 | ||
| 653 | +#define CONFIG_CBS_AV1 0 | ||
| 654 | +#define CONFIG_CBS_H264 0 | ||
| 655 | +#define CONFIG_CBS_H265 0 | ||
| 656 | +#define CONFIG_CBS_JPEG 0 | ||
| 657 | +#define CONFIG_CBS_MPEG2 0 | ||
| 658 | +#define CONFIG_CBS_VP9 0 | ||
| 659 | +#define CONFIG_DIRAC_PARSE 1 | ||
| 660 | +#define CONFIG_DNN 0 | ||
| 661 | +#define CONFIG_DOVI_RPU 0 | ||
| 662 | +#define CONFIG_DVPROFILE 0 | ||
| 663 | +#define CONFIG_EXIF 0 | ||
| 664 | +#define CONFIG_FAANDCT 0 | ||
| 665 | +#define CONFIG_FAANIDCT 0 | ||
| 666 | +#define CONFIG_FDCTDSP 0 | ||
| 667 | +#define CONFIG_FLACDSP 1 | ||
| 668 | +#define CONFIG_FMTCONVERT 0 | ||
| 669 | +#define CONFIG_FRAME_THREAD_ENCODER 0 | ||
| 670 | +#define CONFIG_G722DSP 0 | ||
| 671 | +#define CONFIG_GOLOMB 1 | ||
| 672 | +#define CONFIG_GPLV3 0 | ||
| 673 | +#define CONFIG_H263DSP 0 | ||
| 674 | +#define CONFIG_H264CHROMA 1 | ||
| 675 | +#define CONFIG_H264DSP 1 | ||
| 676 | +#define CONFIG_H264PARSE 1 | ||
| 677 | +#define CONFIG_H264PRED 1 | ||
| 678 | +#define CONFIG_H264QPEL 1 | ||
| 679 | +#define CONFIG_HEVCPARSE 0 | ||
| 680 | +#define CONFIG_HPELDSP 1 | ||
| 681 | +#define CONFIG_HUFFMAN 0 | ||
| 682 | +#define CONFIG_HUFFYUVDSP 0 | ||
| 683 | +#define CONFIG_HUFFYUVENCDSP 0 | ||
| 684 | +#define CONFIG_IDCTDSP 0 | ||
| 685 | +#define CONFIG_IIRFILTER 0 | ||
| 686 | +#define CONFIG_MDCT15 1 | ||
| 687 | +#define CONFIG_INTRAX8 0 | ||
| 688 | +#define CONFIG_ISO_MEDIA 1 | ||
| 689 | +#define CONFIG_IVIDSP 0 | ||
| 690 | +#define CONFIG_JPEGTABLES 0 | ||
| 691 | +#define CONFIG_LGPLV3 0 | ||
| 692 | +#define CONFIG_LIBX262 0 | ||
| 693 | +#define CONFIG_LLAUDDSP 0 | ||
| 694 | +#define CONFIG_LLVIDDSP 0 | ||
| 695 | +#define CONFIG_LLVIDENCDSP 0 | ||
| 696 | +#define CONFIG_LPC 0 | ||
| 697 | +#define CONFIG_LZF 0 | ||
| 698 | +#define CONFIG_ME_CMP 0 | ||
| 699 | +#define CONFIG_MPEG_ER 0 | ||
| 700 | +#define CONFIG_MPEGAUDIO 1 | ||
| 701 | +#define CONFIG_MPEGAUDIODSP 1 | ||
| 702 | +#define CONFIG_MPEGAUDIOHEADER 1 | ||
| 703 | +#define CONFIG_MPEG4AUDIO 1 | ||
| 704 | +#define CONFIG_MPEGVIDEO 0 | ||
| 705 | +#define CONFIG_MPEGVIDEODEC 0 | ||
| 706 | +#define CONFIG_MPEGVIDEOENC 0 | ||
| 707 | +#define CONFIG_MSS34DSP 0 | ||
| 708 | +#define CONFIG_PIXBLOCKDSP 0 | ||
| 709 | +#define CONFIG_QPELDSP 0 | ||
| 710 | +#define CONFIG_QSV 0 | ||
| 711 | +#define CONFIG_QSVDEC 0 | ||
| 712 | +#define CONFIG_QSVENC 0 | ||
| 713 | +#define CONFIG_QSVVPP 0 | ||
| 714 | +#define CONFIG_RANGECODER 0 | ||
| 715 | +#define CONFIG_RIFFDEC 1 | ||
| 716 | +#define CONFIG_RIFFENC 0 | ||
| 717 | +#define CONFIG_RTPDEC 0 | ||
| 718 | +#define CONFIG_RTPENC_CHAIN 0 | ||
| 719 | +#define CONFIG_RV34DSP 0 | ||
| 720 | +#define CONFIG_SCENE_SAD 0 | ||
| 721 | +#define CONFIG_SINEWIN 1 | ||
| 722 | +#define CONFIG_SNAPPY 0 | ||
| 723 | +#define CONFIG_SRTP 0 | ||
| 724 | +#define CONFIG_STARTCODE 1 | ||
| 725 | +#define CONFIG_TEXTUREDSP 0 | ||
| 726 | +#define CONFIG_TEXTUREDSPENC 0 | ||
| 727 | +#define CONFIG_TPELDSP 0 | ||
| 728 | +#define CONFIG_VAAPI_1 0 | ||
| 729 | +#define CONFIG_VAAPI_ENCODE 0 | ||
| 730 | +#define CONFIG_VC1DSP 0 | ||
| 731 | +#define CONFIG_VIDEODSP 1 | ||
| 732 | +#define CONFIG_VP3DSP 1 | ||
| 733 | +#define CONFIG_VP56DSP 0 | ||
| 734 | +#define CONFIG_VP8DSP 1 | ||
| 735 | +#define CONFIG_WMA_FREQS 0 | ||
| 736 | +#define CONFIG_WMV2DSP 0 | ||
| 737 | +#define CONFIG_AAC_ADTSTOASC_BSF 0 | ||
| 738 | +#define CONFIG_AV1_FRAME_MERGE_BSF 0 | ||
| 739 | +#define CONFIG_AV1_FRAME_SPLIT_BSF 0 | ||
| 740 | +#define CONFIG_AV1_METADATA_BSF 0 | ||
| 741 | +#define CONFIG_CHOMP_BSF 0 | ||
| 742 | +#define CONFIG_DUMP_EXTRADATA_BSF 0 | ||
| 743 | +#define CONFIG_DCA_CORE_BSF 0 | ||
| 744 | +#define CONFIG_EAC3_CORE_BSF 0 | ||
| 745 | +#define CONFIG_EXTRACT_EXTRADATA_BSF 0 | ||
| 746 | +#define CONFIG_FILTER_UNITS_BSF 0 | ||
| 747 | +#define CONFIG_H264_METADATA_BSF 0 | ||
| 748 | +#define CONFIG_H264_MP4TOANNEXB_BSF 0 | ||
| 749 | +#define CONFIG_H264_REDUNDANT_PPS_BSF 0 | ||
| 750 | +#define CONFIG_HAPQA_EXTRACT_BSF 0 | ||
| 751 | +#define CONFIG_HEVC_METADATA_BSF 0 | ||
| 752 | +#define CONFIG_HEVC_MP4TOANNEXB_BSF 0 | ||
| 753 | +#define CONFIG_IMX_DUMP_HEADER_BSF 0 | ||
| 754 | +#define CONFIG_MJPEG2JPEG_BSF 0 | ||
| 755 | +#define CONFIG_MJPEGA_DUMP_HEADER_BSF 0 | ||
| 756 | +#define CONFIG_MP3_HEADER_DECOMPRESS_BSF 0 | ||
| 757 | +#define CONFIG_MPEG2_METADATA_BSF 0 | ||
| 758 | +#define CONFIG_MPEG4_UNPACK_BFRAMES_BSF 0 | ||
| 759 | +#define CONFIG_MOV2TEXTSUB_BSF 0 | ||
| 760 | +#define CONFIG_NOISE_BSF 0 | ||
| 761 | +#define CONFIG_NULL_BSF 0 | ||
| 762 | +#define CONFIG_OPUS_METADATA_BSF 0 | ||
| 763 | +#define CONFIG_PCM_RECHUNK_BSF 0 | ||
| 764 | +#define CONFIG_PRORES_METADATA_BSF 0 | ||
| 765 | +#define CONFIG_REMOVE_EXTRADATA_BSF 0 | ||
| 766 | +#define CONFIG_SETTS_BSF 0 | ||
| 767 | +#define CONFIG_TEXT2MOVSUB_BSF 0 | ||
| 768 | +#define CONFIG_TRACE_HEADERS_BSF 0 | ||
| 769 | +#define CONFIG_TRUEHD_CORE_BSF 0 | ||
| 770 | +#define CONFIG_VP9_METADATA_BSF 0 | ||
| 771 | +#define CONFIG_VP9_RAW_REORDER_BSF 0 | ||
| 772 | +#define CONFIG_VP9_SUPERFRAME_BSF 0 | ||
| 773 | +#define CONFIG_VP9_SUPERFRAME_SPLIT_BSF 0 | ||
| 774 | +#define CONFIG_AASC_DECODER 0 | ||
| 775 | +#define CONFIG_AIC_DECODER 0 | ||
| 776 | +#define CONFIG_ALIAS_PIX_DECODER 0 | ||
| 777 | +#define CONFIG_AGM_DECODER 0 | ||
| 778 | +#define CONFIG_AMV_DECODER 0 | ||
| 779 | +#define CONFIG_ANM_DECODER 0 | ||
| 780 | +#define CONFIG_ANSI_DECODER 0 | ||
| 781 | +#define CONFIG_APNG_DECODER 0 | ||
| 782 | +#define CONFIG_ARBC_DECODER 0 | ||
| 783 | +#define CONFIG_ARGO_DECODER 0 | ||
| 784 | +#define CONFIG_ASV1_DECODER 0 | ||
| 785 | +#define CONFIG_ASV2_DECODER 0 | ||
| 786 | +#define CONFIG_AURA_DECODER 0 | ||
| 787 | +#define CONFIG_AURA2_DECODER 0 | ||
| 788 | +#define CONFIG_AVRP_DECODER 0 | ||
| 789 | +#define CONFIG_AVRN_DECODER 0 | ||
| 790 | +#define CONFIG_AVS_DECODER 0 | ||
| 791 | +#define CONFIG_AVUI_DECODER 0 | ||
| 792 | +#define CONFIG_AYUV_DECODER 0 | ||
| 793 | +#define CONFIG_BETHSOFTVID_DECODER 0 | ||
| 794 | +#define CONFIG_BFI_DECODER 0 | ||
| 795 | +#define CONFIG_BINK_DECODER 0 | ||
| 796 | +#define CONFIG_BITPACKED_DECODER 0 | ||
| 797 | +#define CONFIG_BMP_DECODER 0 | ||
| 798 | +#define CONFIG_BMV_VIDEO_DECODER 0 | ||
| 799 | +#define CONFIG_BRENDER_PIX_DECODER 0 | ||
| 800 | +#define CONFIG_C93_DECODER 0 | ||
| 801 | +#define CONFIG_CAVS_DECODER 0 | ||
| 802 | +#define CONFIG_CDGRAPHICS_DECODER 0 | ||
| 803 | +#define CONFIG_CDTOONS_DECODER 0 | ||
| 804 | +#define CONFIG_CDXL_DECODER 0 | ||
| 805 | +#define CONFIG_CFHD_DECODER 0 | ||
| 806 | +#define CONFIG_CINEPAK_DECODER 0 | ||
| 807 | +#define CONFIG_CLEARVIDEO_DECODER 0 | ||
| 808 | +#define CONFIG_CLJR_DECODER 0 | ||
| 809 | +#define CONFIG_CLLC_DECODER 0 | ||
| 810 | +#define CONFIG_COMFORTNOISE_DECODER 0 | ||
| 811 | +#define CONFIG_CPIA_DECODER 0 | ||
| 812 | +#define CONFIG_CRI_DECODER 0 | ||
| 813 | +#define CONFIG_CSCD_DECODER 0 | ||
| 814 | +#define CONFIG_CYUV_DECODER 0 | ||
| 815 | +#define CONFIG_DDS_DECODER 0 | ||
| 816 | +#define CONFIG_DFA_DECODER 0 | ||
| 817 | +#define CONFIG_DIRAC_DECODER 0 | ||
| 818 | +#define CONFIG_DNXHD_DECODER 0 | ||
| 819 | +#define CONFIG_DPX_DECODER 0 | ||
| 820 | +#define CONFIG_DSICINVIDEO_DECODER 0 | ||
| 821 | +#define CONFIG_DVAUDIO_DECODER 0 | ||
| 822 | +#define CONFIG_DVVIDEO_DECODER 0 | ||
| 823 | +#define CONFIG_DXA_DECODER 0 | ||
| 824 | +#define CONFIG_DXTORY_DECODER 0 | ||
| 825 | +#define CONFIG_DXV_DECODER 0 | ||
| 826 | +#define CONFIG_EACMV_DECODER 0 | ||
| 827 | +#define CONFIG_EAMAD_DECODER 0 | ||
| 828 | +#define CONFIG_EATGQ_DECODER 0 | ||
| 829 | +#define CONFIG_EATGV_DECODER 0 | ||
| 830 | +#define CONFIG_EATQI_DECODER 0 | ||
| 831 | +#define CONFIG_EIGHTBPS_DECODER 0 | ||
| 832 | +#define CONFIG_EIGHTSVX_EXP_DECODER 0 | ||
| 833 | +#define CONFIG_EIGHTSVX_FIB_DECODER 0 | ||
| 834 | +#define CONFIG_ESCAPE124_DECODER 0 | ||
| 835 | +#define CONFIG_ESCAPE130_DECODER 0 | ||
| 836 | +#define CONFIG_EXR_DECODER 0 | ||
| 837 | +#define CONFIG_FFV1_DECODER 0 | ||
| 838 | +#define CONFIG_FFVHUFF_DECODER 0 | ||
| 839 | +#define CONFIG_FIC_DECODER 0 | ||
| 840 | +#define CONFIG_FITS_DECODER 0 | ||
| 841 | +#define CONFIG_FLASHSV_DECODER 0 | ||
| 842 | +#define CONFIG_FLASHSV2_DECODER 0 | ||
| 843 | +#define CONFIG_FLIC_DECODER 0 | ||
| 844 | +#define CONFIG_FLV_DECODER 0 | ||
| 845 | +#define CONFIG_FMVC_DECODER 0 | ||
| 846 | +#define CONFIG_FOURXM_DECODER 0 | ||
| 847 | +#define CONFIG_FRAPS_DECODER 0 | ||
| 848 | +#define CONFIG_FRWU_DECODER 0 | ||
| 849 | +#define CONFIG_G2M_DECODER 0 | ||
| 850 | +#define CONFIG_GDV_DECODER 0 | ||
| 851 | +#define CONFIG_GEM_DECODER 0 | ||
| 852 | +#define CONFIG_GIF_DECODER 0 | ||
| 853 | +#define CONFIG_H261_DECODER 0 | ||
| 854 | +#define CONFIG_H263_DECODER 0 | ||
| 855 | +#define CONFIG_H263I_DECODER 0 | ||
| 856 | +#define CONFIG_H263P_DECODER 0 | ||
| 857 | +#define CONFIG_H263_V4L2M2M_DECODER 0 | ||
| 858 | +#define CONFIG_H264_DECODER 1 | ||
| 859 | +#define CONFIG_H264_CRYSTALHD_DECODER 0 | ||
| 860 | +#define CONFIG_H264_V4L2M2M_DECODER 0 | ||
| 861 | +#define CONFIG_H264_MEDIACODEC_DECODER 0 | ||
| 862 | +#define CONFIG_H264_MMAL_DECODER 0 | ||
| 863 | +#define CONFIG_H264_QSV_DECODER 0 | ||
| 864 | +#define CONFIG_H264_RKMPP_DECODER 0 | ||
| 865 | +#define CONFIG_HAP_DECODER 0 | ||
| 866 | +#define CONFIG_HEVC_DECODER 0 | ||
| 867 | +#define CONFIG_HEVC_QSV_DECODER 0 | ||
| 868 | +#define CONFIG_HEVC_RKMPP_DECODER 0 | ||
| 869 | +#define CONFIG_HEVC_V4L2M2M_DECODER 0 | ||
| 870 | +#define CONFIG_HNM4_VIDEO_DECODER 0 | ||
| 871 | +#define CONFIG_HQ_HQA_DECODER 0 | ||
| 872 | +#define CONFIG_HQX_DECODER 0 | ||
| 873 | +#define CONFIG_HUFFYUV_DECODER 0 | ||
| 874 | +#define CONFIG_HYMT_DECODER 0 | ||
| 875 | +#define CONFIG_IDCIN_DECODER 0 | ||
| 876 | +#define CONFIG_IFF_ILBM_DECODER 0 | ||
| 877 | +#define CONFIG_IMM4_DECODER 0 | ||
| 878 | +#define CONFIG_IMM5_DECODER 0 | ||
| 879 | +#define CONFIG_INDEO2_DECODER 0 | ||
| 880 | +#define CONFIG_INDEO3_DECODER 0 | ||
| 881 | +#define CONFIG_INDEO4_DECODER 0 | ||
| 882 | +#define CONFIG_INDEO5_DECODER 0 | ||
| 883 | +#define CONFIG_INTERPLAY_VIDEO_DECODER 0 | ||
| 884 | +#define CONFIG_IPU_DECODER 0 | ||
| 885 | +#define CONFIG_JPEG2000_DECODER 0 | ||
| 886 | +#define CONFIG_JPEGLS_DECODER 0 | ||
| 887 | +#define CONFIG_JV_DECODER 0 | ||
| 888 | +#define CONFIG_KGV1_DECODER 0 | ||
| 889 | +#define CONFIG_KMVC_DECODER 0 | ||
| 890 | +#define CONFIG_LAGARITH_DECODER 0 | ||
| 891 | +#define CONFIG_LOCO_DECODER 0 | ||
| 892 | +#define CONFIG_LSCR_DECODER 0 | ||
| 893 | +#define CONFIG_M101_DECODER 0 | ||
| 894 | +#define CONFIG_MAGICYUV_DECODER 0 | ||
| 895 | +#define CONFIG_MDEC_DECODER 0 | ||
| 896 | +#define CONFIG_MIMIC_DECODER 0 | ||
| 897 | +#define CONFIG_MJPEG_DECODER 0 | ||
| 898 | +#define CONFIG_MJPEGB_DECODER 0 | ||
| 899 | +#define CONFIG_MMVIDEO_DECODER 0 | ||
| 900 | +#define CONFIG_MOBICLIP_DECODER 0 | ||
| 901 | +#define CONFIG_MOTIONPIXELS_DECODER 0 | ||
| 902 | +#define CONFIG_MPEG1VIDEO_DECODER 0 | ||
| 903 | +#define CONFIG_MPEG2VIDEO_DECODER 0 | ||
| 904 | +#define CONFIG_MPEG4_DECODER 0 | ||
| 905 | +#define CONFIG_MPEG4_CRYSTALHD_DECODER 0 | ||
| 906 | +#define CONFIG_MPEG4_V4L2M2M_DECODER 0 | ||
| 907 | +#define CONFIG_MPEG4_MMAL_DECODER 0 | ||
| 908 | +#define CONFIG_MPEGVIDEO_DECODER 0 | ||
| 909 | +#define CONFIG_MPEG1_V4L2M2M_DECODER 0 | ||
| 910 | +#define CONFIG_MPEG2_MMAL_DECODER 0 | ||
| 911 | +#define CONFIG_MPEG2_CRYSTALHD_DECODER 0 | ||
| 912 | +#define CONFIG_MPEG2_V4L2M2M_DECODER 0 | ||
| 913 | +#define CONFIG_MPEG2_QSV_DECODER 0 | ||
| 914 | +#define CONFIG_MPEG2_MEDIACODEC_DECODER 0 | ||
| 915 | +#define CONFIG_MSA1_DECODER 0 | ||
| 916 | +#define CONFIG_MSCC_DECODER 0 | ||
| 917 | +#define CONFIG_MSMPEG4V1_DECODER 0 | ||
| 918 | +#define CONFIG_MSMPEG4V2_DECODER 0 | ||
| 919 | +#define CONFIG_MSMPEG4V3_DECODER 0 | ||
| 920 | +#define CONFIG_MSMPEG4_CRYSTALHD_DECODER 0 | ||
| 921 | +#define CONFIG_MSP2_DECODER 0 | ||
| 922 | +#define CONFIG_MSRLE_DECODER 0 | ||
| 923 | +#define CONFIG_MSS1_DECODER 0 | ||
| 924 | +#define CONFIG_MSS2_DECODER 0 | ||
| 925 | +#define CONFIG_MSVIDEO1_DECODER 0 | ||
| 926 | +#define CONFIG_MSZH_DECODER 0 | ||
| 927 | +#define CONFIG_MTS2_DECODER 0 | ||
| 928 | +#define CONFIG_MV30_DECODER 0 | ||
| 929 | +#define CONFIG_MVC1_DECODER 0 | ||
| 930 | +#define CONFIG_MVC2_DECODER 0 | ||
| 931 | +#define CONFIG_MVDV_DECODER 0 | ||
| 932 | +#define CONFIG_MVHA_DECODER 0 | ||
| 933 | +#define CONFIG_MWSC_DECODER 0 | ||
| 934 | +#define CONFIG_MXPEG_DECODER 0 | ||
| 935 | +#define CONFIG_NOTCHLC_DECODER 0 | ||
| 936 | +#define CONFIG_NUV_DECODER 0 | ||
| 937 | +#define CONFIG_PAF_VIDEO_DECODER 0 | ||
| 938 | +#define CONFIG_PAM_DECODER 0 | ||
| 939 | +#define CONFIG_PBM_DECODER 0 | ||
| 940 | +#define CONFIG_PCX_DECODER 0 | ||
| 941 | +#define CONFIG_PFM_DECODER 0 | ||
| 942 | +#define CONFIG_PGM_DECODER 0 | ||
| 943 | +#define CONFIG_PGMYUV_DECODER 0 | ||
| 944 | +#define CONFIG_PGX_DECODER 0 | ||
| 945 | +#define CONFIG_PHOTOCD_DECODER 0 | ||
| 946 | +#define CONFIG_PICTOR_DECODER 0 | ||
| 947 | +#define CONFIG_PIXLET_DECODER 0 | ||
| 948 | +#define CONFIG_PNG_DECODER 0 | ||
| 949 | +#define CONFIG_PPM_DECODER 0 | ||
| 950 | +#define CONFIG_PRORES_DECODER 0 | ||
| 951 | +#define CONFIG_PROSUMER_DECODER 0 | ||
| 952 | +#define CONFIG_PSD_DECODER 0 | ||
| 953 | +#define CONFIG_PTX_DECODER 0 | ||
| 954 | +#define CONFIG_QDRAW_DECODER 0 | ||
| 955 | +#define CONFIG_QPEG_DECODER 0 | ||
| 956 | +#define CONFIG_QTRLE_DECODER 0 | ||
| 957 | +#define CONFIG_R10K_DECODER 0 | ||
| 958 | +#define CONFIG_R210_DECODER 0 | ||
| 959 | +#define CONFIG_RASC_DECODER 0 | ||
| 960 | +#define CONFIG_RAWVIDEO_DECODER 0 | ||
| 961 | +#define CONFIG_RL2_DECODER 0 | ||
| 962 | +#define CONFIG_ROQ_DECODER 0 | ||
| 963 | +#define CONFIG_RPZA_DECODER 0 | ||
| 964 | +#define CONFIG_RSCC_DECODER 0 | ||
| 965 | +#define CONFIG_RV10_DECODER 0 | ||
| 966 | +#define CONFIG_RV20_DECODER 0 | ||
| 967 | +#define CONFIG_RV30_DECODER 0 | ||
| 968 | +#define CONFIG_RV40_DECODER 0 | ||
| 969 | +#define CONFIG_S302M_DECODER 0 | ||
| 970 | +#define CONFIG_SANM_DECODER 0 | ||
| 971 | +#define CONFIG_SCPR_DECODER 0 | ||
| 972 | +#define CONFIG_SCREENPRESSO_DECODER 0 | ||
| 973 | +#define CONFIG_SGA_DECODER 0 | ||
| 974 | +#define CONFIG_SGI_DECODER 0 | ||
| 975 | +#define CONFIG_SGIRLE_DECODER 0 | ||
| 976 | +#define CONFIG_SHEERVIDEO_DECODER 0 | ||
| 977 | +#define CONFIG_SIMBIOSIS_IMX_DECODER 0 | ||
| 978 | +#define CONFIG_SMACKER_DECODER 0 | ||
| 979 | +#define CONFIG_SMC_DECODER 0 | ||
| 980 | +#define CONFIG_SMVJPEG_DECODER 0 | ||
| 981 | +#define CONFIG_SNOW_DECODER 0 | ||
| 982 | +#define CONFIG_SP5X_DECODER 0 | ||
| 983 | +#define CONFIG_SPEEDHQ_DECODER 0 | ||
| 984 | +#define CONFIG_SPEEX_DECODER 0 | ||
| 985 | +#define CONFIG_SRGC_DECODER 0 | ||
| 986 | +#define CONFIG_SUNRAST_DECODER 0 | ||
| 987 | +#define CONFIG_SVQ1_DECODER 0 | ||
| 988 | +#define CONFIG_SVQ3_DECODER 0 | ||
| 989 | +#define CONFIG_TARGA_DECODER 0 | ||
| 990 | +#define CONFIG_TARGA_Y216_DECODER 0 | ||
| 991 | +#define CONFIG_TDSC_DECODER 0 | ||
| 992 | +#define CONFIG_THEORA_DECODER 1 | ||
| 993 | +#define CONFIG_THP_DECODER 0 | ||
| 994 | +#define CONFIG_TIERTEXSEQVIDEO_DECODER 0 | ||
| 995 | +#define CONFIG_TIFF_DECODER 0 | ||
| 996 | +#define CONFIG_TMV_DECODER 0 | ||
| 997 | +#define CONFIG_TRUEMOTION1_DECODER 0 | ||
| 998 | +#define CONFIG_TRUEMOTION2_DECODER 0 | ||
| 999 | +#define CONFIG_TRUEMOTION2RT_DECODER 0 | ||
| 1000 | +#define CONFIG_TSCC_DECODER 0 | ||
| 1001 | +#define CONFIG_TSCC2_DECODER 0 | ||
| 1002 | +#define CONFIG_TXD_DECODER 0 | ||
| 1003 | +#define CONFIG_ULTI_DECODER 0 | ||
| 1004 | +#define CONFIG_UTVIDEO_DECODER 0 | ||
| 1005 | +#define CONFIG_V210_DECODER 0 | ||
| 1006 | +#define CONFIG_V210X_DECODER 0 | ||
| 1007 | +#define CONFIG_V308_DECODER 0 | ||
| 1008 | +#define CONFIG_V408_DECODER 0 | ||
| 1009 | +#define CONFIG_V410_DECODER 0 | ||
| 1010 | +#define CONFIG_VB_DECODER 0 | ||
| 1011 | +#define CONFIG_VBLE_DECODER 0 | ||
| 1012 | +#define CONFIG_VC1_DECODER 0 | ||
| 1013 | +#define CONFIG_VC1_CRYSTALHD_DECODER 0 | ||
| 1014 | +#define CONFIG_VC1IMAGE_DECODER 0 | ||
| 1015 | +#define CONFIG_VC1_MMAL_DECODER 0 | ||
| 1016 | +#define CONFIG_VC1_QSV_DECODER 0 | ||
| 1017 | +#define CONFIG_VC1_V4L2M2M_DECODER 0 | ||
| 1018 | +#define CONFIG_VCR1_DECODER 0 | ||
| 1019 | +#define CONFIG_VMDVIDEO_DECODER 0 | ||
| 1020 | +#define CONFIG_VMNC_DECODER 0 | ||
| 1021 | +#define CONFIG_VP3_DECODER 1 | ||
| 1022 | +#define CONFIG_VP4_DECODER 0 | ||
| 1023 | +#define CONFIG_VP5_DECODER 0 | ||
| 1024 | +#define CONFIG_VP6_DECODER 0 | ||
| 1025 | +#define CONFIG_VP6A_DECODER 0 | ||
| 1026 | +#define CONFIG_VP6F_DECODER 0 | ||
| 1027 | +#define CONFIG_VP7_DECODER 0 | ||
| 1028 | +#define CONFIG_VP8_DECODER 1 | ||
| 1029 | +#define CONFIG_VP8_RKMPP_DECODER 0 | ||
| 1030 | +#define CONFIG_VP8_V4L2M2M_DECODER 0 | ||
| 1031 | +#define CONFIG_VP9_DECODER 0 | ||
| 1032 | +#define CONFIG_VP9_RKMPP_DECODER 0 | ||
| 1033 | +#define CONFIG_VP9_V4L2M2M_DECODER 0 | ||
| 1034 | +#define CONFIG_VQA_DECODER 0 | ||
| 1035 | +#define CONFIG_WEBP_DECODER 0 | ||
| 1036 | +#define CONFIG_WCMV_DECODER 0 | ||
| 1037 | +#define CONFIG_WRAPPED_AVFRAME_DECODER 0 | ||
| 1038 | +#define CONFIG_WMV1_DECODER 0 | ||
| 1039 | +#define CONFIG_WMV2_DECODER 0 | ||
| 1040 | +#define CONFIG_WMV3_DECODER 0 | ||
| 1041 | +#define CONFIG_WMV3_CRYSTALHD_DECODER 0 | ||
| 1042 | +#define CONFIG_WMV3IMAGE_DECODER 0 | ||
| 1043 | +#define CONFIG_WNV1_DECODER 0 | ||
| 1044 | +#define CONFIG_XAN_WC3_DECODER 0 | ||
| 1045 | +#define CONFIG_XAN_WC4_DECODER 0 | ||
| 1046 | +#define CONFIG_XBM_DECODER 0 | ||
| 1047 | +#define CONFIG_XFACE_DECODER 0 | ||
| 1048 | +#define CONFIG_XL_DECODER 0 | ||
| 1049 | +#define CONFIG_XPM_DECODER 0 | ||
| 1050 | +#define CONFIG_XWD_DECODER 0 | ||
| 1051 | +#define CONFIG_Y41P_DECODER 0 | ||
| 1052 | +#define CONFIG_YLC_DECODER 0 | ||
| 1053 | +#define CONFIG_YOP_DECODER 0 | ||
| 1054 | +#define CONFIG_YUV4_DECODER 0 | ||
| 1055 | +#define CONFIG_ZERO12V_DECODER 0 | ||
| 1056 | +#define CONFIG_ZEROCODEC_DECODER 0 | ||
| 1057 | +#define CONFIG_ZLIB_DECODER 0 | ||
| 1058 | +#define CONFIG_ZMBV_DECODER 0 | ||
| 1059 | +#define CONFIG_AAC_DECODER 1 | ||
| 1060 | +#define CONFIG_AAC_FIXED_DECODER 0 | ||
| 1061 | +#define CONFIG_AAC_LATM_DECODER 0 | ||
| 1062 | +#define CONFIG_AC3_DECODER 0 | ||
| 1063 | +#define CONFIG_AC3_FIXED_DECODER 0 | ||
| 1064 | +#define CONFIG_ACELP_KELVIN_DECODER 0 | ||
| 1065 | +#define CONFIG_ALAC_DECODER 0 | ||
| 1066 | +#define CONFIG_ALS_DECODER 0 | ||
| 1067 | +#define CONFIG_AMRNB_DECODER 0 | ||
| 1068 | +#define CONFIG_AMRWB_DECODER 0 | ||
| 1069 | +#define CONFIG_APE_DECODER 0 | ||
| 1070 | +#define CONFIG_APTX_DECODER 0 | ||
| 1071 | +#define CONFIG_APTX_HD_DECODER 0 | ||
| 1072 | +#define CONFIG_ATRAC1_DECODER 0 | ||
| 1073 | +#define CONFIG_ATRAC3_DECODER 0 | ||
| 1074 | +#define CONFIG_ATRAC3AL_DECODER 0 | ||
| 1075 | +#define CONFIG_ATRAC3P_DECODER 0 | ||
| 1076 | +#define CONFIG_ATRAC3PAL_DECODER 0 | ||
| 1077 | +#define CONFIG_ATRAC9_DECODER 0 | ||
| 1078 | +#define CONFIG_BINKAUDIO_DCT_DECODER 0 | ||
| 1079 | +#define CONFIG_BINKAUDIO_RDFT_DECODER 0 | ||
| 1080 | +#define CONFIG_BMV_AUDIO_DECODER 0 | ||
| 1081 | +#define CONFIG_COOK_DECODER 0 | ||
| 1082 | +#define CONFIG_DCA_DECODER 0 | ||
| 1083 | +#define CONFIG_DOLBY_E_DECODER 0 | ||
| 1084 | +#define CONFIG_DSD_LSBF_DECODER 0 | ||
| 1085 | +#define CONFIG_DSD_MSBF_DECODER 0 | ||
| 1086 | +#define CONFIG_DSD_LSBF_PLANAR_DECODER 0 | ||
| 1087 | +#define CONFIG_DSD_MSBF_PLANAR_DECODER 0 | ||
| 1088 | +#define CONFIG_DSICINAUDIO_DECODER 0 | ||
| 1089 | +#define CONFIG_DSS_SP_DECODER 0 | ||
| 1090 | +#define CONFIG_DST_DECODER 0 | ||
| 1091 | +#define CONFIG_EAC3_DECODER 0 | ||
| 1092 | +#define CONFIG_EVRC_DECODER 0 | ||
| 1093 | +#define CONFIG_FASTAUDIO_DECODER 0 | ||
| 1094 | +#define CONFIG_FFWAVESYNTH_DECODER 0 | ||
| 1095 | +#define CONFIG_FLAC_DECODER 1 | ||
| 1096 | +#define CONFIG_G723_1_DECODER 0 | ||
| 1097 | +#define CONFIG_G729_DECODER 0 | ||
| 1098 | +#define CONFIG_GSM_DECODER 0 | ||
| 1099 | +#define CONFIG_GSM_MS_DECODER 0 | ||
| 1100 | +#define CONFIG_HCA_DECODER 0 | ||
| 1101 | +#define CONFIG_HCOM_DECODER 0 | ||
| 1102 | +#define CONFIG_IAC_DECODER 0 | ||
| 1103 | +#define CONFIG_ILBC_DECODER 0 | ||
| 1104 | +#define CONFIG_IMC_DECODER 0 | ||
| 1105 | +#define CONFIG_INTERPLAY_ACM_DECODER 0 | ||
| 1106 | +#define CONFIG_MACE3_DECODER 0 | ||
| 1107 | +#define CONFIG_MACE6_DECODER 0 | ||
| 1108 | +#define CONFIG_METASOUND_DECODER 0 | ||
| 1109 | +#define CONFIG_MLP_DECODER 0 | ||
| 1110 | +#define CONFIG_MP1_DECODER 0 | ||
| 1111 | +#define CONFIG_MP1FLOAT_DECODER 0 | ||
| 1112 | +#define CONFIG_MP2_DECODER 0 | ||
| 1113 | +#define CONFIG_MP2FLOAT_DECODER 0 | ||
| 1114 | +#define CONFIG_MP3FLOAT_DECODER 0 | ||
| 1115 | +#define CONFIG_MP3_DECODER 1 | ||
| 1116 | +#define CONFIG_MP3ADUFLOAT_DECODER 0 | ||
| 1117 | +#define CONFIG_MP3ADU_DECODER 0 | ||
| 1118 | +#define CONFIG_MP3ON4FLOAT_DECODER 0 | ||
| 1119 | +#define CONFIG_MP3ON4_DECODER 0 | ||
| 1120 | +#define CONFIG_MPC7_DECODER 0 | ||
| 1121 | +#define CONFIG_MPC8_DECODER 0 | ||
| 1122 | +#define CONFIG_MSNSIREN_DECODER 0 | ||
| 1123 | +#define CONFIG_NELLYMOSER_DECODER 0 | ||
| 1124 | +#define CONFIG_ON2AVC_DECODER 0 | ||
| 1125 | +#define CONFIG_OPUS_DECODER 0 | ||
| 1126 | +#define CONFIG_PAF_AUDIO_DECODER 0 | ||
| 1127 | +#define CONFIG_QCELP_DECODER 0 | ||
| 1128 | +#define CONFIG_QDM2_DECODER 0 | ||
| 1129 | +#define CONFIG_QDMC_DECODER 0 | ||
| 1130 | +#define CONFIG_RA_144_DECODER 0 | ||
| 1131 | +#define CONFIG_RA_288_DECODER 0 | ||
| 1132 | +#define CONFIG_RALF_DECODER 0 | ||
| 1133 | +#define CONFIG_SBC_DECODER 0 | ||
| 1134 | +#define CONFIG_SHORTEN_DECODER 0 | ||
| 1135 | +#define CONFIG_SIPR_DECODER 0 | ||
| 1136 | +#define CONFIG_SIREN_DECODER 0 | ||
| 1137 | +#define CONFIG_SMACKAUD_DECODER 0 | ||
| 1138 | +#define CONFIG_SONIC_DECODER 0 | ||
| 1139 | +#define CONFIG_TAK_DECODER 0 | ||
| 1140 | +#define CONFIG_TRUEHD_DECODER 0 | ||
| 1141 | +#define CONFIG_TRUESPEECH_DECODER 0 | ||
| 1142 | +#define CONFIG_TTA_DECODER 0 | ||
| 1143 | +#define CONFIG_TWINVQ_DECODER 0 | ||
| 1144 | +#define CONFIG_VMDAUDIO_DECODER 0 | ||
| 1145 | +#define CONFIG_VORBIS_DECODER 1 | ||
| 1146 | +#define CONFIG_WAVPACK_DECODER 0 | ||
| 1147 | +#define CONFIG_WMALOSSLESS_DECODER 0 | ||
| 1148 | +#define CONFIG_WMAPRO_DECODER 0 | ||
| 1149 | +#define CONFIG_WMAV1_DECODER 0 | ||
| 1150 | +#define CONFIG_WMAV2_DECODER 0 | ||
| 1151 | +#define CONFIG_WMAVOICE_DECODER 0 | ||
| 1152 | +#define CONFIG_WS_SND1_DECODER 0 | ||
| 1153 | +#define CONFIG_XMA1_DECODER 0 | ||
| 1154 | +#define CONFIG_XMA2_DECODER 0 | ||
| 1155 | +#define CONFIG_PCM_ALAW_DECODER 1 | ||
| 1156 | +#define CONFIG_PCM_BLURAY_DECODER 0 | ||
| 1157 | +#define CONFIG_PCM_DVD_DECODER 0 | ||
| 1158 | +#define CONFIG_PCM_F16LE_DECODER 0 | ||
| 1159 | +#define CONFIG_PCM_F24LE_DECODER 0 | ||
| 1160 | +#define CONFIG_PCM_F32BE_DECODER 0 | ||
| 1161 | +#define CONFIG_PCM_F32LE_DECODER 1 | ||
| 1162 | +#define CONFIG_PCM_F64BE_DECODER 0 | ||
| 1163 | +#define CONFIG_PCM_F64LE_DECODER 0 | ||
| 1164 | +#define CONFIG_PCM_LXF_DECODER 0 | ||
| 1165 | +#define CONFIG_PCM_MULAW_DECODER 1 | ||
| 1166 | +#define CONFIG_PCM_S8_DECODER 0 | ||
| 1167 | +#define CONFIG_PCM_S8_PLANAR_DECODER 0 | ||
| 1168 | +#define CONFIG_PCM_S16BE_DECODER 1 | ||
| 1169 | +#define CONFIG_PCM_S16BE_PLANAR_DECODER 0 | ||
| 1170 | +#define CONFIG_PCM_S16LE_DECODER 1 | ||
| 1171 | +#define CONFIG_PCM_S16LE_PLANAR_DECODER 0 | ||
| 1172 | +#define CONFIG_PCM_S24BE_DECODER 1 | ||
| 1173 | +#define CONFIG_PCM_S24DAUD_DECODER 0 | ||
| 1174 | +#define CONFIG_PCM_S24LE_DECODER 1 | ||
| 1175 | +#define CONFIG_PCM_S24LE_PLANAR_DECODER 0 | ||
| 1176 | +#define CONFIG_PCM_S32BE_DECODER 0 | ||
| 1177 | +#define CONFIG_PCM_S32LE_DECODER 1 | ||
| 1178 | +#define CONFIG_PCM_S32LE_PLANAR_DECODER 0 | ||
| 1179 | +#define CONFIG_PCM_S64BE_DECODER 0 | ||
| 1180 | +#define CONFIG_PCM_S64LE_DECODER 0 | ||
| 1181 | +#define CONFIG_PCM_SGA_DECODER 0 | ||
| 1182 | +#define CONFIG_PCM_U8_DECODER 1 | ||
| 1183 | +#define CONFIG_PCM_U16BE_DECODER 0 | ||
| 1184 | +#define CONFIG_PCM_U16LE_DECODER 0 | ||
| 1185 | +#define CONFIG_PCM_U24BE_DECODER 0 | ||
| 1186 | +#define CONFIG_PCM_U24LE_DECODER 0 | ||
| 1187 | +#define CONFIG_PCM_U32BE_DECODER 0 | ||
| 1188 | +#define CONFIG_PCM_U32LE_DECODER 0 | ||
| 1189 | +#define CONFIG_PCM_VIDC_DECODER 0 | ||
| 1190 | +#define CONFIG_DERF_DPCM_DECODER 0 | ||
| 1191 | +#define CONFIG_GREMLIN_DPCM_DECODER 0 | ||
| 1192 | +#define CONFIG_INTERPLAY_DPCM_DECODER 0 | ||
| 1193 | +#define CONFIG_ROQ_DPCM_DECODER 0 | ||
| 1194 | +#define CONFIG_SDX2_DPCM_DECODER 0 | ||
| 1195 | +#define CONFIG_SOL_DPCM_DECODER 0 | ||
| 1196 | +#define CONFIG_XAN_DPCM_DECODER 0 | ||
| 1197 | +#define CONFIG_ADPCM_4XM_DECODER 0 | ||
| 1198 | +#define CONFIG_ADPCM_ADX_DECODER 0 | ||
| 1199 | +#define CONFIG_ADPCM_AFC_DECODER 0 | ||
| 1200 | +#define CONFIG_ADPCM_AGM_DECODER 0 | ||
| 1201 | +#define CONFIG_ADPCM_AICA_DECODER 0 | ||
| 1202 | +#define CONFIG_ADPCM_ARGO_DECODER 0 | ||
| 1203 | +#define CONFIG_ADPCM_CT_DECODER 0 | ||
| 1204 | +#define CONFIG_ADPCM_DTK_DECODER 0 | ||
| 1205 | +#define CONFIG_ADPCM_EA_DECODER 0 | ||
| 1206 | +#define CONFIG_ADPCM_EA_MAXIS_XA_DECODER 0 | ||
| 1207 | +#define CONFIG_ADPCM_EA_R1_DECODER 0 | ||
| 1208 | +#define CONFIG_ADPCM_EA_R2_DECODER 0 | ||
| 1209 | +#define CONFIG_ADPCM_EA_R3_DECODER 0 | ||
| 1210 | +#define CONFIG_ADPCM_EA_XAS_DECODER 0 | ||
| 1211 | +#define CONFIG_ADPCM_G722_DECODER 0 | ||
| 1212 | +#define CONFIG_ADPCM_G726_DECODER 0 | ||
| 1213 | +#define CONFIG_ADPCM_G726LE_DECODER 0 | ||
| 1214 | +#define CONFIG_ADPCM_IMA_ACORN_DECODER 0 | ||
| 1215 | +#define CONFIG_ADPCM_IMA_AMV_DECODER 0 | ||
| 1216 | +#define CONFIG_ADPCM_IMA_ALP_DECODER 0 | ||
| 1217 | +#define CONFIG_ADPCM_IMA_APC_DECODER 0 | ||
| 1218 | +#define CONFIG_ADPCM_IMA_APM_DECODER 0 | ||
| 1219 | +#define CONFIG_ADPCM_IMA_CUNNING_DECODER 0 | ||
| 1220 | +#define CONFIG_ADPCM_IMA_DAT4_DECODER 0 | ||
| 1221 | +#define CONFIG_ADPCM_IMA_DK3_DECODER 0 | ||
| 1222 | +#define CONFIG_ADPCM_IMA_DK4_DECODER 0 | ||
| 1223 | +#define CONFIG_ADPCM_IMA_EA_EACS_DECODER 0 | ||
| 1224 | +#define CONFIG_ADPCM_IMA_EA_SEAD_DECODER 0 | ||
| 1225 | +#define CONFIG_ADPCM_IMA_ISS_DECODER 0 | ||
| 1226 | +#define CONFIG_ADPCM_IMA_MOFLEX_DECODER 0 | ||
| 1227 | +#define CONFIG_ADPCM_IMA_MTF_DECODER 0 | ||
| 1228 | +#define CONFIG_ADPCM_IMA_OKI_DECODER 0 | ||
| 1229 | +#define CONFIG_ADPCM_IMA_QT_DECODER 0 | ||
| 1230 | +#define CONFIG_ADPCM_IMA_RAD_DECODER 0 | ||
| 1231 | +#define CONFIG_ADPCM_IMA_SSI_DECODER 0 | ||
| 1232 | +#define CONFIG_ADPCM_IMA_SMJPEG_DECODER 0 | ||
| 1233 | +#define CONFIG_ADPCM_IMA_WAV_DECODER 0 | ||
| 1234 | +#define CONFIG_ADPCM_IMA_WS_DECODER 0 | ||
| 1235 | +#define CONFIG_ADPCM_MS_DECODER 0 | ||
| 1236 | +#define CONFIG_ADPCM_MTAF_DECODER 0 | ||
| 1237 | +#define CONFIG_ADPCM_PSX_DECODER 0 | ||
| 1238 | +#define CONFIG_ADPCM_SBPRO_2_DECODER 0 | ||
| 1239 | +#define CONFIG_ADPCM_SBPRO_3_DECODER 0 | ||
| 1240 | +#define CONFIG_ADPCM_SBPRO_4_DECODER 0 | ||
| 1241 | +#define CONFIG_ADPCM_SWF_DECODER 0 | ||
| 1242 | +#define CONFIG_ADPCM_THP_DECODER 0 | ||
| 1243 | +#define CONFIG_ADPCM_THP_LE_DECODER 0 | ||
| 1244 | +#define CONFIG_ADPCM_VIMA_DECODER 0 | ||
| 1245 | +#define CONFIG_ADPCM_XA_DECODER 0 | ||
| 1246 | +#define CONFIG_ADPCM_YAMAHA_DECODER 0 | ||
| 1247 | +#define CONFIG_ADPCM_ZORK_DECODER 0 | ||
| 1248 | +#define CONFIG_SSA_DECODER 0 | ||
| 1249 | +#define CONFIG_ASS_DECODER 0 | ||
| 1250 | +#define CONFIG_CCAPTION_DECODER 0 | ||
| 1251 | +#define CONFIG_DVBSUB_DECODER 0 | ||
| 1252 | +#define CONFIG_DVDSUB_DECODER 0 | ||
| 1253 | +#define CONFIG_JACOSUB_DECODER 0 | ||
| 1254 | +#define CONFIG_MICRODVD_DECODER 0 | ||
| 1255 | +#define CONFIG_MOVTEXT_DECODER 0 | ||
| 1256 | +#define CONFIG_MPL2_DECODER 0 | ||
| 1257 | +#define CONFIG_PGSSUB_DECODER 0 | ||
| 1258 | +#define CONFIG_PJS_DECODER 0 | ||
| 1259 | +#define CONFIG_REALTEXT_DECODER 0 | ||
| 1260 | +#define CONFIG_SAMI_DECODER 0 | ||
| 1261 | +#define CONFIG_SRT_DECODER 0 | ||
| 1262 | +#define CONFIG_STL_DECODER 0 | ||
| 1263 | +#define CONFIG_SUBRIP_DECODER 0 | ||
| 1264 | +#define CONFIG_SUBVIEWER_DECODER 0 | ||
| 1265 | +#define CONFIG_SUBVIEWER1_DECODER 0 | ||
| 1266 | +#define CONFIG_TEXT_DECODER 0 | ||
| 1267 | +#define CONFIG_VPLAYER_DECODER 0 | ||
| 1268 | +#define CONFIG_WEBVTT_DECODER 0 | ||
| 1269 | +#define CONFIG_XSUB_DECODER 0 | ||
| 1270 | +#define CONFIG_AAC_AT_DECODER 0 | ||
| 1271 | +#define CONFIG_AC3_AT_DECODER 0 | ||
| 1272 | +#define CONFIG_ADPCM_IMA_QT_AT_DECODER 0 | ||
| 1273 | +#define CONFIG_ALAC_AT_DECODER 0 | ||
| 1274 | +#define CONFIG_AMR_NB_AT_DECODER 0 | ||
| 1275 | +#define CONFIG_EAC3_AT_DECODER 0 | ||
| 1276 | +#define CONFIG_GSM_MS_AT_DECODER 0 | ||
| 1277 | +#define CONFIG_ILBC_AT_DECODER 0 | ||
| 1278 | +#define CONFIG_MP1_AT_DECODER 0 | ||
| 1279 | +#define CONFIG_MP2_AT_DECODER 0 | ||
| 1280 | +#define CONFIG_MP3_AT_DECODER 0 | ||
| 1281 | +#define CONFIG_PCM_ALAW_AT_DECODER 0 | ||
| 1282 | +#define CONFIG_PCM_MULAW_AT_DECODER 0 | ||
| 1283 | +#define CONFIG_QDMC_AT_DECODER 0 | ||
| 1284 | +#define CONFIG_QDM2_AT_DECODER 0 | ||
| 1285 | +#define CONFIG_LIBARIBB24_DECODER 0 | ||
| 1286 | +#define CONFIG_LIBCELT_DECODER 0 | ||
| 1287 | +#define CONFIG_LIBCODEC2_DECODER 0 | ||
| 1288 | +#define CONFIG_LIBDAV1D_DECODER 0 | ||
| 1289 | +#define CONFIG_LIBDAVS2_DECODER 0 | ||
| 1290 | +#define CONFIG_LIBFDK_AAC_DECODER 0 | ||
| 1291 | +#define CONFIG_LIBGSM_DECODER 0 | ||
| 1292 | +#define CONFIG_LIBGSM_MS_DECODER 0 | ||
| 1293 | +#define CONFIG_LIBILBC_DECODER 0 | ||
| 1294 | +#define CONFIG_LIBOPENCORE_AMRNB_DECODER 0 | ||
| 1295 | +#define CONFIG_LIBOPENCORE_AMRWB_DECODER 0 | ||
| 1296 | +#define CONFIG_LIBOPENJPEG_DECODER 0 | ||
| 1297 | +#define CONFIG_LIBOPUS_DECODER 1 | ||
| 1298 | +#define CONFIG_LIBRSVG_DECODER 0 | ||
| 1299 | +#define CONFIG_LIBSPEEX_DECODER 0 | ||
| 1300 | +#define CONFIG_LIBUAVS3D_DECODER 0 | ||
| 1301 | +#define CONFIG_LIBVORBIS_DECODER 0 | ||
| 1302 | +#define CONFIG_LIBVPX_VP8_DECODER 0 | ||
| 1303 | +#define CONFIG_LIBVPX_VP9_DECODER 0 | ||
| 1304 | +#define CONFIG_LIBZVBI_TELETEXT_DECODER 0 | ||
| 1305 | +#define CONFIG_BINTEXT_DECODER 0 | ||
| 1306 | +#define CONFIG_XBIN_DECODER 0 | ||
| 1307 | +#define CONFIG_IDF_DECODER 0 | ||
| 1308 | +#define CONFIG_LIBAOM_AV1_DECODER 0 | ||
| 1309 | +#define CONFIG_AV1_DECODER 0 | ||
| 1310 | +#define CONFIG_AV1_CUVID_DECODER 0 | ||
| 1311 | +#define CONFIG_AV1_QSV_DECODER 0 | ||
| 1312 | +#define CONFIG_LIBOPENH264_DECODER 0 | ||
| 1313 | +#define CONFIG_H264_CUVID_DECODER 0 | ||
| 1314 | +#define CONFIG_HEVC_CUVID_DECODER 0 | ||
| 1315 | +#define CONFIG_HEVC_MEDIACODEC_DECODER 0 | ||
| 1316 | +#define CONFIG_MJPEG_CUVID_DECODER 0 | ||
| 1317 | +#define CONFIG_MJPEG_QSV_DECODER 0 | ||
| 1318 | +#define CONFIG_MPEG1_CUVID_DECODER 0 | ||
| 1319 | +#define CONFIG_MPEG2_CUVID_DECODER 0 | ||
| 1320 | +#define CONFIG_MPEG4_CUVID_DECODER 0 | ||
| 1321 | +#define CONFIG_MPEG4_MEDIACODEC_DECODER 0 | ||
| 1322 | +#define CONFIG_VC1_CUVID_DECODER 0 | ||
| 1323 | +#define CONFIG_VP8_CUVID_DECODER 0 | ||
| 1324 | +#define CONFIG_VP8_MEDIACODEC_DECODER 0 | ||
| 1325 | +#define CONFIG_VP8_QSV_DECODER 0 | ||
| 1326 | +#define CONFIG_VP9_CUVID_DECODER 0 | ||
| 1327 | +#define CONFIG_VP9_MEDIACODEC_DECODER 0 | ||
| 1328 | +#define CONFIG_VP9_QSV_DECODER 0 | ||
| 1329 | +#define CONFIG_A64MULTI_ENCODER 0 | ||
| 1330 | +#define CONFIG_A64MULTI5_ENCODER 0 | ||
| 1331 | +#define CONFIG_ALIAS_PIX_ENCODER 0 | ||
| 1332 | +#define CONFIG_AMV_ENCODER 0 | ||
| 1333 | +#define CONFIG_APNG_ENCODER 0 | ||
| 1334 | +#define CONFIG_ASV1_ENCODER 0 | ||
| 1335 | +#define CONFIG_ASV2_ENCODER 0 | ||
| 1336 | +#define CONFIG_AVRP_ENCODER 0 | ||
| 1337 | +#define CONFIG_AVUI_ENCODER 0 | ||
| 1338 | +#define CONFIG_AYUV_ENCODER 0 | ||
| 1339 | +#define CONFIG_BITPACKED_ENCODER 0 | ||
| 1340 | +#define CONFIG_BMP_ENCODER 0 | ||
| 1341 | +#define CONFIG_CFHD_ENCODER 0 | ||
| 1342 | +#define CONFIG_CINEPAK_ENCODER 0 | ||
| 1343 | +#define CONFIG_CLJR_ENCODER 0 | ||
| 1344 | +#define CONFIG_COMFORTNOISE_ENCODER 0 | ||
| 1345 | +#define CONFIG_DNXHD_ENCODER 0 | ||
| 1346 | +#define CONFIG_DPX_ENCODER 0 | ||
| 1347 | +#define CONFIG_DVVIDEO_ENCODER 0 | ||
| 1348 | +#define CONFIG_EXR_ENCODER 0 | ||
| 1349 | +#define CONFIG_FFV1_ENCODER 0 | ||
| 1350 | +#define CONFIG_FFVHUFF_ENCODER 0 | ||
| 1351 | +#define CONFIG_FITS_ENCODER 0 | ||
| 1352 | +#define CONFIG_FLASHSV_ENCODER 0 | ||
| 1353 | +#define CONFIG_FLASHSV2_ENCODER 0 | ||
| 1354 | +#define CONFIG_FLV_ENCODER 0 | ||
| 1355 | +#define CONFIG_GIF_ENCODER 0 | ||
| 1356 | +#define CONFIG_H261_ENCODER 0 | ||
| 1357 | +#define CONFIG_H263_ENCODER 0 | ||
| 1358 | +#define CONFIG_H263P_ENCODER 0 | ||
| 1359 | +#define CONFIG_HAP_ENCODER 0 | ||
| 1360 | +#define CONFIG_HUFFYUV_ENCODER 0 | ||
| 1361 | +#define CONFIG_JPEG2000_ENCODER 0 | ||
| 1362 | +#define CONFIG_JPEGLS_ENCODER 0 | ||
| 1363 | +#define CONFIG_LJPEG_ENCODER 0 | ||
| 1364 | +#define CONFIG_MAGICYUV_ENCODER 0 | ||
| 1365 | +#define CONFIG_MJPEG_ENCODER 0 | ||
| 1366 | +#define CONFIG_MPEG1VIDEO_ENCODER 0 | ||
| 1367 | +#define CONFIG_MPEG2VIDEO_ENCODER 0 | ||
| 1368 | +#define CONFIG_MPEG4_ENCODER 0 | ||
| 1369 | +#define CONFIG_MSMPEG4V2_ENCODER 0 | ||
| 1370 | +#define CONFIG_MSMPEG4V3_ENCODER 0 | ||
| 1371 | +#define CONFIG_MSVIDEO1_ENCODER 0 | ||
| 1372 | +#define CONFIG_PAM_ENCODER 0 | ||
| 1373 | +#define CONFIG_PBM_ENCODER 0 | ||
| 1374 | +#define CONFIG_PCX_ENCODER 0 | ||
| 1375 | +#define CONFIG_PFM_ENCODER 0 | ||
| 1376 | +#define CONFIG_PGM_ENCODER 0 | ||
| 1377 | +#define CONFIG_PGMYUV_ENCODER 0 | ||
| 1378 | +#define CONFIG_PNG_ENCODER 0 | ||
| 1379 | +#define CONFIG_PPM_ENCODER 0 | ||
| 1380 | +#define CONFIG_PRORES_ENCODER 0 | ||
| 1381 | +#define CONFIG_PRORES_AW_ENCODER 0 | ||
| 1382 | +#define CONFIG_PRORES_KS_ENCODER 0 | ||
| 1383 | +#define CONFIG_QTRLE_ENCODER 0 | ||
| 1384 | +#define CONFIG_R10K_ENCODER 0 | ||
| 1385 | +#define CONFIG_R210_ENCODER 0 | ||
| 1386 | +#define CONFIG_RAWVIDEO_ENCODER 0 | ||
| 1387 | +#define CONFIG_ROQ_ENCODER 0 | ||
| 1388 | +#define CONFIG_RPZA_ENCODER 0 | ||
| 1389 | +#define CONFIG_RV10_ENCODER 0 | ||
| 1390 | +#define CONFIG_RV20_ENCODER 0 | ||
| 1391 | +#define CONFIG_S302M_ENCODER 0 | ||
| 1392 | +#define CONFIG_SGI_ENCODER 0 | ||
| 1393 | +#define CONFIG_SMC_ENCODER 0 | ||
| 1394 | +#define CONFIG_SNOW_ENCODER 0 | ||
| 1395 | +#define CONFIG_SPEEDHQ_ENCODER 0 | ||
| 1396 | +#define CONFIG_SUNRAST_ENCODER 0 | ||
| 1397 | +#define CONFIG_SVQ1_ENCODER 0 | ||
| 1398 | +#define CONFIG_TARGA_ENCODER 0 | ||
| 1399 | +#define CONFIG_TIFF_ENCODER 0 | ||
| 1400 | +#define CONFIG_UTVIDEO_ENCODER 0 | ||
| 1401 | +#define CONFIG_V210_ENCODER 0 | ||
| 1402 | +#define CONFIG_V308_ENCODER 0 | ||
| 1403 | +#define CONFIG_V408_ENCODER 0 | ||
| 1404 | +#define CONFIG_V410_ENCODER 0 | ||
| 1405 | +#define CONFIG_VC2_ENCODER 0 | ||
| 1406 | +#define CONFIG_WRAPPED_AVFRAME_ENCODER 0 | ||
| 1407 | +#define CONFIG_WMV1_ENCODER 0 | ||
| 1408 | +#define CONFIG_WMV2_ENCODER 0 | ||
| 1409 | +#define CONFIG_XBM_ENCODER 0 | ||
| 1410 | +#define CONFIG_XFACE_ENCODER 0 | ||
| 1411 | +#define CONFIG_XWD_ENCODER 0 | ||
| 1412 | +#define CONFIG_Y41P_ENCODER 0 | ||
| 1413 | +#define CONFIG_YUV4_ENCODER 0 | ||
| 1414 | +#define CONFIG_ZLIB_ENCODER 0 | ||
| 1415 | +#define CONFIG_ZMBV_ENCODER 0 | ||
| 1416 | +#define CONFIG_AAC_ENCODER 0 | ||
| 1417 | +#define CONFIG_AC3_ENCODER 0 | ||
| 1418 | +#define CONFIG_AC3_FIXED_ENCODER 0 | ||
| 1419 | +#define CONFIG_ALAC_ENCODER 0 | ||
| 1420 | +#define CONFIG_APTX_ENCODER 0 | ||
| 1421 | +#define CONFIG_APTX_HD_ENCODER 0 | ||
| 1422 | +#define CONFIG_DCA_ENCODER 0 | ||
| 1423 | +#define CONFIG_EAC3_ENCODER 0 | ||
| 1424 | +#define CONFIG_FLAC_ENCODER 0 | ||
| 1425 | +#define CONFIG_G723_1_ENCODER 0 | ||
| 1426 | +#define CONFIG_MLP_ENCODER 0 | ||
| 1427 | +#define CONFIG_MP2_ENCODER 0 | ||
| 1428 | +#define CONFIG_MP2FIXED_ENCODER 0 | ||
| 1429 | +#define CONFIG_NELLYMOSER_ENCODER 0 | ||
| 1430 | +#define CONFIG_OPUS_ENCODER 0 | ||
| 1431 | +#define CONFIG_RA_144_ENCODER 0 | ||
| 1432 | +#define CONFIG_SBC_ENCODER 0 | ||
| 1433 | +#define CONFIG_SONIC_ENCODER 0 | ||
| 1434 | +#define CONFIG_SONIC_LS_ENCODER 0 | ||
| 1435 | +#define CONFIG_TRUEHD_ENCODER 0 | ||
| 1436 | +#define CONFIG_TTA_ENCODER 0 | ||
| 1437 | +#define CONFIG_VORBIS_ENCODER 0 | ||
| 1438 | +#define CONFIG_WAVPACK_ENCODER 0 | ||
| 1439 | +#define CONFIG_WMAV1_ENCODER 0 | ||
| 1440 | +#define CONFIG_WMAV2_ENCODER 0 | ||
| 1441 | +#define CONFIG_PCM_ALAW_ENCODER 0 | ||
| 1442 | +#define CONFIG_PCM_DVD_ENCODER 0 | ||
| 1443 | +#define CONFIG_PCM_F32BE_ENCODER 0 | ||
| 1444 | +#define CONFIG_PCM_F32LE_ENCODER 0 | ||
| 1445 | +#define CONFIG_PCM_F64BE_ENCODER 0 | ||
| 1446 | +#define CONFIG_PCM_F64LE_ENCODER 0 | ||
| 1447 | +#define CONFIG_PCM_MULAW_ENCODER 0 | ||
| 1448 | +#define CONFIG_PCM_S8_ENCODER 0 | ||
| 1449 | +#define CONFIG_PCM_S8_PLANAR_ENCODER 0 | ||
| 1450 | +#define CONFIG_PCM_S16BE_ENCODER 0 | ||
| 1451 | +#define CONFIG_PCM_S16BE_PLANAR_ENCODER 0 | ||
| 1452 | +#define CONFIG_PCM_S16LE_ENCODER 0 | ||
| 1453 | +#define CONFIG_PCM_S16LE_PLANAR_ENCODER 0 | ||
| 1454 | +#define CONFIG_PCM_S24BE_ENCODER 0 | ||
| 1455 | +#define CONFIG_PCM_S24DAUD_ENCODER 0 | ||
| 1456 | +#define CONFIG_PCM_S24LE_ENCODER 0 | ||
| 1457 | +#define CONFIG_PCM_S24LE_PLANAR_ENCODER 0 | ||
| 1458 | +#define CONFIG_PCM_S32BE_ENCODER 0 | ||
| 1459 | +#define CONFIG_PCM_S32LE_ENCODER 0 | ||
| 1460 | +#define CONFIG_PCM_S32LE_PLANAR_ENCODER 0 | ||
| 1461 | +#define CONFIG_PCM_S64BE_ENCODER 0 | ||
| 1462 | +#define CONFIG_PCM_S64LE_ENCODER 0 | ||
| 1463 | +#define CONFIG_PCM_U8_ENCODER 0 | ||
| 1464 | +#define CONFIG_PCM_U16BE_ENCODER 0 | ||
| 1465 | +#define CONFIG_PCM_U16LE_ENCODER 0 | ||
| 1466 | +#define CONFIG_PCM_U24BE_ENCODER 0 | ||
| 1467 | +#define CONFIG_PCM_U24LE_ENCODER 0 | ||
| 1468 | +#define CONFIG_PCM_U32BE_ENCODER 0 | ||
| 1469 | +#define CONFIG_PCM_U32LE_ENCODER 0 | ||
| 1470 | +#define CONFIG_PCM_VIDC_ENCODER 0 | ||
| 1471 | +#define CONFIG_ROQ_DPCM_ENCODER 0 | ||
| 1472 | +#define CONFIG_ADPCM_ADX_ENCODER 0 | ||
| 1473 | +#define CONFIG_ADPCM_ARGO_ENCODER 0 | ||
| 1474 | +#define CONFIG_ADPCM_G722_ENCODER 0 | ||
| 1475 | +#define CONFIG_ADPCM_G726_ENCODER 0 | ||
| 1476 | +#define CONFIG_ADPCM_G726LE_ENCODER 0 | ||
| 1477 | +#define CONFIG_ADPCM_IMA_AMV_ENCODER 0 | ||
| 1478 | +#define CONFIG_ADPCM_IMA_ALP_ENCODER 0 | ||
| 1479 | +#define CONFIG_ADPCM_IMA_APM_ENCODER 0 | ||
| 1480 | +#define CONFIG_ADPCM_IMA_QT_ENCODER 0 | ||
| 1481 | +#define CONFIG_ADPCM_IMA_SSI_ENCODER 0 | ||
| 1482 | +#define CONFIG_ADPCM_IMA_WAV_ENCODER 0 | ||
| 1483 | +#define CONFIG_ADPCM_IMA_WS_ENCODER 0 | ||
| 1484 | +#define CONFIG_ADPCM_MS_ENCODER 0 | ||
| 1485 | +#define CONFIG_ADPCM_SWF_ENCODER 0 | ||
| 1486 | +#define CONFIG_ADPCM_YAMAHA_ENCODER 0 | ||
| 1487 | +#define CONFIG_SSA_ENCODER 0 | ||
| 1488 | +#define CONFIG_ASS_ENCODER 0 | ||
| 1489 | +#define CONFIG_DVBSUB_ENCODER 0 | ||
| 1490 | +#define CONFIG_DVDSUB_ENCODER 0 | ||
| 1491 | +#define CONFIG_MOVTEXT_ENCODER 0 | ||
| 1492 | +#define CONFIG_SRT_ENCODER 0 | ||
| 1493 | +#define CONFIG_SUBRIP_ENCODER 0 | ||
| 1494 | +#define CONFIG_TEXT_ENCODER 0 | ||
| 1495 | +#define CONFIG_TTML_ENCODER 0 | ||
| 1496 | +#define CONFIG_WEBVTT_ENCODER 0 | ||
| 1497 | +#define CONFIG_XSUB_ENCODER 0 | ||
| 1498 | +#define CONFIG_AAC_AT_ENCODER 0 | ||
| 1499 | +#define CONFIG_ALAC_AT_ENCODER 0 | ||
| 1500 | +#define CONFIG_ILBC_AT_ENCODER 0 | ||
| 1501 | +#define CONFIG_PCM_ALAW_AT_ENCODER 0 | ||
| 1502 | +#define CONFIG_PCM_MULAW_AT_ENCODER 0 | ||
| 1503 | +#define CONFIG_LIBAOM_AV1_ENCODER 0 | ||
| 1504 | +#define CONFIG_LIBCODEC2_ENCODER 0 | ||
| 1505 | +#define CONFIG_LIBFDK_AAC_ENCODER 0 | ||
| 1506 | +#define CONFIG_LIBGSM_ENCODER 0 | ||
| 1507 | +#define CONFIG_LIBGSM_MS_ENCODER 0 | ||
| 1508 | +#define CONFIG_LIBILBC_ENCODER 0 | ||
| 1509 | +#define CONFIG_LIBMP3LAME_ENCODER 0 | ||
| 1510 | +#define CONFIG_LIBOPENCORE_AMRNB_ENCODER 0 | ||
| 1511 | +#define CONFIG_LIBOPENJPEG_ENCODER 0 | ||
| 1512 | +#define CONFIG_LIBOPUS_ENCODER 0 | ||
| 1513 | +#define CONFIG_LIBRAV1E_ENCODER 0 | ||
| 1514 | +#define CONFIG_LIBSHINE_ENCODER 0 | ||
| 1515 | +#define CONFIG_LIBSPEEX_ENCODER 0 | ||
| 1516 | +#define CONFIG_LIBSVTAV1_ENCODER 0 | ||
| 1517 | +#define CONFIG_LIBTHEORA_ENCODER 0 | ||
| 1518 | +#define CONFIG_LIBTWOLAME_ENCODER 0 | ||
| 1519 | +#define CONFIG_LIBVO_AMRWBENC_ENCODER 0 | ||
| 1520 | +#define CONFIG_LIBVORBIS_ENCODER 0 | ||
| 1521 | +#define CONFIG_LIBVPX_VP8_ENCODER 0 | ||
| 1522 | +#define CONFIG_LIBVPX_VP9_ENCODER 0 | ||
| 1523 | +#define CONFIG_LIBWEBP_ANIM_ENCODER 0 | ||
| 1524 | +#define CONFIG_LIBWEBP_ENCODER 0 | ||
| 1525 | +#define CONFIG_LIBX262_ENCODER 0 | ||
| 1526 | +#define CONFIG_LIBX264_ENCODER 0 | ||
| 1527 | +#define CONFIG_LIBX264RGB_ENCODER 0 | ||
| 1528 | +#define CONFIG_LIBX265_ENCODER 0 | ||
| 1529 | +#define CONFIG_LIBXAVS_ENCODER 0 | ||
| 1530 | +#define CONFIG_LIBXAVS2_ENCODER 0 | ||
| 1531 | +#define CONFIG_LIBXVID_ENCODER 0 | ||
| 1532 | +#define CONFIG_AAC_MF_ENCODER 0 | ||
| 1533 | +#define CONFIG_AC3_MF_ENCODER 0 | ||
| 1534 | +#define CONFIG_H263_V4L2M2M_ENCODER 0 | ||
| 1535 | +#define CONFIG_LIBOPENH264_ENCODER 0 | ||
| 1536 | +#define CONFIG_H264_AMF_ENCODER 0 | ||
| 1537 | +#define CONFIG_H264_MF_ENCODER 0 | ||
| 1538 | +#define CONFIG_H264_NVENC_ENCODER 0 | ||
| 1539 | +#define CONFIG_H264_OMX_ENCODER 0 | ||
| 1540 | +#define CONFIG_H264_QSV_ENCODER 0 | ||
| 1541 | +#define CONFIG_H264_V4L2M2M_ENCODER 0 | ||
| 1542 | +#define CONFIG_H264_VAAPI_ENCODER 0 | ||
| 1543 | +#define CONFIG_H264_VIDEOTOOLBOX_ENCODER 0 | ||
| 1544 | +#define CONFIG_HEVC_AMF_ENCODER 0 | ||
| 1545 | +#define CONFIG_HEVC_MF_ENCODER 0 | ||
| 1546 | +#define CONFIG_HEVC_NVENC_ENCODER 0 | ||
| 1547 | +#define CONFIG_HEVC_QSV_ENCODER 0 | ||
| 1548 | +#define CONFIG_HEVC_V4L2M2M_ENCODER 0 | ||
| 1549 | +#define CONFIG_HEVC_VAAPI_ENCODER 0 | ||
| 1550 | +#define CONFIG_HEVC_VIDEOTOOLBOX_ENCODER 0 | ||
| 1551 | +#define CONFIG_LIBKVAZAAR_ENCODER 0 | ||
| 1552 | +#define CONFIG_MJPEG_QSV_ENCODER 0 | ||
| 1553 | +#define CONFIG_MJPEG_VAAPI_ENCODER 0 | ||
| 1554 | +#define CONFIG_MP3_MF_ENCODER 0 | ||
| 1555 | +#define CONFIG_MPEG2_QSV_ENCODER 0 | ||
| 1556 | +#define CONFIG_MPEG2_VAAPI_ENCODER 0 | ||
| 1557 | +#define CONFIG_MPEG4_OMX_ENCODER 0 | ||
| 1558 | +#define CONFIG_MPEG4_V4L2M2M_ENCODER 0 | ||
| 1559 | +#define CONFIG_PRORES_VIDEOTOOLBOX_ENCODER 0 | ||
| 1560 | +#define CONFIG_VP8_V4L2M2M_ENCODER 0 | ||
| 1561 | +#define CONFIG_VP8_VAAPI_ENCODER 0 | ||
| 1562 | +#define CONFIG_VP9_VAAPI_ENCODER 0 | ||
| 1563 | +#define CONFIG_VP9_QSV_ENCODER 0 | ||
| 1564 | +#define CONFIG_AV1_D3D11VA_HWACCEL 0 | ||
| 1565 | +#define CONFIG_AV1_D3D11VA2_HWACCEL 0 | ||
| 1566 | +#define CONFIG_AV1_DXVA2_HWACCEL 0 | ||
| 1567 | +#define CONFIG_AV1_NVDEC_HWACCEL 0 | ||
| 1568 | +#define CONFIG_AV1_VAAPI_HWACCEL 0 | ||
| 1569 | +#define CONFIG_H263_VAAPI_HWACCEL 0 | ||
| 1570 | +#define CONFIG_H263_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1571 | +#define CONFIG_H264_D3D11VA_HWACCEL 0 | ||
| 1572 | +#define CONFIG_H264_D3D11VA2_HWACCEL 0 | ||
| 1573 | +#define CONFIG_H264_DXVA2_HWACCEL 0 | ||
| 1574 | +#define CONFIG_H264_NVDEC_HWACCEL 0 | ||
| 1575 | +#define CONFIG_H264_VAAPI_HWACCEL 0 | ||
| 1576 | +#define CONFIG_H264_VDPAU_HWACCEL 0 | ||
| 1577 | +#define CONFIG_H264_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1578 | +#define CONFIG_HEVC_D3D11VA_HWACCEL 0 | ||
| 1579 | +#define CONFIG_HEVC_D3D11VA2_HWACCEL 0 | ||
| 1580 | +#define CONFIG_HEVC_DXVA2_HWACCEL 0 | ||
| 1581 | +#define CONFIG_HEVC_NVDEC_HWACCEL 0 | ||
| 1582 | +#define CONFIG_HEVC_VAAPI_HWACCEL 0 | ||
| 1583 | +#define CONFIG_HEVC_VDPAU_HWACCEL 0 | ||
| 1584 | +#define CONFIG_HEVC_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1585 | +#define CONFIG_MJPEG_NVDEC_HWACCEL 0 | ||
| 1586 | +#define CONFIG_MJPEG_VAAPI_HWACCEL 0 | ||
| 1587 | +#define CONFIG_MPEG1_NVDEC_HWACCEL 0 | ||
| 1588 | +#define CONFIG_MPEG1_VDPAU_HWACCEL 0 | ||
| 1589 | +#define CONFIG_MPEG1_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1590 | +#define CONFIG_MPEG1_XVMC_HWACCEL 0 | ||
| 1591 | +#define CONFIG_MPEG2_D3D11VA_HWACCEL 0 | ||
| 1592 | +#define CONFIG_MPEG2_D3D11VA2_HWACCEL 0 | ||
| 1593 | +#define CONFIG_MPEG2_NVDEC_HWACCEL 0 | ||
| 1594 | +#define CONFIG_MPEG2_DXVA2_HWACCEL 0 | ||
| 1595 | +#define CONFIG_MPEG2_VAAPI_HWACCEL 0 | ||
| 1596 | +#define CONFIG_MPEG2_VDPAU_HWACCEL 0 | ||
| 1597 | +#define CONFIG_MPEG2_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1598 | +#define CONFIG_MPEG2_XVMC_HWACCEL 0 | ||
| 1599 | +#define CONFIG_MPEG4_NVDEC_HWACCEL 0 | ||
| 1600 | +#define CONFIG_MPEG4_VAAPI_HWACCEL 0 | ||
| 1601 | +#define CONFIG_MPEG4_VDPAU_HWACCEL 0 | ||
| 1602 | +#define CONFIG_MPEG4_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1603 | +#define CONFIG_PRORES_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1604 | +#define CONFIG_VC1_D3D11VA_HWACCEL 0 | ||
| 1605 | +#define CONFIG_VC1_D3D11VA2_HWACCEL 0 | ||
| 1606 | +#define CONFIG_VC1_DXVA2_HWACCEL 0 | ||
| 1607 | +#define CONFIG_VC1_NVDEC_HWACCEL 0 | ||
| 1608 | +#define CONFIG_VC1_VAAPI_HWACCEL 0 | ||
| 1609 | +#define CONFIG_VC1_VDPAU_HWACCEL 0 | ||
| 1610 | +#define CONFIG_VP8_NVDEC_HWACCEL 0 | ||
| 1611 | +#define CONFIG_VP8_VAAPI_HWACCEL 0 | ||
| 1612 | +#define CONFIG_VP9_D3D11VA_HWACCEL 0 | ||
| 1613 | +#define CONFIG_VP9_D3D11VA2_HWACCEL 0 | ||
| 1614 | +#define CONFIG_VP9_DXVA2_HWACCEL 0 | ||
| 1615 | +#define CONFIG_VP9_NVDEC_HWACCEL 0 | ||
| 1616 | +#define CONFIG_VP9_VAAPI_HWACCEL 0 | ||
| 1617 | +#define CONFIG_VP9_VDPAU_HWACCEL 0 | ||
| 1618 | +#define CONFIG_VP9_VIDEOTOOLBOX_HWACCEL 0 | ||
| 1619 | +#define CONFIG_WMV3_D3D11VA_HWACCEL 0 | ||
| 1620 | +#define CONFIG_WMV3_D3D11VA2_HWACCEL 0 | ||
| 1621 | +#define CONFIG_WMV3_DXVA2_HWACCEL 0 | ||
| 1622 | +#define CONFIG_WMV3_NVDEC_HWACCEL 0 | ||
| 1623 | +#define CONFIG_WMV3_VAAPI_HWACCEL 0 | ||
| 1624 | +#define CONFIG_WMV3_VDPAU_HWACCEL 0 | ||
| 1625 | +#define CONFIG_AAC_PARSER 1 | ||
| 1626 | +#define CONFIG_AAC_LATM_PARSER 0 | ||
| 1627 | +#define CONFIG_AC3_PARSER 0 | ||
| 1628 | +#define CONFIG_ADX_PARSER 0 | ||
| 1629 | +#define CONFIG_AMR_PARSER 0 | ||
| 1630 | +#define CONFIG_AV1_PARSER 0 | ||
| 1631 | +#define CONFIG_AVS2_PARSER 0 | ||
| 1632 | +#define CONFIG_AVS3_PARSER 0 | ||
| 1633 | +#define CONFIG_BMP_PARSER 0 | ||
| 1634 | +#define CONFIG_CAVSVIDEO_PARSER 0 | ||
| 1635 | +#define CONFIG_COOK_PARSER 0 | ||
| 1636 | +#define CONFIG_CRI_PARSER 0 | ||
| 1637 | +#define CONFIG_DCA_PARSER 0 | ||
| 1638 | +#define CONFIG_DIRAC_PARSER 0 | ||
| 1639 | +#define CONFIG_DNXHD_PARSER 0 | ||
| 1640 | +#define CONFIG_DOLBY_E_PARSER 0 | ||
| 1641 | +#define CONFIG_DPX_PARSER 0 | ||
| 1642 | +#define CONFIG_DVAUDIO_PARSER 0 | ||
| 1643 | +#define CONFIG_DVBSUB_PARSER 0 | ||
| 1644 | +#define CONFIG_DVDSUB_PARSER 0 | ||
| 1645 | +#define CONFIG_DVD_NAV_PARSER 0 | ||
| 1646 | +#define CONFIG_FLAC_PARSER 1 | ||
| 1647 | +#define CONFIG_G723_1_PARSER 0 | ||
| 1648 | +#define CONFIG_G729_PARSER 0 | ||
| 1649 | +#define CONFIG_GIF_PARSER 0 | ||
| 1650 | +#define CONFIG_GSM_PARSER 0 | ||
| 1651 | +#define CONFIG_H261_PARSER 0 | ||
| 1652 | +#define CONFIG_H263_PARSER 0 | ||
| 1653 | +#define CONFIG_H264_PARSER 1 | ||
| 1654 | +#define CONFIG_HEVC_PARSER 0 | ||
| 1655 | +#define CONFIG_IPU_PARSER 0 | ||
| 1656 | +#define CONFIG_JPEG2000_PARSER 0 | ||
| 1657 | +#define CONFIG_MJPEG_PARSER 0 | ||
| 1658 | +#define CONFIG_MLP_PARSER 0 | ||
| 1659 | +#define CONFIG_MPEG4VIDEO_PARSER 0 | ||
| 1660 | +#define CONFIG_MPEGAUDIO_PARSER 1 | ||
| 1661 | +#define CONFIG_MPEGVIDEO_PARSER 0 | ||
| 1662 | +#define CONFIG_OPUS_PARSER 1 | ||
| 1663 | +#define CONFIG_PNG_PARSER 0 | ||
| 1664 | +#define CONFIG_PNM_PARSER 0 | ||
| 1665 | +#define CONFIG_RV30_PARSER 0 | ||
| 1666 | +#define CONFIG_RV40_PARSER 0 | ||
| 1667 | +#define CONFIG_SBC_PARSER 0 | ||
| 1668 | +#define CONFIG_SIPR_PARSER 0 | ||
| 1669 | +#define CONFIG_TAK_PARSER 0 | ||
| 1670 | +#define CONFIG_VC1_PARSER 0 | ||
| 1671 | +#define CONFIG_VORBIS_PARSER 1 | ||
| 1672 | +#define CONFIG_VP3_PARSER 1 | ||
| 1673 | +#define CONFIG_VP8_PARSER 1 | ||
| 1674 | +#define CONFIG_VP9_PARSER 1 | ||
| 1675 | +#define CONFIG_WEBP_PARSER 0 | ||
| 1676 | +#define CONFIG_XBM_PARSER 0 | ||
| 1677 | +#define CONFIG_XMA_PARSER 0 | ||
| 1678 | +#define CONFIG_ALSA_INDEV 0 | ||
| 1679 | +#define CONFIG_ANDROID_CAMERA_INDEV 0 | ||
| 1680 | +#define CONFIG_AVFOUNDATION_INDEV 0 | ||
| 1681 | +#define CONFIG_BKTR_INDEV 0 | ||
| 1682 | +#define CONFIG_DECKLINK_INDEV 0 | ||
| 1683 | +#define CONFIG_DSHOW_INDEV 0 | ||
| 1684 | +#define CONFIG_FBDEV_INDEV 0 | ||
| 1685 | +#define CONFIG_GDIGRAB_INDEV 0 | ||
| 1686 | +#define CONFIG_IEC61883_INDEV 0 | ||
| 1687 | +#define CONFIG_JACK_INDEV 0 | ||
| 1688 | +#define CONFIG_KMSGRAB_INDEV 0 | ||
| 1689 | +#define CONFIG_LAVFI_INDEV 0 | ||
| 1690 | +#define CONFIG_OPENAL_INDEV 0 | ||
| 1691 | +#define CONFIG_OSS_INDEV 0 | ||
| 1692 | +#define CONFIG_PULSE_INDEV 0 | ||
| 1693 | +#define CONFIG_SNDIO_INDEV 0 | ||
| 1694 | +#define CONFIG_V4L2_INDEV 0 | ||
| 1695 | +#define CONFIG_VFWCAP_INDEV 0 | ||
| 1696 | +#define CONFIG_XCBGRAB_INDEV 0 | ||
| 1697 | +#define CONFIG_LIBCDIO_INDEV 0 | ||
| 1698 | +#define CONFIG_LIBDC1394_INDEV 0 | ||
| 1699 | +#define CONFIG_ALSA_OUTDEV 0 | ||
| 1700 | +#define CONFIG_AUDIOTOOLBOX_OUTDEV 0 | ||
| 1701 | +#define CONFIG_CACA_OUTDEV 0 | ||
| 1702 | +#define CONFIG_DECKLINK_OUTDEV 0 | ||
| 1703 | +#define CONFIG_FBDEV_OUTDEV 0 | ||
| 1704 | +#define CONFIG_OPENGL_OUTDEV 0 | ||
| 1705 | +#define CONFIG_OSS_OUTDEV 0 | ||
| 1706 | +#define CONFIG_PULSE_OUTDEV 0 | ||
| 1707 | +#define CONFIG_SDL2_OUTDEV 0 | ||
| 1708 | +#define CONFIG_SNDIO_OUTDEV 0 | ||
| 1709 | +#define CONFIG_V4L2_OUTDEV 0 | ||
| 1710 | +#define CONFIG_XV_OUTDEV 0 | ||
| 1711 | +#define CONFIG_ABENCH_FILTER 0 | ||
| 1712 | +#define CONFIG_ACOMPRESSOR_FILTER 0 | ||
| 1713 | +#define CONFIG_ACONTRAST_FILTER 0 | ||
| 1714 | +#define CONFIG_ACOPY_FILTER 0 | ||
| 1715 | +#define CONFIG_ACUE_FILTER 0 | ||
| 1716 | +#define CONFIG_ACROSSFADE_FILTER 0 | ||
| 1717 | +#define CONFIG_ACROSSOVER_FILTER 0 | ||
| 1718 | +#define CONFIG_ACRUSHER_FILTER 0 | ||
| 1719 | +#define CONFIG_ADECLICK_FILTER 0 | ||
| 1720 | +#define CONFIG_ADECLIP_FILTER 0 | ||
| 1721 | +#define CONFIG_ADECORRELATE_FILTER 0 | ||
| 1722 | +#define CONFIG_ADELAY_FILTER 0 | ||
| 1723 | +#define CONFIG_ADENORM_FILTER 0 | ||
| 1724 | +#define CONFIG_ADERIVATIVE_FILTER 0 | ||
| 1725 | +#define CONFIG_ADYNAMICEQUALIZER_FILTER 0 | ||
| 1726 | +#define CONFIG_ADYNAMICSMOOTH_FILTER 0 | ||
| 1727 | +#define CONFIG_AECHO_FILTER 0 | ||
| 1728 | +#define CONFIG_AEMPHASIS_FILTER 0 | ||
| 1729 | +#define CONFIG_AEVAL_FILTER 0 | ||
| 1730 | +#define CONFIG_AEXCITER_FILTER 0 | ||
| 1731 | +#define CONFIG_AFADE_FILTER 0 | ||
| 1732 | +#define CONFIG_AFFTDN_FILTER 0 | ||
| 1733 | +#define CONFIG_AFFTFILT_FILTER 0 | ||
| 1734 | +#define CONFIG_AFIR_FILTER 0 | ||
| 1735 | +#define CONFIG_AFORMAT_FILTER 0 | ||
| 1736 | +#define CONFIG_AFREQSHIFT_FILTER 0 | ||
| 1737 | +#define CONFIG_AFWTDN_FILTER 0 | ||
| 1738 | +#define CONFIG_AGATE_FILTER 0 | ||
| 1739 | +#define CONFIG_AIIR_FILTER 0 | ||
| 1740 | +#define CONFIG_AINTEGRAL_FILTER 0 | ||
| 1741 | +#define CONFIG_AINTERLEAVE_FILTER 0 | ||
| 1742 | +#define CONFIG_ALATENCY_FILTER 0 | ||
| 1743 | +#define CONFIG_ALIMITER_FILTER 0 | ||
| 1744 | +#define CONFIG_ALLPASS_FILTER 0 | ||
| 1745 | +#define CONFIG_ALOOP_FILTER 0 | ||
| 1746 | +#define CONFIG_AMERGE_FILTER 0 | ||
| 1747 | +#define CONFIG_AMETADATA_FILTER 0 | ||
| 1748 | +#define CONFIG_AMIX_FILTER 0 | ||
| 1749 | +#define CONFIG_AMULTIPLY_FILTER 0 | ||
| 1750 | +#define CONFIG_ANEQUALIZER_FILTER 0 | ||
| 1751 | +#define CONFIG_ANLMDN_FILTER 0 | ||
| 1752 | +#define CONFIG_ANLMF_FILTER 0 | ||
| 1753 | +#define CONFIG_ANLMS_FILTER 0 | ||
| 1754 | +#define CONFIG_ANULL_FILTER 0 | ||
| 1755 | +#define CONFIG_APAD_FILTER 0 | ||
| 1756 | +#define CONFIG_APERMS_FILTER 0 | ||
| 1757 | +#define CONFIG_APHASER_FILTER 0 | ||
| 1758 | +#define CONFIG_APHASESHIFT_FILTER 0 | ||
| 1759 | +#define CONFIG_APSYCLIP_FILTER 0 | ||
| 1760 | +#define CONFIG_APULSATOR_FILTER 0 | ||
| 1761 | +#define CONFIG_AREALTIME_FILTER 0 | ||
| 1762 | +#define CONFIG_ARESAMPLE_FILTER 0 | ||
| 1763 | +#define CONFIG_AREVERSE_FILTER 0 | ||
| 1764 | +#define CONFIG_ARNNDN_FILTER 0 | ||
| 1765 | +#define CONFIG_ASDR_FILTER 0 | ||
| 1766 | +#define CONFIG_ASEGMENT_FILTER 0 | ||
| 1767 | +#define CONFIG_ASELECT_FILTER 0 | ||
| 1768 | +#define CONFIG_ASENDCMD_FILTER 0 | ||
| 1769 | +#define CONFIG_ASETNSAMPLES_FILTER 0 | ||
| 1770 | +#define CONFIG_ASETPTS_FILTER 0 | ||
| 1771 | +#define CONFIG_ASETRATE_FILTER 0 | ||
| 1772 | +#define CONFIG_ASETTB_FILTER 0 | ||
| 1773 | +#define CONFIG_ASHOWINFO_FILTER 0 | ||
| 1774 | +#define CONFIG_ASIDEDATA_FILTER 0 | ||
| 1775 | +#define CONFIG_ASOFTCLIP_FILTER 0 | ||
| 1776 | +#define CONFIG_ASPECTRALSTATS_FILTER 0 | ||
| 1777 | +#define CONFIG_ASPLIT_FILTER 0 | ||
| 1778 | +#define CONFIG_ASR_FILTER 0 | ||
| 1779 | +#define CONFIG_ASTATS_FILTER 0 | ||
| 1780 | +#define CONFIG_ASTREAMSELECT_FILTER 0 | ||
| 1781 | +#define CONFIG_ASUBBOOST_FILTER 0 | ||
| 1782 | +#define CONFIG_ASUBCUT_FILTER 0 | ||
| 1783 | +#define CONFIG_ASUPERCUT_FILTER 0 | ||
| 1784 | +#define CONFIG_ASUPERPASS_FILTER 0 | ||
| 1785 | +#define CONFIG_ASUPERSTOP_FILTER 0 | ||
| 1786 | +#define CONFIG_ATEMPO_FILTER 0 | ||
| 1787 | +#define CONFIG_ATILT_FILTER 0 | ||
| 1788 | +#define CONFIG_ATRIM_FILTER 0 | ||
| 1789 | +#define CONFIG_AXCORRELATE_FILTER 0 | ||
| 1790 | +#define CONFIG_AZMQ_FILTER 0 | ||
| 1791 | +#define CONFIG_BANDPASS_FILTER 0 | ||
| 1792 | +#define CONFIG_BANDREJECT_FILTER 0 | ||
| 1793 | +#define CONFIG_BASS_FILTER 0 | ||
| 1794 | +#define CONFIG_BIQUAD_FILTER 0 | ||
| 1795 | +#define CONFIG_BS2B_FILTER 0 | ||
| 1796 | +#define CONFIG_CHANNELMAP_FILTER 0 | ||
| 1797 | +#define CONFIG_CHANNELSPLIT_FILTER 0 | ||
| 1798 | +#define CONFIG_CHORUS_FILTER 0 | ||
| 1799 | +#define CONFIG_COMPAND_FILTER 0 | ||
| 1800 | +#define CONFIG_COMPENSATIONDELAY_FILTER 0 | ||
| 1801 | +#define CONFIG_CROSSFEED_FILTER 0 | ||
| 1802 | +#define CONFIG_CRYSTALIZER_FILTER 0 | ||
| 1803 | +#define CONFIG_DCSHIFT_FILTER 0 | ||
| 1804 | +#define CONFIG_DEESSER_FILTER 0 | ||
| 1805 | +#define CONFIG_DRMETER_FILTER 0 | ||
| 1806 | +#define CONFIG_DYNAUDNORM_FILTER 0 | ||
| 1807 | +#define CONFIG_EARWAX_FILTER 0 | ||
| 1808 | +#define CONFIG_EBUR128_FILTER 0 | ||
| 1809 | +#define CONFIG_EQUALIZER_FILTER 0 | ||
| 1810 | +#define CONFIG_EXTRASTEREO_FILTER 0 | ||
| 1811 | +#define CONFIG_FIREQUALIZER_FILTER 0 | ||
| 1812 | +#define CONFIG_FLANGER_FILTER 0 | ||
| 1813 | +#define CONFIG_HAAS_FILTER 0 | ||
| 1814 | +#define CONFIG_HDCD_FILTER 0 | ||
| 1815 | +#define CONFIG_HEADPHONE_FILTER 0 | ||
| 1816 | +#define CONFIG_HIGHPASS_FILTER 0 | ||
| 1817 | +#define CONFIG_HIGHSHELF_FILTER 0 | ||
| 1818 | +#define CONFIG_JOIN_FILTER 0 | ||
| 1819 | +#define CONFIG_LADSPA_FILTER 0 | ||
| 1820 | +#define CONFIG_LOUDNORM_FILTER 0 | ||
| 1821 | +#define CONFIG_LOWPASS_FILTER 0 | ||
| 1822 | +#define CONFIG_LOWSHELF_FILTER 0 | ||
| 1823 | +#define CONFIG_LV2_FILTER 0 | ||
| 1824 | +#define CONFIG_MCOMPAND_FILTER 0 | ||
| 1825 | +#define CONFIG_PAN_FILTER 0 | ||
| 1826 | +#define CONFIG_REPLAYGAIN_FILTER 0 | ||
| 1827 | +#define CONFIG_RUBBERBAND_FILTER 0 | ||
| 1828 | +#define CONFIG_SIDECHAINCOMPRESS_FILTER 0 | ||
| 1829 | +#define CONFIG_SIDECHAINGATE_FILTER 0 | ||
| 1830 | +#define CONFIG_SILENCEDETECT_FILTER 0 | ||
| 1831 | +#define CONFIG_SILENCEREMOVE_FILTER 0 | ||
| 1832 | +#define CONFIG_SOFALIZER_FILTER 0 | ||
| 1833 | +#define CONFIG_SPEECHNORM_FILTER 0 | ||
| 1834 | +#define CONFIG_STEREOTOOLS_FILTER 0 | ||
| 1835 | +#define CONFIG_STEREOWIDEN_FILTER 0 | ||
| 1836 | +#define CONFIG_SUPEREQUALIZER_FILTER 0 | ||
| 1837 | +#define CONFIG_SURROUND_FILTER 0 | ||
| 1838 | +#define CONFIG_TREBLE_FILTER 0 | ||
| 1839 | +#define CONFIG_TREMOLO_FILTER 0 | ||
| 1840 | +#define CONFIG_VIBRATO_FILTER 0 | ||
| 1841 | +#define CONFIG_VOLUME_FILTER 0 | ||
| 1842 | +#define CONFIG_VOLUMEDETECT_FILTER 0 | ||
| 1843 | +#define CONFIG_AEVALSRC_FILTER 0 | ||
| 1844 | +#define CONFIG_AFIRSRC_FILTER 0 | ||
| 1845 | +#define CONFIG_ANOISESRC_FILTER 0 | ||
| 1846 | +#define CONFIG_ANULLSRC_FILTER 0 | ||
| 1847 | +#define CONFIG_FLITE_FILTER 0 | ||
| 1848 | +#define CONFIG_HILBERT_FILTER 0 | ||
| 1849 | +#define CONFIG_SINC_FILTER 0 | ||
| 1850 | +#define CONFIG_SINE_FILTER 0 | ||
| 1851 | +#define CONFIG_ANULLSINK_FILTER 0 | ||
| 1852 | +#define CONFIG_ADDROI_FILTER 0 | ||
| 1853 | +#define CONFIG_ALPHAEXTRACT_FILTER 0 | ||
| 1854 | +#define CONFIG_ALPHAMERGE_FILTER 0 | ||
| 1855 | +#define CONFIG_AMPLIFY_FILTER 0 | ||
| 1856 | +#define CONFIG_ASS_FILTER 0 | ||
| 1857 | +#define CONFIG_ATADENOISE_FILTER 0 | ||
| 1858 | +#define CONFIG_AVGBLUR_FILTER 0 | ||
| 1859 | +#define CONFIG_AVGBLUR_OPENCL_FILTER 0 | ||
| 1860 | +#define CONFIG_AVGBLUR_VULKAN_FILTER 0 | ||
| 1861 | +#define CONFIG_BBOX_FILTER 0 | ||
| 1862 | +#define CONFIG_BENCH_FILTER 0 | ||
| 1863 | +#define CONFIG_BILATERAL_FILTER 0 | ||
| 1864 | +#define CONFIG_BITPLANENOISE_FILTER 0 | ||
| 1865 | +#define CONFIG_BLACKDETECT_FILTER 0 | ||
| 1866 | +#define CONFIG_BLACKFRAME_FILTER 0 | ||
| 1867 | +#define CONFIG_BLEND_FILTER 0 | ||
| 1868 | +#define CONFIG_BLEND_VULKAN_FILTER 0 | ||
| 1869 | +#define CONFIG_BM3D_FILTER 0 | ||
| 1870 | +#define CONFIG_BOXBLUR_FILTER 0 | ||
| 1871 | +#define CONFIG_BOXBLUR_OPENCL_FILTER 0 | ||
| 1872 | +#define CONFIG_BWDIF_FILTER 0 | ||
| 1873 | +#define CONFIG_CAS_FILTER 0 | ||
| 1874 | +#define CONFIG_CHROMABER_VULKAN_FILTER 0 | ||
| 1875 | +#define CONFIG_CHROMAHOLD_FILTER 0 | ||
| 1876 | +#define CONFIG_CHROMAKEY_FILTER 0 | ||
| 1877 | +#define CONFIG_CHROMANR_FILTER 0 | ||
| 1878 | +#define CONFIG_CHROMASHIFT_FILTER 0 | ||
| 1879 | +#define CONFIG_CIESCOPE_FILTER 0 | ||
| 1880 | +#define CONFIG_CODECVIEW_FILTER 0 | ||
| 1881 | +#define CONFIG_COLORBALANCE_FILTER 0 | ||
| 1882 | +#define CONFIG_COLORCHANNELMIXER_FILTER 0 | ||
| 1883 | +#define CONFIG_COLORCONTRAST_FILTER 0 | ||
| 1884 | +#define CONFIG_COLORCORRECT_FILTER 0 | ||
| 1885 | +#define CONFIG_COLORIZE_FILTER 0 | ||
| 1886 | +#define CONFIG_COLORKEY_FILTER 0 | ||
| 1887 | +#define CONFIG_COLORKEY_OPENCL_FILTER 0 | ||
| 1888 | +#define CONFIG_COLORHOLD_FILTER 0 | ||
| 1889 | +#define CONFIG_COLORLEVELS_FILTER 0 | ||
| 1890 | +#define CONFIG_COLORMATRIX_FILTER 0 | ||
| 1891 | +#define CONFIG_COLORSPACE_FILTER 0 | ||
| 1892 | +#define CONFIG_COLORTEMPERATURE_FILTER 0 | ||
| 1893 | +#define CONFIG_CONVOLUTION_FILTER 0 | ||
| 1894 | +#define CONFIG_CONVOLUTION_OPENCL_FILTER 0 | ||
| 1895 | +#define CONFIG_CONVOLVE_FILTER 0 | ||
| 1896 | +#define CONFIG_COPY_FILTER 0 | ||
| 1897 | +#define CONFIG_COREIMAGE_FILTER 0 | ||
| 1898 | +#define CONFIG_COVER_RECT_FILTER 0 | ||
| 1899 | +#define CONFIG_CROP_FILTER 0 | ||
| 1900 | +#define CONFIG_CROPDETECT_FILTER 0 | ||
| 1901 | +#define CONFIG_CUE_FILTER 0 | ||
| 1902 | +#define CONFIG_CURVES_FILTER 0 | ||
| 1903 | +#define CONFIG_DATASCOPE_FILTER 0 | ||
| 1904 | +#define CONFIG_DBLUR_FILTER 0 | ||
| 1905 | +#define CONFIG_DCTDNOIZ_FILTER 0 | ||
| 1906 | +#define CONFIG_DEBAND_FILTER 0 | ||
| 1907 | +#define CONFIG_DEBLOCK_FILTER 0 | ||
| 1908 | +#define CONFIG_DECIMATE_FILTER 0 | ||
| 1909 | +#define CONFIG_DECONVOLVE_FILTER 0 | ||
| 1910 | +#define CONFIG_DEDOT_FILTER 0 | ||
| 1911 | +#define CONFIG_DEFLATE_FILTER 0 | ||
| 1912 | +#define CONFIG_DEFLICKER_FILTER 0 | ||
| 1913 | +#define CONFIG_DEINTERLACE_QSV_FILTER 0 | ||
| 1914 | +#define CONFIG_DEINTERLACE_VAAPI_FILTER 0 | ||
| 1915 | +#define CONFIG_DEJUDDER_FILTER 0 | ||
| 1916 | +#define CONFIG_DELOGO_FILTER 0 | ||
| 1917 | +#define CONFIG_DENOISE_VAAPI_FILTER 0 | ||
| 1918 | +#define CONFIG_DERAIN_FILTER 0 | ||
| 1919 | +#define CONFIG_DESHAKE_FILTER 0 | ||
| 1920 | +#define CONFIG_DESHAKE_OPENCL_FILTER 0 | ||
| 1921 | +#define CONFIG_DESPILL_FILTER 0 | ||
| 1922 | +#define CONFIG_DETELECINE_FILTER 0 | ||
| 1923 | +#define CONFIG_DILATION_FILTER 0 | ||
| 1924 | +#define CONFIG_DILATION_OPENCL_FILTER 0 | ||
| 1925 | +#define CONFIG_DISPLACE_FILTER 0 | ||
| 1926 | +#define CONFIG_DNN_CLASSIFY_FILTER 0 | ||
| 1927 | +#define CONFIG_DNN_DETECT_FILTER 0 | ||
| 1928 | +#define CONFIG_DNN_PROCESSING_FILTER 0 | ||
| 1929 | +#define CONFIG_DOUBLEWEAVE_FILTER 0 | ||
| 1930 | +#define CONFIG_DRAWBOX_FILTER 0 | ||
| 1931 | +#define CONFIG_DRAWGRAPH_FILTER 0 | ||
| 1932 | +#define CONFIG_DRAWGRID_FILTER 0 | ||
| 1933 | +#define CONFIG_DRAWTEXT_FILTER 0 | ||
| 1934 | +#define CONFIG_EDGEDETECT_FILTER 0 | ||
| 1935 | +#define CONFIG_ELBG_FILTER 0 | ||
| 1936 | +#define CONFIG_ENTROPY_FILTER 0 | ||
| 1937 | +#define CONFIG_EPX_FILTER 0 | ||
| 1938 | +#define CONFIG_EQ_FILTER 0 | ||
| 1939 | +#define CONFIG_EROSION_FILTER 0 | ||
| 1940 | +#define CONFIG_EROSION_OPENCL_FILTER 0 | ||
| 1941 | +#define CONFIG_ESTDIF_FILTER 0 | ||
| 1942 | +#define CONFIG_EXPOSURE_FILTER 0 | ||
| 1943 | +#define CONFIG_EXTRACTPLANES_FILTER 0 | ||
| 1944 | +#define CONFIG_FADE_FILTER 0 | ||
| 1945 | +#define CONFIG_FFTDNOIZ_FILTER 0 | ||
| 1946 | +#define CONFIG_FFTFILT_FILTER 0 | ||
| 1947 | +#define CONFIG_FIELD_FILTER 0 | ||
| 1948 | +#define CONFIG_FIELDHINT_FILTER 0 | ||
| 1949 | +#define CONFIG_FIELDMATCH_FILTER 0 | ||
| 1950 | +#define CONFIG_FIELDORDER_FILTER 0 | ||
| 1951 | +#define CONFIG_FILLBORDERS_FILTER 0 | ||
| 1952 | +#define CONFIG_FIND_RECT_FILTER 0 | ||
| 1953 | +#define CONFIG_FLIP_VULKAN_FILTER 0 | ||
| 1954 | +#define CONFIG_FLOODFILL_FILTER 0 | ||
| 1955 | +#define CONFIG_FORMAT_FILTER 0 | ||
| 1956 | +#define CONFIG_FPS_FILTER 0 | ||
| 1957 | +#define CONFIG_FRAMEPACK_FILTER 0 | ||
| 1958 | +#define CONFIG_FRAMERATE_FILTER 0 | ||
| 1959 | +#define CONFIG_FRAMESTEP_FILTER 0 | ||
| 1960 | +#define CONFIG_FREEZEDETECT_FILTER 0 | ||
| 1961 | +#define CONFIG_FREEZEFRAMES_FILTER 0 | ||
| 1962 | +#define CONFIG_FREI0R_FILTER 0 | ||
| 1963 | +#define CONFIG_FSPP_FILTER 0 | ||
| 1964 | +#define CONFIG_GBLUR_FILTER 0 | ||
| 1965 | +#define CONFIG_GBLUR_VULKAN_FILTER 0 | ||
| 1966 | +#define CONFIG_GEQ_FILTER 0 | ||
| 1967 | +#define CONFIG_GRADFUN_FILTER 0 | ||
| 1968 | +#define CONFIG_GRAPHMONITOR_FILTER 0 | ||
| 1969 | +#define CONFIG_GRAYWORLD_FILTER 0 | ||
| 1970 | +#define CONFIG_GREYEDGE_FILTER 0 | ||
| 1971 | +#define CONFIG_GUIDED_FILTER 0 | ||
| 1972 | +#define CONFIG_HALDCLUT_FILTER 0 | ||
| 1973 | +#define CONFIG_HFLIP_FILTER 0 | ||
| 1974 | +#define CONFIG_HFLIP_VULKAN_FILTER 0 | ||
| 1975 | +#define CONFIG_HISTEQ_FILTER 0 | ||
| 1976 | +#define CONFIG_HISTOGRAM_FILTER 0 | ||
| 1977 | +#define CONFIG_HQDN3D_FILTER 0 | ||
| 1978 | +#define CONFIG_HQX_FILTER 0 | ||
| 1979 | +#define CONFIG_HSTACK_FILTER 0 | ||
| 1980 | +#define CONFIG_HSVHOLD_FILTER 0 | ||
| 1981 | +#define CONFIG_HSVKEY_FILTER 0 | ||
| 1982 | +#define CONFIG_HUE_FILTER 0 | ||
| 1983 | +#define CONFIG_HUESATURATION_FILTER 0 | ||
| 1984 | +#define CONFIG_HWDOWNLOAD_FILTER 0 | ||
| 1985 | +#define CONFIG_HWMAP_FILTER 0 | ||
| 1986 | +#define CONFIG_HWUPLOAD_FILTER 0 | ||
| 1987 | +#define CONFIG_HWUPLOAD_CUDA_FILTER 0 | ||
| 1988 | +#define CONFIG_HYSTERESIS_FILTER 0 | ||
| 1989 | +#define CONFIG_IDENTITY_FILTER 0 | ||
| 1990 | +#define CONFIG_IDET_FILTER 0 | ||
| 1991 | +#define CONFIG_IL_FILTER 0 | ||
| 1992 | +#define CONFIG_INFLATE_FILTER 0 | ||
| 1993 | +#define CONFIG_INTERLACE_FILTER 0 | ||
| 1994 | +#define CONFIG_INTERLEAVE_FILTER 0 | ||
| 1995 | +#define CONFIG_KERNDEINT_FILTER 0 | ||
| 1996 | +#define CONFIG_KIRSCH_FILTER 0 | ||
| 1997 | +#define CONFIG_LAGFUN_FILTER 0 | ||
| 1998 | +#define CONFIG_LATENCY_FILTER 0 | ||
| 1999 | +#define CONFIG_LENSCORRECTION_FILTER 0 | ||
| 2000 | +#define CONFIG_LENSFUN_FILTER 0 | ||
| 2001 | +#define CONFIG_LIBPLACEBO_FILTER 0 | ||
| 2002 | +#define CONFIG_LIBVMAF_FILTER 0 | ||
| 2003 | +#define CONFIG_LIMITDIFF_FILTER 0 | ||
| 2004 | +#define CONFIG_LIMITER_FILTER 0 | ||
| 2005 | +#define CONFIG_LOOP_FILTER 0 | ||
| 2006 | +#define CONFIG_LUMAKEY_FILTER 0 | ||
| 2007 | +#define CONFIG_LUT_FILTER 0 | ||
| 2008 | +#define CONFIG_LUT1D_FILTER 0 | ||
| 2009 | +#define CONFIG_LUT2_FILTER 0 | ||
| 2010 | +#define CONFIG_LUT3D_FILTER 0 | ||
| 2011 | +#define CONFIG_LUTRGB_FILTER 0 | ||
| 2012 | +#define CONFIG_LUTYUV_FILTER 0 | ||
| 2013 | +#define CONFIG_MASKEDCLAMP_FILTER 0 | ||
| 2014 | +#define CONFIG_MASKEDMAX_FILTER 0 | ||
| 2015 | +#define CONFIG_MASKEDMERGE_FILTER 0 | ||
| 2016 | +#define CONFIG_MASKEDMIN_FILTER 0 | ||
| 2017 | +#define CONFIG_MASKEDTHRESHOLD_FILTER 0 | ||
| 2018 | +#define CONFIG_MASKFUN_FILTER 0 | ||
| 2019 | +#define CONFIG_MCDEINT_FILTER 0 | ||
| 2020 | +#define CONFIG_MEDIAN_FILTER 0 | ||
| 2021 | +#define CONFIG_MERGEPLANES_FILTER 0 | ||
| 2022 | +#define CONFIG_MESTIMATE_FILTER 0 | ||
| 2023 | +#define CONFIG_METADATA_FILTER 0 | ||
| 2024 | +#define CONFIG_MIDEQUALIZER_FILTER 0 | ||
| 2025 | +#define CONFIG_MINTERPOLATE_FILTER 0 | ||
| 2026 | +#define CONFIG_MIX_FILTER 0 | ||
| 2027 | +#define CONFIG_MONOCHROME_FILTER 0 | ||
| 2028 | +#define CONFIG_MORPHO_FILTER 0 | ||
| 2029 | +#define CONFIG_MPDECIMATE_FILTER 0 | ||
| 2030 | +#define CONFIG_MSAD_FILTER 0 | ||
| 2031 | +#define CONFIG_NEGATE_FILTER 0 | ||
| 2032 | +#define CONFIG_NLMEANS_FILTER 0 | ||
| 2033 | +#define CONFIG_NLMEANS_OPENCL_FILTER 0 | ||
| 2034 | +#define CONFIG_NNEDI_FILTER 0 | ||
| 2035 | +#define CONFIG_NOFORMAT_FILTER 0 | ||
| 2036 | +#define CONFIG_NOISE_FILTER 0 | ||
| 2037 | +#define CONFIG_NORMALIZE_FILTER 0 | ||
| 2038 | +#define CONFIG_NULL_FILTER 0 | ||
| 2039 | +#define CONFIG_OCR_FILTER 0 | ||
| 2040 | +#define CONFIG_OCV_FILTER 0 | ||
| 2041 | +#define CONFIG_OSCILLOSCOPE_FILTER 0 | ||
| 2042 | +#define CONFIG_OVERLAY_FILTER 0 | ||
| 2043 | +#define CONFIG_OVERLAY_OPENCL_FILTER 0 | ||
| 2044 | +#define CONFIG_OVERLAY_QSV_FILTER 0 | ||
| 2045 | +#define CONFIG_OVERLAY_VAAPI_FILTER 0 | ||
| 2046 | +#define CONFIG_OVERLAY_VULKAN_FILTER 0 | ||
| 2047 | +#define CONFIG_OVERLAY_CUDA_FILTER 0 | ||
| 2048 | +#define CONFIG_OWDENOISE_FILTER 0 | ||
| 2049 | +#define CONFIG_PAD_FILTER 0 | ||
| 2050 | +#define CONFIG_PAD_OPENCL_FILTER 0 | ||
| 2051 | +#define CONFIG_PALETTEGEN_FILTER 0 | ||
| 2052 | +#define CONFIG_PALETTEUSE_FILTER 0 | ||
| 2053 | +#define CONFIG_PERMS_FILTER 0 | ||
| 2054 | +#define CONFIG_PERSPECTIVE_FILTER 0 | ||
| 2055 | +#define CONFIG_PHASE_FILTER 0 | ||
| 2056 | +#define CONFIG_PHOTOSENSITIVITY_FILTER 0 | ||
| 2057 | +#define CONFIG_PIXDESCTEST_FILTER 0 | ||
| 2058 | +#define CONFIG_PIXSCOPE_FILTER 0 | ||
| 2059 | +#define CONFIG_PP_FILTER 0 | ||
| 2060 | +#define CONFIG_PP7_FILTER 0 | ||
| 2061 | +#define CONFIG_PREMULTIPLY_FILTER 0 | ||
| 2062 | +#define CONFIG_PREWITT_FILTER 0 | ||
| 2063 | +#define CONFIG_PREWITT_OPENCL_FILTER 0 | ||
| 2064 | +#define CONFIG_PROCAMP_VAAPI_FILTER 0 | ||
| 2065 | +#define CONFIG_PROGRAM_OPENCL_FILTER 0 | ||
| 2066 | +#define CONFIG_PSEUDOCOLOR_FILTER 0 | ||
| 2067 | +#define CONFIG_PSNR_FILTER 0 | ||
| 2068 | +#define CONFIG_PULLUP_FILTER 0 | ||
| 2069 | +#define CONFIG_QP_FILTER 0 | ||
| 2070 | +#define CONFIG_RANDOM_FILTER 0 | ||
| 2071 | +#define CONFIG_READEIA608_FILTER 0 | ||
| 2072 | +#define CONFIG_READVITC_FILTER 0 | ||
| 2073 | +#define CONFIG_REALTIME_FILTER 0 | ||
| 2074 | +#define CONFIG_REMAP_FILTER 0 | ||
| 2075 | +#define CONFIG_REMOVEGRAIN_FILTER 0 | ||
| 2076 | +#define CONFIG_REMOVELOGO_FILTER 0 | ||
| 2077 | +#define CONFIG_REPEATFIELDS_FILTER 0 | ||
| 2078 | +#define CONFIG_REVERSE_FILTER 0 | ||
| 2079 | +#define CONFIG_RGBASHIFT_FILTER 0 | ||
| 2080 | +#define CONFIG_ROBERTS_FILTER 0 | ||
| 2081 | +#define CONFIG_ROBERTS_OPENCL_FILTER 0 | ||
| 2082 | +#define CONFIG_ROTATE_FILTER 0 | ||
| 2083 | +#define CONFIG_SAB_FILTER 0 | ||
| 2084 | +#define CONFIG_SCALE_FILTER 0 | ||
| 2085 | +#define CONFIG_SCALE_CUDA_FILTER 0 | ||
| 2086 | +#define CONFIG_SCALE_NPP_FILTER 0 | ||
| 2087 | +#define CONFIG_SCALE_QSV_FILTER 0 | ||
| 2088 | +#define CONFIG_SCALE_VAAPI_FILTER 0 | ||
| 2089 | +#define CONFIG_SCALE_VULKAN_FILTER 0 | ||
| 2090 | +#define CONFIG_SCALE2REF_FILTER 0 | ||
| 2091 | +#define CONFIG_SCALE2REF_NPP_FILTER 0 | ||
| 2092 | +#define CONFIG_SCDET_FILTER 0 | ||
| 2093 | +#define CONFIG_SCHARR_FILTER 0 | ||
| 2094 | +#define CONFIG_SCROLL_FILTER 0 | ||
| 2095 | +#define CONFIG_SEGMENT_FILTER 0 | ||
| 2096 | +#define CONFIG_SELECT_FILTER 0 | ||
| 2097 | +#define CONFIG_SELECTIVECOLOR_FILTER 0 | ||
| 2098 | +#define CONFIG_SENDCMD_FILTER 0 | ||
| 2099 | +#define CONFIG_SEPARATEFIELDS_FILTER 0 | ||
| 2100 | +#define CONFIG_SETDAR_FILTER 0 | ||
| 2101 | +#define CONFIG_SETFIELD_FILTER 0 | ||
| 2102 | +#define CONFIG_SETPARAMS_FILTER 0 | ||
| 2103 | +#define CONFIG_SETPTS_FILTER 0 | ||
| 2104 | +#define CONFIG_SETRANGE_FILTER 0 | ||
| 2105 | +#define CONFIG_SETSAR_FILTER 0 | ||
| 2106 | +#define CONFIG_SETTB_FILTER 0 | ||
| 2107 | +#define CONFIG_SHARPEN_NPP_FILTER 0 | ||
| 2108 | +#define CONFIG_SHARPNESS_VAAPI_FILTER 0 | ||
| 2109 | +#define CONFIG_SHEAR_FILTER 0 | ||
| 2110 | +#define CONFIG_SHOWINFO_FILTER 0 | ||
| 2111 | +#define CONFIG_SHOWPALETTE_FILTER 0 | ||
| 2112 | +#define CONFIG_SHUFFLEFRAMES_FILTER 0 | ||
| 2113 | +#define CONFIG_SHUFFLEPIXELS_FILTER 0 | ||
| 2114 | +#define CONFIG_SHUFFLEPLANES_FILTER 0 | ||
| 2115 | +#define CONFIG_SIDEDATA_FILTER 0 | ||
| 2116 | +#define CONFIG_SIGNALSTATS_FILTER 0 | ||
| 2117 | +#define CONFIG_SIGNATURE_FILTER 0 | ||
| 2118 | +#define CONFIG_SMARTBLUR_FILTER 0 | ||
| 2119 | +#define CONFIG_SOBEL_FILTER 0 | ||
| 2120 | +#define CONFIG_SOBEL_OPENCL_FILTER 0 | ||
| 2121 | +#define CONFIG_SPLIT_FILTER 0 | ||
| 2122 | +#define CONFIG_SPP_FILTER 0 | ||
| 2123 | +#define CONFIG_SR_FILTER 0 | ||
| 2124 | +#define CONFIG_SSIM_FILTER 0 | ||
| 2125 | +#define CONFIG_STEREO3D_FILTER 0 | ||
| 2126 | +#define CONFIG_STREAMSELECT_FILTER 0 | ||
| 2127 | +#define CONFIG_SUBTITLES_FILTER 0 | ||
| 2128 | +#define CONFIG_SUPER2XSAI_FILTER 0 | ||
| 2129 | +#define CONFIG_SWAPRECT_FILTER 0 | ||
| 2130 | +#define CONFIG_SWAPUV_FILTER 0 | ||
| 2131 | +#define CONFIG_TBLEND_FILTER 0 | ||
| 2132 | +#define CONFIG_TELECINE_FILTER 0 | ||
| 2133 | +#define CONFIG_THISTOGRAM_FILTER 0 | ||
| 2134 | +#define CONFIG_THRESHOLD_FILTER 0 | ||
| 2135 | +#define CONFIG_THUMBNAIL_FILTER 0 | ||
| 2136 | +#define CONFIG_THUMBNAIL_CUDA_FILTER 0 | ||
| 2137 | +#define CONFIG_TILE_FILTER 0 | ||
| 2138 | +#define CONFIG_TINTERLACE_FILTER 0 | ||
| 2139 | +#define CONFIG_TLUT2_FILTER 0 | ||
| 2140 | +#define CONFIG_TMEDIAN_FILTER 0 | ||
| 2141 | +#define CONFIG_TMIDEQUALIZER_FILTER 0 | ||
| 2142 | +#define CONFIG_TMIX_FILTER 0 | ||
| 2143 | +#define CONFIG_TONEMAP_FILTER 0 | ||
| 2144 | +#define CONFIG_TONEMAP_OPENCL_FILTER 0 | ||
| 2145 | +#define CONFIG_TONEMAP_VAAPI_FILTER 0 | ||
| 2146 | +#define CONFIG_TPAD_FILTER 0 | ||
| 2147 | +#define CONFIG_TRANSPOSE_FILTER 0 | ||
| 2148 | +#define CONFIG_TRANSPOSE_NPP_FILTER 0 | ||
| 2149 | +#define CONFIG_TRANSPOSE_OPENCL_FILTER 0 | ||
| 2150 | +#define CONFIG_TRANSPOSE_VAAPI_FILTER 0 | ||
| 2151 | +#define CONFIG_TRANSPOSE_VULKAN_FILTER 0 | ||
| 2152 | +#define CONFIG_TRIM_FILTER 0 | ||
| 2153 | +#define CONFIG_UNPREMULTIPLY_FILTER 0 | ||
| 2154 | +#define CONFIG_UNSHARP_FILTER 0 | ||
| 2155 | +#define CONFIG_UNSHARP_OPENCL_FILTER 0 | ||
| 2156 | +#define CONFIG_UNTILE_FILTER 0 | ||
| 2157 | +#define CONFIG_USPP_FILTER 0 | ||
| 2158 | +#define CONFIG_V360_FILTER 0 | ||
| 2159 | +#define CONFIG_VAGUEDENOISER_FILTER 0 | ||
| 2160 | +#define CONFIG_VARBLUR_FILTER 0 | ||
| 2161 | +#define CONFIG_VECTORSCOPE_FILTER 0 | ||
| 2162 | +#define CONFIG_VFLIP_FILTER 0 | ||
| 2163 | +#define CONFIG_VFLIP_VULKAN_FILTER 0 | ||
| 2164 | +#define CONFIG_VFRDET_FILTER 0 | ||
| 2165 | +#define CONFIG_VIBRANCE_FILTER 0 | ||
| 2166 | +#define CONFIG_VIDSTABDETECT_FILTER 0 | ||
| 2167 | +#define CONFIG_VIDSTABTRANSFORM_FILTER 0 | ||
| 2168 | +#define CONFIG_VIF_FILTER 0 | ||
| 2169 | +#define CONFIG_VIGNETTE_FILTER 0 | ||
| 2170 | +#define CONFIG_VMAFMOTION_FILTER 0 | ||
| 2171 | +#define CONFIG_VPP_QSV_FILTER 0 | ||
| 2172 | +#define CONFIG_VSTACK_FILTER 0 | ||
| 2173 | +#define CONFIG_W3FDIF_FILTER 0 | ||
| 2174 | +#define CONFIG_WAVEFORM_FILTER 0 | ||
| 2175 | +#define CONFIG_WEAVE_FILTER 0 | ||
| 2176 | +#define CONFIG_XBR_FILTER 0 | ||
| 2177 | +#define CONFIG_XCORRELATE_FILTER 0 | ||
| 2178 | +#define CONFIG_XFADE_FILTER 0 | ||
| 2179 | +#define CONFIG_XFADE_OPENCL_FILTER 0 | ||
| 2180 | +#define CONFIG_XMEDIAN_FILTER 0 | ||
| 2181 | +#define CONFIG_XSTACK_FILTER 0 | ||
| 2182 | +#define CONFIG_YADIF_FILTER 0 | ||
| 2183 | +#define CONFIG_YADIF_CUDA_FILTER 0 | ||
| 2184 | +#define CONFIG_YADIF_VIDEOTOOLBOX_FILTER 0 | ||
| 2185 | +#define CONFIG_YAEPBLUR_FILTER 0 | ||
| 2186 | +#define CONFIG_ZMQ_FILTER 0 | ||
| 2187 | +#define CONFIG_ZOOMPAN_FILTER 0 | ||
| 2188 | +#define CONFIG_ZSCALE_FILTER 0 | ||
| 2189 | +#define CONFIG_ALLRGB_FILTER 0 | ||
| 2190 | +#define CONFIG_ALLYUV_FILTER 0 | ||
| 2191 | +#define CONFIG_CELLAUTO_FILTER 0 | ||
| 2192 | +#define CONFIG_COLOR_FILTER 0 | ||
| 2193 | +#define CONFIG_COLORSPECTRUM_FILTER 0 | ||
| 2194 | +#define CONFIG_COREIMAGESRC_FILTER 0 | ||
| 2195 | +#define CONFIG_FREI0R_SRC_FILTER 0 | ||
| 2196 | +#define CONFIG_GRADIENTS_FILTER 0 | ||
| 2197 | +#define CONFIG_HALDCLUTSRC_FILTER 0 | ||
| 2198 | +#define CONFIG_LIFE_FILTER 0 | ||
| 2199 | +#define CONFIG_MANDELBROT_FILTER 0 | ||
| 2200 | +#define CONFIG_MPTESTSRC_FILTER 0 | ||
| 2201 | +#define CONFIG_NULLSRC_FILTER 0 | ||
| 2202 | +#define CONFIG_OPENCLSRC_FILTER 0 | ||
| 2203 | +#define CONFIG_PAL75BARS_FILTER 0 | ||
| 2204 | +#define CONFIG_PAL100BARS_FILTER 0 | ||
| 2205 | +#define CONFIG_RGBTESTSRC_FILTER 0 | ||
| 2206 | +#define CONFIG_SIERPINSKI_FILTER 0 | ||
| 2207 | +#define CONFIG_SMPTEBARS_FILTER 0 | ||
| 2208 | +#define CONFIG_SMPTEHDBARS_FILTER 0 | ||
| 2209 | +#define CONFIG_TESTSRC_FILTER 0 | ||
| 2210 | +#define CONFIG_TESTSRC2_FILTER 0 | ||
| 2211 | +#define CONFIG_YUVTESTSRC_FILTER 0 | ||
| 2212 | +#define CONFIG_NULLSINK_FILTER 0 | ||
| 2213 | +#define CONFIG_ABITSCOPE_FILTER 0 | ||
| 2214 | +#define CONFIG_ADRAWGRAPH_FILTER 0 | ||
| 2215 | +#define CONFIG_AGRAPHMONITOR_FILTER 0 | ||
| 2216 | +#define CONFIG_AHISTOGRAM_FILTER 0 | ||
| 2217 | +#define CONFIG_APHASEMETER_FILTER 0 | ||
| 2218 | +#define CONFIG_AVECTORSCOPE_FILTER 0 | ||
| 2219 | +#define CONFIG_CONCAT_FILTER 0 | ||
| 2220 | +#define CONFIG_SHOWCQT_FILTER 0 | ||
| 2221 | +#define CONFIG_SHOWFREQS_FILTER 0 | ||
| 2222 | +#define CONFIG_SHOWSPATIAL_FILTER 0 | ||
| 2223 | +#define CONFIG_SHOWSPECTRUM_FILTER 0 | ||
| 2224 | +#define CONFIG_SHOWSPECTRUMPIC_FILTER 0 | ||
| 2225 | +#define CONFIG_SHOWVOLUME_FILTER 0 | ||
| 2226 | +#define CONFIG_SHOWWAVES_FILTER 0 | ||
| 2227 | +#define CONFIG_SHOWWAVESPIC_FILTER 0 | ||
| 2228 | +#define CONFIG_SPECTRUMSYNTH_FILTER 0 | ||
| 2229 | +#define CONFIG_AMOVIE_FILTER 0 | ||
| 2230 | +#define CONFIG_MOVIE_FILTER 0 | ||
| 2231 | +#define CONFIG_AFIFO_FILTER 0 | ||
| 2232 | +#define CONFIG_FIFO_FILTER 0 | ||
| 2233 | +#define CONFIG_AA_DEMUXER 0 | ||
| 2234 | +#define CONFIG_AAC_DEMUXER 1 | ||
| 2235 | +#define CONFIG_AAX_DEMUXER 0 | ||
| 2236 | +#define CONFIG_AC3_DEMUXER 0 | ||
| 2237 | +#define CONFIG_ACE_DEMUXER 0 | ||
| 2238 | +#define CONFIG_ACM_DEMUXER 0 | ||
| 2239 | +#define CONFIG_ACT_DEMUXER 0 | ||
| 2240 | +#define CONFIG_ADF_DEMUXER 0 | ||
| 2241 | +#define CONFIG_ADP_DEMUXER 0 | ||
| 2242 | +#define CONFIG_ADS_DEMUXER 0 | ||
| 2243 | +#define CONFIG_ADX_DEMUXER 0 | ||
| 2244 | +#define CONFIG_AEA_DEMUXER 0 | ||
| 2245 | +#define CONFIG_AFC_DEMUXER 0 | ||
| 2246 | +#define CONFIG_AIFF_DEMUXER 0 | ||
| 2247 | +#define CONFIG_AIX_DEMUXER 0 | ||
| 2248 | +#define CONFIG_ALP_DEMUXER 0 | ||
| 2249 | +#define CONFIG_AMR_DEMUXER 0 | ||
| 2250 | +#define CONFIG_AMRNB_DEMUXER 0 | ||
| 2251 | +#define CONFIG_AMRWB_DEMUXER 0 | ||
| 2252 | +#define CONFIG_ANM_DEMUXER 0 | ||
| 2253 | +#define CONFIG_APC_DEMUXER 0 | ||
| 2254 | +#define CONFIG_APE_DEMUXER 0 | ||
| 2255 | +#define CONFIG_APM_DEMUXER 0 | ||
| 2256 | +#define CONFIG_APNG_DEMUXER 0 | ||
| 2257 | +#define CONFIG_APTX_DEMUXER 0 | ||
| 2258 | +#define CONFIG_APTX_HD_DEMUXER 0 | ||
| 2259 | +#define CONFIG_AQTITLE_DEMUXER 0 | ||
| 2260 | +#define CONFIG_ARGO_ASF_DEMUXER 0 | ||
| 2261 | +#define CONFIG_ARGO_BRP_DEMUXER 0 | ||
| 2262 | +#define CONFIG_ARGO_CVG_DEMUXER 0 | ||
| 2263 | +#define CONFIG_ASF_DEMUXER 0 | ||
| 2264 | +#define CONFIG_ASF_O_DEMUXER 0 | ||
| 2265 | +#define CONFIG_ASS_DEMUXER 0 | ||
| 2266 | +#define CONFIG_AST_DEMUXER 0 | ||
| 2267 | +#define CONFIG_AU_DEMUXER 0 | ||
| 2268 | +#define CONFIG_AV1_DEMUXER 0 | ||
| 2269 | +#define CONFIG_AVI_DEMUXER 0 | ||
| 2270 | +#define CONFIG_AVISYNTH_DEMUXER 0 | ||
| 2271 | +#define CONFIG_AVR_DEMUXER 0 | ||
| 2272 | +#define CONFIG_AVS_DEMUXER 0 | ||
| 2273 | +#define CONFIG_AVS2_DEMUXER 0 | ||
| 2274 | +#define CONFIG_AVS3_DEMUXER 0 | ||
| 2275 | +#define CONFIG_BETHSOFTVID_DEMUXER 0 | ||
| 2276 | +#define CONFIG_BFI_DEMUXER 0 | ||
| 2277 | +#define CONFIG_BINTEXT_DEMUXER 0 | ||
| 2278 | +#define CONFIG_BINK_DEMUXER 0 | ||
| 2279 | +#define CONFIG_BINKA_DEMUXER 0 | ||
| 2280 | +#define CONFIG_BIT_DEMUXER 0 | ||
| 2281 | +#define CONFIG_BITPACKED_DEMUXER 0 | ||
| 2282 | +#define CONFIG_BMV_DEMUXER 0 | ||
| 2283 | +#define CONFIG_BFSTM_DEMUXER 0 | ||
| 2284 | +#define CONFIG_BRSTM_DEMUXER 0 | ||
| 2285 | +#define CONFIG_BOA_DEMUXER 0 | ||
| 2286 | +#define CONFIG_C93_DEMUXER 0 | ||
| 2287 | +#define CONFIG_CAF_DEMUXER 0 | ||
| 2288 | +#define CONFIG_CAVSVIDEO_DEMUXER 0 | ||
| 2289 | +#define CONFIG_CDG_DEMUXER 0 | ||
| 2290 | +#define CONFIG_CDXL_DEMUXER 0 | ||
| 2291 | +#define CONFIG_CINE_DEMUXER 0 | ||
| 2292 | +#define CONFIG_CODEC2_DEMUXER 0 | ||
| 2293 | +#define CONFIG_CODEC2RAW_DEMUXER 0 | ||
| 2294 | +#define CONFIG_CONCAT_DEMUXER 0 | ||
| 2295 | +#define CONFIG_DASH_DEMUXER 0 | ||
| 2296 | +#define CONFIG_DATA_DEMUXER 0 | ||
| 2297 | +#define CONFIG_DAUD_DEMUXER 0 | ||
| 2298 | +#define CONFIG_DCSTR_DEMUXER 0 | ||
| 2299 | +#define CONFIG_DERF_DEMUXER 0 | ||
| 2300 | +#define CONFIG_DFA_DEMUXER 0 | ||
| 2301 | +#define CONFIG_DHAV_DEMUXER 0 | ||
| 2302 | +#define CONFIG_DIRAC_DEMUXER 0 | ||
| 2303 | +#define CONFIG_DNXHD_DEMUXER 0 | ||
| 2304 | +#define CONFIG_DSF_DEMUXER 0 | ||
| 2305 | +#define CONFIG_DSICIN_DEMUXER 0 | ||
| 2306 | +#define CONFIG_DSS_DEMUXER 0 | ||
| 2307 | +#define CONFIG_DTS_DEMUXER 0 | ||
| 2308 | +#define CONFIG_DTSHD_DEMUXER 0 | ||
| 2309 | +#define CONFIG_DV_DEMUXER 0 | ||
| 2310 | +#define CONFIG_DVBSUB_DEMUXER 0 | ||
| 2311 | +#define CONFIG_DVBTXT_DEMUXER 0 | ||
| 2312 | +#define CONFIG_DXA_DEMUXER 0 | ||
| 2313 | +#define CONFIG_EA_DEMUXER 0 | ||
| 2314 | +#define CONFIG_EA_CDATA_DEMUXER 0 | ||
| 2315 | +#define CONFIG_EAC3_DEMUXER 0 | ||
| 2316 | +#define CONFIG_EPAF_DEMUXER 0 | ||
| 2317 | +#define CONFIG_FFMETADATA_DEMUXER 0 | ||
| 2318 | +#define CONFIG_FILMSTRIP_DEMUXER 0 | ||
| 2319 | +#define CONFIG_FITS_DEMUXER 0 | ||
| 2320 | +#define CONFIG_FLAC_DEMUXER 1 | ||
| 2321 | +#define CONFIG_FLIC_DEMUXER 0 | ||
| 2322 | +#define CONFIG_FLV_DEMUXER 0 | ||
| 2323 | +#define CONFIG_LIVE_FLV_DEMUXER 0 | ||
| 2324 | +#define CONFIG_FOURXM_DEMUXER 0 | ||
| 2325 | +#define CONFIG_FRM_DEMUXER 0 | ||
| 2326 | +#define CONFIG_FSB_DEMUXER 0 | ||
| 2327 | +#define CONFIG_FWSE_DEMUXER 0 | ||
| 2328 | +#define CONFIG_G722_DEMUXER 0 | ||
| 2329 | +#define CONFIG_G723_1_DEMUXER 0 | ||
| 2330 | +#define CONFIG_G726_DEMUXER 0 | ||
| 2331 | +#define CONFIG_G726LE_DEMUXER 0 | ||
| 2332 | +#define CONFIG_G729_DEMUXER 0 | ||
| 2333 | +#define CONFIG_GDV_DEMUXER 0 | ||
| 2334 | +#define CONFIG_GENH_DEMUXER 0 | ||
| 2335 | +#define CONFIG_GIF_DEMUXER 0 | ||
| 2336 | +#define CONFIG_GSM_DEMUXER 0 | ||
| 2337 | +#define CONFIG_GXF_DEMUXER 0 | ||
| 2338 | +#define CONFIG_H261_DEMUXER 0 | ||
| 2339 | +#define CONFIG_H263_DEMUXER 0 | ||
| 2340 | +#define CONFIG_H264_DEMUXER 0 | ||
| 2341 | +#define CONFIG_HCA_DEMUXER 0 | ||
| 2342 | +#define CONFIG_HCOM_DEMUXER 0 | ||
| 2343 | +#define CONFIG_HEVC_DEMUXER 0 | ||
| 2344 | +#define CONFIG_HLS_DEMUXER 0 | ||
| 2345 | +#define CONFIG_HNM_DEMUXER 0 | ||
| 2346 | +#define CONFIG_ICO_DEMUXER 0 | ||
| 2347 | +#define CONFIG_IDCIN_DEMUXER 0 | ||
| 2348 | +#define CONFIG_IDF_DEMUXER 0 | ||
| 2349 | +#define CONFIG_IFF_DEMUXER 0 | ||
| 2350 | +#define CONFIG_IFV_DEMUXER 0 | ||
| 2351 | +#define CONFIG_ILBC_DEMUXER 0 | ||
| 2352 | +#define CONFIG_IMAGE2_DEMUXER 0 | ||
| 2353 | +#define CONFIG_IMAGE2PIPE_DEMUXER 0 | ||
| 2354 | +#define CONFIG_IMAGE2_ALIAS_PIX_DEMUXER 0 | ||
| 2355 | +#define CONFIG_IMAGE2_BRENDER_PIX_DEMUXER 0 | ||
| 2356 | +#define CONFIG_IMF_DEMUXER 0 | ||
| 2357 | +#define CONFIG_INGENIENT_DEMUXER 0 | ||
| 2358 | +#define CONFIG_IPMOVIE_DEMUXER 0 | ||
| 2359 | +#define CONFIG_IPU_DEMUXER 0 | ||
| 2360 | +#define CONFIG_IRCAM_DEMUXER 0 | ||
| 2361 | +#define CONFIG_ISS_DEMUXER 0 | ||
| 2362 | +#define CONFIG_IV8_DEMUXER 0 | ||
| 2363 | +#define CONFIG_IVF_DEMUXER 0 | ||
| 2364 | +#define CONFIG_IVR_DEMUXER 0 | ||
| 2365 | +#define CONFIG_JACOSUB_DEMUXER 0 | ||
| 2366 | +#define CONFIG_JV_DEMUXER 0 | ||
| 2367 | +#define CONFIG_KUX_DEMUXER 0 | ||
| 2368 | +#define CONFIG_KVAG_DEMUXER 0 | ||
| 2369 | +#define CONFIG_LMLM4_DEMUXER 0 | ||
| 2370 | +#define CONFIG_LOAS_DEMUXER 0 | ||
| 2371 | +#define CONFIG_LUODAT_DEMUXER 0 | ||
| 2372 | +#define CONFIG_LRC_DEMUXER 0 | ||
| 2373 | +#define CONFIG_LVF_DEMUXER 0 | ||
| 2374 | +#define CONFIG_LXF_DEMUXER 0 | ||
| 2375 | +#define CONFIG_M4V_DEMUXER 0 | ||
| 2376 | +#define CONFIG_MCA_DEMUXER 0 | ||
| 2377 | +#define CONFIG_MCC_DEMUXER 0 | ||
| 2378 | +#define CONFIG_MATROSKA_DEMUXER 1 | ||
| 2379 | +#define CONFIG_MGSTS_DEMUXER 0 | ||
| 2380 | +#define CONFIG_MICRODVD_DEMUXER 0 | ||
| 2381 | +#define CONFIG_MJPEG_DEMUXER 0 | ||
| 2382 | +#define CONFIG_MJPEG_2000_DEMUXER 0 | ||
| 2383 | +#define CONFIG_MLP_DEMUXER 0 | ||
| 2384 | +#define CONFIG_MLV_DEMUXER 0 | ||
| 2385 | +#define CONFIG_MM_DEMUXER 0 | ||
| 2386 | +#define CONFIG_MMF_DEMUXER 0 | ||
| 2387 | +#define CONFIG_MODS_DEMUXER 0 | ||
| 2388 | +#define CONFIG_MOFLEX_DEMUXER 0 | ||
| 2389 | +#define CONFIG_MOV_DEMUXER 1 | ||
| 2390 | +#define CONFIG_MP3_DEMUXER 1 | ||
| 2391 | +#define CONFIG_MPC_DEMUXER 0 | ||
| 2392 | +#define CONFIG_MPC8_DEMUXER 0 | ||
| 2393 | +#define CONFIG_MPEGPS_DEMUXER 0 | ||
| 2394 | +#define CONFIG_MPEGTS_DEMUXER 0 | ||
| 2395 | +#define CONFIG_MPEGTSRAW_DEMUXER 0 | ||
| 2396 | +#define CONFIG_MPEGVIDEO_DEMUXER 0 | ||
| 2397 | +#define CONFIG_MPJPEG_DEMUXER 0 | ||
| 2398 | +#define CONFIG_MPL2_DEMUXER 0 | ||
| 2399 | +#define CONFIG_MPSUB_DEMUXER 0 | ||
| 2400 | +#define CONFIG_MSF_DEMUXER 0 | ||
| 2401 | +#define CONFIG_MSNWC_TCP_DEMUXER 0 | ||
| 2402 | +#define CONFIG_MSP_DEMUXER 0 | ||
| 2403 | +#define CONFIG_MTAF_DEMUXER 0 | ||
| 2404 | +#define CONFIG_MTV_DEMUXER 0 | ||
| 2405 | +#define CONFIG_MUSX_DEMUXER 0 | ||
| 2406 | +#define CONFIG_MV_DEMUXER 0 | ||
| 2407 | +#define CONFIG_MVI_DEMUXER 0 | ||
| 2408 | +#define CONFIG_MXF_DEMUXER 0 | ||
| 2409 | +#define CONFIG_MXG_DEMUXER 0 | ||
| 2410 | +#define CONFIG_NC_DEMUXER 0 | ||
| 2411 | +#define CONFIG_NISTSPHERE_DEMUXER 0 | ||
| 2412 | +#define CONFIG_NSP_DEMUXER 0 | ||
| 2413 | +#define CONFIG_NSV_DEMUXER 0 | ||
| 2414 | +#define CONFIG_NUT_DEMUXER 0 | ||
| 2415 | +#define CONFIG_NUV_DEMUXER 0 | ||
| 2416 | +#define CONFIG_OBU_DEMUXER 0 | ||
| 2417 | +#define CONFIG_OGG_DEMUXER 1 | ||
| 2418 | +#define CONFIG_OMA_DEMUXER 0 | ||
| 2419 | +#define CONFIG_PAF_DEMUXER 0 | ||
| 2420 | +#define CONFIG_PCM_ALAW_DEMUXER 0 | ||
| 2421 | +#define CONFIG_PCM_MULAW_DEMUXER 0 | ||
| 2422 | +#define CONFIG_PCM_VIDC_DEMUXER 0 | ||
| 2423 | +#define CONFIG_PCM_F64BE_DEMUXER 0 | ||
| 2424 | +#define CONFIG_PCM_F64LE_DEMUXER 0 | ||
| 2425 | +#define CONFIG_PCM_F32BE_DEMUXER 0 | ||
| 2426 | +#define CONFIG_PCM_F32LE_DEMUXER 0 | ||
| 2427 | +#define CONFIG_PCM_S32BE_DEMUXER 0 | ||
| 2428 | +#define CONFIG_PCM_S32LE_DEMUXER 0 | ||
| 2429 | +#define CONFIG_PCM_S24BE_DEMUXER 0 | ||
| 2430 | +#define CONFIG_PCM_S24LE_DEMUXER 0 | ||
| 2431 | +#define CONFIG_PCM_S16BE_DEMUXER 0 | ||
| 2432 | +#define CONFIG_PCM_S16LE_DEMUXER 0 | ||
| 2433 | +#define CONFIG_PCM_S8_DEMUXER 0 | ||
| 2434 | +#define CONFIG_PCM_U32BE_DEMUXER 0 | ||
| 2435 | +#define CONFIG_PCM_U32LE_DEMUXER 0 | ||
| 2436 | +#define CONFIG_PCM_U24BE_DEMUXER 0 | ||
| 2437 | +#define CONFIG_PCM_U24LE_DEMUXER 0 | ||
| 2438 | +#define CONFIG_PCM_U16BE_DEMUXER 0 | ||
| 2439 | +#define CONFIG_PCM_U16LE_DEMUXER 0 | ||
| 2440 | +#define CONFIG_PCM_U8_DEMUXER 0 | ||
| 2441 | +#define CONFIG_PJS_DEMUXER 0 | ||
| 2442 | +#define CONFIG_PMP_DEMUXER 0 | ||
| 2443 | +#define CONFIG_PP_BNK_DEMUXER 0 | ||
| 2444 | +#define CONFIG_PVA_DEMUXER 0 | ||
| 2445 | +#define CONFIG_PVF_DEMUXER 0 | ||
| 2446 | +#define CONFIG_QCP_DEMUXER 0 | ||
| 2447 | +#define CONFIG_R3D_DEMUXER 0 | ||
| 2448 | +#define CONFIG_RAWVIDEO_DEMUXER 0 | ||
| 2449 | +#define CONFIG_REALTEXT_DEMUXER 0 | ||
| 2450 | +#define CONFIG_REDSPARK_DEMUXER 0 | ||
| 2451 | +#define CONFIG_RL2_DEMUXER 0 | ||
| 2452 | +#define CONFIG_RM_DEMUXER 0 | ||
| 2453 | +#define CONFIG_ROQ_DEMUXER 0 | ||
| 2454 | +#define CONFIG_RPL_DEMUXER 0 | ||
| 2455 | +#define CONFIG_RSD_DEMUXER 0 | ||
| 2456 | +#define CONFIG_RSO_DEMUXER 0 | ||
| 2457 | +#define CONFIG_RTP_DEMUXER 0 | ||
| 2458 | +#define CONFIG_RTSP_DEMUXER 0 | ||
| 2459 | +#define CONFIG_S337M_DEMUXER 0 | ||
| 2460 | +#define CONFIG_SAMI_DEMUXER 0 | ||
| 2461 | +#define CONFIG_SAP_DEMUXER 0 | ||
| 2462 | +#define CONFIG_SBC_DEMUXER 0 | ||
| 2463 | +#define CONFIG_SBG_DEMUXER 0 | ||
| 2464 | +#define CONFIG_SCC_DEMUXER 0 | ||
| 2465 | +#define CONFIG_SCD_DEMUXER 0 | ||
| 2466 | +#define CONFIG_SDP_DEMUXER 0 | ||
| 2467 | +#define CONFIG_SDR2_DEMUXER 0 | ||
| 2468 | +#define CONFIG_SDS_DEMUXER 0 | ||
| 2469 | +#define CONFIG_SDX_DEMUXER 0 | ||
| 2470 | +#define CONFIG_SEGAFILM_DEMUXER 0 | ||
| 2471 | +#define CONFIG_SER_DEMUXER 0 | ||
| 2472 | +#define CONFIG_SGA_DEMUXER 0 | ||
| 2473 | +#define CONFIG_SHORTEN_DEMUXER 0 | ||
| 2474 | +#define CONFIG_SIFF_DEMUXER 0 | ||
| 2475 | +#define CONFIG_SIMBIOSIS_IMX_DEMUXER 0 | ||
| 2476 | +#define CONFIG_SLN_DEMUXER 0 | ||
| 2477 | +#define CONFIG_SMACKER_DEMUXER 0 | ||
| 2478 | +#define CONFIG_SMJPEG_DEMUXER 0 | ||
| 2479 | +#define CONFIG_SMUSH_DEMUXER 0 | ||
| 2480 | +#define CONFIG_SOL_DEMUXER 0 | ||
| 2481 | +#define CONFIG_SOX_DEMUXER 0 | ||
| 2482 | +#define CONFIG_SPDIF_DEMUXER 0 | ||
| 2483 | +#define CONFIG_SRT_DEMUXER 0 | ||
| 2484 | +#define CONFIG_STR_DEMUXER 0 | ||
| 2485 | +#define CONFIG_STL_DEMUXER 0 | ||
| 2486 | +#define CONFIG_SUBVIEWER1_DEMUXER 0 | ||
| 2487 | +#define CONFIG_SUBVIEWER_DEMUXER 0 | ||
| 2488 | +#define CONFIG_SUP_DEMUXER 0 | ||
| 2489 | +#define CONFIG_SVAG_DEMUXER 0 | ||
| 2490 | +#define CONFIG_SVS_DEMUXER 0 | ||
| 2491 | +#define CONFIG_SWF_DEMUXER 0 | ||
| 2492 | +#define CONFIG_TAK_DEMUXER 0 | ||
| 2493 | +#define CONFIG_TEDCAPTIONS_DEMUXER 0 | ||
| 2494 | +#define CONFIG_THP_DEMUXER 0 | ||
| 2495 | +#define CONFIG_THREEDOSTR_DEMUXER 0 | ||
| 2496 | +#define CONFIG_TIERTEXSEQ_DEMUXER 0 | ||
| 2497 | +#define CONFIG_TMV_DEMUXER 0 | ||
| 2498 | +#define CONFIG_TRUEHD_DEMUXER 0 | ||
| 2499 | +#define CONFIG_TTA_DEMUXER 0 | ||
| 2500 | +#define CONFIG_TXD_DEMUXER 0 | ||
| 2501 | +#define CONFIG_TTY_DEMUXER 0 | ||
| 2502 | +#define CONFIG_TY_DEMUXER 0 | ||
| 2503 | +#define CONFIG_V210_DEMUXER 0 | ||
| 2504 | +#define CONFIG_V210X_DEMUXER 0 | ||
| 2505 | +#define CONFIG_VAG_DEMUXER 0 | ||
| 2506 | +#define CONFIG_VC1_DEMUXER 0 | ||
| 2507 | +#define CONFIG_VC1T_DEMUXER 0 | ||
| 2508 | +#define CONFIG_VIVIDAS_DEMUXER 0 | ||
| 2509 | +#define CONFIG_VIVO_DEMUXER 0 | ||
| 2510 | +#define CONFIG_VMD_DEMUXER 0 | ||
| 2511 | +#define CONFIG_VOBSUB_DEMUXER 0 | ||
| 2512 | +#define CONFIG_VOC_DEMUXER 0 | ||
| 2513 | +#define CONFIG_VPK_DEMUXER 0 | ||
| 2514 | +#define CONFIG_VPLAYER_DEMUXER 0 | ||
| 2515 | +#define CONFIG_VQF_DEMUXER 0 | ||
| 2516 | +#define CONFIG_W64_DEMUXER 0 | ||
| 2517 | +#define CONFIG_WAV_DEMUXER 1 | ||
| 2518 | +#define CONFIG_WC3_DEMUXER 0 | ||
| 2519 | +#define CONFIG_WEBM_DASH_MANIFEST_DEMUXER 0 | ||
| 2520 | +#define CONFIG_WEBVTT_DEMUXER 0 | ||
| 2521 | +#define CONFIG_WSAUD_DEMUXER 0 | ||
| 2522 | +#define CONFIG_WSD_DEMUXER 0 | ||
| 2523 | +#define CONFIG_WSVQA_DEMUXER 0 | ||
| 2524 | +#define CONFIG_WTV_DEMUXER 0 | ||
| 2525 | +#define CONFIG_WVE_DEMUXER 0 | ||
| 2526 | +#define CONFIG_WV_DEMUXER 0 | ||
| 2527 | +#define CONFIG_XA_DEMUXER 0 | ||
| 2528 | +#define CONFIG_XBIN_DEMUXER 0 | ||
| 2529 | +#define CONFIG_XMV_DEMUXER 0 | ||
| 2530 | +#define CONFIG_XVAG_DEMUXER 0 | ||
| 2531 | +#define CONFIG_XWMA_DEMUXER 0 | ||
| 2532 | +#define CONFIG_YOP_DEMUXER 0 | ||
| 2533 | +#define CONFIG_YUV4MPEGPIPE_DEMUXER 0 | ||
| 2534 | +#define CONFIG_IMAGE_BMP_PIPE_DEMUXER 0 | ||
| 2535 | +#define CONFIG_IMAGE_CRI_PIPE_DEMUXER 0 | ||
| 2536 | +#define CONFIG_IMAGE_DDS_PIPE_DEMUXER 0 | ||
| 2537 | +#define CONFIG_IMAGE_DPX_PIPE_DEMUXER 0 | ||
| 2538 | +#define CONFIG_IMAGE_EXR_PIPE_DEMUXER 0 | ||
| 2539 | +#define CONFIG_IMAGE_GEM_PIPE_DEMUXER 0 | ||
| 2540 | +#define CONFIG_IMAGE_GIF_PIPE_DEMUXER 0 | ||
| 2541 | +#define CONFIG_IMAGE_J2K_PIPE_DEMUXER 0 | ||
| 2542 | +#define CONFIG_IMAGE_JPEG_PIPE_DEMUXER 0 | ||
| 2543 | +#define CONFIG_IMAGE_JPEGLS_PIPE_DEMUXER 0 | ||
| 2544 | +#define CONFIG_IMAGE_PAM_PIPE_DEMUXER 0 | ||
| 2545 | +#define CONFIG_IMAGE_PBM_PIPE_DEMUXER 0 | ||
| 2546 | +#define CONFIG_IMAGE_PCX_PIPE_DEMUXER 0 | ||
| 2547 | +#define CONFIG_IMAGE_PGMYUV_PIPE_DEMUXER 0 | ||
| 2548 | +#define CONFIG_IMAGE_PGM_PIPE_DEMUXER 0 | ||
| 2549 | +#define CONFIG_IMAGE_PGX_PIPE_DEMUXER 0 | ||
| 2550 | +#define CONFIG_IMAGE_PHOTOCD_PIPE_DEMUXER 0 | ||
| 2551 | +#define CONFIG_IMAGE_PICTOR_PIPE_DEMUXER 0 | ||
| 2552 | +#define CONFIG_IMAGE_PNG_PIPE_DEMUXER 0 | ||
| 2553 | +#define CONFIG_IMAGE_PPM_PIPE_DEMUXER 0 | ||
| 2554 | +#define CONFIG_IMAGE_PSD_PIPE_DEMUXER 0 | ||
| 2555 | +#define CONFIG_IMAGE_QDRAW_PIPE_DEMUXER 0 | ||
| 2556 | +#define CONFIG_IMAGE_SGI_PIPE_DEMUXER 0 | ||
| 2557 | +#define CONFIG_IMAGE_SVG_PIPE_DEMUXER 0 | ||
| 2558 | +#define CONFIG_IMAGE_SUNRAST_PIPE_DEMUXER 0 | ||
| 2559 | +#define CONFIG_IMAGE_TIFF_PIPE_DEMUXER 0 | ||
| 2560 | +#define CONFIG_IMAGE_WEBP_PIPE_DEMUXER 0 | ||
| 2561 | +#define CONFIG_IMAGE_XBM_PIPE_DEMUXER 0 | ||
| 2562 | +#define CONFIG_IMAGE_XPM_PIPE_DEMUXER 0 | ||
| 2563 | +#define CONFIG_IMAGE_XWD_PIPE_DEMUXER 0 | ||
| 2564 | +#define CONFIG_LIBGME_DEMUXER 0 | ||
| 2565 | +#define CONFIG_LIBMODPLUG_DEMUXER 0 | ||
| 2566 | +#define CONFIG_LIBOPENMPT_DEMUXER 0 | ||
| 2567 | +#define CONFIG_VAPOURSYNTH_DEMUXER 0 | ||
| 2568 | +#define CONFIG_A64_MUXER 0 | ||
| 2569 | +#define CONFIG_AC3_MUXER 0 | ||
| 2570 | +#define CONFIG_ADTS_MUXER 0 | ||
| 2571 | +#define CONFIG_ADX_MUXER 0 | ||
| 2572 | +#define CONFIG_AIFF_MUXER 0 | ||
| 2573 | +#define CONFIG_ALP_MUXER 0 | ||
| 2574 | +#define CONFIG_AMR_MUXER 0 | ||
| 2575 | +#define CONFIG_AMV_MUXER 0 | ||
| 2576 | +#define CONFIG_APM_MUXER 0 | ||
| 2577 | +#define CONFIG_APNG_MUXER 0 | ||
| 2578 | +#define CONFIG_APTX_MUXER 0 | ||
| 2579 | +#define CONFIG_APTX_HD_MUXER 0 | ||
| 2580 | +#define CONFIG_ARGO_ASF_MUXER 0 | ||
| 2581 | +#define CONFIG_ARGO_CVG_MUXER 0 | ||
| 2582 | +#define CONFIG_ASF_MUXER 0 | ||
| 2583 | +#define CONFIG_ASS_MUXER 0 | ||
| 2584 | +#define CONFIG_AST_MUXER 0 | ||
| 2585 | +#define CONFIG_ASF_STREAM_MUXER 0 | ||
| 2586 | +#define CONFIG_AU_MUXER 0 | ||
| 2587 | +#define CONFIG_AVI_MUXER 0 | ||
| 2588 | +#define CONFIG_AVM2_MUXER 0 | ||
| 2589 | +#define CONFIG_AVS2_MUXER 0 | ||
| 2590 | +#define CONFIG_AVS3_MUXER 0 | ||
| 2591 | +#define CONFIG_BIT_MUXER 0 | ||
| 2592 | +#define CONFIG_CAF_MUXER 0 | ||
| 2593 | +#define CONFIG_CAVSVIDEO_MUXER 0 | ||
| 2594 | +#define CONFIG_CODEC2_MUXER 0 | ||
| 2595 | +#define CONFIG_CODEC2RAW_MUXER 0 | ||
| 2596 | +#define CONFIG_CRC_MUXER 0 | ||
| 2597 | +#define CONFIG_DASH_MUXER 0 | ||
| 2598 | +#define CONFIG_DATA_MUXER 0 | ||
| 2599 | +#define CONFIG_DAUD_MUXER 0 | ||
| 2600 | +#define CONFIG_DIRAC_MUXER 0 | ||
| 2601 | +#define CONFIG_DNXHD_MUXER 0 | ||
| 2602 | +#define CONFIG_DTS_MUXER 0 | ||
| 2603 | +#define CONFIG_DV_MUXER 0 | ||
| 2604 | +#define CONFIG_EAC3_MUXER 0 | ||
| 2605 | +#define CONFIG_F4V_MUXER 0 | ||
| 2606 | +#define CONFIG_FFMETADATA_MUXER 0 | ||
| 2607 | +#define CONFIG_FIFO_MUXER 0 | ||
| 2608 | +#define CONFIG_FIFO_TEST_MUXER 0 | ||
| 2609 | +#define CONFIG_FILMSTRIP_MUXER 0 | ||
| 2610 | +#define CONFIG_FITS_MUXER 0 | ||
| 2611 | +#define CONFIG_FLAC_MUXER 0 | ||
| 2612 | +#define CONFIG_FLV_MUXER 0 | ||
| 2613 | +#define CONFIG_FRAMECRC_MUXER 0 | ||
| 2614 | +#define CONFIG_FRAMEHASH_MUXER 0 | ||
| 2615 | +#define CONFIG_FRAMEMD5_MUXER 0 | ||
| 2616 | +#define CONFIG_G722_MUXER 0 | ||
| 2617 | +#define CONFIG_G723_1_MUXER 0 | ||
| 2618 | +#define CONFIG_G726_MUXER 0 | ||
| 2619 | +#define CONFIG_G726LE_MUXER 0 | ||
| 2620 | +#define CONFIG_GIF_MUXER 0 | ||
| 2621 | +#define CONFIG_GSM_MUXER 0 | ||
| 2622 | +#define CONFIG_GXF_MUXER 0 | ||
| 2623 | +#define CONFIG_H261_MUXER 0 | ||
| 2624 | +#define CONFIG_H263_MUXER 0 | ||
| 2625 | +#define CONFIG_H264_MUXER 0 | ||
| 2626 | +#define CONFIG_HASH_MUXER 0 | ||
| 2627 | +#define CONFIG_HDS_MUXER 0 | ||
| 2628 | +#define CONFIG_HEVC_MUXER 0 | ||
| 2629 | +#define CONFIG_HLS_MUXER 0 | ||
| 2630 | +#define CONFIG_ICO_MUXER 0 | ||
| 2631 | +#define CONFIG_ILBC_MUXER 0 | ||
| 2632 | +#define CONFIG_IMAGE2_MUXER 0 | ||
| 2633 | +#define CONFIG_IMAGE2PIPE_MUXER 0 | ||
| 2634 | +#define CONFIG_IPOD_MUXER 0 | ||
| 2635 | +#define CONFIG_IRCAM_MUXER 0 | ||
| 2636 | +#define CONFIG_ISMV_MUXER 0 | ||
| 2637 | +#define CONFIG_IVF_MUXER 0 | ||
| 2638 | +#define CONFIG_JACOSUB_MUXER 0 | ||
| 2639 | +#define CONFIG_KVAG_MUXER 0 | ||
| 2640 | +#define CONFIG_LATM_MUXER 0 | ||
| 2641 | +#define CONFIG_LRC_MUXER 0 | ||
| 2642 | +#define CONFIG_M4V_MUXER 0 | ||
| 2643 | +#define CONFIG_MD5_MUXER 0 | ||
| 2644 | +#define CONFIG_MATROSKA_MUXER 0 | ||
| 2645 | +#define CONFIG_MATROSKA_AUDIO_MUXER 0 | ||
| 2646 | +#define CONFIG_MICRODVD_MUXER 0 | ||
| 2647 | +#define CONFIG_MJPEG_MUXER 0 | ||
| 2648 | +#define CONFIG_MLP_MUXER 0 | ||
| 2649 | +#define CONFIG_MMF_MUXER 0 | ||
| 2650 | +#define CONFIG_MOV_MUXER 0 | ||
| 2651 | +#define CONFIG_MP2_MUXER 0 | ||
| 2652 | +#define CONFIG_MP3_MUXER 0 | ||
| 2653 | +#define CONFIG_MP4_MUXER 0 | ||
| 2654 | +#define CONFIG_MPEG1SYSTEM_MUXER 0 | ||
| 2655 | +#define CONFIG_MPEG1VCD_MUXER 0 | ||
| 2656 | +#define CONFIG_MPEG1VIDEO_MUXER 0 | ||
| 2657 | +#define CONFIG_MPEG2DVD_MUXER 0 | ||
| 2658 | +#define CONFIG_MPEG2SVCD_MUXER 0 | ||
| 2659 | +#define CONFIG_MPEG2VIDEO_MUXER 0 | ||
| 2660 | +#define CONFIG_MPEG2VOB_MUXER 0 | ||
| 2661 | +#define CONFIG_MPEGTS_MUXER 0 | ||
| 2662 | +#define CONFIG_MPJPEG_MUXER 0 | ||
| 2663 | +#define CONFIG_MXF_MUXER 0 | ||
| 2664 | +#define CONFIG_MXF_D10_MUXER 0 | ||
| 2665 | +#define CONFIG_MXF_OPATOM_MUXER 0 | ||
| 2666 | +#define CONFIG_NULL_MUXER 0 | ||
| 2667 | +#define CONFIG_NUT_MUXER 0 | ||
| 2668 | +#define CONFIG_OBU_MUXER 0 | ||
| 2669 | +#define CONFIG_OGA_MUXER 0 | ||
| 2670 | +#define CONFIG_OGG_MUXER 0 | ||
| 2671 | +#define CONFIG_OGV_MUXER 0 | ||
| 2672 | +#define CONFIG_OMA_MUXER 0 | ||
| 2673 | +#define CONFIG_OPUS_MUXER 0 | ||
| 2674 | +#define CONFIG_PCM_ALAW_MUXER 0 | ||
| 2675 | +#define CONFIG_PCM_MULAW_MUXER 0 | ||
| 2676 | +#define CONFIG_PCM_VIDC_MUXER 0 | ||
| 2677 | +#define CONFIG_PCM_F64BE_MUXER 0 | ||
| 2678 | +#define CONFIG_PCM_F64LE_MUXER 0 | ||
| 2679 | +#define CONFIG_PCM_F32BE_MUXER 0 | ||
| 2680 | +#define CONFIG_PCM_F32LE_MUXER 0 | ||
| 2681 | +#define CONFIG_PCM_S32BE_MUXER 0 | ||
| 2682 | +#define CONFIG_PCM_S32LE_MUXER 0 | ||
| 2683 | +#define CONFIG_PCM_S24BE_MUXER 0 | ||
| 2684 | +#define CONFIG_PCM_S24LE_MUXER 0 | ||
| 2685 | +#define CONFIG_PCM_S16BE_MUXER 0 | ||
| 2686 | +#define CONFIG_PCM_S16LE_MUXER 0 | ||
| 2687 | +#define CONFIG_PCM_S8_MUXER 0 | ||
| 2688 | +#define CONFIG_PCM_U32BE_MUXER 0 | ||
| 2689 | +#define CONFIG_PCM_U32LE_MUXER 0 | ||
| 2690 | +#define CONFIG_PCM_U24BE_MUXER 0 | ||
| 2691 | +#define CONFIG_PCM_U24LE_MUXER 0 | ||
| 2692 | +#define CONFIG_PCM_U16BE_MUXER 0 | ||
| 2693 | +#define CONFIG_PCM_U16LE_MUXER 0 | ||
| 2694 | +#define CONFIG_PCM_U8_MUXER 0 | ||
| 2695 | +#define CONFIG_PSP_MUXER 0 | ||
| 2696 | +#define CONFIG_RAWVIDEO_MUXER 0 | ||
| 2697 | +#define CONFIG_RM_MUXER 0 | ||
| 2698 | +#define CONFIG_ROQ_MUXER 0 | ||
| 2699 | +#define CONFIG_RSO_MUXER 0 | ||
| 2700 | +#define CONFIG_RTP_MUXER 0 | ||
| 2701 | +#define CONFIG_RTP_MPEGTS_MUXER 0 | ||
| 2702 | +#define CONFIG_RTSP_MUXER 0 | ||
| 2703 | +#define CONFIG_SAP_MUXER 0 | ||
| 2704 | +#define CONFIG_SBC_MUXER 0 | ||
| 2705 | +#define CONFIG_SCC_MUXER 0 | ||
| 2706 | +#define CONFIG_SEGAFILM_MUXER 0 | ||
| 2707 | +#define CONFIG_SEGMENT_MUXER 0 | ||
| 2708 | +#define CONFIG_STREAM_SEGMENT_MUXER 0 | ||
| 2709 | +#define CONFIG_SMJPEG_MUXER 0 | ||
| 2710 | +#define CONFIG_SMOOTHSTREAMING_MUXER 0 | ||
| 2711 | +#define CONFIG_SOX_MUXER 0 | ||
| 2712 | +#define CONFIG_SPX_MUXER 0 | ||
| 2713 | +#define CONFIG_SPDIF_MUXER 0 | ||
| 2714 | +#define CONFIG_SRT_MUXER 0 | ||
| 2715 | +#define CONFIG_STREAMHASH_MUXER 0 | ||
| 2716 | +#define CONFIG_SUP_MUXER 0 | ||
| 2717 | +#define CONFIG_SWF_MUXER 0 | ||
| 2718 | +#define CONFIG_TEE_MUXER 0 | ||
| 2719 | +#define CONFIG_TG2_MUXER 0 | ||
| 2720 | +#define CONFIG_TGP_MUXER 0 | ||
| 2721 | +#define CONFIG_MKVTIMESTAMP_V2_MUXER 0 | ||
| 2722 | +#define CONFIG_TRUEHD_MUXER 0 | ||
| 2723 | +#define CONFIG_TTA_MUXER 0 | ||
| 2724 | +#define CONFIG_TTML_MUXER 0 | ||
| 2725 | +#define CONFIG_UNCODEDFRAMECRC_MUXER 0 | ||
| 2726 | +#define CONFIG_VC1_MUXER 0 | ||
| 2727 | +#define CONFIG_VC1T_MUXER 0 | ||
| 2728 | +#define CONFIG_VOC_MUXER 0 | ||
| 2729 | +#define CONFIG_W64_MUXER 0 | ||
| 2730 | +#define CONFIG_WAV_MUXER 0 | ||
| 2731 | +#define CONFIG_WEBM_MUXER 0 | ||
| 2732 | +#define CONFIG_WEBM_DASH_MANIFEST_MUXER 0 | ||
| 2733 | +#define CONFIG_WEBM_CHUNK_MUXER 0 | ||
| 2734 | +#define CONFIG_WEBP_MUXER 0 | ||
| 2735 | +#define CONFIG_WEBVTT_MUXER 0 | ||
| 2736 | +#define CONFIG_WSAUD_MUXER 0 | ||
| 2737 | +#define CONFIG_WTV_MUXER 0 | ||
| 2738 | +#define CONFIG_WV_MUXER 0 | ||
| 2739 | +#define CONFIG_YUV4MPEGPIPE_MUXER 0 | ||
| 2740 | +#define CONFIG_CHROMAPRINT_MUXER 0 | ||
| 2741 | +#define CONFIG_ASYNC_PROTOCOL 0 | ||
| 2742 | +#define CONFIG_BLURAY_PROTOCOL 0 | ||
| 2743 | +#define CONFIG_CACHE_PROTOCOL 0 | ||
| 2744 | +#define CONFIG_CONCAT_PROTOCOL 0 | ||
| 2745 | +#define CONFIG_CONCATF_PROTOCOL 0 | ||
| 2746 | +#define CONFIG_CRYPTO_PROTOCOL 0 | ||
| 2747 | +#define CONFIG_DATA_PROTOCOL 0 | ||
| 2748 | +#define CONFIG_FFRTMPCRYPT_PROTOCOL 0 | ||
| 2749 | +#define CONFIG_FFRTMPHTTP_PROTOCOL 0 | ||
| 2750 | +#define CONFIG_FILE_PROTOCOL 0 | ||
| 2751 | +#define CONFIG_FTP_PROTOCOL 0 | ||
| 2752 | +#define CONFIG_GOPHER_PROTOCOL 0 | ||
| 2753 | +#define CONFIG_GOPHERS_PROTOCOL 0 | ||
| 2754 | +#define CONFIG_HLS_PROTOCOL 0 | ||
| 2755 | +#define CONFIG_HTTP_PROTOCOL 0 | ||
| 2756 | +#define CONFIG_HTTPPROXY_PROTOCOL 0 | ||
| 2757 | +#define CONFIG_HTTPS_PROTOCOL 0 | ||
| 2758 | +#define CONFIG_ICECAST_PROTOCOL 0 | ||
| 2759 | +#define CONFIG_MMSH_PROTOCOL 0 | ||
| 2760 | +#define CONFIG_MMST_PROTOCOL 0 | ||
| 2761 | +#define CONFIG_MD5_PROTOCOL 0 | ||
| 2762 | +#define CONFIG_PIPE_PROTOCOL 0 | ||
| 2763 | +#define CONFIG_PROMPEG_PROTOCOL 0 | ||
| 2764 | +#define CONFIG_RTMP_PROTOCOL 0 | ||
| 2765 | +#define CONFIG_RTMPE_PROTOCOL 0 | ||
| 2766 | +#define CONFIG_RTMPS_PROTOCOL 0 | ||
| 2767 | +#define CONFIG_RTMPT_PROTOCOL 0 | ||
| 2768 | +#define CONFIG_RTMPTE_PROTOCOL 0 | ||
| 2769 | +#define CONFIG_RTMPTS_PROTOCOL 0 | ||
| 2770 | +#define CONFIG_RTP_PROTOCOL 0 | ||
| 2771 | +#define CONFIG_SCTP_PROTOCOL 0 | ||
| 2772 | +#define CONFIG_SRTP_PROTOCOL 0 | ||
| 2773 | +#define CONFIG_SUBFILE_PROTOCOL 0 | ||
| 2774 | +#define CONFIG_TEE_PROTOCOL 0 | ||
| 2775 | +#define CONFIG_TCP_PROTOCOL 0 | ||
| 2776 | +#define CONFIG_TLS_PROTOCOL 0 | ||
| 2777 | +#define CONFIG_UDP_PROTOCOL 0 | ||
| 2778 | +#define CONFIG_UDPLITE_PROTOCOL 0 | ||
| 2779 | +#define CONFIG_UNIX_PROTOCOL 0 | ||
| 2780 | +#define CONFIG_LIBAMQP_PROTOCOL 0 | ||
| 2781 | +#define CONFIG_LIBRIST_PROTOCOL 0 | ||
| 2782 | +#define CONFIG_LIBRTMP_PROTOCOL 0 | ||
| 2783 | +#define CONFIG_LIBRTMPE_PROTOCOL 0 | ||
| 2784 | +#define CONFIG_LIBRTMPS_PROTOCOL 0 | ||
| 2785 | +#define CONFIG_LIBRTMPT_PROTOCOL 0 | ||
| 2786 | +#define CONFIG_LIBRTMPTE_PROTOCOL 0 | ||
| 2787 | +#define CONFIG_LIBSRT_PROTOCOL 0 | ||
| 2788 | +#define CONFIG_LIBSSH_PROTOCOL 0 | ||
| 2789 | +#define CONFIG_LIBSMBCLIENT_PROTOCOL 0 | ||
| 2790 | +#define CONFIG_LIBZMQ_PROTOCOL 0 | ||
| 2791 | +#endif /* FFMPEG_CONFIG_H */ | ||
diff --git a/www/chromium/patches/patch-third_party_ffmpeg_libavcodec_x86_cabac_h b/www/chromium/patches/patch-third_party_ffmpeg_libavcodec_x86_cabac_h new file mode 100644 index 0000000..0f9591c --- /dev/null +++ b/www/chromium/patches/patch-third_party_ffmpeg_libavcodec_x86_cabac_h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/ffmpeg/libavcodec/x86/cabac.h | ||
| 2 | --- third_party/ffmpeg/libavcodec/x86/cabac.h.orig | ||
| 3 | +++ third_party/ffmpeg/libavcodec/x86/cabac.h | ||
| 4 | @@ -31,7 +31,8 @@ | ||
| 5 | |||
| 6 | #if (defined(__i386) && defined(__clang__) && (__clang_major__<2 || (__clang_major__==2 && __clang_minor__<10)))\ | ||
| 7 | || ( !defined(__clang__) && defined(__llvm__) && __GNUC__==4 && __GNUC_MINOR__==2 && __GNUC_PATCHLEVEL__<=1)\ | ||
| 8 | - || (defined(__INTEL_COMPILER) && defined(_MSC_VER)) | ||
| 9 | + || (defined(__INTEL_COMPILER) && defined(_MSC_VER)) \ | ||
| 10 | + || ((defined(__FreeBSD__) || defined(__OpenBSD__)) && defined(__i386)) | ||
| 11 | # define BROKEN_COMPILER 1 | ||
| 12 | #else | ||
| 13 | # define BROKEN_COMPILER 0 | ||
diff --git a/www/chromium/patches/patch-third_party_ffmpeg_libavutil_cpu_c b/www/chromium/patches/patch-third_party_ffmpeg_libavutil_cpu_c new file mode 100644 index 0000000..41d540b --- /dev/null +++ b/www/chromium/patches/patch-third_party_ffmpeg_libavutil_cpu_c | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: third_party/ffmpeg/libavutil/cpu.c | ||
| 2 | --- third_party/ffmpeg/libavutil/cpu.c.orig | ||
| 3 | +++ third_party/ffmpeg/libavutil/cpu.c | ||
| 4 | @@ -36,10 +36,7 @@ | ||
| 5 | #if HAVE_GETPROCESSAFFINITYMASK || HAVE_WINRT | ||
| 6 | #include <windows.h> | ||
| 7 | #endif | ||
| 8 | -#if HAVE_SYSCTL | ||
| 9 | -#if HAVE_SYS_PARAM_H | ||
| 10 | -#include <sys/param.h> | ||
| 11 | -#endif | ||
| 12 | +#if HAVE_SYSCTL && !defined(__OpenBSD__) | ||
| 13 | #include <sys/types.h> | ||
| 14 | #include <sys/sysctl.h> | ||
| 15 | #endif | ||
diff --git a/www/chromium/patches/patch-third_party_ffmpeg_libavutil_mem_c b/www/chromium/patches/patch-third_party_ffmpeg_libavutil_mem_c new file mode 100644 index 0000000..c2f25ce --- /dev/null +++ b/www/chromium/patches/patch-third_party_ffmpeg_libavutil_mem_c | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/ffmpeg/libavutil/mem.c | ||
| 2 | --- third_party/ffmpeg/libavutil/mem.c.orig | ||
| 3 | +++ third_party/ffmpeg/libavutil/mem.c | ||
| 4 | @@ -33,9 +33,6 @@ | ||
| 5 | #include <stdlib.h> | ||
| 6 | #include <stdatomic.h> | ||
| 7 | #include <string.h> | ||
| 8 | -#if HAVE_MALLOC_H | ||
| 9 | -#include <malloc.h> | ||
| 10 | -#endif | ||
| 11 | |||
| 12 | #include "avutil.h" | ||
| 13 | #include "common.h" | ||
diff --git a/www/chromium/patches/patch-third_party_ffmpeg_libavutil_random_seed_c b/www/chromium/patches/patch-third_party_ffmpeg_libavutil_random_seed_c new file mode 100644 index 0000000..716961e --- /dev/null +++ b/www/chromium/patches/patch-third_party_ffmpeg_libavutil_random_seed_c | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: third_party/ffmpeg/libavutil/random_seed.c | ||
| 2 | --- third_party/ffmpeg/libavutil/random_seed.c.orig | ||
| 3 | +++ third_party/ffmpeg/libavutil/random_seed.c | ||
| 4 | @@ -30,6 +30,11 @@ | ||
| 5 | #include <windows.h> | ||
| 6 | #include <bcrypt.h> | ||
| 7 | #endif | ||
| 8 | +#if HAVE_ARC4RANDOM | ||
| 9 | +#undef __BSD_VISIBLE | ||
| 10 | +#define __BSD_VISIBLE 1 | ||
| 11 | +#include <stdlib.h> | ||
| 12 | +#endif | ||
| 13 | #include <fcntl.h> | ||
| 14 | #include <math.h> | ||
| 15 | #include <time.h> | ||
diff --git a/www/chromium/patches/patch-third_party_fontconfig_include_config_h b/www/chromium/patches/patch-third_party_fontconfig_include_config_h new file mode 100644 index 0000000..04f5eb6 --- /dev/null +++ b/www/chromium/patches/patch-third_party_fontconfig_include_config_h | |||
| @@ -0,0 +1,90 @@ | |||
| 1 | Index: third_party/fontconfig/include/config.h | ||
| 2 | --- third_party/fontconfig/include/config.h.orig | ||
| 3 | +++ third_party/fontconfig/include/config.h | ||
| 4 | @@ -18,13 +18,13 @@ | ||
| 5 | #define ENABLE_NLS 1 | ||
| 6 | |||
| 7 | /* Additional font directories */ | ||
| 8 | -#define FC_ADD_FONTS "yes" | ||
| 9 | +#define FC_ADD_FONTS "/usr/local/share/fonts" | ||
| 10 | |||
| 11 | /* Architecture prefix to use for cache file names */ | ||
| 12 | /* #undef FC_ARCHITECTURE */ | ||
| 13 | |||
| 14 | /* System font directory */ | ||
| 15 | -#define FC_DEFAULT_FONTS "/usr/share/fonts" | ||
| 16 | +#define FC_DEFAULT_FONTS "/usr/X11R6/lib/X11/fonts" | ||
| 17 | |||
| 18 | /* The type of len parameter of the gperf hash/lookup function */ | ||
| 19 | #define FC_GPERF_SIZE_T size_t | ||
| 20 | @@ -100,7 +100,7 @@ | ||
| 21 | #define HAVE_GETPAGESIZE 1 | ||
| 22 | |||
| 23 | /* Define to 1 if you have the `getprogname' function. */ | ||
| 24 | -/* #undef HAVE_GETPROGNAME */ | ||
| 25 | +#define HAVE_GETPROGNAME 1 | ||
| 26 | |||
| 27 | /* Define if the GNU gettext() function is already present or preinstalled. */ | ||
| 28 | #define HAVE_GETTEXT 1 | ||
| 29 | @@ -142,7 +142,7 @@ | ||
| 30 | /* #undef HAVE_NDIR_H */ | ||
| 31 | |||
| 32 | /* Define to 1 if you have the 'posix_fadvise' function. */ | ||
| 33 | -#define HAVE_POSIX_FADVISE 1 | ||
| 34 | +#define HAVE_POSIX_FADVISE 0 | ||
| 35 | |||
| 36 | /* Have POSIX threads */ | ||
| 37 | #define HAVE_PTHREAD 1 | ||
| 38 | @@ -157,11 +157,14 @@ | ||
| 39 | #define HAVE_RANDOM 1 | ||
| 40 | |||
| 41 | /* Define to 1 if you have the `random_r' function. */ | ||
| 42 | -#define HAVE_RANDOM_R 1 | ||
| 43 | +/* #undef HAVE_RANDOM_R */ | ||
| 44 | |||
| 45 | /* Define to 1 if you have the `rand_r' function. */ | ||
| 46 | #define HAVE_RAND_R 1 | ||
| 47 | |||
| 48 | +/* Define to 1 if you have the `arc4_random' function. */ | ||
| 49 | +#define HAVE_ARC4RANDOM 1 | ||
| 50 | + | ||
| 51 | /* Define to 1 if you have the `readlink' function. */ | ||
| 52 | #define HAVE_READLINK 1 | ||
| 53 | |||
| 54 | @@ -199,7 +202,7 @@ | ||
| 55 | #define HAVE_STRUCT_STATFS_F_FLAGS 1 | ||
| 56 | |||
| 57 | /* Define to 1 if `f_fstypename' is a member of `struct statfs'. */ | ||
| 58 | -/* #undef HAVE_STRUCT_STATFS_F_FSTYPENAME */ | ||
| 59 | +#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1 | ||
| 60 | |||
| 61 | /* Define to 1 if `f_basetype' is a member of `struct statvfs'. */ | ||
| 62 | /* #undef HAVE_STRUCT_STATVFS_F_BASETYPE */ | ||
| 63 | @@ -225,7 +228,7 @@ | ||
| 64 | #define HAVE_SYS_PARAM_H 1 | ||
| 65 | |||
| 66 | /* Define to 1 if you have the <sys/statfs.h> header file. */ | ||
| 67 | -#define HAVE_SYS_STATFS_H 1 | ||
| 68 | +/* #undef HAVE_SYS_STATFS_H */ | ||
| 69 | |||
| 70 | /* Define to 1 if you have the <sys/statvfs.h> header file. */ | ||
| 71 | #define HAVE_SYS_STATVFS_H 1 | ||
| 72 | @@ -237,7 +240,7 @@ | ||
| 73 | #define HAVE_SYS_TYPES_H 1 | ||
| 74 | |||
| 75 | /* Define to 1 if you have the <sys/vfs.h> header file. */ | ||
| 76 | -#define HAVE_SYS_VFS_H 1 | ||
| 77 | +/* #undef HAVE_SYS_VFS_H */ | ||
| 78 | |||
| 79 | /* Define to 1 if you have the <unistd.h> header file. */ | ||
| 80 | #define HAVE_UNISTD_H 1 | ||
| 81 | @@ -257,7 +260,8 @@ | ||
| 82 | /* Define to 1 if you have the `_mktemp_s' function. */ | ||
| 83 | /* #undef HAVE__MKTEMP_S */ | ||
| 84 | |||
| 85 | -/* Define to the sub-directory where libtool stores uninstalled libraries. */ | ||
| 86 | +/* Define to the sub-directory in which libtool stores uninstalled libraries. | ||
| 87 | + */ | ||
| 88 | #define LT_OBJDIR ".libs/" | ||
| 89 | |||
| 90 | /* Name of package */ | ||
diff --git a/www/chromium/patches/patch-third_party_fontconfig_src_src_fccompat_c b/www/chromium/patches/patch-third_party_fontconfig_src_src_fccompat_c new file mode 100644 index 0000000..f32d5e2 --- /dev/null +++ b/www/chromium/patches/patch-third_party_fontconfig_src_src_fccompat_c | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: third_party/fontconfig/src/src/fccompat.c | ||
| 2 | --- third_party/fontconfig/src/src/fccompat.c.orig | ||
| 3 | +++ third_party/fontconfig/src/src/fccompat.c | ||
| 4 | @@ -169,7 +169,9 @@ FcRandom(void) | ||
| 5 | { | ||
| 6 | int32_t result; | ||
| 7 | |||
| 8 | -#if HAVE_RANDOM_R | ||
| 9 | +#if HAVE_ARC4RANDOM | ||
| 10 | + result = arc4random() & 0x7fffffff; | ||
| 11 | +#elif HAVE_RANDOM_R | ||
| 12 | static struct random_data fcrandbuf; | ||
| 13 | static char statebuf[256]; | ||
| 14 | static FcBool initialized = FcFalse; | ||
diff --git a/www/chromium/patches/patch-third_party_glfw_src_src_egl_context_c b/www/chromium/patches/patch-third_party_glfw_src_src_egl_context_c new file mode 100644 index 0000000..ac39eb6 --- /dev/null +++ b/www/chromium/patches/patch-third_party_glfw_src_src_egl_context_c | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/glfw/src/src/egl_context.c | ||
| 2 | --- third_party/glfw/src/src/egl_context.c.orig | ||
| 3 | +++ third_party/glfw/src/src/egl_context.c | ||
| 4 | @@ -712,7 +712,7 @@ GLFWbool _glfwCreateContextEGL(_GLFWwindow* window, | ||
| 5 | #elif defined(_GLFW_WIN32) | ||
| 6 | #elif defined(_GLFW_COCOA) | ||
| 7 | #else | ||
| 8 | - "libGL.so.1", | ||
| 9 | + "libGL.so", | ||
| 10 | #endif | ||
| 11 | NULL | ||
| 12 | }; | ||
diff --git a/www/chromium/patches/patch-third_party_leveldatabase_env_chromium_cc b/www/chromium/patches/patch-third_party_leveldatabase_env_chromium_cc new file mode 100644 index 0000000..01e9698 --- /dev/null +++ b/www/chromium/patches/patch-third_party_leveldatabase_env_chromium_cc | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/leveldatabase/env_chromium.cc | ||
| 2 | --- third_party/leveldatabase/env_chromium.cc.orig | ||
| 3 | +++ third_party/leveldatabase/env_chromium.cc | ||
| 4 | @@ -316,7 +316,8 @@ ChromiumWritableFile::ChromiumWritableFile(const std:: | ||
| 5 | |||
| 6 | Status ChromiumWritableFile::SyncParent() { | ||
| 7 | TRACE_EVENT0("leveldb", "SyncParent"); | ||
| 8 | -#if defined(OS_POSIX) || defined(OS_FUCHSIA) | ||
| 9 | +// pledge violation (directory passed as fd) | ||
| 10 | +#if (defined(OS_POSIX) || defined(OS_FUCHSIA)) && !defined(OS_OPENBSD) | ||
| 11 | FilePath path = FilePath::FromUTF8Unsafe(parent_dir_); | ||
| 12 | FileErrorOr<base::File> result = filesystem_->OpenFile( | ||
| 13 | path, base::File::FLAG_OPEN | base::File::FLAG_READ); | ||
diff --git a/www/chromium/patches/patch-third_party_libXNVCtrl_NVCtrl_c b/www/chromium/patches/patch-third_party_libXNVCtrl_NVCtrl_c new file mode 100644 index 0000000..5228eaa --- /dev/null +++ b/www/chromium/patches/patch-third_party_libXNVCtrl_NVCtrl_c | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Index: third_party/libXNVCtrl/NVCtrl.c | ||
| 2 | --- third_party/libXNVCtrl/NVCtrl.c.orig | ||
| 3 | +++ third_party/libXNVCtrl/NVCtrl.c | ||
| 4 | @@ -27,10 +27,6 @@ | ||
| 5 | * libXNVCtrl library properly protects the Display connection. | ||
| 6 | */ | ||
| 7 | |||
| 8 | -#if !defined(XTHREADS) | ||
| 9 | -#define XTHREADS | ||
| 10 | -#endif /* XTHREADS */ | ||
| 11 | - | ||
| 12 | #define NEED_EVENTS | ||
| 13 | #define NEED_REPLIES | ||
| 14 | #include <stdint.h> | ||
| 15 | @@ -39,6 +35,11 @@ | ||
| 16 | #include <X11/Xutil.h> | ||
| 17 | #include <X11/extensions/Xext.h> | ||
| 18 | #include <X11/extensions/extutil.h> | ||
| 19 | + | ||
| 20 | +#if !defined(XTHREADS) | ||
| 21 | +#define XTHREADS | ||
| 22 | +#endif /* XTHREADS */ | ||
| 23 | + | ||
| 24 | #include "NVCtrlLib.h" | ||
| 25 | #include "nv_control.h" | ||
| 26 | |||
diff --git a/www/chromium/patches/patch-third_party_libphonenumber_dist_cpp_src_phonenumbers_base_memory_singleton_h b/www/chromium/patches/patch-third_party_libphonenumber_dist_cpp_src_phonenumbers_base_memory_singleton_h new file mode 100644 index 0000000..cdf802e --- /dev/null +++ b/www/chromium/patches/patch-third_party_libphonenumber_dist_cpp_src_phonenumbers_base_memory_singleton_h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/libphonenumber/dist/cpp/src/phonenumbers/base/memory/singleton.h | ||
| 2 | --- third_party/libphonenumber/dist/cpp/src/phonenumbers/base/memory/singleton.h.orig | ||
| 3 | +++ third_party/libphonenumber/dist/cpp/src/phonenumbers/base/memory/singleton.h | ||
| 4 | @@ -56,7 +56,8 @@ template <class T> boost::once_flag Singleton<T>::flag | ||
| 5 | #include "phonenumbers/base/logging.h" | ||
| 6 | #include "phonenumbers/base/thread_checker.h" | ||
| 7 | |||
| 8 | -#if !defined(__linux__) && !defined(__APPLE__) | ||
| 9 | +#if !defined(__linux__) && !defined(__APPLE__) && !defined(__OpenBSD__) && \ | ||
| 10 | + !defined(__FreeBSD__) | ||
| 11 | |||
| 12 | namespace i18n { | ||
| 13 | namespace phonenumbers { | ||
diff --git a/www/chromium/patches/patch-third_party_libphonenumber_dist_cpp_src_phonenumbers_base_synchronization_lock_h b/www/chromium/patches/patch-third_party_libphonenumber_dist_cpp_src_phonenumbers_base_synchronization_lock_h new file mode 100644 index 0000000..d20141c --- /dev/null +++ b/www/chromium/patches/patch-third_party_libphonenumber_dist_cpp_src_phonenumbers_base_synchronization_lock_h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/libphonenumber/dist/cpp/src/phonenumbers/base/synchronization/lock.h | ||
| 2 | --- third_party/libphonenumber/dist/cpp/src/phonenumbers/base/synchronization/lock.h.orig | ||
| 3 | +++ third_party/libphonenumber/dist/cpp/src/phonenumbers/base/synchronization/lock.h | ||
| 4 | @@ -63,7 +63,8 @@ class Lock { (private) | ||
| 5 | // Dummy lock implementation on non-POSIX platforms. If you are running on a | ||
| 6 | // different platform and care about thread-safety, please compile with | ||
| 7 | // -DI18N_PHONENUMBERS_USE_BOOST. | ||
| 8 | -#elif !defined(__linux__) && !defined(__APPLE__) | ||
| 9 | +#elif !defined(__linux__) && !defined(__APPLE__) && !defined(__OpenBSD__) && \ | ||
| 10 | + !defined(__FreeBSD__) | ||
| 11 | |||
| 12 | namespace i18n { | ||
| 13 | namespace phonenumbers { | ||
diff --git a/www/chromium/patches/patch-third_party_libphonenumber_dist_cpp_src_phonenumbers_base_thread_checker_h b/www/chromium/patches/patch-third_party_libphonenumber_dist_cpp_src_phonenumbers_base_thread_checker_h new file mode 100644 index 0000000..1055a20 --- /dev/null +++ b/www/chromium/patches/patch-third_party_libphonenumber_dist_cpp_src_phonenumbers_base_thread_checker_h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Index: third_party/libphonenumber/dist/cpp/src/phonenumbers/base/thread_checker.h | ||
| 2 | --- third_party/libphonenumber/dist/cpp/src/phonenumbers/base/thread_checker.h.orig | ||
| 3 | +++ third_party/libphonenumber/dist/cpp/src/phonenumbers/base/thread_checker.h | ||
| 4 | @@ -23,7 +23,8 @@ | ||
| 5 | // user of the library know that it can't be used in a thread-safe manner when | ||
| 6 | // it is not depending on Boost. | ||
| 7 | #if !defined(__linux__) && !defined(__APPLE__) && \ | ||
| 8 | - !defined(I18N_PHONENUMBERS_NO_THREAD_SAFETY) | ||
| 9 | + !defined(I18N_PHONENUMBERS_NO_THREAD_SAFETY) && !defined(__OpenBSD__) && \ | ||
| 10 | + !defined(__FreeBSD__) | ||
| 11 | #error Building without Boost, please provide \ | ||
| 12 | -DI18N_PHONENUMBERS_NO_THREAD_SAFETY | ||
| 13 | #endif | ||
| 14 | @@ -31,7 +32,8 @@ | ||
| 15 | #endif | ||
| 16 | |||
| 17 | #if !defined(NDEBUG) && !defined(I18N_PHONENUMBERS_USE_BOOST) && \ | ||
| 18 | - (defined(__linux__) || defined(__apple__)) | ||
| 19 | + (defined(__linux__) || defined(__apple__) || defined(__OpenBSD__) || \ | ||
| 20 | + defined(__FreeBSD__)) | ||
| 21 | |||
| 22 | #include <pthread.h> | ||
| 23 | |||
diff --git a/www/chromium/patches/patch-third_party_libsync_src_include_sync_sync_h b/www/chromium/patches/patch-third_party_libsync_src_include_sync_sync_h new file mode 100644 index 0000000..d7b7eba --- /dev/null +++ b/www/chromium/patches/patch-third_party_libsync_src_include_sync_sync_h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/libsync/src/include/sync/sync.h | ||
| 2 | --- third_party/libsync/src/include/sync/sync.h.orig | ||
| 3 | +++ third_party/libsync/src/include/sync/sync.h | ||
| 4 | @@ -22,7 +22,9 @@ | ||
| 5 | #include <sys/cdefs.h> | ||
| 6 | #include <stdint.h> | ||
| 7 | |||
| 8 | +#if !defined(__OpenBSD__) && !defined(__FreeBSD__) | ||
| 9 | #include <linux/types.h> | ||
| 10 | +#endif | ||
| 11 | |||
| 12 | __BEGIN_DECLS | ||
| 13 | |||
diff --git a/www/chromium/patches/patch-third_party_libsync_src_sync_c b/www/chromium/patches/patch-third_party_libsync_src_sync_c new file mode 100644 index 0000000..7483391 --- /dev/null +++ b/www/chromium/patches/patch-third_party_libsync_src_sync_c | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Index: third_party/libsync/src/sync.c | ||
| 2 | --- third_party/libsync/src/sync.c.orig | ||
| 3 | +++ third_party/libsync/src/sync.c | ||
| 4 | @@ -17,7 +17,9 @@ | ||
| 5 | */ | ||
| 6 | |||
| 7 | #include <fcntl.h> | ||
| 8 | +#if !defined(__OpenBSD__) | ||
| 9 | #include <malloc.h> | ||
| 10 | +#endif | ||
| 11 | #include <stdint.h> | ||
| 12 | #include <string.h> | ||
| 13 | #include <errno.h> | ||
| 14 | @@ -29,6 +31,12 @@ | ||
| 15 | |||
| 16 | #include <sync/sync.h> | ||
| 17 | |||
| 18 | +#if defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 19 | +typedef __uint8_t __u8; | ||
| 20 | +typedef __uint32_t __u32; | ||
| 21 | +typedef __int32_t __s32; | ||
| 22 | +#define ETIME ETIMEDOUT | ||
| 23 | +#endif | ||
| 24 | |||
| 25 | struct sw_sync_create_fence_data { | ||
| 26 | __u32 value; | ||
diff --git a/www/chromium/patches/patch-third_party_libusb_BUILD_gn b/www/chromium/patches/patch-third_party_libusb_BUILD_gn new file mode 100644 index 0000000..47e3852 --- /dev/null +++ b/www/chromium/patches/patch-third_party_libusb_BUILD_gn | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | Index: third_party/libusb/BUILD.gn | ||
| 2 | --- third_party/libusb/BUILD.gn.orig | ||
| 3 | +++ third_party/libusb/BUILD.gn | ||
| 4 | @@ -3,7 +3,7 @@ | ||
| 5 | # found in the LICENSE file. | ||
| 6 | |||
| 7 | # libusb is only used by //services/device/usb on macOS. | ||
| 8 | -assert(is_mac) | ||
| 9 | +assert(is_mac || is_bsd) | ||
| 10 | |||
| 11 | import("//build/config/chromeos/ui_mode.gni") | ||
| 12 | import("//build/config/features.gni") | ||
| 13 | @@ -116,7 +116,7 @@ static_library("libusb") { | ||
| 14 | ] | ||
| 15 | } | ||
| 16 | |||
| 17 | - if (is_linux || is_chromeos) { | ||
| 18 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 19 | sources += [ | ||
| 20 | "src/libusb/os/linux_usbfs.c", | ||
| 21 | "src/libusb/os/linux_usbfs.h", | ||
| 22 | @@ -127,6 +127,16 @@ static_library("libusb") { | ||
| 23 | ] | ||
| 24 | } | ||
| 25 | |||
| 26 | + if (is_openbsd) { | ||
| 27 | + sources += [ | ||
| 28 | + "src/libusb/os/openbsd_usb.c", | ||
| 29 | + ] | ||
| 30 | + defines += [ | ||
| 31 | + "OS_OPENBSD=1", | ||
| 32 | + "_GNU_SOURCE=1", | ||
| 33 | + ] | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | if (is_chromeos_ash) { | ||
| 37 | defines += [ "USBI_TIMERFD_AVAILABLE" ] | ||
| 38 | } | ||
| 39 | @@ -140,7 +150,7 @@ static_library("libusb") { | ||
| 40 | deps += [ "//build/linux/libudev" ] | ||
| 41 | } | ||
| 42 | |||
| 43 | - if ((is_linux || is_chromeos) && !use_udev) { | ||
| 44 | + if ((is_linux || is_chromeos) && !use_udev && !is_bsd) { | ||
| 45 | sources += [ "src/libusb/os/linux_netlink.c" ] | ||
| 46 | defines += [ "HAVE_LINUX_NETLINK_H" ] | ||
| 47 | } | ||
diff --git a/www/chromium/patches/patch-third_party_libusb_src_libusb_core_c b/www/chromium/patches/patch-third_party_libusb_src_libusb_core_c new file mode 100644 index 0000000..1adacf7 --- /dev/null +++ b/www/chromium/patches/patch-third_party_libusb_src_libusb_core_c | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/libusb/src/libusb/core.c | ||
| 2 | --- third_party/libusb/src/libusb/core.c.orig | ||
| 3 | +++ third_party/libusb/src/libusb/core.c | ||
| 4 | @@ -448,7 +448,7 @@ libusb_free_device_list(list, 1); | ||
| 5 | * which grows when required. it can be freed once discovery has completed, | ||
| 6 | * eliminating the need for a list node in the libusb_device structure | ||
| 7 | * itself. */ | ||
| 8 | -#define DISCOVERED_DEVICES_SIZE_STEP 8 | ||
| 9 | +#define DISCOVERED_DEVICES_SIZE_STEP 16 | ||
| 10 | |||
| 11 | static struct discovered_devs *discovered_devs_alloc(void) | ||
| 12 | { | ||
diff --git a/www/chromium/patches/patch-third_party_libxml_linux_config_h b/www/chromium/patches/patch-third_party_libxml_linux_config_h new file mode 100644 index 0000000..5ba0b88 --- /dev/null +++ b/www/chromium/patches/patch-third_party_libxml_linux_config_h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/libxml/linux/config.h | ||
| 2 | --- third_party/libxml/linux/config.h.orig | ||
| 3 | +++ third_party/libxml/linux/config.h | ||
| 4 | @@ -81,6 +81,9 @@ | ||
| 5 | /* Define to 1 if you have the `putenv' function. */ | ||
| 6 | #define HAVE_PUTENV 1 | ||
| 7 | |||
| 8 | +/* Define to 1 if you have the `arc4random' function. */ | ||
| 9 | +#define HAVE_ARC4RANDOM 1 | ||
| 10 | + | ||
| 11 | /* Define to 1 if you have the `rand_r' function. */ | ||
| 12 | |||
| 13 | |||
diff --git a/www/chromium/patches/patch-third_party_libxml_src_dict_c b/www/chromium/patches/patch-third_party_libxml_src_dict_c new file mode 100644 index 0000000..5a00051 --- /dev/null +++ b/www/chromium/patches/patch-third_party_libxml_src_dict_c | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | Index: third_party/libxml/src/dict.c | ||
| 2 | --- third_party/libxml/src/dict.c.orig | ||
| 3 | +++ third_party/libxml/src/dict.c | ||
| 4 | @@ -135,7 +135,7 @@ static xmlRMutexPtr xmlDictMutex = NULL; | ||
| 5 | static int xmlDictInitialized = 0; | ||
| 6 | |||
| 7 | #ifdef DICT_RANDOMIZATION | ||
| 8 | -#ifdef HAVE_RAND_R | ||
| 9 | +#if defined(HAVE_RAND_R) && !defined(HAVE_ARC4RANDOM) | ||
| 10 | /* | ||
| 11 | * Internal data for random function, protected by xmlDictMutex | ||
| 12 | */ | ||
| 13 | @@ -176,7 +176,7 @@ int __xmlInitializeDict(void) { | ||
| 14 | return(0); | ||
| 15 | xmlRMutexLock(xmlDictMutex); | ||
| 16 | |||
| 17 | -#ifdef DICT_RANDOMIZATION | ||
| 18 | +#if defined(DICT_RANDOMIZATION) && !defined(HAVE_ARC4RANDOM) | ||
| 19 | #ifdef HAVE_RAND_R | ||
| 20 | rand_seed = time(NULL); | ||
| 21 | rand_r(& rand_seed); | ||
| 22 | @@ -196,13 +196,17 @@ int __xmlRandom(void) { | ||
| 23 | if (xmlDictInitialized == 0) | ||
| 24 | __xmlInitializeDict(); | ||
| 25 | |||
| 26 | +#ifdef HAVE_ARC4RANDOM | ||
| 27 | + ret = arc4random(); | ||
| 28 | +#else | ||
| 29 | xmlRMutexLock(xmlDictMutex); | ||
| 30 | -#ifdef HAVE_RAND_R | ||
| 31 | +# ifdef HAVE_RAND_R | ||
| 32 | ret = rand_r(& rand_seed); | ||
| 33 | -#else | ||
| 34 | +# else | ||
| 35 | ret = rand(); | ||
| 36 | -#endif | ||
| 37 | +# endif | ||
| 38 | xmlRMutexUnlock(xmlDictMutex); | ||
| 39 | +#endif | ||
| 40 | return(ret); | ||
| 41 | } | ||
| 42 | #endif | ||
diff --git a/www/chromium/patches/patch-third_party_maldoca_BUILD_gn b/www/chromium/patches/patch-third_party_maldoca_BUILD_gn new file mode 100644 index 0000000..55714be --- /dev/null +++ b/www/chromium/patches/patch-third_party_maldoca_BUILD_gn | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: third_party/maldoca/BUILD.gn | ||
| 2 | --- third_party/maldoca/BUILD.gn.orig | ||
| 3 | +++ third_party/maldoca/BUILD.gn | ||
| 4 | @@ -299,6 +299,10 @@ static_library("maldoca") { | ||
| 5 | ":maldoca_chromium_config", | ||
| 6 | ":maldoca_flags", | ||
| 7 | ] | ||
| 8 | + | ||
| 9 | + if (is_bsd) { | ||
| 10 | + libs = [ "iconv" ] | ||
| 11 | + } | ||
| 12 | } | ||
| 13 | |||
| 14 | fuzzer_test("process_doc_fuzzer") { | ||
diff --git a/www/chromium/patches/patch-third_party_maldoca_src_maldoca_base_get_runfiles_dir_cc b/www/chromium/patches/patch-third_party_maldoca_src_maldoca_base_get_runfiles_dir_cc new file mode 100644 index 0000000..8716397 --- /dev/null +++ b/www/chromium/patches/patch-third_party_maldoca_src_maldoca_base_get_runfiles_dir_cc | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | Index: third_party/maldoca/src/maldoca/base/get_runfiles_dir.cc | ||
| 2 | --- third_party/maldoca/src/maldoca/base/get_runfiles_dir.cc.orig | ||
| 3 | +++ third_party/maldoca/src/maldoca/base/get_runfiles_dir.cc | ||
| 4 | @@ -24,11 +24,6 @@ | ||
| 5 | #error "__APPLE__ not supported." | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if defined(__FreeBSD__) | ||
| 9 | -// TODO(#110) FreeBSD-specific headers. | ||
| 10 | -#error "__FreeBSD__ not supported." | ||
| 11 | -#endif | ||
| 12 | - | ||
| 13 | #if defined(_WIN32) | ||
| 14 | #include <windows.h> | ||
| 15 | #define PATH_MAX MAX_PATH | ||
| 16 | @@ -50,8 +45,6 @@ std::string GetExecutablePath() { | ||
| 17 | char exe_path[PATH_MAX] = {0}; | ||
| 18 | #ifdef __APPLE__ | ||
| 19 | #error "__APPLE__ not supported."; | ||
| 20 | -#elif defined(__FreeBSD__) | ||
| 21 | -#error "__FreeBSD__ not supported."; | ||
| 22 | #elif defined(_WIN32) | ||
| 23 | HMODULE hModule = GetModuleHandleW(NULL); | ||
| 24 | WCHAR wc_file_path[MAX_PATH] = {0}; | ||
| 25 | @@ -97,8 +90,6 @@ std::string GetExecutablePath() { | ||
| 26 | absl::Status IsDirectory(const std::string& name) { | ||
| 27 | #ifdef __APPLE__ | ||
| 28 | #error "__APPLE__ not supported."; | ||
| 29 | -#elif defined(__FreeBSD__) | ||
| 30 | -#error "__FreeBSD__ not supported."; | ||
| 31 | #else | ||
| 32 | struct stat sbuf; | ||
| 33 | if (stat(name.c_str(), &sbuf) != 0) { | ||
diff --git a/www/chromium/patches/patch-third_party_maldoca_src_maldoca_service_common_process_doc_wrapper_cc b/www/chromium/patches/patch-third_party_maldoca_src_maldoca_service_common_process_doc_wrapper_cc new file mode 100644 index 0000000..c330de0 --- /dev/null +++ b/www/chromium/patches/patch-third_party_maldoca_src_maldoca_service_common_process_doc_wrapper_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: third_party/maldoca/src/maldoca/service/common/process_doc_wrapper.cc | ||
| 2 | --- third_party/maldoca/src/maldoca/service/common/process_doc_wrapper.cc.orig | ||
| 3 | +++ third_party/maldoca/src/maldoca/service/common/process_doc_wrapper.cc | ||
| 4 | @@ -7,7 +7,7 @@ | ||
| 5 | #include "build/build_config.h" | ||
| 6 | |||
| 7 | #include "base/files/file_util.h" | ||
| 8 | -#if defined(OS_LINUX) | ||
| 9 | +#if defined(OS_LINUX) || defined(OS_BSD) | ||
| 10 | #include "base/strings/string_util.h" | ||
| 11 | #else | ||
| 12 | #include "base/strings/string_util_win.h" | ||
| 13 | @@ -21,7 +21,7 @@ namespace third_party_maldoca { | ||
| 14 | |||
| 15 | |||
| 16 | bool ExtensionEqualInCaseSensitive(base::FilePath file_path, std::string extension){ | ||
| 17 | - #if defined(OS_LINUX) | ||
| 18 | + #if defined(OS_LINUX) || defined(OS_BSD) | ||
| 19 | std::string file_extension = file_path.FinalExtension(); | ||
| 20 | return base::CompareCaseInsensitiveASCII(file_extension, extension) == 0; | ||
| 21 | #else | ||
| 22 | @@ -74,7 +74,7 @@ void AnalyzeOfficeDocument(base::File office_file, | ||
| 23 | maldoca::DocProcessor doc_processor(processor_config); | ||
| 24 | |||
| 25 | maldoca::ProcessDocumentRequest process_doc_request; | ||
| 26 | - #if defined(OS_LINUX) | ||
| 27 | + #if defined(OS_LINUX) || defined(OS_BSD) | ||
| 28 | const std::string file_name = file_path.BaseName().value().c_str(); | ||
| 29 | process_doc_request.set_file_name(file_name); | ||
| 30 | #endif | ||
diff --git a/www/chromium/patches/patch-third_party_nasm_BUILD_gn b/www/chromium/patches/patch-third_party_nasm_BUILD_gn new file mode 100644 index 0000000..b18d7f9 --- /dev/null +++ b/www/chromium/patches/patch-third_party_nasm_BUILD_gn | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: third_party/nasm/BUILD.gn | ||
| 2 | --- third_party/nasm/BUILD.gn.orig | ||
| 3 | +++ third_party/nasm/BUILD.gn | ||
| 4 | @@ -59,6 +59,13 @@ config("nasm_config") { | ||
| 5 | |||
| 6 | defines = [ "HAVE_CONFIG_H" ] | ||
| 7 | |||
| 8 | + _string_h_lines = | ||
| 9 | + read_file("/usr/include/string.h", "list lines") | ||
| 10 | + _mempcpy = filter_include(_string_h_lines, [ "*\*mempcpy*" ]) | ||
| 11 | + if (_mempcpy != []) { | ||
| 12 | + defines += [ "HAVE_MEMPCPY=1" ] | ||
| 13 | + } | ||
| 14 | + | ||
| 15 | if (is_clang) { | ||
| 16 | cflags = [ | ||
| 17 | # The inline functions in NASM's headers flag this. | ||
diff --git a/www/chromium/patches/patch-third_party_nasm_config_config-linux_h b/www/chromium/patches/patch-third_party_nasm_config_config-linux_h new file mode 100644 index 0000000..cdf66bb --- /dev/null +++ b/www/chromium/patches/patch-third_party_nasm_config_config-linux_h | |||
| @@ -0,0 +1,112 @@ | |||
| 1 | Index: third_party/nasm/config/config-linux.h | ||
| 2 | --- third_party/nasm/config/config-linux.h.orig | ||
| 3 | +++ third_party/nasm/config/config-linux.h | ||
| 4 | @@ -139,7 +139,7 @@ | ||
| 5 | #define HAVE_ACCESS 1 | ||
| 6 | |||
| 7 | /* Define to 1 if you have the `canonicalize_file_name' function. */ | ||
| 8 | -#define HAVE_CANONICALIZE_FILE_NAME 1 | ||
| 9 | +/* #undef HAVE_CANONICALIZE_FILE_NAME */ | ||
| 10 | |||
| 11 | /* Define to 1 if you have the `cpu_to_le16' intrinsic function. */ | ||
| 12 | /* #undef HAVE_CPU_TO_LE16 */ | ||
| 13 | @@ -160,7 +160,7 @@ | ||
| 14 | |||
| 15 | /* Define to 1 if you have the declaration of `strlcpy', and to 0 if you | ||
| 16 | don't. */ | ||
| 17 | -#define HAVE_DECL_STRLCPY 0 | ||
| 18 | +#define HAVE_DECL_STRLCPY 1 | ||
| 19 | |||
| 20 | /* Define to 1 if you have the declaration of `strncasecmp', and to 0 if you | ||
| 21 | don't. */ | ||
| 22 | @@ -183,7 +183,7 @@ | ||
| 23 | #define HAVE_DECL_STRSEP 1 | ||
| 24 | |||
| 25 | /* Define to 1 if you have the <endian.h> header file. */ | ||
| 26 | -#define HAVE_ENDIAN_H 1 | ||
| 27 | +/* #undef HAVE_ENDIAN_H */ | ||
| 28 | |||
| 29 | /* Define to 1 if you have the `faccessat' function. */ | ||
| 30 | #define HAVE_FACCESSAT 1 | ||
| 31 | @@ -327,16 +327,16 @@ | ||
| 32 | #define HAVE_ISASCII 1 | ||
| 33 | |||
| 34 | /* Define to 1 if you have the `iscntrl' function. */ | ||
| 35 | -/* #undef HAVE_ISCNTRL */ | ||
| 36 | +#define HAVE_ISCNTRL 1 | ||
| 37 | |||
| 38 | /* Define to 1 if you have the <machine/endian.h> header file. */ | ||
| 39 | -/* #undef HAVE_MACHINE_ENDIAN_H */ | ||
| 40 | +#define HAVE_MACHINE_ENDIAN_H 1 | ||
| 41 | |||
| 42 | /* Define to 1 if you have the <memory.h> header file. */ | ||
| 43 | #define HAVE_MEMORY_H 1 | ||
| 44 | |||
| 45 | /* Define to 1 if you have the `mempcpy' function. */ | ||
| 46 | -#define HAVE_MEMPCPY 1 | ||
| 47 | +/* #undef HAVE_MEMPCPY */ | ||
| 48 | |||
| 49 | /* Define to 1 if you have a working `mmap' system call. */ | ||
| 50 | #define HAVE_MMAP 1 | ||
| 51 | @@ -357,7 +357,7 @@ | ||
| 52 | #define HAVE_STDARG_H 1 | ||
| 53 | |||
| 54 | /* Define to 1 if stdbool.h conforms to C99. */ | ||
| 55 | -/* #undef HAVE_STDBOOL_H */ | ||
| 56 | +#define HAVE_STDBOOL_H 1 | ||
| 57 | |||
| 58 | /* Define to 1 if your compiler supports C99 extern inline */ | ||
| 59 | #define HAVE_STDC_INLINE 1 | ||
| 60 | @@ -384,7 +384,7 @@ | ||
| 61 | #define HAVE_STRING_H 1 | ||
| 62 | |||
| 63 | /* Define to 1 if you have the `strlcpy' function. */ | ||
| 64 | -/* #undef HAVE_STRLCPY */ | ||
| 65 | +#define HAVE_STRLCPY 1 | ||
| 66 | |||
| 67 | /* Define to 1 if you have the `strncasecmp' function. */ | ||
| 68 | #define HAVE_STRNCASECMP 1 | ||
| 69 | @@ -411,7 +411,7 @@ | ||
| 70 | #define HAVE_SYSCONF 1 | ||
| 71 | |||
| 72 | /* Define to 1 if you have the <sys/endian.h> header file. */ | ||
| 73 | -/* #undef HAVE_SYS_ENDIAN_H */ | ||
| 74 | +#define HAVE_SYS_ENDIAN_H 1 | ||
| 75 | |||
| 76 | /* Define to 1 if you have the <sys/mman.h> header file. */ | ||
| 77 | #define HAVE_SYS_MMAN_H 1 | ||
| 78 | @@ -486,13 +486,13 @@ | ||
| 79 | /* #undef HAVE__STATI64 */ | ||
| 80 | |||
| 81 | /* Define to 1 if you have the `__bswap_16' intrinsic function. */ | ||
| 82 | -#define HAVE___BSWAP_16 1 | ||
| 83 | +/* #undef HAVE___BSWAP_16 */ | ||
| 84 | |||
| 85 | /* Define to 1 if you have the `__bswap_32' intrinsic function. */ | ||
| 86 | -#define HAVE___BSWAP_32 1 | ||
| 87 | +/* #undef HAVE___BSWAP_32 */ | ||
| 88 | |||
| 89 | /* Define to 1 if you have the `__bswap_64' intrinsic function. */ | ||
| 90 | -#define HAVE___BSWAP_64 1 | ||
| 91 | +/* #undef HAVE___BSWAP_64 */ | ||
| 92 | |||
| 93 | /* Define to 1 if you have the `__builtin_bswap16' intrinsic function. */ | ||
| 94 | #define HAVE___BUILTIN_BSWAP16 1 | ||
| 95 | @@ -620,7 +620,7 @@ | ||
| 96 | /* Define to the equivalent of the C99 'restrict' keyword, or to | ||
| 97 | nothing if this is not supported. Do not define if restrict is | ||
| 98 | supported directly. */ | ||
| 99 | -#define restrict __restrict | ||
| 100 | +#define restrict __restrict__ | ||
| 101 | /* Work around a bug in Sun C++: it does not support _Restrict or | ||
| 102 | __restrict__, even though the corresponding Sun C compiler ends up with | ||
| 103 | "#define restrict _Restrict" or "#define restrict __restrict__" in the | ||
| 104 | @@ -637,7 +637,7 @@ | ||
| 105 | /* Define if your snprintf function is not named snprintf. */ | ||
| 106 | /* #undef snprintf */ | ||
| 107 | |||
| 108 | -/* Define if your typeof operator is not named typeof. */ | ||
| 109 | +/* Define if your typeof operator is not named `typeof'. */ | ||
| 110 | #define typeof __typeof | ||
| 111 | |||
| 112 | /* Define to the type of an unsigned integer type wide enough to hold a | ||
diff --git a/www/chromium/patches/patch-third_party_node_node_py b/www/chromium/patches/patch-third_party_node_node_py new file mode 100644 index 0000000..384b983 --- /dev/null +++ b/www/chromium/patches/patch-third_party_node_node_py | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/node/node.py | ||
| 2 | --- third_party/node/node.py.orig | ||
| 3 | +++ third_party/node/node.py | ||
| 4 | @@ -16,6 +16,8 @@ def GetBinaryPath(): | ||
| 5 | return os_path.join(os_path.dirname(__file__), *{ | ||
| 6 | 'Darwin': ('mac', darwin_name, 'bin', 'node'), | ||
| 7 | 'Linux': ('linux', 'node-linux-x64', 'bin', 'node'), | ||
| 8 | + 'OpenBSD': ('openbsd', 'node-openbsd', 'bin', 'node'), | ||
| 9 | + 'FreeBSD': ('freebsd', 'node-freebsd', 'bin', 'node'), | ||
| 10 | 'Windows': ('win', 'node.exe'), | ||
| 11 | }[platform.system()]) | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-third_party_opus_BUILD_gn b/www/chromium/patches/patch-third_party_opus_BUILD_gn new file mode 100644 index 0000000..18b3e2e --- /dev/null +++ b/www/chromium/patches/patch-third_party_opus_BUILD_gn | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: third_party/opus/BUILD.gn | ||
| 2 | --- third_party/opus/BUILD.gn.orig | ||
| 3 | +++ third_party/opus/BUILD.gn | ||
| 4 | @@ -41,7 +41,6 @@ config("opus_private_config") { | ||
| 5 | # Prefer alloca() over variable length arrays which are often inefficient; | ||
| 6 | # the opus code will automatically handle this correctly per-platform. | ||
| 7 | "USE_ALLOCA", | ||
| 8 | - "HAVE_ALLOCA_H", | ||
| 9 | ] | ||
| 10 | |||
| 11 | include_dirs = [ | ||
diff --git a/www/chromium/patches/patch-third_party_pdfium_core_fxcrt_cfx_datetime_cpp b/www/chromium/patches/patch-third_party_pdfium_core_fxcrt_cfx_datetime_cpp new file mode 100644 index 0000000..1584e74 --- /dev/null +++ b/www/chromium/patches/patch-third_party_pdfium_core_fxcrt_cfx_datetime_cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/pdfium/core/fxcrt/cfx_datetime.cpp | ||
| 2 | --- third_party/pdfium/core/fxcrt/cfx_datetime.cpp.orig | ||
| 3 | +++ third_party/pdfium/core/fxcrt/cfx_datetime.cpp | ||
| 4 | @@ -11,7 +11,7 @@ | ||
| 5 | #include "third_party/base/check.h" | ||
| 6 | |||
| 7 | #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 8 | - BUILDFLAG(IS_APPLE) || defined(OS_ASMJS) | ||
| 9 | + BUILDFLAG(IS_APPLE) || defined(OS_ASMJS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <sys/time.h> | ||
| 11 | #include <time.h> | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-third_party_pdfium_core_fxge_cfx_fontmapper_cpp b/www/chromium/patches/patch-third_party_pdfium_core_fxge_cfx_fontmapper_cpp new file mode 100644 index 0000000..b7e999c --- /dev/null +++ b/www/chromium/patches/patch-third_party_pdfium_core_fxge_cfx_fontmapper_cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/pdfium/core/fxge/cfx_fontmapper.cpp | ||
| 2 | --- third_party/pdfium/core/fxge/cfx_fontmapper.cpp.orig | ||
| 3 | +++ third_party/pdfium/core/fxge/cfx_fontmapper.cpp | ||
| 4 | @@ -155,7 +155,7 @@ constexpr AltFontFamily kAltFontFamilies[] = { | ||
| 5 | {"ForteMT", "Forte"}, | ||
| 6 | }; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(OS_ASMJS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(OS_ASMJS) || BUILDFLAG(IS_BSD) | ||
| 10 | const char kNarrowFamily[] = "LiberationSansNarrow"; | ||
| 11 | #elif BUILDFLAG(IS_ANDROID) | ||
| 12 | const char kNarrowFamily[] = "RobotoCondensed"; | ||
diff --git a/www/chromium/patches/patch-third_party_pdfium_core_fxge_linux_fx_linux_impl_cpp b/www/chromium/patches/patch-third_party_pdfium_core_fxge_linux_fx_linux_impl_cpp new file mode 100644 index 0000000..e99b33d --- /dev/null +++ b/www/chromium/patches/patch-third_party_pdfium_core_fxge_linux_fx_linux_impl_cpp | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | Index: third_party/pdfium/core/fxge/linux/fx_linux_impl.cpp | ||
| 2 | --- third_party/pdfium/core/fxge/linux/fx_linux_impl.cpp.orig | ||
| 3 | +++ third_party/pdfium/core/fxge/linux/fx_linux_impl.cpp | ||
| 4 | @@ -17,7 +17,7 @@ | ||
| 5 | #include "third_party/base/check.h" | ||
| 6 | #include "third_party/base/cxx17_backports.h" | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !defined(OS_ASMJS) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !defined(OS_ASMJS) && !BUILDFLAG(IS_BSD) | ||
| 10 | #error "Included on the wrong platform" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -165,9 +165,8 @@ class CLinuxPlatform : public CFX_GEModule::PlatformIf | ||
| 14 | std::unique_ptr<SystemFontInfoIface> CreateDefaultSystemFontInfo() override { | ||
| 15 | auto pInfo = std::make_unique<CFX_LinuxFontInfo>(); | ||
| 16 | if (!pInfo->ParseFontCfg(CFX_GEModule::Get()->GetUserFontPaths())) { | ||
| 17 | - pInfo->AddPath("/usr/share/fonts"); | ||
| 18 | - pInfo->AddPath("/usr/share/X11/fonts/Type1"); | ||
| 19 | - pInfo->AddPath("/usr/share/X11/fonts/TTF"); | ||
| 20 | + pInfo->AddPath("/usr/X11R6/lib/X11/fonts/Type1"); | ||
| 21 | + pInfo->AddPath("/usr/X11R6/lib/X11/fonts/TTF"); | ||
| 22 | pInfo->AddPath("/usr/local/share/fonts"); | ||
| 23 | } | ||
| 24 | return pInfo; | ||
diff --git a/www/chromium/patches/patch-third_party_pdfium_fxjs_fx_date_helpers_cpp b/www/chromium/patches/patch-third_party_pdfium_fxjs_fx_date_helpers_cpp new file mode 100644 index 0000000..ecca3ec --- /dev/null +++ b/www/chromium/patches/patch-third_party_pdfium_fxjs_fx_date_helpers_cpp | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Index: third_party/pdfium/fxjs/fx_date_helpers.cpp | ||
| 2 | --- third_party/pdfium/fxjs/fx_date_helpers.cpp.orig | ||
| 3 | +++ third_party/pdfium/fxjs/fx_date_helpers.cpp | ||
| 4 | @@ -36,6 +36,11 @@ double GetLocalTZA() { | ||
| 5 | return 0; | ||
| 6 | time_t t = 0; | ||
| 7 | FXSYS_time(&t); | ||
| 8 | +#ifdef __FreeBSD__ | ||
| 9 | + struct tm lt; | ||
| 10 | + localtime_r(&t, <); | ||
| 11 | + return (double)(-(lt.tm_gmtoff * 1000)); | ||
| 12 | +#else | ||
| 13 | FXSYS_localtime(&t); | ||
| 14 | #if BUILDFLAG(IS_WIN) | ||
| 15 | // In gcc 'timezone' is a global variable declared in time.h. In VC++, that | ||
| 16 | @@ -44,6 +49,7 @@ double GetLocalTZA() { | ||
| 17 | _get_timezone(&timezone); | ||
| 18 | #endif | ||
| 19 | return (double)(-(timezone * 1000)); | ||
| 20 | +#endif // __FreeBSD__ | ||
| 21 | } | ||
| 22 | |||
| 23 | int GetDaylightSavingTA(double d) { | ||
diff --git a/www/chromium/patches/patch-third_party_pdfium_xfa_fxfa_parser_cxfa_timezoneprovider_cpp b/www/chromium/patches/patch-third_party_pdfium_xfa_fxfa_parser_cxfa_timezoneprovider_cpp new file mode 100644 index 0000000..a4edea9 --- /dev/null +++ b/www/chromium/patches/patch-third_party_pdfium_xfa_fxfa_parser_cxfa_timezoneprovider_cpp | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | Index: third_party/pdfium/xfa/fxfa/parser/cxfa_timezoneprovider.cpp | ||
| 2 | --- third_party/pdfium/xfa/fxfa/parser/cxfa_timezoneprovider.cpp.orig | ||
| 3 | +++ third_party/pdfium/xfa/fxfa/parser/cxfa_timezoneprovider.cpp | ||
| 4 | @@ -6,12 +6,16 @@ | ||
| 5 | |||
| 6 | #include "xfa/fxfa/parser/cxfa_timezoneprovider.h" | ||
| 7 | |||
| 8 | +#include <stdint.h> | ||
| 9 | #include <stdlib.h> | ||
| 10 | #include <time.h> | ||
| 11 | |||
| 12 | #include "build/build_config.h" | ||
| 13 | |||
| 14 | static bool g_bProviderTimeZoneSet = false; | ||
| 15 | +#if defined(OS_FREEBSD) | ||
| 16 | +static long g_lTimeZoneOffset = 0; | ||
| 17 | +#endif | ||
| 18 | |||
| 19 | #if BUILDFLAG(IS_WIN) | ||
| 20 | #define TIMEZONE _timezone | ||
| 21 | @@ -24,9 +28,21 @@ static bool g_bProviderTimeZoneSet = false; | ||
| 22 | CXFA_TimeZoneProvider::CXFA_TimeZoneProvider() { | ||
| 23 | if (!g_bProviderTimeZoneSet) { | ||
| 24 | g_bProviderTimeZoneSet = true; | ||
| 25 | +#if defined(OS_FREEBSD) | ||
| 26 | + time_t now = time(nullptr); | ||
| 27 | + struct tm tm = {}; | ||
| 28 | + | ||
| 29 | + localtime_r(&now, &tm); | ||
| 30 | + g_lTimeZoneOffset = tm.tm_gmtoff; | ||
| 31 | +#else | ||
| 32 | TZSET(); | ||
| 33 | +#endif | ||
| 34 | } | ||
| 35 | +#if defined(OS_FREEBSD) | ||
| 36 | + tz_minutes_ = static_cast<int8_t>((abs(g_lTimeZoneOffset) % 3600) / 60); | ||
| 37 | +#else | ||
| 38 | tz_minutes_ = TIMEZONE / -60; | ||
| 39 | +#endif | ||
| 40 | } | ||
| 41 | |||
| 42 | CXFA_TimeZoneProvider::~CXFA_TimeZoneProvider() = default; | ||
diff --git a/www/chromium/patches/patch-third_party_perfetto_include_perfetto_base_build_config_h b/www/chromium/patches/patch-third_party_perfetto_include_perfetto_base_build_config_h new file mode 100644 index 0000000..0487df7 --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_include_perfetto_base_build_config_h | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | Index: third_party/perfetto/include/perfetto/base/build_config.h | ||
| 2 | --- third_party/perfetto/include/perfetto/base/build_config.h.orig | ||
| 3 | +++ third_party/perfetto/include/perfetto/base/build_config.h | ||
| 4 | @@ -27,6 +27,7 @@ | ||
| 5 | #if defined(__ANDROID__) | ||
| 6 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_ANDROID() 1 | ||
| 7 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 0 | ||
| 8 | +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_BSD() 0 | ||
| 9 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 0 | ||
| 10 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_APPLE() 0 | ||
| 11 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MAC() 0 | ||
| 12 | @@ -38,6 +39,7 @@ | ||
| 13 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_ANDROID() 0 | ||
| 14 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_APPLE() 1 | ||
| 15 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 0 | ||
| 16 | +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_BSD() 0 | ||
| 17 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 0 | ||
| 18 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WASM() 0 | ||
| 19 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FUCHSIA() 0 | ||
| 20 | @@ -51,9 +53,10 @@ | ||
| 21 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MAC() 1 | ||
| 22 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_IOS() 0 | ||
| 23 | #endif | ||
| 24 | -#elif defined(__linux__) | ||
| 25 | +#elif defined(__linux__) || defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 26 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_ANDROID() 0 | ||
| 27 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 1 | ||
| 28 | +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_BSD() 1 | ||
| 29 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 0 | ||
| 30 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_APPLE() 0 | ||
| 31 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MAC() 0 | ||
| 32 | @@ -64,6 +67,8 @@ | ||
| 33 | #elif defined(_WIN32) | ||
| 34 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_ANDROID() 0 | ||
| 35 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 0 | ||
| 36 | +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_BSD() 0 | ||
| 37 | +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FREEBSD() 0 | ||
| 38 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 1 | ||
| 39 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_APPLE() 0 | ||
| 40 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MAC() 0 | ||
| 41 | @@ -74,6 +79,8 @@ | ||
| 42 | #elif defined(__EMSCRIPTEN__) | ||
| 43 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_ANDROID() 0 | ||
| 44 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 0 | ||
| 45 | +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_BSD() 0 | ||
| 46 | +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FREEBSD() 0 | ||
| 47 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 0 | ||
| 48 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_APPLE() 0 | ||
| 49 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MAC() 0 | ||
| 50 | @@ -87,6 +94,8 @@ | ||
| 51 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MAC() 0 | ||
| 52 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_IOS() 0 | ||
| 53 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 0 | ||
| 54 | +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_BSD() 0 | ||
| 55 | +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FREEBSD() 0 | ||
| 56 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 0 | ||
| 57 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WASM() 0 | ||
| 58 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FUCHSIA() 1 | ||
| 59 | @@ -94,6 +103,8 @@ | ||
| 60 | #elif defined(__native_client__) | ||
| 61 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_ANDROID() 0 | ||
| 62 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 0 | ||
| 63 | +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_BSD() 0 | ||
| 64 | +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FREEBSD() 0 | ||
| 65 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 0 | ||
| 66 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_APPLE() 0 | ||
| 67 | #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MAC() 0 | ||
diff --git a/www/chromium/patches/patch-third_party_perfetto_include_perfetto_base_thread_utils_h b/www/chromium/patches/patch-third_party_perfetto_include_perfetto_base_thread_utils_h new file mode 100644 index 0000000..c32fbee --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_include_perfetto_base_thread_utils_h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Index: third_party/perfetto/include/perfetto/base/thread_utils.h | ||
| 2 | --- third_party/perfetto/include/perfetto/base/thread_utils.h.orig | ||
| 3 | +++ third_party/perfetto/include/perfetto/base/thread_utils.h | ||
| 4 | @@ -34,6 +34,7 @@ __declspec(dllimport) unsigned long __stdcall GetCurre | ||
| 5 | #include <sys/syscall.h> | ||
| 6 | #include <sys/types.h> | ||
| 7 | #include <unistd.h> | ||
| 8 | +#include <pthread.h> | ||
| 9 | #else | ||
| 10 | #include <pthread.h> | ||
| 11 | #endif | ||
| 12 | @@ -45,6 +46,11 @@ namespace base { | ||
| 13 | using PlatformThreadId = pid_t; | ||
| 14 | inline PlatformThreadId GetThreadId() { | ||
| 15 | return gettid(); | ||
| 16 | +} | ||
| 17 | +#elif PERFETTO_BUILDFLAG(PERFETTO_OS_BSD) | ||
| 18 | +using PlatformThreadId = uint64_t; | ||
| 19 | +inline PlatformThreadId GetThreadId() { | ||
| 20 | + return reinterpret_cast<uint64_t>(pthread_self()); | ||
| 21 | } | ||
| 22 | #elif PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) | ||
| 23 | using PlatformThreadId = pid_t; | ||
diff --git a/www/chromium/patches/patch-third_party_perfetto_include_perfetto_base_time_h b/www/chromium/patches/patch-third_party_perfetto_include_perfetto_base_time_h new file mode 100644 index 0000000..68f0115 --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_include_perfetto_base_time_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/perfetto/include/perfetto/base/time.h | ||
| 2 | --- third_party/perfetto/include/perfetto/base/time.h.orig | ||
| 3 | +++ third_party/perfetto/include/perfetto/base/time.h | ||
| 4 | @@ -142,6 +142,9 @@ inline TimeNanos GetTimeInternalNs(clockid_t clk_id) { | ||
| 5 | // Return ns from boot. Conversely to GetWallTimeNs, this clock counts also time | ||
| 6 | // during suspend (when supported). | ||
| 7 | inline TimeNanos GetBootTimeNs() { | ||
| 8 | +#if defined(__FreeBSD__) | ||
| 9 | + return GetTimeInternalNs(kWallTimeClockSource); | ||
| 10 | +#else | ||
| 11 | // Determine if CLOCK_BOOTTIME is available on the first call. | ||
| 12 | static const clockid_t kBootTimeClockSource = [] { | ||
| 13 | struct timespec ts = {}; | ||
| 14 | @@ -149,6 +152,7 @@ inline TimeNanos GetBootTimeNs() { | ||
| 15 | return res == 0 ? CLOCK_BOOTTIME : kWallTimeClockSource; | ||
| 16 | }(); | ||
| 17 | return GetTimeInternalNs(kBootTimeClockSource); | ||
| 18 | +#endif | ||
| 19 | } | ||
| 20 | |||
| 21 | inline TimeNanos GetWallTimeNs() { | ||
diff --git a/www/chromium/patches/patch-third_party_perfetto_include_perfetto_ext_base_event_fd_h b/www/chromium/patches/patch-third_party_perfetto_include_perfetto_ext_base_event_fd_h new file mode 100644 index 0000000..02ba0a6 --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_include_perfetto_ext_base_event_fd_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/perfetto/include/perfetto/ext/base/event_fd.h | ||
| 2 | --- third_party/perfetto/include/perfetto/ext/base/event_fd.h.orig | ||
| 3 | +++ third_party/perfetto/include/perfetto/ext/base/event_fd.h | ||
| 4 | @@ -55,6 +55,8 @@ class EventFd { | ||
| 5 | // On Mac and other non-Linux UNIX platforms a pipe-based fallback is used. | ||
| 6 | // The write end of the wakeup pipe. | ||
| 7 | ScopedFile write_fd_; | ||
| 8 | +#else | ||
| 9 | + ScopedFile write_fd_; | ||
| 10 | #endif | ||
| 11 | }; | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-third_party_perfetto_include_perfetto_ext_base_thread_utils_h b/www/chromium/patches/patch-third_party_perfetto_include_perfetto_ext_base_thread_utils_h new file mode 100644 index 0000000..2d6426e --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_include_perfetto_ext_base_thread_utils_h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: third_party/perfetto/include/perfetto/ext/base/thread_utils.h | ||
| 2 | --- third_party/perfetto/include/perfetto/ext/base/thread_utils.h.orig | ||
| 3 | +++ third_party/perfetto/include/perfetto/ext/base/thread_utils.h | ||
| 4 | @@ -40,9 +40,10 @@ | ||
| 5 | namespace perfetto { | ||
| 6 | namespace base { | ||
| 7 | |||
| 8 | -#if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 9 | +#if (PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 10 | PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) || \ | ||
| 11 | - PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE) | ||
| 12 | + PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE)) && \ | ||
| 13 | + !PERFETTO_BUILDFLAG(PERFETTO_OS_BSD) | ||
| 14 | // Sets the "comm" of the calling thread to the first 15 chars of the given | ||
| 15 | // string. | ||
| 16 | inline bool MaybeSetThreadName(const std::string& name) { | ||
diff --git a/www/chromium/patches/patch-third_party_perfetto_src_base_event_fd_cc b/www/chromium/patches/patch-third_party_perfetto_src_base_event_fd_cc new file mode 100644 index 0000000..72e53fd --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_src_base_event_fd_cc | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Index: third_party/perfetto/src/base/event_fd.cc | ||
| 2 | --- third_party/perfetto/src/base/event_fd.cc.orig | ||
| 3 | +++ third_party/perfetto/src/base/event_fd.cc | ||
| 4 | @@ -22,7 +22,8 @@ | ||
| 5 | #if PERFETTO_BUILDFLAG(PERFETTO_OS_WIN) | ||
| 6 | #include <Windows.h> | ||
| 7 | #include <synchapi.h> | ||
| 8 | -#elif PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 9 | +#elif (PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) && \ | ||
| 10 | + !PERFETTO_BUILDFLAG(PERFETTO_OS_BSD)) || \ | ||
| 11 | PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) | ||
| 12 | #include <sys/eventfd.h> | ||
| 13 | #include <unistd.h> | ||
| 14 | @@ -57,7 +58,8 @@ void EventFd::Clear() { | ||
| 15 | PERFETTO_DFATAL("EventFd::Clear()"); | ||
| 16 | } | ||
| 17 | |||
| 18 | -#elif PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 19 | +#elif (PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) && \ | ||
| 20 | + !PERFETTO_BUILDFLAG(PERFETTO_OS_BSD)) || \ | ||
| 21 | PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) | ||
| 22 | |||
| 23 | EventFd::EventFd() { | ||
diff --git a/www/chromium/patches/patch-third_party_perfetto_src_base_periodic_task_cc b/www/chromium/patches/patch-third_party_perfetto_src_base_periodic_task_cc new file mode 100644 index 0000000..f664863 --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_src_base_periodic_task_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/perfetto/src/base/periodic_task.cc | ||
| 2 | --- third_party/perfetto/src/base/periodic_task.cc.orig | ||
| 3 | +++ third_party/perfetto/src/base/periodic_task.cc | ||
| 4 | @@ -24,7 +24,7 @@ | ||
| 5 | #include "perfetto/base/time.h" | ||
| 6 | #include "perfetto/ext/base/file_utils.h" | ||
| 7 | |||
| 8 | -#if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 9 | +#if (PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) && !PERFETTO_BUILDFLAG(PERFETTO_OS_BSD)) || \ | ||
| 10 | (PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) && __ANDROID_API__ >= 19) | ||
| 11 | #include <sys/timerfd.h> | ||
| 12 | #endif | ||
| 13 | @@ -34,7 +34,7 @@ namespace base { | ||
| 14 | |||
| 15 | namespace { | ||
| 16 | base::ScopedPlatformHandle CreateTimerFd(uint32_t period_ms) { | ||
| 17 | -#if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 18 | +#if (PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) && !PERFETTO_BUILDFLAG(PERFETTO_OS_BSD)) || \ | ||
| 19 | (PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) && __ANDROID_API__ >= 19) | ||
| 20 | base::ScopedPlatformHandle tfd( | ||
| 21 | timerfd_create(CLOCK_BOOTTIME, TFD_CLOEXEC | TFD_NONBLOCK)); | ||
diff --git a/www/chromium/patches/patch-third_party_perfetto_src_base_string_utils_cc b/www/chromium/patches/patch-third_party_perfetto_src_base_string_utils_cc new file mode 100644 index 0000000..fc1d2bf --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_src_base_string_utils_cc | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: third_party/perfetto/src/base/string_utils.cc | ||
| 2 | --- third_party/perfetto/src/base/string_utils.cc.orig | ||
| 3 | +++ third_party/perfetto/src/base/string_utils.cc | ||
| 4 | @@ -36,9 +36,10 @@ namespace base { | ||
| 5 | |||
| 6 | // Locale-independant as possible version of strtod. | ||
| 7 | double StrToD(const char* nptr, char** endptr) { | ||
| 8 | -#if PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) || \ | ||
| 9 | +#if (PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) || \ | ||
| 10 | PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 11 | - PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE) | ||
| 12 | + PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE)) && \ | ||
| 13 | + !PERFETTO_BUILDFLAG(PERFETTO_OS_BSD) | ||
| 14 | static auto c_locale = newlocale(LC_ALL, "C", nullptr); | ||
| 15 | return strtod_l(nptr, endptr, c_locale); | ||
| 16 | #else | ||
diff --git a/www/chromium/patches/patch-third_party_perfetto_src_base_subprocess_posix_cc b/www/chromium/patches/patch-third_party_perfetto_src_base_subprocess_posix_cc new file mode 100644 index 0000000..abaab5d --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_src_base_subprocess_posix_cc | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Index: third_party/perfetto/src/base/subprocess_posix.cc | ||
| 2 | --- third_party/perfetto/src/base/subprocess_posix.cc.orig | ||
| 3 | +++ third_party/perfetto/src/base/subprocess_posix.cc | ||
| 4 | @@ -35,7 +35,8 @@ | ||
| 5 | #include <thread> | ||
| 6 | #include <tuple> | ||
| 7 | |||
| 8 | -#if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 9 | +#if (PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) && \ | ||
| 10 | + !PERFETTO_BUILDFLAG(PERFETTO_OS_BSD)) || \ | ||
| 11 | PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) | ||
| 12 | #include <sys/prctl.h> | ||
| 13 | #endif | ||
| 14 | @@ -64,7 +65,8 @@ struct ChildProcessArgs { | ||
| 15 | // Don't add any dynamic allocation in this function. This will be invoked | ||
| 16 | // under a fork(), potentially in a state where the allocator lock is held. | ||
| 17 | void __attribute__((noreturn)) ChildProcess(ChildProcessArgs* args) { | ||
| 18 | -#if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 19 | +#if (PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) && \ | ||
| 20 | + !PERFETTO_BUILDFLAG(PERFETTO_OS_BSD)) || \ | ||
| 21 | PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) | ||
| 22 | // In no case we want a child process to outlive its parent process. This is | ||
| 23 | // relevant for tests, so that a test failure/crash doesn't leave child | ||
diff --git a/www/chromium/patches/patch-third_party_perfetto_src_base_test_vm_test_utils_cc b/www/chromium/patches/patch-third_party_perfetto_src_base_test_vm_test_utils_cc new file mode 100644 index 0000000..6bd525d --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_src_base_test_vm_test_utils_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/perfetto/src/base/test/vm_test_utils.cc | ||
| 2 | --- third_party/perfetto/src/base/test/vm_test_utils.cc.orig | ||
| 3 | +++ third_party/perfetto/src/base/test/vm_test_utils.cc | ||
| 4 | @@ -92,7 +92,7 @@ bool IsMapped(void* start, size_t size) { | ||
| 5 | // Fuchsia doesn't yet support paging (b/119503290). | ||
| 6 | ignore_result(page_size); | ||
| 7 | return true; | ||
| 8 | -#elif PERFETTO_BUILDFLAG(PERFETTO_OS_NACL) | ||
| 9 | +#elif PERFETTO_BUILDFLAG(PERFETTO_OS_NACL) || PERFETTO_BUILDFLAG(PERFETTO_OS_BSD) | ||
| 10 | // mincore isn't available on NaCL. | ||
| 11 | ignore_result(page_size); | ||
| 12 | return true; | ||
diff --git a/www/chromium/patches/patch-third_party_perfetto_src_base_thread_task_runner_cc b/www/chromium/patches/patch-third_party_perfetto_src_base_thread_task_runner_cc new file mode 100644 index 0000000..f93a7c2 --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_src_base_thread_task_runner_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: third_party/perfetto/src/base/thread_task_runner.cc | ||
| 2 | --- third_party/perfetto/src/base/thread_task_runner.cc.orig | ||
| 3 | +++ third_party/perfetto/src/base/thread_task_runner.cc | ||
| 4 | @@ -27,8 +27,9 @@ | ||
| 5 | #include "perfetto/ext/base/thread_utils.h" | ||
| 6 | #include "perfetto/ext/base/unix_task_runner.h" | ||
| 7 | |||
| 8 | -#if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 9 | - PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) | ||
| 10 | +#if (PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 11 | + PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID)) && \ | ||
| 12 | + !PERFETTO_BUILDFLAG(PERFETTO_OS_BSD) | ||
| 13 | #include <sys/prctl.h> | ||
| 14 | #endif | ||
| 15 | |||
diff --git a/www/chromium/patches/patch-third_party_perfetto_src_base_unix_socket_cc b/www/chromium/patches/patch-third_party_perfetto_src_base_unix_socket_cc new file mode 100644 index 0000000..18bb83f --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_src_base_unix_socket_cc | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | Index: third_party/perfetto/src/base/unix_socket.cc | ||
| 2 | --- third_party/perfetto/src/base/unix_socket.cc.orig | ||
| 3 | +++ third_party/perfetto/src/base/unix_socket.cc | ||
| 4 | @@ -42,7 +42,7 @@ | ||
| 5 | #include <unistd.h> | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE) | ||
| 9 | +#if PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE) || defined(__FreeBSD__) | ||
| 10 | #include <sys/ucred.h> | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -791,9 +791,13 @@ void UnixSocket::ReadPeerCredentialsPosix() { | ||
| 14 | return; | ||
| 15 | PERFETTO_CHECK(peer_cred_mode_ != SockPeerCredMode::kIgnore); | ||
| 16 | |||
| 17 | -#if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 18 | +#if !defined(__FreeBSD__) && PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ | ||
| 19 | PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) | ||
| 20 | +#if PERFETTO_BUILDFLAG(PERFETTO_OS_BSD) | ||
| 21 | + struct sockpeercred user_cred; | ||
| 22 | +#else | ||
| 23 | struct ucred user_cred; | ||
| 24 | +#endif | ||
| 25 | socklen_t len = sizeof(user_cred); | ||
| 26 | int fd = sock_raw_.fd(); | ||
| 27 | int res = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &user_cred, &len); | ||
diff --git a/www/chromium/patches/patch-third_party_perfetto_src_tracing_core_tracing_service_impl_cc b/www/chromium/patches/patch-third_party_perfetto_src_tracing_core_tracing_service_impl_cc new file mode 100644 index 0000000..5d44bc5 --- /dev/null +++ b/www/chromium/patches/patch-third_party_perfetto_src_tracing_core_tracing_service_impl_cc | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/perfetto/src/tracing/core/tracing_service_impl.cc | ||
| 2 | --- third_party/perfetto/src/tracing/core/tracing_service_impl.cc.orig | ||
| 3 | +++ third_party/perfetto/src/tracing/core/tracing_service_impl.cc | ||
| 4 | @@ -3042,7 +3042,8 @@ bool TracingServiceImpl::SnapshotClocks( | ||
| 5 | |||
| 6 | #if !PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE) && \ | ||
| 7 | !PERFETTO_BUILDFLAG(PERFETTO_OS_WIN) && \ | ||
| 8 | - !PERFETTO_BUILDFLAG(PERFETTO_OS_NACL) | ||
| 9 | + !PERFETTO_BUILDFLAG(PERFETTO_OS_NACL) && \ | ||
| 10 | + !PERFETTO_BUILDFLAG(PERFETTO_OS_BSD) | ||
| 11 | struct { | ||
| 12 | clockid_t id; | ||
| 13 | protos::pbzero::BuiltinClock type; | ||
diff --git a/www/chromium/patches/patch-third_party_protobuf_src_google_protobuf_stubs_platform_macros_h b/www/chromium/patches/patch-third_party_protobuf_src_google_protobuf_stubs_platform_macros_h new file mode 100644 index 0000000..492dd20 --- /dev/null +++ b/www/chromium/patches/patch-third_party_protobuf_src_google_protobuf_stubs_platform_macros_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/protobuf/src/google/protobuf/stubs/platform_macros.h | ||
| 2 | --- third_party/protobuf/src/google/protobuf/stubs/platform_macros.h.orig | ||
| 3 | +++ third_party/protobuf/src/google/protobuf/stubs/platform_macros.h | ||
| 4 | @@ -118,7 +118,7 @@ GOOGLE_PROTOBUF_PLATFORM_ERROR | ||
| 5 | |||
| 6 | #undef GOOGLE_PROTOBUF_PLATFORM_ERROR | ||
| 7 | |||
| 8 | -#if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE) || defined(__OpenBSD__) | ||
| 9 | +#if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE) | ||
| 10 | // Android ndk does not support the __thread keyword very well yet. Here | ||
| 11 | // we use pthread_key_create()/pthread_getspecific()/... methods for | ||
| 12 | // TLS support on android. | ||
diff --git a/www/chromium/patches/patch-third_party_protobuf_src_google_protobuf_stubs_strutil_h b/www/chromium/patches/patch-third_party_protobuf_src_google_protobuf_stubs_strutil_h new file mode 100644 index 0000000..6a2e211 --- /dev/null +++ b/www/chromium/patches/patch-third_party_protobuf_src_google_protobuf_stubs_strutil_h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Index: third_party/protobuf/src/google/protobuf/stubs/strutil.h | ||
| 2 | --- third_party/protobuf/src/google/protobuf/stubs/strutil.h.orig | ||
| 3 | +++ third_party/protobuf/src/google/protobuf/stubs/strutil.h | ||
| 4 | @@ -373,13 +373,13 @@ inline uint32 strtou32(const char *nptr, char **endptr | ||
| 5 | inline int64 strto64(const char *nptr, char **endptr, int base) { | ||
| 6 | GOOGLE_COMPILE_ASSERT(sizeof(int64) == sizeof(long long), | ||
| 7 | sizeof_int64_is_not_sizeof_long_long); | ||
| 8 | - return strtoll(nptr, endptr, base); | ||
| 9 | + return std::strtoll(nptr, endptr, base); | ||
| 10 | } | ||
| 11 | |||
| 12 | inline uint64 strtou64(const char *nptr, char **endptr, int base) { | ||
| 13 | GOOGLE_COMPILE_ASSERT(sizeof(uint64) == sizeof(unsigned long long), | ||
| 14 | sizeof_uint64_is_not_sizeof_long_long); | ||
| 15 | - return strtoull(nptr, endptr, base); | ||
| 16 | + return std::strtoull(nptr, endptr, base); | ||
| 17 | } | ||
| 18 | |||
| 19 | // ---------------------------------------------------------------------- | ||
diff --git a/www/chromium/patches/patch-third_party_skia_src_core_SkCpu_cpp b/www/chromium/patches/patch-third_party_skia_src_core_SkCpu_cpp new file mode 100644 index 0000000..bcdaf21 --- /dev/null +++ b/www/chromium/patches/patch-third_party_skia_src_core_SkCpu_cpp | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | Index: third_party/skia/src/core/SkCpu.cpp | ||
| 2 | --- third_party/skia/src/core/SkCpu.cpp.orig | ||
| 3 | +++ third_party/skia/src/core/SkCpu.cpp | ||
| 4 | @@ -73,6 +73,42 @@ | ||
| 5 | return features; | ||
| 6 | } | ||
| 7 | |||
| 8 | +#elif defined(SK_CPU_ARM64) && defined(__OpenBSD__) | ||
| 9 | + #include <sys/sysctl.h> | ||
| 10 | + #include <machine/cpu.h> | ||
| 11 | + #include <machine/armreg.h> | ||
| 12 | + | ||
| 13 | + static uint32_t read_cpu_features() { | ||
| 14 | + int isar0_mib[] = { CTL_MACHDEP, CPU_ID_AA64ISAR0 }; | ||
| 15 | + size_t len = sizeof(uint64_t); | ||
| 16 | + uint64_t cpu_id = 0; | ||
| 17 | + uint32_t features = 0; | ||
| 18 | + | ||
| 19 | + if (sysctl(isar0_mib, 2, &cpu_id, &len, NULL, 0) == 0) { | ||
| 20 | + if (ID_AA64ISAR0_CRC32(cpu_id) >= ID_AA64ISAR0_CRC32_BASE) | ||
| 21 | + features |= SkCpu::CRC32; | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + return features; | ||
| 25 | + } | ||
| 26 | + | ||
| 27 | +#elif defined(SK_CPU_ARM64) && defined(__FreeBSD__) | ||
| 28 | + #include <machine/armreg.h> | ||
| 29 | + #ifndef ID_AA64ISAR0_CRC32_VAL | ||
| 30 | + #define ID_AA64ISAR0_CRC32_VAL ID_AA64ISAR0_CRC32 | ||
| 31 | + #endif | ||
| 32 | + | ||
| 33 | + static uint32_t read_cpu_features() { | ||
| 34 | + uint32_t features = 0; | ||
| 35 | + uint64_t id_aa64isar0; | ||
| 36 | + | ||
| 37 | + id_aa64isar0 = READ_SPECIALREG(id_aa64isar0_el1); | ||
| 38 | + if (ID_AA64ISAR0_CRC32_VAL(id_aa64isar0) == ID_AA64ISAR0_CRC32_BASE) { | ||
| 39 | + features |= SkCpu::CRC32; | ||
| 40 | + } | ||
| 41 | + return features; | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | #elif defined(SK_CPU_ARM64) && __has_include(<sys/auxv.h>) | ||
| 45 | #include <sys/auxv.h> | ||
| 46 | |||
diff --git a/www/chromium/patches/patch-third_party_skia_src_gpu_GrAutoLocaleSetter_h b/www/chromium/patches/patch-third_party_skia_src_gpu_GrAutoLocaleSetter_h new file mode 100644 index 0000000..ad6ba16 --- /dev/null +++ b/www/chromium/patches/patch-third_party_skia_src_gpu_GrAutoLocaleSetter_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/skia/src/gpu/GrAutoLocaleSetter.h | ||
| 2 | --- third_party/skia/src/gpu/GrAutoLocaleSetter.h.orig | ||
| 3 | +++ third_party/skia/src/gpu/GrAutoLocaleSetter.h | ||
| 4 | @@ -27,7 +27,7 @@ | ||
| 5 | #define HAVE_XLOCALE 0 | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if defined(SK_BUILD_FOR_ANDROID) || defined(__UCLIBC__) || defined(_NEWLIB_VERSION) | ||
| 9 | +#if defined(SK_BUILD_FOR_ANDROID) || defined(__UCLIBC__) || defined(_NEWLIB_VERSION) || defined(__OpenBSD__) | ||
| 10 | #define HAVE_LOCALE_T 0 | ||
| 11 | #else | ||
| 12 | #define HAVE_LOCALE_T 1 | ||
diff --git a/www/chromium/patches/patch-third_party_skia_src_ports_SkOSFile_posix_cpp b/www/chromium/patches/patch-third_party_skia_src_ports_SkOSFile_posix_cpp new file mode 100644 index 0000000..61e7723 --- /dev/null +++ b/www/chromium/patches/patch-third_party_skia_src_ports_SkOSFile_posix_cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/skia/src/ports/SkOSFile_posix.cpp | ||
| 2 | --- third_party/skia/src/ports/SkOSFile_posix.cpp.orig | ||
| 3 | +++ third_party/skia/src/ports/SkOSFile_posix.cpp | ||
| 4 | @@ -25,7 +25,7 @@ | ||
| 5 | #endif | ||
| 6 | |||
| 7 | void sk_fsync(FILE* f) { | ||
| 8 | -#if !defined(SK_BUILD_FOR_ANDROID) && !defined(__UCLIBC__) && !defined(_NEWLIB_VERSION) | ||
| 9 | +#if !defined(SK_BUILD_FOR_ANDROID) && !defined(__UCLIBC__) && !defined(_NEWLIB_VERSION) && !defined(__OpenBSD__) | ||
| 10 | int fd = fileno(f); | ||
| 11 | fsync(fd); | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-third_party_sqlite_BUILD_gn b/www/chromium/patches/patch-third_party_sqlite_BUILD_gn new file mode 100644 index 0000000..7f06d86 --- /dev/null +++ b/www/chromium/patches/patch-third_party_sqlite_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/sqlite/BUILD.gn | ||
| 2 | --- third_party/sqlite/BUILD.gn.orig | ||
| 3 | +++ third_party/sqlite/BUILD.gn | ||
| 4 | @@ -142,7 +142,7 @@ config("sqlite_warnings") { | ||
| 5 | ] | ||
| 6 | } | ||
| 7 | } | ||
| 8 | - if (is_linux || is_chromeos) { | ||
| 9 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | cflags += [ | ||
| 11 | # SQLite doesn't believe in compiler warnings, preferring testing. | ||
| 12 | # http://www.sqlite.org/faq.html#q17 | ||
diff --git a/www/chromium/patches/patch-third_party_sqlite_src_amalgamation_sqlite3_c b/www/chromium/patches/patch-third_party_sqlite_src_amalgamation_sqlite3_c new file mode 100644 index 0000000..fb510c0 --- /dev/null +++ b/www/chromium/patches/patch-third_party_sqlite_src_amalgamation_sqlite3_c | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | Index: third_party/sqlite/src/amalgamation/sqlite3.c | ||
| 2 | --- third_party/sqlite/src/amalgamation/sqlite3.c.orig | ||
| 3 | +++ third_party/sqlite/src/amalgamation/sqlite3.c | ||
| 4 | @@ -40896,7 +40896,12 @@ static int unixRandomness(sqlite3_vfs *NotUsed, int nB | ||
| 5 | memset(zBuf, 0, nBuf); | ||
| 6 | randomnessPid = osGetpid(0); | ||
| 7 | #if !defined(SQLITE_TEST) && !defined(SQLITE_OMIT_RANDOMNESS) | ||
| 8 | +#if defined(__OpenBSD__) | ||
| 9 | { | ||
| 10 | + arc4random_buf(zBuf, nBuf); | ||
| 11 | + } | ||
| 12 | +#else | ||
| 13 | + { | ||
| 14 | int fd, got; | ||
| 15 | fd = robust_open("/dev/urandom", O_RDONLY, 0); | ||
| 16 | if( fd<0 ){ | ||
| 17 | @@ -40911,6 +40916,7 @@ static int unixRandomness(sqlite3_vfs *NotUsed, int nB | ||
| 18 | robust_close(0, fd, __LINE__); | ||
| 19 | } | ||
| 20 | } | ||
| 21 | +#endif | ||
| 22 | #endif | ||
| 23 | return nBuf; | ||
| 24 | } | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_Common_Configurator_cpp b/www/chromium/patches/patch-third_party_swiftshader_src_Common_Configurator_cpp new file mode 100644 index 0000000..35eee34 --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_Common_Configurator_cpp | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Index: third_party/swiftshader/src/Common/Configurator.cpp | ||
| 2 | --- third_party/swiftshader/src/Common/Configurator.cpp.orig | ||
| 3 | +++ third_party/swiftshader/src/Common/Configurator.cpp | ||
| 4 | @@ -42,6 +42,10 @@ namespace sw | ||
| 5 | |||
| 6 | bool Configurator::readFile() | ||
| 7 | { | ||
| 8 | +#if defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 9 | + return false; | ||
| 10 | +#endif | ||
| 11 | + | ||
| 12 | #if defined(__unix__) | ||
| 13 | if(access(path.c_str(), R_OK) != 0) | ||
| 14 | { | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_Common_MutexLock_hpp b/www/chromium/patches/patch-third_party_swiftshader_src_Common_MutexLock_hpp new file mode 100644 index 0000000..99761d4 --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_Common_MutexLock_hpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/swiftshader/src/Common/MutexLock.hpp | ||
| 2 | --- third_party/swiftshader/src/Common/MutexLock.hpp.orig | ||
| 3 | +++ third_party/swiftshader/src/Common/MutexLock.hpp | ||
| 4 | @@ -17,7 +17,7 @@ | ||
| 5 | |||
| 6 | #include "Thread.hpp" | ||
| 7 | |||
| 8 | -#if defined(__linux__) | ||
| 9 | +#if defined(__linux__) || defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 10 | // Use a pthread mutex on Linux. Since many processes may use SwiftShader | ||
| 11 | // at the same time it's best to just have the scheduler overhead. | ||
| 12 | #include <pthread.h> | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_Common_SharedLibrary_hpp b/www/chromium/patches/patch-third_party_swiftshader_src_Common_SharedLibrary_hpp new file mode 100644 index 0000000..d6634bf --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_Common_SharedLibrary_hpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/swiftshader/src/Common/SharedLibrary.hpp | ||
| 2 | --- third_party/swiftshader/src/Common/SharedLibrary.hpp.orig | ||
| 3 | +++ third_party/swiftshader/src/Common/SharedLibrary.hpp | ||
| 4 | @@ -97,7 +97,7 @@ void *loadLibrary(const std::string &libraryDirectory, | ||
| 5 | |||
| 6 | inline void *getLibraryHandle(const char *path) | ||
| 7 | { | ||
| 8 | - #ifdef __ANDROID__ | ||
| 9 | + #if defined(__ANDROID__) || defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 10 | // bionic doesn't support RTLD_NOLOAD before L | ||
| 11 | return dlopen(path, RTLD_NOW | RTLD_LOCAL); | ||
| 12 | #else | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_Main_SwiftConfig_cpp b/www/chromium/patches/patch-third_party_swiftshader_src_Main_SwiftConfig_cpp new file mode 100644 index 0000000..7c25ec8 --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_Main_SwiftConfig_cpp | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: third_party/swiftshader/src/Main/SwiftConfig.cpp | ||
| 2 | --- third_party/swiftshader/src/Main/SwiftConfig.cpp.orig | ||
| 3 | +++ third_party/swiftshader/src/Main/SwiftConfig.cpp | ||
| 4 | @@ -764,7 +764,11 @@ namespace sw | ||
| 5 | struct stat status; | ||
| 6 | int lastModified = ini.getInteger("LastModified", "Time", 0); | ||
| 7 | |||
| 8 | +#if !defined(__OpenBSD__) && !defined(__FreeBSD__) | ||
| 9 | bool noConfig = stat("SwiftShader.ini", &status) != 0; | ||
| 10 | +#else | ||
| 11 | + bool noConfig = false; | ||
| 12 | +#endif | ||
| 13 | newConfig = !noConfig && abs((int)status.st_mtime - lastModified) > 1; | ||
| 14 | |||
| 15 | if(disableServerOverride) | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libEGL_Display_cpp b/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libEGL_Display_cpp new file mode 100644 index 0000000..144eb6c --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libEGL_Display_cpp | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/swiftshader/src/OpenGL/libEGL/Display.cpp | ||
| 2 | --- third_party/swiftshader/src/OpenGL/libEGL/Display.cpp.orig | ||
| 3 | +++ third_party/swiftshader/src/OpenGL/libEGL/Display.cpp | ||
| 4 | @@ -677,7 +677,7 @@ bool Display::isValidWindow(EGLNativeWindowType window | ||
| 5 | return status != 0; | ||
| 6 | } | ||
| 7 | return false; | ||
| 8 | - #elif defined(__linux__) | ||
| 9 | + #elif defined(__linux__) || defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 10 | return false; // Non X11 linux is headless only | ||
| 11 | #elif defined(__APPLE__) | ||
| 12 | return sw::OSX::IsValidWindow(window); | ||
| 13 | @@ -855,7 +855,7 @@ sw::Format Display::getDisplayFormat() const | ||
| 14 | { | ||
| 15 | return sw::FORMAT_X8R8G8B8; | ||
| 16 | } | ||
| 17 | - #elif defined(__linux__) // Non X11 linux is headless only | ||
| 18 | + #elif defined(__linux__) || defined(__OpenBSD__) || defined(__FreeBSD__) // Non X11 linux is headless only | ||
| 19 | return sw::FORMAT_A8B8G8R8; | ||
| 20 | #elif defined(__APPLE__) | ||
| 21 | return sw::FORMAT_A8B8G8R8; | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libEGL_Surface_cpp b/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libEGL_Surface_cpp new file mode 100644 index 0000000..442f286 --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libEGL_Surface_cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/swiftshader/src/OpenGL/libEGL/Surface.cpp | ||
| 2 | --- third_party/swiftshader/src/OpenGL/libEGL/Surface.cpp.orig | ||
| 3 | +++ third_party/swiftshader/src/OpenGL/libEGL/Surface.cpp | ||
| 4 | @@ -349,7 +349,7 @@ bool WindowSurface::checkForResize() | ||
| 5 | |||
| 6 | int windowWidth = windowAttributes.width; | ||
| 7 | int windowHeight = windowAttributes.height; | ||
| 8 | - #elif defined(__linux__) | ||
| 9 | + #elif defined(__linux__) || defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 10 | // Non X11 linux is headless only | ||
| 11 | int windowWidth = 100; | ||
| 12 | int windowHeight = 100; | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libEGL_libEGL_cpp b/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libEGL_libEGL_cpp new file mode 100644 index 0000000..3198c9e --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libEGL_libEGL_cpp | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: third_party/swiftshader/src/OpenGL/libEGL/libEGL.cpp | ||
| 2 | --- third_party/swiftshader/src/OpenGL/libEGL/libEGL.cpp.orig | ||
| 3 | +++ third_party/swiftshader/src/OpenGL/libEGL/libEGL.cpp | ||
| 4 | @@ -153,7 +153,7 @@ EGLDisplay EGLAPIENTRY GetDisplay(EGLNativeDisplayType | ||
| 5 | // FIXME: Check if display_id is the default display | ||
| 6 | } | ||
| 7 | |||
| 8 | - #if defined(__linux__) && !defined(__ANDROID__) | ||
| 9 | + #if (defined(__OpenBSD__) || defined(__linux__) || defined(__FreeBSD__)) && !defined(__ANDROID__) | ||
| 10 | #if defined(SWIFTSHADER_USE_X11) | ||
| 11 | if(!libX11) | ||
| 12 | #endif // Non X11 linux is headless only | ||
| 13 | @@ -216,7 +216,7 @@ const char *EGLAPIENTRY QueryString(EGLDisplay dpy, EG | ||
| 14 | { | ||
| 15 | return success( | ||
| 16 | "EGL_KHR_client_get_all_proc_addresses " | ||
| 17 | -#if defined(__linux__) && !defined(__ANDROID__) | ||
| 18 | +#if (defined(__OpenBSD__) || defined(__linux__) || defined(__FreeBSD__)) && !defined(__ANDROID__) | ||
| 19 | "EGL_KHR_platform_gbm " | ||
| 20 | #endif | ||
| 21 | #if defined(SWIFTSHADER_USE_X11) | ||
| 22 | @@ -1307,7 +1307,7 @@ EGLDisplay EGLAPIENTRY GetPlatformDisplay(EGLenum plat | ||
| 23 | { | ||
| 24 | TRACE("(EGLenum platform = 0x%X, void *native_display = %p, const EGLAttrib *attrib_list = %p)", platform, native_display, attrib_list); | ||
| 25 | |||
| 26 | - #if defined(__linux__) && !defined(__ANDROID__) | ||
| 27 | + #if (defined(__OpenBSD__) || defined(__linux__) || defined(__FreeBSD__)) && !defined(__ANDROID__) | ||
| 28 | switch(platform) | ||
| 29 | { | ||
| 30 | #if defined(SWIFTSHADER_USE_X11) | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libEGL_libEGL_hpp b/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libEGL_libEGL_hpp new file mode 100644 index 0000000..44d73e9 --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libEGL_libEGL_hpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/swiftshader/src/OpenGL/libEGL/libEGL.hpp | ||
| 2 | --- third_party/swiftshader/src/OpenGL/libEGL/libEGL.hpp.orig | ||
| 3 | +++ third_party/swiftshader/src/OpenGL/libEGL/libEGL.hpp | ||
| 4 | @@ -100,7 +100,7 @@ class LibEGL (private) | ||
| 5 | #endif | ||
| 6 | #elif defined(__ANDROID__) | ||
| 7 | const char *libEGL_lib[] = {"libEGL_swiftshader.so", "libEGL_swiftshader.so"}; | ||
| 8 | - #elif defined(__linux__) | ||
| 9 | + #elif defined(__linux__) || defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 10 | #if defined(__LP64__) | ||
| 11 | const char *libEGL_lib[] = {"lib64EGL_translator.so", "libEGL.so.1", "libEGL.so", "libEGL_deprecated.so.1", "libEGL_deprecated.so"}; | ||
| 12 | #else | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libGLESv2_libGLESv2_hpp b/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libGLESv2_libGLESv2_hpp new file mode 100644 index 0000000..1eb4551 --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_OpenGL_libGLESv2_libGLESv2_hpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/swiftshader/src/OpenGL/libGLESv2/libGLESv2.hpp | ||
| 2 | --- third_party/swiftshader/src/OpenGL/libGLESv2/libGLESv2.hpp.orig | ||
| 3 | +++ third_party/swiftshader/src/OpenGL/libGLESv2/libGLESv2.hpp | ||
| 4 | @@ -286,7 +286,7 @@ class LibGLESv2 (private) | ||
| 5 | #endif | ||
| 6 | #elif defined(__ANDROID__) | ||
| 7 | const char *libGLESv2_lib[] = {"libGLESv2_swiftshader.so", "libGLESv2_swiftshader.so"}; | ||
| 8 | - #elif defined(__linux__) | ||
| 9 | + #elif defined(__linux__) || defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 10 | #if defined(__LP64__) | ||
| 11 | const char *libGLESv2_lib[] = {"lib64GLES_V2_translator.so", "libGLESv2.so.2", "libGLESv2.so", "libGLESv2_deprecated.so.2", "libGLESv2_deprecated.so"}; | ||
| 12 | #else | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_Reactor_Debug_cpp b/www/chromium/patches/patch-third_party_swiftshader_src_Reactor_Debug_cpp new file mode 100644 index 0000000..54718f4 --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_Reactor_Debug_cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/swiftshader/src/Reactor/Debug.cpp | ||
| 2 | --- third_party/swiftshader/src/Reactor/Debug.cpp.orig | ||
| 3 | +++ third_party/swiftshader/src/Reactor/Debug.cpp | ||
| 4 | @@ -46,7 +46,7 @@ namespace { | ||
| 5 | |||
| 6 | bool IsUnderDebugger() | ||
| 7 | { | ||
| 8 | -#if defined(PTRACE) && !defined(__APPLE__) && !defined(__MACH__) | ||
| 9 | +#if defined(PTRACE) && !defined(__APPLE__) && !defined(__MACH__) && !defined(__OpenBSD__) && !defined(__FreeBSD__) | ||
| 10 | static bool checked = false; | ||
| 11 | static bool res = false; | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_System_SharedLibrary_hpp b/www/chromium/patches/patch-third_party_swiftshader_src_System_SharedLibrary_hpp new file mode 100644 index 0000000..948545c --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_System_SharedLibrary_hpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/swiftshader/src/System/SharedLibrary.hpp | ||
| 2 | --- third_party/swiftshader/src/System/SharedLibrary.hpp.orig | ||
| 3 | +++ third_party/swiftshader/src/System/SharedLibrary.hpp | ||
| 4 | @@ -96,7 +96,7 @@ inline void *loadLibrary(const char *path) | ||
| 5 | |||
| 6 | inline void *getLibraryHandle(const char *path) | ||
| 7 | { | ||
| 8 | -# ifdef __ANDROID__ | ||
| 9 | +# if defined(__ANDROID__) || defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 10 | // bionic doesn't support RTLD_NOLOAD before L | ||
| 11 | return dlopen(path, RTLD_NOW | RTLD_LOCAL); | ||
| 12 | # else | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_Vulkan_VkSemaphoreExternalLinux_hpp b/www/chromium/patches/patch-third_party_swiftshader_src_Vulkan_VkSemaphoreExternalLinux_hpp new file mode 100644 index 0000000..b33cd93 --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_Vulkan_VkSemaphoreExternalLinux_hpp | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: third_party/swiftshader/src/Vulkan/VkSemaphoreExternalLinux.hpp | ||
| 2 | --- third_party/swiftshader/src/Vulkan/VkSemaphoreExternalLinux.hpp.orig | ||
| 3 | +++ third_party/swiftshader/src/Vulkan/VkSemaphoreExternalLinux.hpp | ||
| 4 | @@ -49,13 +49,17 @@ class SharedSemaphore (public) | ||
| 5 | { | ||
| 6 | pthread_mutexattr_t mattr; | ||
| 7 | pthread_mutexattr_init(&mattr); | ||
| 8 | +#if 0 | ||
| 9 | pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED); | ||
| 10 | +#endif | ||
| 11 | pthread_mutex_init(&mutex, &mattr); | ||
| 12 | pthread_mutexattr_destroy(&mattr); | ||
| 13 | |||
| 14 | pthread_condattr_t cattr; | ||
| 15 | pthread_condattr_init(&cattr); | ||
| 16 | +#if 0 | ||
| 17 | pthread_condattr_setpshared(&cattr, PTHREAD_PROCESS_SHARED); | ||
| 18 | +#endif | ||
| 19 | pthread_cond_init(&cond, &cattr); | ||
| 20 | pthread_condattr_destroy(&cattr); | ||
| 21 | } | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_src_WSI_libXCB_cpp b/www/chromium/patches/patch-third_party_swiftshader_src_WSI_libXCB_cpp new file mode 100644 index 0000000..d345570 --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_src_WSI_libXCB_cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/swiftshader/src/WSI/libXCB.cpp | ||
| 2 | --- third_party/swiftshader/src/WSI/libXCB.cpp.orig | ||
| 3 | +++ third_party/swiftshader/src/WSI/libXCB.cpp | ||
| 4 | @@ -55,7 +55,7 @@ LibXcbExports *LibXCB::loadExports() | ||
| 5 | } | ||
| 6 | else | ||
| 7 | { | ||
| 8 | - libxcb = loadLibrary("libxcb.so.1"); | ||
| 9 | + libxcb = loadLibrary("libxcb.so"); | ||
| 10 | } | ||
| 11 | |||
| 12 | if(getProcAddress(RTLD_DEFAULT, "xcb_shm_query_version")) // Search the global scope for pre-loaded XCB library. | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_third_party_llvm-10_0_configs_linux_include_llvm_Config_config_h b/www/chromium/patches/patch-third_party_swiftshader_third_party_llvm-10_0_configs_linux_include_llvm_Config_config_h new file mode 100644 index 0000000..be77e14 --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_third_party_llvm-10_0_configs_linux_include_llvm_Config_config_h | |||
| @@ -0,0 +1,214 @@ | |||
| 1 | Index: third_party/swiftshader/third_party/llvm-10.0/configs/linux/include/llvm/Config/config.h | ||
| 2 | --- third_party/swiftshader/third_party/llvm-10.0/configs/linux/include/llvm/Config/config.h.orig | ||
| 3 | +++ third_party/swiftshader/third_party/llvm-10.0/configs/linux/include/llvm/Config/config.h | ||
| 4 | @@ -1,20 +1,19 @@ | ||
| 5 | +/* include/llvm/Config/config.h.cmake corresponding to config.h.in. */ | ||
| 6 | + | ||
| 7 | #ifndef CONFIG_H | ||
| 8 | #define CONFIG_H | ||
| 9 | |||
| 10 | /* Exported configuration */ | ||
| 11 | #include "llvm/Config/llvm-config.h" | ||
| 12 | |||
| 13 | -/* For detecting __GLIBC__ usage */ | ||
| 14 | -#include <features.h> | ||
| 15 | - | ||
| 16 | /* Bug report URL. */ | ||
| 17 | #define BUG_REPORT_URL "https://bugs.llvm.org/" | ||
| 18 | |||
| 19 | /* Define to 1 to enable backtraces, and to 0 otherwise. */ | ||
| 20 | -/* #undef ENABLE_BACKTRACES */ | ||
| 21 | +#define ENABLE_BACKTRACES 1 | ||
| 22 | |||
| 23 | /* Define to 1 to enable crash overrides, and to 0 otherwise. */ | ||
| 24 | -/* #undef ENABLE_CRASH_OVERRIDES */ | ||
| 25 | +#define ENABLE_CRASH_OVERRIDES 1 | ||
| 26 | |||
| 27 | /* Define to 1 to enable crash memory dumps, and to 0 otherwise. */ | ||
| 28 | #define LLVM_ENABLE_CRASH_DUMPS 0 | ||
| 29 | @@ -25,14 +24,14 @@ | ||
| 30 | /* #undef BACKTRACE_HEADER */ | ||
| 31 | |||
| 32 | /* Define to 1 if you have the <CrashReporterClient.h> header file. */ | ||
| 33 | -/* #undef HAVE_CRASHREPORTERCLIENT_H */ | ||
| 34 | +#undef HAVE_CRASHREPORTERCLIENT_H | ||
| 35 | |||
| 36 | /* can use __crashreporter_info__ */ | ||
| 37 | #define HAVE_CRASHREPORTER_INFO 0 | ||
| 38 | |||
| 39 | /* Define to 1 if you have the declaration of `arc4random', and to 0 if you | ||
| 40 | don't. */ | ||
| 41 | -#define HAVE_DECL_ARC4RANDOM 0 | ||
| 42 | +#define HAVE_DECL_ARC4RANDOM 1 | ||
| 43 | |||
| 44 | /* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you | ||
| 45 | don't. */ | ||
| 46 | @@ -56,7 +55,7 @@ | ||
| 47 | #define HAVE_DLOPEN 1 | ||
| 48 | |||
| 49 | /* Define if dladdr() is available on this platform. */ | ||
| 50 | -/* #undef HAVE_DLADDR */ | ||
| 51 | +#define HAVE_DLADDR 1 | ||
| 52 | |||
| 53 | /* Define to 1 if you have the <errno.h> header file. */ | ||
| 54 | #define HAVE_ERRNO_H 1 | ||
| 55 | @@ -95,7 +94,7 @@ | ||
| 56 | #define HAVE_ISATTY 1 | ||
| 57 | |||
| 58 | /* Define to 1 if you have the `edit' library (-ledit). */ | ||
| 59 | -/* #undef HAVE_LIBEDIT */ | ||
| 60 | +#define HAVE_LIBEDIT 1 | ||
| 61 | |||
| 62 | /* Define to 1 if you have the `pfm' library (-lpfm). */ | ||
| 63 | /* #undef HAVE_LIBPFM */ | ||
| 64 | @@ -113,13 +112,13 @@ | ||
| 65 | /* #undef HAVE_PTHREAD_SETNAME_NP */ | ||
| 66 | |||
| 67 | /* Define to 1 if you have the `z' library (-lz). */ | ||
| 68 | -/* #undef HAVE_LIBZ */ | ||
| 69 | +#define HAVE_LIBZ 1 | ||
| 70 | |||
| 71 | /* Define to 1 if you have the <link.h> header file. */ | ||
| 72 | -#define HAVE_LINK_H 1 | ||
| 73 | +/* #undef HAVE_LINK_H */ | ||
| 74 | |||
| 75 | /* Define to 1 if you have the `lseek64' function. */ | ||
| 76 | -#define HAVE_LSEEK64 1 | ||
| 77 | +/* #undef HAVE_LSEEK64 */ | ||
| 78 | |||
| 79 | /* Define to 1 if you have the <mach/mach.h> header file. */ | ||
| 80 | /* #undef HAVE_MACH_MACH_H */ | ||
| 81 | @@ -127,15 +126,9 @@ | ||
| 82 | /* Define to 1 if you have the `mallctl' function. */ | ||
| 83 | /* #undef HAVE_MALLCTL */ | ||
| 84 | |||
| 85 | -/* Define to 1 if you have the `mallinfo' function. */ | ||
| 86 | -#define HAVE_MALLINFO 1 | ||
| 87 | +/* Define if mallinfo() is available on this platform. */ | ||
| 88 | +/* #undef HAVE_MALLINFO */ | ||
| 89 | |||
| 90 | -/* Some projects using SwiftShader bypass cmake (eg Chromium via gn) */ | ||
| 91 | -/* so we need to check glibc version for the new API to be safe */ | ||
| 92 | -#if defined(__GLIBC__) && __GLIBC_MINOR__ >= 33 | ||
| 93 | -#define HAVE_MALLINFO2 1 | ||
| 94 | -#endif | ||
| 95 | - | ||
| 96 | /* Define to 1 if you have the <malloc/malloc.h> header file. */ | ||
| 97 | /* #undef HAVE_MALLOC_MALLOC_H */ | ||
| 98 | |||
| 99 | @@ -143,10 +136,10 @@ | ||
| 100 | /* #undef HAVE_MALLOC_ZONE_STATISTICS */ | ||
| 101 | |||
| 102 | /* Define to 1 if you have the `posix_fallocate' function. */ | ||
| 103 | -#define HAVE_POSIX_FALLOCATE 1 | ||
| 104 | +/* #undef HAVE_POSIX_FALLOCATE */ | ||
| 105 | |||
| 106 | /* Define to 1 if you have the `posix_spawn' function. */ | ||
| 107 | -/* #undef HAVE_POSIX_SPAWN */ | ||
| 108 | +#define HAVE_POSIX_SPAWN 1 | ||
| 109 | |||
| 110 | /* Define to 1 if you have the `pread' function. */ | ||
| 111 | #define HAVE_PREAD 1 | ||
| 112 | @@ -170,10 +163,10 @@ | ||
| 113 | #define HAVE_SETENV 1 | ||
| 114 | |||
| 115 | /* Define to 1 if you have the `sched_getaffinity' function. */ | ||
| 116 | -#define HAVE_SCHED_GETAFFINITY 1 | ||
| 117 | +/* #undef HAVE_SCHED_GETAFFINITY */ | ||
| 118 | |||
| 119 | /* Define to 1 if you have the `CPU_COUNT' macro. */ | ||
| 120 | -#define HAVE_CPU_COUNT 1 | ||
| 121 | +/* #undef HAVE_CPU_COUNT */ | ||
| 122 | |||
| 123 | /* Define to 1 if you have the `setrlimit' function. */ | ||
| 124 | #define HAVE_SETRLIMIT 1 | ||
| 125 | @@ -191,7 +184,7 @@ | ||
| 126 | #define HAVE_STRERROR_R 1 | ||
| 127 | |||
| 128 | /* Define to 1 if you have the `sysconf' function. */ | ||
| 129 | -#define HAVE_SYSCONF 1 | ||
| 130 | +/* #undef HAVE_SYSCONF */ | ||
| 131 | |||
| 132 | /* Define to 1 if you have the <sys/ioctl.h> header file. */ | ||
| 133 | #define HAVE_SYS_IOCTL_H 1 | ||
| 134 | @@ -218,7 +211,7 @@ | ||
| 135 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | ||
| 136 | |||
| 137 | /* Define to 1 if you have the <sys/types.h> header file. */ | ||
| 138 | -#define HAVE_SYS_TYPES_H 1 | ||
| 139 | +/* #undef HAVE_SYS_TYPES_H */ | ||
| 140 | |||
| 141 | /* Define if the setupterm() function is supported this platform. */ | ||
| 142 | /* #undef HAVE_TERMINFO */ | ||
| 143 | @@ -227,16 +220,16 @@ | ||
| 144 | /* #undef HAVE_LIBXAR */ | ||
| 145 | |||
| 146 | /* Define to 1 if you have the <termios.h> header file. */ | ||
| 147 | -/* #undef HAVE_TERMIOS_H */ | ||
| 148 | +#define HAVE_TERMIOS_H 1 | ||
| 149 | |||
| 150 | /* Define to 1 if you have the <unistd.h> header file. */ | ||
| 151 | #define HAVE_UNISTD_H 1 | ||
| 152 | |||
| 153 | /* Define to 1 if you have the <valgrind/valgrind.h> header file. */ | ||
| 154 | -/* #undef HAVE_VALGRIND_VALGRIND_H */ | ||
| 155 | +/* #define HAVE_VALGRIND_VALGRIND_H 1 */ | ||
| 156 | |||
| 157 | /* Define to 1 if you have the <zlib.h> header file. */ | ||
| 158 | -/* #undef HAVE_ZLIB_H */ | ||
| 159 | +#define HAVE_ZLIB_H 1 | ||
| 160 | |||
| 161 | /* Have host's _alloca */ | ||
| 162 | /* #undef HAVE__ALLOCA */ | ||
| 163 | @@ -303,26 +296,10 @@ | ||
| 164 | |||
| 165 | /* Target triple LLVM will generate code for by default */ | ||
| 166 | /* Doesn't use `cmakedefine` because it is allowed to be empty. */ | ||
| 167 | -#if defined(__x86_64__) | ||
| 168 | -#define LLVM_DEFAULT_TARGET_TRIPLE "x86_64-unknown-linux-gnu" | ||
| 169 | -#elif defined(__i386__) | ||
| 170 | -#define LLVM_DEFAULT_TARGET_TRIPLE "i686-pc-linux-gnu" | ||
| 171 | -#elif defined(__arm__) | ||
| 172 | -#define LLVM_DEFAULT_TARGET_TRIPLE "armv7-linux-gnueabihf" | ||
| 173 | -#elif defined(__aarch64__) | ||
| 174 | -#define LLVM_DEFAULT_TARGET_TRIPLE "aarch64-linux-gnu" | ||
| 175 | -#elif defined(__mips__) | ||
| 176 | -#define LLVM_DEFAULT_TARGET_TRIPLE "mipsel-linux-gnu" | ||
| 177 | -#elif defined(__mips64) | ||
| 178 | -#define LLVM_DEFAULT_TARGET_TRIPLE "mips64el-linux-gnuabi64" | ||
| 179 | -#elif defined(__powerpc64__) | ||
| 180 | -#define LLVM_DEFAULT_TARGET_TRIPLE "powerpc64le-unknown-linux-gnu" | ||
| 181 | -#else | ||
| 182 | -#error "unknown architecture" | ||
| 183 | -#endif | ||
| 184 | +/* #define LLVM_DEFAULT_TARGET_TRIPLE "amd64-unknown-openbsd6.8" */ | ||
| 185 | |||
| 186 | /* Define if zlib compression is available */ | ||
| 187 | -#define LLVM_ENABLE_ZLIB 0 | ||
| 188 | +/* #define LLVM_ENABLE_ZLIB 1 */ | ||
| 189 | |||
| 190 | /* Define if overriding target triple is enabled */ | ||
| 191 | /* #undef LLVM_TARGET_TRIPLE_ENV */ | ||
| 192 | @@ -346,10 +323,10 @@ | ||
| 193 | #define PACKAGE_NAME "LLVM" | ||
| 194 | |||
| 195 | /* Define to the full name and version of this package. */ | ||
| 196 | -#define PACKAGE_STRING "LLVM 10.0.0" | ||
| 197 | +#define PACKAGE_STRING "LLVM 11.1.0" | ||
| 198 | |||
| 199 | /* Define to the version of this package. */ | ||
| 200 | -#define PACKAGE_VERSION "10.0.0" | ||
| 201 | +#define PACKAGE_VERSION "11.1.0" | ||
| 202 | |||
| 203 | /* Define to the vendor of this package. */ | ||
| 204 | /* #undef PACKAGE_VENDOR */ | ||
| 205 | @@ -368,9 +345,6 @@ | ||
| 206 | |||
| 207 | /* Whether GlobalISel rule coverage is being collected */ | ||
| 208 | #define LLVM_GISEL_COV_ENABLED 0 | ||
| 209 | - | ||
| 210 | -/* Define if we have z3 and want to build it */ | ||
| 211 | -#define LLVM_WITH_Z3 1 | ||
| 212 | |||
| 213 | /* Define to the default GlobalISel coverage file prefix */ | ||
| 214 | /* #undef LLVM_GISEL_COV_PREFIX */ | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_third_party_llvm-subzero_build_Linux_include_llvm_Config_config_h b/www/chromium/patches/patch-third_party_swiftshader_third_party_llvm-subzero_build_Linux_include_llvm_Config_config_h new file mode 100644 index 0000000..6c1c33a --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_third_party_llvm-subzero_build_Linux_include_llvm_Config_config_h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | Index: third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h | ||
| 2 | --- third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h.orig | ||
| 3 | +++ third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h | ||
| 4 | @@ -5,8 +5,6 @@ | ||
| 5 | #include "llvm/Config/llvm-config.h" | ||
| 6 | |||
| 7 | /* For detecting __GLIBC__ usage */ | ||
| 8 | -#include <features.h> | ||
| 9 | - | ||
| 10 | /* Bug report URL. */ | ||
| 11 | #define BUG_REPORT_URL "http://llvm.org/bugs/" | ||
| 12 | |||
| 13 | @@ -27,7 +25,7 @@ | ||
| 14 | |||
| 15 | /* Define to 1 if you have the declaration of `arc4random', and to 0 if you | ||
| 16 | don't. */ | ||
| 17 | -#define HAVE_DECL_ARC4RANDOM 0 | ||
| 18 | +#define HAVE_DECL_ARC4RANDOM 1 | ||
| 19 | |||
| 20 | /* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you | ||
| 21 | don't. */ | ||
| 22 | @@ -124,7 +122,7 @@ | ||
| 23 | #define HAVE_LINK_H 1 | ||
| 24 | |||
| 25 | /* Define to 1 if you have the `lseek64' function. */ | ||
| 26 | -#define HAVE_LSEEK64 1 | ||
| 27 | +/* #define HAVE_LSEEK64 */ | ||
| 28 | |||
| 29 | /* Define to 1 if you have the <mach/mach.h> header file. */ | ||
| 30 | /* #undef HAVE_MACH_MACH_H */ | ||
| 31 | @@ -133,7 +131,7 @@ | ||
| 32 | /* #undef HAVE_MALLCTL */ | ||
| 33 | |||
| 34 | /* Define to 1 if you have the `mallinfo' function. */ | ||
| 35 | -#define HAVE_MALLINFO 1 | ||
| 36 | +/* #define HAVE_MALLINFO */ | ||
| 37 | |||
| 38 | /* Some projects using SwiftShader bypass cmake (eg Chromium via gn) */ | ||
| 39 | /* so we need to check glibc version for the new API to be safe */ | ||
| 40 | @@ -163,7 +161,7 @@ | ||
| 41 | /* #undef HAVE_NDIR_H */ | ||
| 42 | |||
| 43 | /* Define to 1 if you have the `posix_fallocate' function. */ | ||
| 44 | -#define HAVE_POSIX_FALLOCATE 1 | ||
| 45 | +/* #define HAVE_POSIX_FALLOCATE */ | ||
| 46 | |||
| 47 | /* Define to 1 if you have the `posix_spawn' function. */ | ||
| 48 | #define HAVE_POSIX_SPAWN 1 | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_third_party_marl_src_memory_cpp b/www/chromium/patches/patch-third_party_swiftshader_third_party_marl_src_memory_cpp new file mode 100644 index 0000000..1810838 --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_third_party_marl_src_memory_cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/swiftshader/third_party/marl/src/memory.cpp | ||
| 2 | --- third_party/swiftshader/third_party/marl/src/memory.cpp.orig | ||
| 3 | +++ third_party/swiftshader/third_party/marl/src/memory.cpp | ||
| 4 | @@ -19,7 +19,7 @@ | ||
| 5 | |||
| 6 | #include <cstring> | ||
| 7 | |||
| 8 | -#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) | ||
| 9 | +#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) | ||
| 10 | #include <sys/mman.h> | ||
| 11 | #include <unistd.h> | ||
| 12 | namespace { | ||
diff --git a/www/chromium/patches/patch-third_party_swiftshader_third_party_marl_src_thread_cpp b/www/chromium/patches/patch-third_party_swiftshader_third_party_marl_src_thread_cpp new file mode 100644 index 0000000..a5ca390 --- /dev/null +++ b/www/chromium/patches/patch-third_party_swiftshader_third_party_marl_src_thread_cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/swiftshader/third_party/marl/src/thread.cpp | ||
| 2 | --- third_party/swiftshader/third_party/marl/src/thread.cpp.orig | ||
| 3 | +++ third_party/swiftshader/third_party/marl/src/thread.cpp | ||
| 4 | @@ -426,7 +426,7 @@ void Thread::setName(const char* fmt, ...) { | ||
| 5 | pthread_setname_np(name); | ||
| 6 | #elif defined(__FreeBSD__) | ||
| 7 | pthread_set_name_np(pthread_self(), name); | ||
| 8 | -#elif !defined(__Fuchsia__) | ||
| 9 | +#elif !defined(__Fuchsia__) && !defined(__OpenBSD__) && !defined(__FreeBSD__) | ||
| 10 | pthread_setname_np(pthread_self(), name); | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-third_party_test_fonts_fontconfig_BUILD_gn b/www/chromium/patches/patch-third_party_test_fonts_fontconfig_BUILD_gn new file mode 100644 index 0000000..10e8674 --- /dev/null +++ b/www/chromium/patches/patch-third_party_test_fonts_fontconfig_BUILD_gn | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: third_party/test_fonts/fontconfig/BUILD.gn | ||
| 2 | --- third_party/test_fonts/fontconfig/BUILD.gn.orig | ||
| 3 | +++ third_party/test_fonts/fontconfig/BUILD.gn | ||
| 4 | @@ -26,7 +26,11 @@ if (is_linux || is_chromeos) { | ||
| 5 | |||
| 6 | copy("fonts_conf") { | ||
| 7 | sources = [ "fonts.conf" ] | ||
| 8 | - outputs = [ "$root_out_dir/etc/fonts/{{source_file_part}}" ] | ||
| 9 | + if (is_freebsd) { | ||
| 10 | + outputs = [ "$root_out_dir/usr/local/etc/fonts/{{source_file_part}}" ] | ||
| 11 | + } else { | ||
| 12 | + outputs = [ "$root_out_dir/etc/fonts/{{source_file_part}}" ] | ||
| 13 | + } | ||
| 14 | } | ||
| 15 | |||
| 16 | if (current_toolchain == host_toolchain) { | ||
diff --git a/www/chromium/patches/patch-third_party_test_fonts_fontconfig_fontconfig_util_linux_cc b/www/chromium/patches/patch-third_party_test_fonts_fontconfig_fontconfig_util_linux_cc new file mode 100644 index 0000000..fef3b69 --- /dev/null +++ b/www/chromium/patches/patch-third_party_test_fonts_fontconfig_fontconfig_util_linux_cc | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | Index: third_party/test_fonts/fontconfig/fontconfig_util_linux.cc | ||
| 2 | --- third_party/test_fonts/fontconfig/fontconfig_util_linux.cc.orig | ||
| 3 | +++ third_party/test_fonts/fontconfig/fontconfig_util_linux.cc | ||
| 4 | @@ -2,6 +2,8 @@ | ||
| 5 | // Use of this source code is governed by a BSD-style license that can be | ||
| 6 | // found in the LICENSE file. | ||
| 7 | |||
| 8 | +#include "build/build_config.h" | ||
| 9 | + | ||
| 10 | #include "third_party/test_fonts/fontconfig/fontconfig_util_linux.h" | ||
| 11 | |||
| 12 | #include <fontconfig/fontconfig.h> | ||
| 13 | @@ -15,11 +17,15 @@ | ||
| 14 | namespace test_fonts { | ||
| 15 | |||
| 16 | std::string GetSysrootDir() { | ||
| 17 | +#if BUILDFLAG(IS_BSD) | ||
| 18 | + return std::string("."); | ||
| 19 | +#else | ||
| 20 | char buf[PATH_MAX + 1]; | ||
| 21 | auto count = readlink("/proc/self/exe", buf, PATH_MAX); | ||
| 22 | assert(count > 0); | ||
| 23 | buf[count] = '\0'; | ||
| 24 | return dirname(buf); | ||
| 25 | +#endif | ||
| 26 | } | ||
| 27 | |||
| 28 | void SetUpFontconfig() { | ||
diff --git a/www/chromium/patches/patch-third_party_unrar_src_crypt_cpp b/www/chromium/patches/patch-third_party_unrar_src_crypt_cpp new file mode 100644 index 0000000..e8a3af4 --- /dev/null +++ b/www/chromium/patches/patch-third_party_unrar_src_crypt_cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/unrar/src/crypt.cpp | ||
| 2 | --- third_party/unrar/src/crypt.cpp.orig | ||
| 3 | +++ third_party/unrar/src/crypt.cpp | ||
| 4 | @@ -120,6 +120,8 @@ void GetRnd(byte *RndBuf,size_t BufSize) | ||
| 5 | Success=CryptGenRandom(hProvider, (DWORD)BufSize, RndBuf) == TRUE; | ||
| 6 | CryptReleaseContext(hProvider, 0); | ||
| 7 | } | ||
| 8 | +#elif defined(__OpenBSD__) | ||
| 9 | + arc4random_buf(RndBuf, BufSize); | ||
| 10 | #elif defined(_UNIX) | ||
| 11 | FILE *rndf = fopen("/dev/urandom", "r"); | ||
| 12 | if (rndf!=NULL) | ||
diff --git a/www/chromium/patches/patch-third_party_usrsctp_BUILD_gn b/www/chromium/patches/patch-third_party_usrsctp_BUILD_gn new file mode 100644 index 0000000..3752b4f --- /dev/null +++ b/www/chromium/patches/patch-third_party_usrsctp_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/usrsctp/BUILD.gn | ||
| 2 | --- third_party/usrsctp/BUILD.gn.orig | ||
| 3 | +++ third_party/usrsctp/BUILD.gn | ||
| 4 | @@ -13,7 +13,7 @@ config("usrsctp_public_config") { | ||
| 5 | |||
| 6 | # This is part of the public config because it's used both by usrsctp and | ||
| 7 | # the client (WebRTC), to determine if the length field needs populating. | ||
| 8 | - if (is_mac || is_ios || target_os == "freebsd") { | ||
| 9 | + if (is_mac || is_ios || target_os == "freebsd" || target_os == "openbsd") { | ||
| 10 | defines = [ "HAVE_SCONN_LEN" ] | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_BUILD_gn b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_BUILD_gn new file mode 100644 index 0000000..14ef14c --- /dev/null +++ b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/vulkan-deps/vulkan-loader/src/BUILD.gn | ||
| 2 | --- third_party/vulkan-deps/vulkan-loader/src/BUILD.gn.orig | ||
| 3 | +++ third_party/vulkan-deps/vulkan-loader/src/BUILD.gn | ||
| 4 | @@ -61,7 +61,7 @@ config("vulkan_internal_config") { | ||
| 5 | defines += [ | ||
| 6 | "SYSCONFDIR=\"/etc\"", | ||
| 7 | "FALLBACK_CONFIG_DIRS=\"/etc/xdg\"", | ||
| 8 | - "FALLBACK_DATA_DIRS=\"/usr/local/share:/usr/share\"", | ||
| 9 | + "FALLBACK_DATA_DIRS=\"/usr/X11R6/share:/usr/local/share:/usr/share\"", | ||
| 10 | ] | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_loader_allocation_h b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_loader_allocation_h new file mode 100644 index 0000000..0142b3c --- /dev/null +++ b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_loader_allocation_h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: third_party/vulkan-deps/vulkan-loader/src/loader/allocation.h | ||
| 2 | --- third_party/vulkan-deps/vulkan-loader/src/loader/allocation.h.orig | ||
| 3 | +++ third_party/vulkan-deps/vulkan-loader/src/loader/allocation.h | ||
| 4 | @@ -39,8 +39,8 @@ void loader_device_heap_free(const struct loader_devic | ||
| 5 | void *loader_device_heap_realloc(const struct loader_device *device, void *pMemory, size_t orig_size, size_t size, | ||
| 6 | VkSystemAllocationScope alloc_scope); | ||
| 7 | |||
| 8 | -#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__) | ||
| 9 | +#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__) || defined(__OpenBSD__) | ||
| 10 | #define loader_stack_alloc(size) alloca(size) | ||
| 11 | #elif defined(_WIN32) | ||
| 12 | #define loader_stack_alloc(size) _alloca(size) | ||
| 13 | -#endif // defined(_WIN32) | ||
| 14 | \ No newline at end of file | ||
| 15 | +#endif // defined(_WIN32) | ||
diff --git a/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_loader_get_environment_c b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_loader_get_environment_c new file mode 100644 index 0000000..817be6e --- /dev/null +++ b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_loader_get_environment_c | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | Index: third_party/vulkan-deps/vulkan-loader/src/loader/get_environment.c | ||
| 2 | --- third_party/vulkan-deps/vulkan-loader/src/loader/get_environment.c.orig | ||
| 3 | +++ third_party/vulkan-deps/vulkan-loader/src/loader/get_environment.c | ||
| 4 | @@ -37,7 +37,7 @@ | ||
| 5 | #endif // !defined(VULKAN_NON_CMAKE_BUILD) | ||
| 6 | |||
| 7 | // Environment variables | ||
| 8 | -#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__) | ||
| 9 | +#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__) || defined(__OpenBSD__) | ||
| 10 | |||
| 11 | bool is_high_integrity() { return geteuid() != getuid() || getegid() != getgid(); } | ||
| 12 | |||
| 13 | @@ -49,7 +49,7 @@ char *loader_getenv(const char *name, const struct loa | ||
| 14 | } | ||
| 15 | |||
| 16 | char *loader_secure_getenv(const char *name, const struct loader_instance *inst) { | ||
| 17 | -#if defined(__APPLE__) || defined(__FreeBSD__) | ||
| 18 | +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) | ||
| 19 | // Apple does not appear to have a secure getenv implementation. | ||
| 20 | // The main difference between secure getenv and getenv is that secure getenv | ||
| 21 | // returns NULL if the process is being run with elevated privileges by a normal user. | ||
| 22 | @@ -169,4 +169,4 @@ void loader_free_getenv(char *val, const struct loader | ||
| 23 | (void)inst; | ||
| 24 | } | ||
| 25 | |||
| 26 | -#endif | ||
| 27 | \ No newline at end of file | ||
| 28 | +#endif | ||
diff --git a/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_loader_get_environment_h b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_loader_get_environment_h new file mode 100644 index 0000000..b6126f2 --- /dev/null +++ b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_loader_get_environment_h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: third_party/vulkan-deps/vulkan-loader/src/loader/get_environment.h | ||
| 2 | --- third_party/vulkan-deps/vulkan-loader/src/loader/get_environment.h.orig | ||
| 3 | +++ third_party/vulkan-deps/vulkan-loader/src/loader/get_environment.h | ||
| 4 | @@ -35,10 +35,10 @@ | ||
| 5 | char *loader_getenv(const char *name, const struct loader_instance *inst); | ||
| 6 | void loader_free_getenv(char *val, const struct loader_instance *inst); | ||
| 7 | |||
| 8 | -#if defined(WIN32) || defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__) | ||
| 9 | +#if defined(WIN32) || defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__) || defined(__OpenBSD__) | ||
| 10 | |||
| 11 | bool is_high_integrity(); | ||
| 12 | |||
| 13 | char *loader_secure_getenv(const char *name, const struct loader_instance *inst); | ||
| 14 | |||
| 15 | -#endif | ||
| 16 | \ No newline at end of file | ||
| 17 | +#endif | ||
diff --git a/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_loader_vk_loader_platform_h b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_loader_vk_loader_platform_h new file mode 100644 index 0000000..0173740 --- /dev/null +++ b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-loader_src_loader_vk_loader_platform_h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | Index: third_party/vulkan-deps/vulkan-loader/src/loader/vk_loader_platform.h | ||
| 2 | --- third_party/vulkan-deps/vulkan-loader/src/loader/vk_loader_platform.h.orig | ||
| 3 | +++ third_party/vulkan-deps/vulkan-loader/src/loader/vk_loader_platform.h | ||
| 4 | @@ -42,7 +42,7 @@ | ||
| 5 | #include "dlopen_fuchsia.h" | ||
| 6 | #endif // defined(__Fuchsia__) | ||
| 7 | |||
| 8 | -#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__) | ||
| 9 | +#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__) || defined(__OpenBSD__) | ||
| 10 | #include <unistd.h> | ||
| 11 | // Note: The following file is for dynamic loading: | ||
| 12 | #include <dlfcn.h> | ||
| 13 | @@ -102,7 +102,7 @@ | ||
| 14 | // Override layer information | ||
| 15 | #define VK_OVERRIDE_LAYER_NAME "VK_LAYER_LUNARG_override" | ||
| 16 | |||
| 17 | -#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__) | ||
| 18 | +#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__) || defined(__OpenBSD__) | ||
| 19 | /* Linux-specific common code: */ | ||
| 20 | |||
| 21 | // VK Library Filenames, Paths, etc.: | ||
| 22 | @@ -192,6 +192,15 @@ static inline char *loader_platform_executable_path(ch | ||
| 23 | }; | ||
| 24 | if (sysctl(mib, sizeof(mib) / sizeof(mib[0]), buffer, &size, NULL, 0) < 0) | ||
| 25 | return NULL; | ||
| 26 | + | ||
| 27 | + return buffer; | ||
| 28 | +} | ||
| 29 | +#elif defined(__OpenBSD__) | ||
| 30 | +static inline char *loader_platform_executable_path(char *buffer, size_t size) { | ||
| 31 | + if ((buffer = getenv("CHROME_EXE_PATH")) != NULL) | ||
| 32 | + return buffer; | ||
| 33 | + else | ||
| 34 | + buffer = "/usr/local/chrome/chrome"; | ||
| 35 | |||
| 36 | return buffer; | ||
| 37 | } | ||
diff --git a/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-validation-layers_src_layers_vk_loader_platform_h b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-validation-layers_src_layers_vk_loader_platform_h new file mode 100644 index 0000000..412fc88 --- /dev/null +++ b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-validation-layers_src_layers_vk_loader_platform_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/vulkan-deps/vulkan-validation-layers/src/layers/vk_loader_platform.h | ||
| 2 | --- third_party/vulkan-deps/vulkan-validation-layers/src/layers/vk_loader_platform.h.orig | ||
| 3 | +++ third_party/vulkan-deps/vulkan-validation-layers/src/layers/vk_loader_platform.h | ||
| 4 | @@ -33,7 +33,7 @@ | ||
| 5 | #undef NOMINMAX | ||
| 6 | #include "vulkan/vk_sdk_platform.h" | ||
| 7 | |||
| 8 | -#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) | ||
| 9 | +#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) | ||
| 10 | /* Linux-specific common code: */ | ||
| 11 | |||
| 12 | // Headers: | ||
diff --git a/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-validation-layers_src_layers_vk_mem_alloc_h b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-validation-layers_src_layers_vk_mem_alloc_h new file mode 100644 index 0000000..b7804f5 --- /dev/null +++ b/www/chromium/patches/patch-third_party_vulkan-deps_vulkan-validation-layers_src_layers_vk_mem_alloc_h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/vulkan-deps/vulkan-validation-layers/src/layers/vk_mem_alloc.h | ||
| 2 | --- third_party/vulkan-deps/vulkan-validation-layers/src/layers/vk_mem_alloc.h.orig | ||
| 3 | +++ third_party/vulkan-deps/vulkan-validation-layers/src/layers/vk_mem_alloc.h | ||
| 4 | @@ -3181,7 +3181,8 @@ void *aligned_alloc(size_t alignment, size_t size) | ||
| 5 | |||
| 6 | return memalign(alignment, size); | ||
| 7 | } | ||
| 8 | -#elif defined(__APPLE__) || defined(__ANDROID__) | ||
| 9 | +#elif defined(__APPLE__) || defined(__ANDROID__) || defined(__OpenBSD__) || \ | ||
| 10 | + defined(__FreeBSD__) | ||
| 11 | # define ALIGNED_ALLOC_WITH_POSIX_MEMALIGN | ||
| 12 | #elif defined(__GNU_LIBRARY__) | ||
| 13 | # if !defined(__GLIBC_PREREQ) || !__GLIBC_PREREQ(2, 16) | ||
diff --git a/www/chromium/patches/patch-third_party_vulkan_memory_allocator_include_vk_mem_alloc_h b/www/chromium/patches/patch-third_party_vulkan_memory_allocator_include_vk_mem_alloc_h new file mode 100644 index 0000000..3fe26f9 --- /dev/null +++ b/www/chromium/patches/patch-third_party_vulkan_memory_allocator_include_vk_mem_alloc_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/vulkan_memory_allocator/include/vk_mem_alloc.h | ||
| 2 | --- third_party/vulkan_memory_allocator/include/vk_mem_alloc.h.orig | ||
| 3 | +++ third_party/vulkan_memory_allocator/include/vk_mem_alloc.h | ||
| 4 | @@ -2503,7 +2503,7 @@ void *vma_aligned_alloc(size_t alignment, size_t size) | ||
| 5 | |||
| 6 | return memalign(alignment, size); | ||
| 7 | } | ||
| 8 | -#elif defined(__APPLE__) || defined(__ANDROID__) || (defined(__linux__) && defined(__GLIBCXX__) && !defined(_GLIBCXX_HAVE_ALIGNED_ALLOC)) | ||
| 9 | +#elif defined(__APPLE__) || defined(__ANDROID__) || (defined(__linux__) && defined(__GLIBCXX__) && !defined(_GLIBCXX_HAVE_ALIGNED_ALLOC)) || defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 10 | #include <cstdlib> | ||
| 11 | |||
| 12 | #if defined(__APPLE__) | ||
diff --git a/www/chromium/patches/patch-third_party_webrtc_BUILD_gn b/www/chromium/patches/patch-third_party_webrtc_BUILD_gn new file mode 100644 index 0000000..271167c --- /dev/null +++ b/www/chromium/patches/patch-third_party_webrtc_BUILD_gn | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/webrtc/BUILD.gn | ||
| 2 | --- third_party/webrtc/BUILD.gn.orig | ||
| 3 | +++ third_party/webrtc/BUILD.gn | ||
| 4 | @@ -196,6 +196,9 @@ config("common_inherited_config") { | ||
| 5 | if (is_linux || is_chromeos) { | ||
| 6 | defines += [ "WEBRTC_LINUX" ] | ||
| 7 | } | ||
| 8 | + if (is_bsd) { | ||
| 9 | + defines += [ "WEBRTC_BSD" ] | ||
| 10 | + } | ||
| 11 | if (is_mac) { | ||
| 12 | defines += [ "WEBRTC_MAC" ] | ||
| 13 | } | ||
diff --git a/www/chromium/patches/patch-third_party_webrtc_modules_audio_device_BUILD_gn b/www/chromium/patches/patch-third_party_webrtc_modules_audio_device_BUILD_gn new file mode 100644 index 0000000..fe2aaa7 --- /dev/null +++ b/www/chromium/patches/patch-third_party_webrtc_modules_audio_device_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/webrtc/modules/audio_device/BUILD.gn | ||
| 2 | --- third_party/webrtc/modules/audio_device/BUILD.gn.orig | ||
| 3 | +++ third_party/webrtc/modules/audio_device/BUILD.gn | ||
| 4 | @@ -264,7 +264,7 @@ rtc_library("audio_device_impl") { | ||
| 5 | if (rtc_use_dummy_audio_file_devices) { | ||
| 6 | defines += [ "WEBRTC_DUMMY_FILE_DEVICES" ] | ||
| 7 | } else { | ||
| 8 | - if (is_linux || is_chromeos) { | ||
| 9 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | sources += [ | ||
| 11 | "linux/alsasymboltable_linux.cc", | ||
| 12 | "linux/alsasymboltable_linux.h", | ||
diff --git a/www/chromium/patches/patch-third_party_webrtc_modules_desktop_capture_linux_x11_x_server_pixel_buffer_cc b/www/chromium/patches/patch-third_party_webrtc_modules_desktop_capture_linux_x11_x_server_pixel_buffer_cc new file mode 100644 index 0000000..67bf0d8 --- /dev/null +++ b/www/chromium/patches/patch-third_party_webrtc_modules_desktop_capture_linux_x11_x_server_pixel_buffer_cc | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: third_party/webrtc/modules/desktop_capture/linux/x11/x_server_pixel_buffer.cc | ||
| 2 | --- third_party/webrtc/modules/desktop_capture/linux/x11/x_server_pixel_buffer.cc.orig | ||
| 3 | +++ third_party/webrtc/modules/desktop_capture/linux/x11/x_server_pixel_buffer.cc | ||
| 4 | @@ -212,6 +212,12 @@ bool XServerPixelBuffer::Init(XAtomCache* cache, Windo | ||
| 5 | void XServerPixelBuffer::InitShm(const XWindowAttributes& attributes) { | ||
| 6 | Visual* default_visual = attributes.visual; | ||
| 7 | int default_depth = attributes.depth; | ||
| 8 | +#if defined(__OpenBSD__) | ||
| 9 | +// pledge(2) | ||
| 10 | + RTC_LOG(LS_WARNING) << "Unable to use shmget(2) while using pledge(2). " | ||
| 11 | + "Performance may be degraded."; | ||
| 12 | + return; | ||
| 13 | +#endif | ||
| 14 | |||
| 15 | int major, minor; | ||
| 16 | Bool have_pixmaps; | ||
diff --git a/www/chromium/patches/patch-third_party_webrtc_rtc_base_BUILD_gn b/www/chromium/patches/patch-third_party_webrtc_rtc_base_BUILD_gn new file mode 100644 index 0000000..6cfae02 --- /dev/null +++ b/www/chromium/patches/patch-third_party_webrtc_rtc_base_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/webrtc/rtc_base/BUILD.gn | ||
| 2 | --- third_party/webrtc/rtc_base/BUILD.gn.orig | ||
| 3 | +++ third_party/webrtc/rtc_base/BUILD.gn | ||
| 4 | @@ -1087,7 +1087,7 @@ rtc_library("rtc_base") { | ||
| 5 | sources += [ "mac_ifaddrs_converter.cc" ] | ||
| 6 | } | ||
| 7 | |||
| 8 | - if (is_linux || is_chromeos) { | ||
| 9 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | libs += [ | ||
| 11 | "dl", | ||
| 12 | "rt", | ||
diff --git a/www/chromium/patches/patch-third_party_webrtc_rtc_base_byte_order_h b/www/chromium/patches/patch-third_party_webrtc_rtc_base_byte_order_h new file mode 100644 index 0000000..0fa128a --- /dev/null +++ b/www/chromium/patches/patch-third_party_webrtc_rtc_base_byte_order_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/webrtc/rtc_base/byte_order.h | ||
| 2 | --- third_party/webrtc/rtc_base/byte_order.h.orig | ||
| 3 | +++ third_party/webrtc/rtc_base/byte_order.h | ||
| 4 | @@ -88,6 +88,8 @@ | ||
| 5 | #error WEBRTC_ARCH_BIG_ENDIAN or WEBRTC_ARCH_LITTLE_ENDIAN must be defined. | ||
| 6 | #endif // defined(WEBRTC_ARCH_LITTLE_ENDIAN) | ||
| 7 | |||
| 8 | +#elif defined(WEBRTC_BSD) | ||
| 9 | +#include <sys/endian.h> | ||
| 10 | #elif defined(WEBRTC_POSIX) | ||
| 11 | #include <endian.h> | ||
| 12 | #else | ||
diff --git a/www/chromium/patches/patch-third_party_webrtc_rtc_base_ip_address_cc b/www/chromium/patches/patch-third_party_webrtc_rtc_base_ip_address_cc new file mode 100644 index 0000000..213e4fd --- /dev/null +++ b/www/chromium/patches/patch-third_party_webrtc_rtc_base_ip_address_cc | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: third_party/webrtc/rtc_base/ip_address.cc | ||
| 2 | --- third_party/webrtc/rtc_base/ip_address.cc.orig | ||
| 3 | +++ third_party/webrtc/rtc_base/ip_address.cc | ||
| 4 | @@ -11,7 +11,8 @@ | ||
| 5 | #if defined(WEBRTC_POSIX) | ||
| 6 | #include <netinet/in.h> | ||
| 7 | #include <sys/socket.h> | ||
| 8 | -#ifdef OPENBSD | ||
| 9 | +#if defined(WEBRTC_BSD) | ||
| 10 | +#include <sys/types.h> | ||
| 11 | #include <netinet/in_systm.h> | ||
| 12 | #endif | ||
| 13 | #ifndef __native_client__ | ||
diff --git a/www/chromium/patches/patch-third_party_webrtc_rtc_base_network_cc b/www/chromium/patches/patch-third_party_webrtc_rtc_base_network_cc new file mode 100644 index 0000000..e1c1789 --- /dev/null +++ b/www/chromium/patches/patch-third_party_webrtc_rtc_base_network_cc | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: third_party/webrtc/rtc_base/network.cc | ||
| 2 | --- third_party/webrtc/rtc_base/network.cc.orig | ||
| 3 | +++ third_party/webrtc/rtc_base/network.cc | ||
| 4 | @@ -258,7 +258,12 @@ AdapterType GetAdapterTypeFromName(const char* network | ||
| 5 | } | ||
| 6 | #endif | ||
| 7 | |||
| 8 | +#if defined(WEBRTC_BSD) | ||
| 9 | + // Treat all other network interface names as ethernet on BSD | ||
| 10 | + return ADAPTER_TYPE_ETHERNET; | ||
| 11 | +#else | ||
| 12 | return ADAPTER_TYPE_UNKNOWN; | ||
| 13 | +#endif | ||
| 14 | } | ||
| 15 | |||
| 16 | NetworkManager::NetworkManager() {} | ||
diff --git a/www/chromium/patches/patch-third_party_webrtc_rtc_base_physical_socket_server_cc b/www/chromium/patches/patch-third_party_webrtc_rtc_base_physical_socket_server_cc new file mode 100644 index 0000000..ef21eee --- /dev/null +++ b/www/chromium/patches/patch-third_party_webrtc_rtc_base_physical_socket_server_cc | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | Index: third_party/webrtc/rtc_base/physical_socket_server.cc | ||
| 2 | --- third_party/webrtc/rtc_base/physical_socket_server.cc.orig | ||
| 3 | +++ third_party/webrtc/rtc_base/physical_socket_server.cc | ||
| 4 | @@ -51,7 +51,7 @@ | ||
| 5 | #include "rtc_base/synchronization/mutex.h" | ||
| 6 | #include "rtc_base/time_utils.h" | ||
| 7 | |||
| 8 | -#if defined(WEBRTC_LINUX) | ||
| 9 | +#if defined(WEBRTC_LINUX) && !defined(WEBRTC_BSD) | ||
| 10 | #include <linux/sockios.h> | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -70,7 +70,7 @@ typedef void* SockOptArg; | ||
| 14 | |||
| 15 | #endif // WEBRTC_POSIX | ||
| 16 | |||
| 17 | -#if defined(WEBRTC_POSIX) && !defined(WEBRTC_MAC) && !defined(__native_client__) | ||
| 18 | +#if defined(WEBRTC_POSIX) && !defined(WEBRTC_MAC) && !defined(__native_client__) && !defined(WEBRTC_BSD) | ||
| 19 | |||
| 20 | int64_t GetSocketRecvTimestamp(int socket) { | ||
| 21 | struct timeval tv_ioctl; | ||
| 22 | @@ -298,7 +298,7 @@ int PhysicalSocket::GetOption(Option opt, int* value) | ||
| 23 | return -1; | ||
| 24 | } | ||
| 25 | if (opt == OPT_DONTFRAGMENT) { | ||
| 26 | -#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) | ||
| 27 | +#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) && !defined(WEBRTC_BSD) | ||
| 28 | *value = (*value != IP_PMTUDISC_DONT) ? 1 : 0; | ||
| 29 | #endif | ||
| 30 | } else if (opt == OPT_DSCP) { | ||
| 31 | @@ -316,7 +316,7 @@ int PhysicalSocket::SetOption(Option opt, int value) { | ||
| 32 | if (TranslateOption(opt, &slevel, &sopt) == -1) | ||
| 33 | return -1; | ||
| 34 | if (opt == OPT_DONTFRAGMENT) { | ||
| 35 | -#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) | ||
| 36 | +#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) && !defined(WEBRTC_BSD) | ||
| 37 | value = (value) ? IP_PMTUDISC_DO : IP_PMTUDISC_DONT; | ||
| 38 | #endif | ||
| 39 | } else if (opt == OPT_DSCP) { | ||
| 40 | @@ -344,7 +344,7 @@ int PhysicalSocket::SetOption(Option opt, int value) { | ||
| 41 | int PhysicalSocket::Send(const void* pv, size_t cb) { | ||
| 42 | int sent = DoSend( | ||
| 43 | s_, reinterpret_cast<const char*>(pv), static_cast<int>(cb), | ||
| 44 | -#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) | ||
| 45 | +#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) && !defined(WEBRTC_BSD) | ||
| 46 | // Suppress SIGPIPE. Without this, attempting to send on a socket whose | ||
| 47 | // other end is closed will result in a SIGPIPE signal being raised to | ||
| 48 | // our process, which by default will terminate the process, which we | ||
| 49 | @@ -373,7 +373,7 @@ int PhysicalSocket::SendTo(const void* buffer, | ||
| 50 | size_t len = addr.ToSockAddrStorage(&saddr); | ||
| 51 | int sent = | ||
| 52 | DoSendTo(s_, static_cast<const char*>(buffer), static_cast<int>(length), | ||
| 53 | -#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) | ||
| 54 | +#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) && !defined(WEBRTC_BSD) | ||
| 55 | // Suppress SIGPIPE. See above for explanation. | ||
| 56 | MSG_NOSIGNAL, | ||
| 57 | #else | ||
| 58 | @@ -564,7 +564,7 @@ int PhysicalSocket::TranslateOption(Option opt, int* s | ||
| 59 | *slevel = IPPROTO_IP; | ||
| 60 | *sopt = IP_DONTFRAGMENT; | ||
| 61 | break; | ||
| 62 | -#elif defined(WEBRTC_MAC) || defined(BSD) || defined(__native_client__) | ||
| 63 | +#elif defined(WEBRTC_MAC) || defined(WEBRTC_BSD) || defined(__native_client__) | ||
| 64 | RTC_LOG(LS_WARNING) << "Socket::OPT_DONTFRAGMENT not supported."; | ||
| 65 | return -1; | ||
| 66 | #elif defined(WEBRTC_POSIX) | ||
diff --git a/www/chromium/patches/patch-third_party_webrtc_rtc_base_physical_socket_server_h b/www/chromium/patches/patch-third_party_webrtc_rtc_base_physical_socket_server_h new file mode 100644 index 0000000..cc70288 --- /dev/null +++ b/www/chromium/patches/patch-third_party_webrtc_rtc_base_physical_socket_server_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/webrtc/rtc_base/physical_socket_server.h | ||
| 2 | --- third_party/webrtc/rtc_base/physical_socket_server.h.orig | ||
| 3 | +++ third_party/webrtc/rtc_base/physical_socket_server.h | ||
| 4 | @@ -11,7 +11,7 @@ | ||
| 5 | #ifndef RTC_BASE_PHYSICAL_SOCKET_SERVER_H_ | ||
| 6 | #define RTC_BASE_PHYSICAL_SOCKET_SERVER_H_ | ||
| 7 | |||
| 8 | -#if defined(WEBRTC_POSIX) && defined(WEBRTC_LINUX) | ||
| 9 | +#if defined(WEBRTC_POSIX) && defined(WEBRTC_LINUX) && !defined(WEBRTC_BSD) | ||
| 10 | #include <sys/epoll.h> | ||
| 11 | #define WEBRTC_USE_EPOLL 1 | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-third_party_webrtc_rtc_base_platform_thread_types_cc b/www/chromium/patches/patch-third_party_webrtc_rtc_base_platform_thread_types_cc new file mode 100644 index 0000000..bccf620 --- /dev/null +++ b/www/chromium/patches/patch-third_party_webrtc_rtc_base_platform_thread_types_cc | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | Index: third_party/webrtc/rtc_base/platform_thread_types.cc | ||
| 2 | --- third_party/webrtc/rtc_base/platform_thread_types.cc.orig | ||
| 3 | +++ third_party/webrtc/rtc_base/platform_thread_types.cc | ||
| 4 | @@ -11,7 +11,9 @@ | ||
| 5 | #include "rtc_base/platform_thread_types.h" | ||
| 6 | |||
| 7 | #if defined(WEBRTC_LINUX) | ||
| 8 | +#if !defined(WEBRTC_BSD) | ||
| 9 | #include <sys/prctl.h> | ||
| 10 | +#endif | ||
| 11 | #include <sys/syscall.h> | ||
| 12 | #endif | ||
| 13 | |||
| 14 | @@ -37,8 +39,10 @@ PlatformThreadId CurrentThreadId() { | ||
| 15 | return gettid(); | ||
| 16 | #elif defined(WEBRTC_FUCHSIA) | ||
| 17 | return zx_thread_self(); | ||
| 18 | -#elif defined(WEBRTC_LINUX) | ||
| 19 | +#elif defined(WEBRTC_LINUX) && !defined(WEBRTC_BSD) | ||
| 20 | return syscall(__NR_gettid); | ||
| 21 | +#elif defined(WEBRTC_BSD) | ||
| 22 | + return reinterpret_cast<uint64_t>(pthread_self()); | ||
| 23 | #elif defined(__EMSCRIPTEN__) | ||
| 24 | return static_cast<PlatformThreadId>(pthread_self()); | ||
| 25 | #else | ||
| 26 | @@ -67,6 +71,7 @@ bool IsThreadRefEqual(const PlatformThreadRef& a, cons | ||
| 27 | } | ||
| 28 | |||
| 29 | void SetCurrentThreadName(const char* name) { | ||
| 30 | +#if !defined(WEBRTC_BSD) | ||
| 31 | #if defined(WEBRTC_WIN) | ||
| 32 | // The SetThreadDescription API works even if no debugger is attached. | ||
| 33 | // The names set with this API also show up in ETW traces. Very handy. | ||
| 34 | @@ -109,6 +114,7 @@ void SetCurrentThreadName(const char* name) { | ||
| 35 | prctl(PR_SET_NAME, reinterpret_cast<unsigned long>(name)); // NOLINT | ||
| 36 | #elif defined(WEBRTC_MAC) || defined(WEBRTC_IOS) | ||
| 37 | pthread_setname_np(name); | ||
| 38 | +#endif | ||
| 39 | #endif | ||
| 40 | } | ||
| 41 | |||
diff --git a/www/chromium/patches/patch-third_party_webrtc_rtc_base_third_party_sigslot_sigslot_h b/www/chromium/patches/patch-third_party_webrtc_rtc_base_third_party_sigslot_sigslot_h new file mode 100644 index 0000000..0703b21 --- /dev/null +++ b/www/chromium/patches/patch-third_party_webrtc_rtc_base_third_party_sigslot_sigslot_h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | Index: third_party/webrtc/rtc_base/third_party/sigslot/sigslot.h | ||
| 2 | --- third_party/webrtc/rtc_base/third_party/sigslot/sigslot.h.orig | ||
| 3 | +++ third_party/webrtc/rtc_base/third_party/sigslot/sigslot.h | ||
| 4 | @@ -178,6 +178,10 @@ class multi_threaded_local { | ||
| 5 | #endif // _SIGSLOT_HAS_WIN32_THREADS | ||
| 6 | |||
| 7 | #ifdef _SIGSLOT_HAS_POSIX_THREADS | ||
| 8 | +#if defined(OS_FREEBSD) | ||
| 9 | +#pragma GCC diagnostic push | ||
| 10 | +#pragma GCC diagnostic ignored "-Wthread-safety-analysis" | ||
| 11 | +#endif | ||
| 12 | // The multi threading policies only get compiled in if they are enabled. | ||
| 13 | class multi_threaded_global { | ||
| 14 | public: | ||
| 15 | @@ -201,6 +205,9 @@ class multi_threaded_local { | ||
| 16 | private: | ||
| 17 | pthread_mutex_t m_mutex; | ||
| 18 | }; | ||
| 19 | +#if defined(OS_FREEBSD) | ||
| 20 | +#pragma GCC diagnostic pop | ||
| 21 | +#endif | ||
| 22 | #endif // _SIGSLOT_HAS_POSIX_THREADS | ||
| 23 | |||
| 24 | template <class mt_policy> | ||
diff --git a/www/chromium/patches/patch-third_party_webrtc_system_wrappers_BUILD_gn b/www/chromium/patches/patch-third_party_webrtc_system_wrappers_BUILD_gn new file mode 100644 index 0000000..f873d7d --- /dev/null +++ b/www/chromium/patches/patch-third_party_webrtc_system_wrappers_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: third_party/webrtc/system_wrappers/BUILD.gn | ||
| 2 | --- third_party/webrtc/system_wrappers/BUILD.gn.orig | ||
| 3 | +++ third_party/webrtc/system_wrappers/BUILD.gn | ||
| 4 | @@ -61,8 +61,6 @@ rtc_library("system_wrappers") { | ||
| 5 | if (!build_with_chromium) { | ||
| 6 | sources += [ "source/cpu_features_linux.cc" ] | ||
| 7 | } | ||
| 8 | - | ||
| 9 | - libs += [ "rt" ] | ||
| 10 | } | ||
| 11 | |||
| 12 | if (is_win) { | ||
diff --git a/www/chromium/patches/patch-third_party_zlib_BUILD_gn b/www/chromium/patches/patch-third_party_zlib_BUILD_gn new file mode 100644 index 0000000..4a609b9 --- /dev/null +++ b/www/chromium/patches/patch-third_party_zlib_BUILD_gn | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: third_party/zlib/BUILD.gn | ||
| 2 | --- third_party/zlib/BUILD.gn.orig | ||
| 3 | +++ third_party/zlib/BUILD.gn | ||
| 4 | @@ -115,7 +115,7 @@ if (use_arm_neon_optimizations) { | ||
| 5 | # Disabled for iPhone, as described in DDI0487C_a_armv8_arm: | ||
| 6 | # "All implementations of the ARMv8.1 architecture are required to | ||
| 7 | # implement the CRC32* instructions. These are optional in ARMv8.0." | ||
| 8 | - if (!is_ios) { | ||
| 9 | + if (!is_ios && !is_bsd) { | ||
| 10 | defines = [ "CRC32_ARMV8_CRC32" ] | ||
| 11 | if (is_android) { | ||
| 12 | defines += [ "ARMV8_OS_ANDROID" ] | ||
| 13 | @@ -136,7 +136,7 @@ if (use_arm_neon_optimizations) { | ||
| 14 | source_set("zlib_arm_crc32") { | ||
| 15 | visibility = [ ":*" ] | ||
| 16 | |||
| 17 | - if (!is_ios) { | ||
| 18 | + if (!is_ios && !is_bsd) { | ||
| 19 | include_dirs = [ "." ] | ||
| 20 | |||
| 21 | if (!is_win && !is_clang) { | ||
| 22 | @@ -396,7 +396,7 @@ static_library("minizip") { | ||
| 23 | ] | ||
| 24 | } | ||
| 25 | |||
| 26 | - if (is_apple || is_android || is_nacl) { | ||
| 27 | + if (is_apple || is_android || is_nacl || is_bsd) { | ||
| 28 | # Mac, Android and the BSDs don't have fopen64, ftello64, or fseeko64. We | ||
| 29 | # use fopen, ftell, and fseek instead on these systems. | ||
| 30 | defines = [ "USE_FILE32API" ] | ||
diff --git a/www/chromium/patches/patch-tools_generate_stubs_rules_gni b/www/chromium/patches/patch-tools_generate_stubs_rules_gni new file mode 100644 index 0000000..0a7244a --- /dev/null +++ b/www/chromium/patches/patch-tools_generate_stubs_rules_gni | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: tools/generate_stubs/rules.gni | ||
| 2 | --- tools/generate_stubs/rules.gni.orig | ||
| 3 | +++ tools/generate_stubs/rules.gni | ||
| 4 | @@ -96,7 +96,6 @@ template("generate_stubs") { | ||
| 5 | "${target_gen_dir}/${invoker.output_name}.cc", | ||
| 6 | "${target_gen_dir}/${invoker.output_name}.h", | ||
| 7 | ] | ||
| 8 | - libs = [ "dl" ] | ||
| 9 | include_dirs = [ target_gen_dir ] | ||
| 10 | if (defined(invoker.configs)) { | ||
| 11 | configs += invoker.configs | ||
diff --git a/www/chromium/patches/patch-tools_gn_build_build_linux_ninja_template b/www/chromium/patches/patch-tools_gn_build_build_linux_ninja_template new file mode 100644 index 0000000..0b55c4a --- /dev/null +++ b/www/chromium/patches/patch-tools_gn_build_build_linux_ninja_template | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: tools/gn/build/build_linux.ninja.template | ||
| 2 | --- tools/gn/build/build_linux.ninja.template.orig | ||
| 3 | +++ tools/gn/build/build_linux.ninja.template | ||
| 4 | @@ -5,7 +5,7 @@ rule cxx | ||
| 5 | deps = gcc | ||
| 6 | |||
| 7 | rule alink_thin | ||
| 8 | - command = rm -f $out && $ar rcsT $out $in | ||
| 9 | + command = rm -f $out && $ar rcs $out $in | ||
| 10 | description = AR $out | ||
| 11 | |||
| 12 | rule link | ||
diff --git a/www/chromium/patches/patch-tools_gn_build_gen_py b/www/chromium/patches/patch-tools_gn_build_gen_py new file mode 100644 index 0000000..426e12a --- /dev/null +++ b/www/chromium/patches/patch-tools_gn_build_gen_py | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | Index: tools/gn/build/gen.py | ||
| 2 | --- tools/gn/build/gen.py.orig | ||
| 3 | +++ tools/gn/build/gen.py | ||
| 4 | @@ -92,6 +92,12 @@ class Platform(object): | ||
| 5 | def is_solaris(self): | ||
| 6 | return self._platform == 'solaris' | ||
| 7 | |||
| 8 | + def is_openbsd(self): | ||
| 9 | + return self._platform == 'openbsd' | ||
| 10 | + | ||
| 11 | + def is_freebsd(self): | ||
| 12 | + return self._platform == 'freebsd' | ||
| 13 | + | ||
| 14 | def is_posix(self): | ||
| 15 | return self._platform in ['linux', 'freebsd', 'darwin', 'aix', 'openbsd', 'haiku', 'solaris', 'msys', 'netbsd'] | ||
| 16 | |||
| 17 | @@ -276,7 +282,7 @@ def WriteGenericNinja(path, static_libraries, executab | ||
| 18 | 'linux': 'build_linux.ninja.template', | ||
| 19 | 'freebsd': 'build_linux.ninja.template', | ||
| 20 | 'aix': 'build_aix.ninja.template', | ||
| 21 | - 'openbsd': 'build_openbsd.ninja.template', | ||
| 22 | + 'openbsd': 'build_linux.ninja.template', | ||
| 23 | 'haiku': 'build_haiku.ninja.template', | ||
| 24 | 'solaris': 'build_linux.ninja.template', | ||
| 25 | 'netbsd': 'build_linux.ninja.template', | ||
| 26 | @@ -480,6 +486,9 @@ def WriteGNNinja(path, platform, host, options, args_l | ||
| 27 | |||
| 28 | if platform.is_posix() and not platform.is_haiku(): | ||
| 29 | ldflags.append('-pthread') | ||
| 30 | + | ||
| 31 | + if platform.is_openbsd(): | ||
| 32 | + libs.append('-lkvm') | ||
| 33 | |||
| 34 | if platform.is_mingw() or platform.is_msys(): | ||
| 35 | cflags.extend(['-DUNICODE', | ||
diff --git a/www/chromium/patches/patch-tools_gn_src_base_files_file_posix_cc b/www/chromium/patches/patch-tools_gn_src_base_files_file_posix_cc new file mode 100644 index 0000000..56cd597 --- /dev/null +++ b/www/chromium/patches/patch-tools_gn_src_base_files_file_posix_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: tools/gn/src/base/files/file_posix.cc | ||
| 2 | --- tools/gn/src/base/files/file_posix.cc.orig | ||
| 3 | +++ tools/gn/src/base/files/file_posix.cc | ||
| 4 | @@ -369,7 +369,7 @@ void File::DoInitialize(const FilePath& path, uint32_t | ||
| 5 | bool File::Flush() { | ||
| 6 | DCHECK(IsValid()); | ||
| 7 | |||
| 8 | -#if defined(OS_LINUX) | ||
| 9 | +#if defined(OS_LINUX) || defined(OS_BSD) | ||
| 10 | return !HANDLE_EINTR(fdatasync(file_.get())); | ||
| 11 | #else | ||
| 12 | return !HANDLE_EINTR(fsync(file_.get())); | ||
diff --git a/www/chromium/patches/patch-tools_gn_src_gn_version_h b/www/chromium/patches/patch-tools_gn_src_gn_version_h new file mode 100644 index 0000000..232feba --- /dev/null +++ b/www/chromium/patches/patch-tools_gn_src_gn_version_h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: tools/gn/src/gn/version.h | ||
| 2 | --- tools/gn/src/gn/version.h.orig | ||
| 3 | +++ tools/gn/src/gn/version.h | ||
| 4 | @@ -22,9 +22,9 @@ class Version { | ||
| 5 | |||
| 6 | static std::optional<Version> FromString(std::string s); | ||
| 7 | |||
| 8 | - int major() const { return major_; } | ||
| 9 | - int minor() const { return minor_; } | ||
| 10 | - int patch() const { return patch_; } | ||
| 11 | + int gmajor() const { return major_; } | ||
| 12 | + int gminor() const { return minor_; } | ||
| 13 | + int gpatch() const { return patch_; } | ||
| 14 | |||
| 15 | bool operator==(const Version& other) const; | ||
| 16 | bool operator<(const Version& other) const; | ||
diff --git a/www/chromium/patches/patch-tools_gn_src_util_exe_path_cc b/www/chromium/patches/patch-tools_gn_src_util_exe_path_cc new file mode 100644 index 0000000..d5993d5 --- /dev/null +++ b/www/chromium/patches/patch-tools_gn_src_util_exe_path_cc | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | Index: tools/gn/src/util/exe_path.cc | ||
| 2 | --- tools/gn/src/util/exe_path.cc.orig | ||
| 3 | +++ tools/gn/src/util/exe_path.cc | ||
| 4 | @@ -15,7 +15,7 @@ | ||
| 5 | #include <windows.h> | ||
| 6 | |||
| 7 | #include "base/win/win_util.h" | ||
| 8 | -#elif defined(OS_FREEBSD) || defined(OS_NETBSD) | ||
| 9 | +#elif defined(OS_FREEBSD) || defined(OS_NETBSD) || defined(OS_OPENBSD) | ||
| 10 | #include <limits.h> | ||
| 11 | #include <sys/sysctl.h> | ||
| 12 | #include <sys/types.h> | ||
| 13 | @@ -26,6 +26,10 @@ | ||
| 14 | #include <stdlib.h> | ||
| 15 | #endif | ||
| 16 | |||
| 17 | +#if defined(OS_OPENBSD) | ||
| 18 | +#include <kvm.h> | ||
| 19 | +#endif | ||
| 20 | + | ||
| 21 | #if defined(OS_MACOSX) | ||
| 22 | |||
| 23 | base::FilePath GetExePath() { | ||
| 24 | @@ -102,6 +106,67 @@ base::FilePath GetExePath() { | ||
| 25 | return base::FilePath(); | ||
| 26 | } | ||
| 27 | return base::FilePath(raw); | ||
| 28 | +} | ||
| 29 | + | ||
| 30 | +#elif defined(OS_OPENBSD) | ||
| 31 | + | ||
| 32 | +base::FilePath GetExePath() { | ||
| 33 | + struct kinfo_file *files; | ||
| 34 | + kvm_t *kd = NULL; | ||
| 35 | + char errbuf[_POSIX2_LINE_MAX]; | ||
| 36 | + char **retvalargs; | ||
| 37 | +#define MAXTOKENS 2 | ||
| 38 | + char *tokens[MAXTOKENS]; | ||
| 39 | + static char retval[PATH_MAX]; | ||
| 40 | + int cnt; | ||
| 41 | + size_t len; | ||
| 42 | + struct stat sb; | ||
| 43 | + pid_t cpid = getpid(); | ||
| 44 | + | ||
| 45 | + int mib[] = { CTL_KERN, KERN_PROC_ARGS, cpid, KERN_PROC_ARGV }; | ||
| 46 | + | ||
| 47 | + if (sysctl(mib, 4, NULL, &len, NULL, 0) != -1) { | ||
| 48 | + retvalargs = static_cast<char**>(malloc(len)); | ||
| 49 | + if (!retvalargs) | ||
| 50 | + goto out; | ||
| 51 | + | ||
| 52 | + if (sysctl(mib, 4, retvalargs, &len, NULL, 0) < 0) | ||
| 53 | + goto out; | ||
| 54 | + | ||
| 55 | + char *cr = strdup(retvalargs[0]); | ||
| 56 | + free(retvalargs); | ||
| 57 | + | ||
| 58 | + *tokens = strtok(cr, ":"); | ||
| 59 | + if (tokens[0] == NULL) | ||
| 60 | + goto out; | ||
| 61 | + | ||
| 62 | + if (realpath(tokens[0], retval) == NULL) | ||
| 63 | + goto out; | ||
| 64 | + | ||
| 65 | + if (stat(retval, &sb) < 0) | ||
| 66 | + goto out; | ||
| 67 | + | ||
| 68 | + if ((kd = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, errbuf)) == NULL) | ||
| 69 | + goto out; | ||
| 70 | + | ||
| 71 | + if ((files = kvm_getfiles(kd, KERN_FILE_BYPID, cpid, | ||
| 72 | + sizeof(struct kinfo_file), &cnt)) == NULL) { | ||
| 73 | + kvm_close(kd); | ||
| 74 | + goto out; | ||
| 75 | + } | ||
| 76 | + | ||
| 77 | + for (int i = 0; i < cnt; i++) { | ||
| 78 | + if (files[i].fd_fd == KERN_FILE_TEXT && | ||
| 79 | + files[i].va_fsid == static_cast<uint32_t>(sb.st_dev) && | ||
| 80 | + files[i].va_fileid == sb.st_ino) { | ||
| 81 | + kvm_close(kd); | ||
| 82 | + return base::FilePath(retval); | ||
| 83 | + } | ||
| 84 | + } | ||
| 85 | + } | ||
| 86 | + | ||
| 87 | +out: | ||
| 88 | + return base::FilePath(); | ||
| 89 | } | ||
| 90 | |||
| 91 | #elif defined(OS_ZOS) | ||
diff --git a/www/chromium/patches/patch-tools_json_schema_compiler_cpp_bundle_generator_py b/www/chromium/patches/patch-tools_json_schema_compiler_cpp_bundle_generator_py new file mode 100644 index 0000000..266ce4f --- /dev/null +++ b/www/chromium/patches/patch-tools_json_schema_compiler_cpp_bundle_generator_py | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: tools/json_schema_compiler/cpp_bundle_generator.py | ||
| 2 | --- tools/json_schema_compiler/cpp_bundle_generator.py.orig | ||
| 3 | +++ tools/json_schema_compiler/cpp_bundle_generator.py | ||
| 4 | @@ -154,7 +154,7 @@ class CppBundleGenerator(object): | ||
| 5 | # BUILDFLAG(IS_CHROMEOS) && BUILDFLAG(IS_CHROMEOS_LACROS). | ||
| 6 | ifdefs.append('BUILDFLAG(IS_CHROMEOS_LACROS)') | ||
| 7 | elif platform == Platforms.LINUX: | ||
| 8 | - ifdefs.append('BUILDFLAG(IS_LINUX)') | ||
| 9 | + ifdefs.append('BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)') | ||
| 10 | elif platform == Platforms.MAC: | ||
| 11 | ifdefs.append('BUILDFLAG(IS_MAC)') | ||
| 12 | elif platform == Platforms.WIN: | ||
diff --git a/www/chromium/patches/patch-tools_json_schema_compiler_feature_compiler_py b/www/chromium/patches/patch-tools_json_schema_compiler_feature_compiler_py new file mode 100644 index 0000000..ff0c969 --- /dev/null +++ b/www/chromium/patches/patch-tools_json_schema_compiler_feature_compiler_py | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: tools/json_schema_compiler/feature_compiler.py | ||
| 2 | --- tools/json_schema_compiler/feature_compiler.py.orig | ||
| 3 | +++ tools/json_schema_compiler/feature_compiler.py | ||
| 4 | @@ -267,6 +267,7 @@ FEATURE_GRAMMAR = ({ | ||
| 5 | 'mac': 'Feature::MACOSX_PLATFORM', | ||
| 6 | 'win': 'Feature::WIN_PLATFORM', | ||
| 7 | 'fuchsia': 'Feature::FUCHSIA_PLATFORM', | ||
| 8 | + 'openbsd': 'Feature::LINUX_PLATFORM', | ||
| 9 | } | ||
| 10 | } | ||
| 11 | }, | ||
diff --git a/www/chromium/patches/patch-tools_perf_chrome_telemetry_build_BUILD_gn b/www/chromium/patches/patch-tools_perf_chrome_telemetry_build_BUILD_gn new file mode 100644 index 0000000..682d5ed --- /dev/null +++ b/www/chromium/patches/patch-tools_perf_chrome_telemetry_build_BUILD_gn | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: tools/perf/chrome_telemetry_build/BUILD.gn | ||
| 2 | --- tools/perf/chrome_telemetry_build/BUILD.gn.orig | ||
| 3 | +++ tools/perf/chrome_telemetry_build/BUILD.gn | ||
| 4 | @@ -45,7 +45,7 @@ group("telemetry_chrome_test") { | ||
| 5 | data_deps += [ "//chrome:reorder_imports" ] | ||
| 6 | } | ||
| 7 | |||
| 8 | - if (is_linux || is_chromeos) { | ||
| 9 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 10 | data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] | ||
| 11 | |||
| 12 | # CrOS currently has issues with the locally compiled version of | ||
| 13 | @@ -212,7 +212,7 @@ group("telemetry_chrome_test_without_chrome") { | ||
| 14 | ] | ||
| 15 | |||
| 16 | # Cr-Fuchsia doesn't support breakpad. | ||
| 17 | - if (!is_win && !is_fuchsia) { | ||
| 18 | + if (!is_win && !is_fuchsia && !is_bsd) { | ||
| 19 | data_deps += [ | ||
| 20 | # This is defined for Windows, but is unused by Telemetry on | ||
| 21 | # Windows, and including it can have issues when cross-compiling | ||
diff --git a/www/chromium/patches/patch-tools_protoc_wrapper_protoc_wrapper_py b/www/chromium/patches/patch-tools_protoc_wrapper_protoc_wrapper_py new file mode 100644 index 0000000..676ba97 --- /dev/null +++ b/www/chromium/patches/patch-tools_protoc_wrapper_protoc_wrapper_py | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: tools/protoc_wrapper/protoc_wrapper.py | ||
| 2 | --- tools/protoc_wrapper/protoc_wrapper.py.orig | ||
| 3 | +++ tools/protoc_wrapper/protoc_wrapper.py | ||
| 4 | @@ -190,7 +190,11 @@ def main(argv): | ||
| 5 | with open(options.descriptor_set_dependency_file, 'rb') as f: | ||
| 6 | dependency_file_data = f.read().decode('utf-8') | ||
| 7 | |||
| 8 | - ret = subprocess.call(protoc_cmd) | ||
| 9 | + nenv = os.environ.copy() | ||
| 10 | + nenv["PATH"] = "${WRKOBJDIR}/bin:" + nenv["PATH"] | ||
| 11 | + nenv["LD_LIBRARY_PATH"] = "${WRKSRC}/out/Release" | ||
| 12 | + | ||
| 13 | + ret = subprocess.call(protoc_cmd, env=nenv) | ||
| 14 | if ret != 0: | ||
| 15 | if ret <= -100: | ||
| 16 | # Windows error codes such as 0xC0000005 and 0xC0000409 are much easier to | ||
diff --git a/www/chromium/patches/patch-tools_variations_fieldtrial_to_struct_py b/www/chromium/patches/patch-tools_variations_fieldtrial_to_struct_py new file mode 100644 index 0000000..dbed19b --- /dev/null +++ b/www/chromium/patches/patch-tools_variations_fieldtrial_to_struct_py | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: tools/variations/fieldtrial_to_struct.py | ||
| 2 | --- tools/variations/fieldtrial_to_struct.py.orig | ||
| 3 | +++ tools/variations/fieldtrial_to_struct.py | ||
| 4 | @@ -41,6 +41,8 @@ _platforms = [ | ||
| 5 | 'linux', | ||
| 6 | 'mac', | ||
| 7 | 'windows', | ||
| 8 | + 'openbsd', | ||
| 9 | + 'freebsd', | ||
| 10 | ] | ||
| 11 | |||
| 12 | _form_factors = [ | ||
diff --git a/www/chromium/patches/patch-ui_base_clipboard_clipboard_constants_cc b/www/chromium/patches/patch-ui_base_clipboard_clipboard_constants_cc new file mode 100644 index 0000000..71e2e38 --- /dev/null +++ b/www/chromium/patches/patch-ui_base_clipboard_clipboard_constants_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/clipboard/clipboard_constants.cc | ||
| 2 | --- ui/base/clipboard/clipboard_constants.cc.orig | ||
| 3 | +++ ui/base/clipboard/clipboard_constants.cc | ||
| 4 | @@ -24,7 +24,7 @@ const char kMimeTypeOctetStream[] = "application/octet | ||
| 5 | // Used for window dragging on some platforms. | ||
| 6 | const char kMimeTypeWindowDrag[] = "chromium/x-window-drag"; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | const char kMimeTypeLinuxUtf8String[] = "UTF8_STRING"; | ||
| 11 | const char kMimeTypeLinuxString[] = "STRING"; | ||
| 12 | const char kMimeTypeLinuxText[] = "TEXT"; | ||
diff --git a/www/chromium/patches/patch-ui_base_clipboard_clipboard_constants_h b/www/chromium/patches/patch-ui_base_clipboard_clipboard_constants_h new file mode 100644 index 0000000..b9efba2 --- /dev/null +++ b/www/chromium/patches/patch-ui_base_clipboard_clipboard_constants_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/clipboard/clipboard_constants.h | ||
| 2 | --- ui/base/clipboard/clipboard_constants.h.orig | ||
| 3 | +++ ui/base/clipboard/clipboard_constants.h | ||
| 4 | @@ -46,7 +46,7 @@ extern const char kMimeTypeDataTransferEndpoint[]; | ||
| 5 | #endif // BUILDFLAG(IS_CHROMEOS) | ||
| 6 | |||
| 7 | // Linux-specific MIME type constants (also used in Fuchsia). | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | COMPONENT_EXPORT(UI_BASE_CLIPBOARD_TYPES) | ||
| 11 | extern const char kMimeTypeLinuxUtf8String[]; | ||
| 12 | COMPONENT_EXPORT(UI_BASE_CLIPBOARD_TYPES) | ||
diff --git a/www/chromium/patches/patch-ui_base_cursor_cursor_factory_cc b/www/chromium/patches/patch-ui_base_cursor_cursor_factory_cc new file mode 100644 index 0000000..6ded83d --- /dev/null +++ b/www/chromium/patches/patch-ui_base_cursor_cursor_factory_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/cursor/cursor_factory.cc | ||
| 2 | --- ui/base/cursor/cursor_factory.cc.orig | ||
| 3 | +++ ui/base/cursor/cursor_factory.cc | ||
| 4 | @@ -82,7 +82,7 @@ void CursorFactory::ObserveThemeChanges() { | ||
| 5 | |||
| 6 | void CursorFactory::SetDeviceScaleFactor(float scale) {} | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | |||
| 11 | // Returns a cursor name compatible with either X11 or the FreeDesktop.org | ||
| 12 | // cursor spec ([1] and [2]), followed by fallbacks that can work as | ||
diff --git a/www/chromium/patches/patch-ui_base_cursor_cursor_factory_h b/www/chromium/patches/patch-ui_base_cursor_cursor_factory_h new file mode 100644 index 0000000..fc85e35 --- /dev/null +++ b/www/chromium/patches/patch-ui_base_cursor_cursor_factory_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/cursor/cursor_factory.h | ||
| 2 | --- ui/base/cursor/cursor_factory.h.orig | ||
| 3 | +++ ui/base/cursor/cursor_factory.h | ||
| 4 | @@ -81,7 +81,7 @@ class COMPONENT_EXPORT(UI_BASE_CURSOR) CursorFactory { | ||
| 5 | base::ObserverList<CursorFactoryObserver>::Unchecked observers_; | ||
| 6 | }; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | COMPONENT_EXPORT(UI_BASE_CURSOR) | ||
| 11 | std::vector<std::string> CursorNamesFromType(mojom::CursorType type); | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-ui_base_dragdrop_os_exchange_data_provider_factory_cc b/www/chromium/patches/patch-ui_base_dragdrop_os_exchange_data_provider_factory_cc new file mode 100644 index 0000000..62504da --- /dev/null +++ b/www/chromium/patches/patch-ui_base_dragdrop_os_exchange_data_provider_factory_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/base/dragdrop/os_exchange_data_provider_factory.cc | ||
| 2 | --- ui/base/dragdrop/os_exchange_data_provider_factory.cc.orig | ||
| 3 | +++ ui/base/dragdrop/os_exchange_data_provider_factory.cc | ||
| 4 | @@ -7,7 +7,7 @@ | ||
| 5 | #include "base/notreached.h" | ||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/base/dragdrop/os_exchange_data_provider_factory_ozone.h" | ||
| 11 | #include "ui/base/dragdrop/os_exchange_data_provider_non_backed.h" | ||
| 12 | #elif BUILDFLAG(IS_APPLE) | ||
| 13 | @@ -21,7 +21,7 @@ namespace ui { | ||
| 14 | // static | ||
| 15 | std::unique_ptr<OSExchangeDataProvider> | ||
| 16 | OSExchangeDataProviderFactory::CreateProvider() { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // The instance can be nullptr in tests that do not instantiate the platform, | ||
| 20 | // or on platforms that do not implement specific drag'n'drop. For them, | ||
| 21 | // falling back to the Aura provider should be fine. | ||
diff --git a/www/chromium/patches/patch-ui_base_dragdrop_os_exchange_data_provider_non_backed_cc b/www/chromium/patches/patch-ui_base_dragdrop_os_exchange_data_provider_non_backed_cc new file mode 100644 index 0000000..7c5051a --- /dev/null +++ b/www/chromium/patches/patch-ui_base_dragdrop_os_exchange_data_provider_non_backed_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/dragdrop/os_exchange_data_provider_non_backed.cc | ||
| 2 | --- ui/base/dragdrop/os_exchange_data_provider_non_backed.cc.orig | ||
| 3 | +++ ui/base/dragdrop/os_exchange_data_provider_non_backed.cc | ||
| 4 | @@ -94,7 +94,7 @@ void OSExchangeDataProviderNonBacked::SetPickledData( | ||
| 5 | } | ||
| 6 | |||
| 7 | bool OSExchangeDataProviderNonBacked::GetString(std::u16string* data) const { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | if (HasFile()) { | ||
| 11 | // Various Linux file managers both pass a list of file:// URIs and set the | ||
| 12 | // string representation to the URI. We explicitly don't want to return use | ||
diff --git a/www/chromium/patches/patch-ui_base_ime_dummy_text_input_client_cc b/www/chromium/patches/patch-ui_base_ime_dummy_text_input_client_cc new file mode 100644 index 0000000..2ce30a5 --- /dev/null +++ b/www/chromium/patches/patch-ui_base_ime_dummy_text_input_client_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/ime/dummy_text_input_client.cc | ||
| 2 | --- ui/base/ime/dummy_text_input_client.cc.orig | ||
| 3 | +++ ui/base/ime/dummy_text_input_client.cc | ||
| 4 | @@ -151,7 +151,7 @@ bool DummyTextInputClient::ShouldDoLearning() { | ||
| 5 | return false; | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | bool DummyTextInputClient::SetCompositionFromExistingText( | ||
| 11 | const gfx::Range& range, | ||
| 12 | const std::vector<ui::ImeTextSpan>& ui_ime_text_spans) { | ||
diff --git a/www/chromium/patches/patch-ui_base_ime_dummy_text_input_client_h b/www/chromium/patches/patch-ui_base_ime_dummy_text_input_client_h new file mode 100644 index 0000000..334af44 --- /dev/null +++ b/www/chromium/patches/patch-ui_base_ime_dummy_text_input_client_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/ime/dummy_text_input_client.h | ||
| 2 | --- ui/base/ime/dummy_text_input_client.h.orig | ||
| 3 | +++ ui/base/ime/dummy_text_input_client.h | ||
| 4 | @@ -63,7 +63,7 @@ class DummyTextInputClient : public TextInputClient { | ||
| 5 | ukm::SourceId GetClientSourceForMetrics() const override; | ||
| 6 | bool ShouldDoLearning() override; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | bool SetCompositionFromExistingText( | ||
| 11 | const gfx::Range& range, | ||
| 12 | const std::vector<ui::ImeTextSpan>& ui_ime_text_spans) override; | ||
diff --git a/www/chromium/patches/patch-ui_base_ime_fake_text_input_client_cc b/www/chromium/patches/patch-ui_base_ime_fake_text_input_client_cc new file mode 100644 index 0000000..1d57de5 --- /dev/null +++ b/www/chromium/patches/patch-ui_base_ime_fake_text_input_client_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/ime/fake_text_input_client.cc | ||
| 2 | --- ui/base/ime/fake_text_input_client.cc.orig | ||
| 3 | +++ ui/base/ime/fake_text_input_client.cc | ||
| 4 | @@ -161,7 +161,7 @@ bool FakeTextInputClient::ShouldDoLearning() { | ||
| 5 | return false; | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | bool FakeTextInputClient::SetCompositionFromExistingText( | ||
| 11 | const gfx::Range& range, | ||
| 12 | const std::vector<ui::ImeTextSpan>& ui_ime_text_spans) { | ||
diff --git a/www/chromium/patches/patch-ui_base_ime_fake_text_input_client_h b/www/chromium/patches/patch-ui_base_ime_fake_text_input_client_h new file mode 100644 index 0000000..14938d6 --- /dev/null +++ b/www/chromium/patches/patch-ui_base_ime_fake_text_input_client_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/ime/fake_text_input_client.h | ||
| 2 | --- ui/base/ime/fake_text_input_client.h.orig | ||
| 3 | +++ ui/base/ime/fake_text_input_client.h | ||
| 4 | @@ -69,7 +69,7 @@ class FakeTextInputClient : public TextInputClient { | ||
| 5 | void SetTextEditCommandForNextKeyEvent(TextEditCommand command) override; | ||
| 6 | ukm::SourceId GetClientSourceForMetrics() const override; | ||
| 7 | bool ShouldDoLearning() override; | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | bool SetCompositionFromExistingText( | ||
| 11 | const gfx::Range& range, | ||
| 12 | const std::vector<ui::ImeTextSpan>& ui_ime_text_spans) override; | ||
diff --git a/www/chromium/patches/patch-ui_base_ime_init_input_method_initializer_cc b/www/chromium/patches/patch-ui_base_ime_init_input_method_initializer_cc new file mode 100644 index 0000000..5118784 --- /dev/null +++ b/www/chromium/patches/patch-ui_base_ime_init_input_method_initializer_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: ui/base/ime/init/input_method_initializer.cc | ||
| 2 | --- ui/base/ime/init/input_method_initializer.cc.orig | ||
| 3 | +++ ui/base/ime/init/input_method_initializer.cc | ||
| 4 | @@ -10,7 +10,7 @@ | ||
| 5 | #include "build/chromeos_buildflags.h" | ||
| 6 | |||
| 7 | #if !BUILDFLAG(IS_CHROMEOS_ASH) && defined(USE_AURA) && \ | ||
| 8 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 10 | #include "base/check.h" | ||
| 11 | #include "ui/base/ime/linux/fake_input_method_context_factory.h" | ||
| 12 | #elif BUILDFLAG(IS_WIN) | ||
| 13 | @@ -20,7 +20,7 @@ | ||
| 14 | |||
| 15 | namespace { | ||
| 16 | |||
| 17 | -#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 18 | +#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 19 | const ui::LinuxInputMethodContextFactory* | ||
| 20 | g_linux_input_method_context_factory_for_testing; | ||
| 21 | #endif | ||
| 22 | @@ -43,7 +43,7 @@ void ShutdownInputMethod() { | ||
| 23 | |||
| 24 | void InitializeInputMethodForTesting() { | ||
| 25 | #if !BUILDFLAG(IS_CHROMEOS_ASH) && defined(USE_AURA) && \ | ||
| 26 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 27 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 28 | if (!g_linux_input_method_context_factory_for_testing) | ||
| 29 | g_linux_input_method_context_factory_for_testing = | ||
| 30 | new FakeInputMethodContextFactory(); | ||
| 31 | @@ -61,7 +61,7 @@ void InitializeInputMethodForTesting() { | ||
| 32 | |||
| 33 | void ShutdownInputMethodForTesting() { | ||
| 34 | #if !BUILDFLAG(IS_CHROMEOS_ASH) && defined(USE_AURA) && \ | ||
| 35 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 36 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 37 | const LinuxInputMethodContextFactory* factory = | ||
| 38 | LinuxInputMethodContextFactory::instance(); | ||
| 39 | CHECK(!factory || factory == g_linux_input_method_context_factory_for_testing) | ||
diff --git a/www/chromium/patches/patch-ui_base_ime_text_input_client_h b/www/chromium/patches/patch-ui_base_ime_text_input_client_h new file mode 100644 index 0000000..b27e09a --- /dev/null +++ b/www/chromium/patches/patch-ui_base_ime_text_input_client_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/ime/text_input_client.h | ||
| 2 | --- ui/base/ime/text_input_client.h.orig | ||
| 3 | +++ ui/base/ime/text_input_client.h | ||
| 4 | @@ -237,7 +237,7 @@ class COMPONENT_EXPORT(UI_BASE_IME) TextInputClient { | ||
| 5 | // fields that are considered 'private' (e.g. in incognito tabs). | ||
| 6 | virtual bool ShouldDoLearning() = 0; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Start composition over a given UTF-16 code range from existing text. This | ||
| 11 | // should only be used for composition scenario when IME wants to start | ||
| 12 | // composition on existing text. Returns whether the operation was successful. | ||
diff --git a/www/chromium/patches/patch-ui_base_resource_resource_bundle_cc b/www/chromium/patches/patch-ui_base_resource_resource_bundle_cc new file mode 100644 index 0000000..cea4fa9 --- /dev/null +++ b/www/chromium/patches/patch-ui_base_resource_resource_bundle_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/resource/resource_bundle.cc | ||
| 2 | --- ui/base/resource/resource_bundle.cc.orig | ||
| 3 | +++ ui/base/resource/resource_bundle.cc | ||
| 4 | @@ -878,7 +878,7 @@ void ResourceBundle::ReloadFonts() { | ||
| 5 | } | ||
| 6 | |||
| 7 | ResourceScaleFactor ResourceBundle::GetMaxResourceScaleFactor() const { | ||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | return max_scale_factor_; | ||
| 11 | #else | ||
| 12 | return GetSupportedResourceScaleFactors().back(); | ||
diff --git a/www/chromium/patches/patch-ui_base_test_skia_gold_pixel_diff_cc b/www/chromium/patches/patch-ui_base_test_skia_gold_pixel_diff_cc new file mode 100644 index 0000000..eccb21b --- /dev/null +++ b/www/chromium/patches/patch-ui_base_test_skia_gold_pixel_diff_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/test/skia_gold_pixel_diff.cc | ||
| 2 | --- ui/base/test/skia_gold_pixel_diff.cc.orig | ||
| 3 | +++ ui/base/test/skia_gold_pixel_diff.cc | ||
| 4 | @@ -150,7 +150,7 @@ std::string SkiaGoldPixelDiff::GetPlatform() { | ||
| 5 | return "macOS"; | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | return "linux"; | ||
| 11 | #endif | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-ui_base_ui_base_features_cc b/www/chromium/patches/patch-ui_base_ui_base_features_cc new file mode 100644 index 0000000..608acac --- /dev/null +++ b/www/chromium/patches/patch-ui_base_ui_base_features_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/base/ui_base_features.cc | ||
| 2 | --- ui/base/ui_base_features.cc.orig | ||
| 3 | +++ ui/base/ui_base_features.cc | ||
| 4 | @@ -159,7 +159,7 @@ const base::Feature kExperimentalFlingAnimation { | ||
| 5 | // of lacros-chrome is complete. | ||
| 6 | #if BUILDFLAG(IS_WIN) || \ | ||
| 7 | (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_ASH) && \ | ||
| 8 | - !BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | + !BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) | ||
| 10 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 11 | #else | ||
| 12 | base::FEATURE_DISABLED_BY_DEFAULT | ||
| 13 | @@ -255,7 +255,7 @@ bool IsForcedColorsEnabled() { | ||
| 14 | // milestones. | ||
| 15 | const base::Feature kEyeDropper { | ||
| 16 | "EyeDropper", | ||
| 17 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | base::FEATURE_ENABLED_BY_DEFAULT | ||
| 20 | #else | ||
| 21 | base::FEATURE_DISABLED_BY_DEFAULT | ||
diff --git a/www/chromium/patches/patch-ui_base_webui_web_ui_util_cc b/www/chromium/patches/patch-ui_base_webui_web_ui_util_cc new file mode 100644 index 0000000..3514008 --- /dev/null +++ b/www/chromium/patches/patch-ui_base_webui_web_ui_util_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/base/webui/web_ui_util.cc | ||
| 2 | --- ui/base/webui/web_ui_util.cc.orig | ||
| 3 | +++ ui/base/webui/web_ui_util.cc | ||
| 4 | @@ -221,7 +221,7 @@ std::string GetFontFamily() { | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | std::string font_name = ui::ResourceBundle::GetSharedInstance() | ||
| 11 | .GetFont(ui::ResourceBundle::BaseFont) | ||
| 12 | .GetFontName(); | ||
diff --git a/www/chromium/patches/patch-ui_base_x_x11_cursor_loader_cc b/www/chromium/patches/patch-ui_base_x_x11_cursor_loader_cc new file mode 100644 index 0000000..cd5c750 --- /dev/null +++ b/www/chromium/patches/patch-ui_base_x_x11_cursor_loader_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: ui/base/x/x11_cursor_loader.cc | ||
| 2 | --- ui/base/x/x11_cursor_loader.cc.orig | ||
| 3 | +++ ui/base/x/x11_cursor_loader.cc | ||
| 4 | @@ -138,7 +138,11 @@ std::string CursorPathFromLibXcursor() { | ||
| 5 | void operator()(void* ptr) const { dlclose(ptr); } | ||
| 6 | }; | ||
| 7 | |||
| 8 | +#if defined(OS_BSD) | ||
| 9 | + std::unique_ptr<void, DlCloser> lib(dlopen("libXcursor.so", RTLD_LAZY)); | ||
| 10 | +#else | ||
| 11 | std::unique_ptr<void, DlCloser> lib(dlopen("libXcursor.so.1", RTLD_LAZY)); | ||
| 12 | +#endif | ||
| 13 | if (!lib) | ||
| 14 | return ""; | ||
| 15 | |||
diff --git a/www/chromium/patches/patch-ui_base_x_x11_shm_image_pool_cc b/www/chromium/patches/patch-ui_base_x_x11_shm_image_pool_cc new file mode 100644 index 0000000..96c47a2 --- /dev/null +++ b/www/chromium/patches/patch-ui_base_x_x11_shm_image_pool_cc | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | Index: ui/base/x/x11_shm_image_pool.cc | ||
| 2 | --- ui/base/x/x11_shm_image_pool.cc.orig | ||
| 3 | +++ ui/base/x/x11_shm_image_pool.cc | ||
| 4 | @@ -16,6 +16,7 @@ | ||
| 5 | #include "base/environment.h" | ||
| 6 | #include "base/location.h" | ||
| 7 | #include "base/strings/string_util.h" | ||
| 8 | +#include "base/system/sys_info.h" | ||
| 9 | #include "base/threading/thread_task_runner_handle.h" | ||
| 10 | #include "build/build_config.h" | ||
| 11 | #include "build/chromeos_buildflags.h" | ||
| 12 | @@ -46,10 +47,14 @@ constexpr float kShmResizeShrinkThreshold = | ||
| 13 | 1.0f / (kShmResizeThreshold * kShmResizeThreshold); | ||
| 14 | |||
| 15 | std::size_t MaxShmSegmentSizeImpl() { | ||
| 16 | +#if BUILDFLAG(IS_BSD) | ||
| 17 | + return base::SysInfo::MaxSharedMemorySize(); | ||
| 18 | +#else | ||
| 19 | struct shminfo info; | ||
| 20 | if (shmctl(0, IPC_INFO, reinterpret_cast<struct shmid_ds*>(&info)) == -1) | ||
| 21 | return 0; | ||
| 22 | return info.shmmax; | ||
| 23 | +#endif | ||
| 24 | } | ||
| 25 | |||
| 26 | std::size_t MaxShmSegmentSize() { | ||
| 27 | @@ -66,6 +71,9 @@ bool IsRemoteHost(const std::string& name) { | ||
| 28 | } | ||
| 29 | |||
| 30 | bool ShouldUseMitShm(x11::Connection* connection) { | ||
| 31 | +#if BUILDFLAG(IS_BSD) | ||
| 32 | + return false; | ||
| 33 | +#endif | ||
| 34 | // MIT-SHM may be available on remote connetions, but it will be unusable. Do | ||
| 35 | // a best-effort check to see if the host is remote to disable the SHM | ||
| 36 | // codepath. It may be possible in contrived cases for there to be a | ||
| 37 | @@ -184,7 +192,7 @@ bool XShmImagePool::Resize(const gfx::Size& pixel_size | ||
| 38 | shmctl(state.shmid, IPC_RMID, nullptr); | ||
| 39 | return false; | ||
| 40 | } | ||
| 41 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 42 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 43 | // On Linux, a shmid can still be attached after IPC_RMID if otherwise | ||
| 44 | // kept alive. Detach before XShmAttach to prevent a memory leak in case | ||
| 45 | // the process dies. | ||
| 46 | @@ -203,7 +211,7 @@ bool XShmImagePool::Resize(const gfx::Size& pixel_size | ||
| 47 | return false; | ||
| 48 | state.shmseg = shmseg; | ||
| 49 | state.shmem_attached_to_server = true; | ||
| 50 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 51 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) | ||
| 52 | // The Linux-specific shmctl behavior above may not be portable, so we're | ||
| 53 | // forced to do IPC_RMID after the server has attached to the segment. | ||
| 54 | shmctl(state.shmid, IPC_RMID, nullptr); | ||
diff --git a/www/chromium/patches/patch-ui_color_color_id_h b/www/chromium/patches/patch-ui_color_color_id_h new file mode 100644 index 0000000..c0dc0a6 --- /dev/null +++ b/www/chromium/patches/patch-ui_color_color_id_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/color/color_id.h | ||
| 2 | --- ui/color/color_id.h.orig | ||
| 3 | +++ ui/color/color_id.h | ||
| 4 | @@ -191,7 +191,7 @@ | ||
| 5 | E_CPONLY(kColorNativeColor6) \ | ||
| 6 | E_CPONLY(kColorNativeBaseColor) \ | ||
| 7 | E_CPONLY(kColorNativeSecondaryColor) | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #define PLATFORM_SPECIFIC_COLOR_IDS \ | ||
| 11 | E_CPONLY(kColorNativeButtonBackground) \ | ||
| 12 | E_CPONLY(kColorNativeButtonBackgroundDisabled) \ | ||
diff --git a/www/chromium/patches/patch-ui_color_native_color_mixers_cc b/www/chromium/patches/patch-ui_color_native_color_mixers_cc new file mode 100644 index 0000000..2058b80 --- /dev/null +++ b/www/chromium/patches/patch-ui_color_native_color_mixers_cc | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | Index: ui/color/native_color_mixers.cc | ||
| 2 | --- ui/color/native_color_mixers.cc.orig | ||
| 3 | +++ ui/color/native_color_mixers.cc | ||
| 4 | @@ -10,12 +10,12 @@ | ||
| 5 | namespace ui { | ||
| 6 | |||
| 7 | #if !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_MAC) && \ | ||
| 8 | - !BUILDFLAG(IS_WIN) | ||
| 9 | + !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_BSD) | ||
| 10 | void AddNativeCoreColorMixer(ColorProvider* provider, | ||
| 11 | const ColorProviderManager::Key& key) {} | ||
| 12 | #endif | ||
| 13 | |||
| 14 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_WIN) | ||
| 15 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_BSD) | ||
| 16 | void AddNativeUiColorMixer(ColorProvider* provider, | ||
| 17 | const ColorProviderManager::Key& key) {} | ||
| 18 | #endif | ||
diff --git a/www/chromium/patches/patch-ui_compositor_compositor_cc b/www/chromium/patches/patch-ui_compositor_compositor_cc new file mode 100644 index 0000000..081ee92 --- /dev/null +++ b/www/chromium/patches/patch-ui_compositor_compositor_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/compositor/compositor.cc | ||
| 2 | --- ui/compositor/compositor.cc.orig | ||
| 3 | +++ ui/compositor/compositor.cc | ||
| 4 | @@ -860,7 +860,7 @@ void Compositor::OnResume() { | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | void Compositor::OnCompleteSwapWithNewSize(const gfx::Size& size) { | ||
| 11 | for (auto& observer : observer_list_) | ||
| 12 | observer.OnCompositingCompleteSwapWithNewSize(this, size); | ||
diff --git a/www/chromium/patches/patch-ui_compositor_compositor_h b/www/chromium/patches/patch-ui_compositor_compositor_h new file mode 100644 index 0000000..b131f8f --- /dev/null +++ b/www/chromium/patches/patch-ui_compositor_compositor_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/compositor/compositor.h | ||
| 2 | --- ui/compositor/compositor.h.orig | ||
| 3 | +++ ui/compositor/compositor.h | ||
| 4 | @@ -402,7 +402,7 @@ class COMPOSITOR_EXPORT Compositor : public base::Powe | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | void OnCompleteSwapWithNewSize(const gfx::Size& size); | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-ui_compositor_compositor_observer_h b/www/chromium/patches/patch-ui_compositor_compositor_observer_h new file mode 100644 index 0000000..28038f2 --- /dev/null +++ b/www/chromium/patches/patch-ui_compositor_compositor_observer_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/compositor/compositor_observer.h | ||
| 2 | --- ui/compositor/compositor_observer.h.orig | ||
| 3 | +++ ui/compositor/compositor_observer.h | ||
| 4 | @@ -48,7 +48,7 @@ class COMPOSITOR_EXPORT CompositorObserver { | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Called when a swap with new size is completed. | ||
| 11 | virtual void OnCompositingCompleteSwapWithNewSize(ui::Compositor* compositor, | ||
| 12 | const gfx::Size& size) {} | ||
diff --git a/www/chromium/patches/patch-ui_events_devices_x11_device_data_manager_x11_cc b/www/chromium/patches/patch-ui_events_devices_x11_device_data_manager_x11_cc new file mode 100644 index 0000000..8840825 --- /dev/null +++ b/www/chromium/patches/patch-ui_events_devices_x11_device_data_manager_x11_cc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: ui/events/devices/x11/device_data_manager_x11.cc | ||
| 2 | --- ui/events/devices/x11/device_data_manager_x11.cc.orig | ||
| 3 | +++ ui/events/devices/x11/device_data_manager_x11.cc | ||
| 4 | @@ -874,6 +874,7 @@ void DeviceDataManagerX11::SetDisabledKeyboardAllowedK | ||
| 5 | } | ||
| 6 | |||
| 7 | void DeviceDataManagerX11::DisableDevice(x11::Input::DeviceId deviceid) { | ||
| 8 | + NOTIMPLEMENTED(); | ||
| 9 | blocked_devices_.set(static_cast<uint32_t>(deviceid), true); | ||
| 10 | // TODO(rsadam@): Support blocking touchscreen devices. | ||
| 11 | std::vector<InputDevice> keyboards = GetKeyboardDevices(); | ||
diff --git a/www/chromium/patches/patch-ui_events_event_cc b/www/chromium/patches/patch-ui_events_event_cc new file mode 100644 index 0000000..b9a2d00 --- /dev/null +++ b/www/chromium/patches/patch-ui_events_event_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/events/event.cc | ||
| 2 | --- ui/events/event.cc.orig | ||
| 3 | +++ ui/events/event.cc | ||
| 4 | @@ -453,7 +453,7 @@ std::string LocatedEvent::ToString() const { | ||
| 5 | MouseEvent::MouseEvent(const PlatformEvent& native_event) | ||
| 6 | : LocatedEvent(native_event), | ||
| 7 | changed_button_flags_(GetChangedMouseButtonFlagsFromNative(native_event)), | ||
| 8 | -#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | movement_(GetMouseMovementFromNative(native_event)), | ||
| 11 | #endif | ||
| 12 | pointer_details_(GetMousePointerDetailsFromNative(native_event)) { | ||
| 13 | @@ -935,7 +935,7 @@ void KeyEvent::InitializeNative() { | ||
| 14 | if (synthesize_key_repeat_enabled_ && IsRepeated(GetLastKeyEvent())) | ||
| 15 | set_flags(flags() | EF_IS_REPEAT); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | NormalizeFlags(); | ||
| 20 | #elif BUILDFLAG(IS_WIN) | ||
| 21 | // Only Windows has native character events. | ||
diff --git a/www/chromium/patches/patch-ui_events_event_switches_cc b/www/chromium/patches/patch-ui_events_event_switches_cc new file mode 100644 index 0000000..30f5f61 --- /dev/null +++ b/www/chromium/patches/patch-ui_events_event_switches_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/events/event_switches.cc | ||
| 2 | --- ui/events/event_switches.cc.orig | ||
| 3 | +++ ui/events/event_switches.cc | ||
| 4 | @@ -14,7 +14,7 @@ namespace switches { | ||
| 5 | const char kCompensateForUnstablePinchZoom[] = | ||
| 6 | "compensate-for-unstable-pinch-zoom"; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Tells chrome to interpret events from these devices as touch events. Only | ||
| 11 | // available with XInput 2 (i.e. X server 1.8 or above). The id's of the | ||
| 12 | // devices can be retrieved from 'xinput list'. | ||
diff --git a/www/chromium/patches/patch-ui_events_event_switches_h b/www/chromium/patches/patch-ui_events_event_switches_h new file mode 100644 index 0000000..9fb391e --- /dev/null +++ b/www/chromium/patches/patch-ui_events_event_switches_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/events/event_switches.h | ||
| 2 | --- ui/events/event_switches.h.orig | ||
| 3 | +++ ui/events/event_switches.h | ||
| 4 | @@ -12,7 +12,7 @@ namespace switches { | ||
| 5 | |||
| 6 | EVENTS_BASE_EXPORT extern const char kCompensateForUnstablePinchZoom[]; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | EVENTS_BASE_EXPORT extern const char kTouchDevices[]; | ||
| 11 | EVENTS_BASE_EXPORT extern const char kPenDevices[]; | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-ui_events_keycodes_dom_keycode_converter_cc b/www/chromium/patches/patch-ui_events_keycodes_dom_keycode_converter_cc new file mode 100644 index 0000000..b893cf8 --- /dev/null +++ b/www/chromium/patches/patch-ui_events_keycodes_dom_keycode_converter_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/events/keycodes/dom/keycode_converter.cc | ||
| 2 | --- ui/events/keycodes/dom/keycode_converter.cc.orig | ||
| 3 | +++ ui/events/keycodes/dom/keycode_converter.cc | ||
| 4 | @@ -24,7 +24,7 @@ namespace { | ||
| 5 | #if BUILDFLAG(IS_WIN) | ||
| 6 | #define DOM_CODE(usb, evdev, xkb, win, mac, code, id) \ | ||
| 7 | { usb, win, code } | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #define DOM_CODE(usb, evdev, xkb, win, mac, code, id) \ | ||
| 11 | { usb, xkb, code } | ||
| 12 | #elif BUILDFLAG(IS_APPLE) | ||
diff --git a/www/chromium/patches/patch-ui_gfx_BUILD_gn b/www/chromium/patches/patch-ui_gfx_BUILD_gn new file mode 100644 index 0000000..7f0b9eb --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_BUILD_gn | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gfx/BUILD.gn | ||
| 2 | --- ui/gfx/BUILD.gn.orig | ||
| 3 | +++ ui/gfx/BUILD.gn | ||
| 4 | @@ -583,7 +583,7 @@ source_set("memory_buffer_sources") { | ||
| 5 | deps += [ "//build/config/linux/libdrm" ] | ||
| 6 | } | ||
| 7 | |||
| 8 | - if (is_linux || is_chromeos || is_android) { | ||
| 9 | + if ((is_linux || is_chromeos || is_android) && !is_bsd) { | ||
| 10 | deps += [ "//third_party/libsync" ] | ||
| 11 | } | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-ui_gfx_canvas_skia_cc b/www/chromium/patches/patch-ui_gfx_canvas_skia_cc new file mode 100644 index 0000000..40942a8 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_canvas_skia_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gfx/canvas_skia.cc | ||
| 2 | --- ui/gfx/canvas_skia.cc.orig | ||
| 3 | +++ ui/gfx/canvas_skia.cc | ||
| 4 | @@ -200,7 +200,7 @@ void Canvas::DrawStringRectWithFlags(const std::u16str | ||
| 5 | Range range = StripAcceleratorChars(flags, &adjusted_text); | ||
| 6 | bool elide_text = ((flags & NO_ELLIPSIS) == 0); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // On Linux, eliding really means fading the end of the string. But only | ||
| 11 | // for LTR text. RTL text is still elided (on the left) with "...". | ||
| 12 | if (elide_text) { | ||
diff --git a/www/chromium/patches/patch-ui_gfx_codec_png_codec_cc b/www/chromium/patches/patch-ui_gfx_codec_png_codec_cc new file mode 100644 index 0000000..7fa190f --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_codec_png_codec_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gfx/codec/png_codec.cc | ||
| 2 | --- ui/gfx/codec/png_codec.cc.orig | ||
| 3 | +++ ui/gfx/codec/png_codec.cc | ||
| 4 | @@ -10,7 +10,7 @@ | ||
| 5 | #include "base/memory/raw_ptr.h" | ||
| 6 | #include "base/notreached.h" | ||
| 7 | #include "base/strings/string_util.h" | ||
| 8 | -#include "third_party/libpng/png.h" | ||
| 9 | +#include <png.h> | ||
| 10 | #include "third_party/skia/include/core/SkBitmap.h" | ||
| 11 | #include "third_party/skia/include/core/SkColorPriv.h" | ||
| 12 | #include "third_party/skia/include/core/SkUnPreMultiply.h" | ||
diff --git a/www/chromium/patches/patch-ui_gfx_font_fallback_linux_cc b/www/chromium/patches/patch-ui_gfx_font_fallback_linux_cc new file mode 100644 index 0000000..6bee33c --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_font_fallback_linux_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gfx/font_fallback_linux.cc | ||
| 2 | --- ui/gfx/font_fallback_linux.cc.orig | ||
| 3 | +++ ui/gfx/font_fallback_linux.cc | ||
| 4 | @@ -25,6 +25,8 @@ | ||
| 5 | #include "ui/gfx/linux/fontconfig_util.h" | ||
| 6 | #include "ui/gfx/platform_font.h" | ||
| 7 | |||
| 8 | +#include <unistd.h> | ||
| 9 | + | ||
| 10 | namespace gfx { | ||
| 11 | |||
| 12 | namespace { | ||
diff --git a/www/chromium/patches/patch-ui_gfx_font_list_cc b/www/chromium/patches/patch-ui_gfx_font_list_cc new file mode 100644 index 0000000..f6f867f --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_font_list_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gfx/font_list.cc | ||
| 2 | --- ui/gfx/font_list.cc.orig | ||
| 3 | +++ ui/gfx/font_list.cc | ||
| 4 | @@ -27,7 +27,7 @@ base::LazyInstance<scoped_refptr<gfx::FontListImpl>>:: | ||
| 5 | bool g_default_impl_initialized = false; | ||
| 6 | |||
| 7 | bool IsFontFamilyAvailable(const std::string& family, SkFontMgr* fontManager) { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | return !!fontManager->legacyMakeTypeface(family.c_str(), SkFontStyle()); | ||
| 11 | #else | ||
| 12 | sk_sp<SkFontStyleSet> set(fontManager->matchFamily(family.c_str())); | ||
diff --git a/www/chromium/patches/patch-ui_gfx_font_render_params_h b/www/chromium/patches/patch-ui_gfx_font_render_params_h new file mode 100644 index 0000000..94aa2dc --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_font_render_params_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/gfx/font_render_params.h | ||
| 2 | --- ui/gfx/font_render_params.h.orig | ||
| 3 | +++ ui/gfx/font_render_params.h | ||
| 4 | @@ -109,7 +109,7 @@ GFX_EXPORT FontRenderParams GetFontRenderParams( | ||
| 5 | const FontRenderParamsQuery& query, | ||
| 6 | std::string* family_out); | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Clears GetFontRenderParams()'s cache. Intended to be called by tests that are | ||
| 11 | // changing Fontconfig's configuration. | ||
| 12 | GFX_EXPORT void ClearFontRenderParamsCacheForTest(); | ||
| 13 | @@ -119,7 +119,7 @@ GFX_EXPORT void ClearFontRenderParamsCacheForTest(); | ||
| 14 | GFX_EXPORT float GetFontRenderParamsDeviceScaleFactor(); | ||
| 15 | |||
| 16 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ | ||
| 17 | - BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) | ||
| 18 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | // Sets the device scale factor for FontRenderParams to decide | ||
| 20 | // if it should enable subpixel positioning. | ||
| 21 | GFX_EXPORT void SetFontRenderParamsDeviceScaleFactor( | ||
diff --git a/www/chromium/patches/patch-ui_gfx_font_util_cc b/www/chromium/patches/patch-ui_gfx_font_util_cc new file mode 100644 index 0000000..491f77c --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_font_util_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/gfx/font_util.cc | ||
| 2 | --- ui/gfx/font_util.cc.orig | ||
| 3 | +++ ui/gfx/font_util.cc | ||
| 4 | @@ -6,7 +6,7 @@ | ||
| 5 | |||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <fontconfig/fontconfig.h> | ||
| 11 | #include "ui/gfx/linux/fontconfig_util.h" | ||
| 12 | #endif | ||
| 13 | @@ -24,7 +24,7 @@ void InitializeFonts() { | ||
| 14 | // background (resources have not yet been granted to cast) since it prevents | ||
| 15 | // the long delay the user would have seen on first rendering. | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Ensures the config is created on this thread. | ||
| 20 | FcConfig* config = GetGlobalFontConfig(); | ||
| 21 | DCHECK(config); | ||
diff --git a/www/chromium/patches/patch-ui_gfx_gpu_memory_buffer_cc b/www/chromium/patches/patch-ui_gfx_gpu_memory_buffer_cc new file mode 100644 index 0000000..cf88175 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_gpu_memory_buffer_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gfx/gpu_memory_buffer.cc | ||
| 2 | --- ui/gfx/gpu_memory_buffer.cc.orig | ||
| 3 | +++ ui/gfx/gpu_memory_buffer.cc | ||
| 4 | @@ -54,7 +54,7 @@ GpuMemoryBufferHandle GpuMemoryBufferHandle::Clone() c | ||
| 5 | handle.region = region.Duplicate(); | ||
| 6 | handle.offset = offset; | ||
| 7 | handle.stride = stride; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | handle.native_pixmap_handle = CloneHandleForIPC(native_pixmap_handle); | ||
| 11 | #elif BUILDFLAG(IS_MAC) | ||
| 12 | handle.io_surface = io_surface; | ||
diff --git a/www/chromium/patches/patch-ui_gfx_gpu_memory_buffer_h b/www/chromium/patches/patch-ui_gfx_gpu_memory_buffer_h new file mode 100644 index 0000000..51ff7c5 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_gpu_memory_buffer_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/gfx/gpu_memory_buffer.h | ||
| 2 | --- ui/gfx/gpu_memory_buffer.h.orig | ||
| 3 | +++ ui/gfx/gpu_memory_buffer.h | ||
| 4 | @@ -16,7 +16,7 @@ | ||
| 5 | #include "ui/gfx/gfx_export.h" | ||
| 6 | #include "ui/gfx/hdr_metadata.h" | ||
| 7 | |||
| 8 | -#if defined(USE_OZONE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if defined(USE_OZONE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/gfx/native_pixmap_handle.h" | ||
| 11 | #elif BUILDFLAG(IS_MAC) | ||
| 12 | #include "ui/gfx/mac/io_surface.h" | ||
| 13 | @@ -78,7 +78,7 @@ struct GFX_EXPORT GpuMemoryBufferHandle { | ||
| 14 | base::UnsafeSharedMemoryRegion region; | ||
| 15 | uint32_t offset = 0; | ||
| 16 | int32_t stride = 0; | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | NativePixmapHandle native_pixmap_handle; | ||
| 20 | #elif BUILDFLAG(IS_MAC) | ||
| 21 | ScopedIOSurface io_surface; | ||
diff --git a/www/chromium/patches/patch-ui_gfx_ipc_gfx_param_traits_macros_h b/www/chromium/patches/patch-ui_gfx_ipc_gfx_param_traits_macros_h new file mode 100644 index 0000000..d3ce65d --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_ipc_gfx_param_traits_macros_h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | Index: ui/gfx/ipc/gfx_param_traits_macros.h | ||
| 2 | --- ui/gfx/ipc/gfx_param_traits_macros.h.orig | ||
| 3 | +++ ui/gfx/ipc/gfx_param_traits_macros.h | ||
| 4 | @@ -18,7 +18,7 @@ | ||
| 5 | #include "ui/gfx/selection_bound.h" | ||
| 6 | #include "ui/gfx/swap_result.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/gfx/native_pixmap_handle.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -48,7 +48,7 @@ IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) | ||
| 14 | IPC_STRUCT_TRAITS_MEMBER(region) | ||
| 15 | IPC_STRUCT_TRAITS_MEMBER(offset) | ||
| 16 | IPC_STRUCT_TRAITS_MEMBER(stride) | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 19 | IPC_STRUCT_TRAITS_MEMBER(native_pixmap_handle) | ||
| 20 | #elif BUILDFLAG(IS_APPLE) | ||
| 21 | IPC_STRUCT_TRAITS_MEMBER(io_surface) | ||
| 22 | @@ -63,12 +63,12 @@ IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId) | ||
| 23 | IPC_STRUCT_TRAITS_MEMBER(id) | ||
| 24 | IPC_STRUCT_TRAITS_END() | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 28 | IPC_STRUCT_TRAITS_BEGIN(gfx::NativePixmapPlane) | ||
| 29 | IPC_STRUCT_TRAITS_MEMBER(stride) | ||
| 30 | IPC_STRUCT_TRAITS_MEMBER(offset) | ||
| 31 | IPC_STRUCT_TRAITS_MEMBER(size) | ||
| 32 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 33 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 34 | IPC_STRUCT_TRAITS_MEMBER(fd) | ||
| 35 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 36 | IPC_STRUCT_TRAITS_MEMBER(vmo) | ||
| 37 | @@ -77,7 +77,7 @@ IPC_STRUCT_TRAITS_END() | ||
| 38 | |||
| 39 | IPC_STRUCT_TRAITS_BEGIN(gfx::NativePixmapHandle) | ||
| 40 | IPC_STRUCT_TRAITS_MEMBER(planes) | ||
| 41 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 42 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 43 | IPC_STRUCT_TRAITS_MEMBER(modifier) | ||
| 44 | #endif | ||
| 45 | #if BUILDFLAG(IS_FUCHSIA) | ||
diff --git a/www/chromium/patches/patch-ui_gfx_linux_client_native_pixmap_dmabuf_cc b/www/chromium/patches/patch-ui_gfx_linux_client_native_pixmap_dmabuf_cc new file mode 100644 index 0000000..7f22978 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_linux_client_native_pixmap_dmabuf_cc | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Index: ui/gfx/linux/client_native_pixmap_dmabuf.cc | ||
| 2 | --- ui/gfx/linux/client_native_pixmap_dmabuf.cc.orig | ||
| 3 | +++ ui/gfx/linux/client_native_pixmap_dmabuf.cc | ||
| 4 | @@ -5,7 +5,9 @@ | ||
| 5 | #include "ui/gfx/linux/client_native_pixmap_dmabuf.h" | ||
| 6 | |||
| 7 | #include <fcntl.h> | ||
| 8 | +#if !defined(__OpenBSD__) && !defined(__FreeBSD__) | ||
| 9 | #include <linux/version.h> | ||
| 10 | +#endif | ||
| 11 | #include <stddef.h> | ||
| 12 | #include <sys/ioctl.h> | ||
| 13 | #include <sys/mman.h> | ||
| 14 | @@ -27,11 +29,7 @@ | ||
| 15 | #include "ui/gfx/buffer_format_util.h" | ||
| 16 | #include "ui/gfx/switches.h" | ||
| 17 | |||
| 18 | -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) | ||
| 19 | -#include <linux/dma-buf.h> | ||
| 20 | -#else | ||
| 21 | -#include <linux/types.h> | ||
| 22 | - | ||
| 23 | +#if defined(__OpenBSD__) || defined(__FreeBSD__) | ||
| 24 | struct dma_buf_sync { | ||
| 25 | __u64 flags; | ||
| 26 | }; | ||
diff --git a/www/chromium/patches/patch-ui_gfx_mojom_buffer_types_mojom_traits_cc b/www/chromium/patches/patch-ui_gfx_mojom_buffer_types_mojom_traits_cc new file mode 100644 index 0000000..155e3c5 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_mojom_buffer_types_mojom_traits_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/gfx/mojom/buffer_types_mojom_traits.cc | ||
| 2 | --- ui/gfx/mojom/buffer_types_mojom_traits.cc.orig | ||
| 3 | +++ ui/gfx/mojom/buffer_types_mojom_traits.cc | ||
| 4 | @@ -33,7 +33,7 @@ gfx::mojom::GpuMemoryBufferPlatformHandlePtr StructTra | ||
| 5 | return gfx::mojom::GpuMemoryBufferPlatformHandle::NewSharedMemoryHandle( | ||
| 6 | std::move(handle.region)); | ||
| 7 | case gfx::NATIVE_PIXMAP: | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) || BUILDFLAG(IS_BSD) | ||
| 10 | return gfx::mojom::GpuMemoryBufferPlatformHandle::NewNativePixmapHandle( | ||
| 11 | std::move(handle.native_pixmap_handle)); | ||
| 12 | #else | ||
| 13 | @@ -115,7 +115,7 @@ bool StructTraits<gfx::mojom::GpuMemoryBufferHandleDat | ||
| 14 | out->type = gfx::SHARED_MEMORY_BUFFER; | ||
| 15 | out->region = std::move(platform_handle->get_shared_memory_handle()); | ||
| 16 | return true; | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) || BUILDFLAG(IS_BSD) | ||
| 19 | case gfx::mojom::GpuMemoryBufferPlatformHandleDataView::Tag:: | ||
| 20 | NATIVE_PIXMAP_HANDLE: | ||
| 21 | out->type = gfx::NATIVE_PIXMAP; | ||
diff --git a/www/chromium/patches/patch-ui_gfx_mojom_native_handle_types_mojom_traits_cc b/www/chromium/patches/patch-ui_gfx_mojom_native_handle_types_mojom_traits_cc new file mode 100644 index 0000000..4c39ef2 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_mojom_native_handle_types_mojom_traits_cc | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | Index: ui/gfx/mojom/native_handle_types_mojom_traits.cc | ||
| 2 | --- ui/gfx/mojom/native_handle_types_mojom_traits.cc.orig | ||
| 3 | +++ ui/gfx/mojom/native_handle_types_mojom_traits.cc | ||
| 4 | @@ -8,11 +8,11 @@ | ||
| 5 | |||
| 6 | namespace mojo { | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) || BUILDFLAG(IS_BSD) | ||
| 10 | mojo::PlatformHandle StructTraits< | ||
| 11 | gfx::mojom::NativePixmapPlaneDataView, | ||
| 12 | gfx::NativePixmapPlane>::buffer_handle(gfx::NativePixmapPlane& plane) { | ||
| 13 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 14 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 15 | return mojo::PlatformHandle(std::move(plane.fd)); | ||
| 16 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 17 | return mojo::PlatformHandle(std::move(plane.vmo)); | ||
| 18 | @@ -28,7 +28,7 @@ bool StructTraits< | ||
| 19 | out->size = data.size(); | ||
| 20 | |||
| 21 | mojo::PlatformHandle handle = data.TakeBufferHandle(); | ||
| 22 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 23 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 24 | if (!handle.is_fd()) | ||
| 25 | return false; | ||
| 26 | out->fd = handle.TakeFD(); | ||
| 27 | @@ -45,7 +45,7 @@ bool StructTraits< | ||
| 28 | gfx::mojom::NativePixmapHandleDataView, | ||
| 29 | gfx::NativePixmapHandle>::Read(gfx::mojom::NativePixmapHandleDataView data, | ||
| 30 | gfx::NativePixmapHandle* out) { | ||
| 31 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 32 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 33 | out->modifier = data.modifier(); | ||
| 34 | #endif | ||
| 35 | |||
diff --git a/www/chromium/patches/patch-ui_gfx_mojom_native_handle_types_mojom_traits_h b/www/chromium/patches/patch-ui_gfx_mojom_native_handle_types_mojom_traits_h new file mode 100644 index 0000000..cf67320 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_mojom_native_handle_types_mojom_traits_h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: ui/gfx/mojom/native_handle_types_mojom_traits.h | ||
| 2 | --- ui/gfx/mojom/native_handle_types_mojom_traits.h.orig | ||
| 3 | +++ ui/gfx/mojom/native_handle_types_mojom_traits.h | ||
| 4 | @@ -15,7 +15,7 @@ | ||
| 5 | #include "third_party/abseil-cpp/absl/types/optional.h" | ||
| 6 | #include "ui/gfx/mojom/native_handle_types.mojom-shared.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/gfx/native_pixmap_handle.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -25,7 +25,7 @@ | ||
| 14 | |||
| 15 | namespace mojo { | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(USE_OZONE) || BUILDFLAG(IS_BSD) | ||
| 19 | template <> | ||
| 20 | struct COMPONENT_EXPORT(GFX_NATIVE_HANDLE_TYPES_SHARED_MOJOM_TRAITS) | ||
| 21 | StructTraits<gfx::mojom::NativePixmapPlaneDataView, | ||
| 22 | @@ -53,7 +53,7 @@ struct COMPONENT_EXPORT(GFX_NATIVE_HANDLE_TYPES_SHARED | ||
| 23 | return pixmap_handle.planes; | ||
| 24 | } | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | static uint64_t modifier(const gfx::NativePixmapHandle& pixmap_handle) { | ||
| 29 | return pixmap_handle.modifier; | ||
| 30 | } | ||
diff --git a/www/chromium/patches/patch-ui_gfx_native_pixmap_handle_cc b/www/chromium/patches/patch-ui_gfx_native_pixmap_handle_cc new file mode 100644 index 0000000..873b36e --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_native_pixmap_handle_cc | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | Index: ui/gfx/native_pixmap_handle.cc | ||
| 2 | --- ui/gfx/native_pixmap_handle.cc.orig | ||
| 3 | +++ ui/gfx/native_pixmap_handle.cc | ||
| 4 | @@ -9,7 +9,7 @@ | ||
| 5 | #include "base/logging.h" | ||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include <drm_fourcc.h> | ||
| 11 | #include <unistd.h> | ||
| 12 | |||
| 13 | @@ -21,9 +21,13 @@ | ||
| 14 | #include "base/fuchsia/fuchsia_logging.h" | ||
| 15 | #endif | ||
| 16 | |||
| 17 | +#if BUILDFLAG(IS_BSD) | ||
| 18 | +#include <unistd.h> | ||
| 19 | +#endif | ||
| 20 | + | ||
| 21 | namespace gfx { | ||
| 22 | |||
| 23 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 24 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 25 | static_assert(NativePixmapHandle::kNoModifier == DRM_FORMAT_MOD_INVALID, | ||
| 26 | "gfx::NativePixmapHandle::kNoModifier should be an alias for" | ||
| 27 | "DRM_FORMAT_MOD_INVALID"); | ||
| 28 | @@ -34,7 +38,7 @@ NativePixmapPlane::NativePixmapPlane() : stride(0), of | ||
| 29 | NativePixmapPlane::NativePixmapPlane(int stride, | ||
| 30 | int offset, | ||
| 31 | uint64_t size | ||
| 32 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 33 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 34 | , | ||
| 35 | base::ScopedFD fd | ||
| 36 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 37 | @@ -45,7 +49,7 @@ NativePixmapPlane::NativePixmapPlane(int stride, | ||
| 38 | : stride(stride), | ||
| 39 | offset(offset), | ||
| 40 | size(size) | ||
| 41 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 42 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 43 | , | ||
| 44 | fd(std::move(fd)) | ||
| 45 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 46 | @@ -73,7 +77,7 @@ NativePixmapHandle& NativePixmapHandle::operator=(Nati | ||
| 47 | NativePixmapHandle CloneHandleForIPC(const NativePixmapHandle& handle) { | ||
| 48 | NativePixmapHandle clone; | ||
| 49 | for (auto& plane : handle.planes) { | ||
| 50 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 51 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 52 | DCHECK(plane.fd.is_valid()); | ||
| 53 | base::ScopedFD fd_dup(HANDLE_EINTR(dup(plane.fd.get()))); | ||
| 54 | if (!fd_dup.is_valid()) { | ||
| 55 | @@ -99,7 +103,7 @@ NativePixmapHandle CloneHandleForIPC(const NativePixma | ||
| 56 | #endif | ||
| 57 | } | ||
| 58 | |||
| 59 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 60 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 61 | clone.modifier = handle.modifier; | ||
| 62 | #endif | ||
| 63 | |||
diff --git a/www/chromium/patches/patch-ui_gfx_native_pixmap_handle_h b/www/chromium/patches/patch-ui_gfx_native_pixmap_handle_h new file mode 100644 index 0000000..592f9bf --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_native_pixmap_handle_h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: ui/gfx/native_pixmap_handle.h | ||
| 2 | --- ui/gfx/native_pixmap_handle.h.orig | ||
| 3 | +++ ui/gfx/native_pixmap_handle.h | ||
| 4 | @@ -15,7 +15,7 @@ | ||
| 5 | #include "third_party/abseil-cpp/absl/types/optional.h" | ||
| 6 | #include "ui/gfx/gfx_export.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/files/scoped_file.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -32,7 +32,7 @@ struct GFX_EXPORT NativePixmapPlane { | ||
| 14 | NativePixmapPlane(int stride, | ||
| 15 | int offset, | ||
| 16 | uint64_t size | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | , | ||
| 20 | base::ScopedFD fd | ||
| 21 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 22 | @@ -53,7 +53,7 @@ struct GFX_EXPORT NativePixmapPlane { | ||
| 23 | // This is necessary to map the buffers. | ||
| 24 | uint64_t size; | ||
| 25 | |||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | // File descriptor for the underlying memory object (usually dmabuf). | ||
| 29 | base::ScopedFD fd; | ||
| 30 | #elif BUILDFLAG(IS_FUCHSIA) | ||
| 31 | @@ -82,7 +82,7 @@ struct GFX_EXPORT NativePixmapHandle { | ||
| 32 | |||
| 33 | std::vector<NativePixmapPlane> planes; | ||
| 34 | |||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | // The modifier is retrieved from GBM library and passed to EGL driver. | ||
| 38 | // Generally it's platform specific, and we don't need to modify it in | ||
| 39 | // Chromium code. Also one per plane per entry. | ||
diff --git a/www/chromium/patches/patch-ui_gfx_native_widget_types_h b/www/chromium/patches/patch-ui_gfx_native_widget_types_h new file mode 100644 index 0000000..2bd0298 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_native_widget_types_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/gfx/native_widget_types.h | ||
| 2 | --- ui/gfx/native_widget_types.h.orig | ||
| 3 | +++ ui/gfx/native_widget_types.h | ||
| 4 | @@ -106,7 +106,7 @@ class SkBitmap; | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | extern "C" { | ||
| 11 | struct _AtkObject; | ||
| 12 | typedef struct _AtkObject AtkObject; | ||
| 13 | @@ -209,7 +209,7 @@ typedef NSFont* NativeFont; | ||
| 14 | typedef id NativeViewAccessible; | ||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Linux doesn't have a native font type. | ||
| 20 | typedef AtkObject* NativeViewAccessible; | ||
| 21 | #else | ||
diff --git a/www/chromium/patches/patch-ui_gfx_render_text_api_fuzzer_cc b/www/chromium/patches/patch-ui_gfx_render_text_api_fuzzer_cc new file mode 100644 index 0000000..beec0f0 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_render_text_api_fuzzer_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: ui/gfx/render_text_api_fuzzer.cc | ||
| 2 | --- ui/gfx/render_text_api_fuzzer.cc.orig | ||
| 3 | +++ ui/gfx/render_text_api_fuzzer.cc | ||
| 4 | @@ -21,7 +21,7 @@ | ||
| 5 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 6 | // complete. | ||
| 7 | #if BUILDFLAG(IS_ANDROID) || \ | ||
| 8 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 10 | #include "base/test/test_discardable_memory_allocator.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -44,7 +44,7 @@ struct Environment { | ||
| 14 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 15 | // complete. | ||
| 16 | #if BUILDFLAG(IS_ANDROID) || \ | ||
| 17 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 18 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 19 | // Some platforms require discardable memory to use bitmap fonts. | ||
| 20 | base::DiscardableMemoryAllocator::SetInstance( | ||
| 21 | &discardable_memory_allocator); | ||
| 22 | @@ -56,7 +56,7 @@ struct Environment { | ||
| 23 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 24 | // complete. | ||
| 25 | #if BUILDFLAG(IS_ANDROID) || \ | ||
| 26 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 27 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 28 | base::TestDiscardableMemoryAllocator discardable_memory_allocator; | ||
| 29 | #endif | ||
| 30 | |||
diff --git a/www/chromium/patches/patch-ui_gfx_switches_cc b/www/chromium/patches/patch-ui_gfx_switches_cc new file mode 100644 index 0000000..da6b202 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_switches_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gfx/switches.cc | ||
| 2 | --- ui/gfx/switches.cc.orig | ||
| 3 | +++ ui/gfx/switches.cc | ||
| 4 | @@ -26,7 +26,7 @@ const char kForcePrefersReducedMotion[] = "force-prefe | ||
| 5 | // Run in headless mode, i.e., without a UI or display server dependencies. | ||
| 6 | const char kHeadless[] = "headless"; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Which X11 display to connect to. Emulates the GTK+ "--display=" command line | ||
| 11 | // argument. In use only with Ozone/X11. | ||
| 12 | const char kX11Display[] = "display"; | ||
diff --git a/www/chromium/patches/patch-ui_gfx_switches_h b/www/chromium/patches/patch-ui_gfx_switches_h new file mode 100644 index 0000000..b534c5d --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_switches_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gfx/switches.h | ||
| 2 | --- ui/gfx/switches.h.orig | ||
| 3 | +++ ui/gfx/switches.h | ||
| 4 | @@ -17,7 +17,7 @@ GFX_SWITCHES_EXPORT extern const char kEnableNativeGpu | ||
| 5 | GFX_SWITCHES_EXPORT extern const char kForcePrefersReducedMotion[]; | ||
| 6 | GFX_SWITCHES_EXPORT extern const char kHeadless[]; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | GFX_SWITCHES_EXPORT extern const char kX11Display[]; | ||
| 11 | GFX_SWITCHES_EXPORT extern const char kNoXshm[]; | ||
| 12 | #endif | ||
diff --git a/www/chromium/patches/patch-ui_gfx_x_generated_protos_dri3_cc b/www/chromium/patches/patch-ui_gfx_x_generated_protos_dri3_cc new file mode 100644 index 0000000..1de4cd3 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_x_generated_protos_dri3_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gfx/x/generated_protos/dri3.cc | ||
| 2 | --- ui/gfx/x/generated_protos/dri3.cc.orig | ||
| 3 | +++ ui/gfx/x/generated_protos/dri3.cc | ||
| 4 | @@ -44,6 +44,8 @@ | ||
| 5 | #include <xcb/xcb.h> | ||
| 6 | #include <xcb/xcbext.h> | ||
| 7 | |||
| 8 | +#include <unistd.h> | ||
| 9 | + | ||
| 10 | #include "base/logging.h" | ||
| 11 | #include "base/posix/eintr_wrapper.h" | ||
| 12 | #include "ui/gfx/x/xproto_internal.h" | ||
diff --git a/www/chromium/patches/patch-ui_gfx_x_generated_protos_shm_cc b/www/chromium/patches/patch-ui_gfx_x_generated_protos_shm_cc new file mode 100644 index 0000000..76d9595 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_x_generated_protos_shm_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gfx/x/generated_protos/shm.cc | ||
| 2 | --- ui/gfx/x/generated_protos/shm.cc.orig | ||
| 3 | +++ ui/gfx/x/generated_protos/shm.cc | ||
| 4 | @@ -44,6 +44,8 @@ | ||
| 5 | #include <xcb/xcb.h> | ||
| 6 | #include <xcb/xcbext.h> | ||
| 7 | |||
| 8 | +#include <unistd.h> | ||
| 9 | + | ||
| 10 | #include "base/logging.h" | ||
| 11 | #include "base/posix/eintr_wrapper.h" | ||
| 12 | #include "ui/gfx/x/xproto_internal.h" | ||
diff --git a/www/chromium/patches/patch-ui_gfx_x_xlib_support_cc b/www/chromium/patches/patch-ui_gfx_x_xlib_support_cc new file mode 100644 index 0000000..e1a0f63 --- /dev/null +++ b/www/chromium/patches/patch-ui_gfx_x_xlib_support_cc | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Index: ui/gfx/x/xlib_support.cc | ||
| 2 | --- ui/gfx/x/xlib_support.cc.orig | ||
| 3 | +++ ui/gfx/x/xlib_support.cc | ||
| 4 | @@ -38,10 +38,18 @@ void InitXlib() { | ||
| 5 | if (xlib_loader->loaded()) | ||
| 6 | return; | ||
| 7 | |||
| 8 | +#if defined(OS_BSD) | ||
| 9 | + CHECK(xlib_loader->Load("libX11.so")); | ||
| 10 | +#else | ||
| 11 | CHECK(xlib_loader->Load("libX11.so.6")); | ||
| 12 | +#endif | ||
| 13 | |||
| 14 | auto* xlib_xcb_loader = GetXlibXcbLoader(); | ||
| 15 | +#if defined(OS_BSD) | ||
| 16 | + CHECK(xlib_xcb_loader->Load("libX11-xcb.so")); | ||
| 17 | +#else | ||
| 18 | CHECK(xlib_xcb_loader->Load("libX11-xcb.so.1")); | ||
| 19 | +#endif | ||
| 20 | |||
| 21 | CHECK(xlib_loader->XInitThreads()); | ||
| 22 | |||
diff --git a/www/chromium/patches/patch-ui_gl_BUILD_gn b/www/chromium/patches/patch-ui_gl_BUILD_gn new file mode 100644 index 0000000..9acfcb2 --- /dev/null +++ b/www/chromium/patches/patch-ui_gl_BUILD_gn | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | Index: ui/gl/BUILD.gn | ||
| 2 | --- ui/gl/BUILD.gn.orig | ||
| 3 | +++ ui/gl/BUILD.gn | ||
| 4 | @@ -162,8 +162,6 @@ component("gl") { | ||
| 5 | defines += [ "GPU_ENABLE_SERVICE_LOGGING" ] | ||
| 6 | } | ||
| 7 | |||
| 8 | - include_dirs = [ "//third_party/mesa_headers" ] | ||
| 9 | - | ||
| 10 | all_dependent_configs = [ ":gl_config" ] | ||
| 11 | |||
| 12 | public_configs = [ "//third_party/khronos:khronos_headers" ] | ||
| 13 | @@ -180,7 +178,6 @@ component("gl") { | ||
| 14 | ] | ||
| 15 | public_deps = [ | ||
| 16 | "//base", | ||
| 17 | - "//third_party/mesa_headers", | ||
| 18 | "//ui/events/platform", | ||
| 19 | "//ui/gfx", | ||
| 20 | "//ui/gfx/geometry", | ||
| 21 | @@ -409,7 +406,6 @@ component("gl") { | ||
| 22 | data_deps += [ | ||
| 23 | "//third_party/angle:libEGL", | ||
| 24 | "//third_party/angle:libGLESv2", | ||
| 25 | - "//third_party/mesa_headers", | ||
| 26 | ] | ||
| 27 | if (enable_swiftshader) { | ||
| 28 | data_deps += [ "//third_party/swiftshader" ] | ||
| 29 | @@ -639,7 +635,6 @@ test("gl_unittests") { | ||
| 30 | |||
| 31 | data_deps = [ | ||
| 32 | "//testing/buildbot/filters:gl_unittests_filters", | ||
| 33 | - "//third_party/mesa_headers", | ||
| 34 | ] | ||
| 35 | |||
| 36 | # TODO(https://crbug.com/789065): this must be moved to Ozone. | ||
diff --git a/www/chromium/patches/patch-ui_gl_generate_bindings_py b/www/chromium/patches/patch-ui_gl_generate_bindings_py new file mode 100644 index 0000000..1905c34 --- /dev/null +++ b/www/chromium/patches/patch-ui_gl_generate_bindings_py | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: ui/gl/generate_bindings.py | ||
| 2 | --- ui/gl/generate_bindings.py.orig | ||
| 3 | +++ ui/gl/generate_bindings.py | ||
| 4 | @@ -2868,6 +2868,9 @@ GLX_FUNCTIONS = [ | ||
| 5 | 'arguments': | ||
| 6 | 'Display* dpy, GLXDrawable drawable, int32_t* numerator, ' | ||
| 7 | 'int32_t* denominator' }, | ||
| 8 | +{ 'return_type': '__GLXextFuncPtr', | ||
| 9 | + 'names': ['glXGetProcAddressARB'], | ||
| 10 | + 'arguments': 'const GLubyte* procName', }, | ||
| 11 | { 'return_type': 'void', | ||
| 12 | 'names': ['glXGetSelectedEvent'], | ||
| 13 | 'arguments': 'Display* dpy, GLXDrawable drawable, unsigned long* mask', }, | ||
diff --git a/www/chromium/patches/patch-ui_gl_gl_bindings_api_autogen_glx_h b/www/chromium/patches/patch-ui_gl_gl_bindings_api_autogen_glx_h new file mode 100644 index 0000000..aa49232 --- /dev/null +++ b/www/chromium/patches/patch-ui_gl_gl_bindings_api_autogen_glx_h | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | Index: ui/gl/gl_bindings_api_autogen_glx.h | ||
| 2 | --- ui/gl/gl_bindings_api_autogen_glx.h.orig | ||
| 3 | +++ ui/gl/gl_bindings_api_autogen_glx.h | ||
| 4 | @@ -88,6 +88,7 @@ bool glXGetMscRateOMLFn(Display* dpy, | ||
| 5 | GLXDrawable drawable, | ||
| 6 | int32_t* numerator, | ||
| 7 | int32_t* denominator) override; | ||
| 8 | +__GLXextFuncPtr glXGetProcAddressARBFn(const GLubyte* procName) override; | ||
| 9 | void glXGetSelectedEventFn(Display* dpy, | ||
| 10 | GLXDrawable drawable, | ||
| 11 | unsigned long* mask) override; | ||
diff --git a/www/chromium/patches/patch-ui_gl_gl_bindings_autogen_glx_cc b/www/chromium/patches/patch-ui_gl_gl_bindings_autogen_glx_cc new file mode 100644 index 0000000..162bd15 --- /dev/null +++ b/www/chromium/patches/patch-ui_gl_gl_bindings_autogen_glx_cc | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | Index: ui/gl/gl_bindings_autogen_glx.cc | ||
| 2 | --- ui/gl/gl_bindings_autogen_glx.cc.orig | ||
| 3 | +++ ui/gl/gl_bindings_autogen_glx.cc | ||
| 4 | @@ -115,6 +115,8 @@ void DriverGLX::InitializeExtensionBindings() { | ||
| 5 | |||
| 6 | ext.b_GLX_ARB_create_context = | ||
| 7 | gfx::HasExtension(extensions, "GLX_ARB_create_context"); | ||
| 8 | + ext.b_GLX_ARB_get_proc_address = | ||
| 9 | + gfx::HasExtension(extensions, "GLX_ARB_get_proc_address"); | ||
| 10 | ext.b_GLX_EXT_swap_control = | ||
| 11 | gfx::HasExtension(extensions, "GLX_EXT_swap_control"); | ||
| 12 | ext.b_GLX_EXT_texture_from_pixmap = | ||
| 13 | @@ -156,6 +158,11 @@ void DriverGLX::InitializeExtensionBindings() { | ||
| 14 | GetGLProcAddress("glXGetMscRateOML")); | ||
| 15 | } | ||
| 16 | |||
| 17 | + if (ext.b_GLX_ARB_get_proc_address) { | ||
| 18 | + fn.glXGetProcAddressARBFn = reinterpret_cast<glXGetProcAddressARBProc>( | ||
| 19 | + GetGLProcAddress("glXGetProcAddressARB")); | ||
| 20 | + } | ||
| 21 | + | ||
| 22 | if (ext.b_GLX_OML_sync_control) { | ||
| 23 | fn.glXGetSyncValuesOMLFn = reinterpret_cast<glXGetSyncValuesOMLProc>( | ||
| 24 | GetGLProcAddress("glXGetSyncValuesOML")); | ||
| 25 | @@ -346,6 +353,10 @@ bool GLXApiBase::glXGetMscRateOMLFn(Display* dpy, | ||
| 26 | return driver_->fn.glXGetMscRateOMLFn(dpy, drawable, numerator, denominator); | ||
| 27 | } | ||
| 28 | |||
| 29 | +__GLXextFuncPtr GLXApiBase::glXGetProcAddressARBFn(const GLubyte* procName) { | ||
| 30 | + return driver_->fn.glXGetProcAddressARBFn(procName); | ||
| 31 | +} | ||
| 32 | + | ||
| 33 | void GLXApiBase::glXGetSelectedEventFn(Display* dpy, | ||
| 34 | GLXDrawable drawable, | ||
| 35 | unsigned long* mask) { | ||
| 36 | @@ -648,6 +659,11 @@ bool TraceGLXApi::glXGetMscRateOMLFn(Display* dpy, | ||
| 37 | return glx_api_->glXGetMscRateOMLFn(dpy, drawable, numerator, denominator); | ||
| 38 | } | ||
| 39 | |||
| 40 | +__GLXextFuncPtr TraceGLXApi::glXGetProcAddressARBFn(const GLubyte* procName) { | ||
| 41 | + TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLXAPI::glXGetProcAddressARB") | ||
| 42 | + return glx_api_->glXGetProcAddressARBFn(procName); | ||
| 43 | +} | ||
| 44 | + | ||
| 45 | void TraceGLXApi::glXGetSelectedEventFn(Display* dpy, | ||
| 46 | GLXDrawable drawable, | ||
| 47 | unsigned long* mask) { | ||
| 48 | @@ -1069,6 +1085,14 @@ bool LogGLXApi::glXGetMscRateOMLFn(Display* dpy, | ||
| 49 | << static_cast<const void*>(denominator) << ")"); | ||
| 50 | bool result = | ||
| 51 | glx_api_->glXGetMscRateOMLFn(dpy, drawable, numerator, denominator); | ||
| 52 | + GL_SERVICE_LOG("GL_RESULT: " << result); | ||
| 53 | + return result; | ||
| 54 | +} | ||
| 55 | + | ||
| 56 | +__GLXextFuncPtr LogGLXApi::glXGetProcAddressARBFn(const GLubyte* procName) { | ||
| 57 | + GL_SERVICE_LOG("glXGetProcAddressARB" | ||
| 58 | + << "(" << static_cast<const void*>(procName) << ")"); | ||
| 59 | + __GLXextFuncPtr result = glx_api_->glXGetProcAddressARBFn(procName); | ||
| 60 | GL_SERVICE_LOG("GL_RESULT: " << result); | ||
| 61 | return result; | ||
| 62 | } | ||
diff --git a/www/chromium/patches/patch-ui_gl_gl_bindings_autogen_glx_h b/www/chromium/patches/patch-ui_gl_gl_bindings_autogen_glx_h new file mode 100644 index 0000000..fbdffc3 --- /dev/null +++ b/www/chromium/patches/patch-ui_gl_gl_bindings_autogen_glx_h | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | Index: ui/gl/gl_bindings_autogen_glx.h | ||
| 2 | --- ui/gl/gl_bindings_autogen_glx.h.orig | ||
| 3 | +++ ui/gl/gl_bindings_autogen_glx.h | ||
| 4 | @@ -104,6 +104,8 @@ typedef bool(GL_BINDING_CALL* glXGetMscRateOMLProc)(Di | ||
| 5 | GLXDrawable drawable, | ||
| 6 | int32_t* numerator, | ||
| 7 | int32_t* denominator); | ||
| 8 | +typedef __GLXextFuncPtr(GL_BINDING_CALL* glXGetProcAddressARBProc)( | ||
| 9 | + const GLubyte* procName); | ||
| 10 | typedef void(GL_BINDING_CALL* glXGetSelectedEventProc)(Display* dpy, | ||
| 11 | GLXDrawable drawable, | ||
| 12 | unsigned long* mask); | ||
| 13 | @@ -166,6 +168,7 @@ typedef void(GL_BINDING_CALL* glXWaitXProc)(void); | ||
| 14 | |||
| 15 | struct ExtensionsGLX { | ||
| 16 | bool b_GLX_ARB_create_context; | ||
| 17 | + bool b_GLX_ARB_get_proc_address; | ||
| 18 | bool b_GLX_EXT_swap_control; | ||
| 19 | bool b_GLX_EXT_texture_from_pixmap; | ||
| 20 | bool b_GLX_MESA_copy_sub_buffer; | ||
| 21 | @@ -203,6 +206,7 @@ struct ProcsGLX { | ||
| 22 | glXGetFBConfigFromVisualSGIXProc glXGetFBConfigFromVisualSGIXFn; | ||
| 23 | glXGetFBConfigsProc glXGetFBConfigsFn; | ||
| 24 | glXGetMscRateOMLProc glXGetMscRateOMLFn; | ||
| 25 | + glXGetProcAddressARBProc glXGetProcAddressARBFn; | ||
| 26 | glXGetSelectedEventProc glXGetSelectedEventFn; | ||
| 27 | glXGetSyncValuesOMLProc glXGetSyncValuesOMLFn; | ||
| 28 | glXGetVisualFromFBConfigProc glXGetVisualFromFBConfigFn; | ||
| 29 | @@ -310,6 +314,7 @@ class GL_EXPORT GLXApi { | ||
| 30 | GLXDrawable drawable, | ||
| 31 | int32_t* numerator, | ||
| 32 | int32_t* denominator) = 0; | ||
| 33 | + virtual __GLXextFuncPtr glXGetProcAddressARBFn(const GLubyte* procName) = 0; | ||
| 34 | virtual void glXGetSelectedEventFn(Display* dpy, | ||
| 35 | GLXDrawable drawable, | ||
| 36 | unsigned long* mask) = 0; | ||
| 37 | @@ -394,6 +399,7 @@ class GL_EXPORT GLXApi { | ||
| 38 | ::gl::g_current_glx_context->glXGetFBConfigFromVisualSGIXFn | ||
| 39 | #define glXGetFBConfigs ::gl::g_current_glx_context->glXGetFBConfigsFn | ||
| 40 | #define glXGetMscRateOML ::gl::g_current_glx_context->glXGetMscRateOMLFn | ||
| 41 | +#define glXGetProcAddressARB ::gl::g_current_glx_context->glXGetProcAddressARBFn | ||
| 42 | #define glXGetSelectedEvent ::gl::g_current_glx_context->glXGetSelectedEventFn | ||
| 43 | #define glXGetSyncValuesOML ::gl::g_current_glx_context->glXGetSyncValuesOMLFn | ||
| 44 | #define glXGetVisualFromFBConfig \ | ||
diff --git a/www/chromium/patches/patch-ui_gl_gl_context_cc b/www/chromium/patches/patch-ui_gl_gl_context_cc new file mode 100644 index 0000000..5d39903 --- /dev/null +++ b/www/chromium/patches/patch-ui_gl_gl_context_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gl/gl_context.cc | ||
| 2 | --- ui/gl/gl_context.cc.orig | ||
| 3 | +++ ui/gl/gl_context.cc | ||
| 4 | @@ -416,7 +416,7 @@ bool GLContext::MakeVirtuallyCurrent( | ||
| 5 | DCHECK(virtual_context->IsCurrent(surface)); | ||
| 6 | |||
| 7 | if (switched_real_contexts || virtual_context != current_virtual_context_) { | ||
| 8 | -#if DCHECK_IS_ON() | ||
| 9 | +#if DCHECK_IS_ON() && !BUILDFLAG(IS_BSD) | ||
| 10 | GLenum error = glGetError(); | ||
| 11 | // Accepting a context loss error here enables using debug mode to work on | ||
| 12 | // context loss handling in virtual context mode. | ||
diff --git a/www/chromium/patches/patch-ui_gl_gl_features_cc b/www/chromium/patches/patch-ui_gl_gl_features_cc new file mode 100644 index 0000000..1ddda7d --- /dev/null +++ b/www/chromium/patches/patch-ui_gl_gl_features_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gl/gl_features.cc | ||
| 2 | --- ui/gl/gl_features.cc.orig | ||
| 3 | +++ ui/gl/gl_features.cc | ||
| 4 | @@ -76,7 +76,7 @@ bool IsDeviceBlocked(const char* field, const std::str | ||
| 5 | const base::Feature kDefaultPassthroughCommandDecoder { | ||
| 6 | "DefaultPassthroughCommandDecoder", | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || \ | ||
| 8 | - ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) && \ | ||
| 9 | + ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) && \ | ||
| 10 | !defined(CHROMECAST_BUILD)) || \ | ||
| 11 | BUILDFLAG(IS_MAC) | ||
| 12 | base::FEATURE_ENABLED_BY_DEFAULT | ||
diff --git a/www/chromium/patches/patch-ui_gl_gl_image_glx_native_pixmap_cc b/www/chromium/patches/patch-ui_gl_gl_image_glx_native_pixmap_cc new file mode 100644 index 0000000..fca4cd5 --- /dev/null +++ b/www/chromium/patches/patch-ui_gl_gl_image_glx_native_pixmap_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gl/gl_image_glx_native_pixmap.cc | ||
| 2 | --- ui/gl/gl_image_glx_native_pixmap.cc.orig | ||
| 3 | +++ ui/gl/gl_image_glx_native_pixmap.cc | ||
| 4 | @@ -16,6 +16,8 @@ | ||
| 5 | #include "ui/gl/buffer_format_utils.h" | ||
| 6 | #include "ui/gl/gl_bindings.h" | ||
| 7 | |||
| 8 | +#include <unistd.h> | ||
| 9 | + | ||
| 10 | namespace gl { | ||
| 11 | |||
| 12 | namespace { | ||
diff --git a/www/chromium/patches/patch-ui_gl_gl_implementation_cc b/www/chromium/patches/patch-ui_gl_gl_implementation_cc new file mode 100644 index 0000000..832dc9b --- /dev/null +++ b/www/chromium/patches/patch-ui_gl_gl_implementation_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gl/gl_implementation.cc | ||
| 2 | --- ui/gl/gl_implementation.cc.orig | ||
| 3 | +++ ui/gl/gl_implementation.cc | ||
| 4 | @@ -294,7 +294,7 @@ GLImplementationParts GetSoftwareGLImplementation() { | ||
| 5 | |||
| 6 | GLImplementationParts GetSoftwareGLImplementationForPlatform() { | ||
| 7 | #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \ | ||
| 8 | - BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_FUCHSIA) | ||
| 9 | + BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) | ||
| 10 | return GetSoftwareGLImplementation(); | ||
| 11 | #else | ||
| 12 | return GetLegacySoftwareGLImplementation(); | ||
diff --git a/www/chromium/patches/patch-ui_gl_sync_control_vsync_provider_cc b/www/chromium/patches/patch-ui_gl_sync_control_vsync_provider_cc new file mode 100644 index 0000000..33734ef --- /dev/null +++ b/www/chromium/patches/patch-ui_gl_sync_control_vsync_provider_cc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Index: ui/gl/sync_control_vsync_provider.cc | ||
| 2 | --- ui/gl/sync_control_vsync_provider.cc.orig | ||
| 3 | +++ ui/gl/sync_control_vsync_provider.cc | ||
| 4 | @@ -11,7 +11,7 @@ | ||
| 5 | #include "base/trace_event/trace_event.h" | ||
| 6 | #include "build/build_config.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // These constants define a reasonable range for a calculated refresh interval. | ||
| 11 | // Calculating refreshes out of this range will be considered a fatal error. | ||
| 12 | const int64_t kMinVsyncIntervalUs = base::Time::kMicrosecondsPerSecond / 400; | ||
| 13 | @@ -26,7 +26,7 @@ const double kRelativeIntervalDifferenceThreshold = 0. | ||
| 14 | namespace gl { | ||
| 15 | |||
| 16 | SyncControlVSyncProvider::SyncControlVSyncProvider() : gfx::VSyncProvider() { | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | // On platforms where we can't get an accurate reading on the refresh | ||
| 20 | // rate we fall back to the assumption that we're displaying 60 frames | ||
| 21 | // per second. | ||
| 22 | @@ -48,7 +48,7 @@ bool SyncControlVSyncProvider::GetVSyncParametersIfAva | ||
| 23 | base::TimeTicks* timebase_out, | ||
| 24 | base::TimeDelta* interval_out) { | ||
| 25 | TRACE_EVENT0("gpu", "SyncControlVSyncProvider::GetVSyncParameters"); | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 28 | // The actual clock used for the system time returned by glXGetSyncValuesOML | ||
| 29 | // is unspecified. In practice, the clock used is likely to be either | ||
| 30 | // CLOCK_REALTIME or CLOCK_MONOTONIC, so we compare the returned time to the | ||
| 31 | @@ -159,7 +159,7 @@ bool SyncControlVSyncProvider::GetVSyncParametersIfAva | ||
| 32 | } | ||
| 33 | |||
| 34 | bool SyncControlVSyncProvider::SupportGetVSyncParametersIfAvailable() const { | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 37 | return true; | ||
| 38 | #else | ||
| 39 | return false; | ||
diff --git a/www/chromium/patches/patch-ui_gl_sync_control_vsync_provider_h b/www/chromium/patches/patch-ui_gl_sync_control_vsync_provider_h new file mode 100644 index 0000000..d88a033 --- /dev/null +++ b/www/chromium/patches/patch-ui_gl_sync_control_vsync_provider_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/gl/sync_control_vsync_provider.h | ||
| 2 | --- ui/gl/sync_control_vsync_provider.h.orig | ||
| 3 | +++ ui/gl/sync_control_vsync_provider.h | ||
| 4 | @@ -30,7 +30,7 @@ class SyncControlVSyncProvider : public gfx::VSyncProv | ||
| 5 | bool SupportGetVSyncParametersIfAvailable() const override; | ||
| 6 | |||
| 7 | static constexpr bool IsSupported() { | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | return true; | ||
| 11 | #else | ||
| 12 | return false; | ||
| 13 | @@ -45,7 +45,7 @@ class SyncControlVSyncProvider : public gfx::VSyncProv | ||
| 14 | virtual bool GetMscRate(int32_t* numerator, int32_t* denominator) = 0; | ||
| 15 | |||
| 16 | private: | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | base::TimeTicks last_timebase_; | ||
| 20 | uint64_t last_media_stream_counter_ = 0; | ||
| 21 | base::TimeDelta last_good_interval_; | ||
diff --git a/www/chromium/patches/patch-ui_gtk_gtk_compat_cc b/www/chromium/patches/patch-ui_gtk_gtk_compat_cc new file mode 100644 index 0000000..15338e8 --- /dev/null +++ b/www/chromium/patches/patch-ui_gtk_gtk_compat_cc | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | Index: ui/gtk/gtk_compat.cc | ||
| 2 | --- ui/gtk/gtk_compat.cc.orig | ||
| 3 | +++ ui/gtk/gtk_compat.cc | ||
| 4 | @@ -62,27 +62,47 @@ auto DlCast(void* symbol) { | ||
| 5 | } | ||
| 6 | |||
| 7 | void* GetLibGio() { | ||
| 8 | +#if defined(OS_BSD) | ||
| 9 | + static void* libgio = DlOpen("libgio-2.0.so"); | ||
| 10 | +#else | ||
| 11 | static void* libgio = DlOpen("libgio-2.0.so.0"); | ||
| 12 | +#endif | ||
| 13 | return libgio; | ||
| 14 | } | ||
| 15 | |||
| 16 | void* GetLibGdkPixbuf() { | ||
| 17 | +#if defined(OS_BSD) | ||
| 18 | + static void* libgdk_pixbuf = DlOpen("libgdk_pixbuf-2.0.so"); | ||
| 19 | +#else | ||
| 20 | static void* libgdk_pixbuf = DlOpen("libgdk_pixbuf-2.0.so.0"); | ||
| 21 | +#endif | ||
| 22 | return libgdk_pixbuf; | ||
| 23 | } | ||
| 24 | |||
| 25 | void* GetLibGdk3() { | ||
| 26 | +#if defined(OS_BSD) | ||
| 27 | + static void* libgdk3 = DlOpen("libgdk-3.so"); | ||
| 28 | +#else | ||
| 29 | static void* libgdk3 = DlOpen("libgdk-3.so.0"); | ||
| 30 | +#endif | ||
| 31 | return libgdk3; | ||
| 32 | } | ||
| 33 | |||
| 34 | void* GetLibGtk3(bool check = true) { | ||
| 35 | +#if defined(OS_BSD) | ||
| 36 | + static void* libgtk3 = DlOpen("libgtk-3.so", check); | ||
| 37 | +#else | ||
| 38 | static void* libgtk3 = DlOpen("libgtk-3.so.0", check); | ||
| 39 | +#endif | ||
| 40 | return libgtk3; | ||
| 41 | } | ||
| 42 | |||
| 43 | void* GetLibGtk4(bool check = true) { | ||
| 44 | +#if defined(OS_BSD) | ||
| 45 | + static void* libgtk4 = DlOpen("libgtk-4.so", check); | ||
| 46 | +#else | ||
| 47 | static void* libgtk4 = DlOpen("libgtk-4.so.1", check); | ||
| 48 | +#endif | ||
| 49 | return libgtk4; | ||
| 50 | } | ||
| 51 | |||
diff --git a/www/chromium/patches/patch-ui_gtk_printing_print_dialog_gtk_cc b/www/chromium/patches/patch-ui_gtk_printing_print_dialog_gtk_cc new file mode 100644 index 0000000..1928a2b --- /dev/null +++ b/www/chromium/patches/patch-ui_gtk_printing_print_dialog_gtk_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/gtk/printing/print_dialog_gtk.cc | ||
| 2 | --- ui/gtk/printing/print_dialog_gtk.cc.orig | ||
| 3 | +++ ui/gtk/printing/print_dialog_gtk.cc | ||
| 4 | @@ -395,7 +395,7 @@ void PrintDialogGtk::ShowDialog( | ||
| 5 | GtkPrintCapabilities cap = static_cast<GtkPrintCapabilities>( | ||
| 6 | GTK_PRINT_CAPABILITY_GENERATE_PDF | GTK_PRINT_CAPABILITY_PAGE_SET | | ||
| 7 | GTK_PRINT_CAPABILITY_COPIES | GTK_PRINT_CAPABILITY_COLLATE | | ||
| 8 | - GTK_PRINT_CAPABILITY_REVERSE); | ||
| 9 | + GTK_PRINT_CAPABILITY_REVERSE | GTK_PRINT_CAPABILITY_GENERATE_PS); | ||
| 10 | gtk_print_unix_dialog_set_manual_capabilities(GTK_PRINT_UNIX_DIALOG(dialog_), | ||
| 11 | cap); | ||
| 12 | gtk_print_unix_dialog_set_embed_page_setup(GTK_PRINT_UNIX_DIALOG(dialog_), | ||
diff --git a/www/chromium/patches/patch-ui_message_center_views_message_popup_view_cc b/www/chromium/patches/patch-ui_message_center_views_message_popup_view_cc new file mode 100644 index 0000000..95f7588 --- /dev/null +++ b/www/chromium/patches/patch-ui_message_center_views_message_popup_view_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/message_center/views/message_popup_view.cc | ||
| 2 | --- ui/message_center/views/message_popup_view.cc.orig | ||
| 3 | +++ ui/message_center/views/message_popup_view.cc | ||
| 4 | @@ -123,7 +123,7 @@ void MessagePopupView::Show() { | ||
| 5 | params.z_order = ui::ZOrderLevel::kFloatingWindow; | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Make the widget explicitly activatable as TYPE_POPUP is not activatable by | ||
| 11 | // default but we need focus for the inline reply textarea. | ||
| 12 | params.activatable = views::Widget::InitParams::Activatable::kYes; | ||
diff --git a/www/chromium/patches/patch-ui_native_theme_native_theme_base_cc b/www/chromium/patches/patch-ui_native_theme_native_theme_base_cc new file mode 100644 index 0000000..ef0f96d --- /dev/null +++ b/www/chromium/patches/patch-ui_native_theme_native_theme_base_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/native_theme/native_theme_base.cc | ||
| 2 | --- ui/native_theme/native_theme_base.cc.orig | ||
| 3 | +++ ui/native_theme/native_theme_base.cc | ||
| 4 | @@ -269,7 +269,7 @@ void NativeThemeBase::Paint(cc::PaintCanvas* canvas, | ||
| 5 | break; | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | case kFrameTopArea: | ||
| 11 | PaintFrameTopArea(canvas, state, rect, extra.frame_top_area, | ||
| 12 | color_scheme); | ||
diff --git a/www/chromium/patches/patch-ui_native_theme_native_theme_h b/www/chromium/patches/patch-ui_native_theme_native_theme_h new file mode 100644 index 0000000..92f40e7 --- /dev/null +++ b/www/chromium/patches/patch-ui_native_theme_native_theme_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/native_theme/native_theme.h | ||
| 2 | --- ui/native_theme/native_theme.h.orig | ||
| 3 | +++ ui/native_theme/native_theme.h | ||
| 4 | @@ -59,7 +59,7 @@ class NATIVE_THEME_EXPORT NativeTheme { | ||
| 5 | kCheckbox, | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | kFrameTopArea, | ||
| 11 | #endif | ||
| 12 | kInnerSpinButton, | ||
diff --git a/www/chromium/patches/patch-ui_ozone_common_egl_util_cc b/www/chromium/patches/patch-ui_ozone_common_egl_util_cc new file mode 100644 index 0000000..16fa900 --- /dev/null +++ b/www/chromium/patches/patch-ui_ozone_common_egl_util_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: ui/ozone/common/egl_util.cc | ||
| 2 | --- ui/ozone/common/egl_util.cc.orig | ||
| 3 | +++ ui/ozone/common/egl_util.cc | ||
| 4 | @@ -36,9 +36,9 @@ const base::FilePath::CharType kDefaultGlesSoname[] = | ||
| 5 | FILE_PATH_LITERAL("libGLESv2.so"); | ||
| 6 | #else // BUILDFLAG(IS_FUCHSIA) | ||
| 7 | const base::FilePath::CharType kDefaultEglSoname[] = | ||
| 8 | - FILE_PATH_LITERAL("libEGL.so.1"); | ||
| 9 | + FILE_PATH_LITERAL("libEGL.so"); | ||
| 10 | const base::FilePath::CharType kDefaultGlesSoname[] = | ||
| 11 | - FILE_PATH_LITERAL("libGLESv2.so.2"); | ||
| 12 | + FILE_PATH_LITERAL("libGLESv2.so"); | ||
| 13 | #endif | ||
| 14 | const base::FilePath::CharType kAngleEglSoname[] = | ||
| 15 | FILE_PATH_LITERAL("libEGL.so"); | ||
diff --git a/www/chromium/patches/patch-ui_ozone_platform_wayland_gpu_vulkan_implementation_wayland_cc b/www/chromium/patches/patch-ui_ozone_platform_wayland_gpu_vulkan_implementation_wayland_cc new file mode 100644 index 0000000..a687da6 --- /dev/null +++ b/www/chromium/patches/patch-ui_ozone_platform_wayland_gpu_vulkan_implementation_wayland_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: ui/ozone/platform/wayland/gpu/vulkan_implementation_wayland.cc | ||
| 2 | --- ui/ozone/platform/wayland/gpu/vulkan_implementation_wayland.cc.orig | ||
| 3 | +++ ui/ozone/platform/wayland/gpu/vulkan_implementation_wayland.cc | ||
| 4 | @@ -38,7 +38,11 @@ bool VulkanImplementationWayland::InitializeVulkanInst | ||
| 5 | |||
| 6 | path = path.Append("libvk_swiftshader.so"); | ||
| 7 | } else { | ||
| 8 | +#if BUILDFLAG(IS_BSD) | ||
| 9 | + path = base::FilePath("libvulkan.so"); | ||
| 10 | +#else | ||
| 11 | path = base::FilePath("libvulkan.so.1"); | ||
| 12 | +#endif | ||
| 13 | } | ||
| 14 | |||
| 15 | return vulkan_instance_.Initialize(path, required_extensions, {}); | ||
diff --git a/www/chromium/patches/patch-ui_ozone_platform_x11_ozone_platform_x11_cc b/www/chromium/patches/patch-ui_ozone_platform_x11_ozone_platform_x11_cc new file mode 100644 index 0000000..9a4e048 --- /dev/null +++ b/www/chromium/patches/patch-ui_ozone_platform_x11_ozone_platform_x11_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/ozone/platform/x11/ozone_platform_x11.cc | ||
| 2 | --- ui/ozone/platform/x11/ozone_platform_x11.cc.orig | ||
| 3 | +++ ui/ozone/platform/x11/ozone_platform_x11.cc | ||
| 4 | @@ -204,7 +204,7 @@ class OzonePlatformX11 : public OzonePlatform, | ||
| 5 | properties->supports_global_application_menus = true; | ||
| 6 | properties->app_modal_dialogs_use_event_blocker = true; | ||
| 7 | properties->fetch_buffer_formats_for_gmb_on_gpu = true; | ||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | properties->supports_vaapi = true; | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-ui_ozone_platform_x11_vulkan_implementation_x11_cc b/www/chromium/patches/patch-ui_ozone_platform_x11_vulkan_implementation_x11_cc new file mode 100644 index 0000000..572590d --- /dev/null +++ b/www/chromium/patches/patch-ui_ozone_platform_x11_vulkan_implementation_x11_cc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: ui/ozone/platform/x11/vulkan_implementation_x11.cc | ||
| 2 | --- ui/ozone/platform/x11/vulkan_implementation_x11.cc.orig | ||
| 3 | +++ ui/ozone/platform/x11/vulkan_implementation_x11.cc | ||
| 4 | @@ -58,7 +58,11 @@ bool VulkanImplementationX11::InitializeVulkanInstance | ||
| 5 | |||
| 6 | path = path.Append("libvk_swiftshader.so"); | ||
| 7 | } else { | ||
| 8 | +#if BUILDFLAG(IS_BSD) | ||
| 9 | + path = base::FilePath("libvulkan.so"); | ||
| 10 | +#else | ||
| 11 | path = base::FilePath("libvulkan.so.1"); | ||
| 12 | +#endif | ||
| 13 | } | ||
| 14 | |||
| 15 | return vulkan_instance_.Initialize(path, required_extensions, {}); | ||
diff --git a/www/chromium/patches/patch-ui_ozone_public_ozone_platform_h b/www/chromium/patches/patch-ui_ozone_public_ozone_platform_h new file mode 100644 index 0000000..bd83a5f --- /dev/null +++ b/www/chromium/patches/patch-ui_ozone_public_ozone_platform_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/ozone/public/ozone_platform.h | ||
| 2 | --- ui/ozone/public/ozone_platform.h.orig | ||
| 3 | +++ ui/ozone/public/ozone_platform.h | ||
| 4 | @@ -151,7 +151,7 @@ class COMPONENT_EXPORT(OZONE) OzonePlatform { | ||
| 5 | // back via gpu extra info. | ||
| 6 | bool fetch_buffer_formats_for_gmb_on_gpu = false; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | // TODO(crbug.com/1116701): add vaapi support for other Ozone platforms on | ||
| 11 | // Linux. At the moment, VA-API Linux implementation supports only X11 | ||
| 12 | // backend. This implementation must be refactored to support Ozone | ||
diff --git a/www/chromium/patches/patch-ui_platform_window_platform_window_init_properties_h b/www/chromium/patches/patch-ui_platform_window_platform_window_init_properties_h new file mode 100644 index 0000000..9697e73 --- /dev/null +++ b/www/chromium/patches/patch-ui_platform_window_platform_window_init_properties_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/platform_window/platform_window_init_properties.h | ||
| 2 | --- ui/platform_window/platform_window_init_properties.h.orig | ||
| 3 | +++ ui/platform_window/platform_window_init_properties.h | ||
| 4 | @@ -54,7 +54,7 @@ class WorkspaceExtensionDelegate; | ||
| 5 | class ScenicWindowDelegate; | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | class X11ExtensionDelegate; | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -116,7 +116,7 @@ struct COMPONENT_EXPORT(PLATFORM_WINDOW) PlatformWindo | ||
| 14 | |||
| 15 | PlatformWindowShadowType shadow_type = PlatformWindowShadowType::kDefault; | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | bool prefer_dark_theme = false; | ||
| 20 | gfx::ImageSkia* icon = nullptr; | ||
| 21 | absl::optional<int> background_color; | ||
diff --git a/www/chromium/patches/patch-ui_strings_app_locale_settings_grd b/www/chromium/patches/patch-ui_strings_app_locale_settings_grd new file mode 100644 index 0000000..69fc5ed --- /dev/null +++ b/www/chromium/patches/patch-ui_strings_app_locale_settings_grd | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/strings/app_locale_settings.grd | ||
| 2 | --- ui/strings/app_locale_settings.grd.orig | ||
| 3 | +++ ui/strings/app_locale_settings.grd | ||
| 4 | @@ -225,7 +225,7 @@ | ||
| 5 | 75% | ||
| 6 | </message> | ||
| 7 | </if> | ||
| 8 | - <if expr="(is_linux or is_android or is_bsd or is_fuchsia) and not (chromeos_ash or chromeos_lacros)"> | ||
| 9 | + <if expr="(is_posix or is_android or is_bsd or is_fuchsia) and not (chromeos_ash or chromeos_lacros)"> | ||
| 10 | <!-- The font used in Web UI (e.g. History). Note that these are only | ||
| 11 | backups. We try to use the system font if possible. --> | ||
| 12 | <message name="IDS_WEB_FONT_FAMILY" use_name_for_id="true"> | ||
diff --git a/www/chromium/patches/patch-ui_views_controls_prefix_selector_cc b/www/chromium/patches/patch-ui_views_controls_prefix_selector_cc new file mode 100644 index 0000000..a07b8b7 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_controls_prefix_selector_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/controls/prefix_selector.cc | ||
| 2 | --- ui/views/controls/prefix_selector.cc.orig | ||
| 3 | +++ ui/views/controls/prefix_selector.cc | ||
| 4 | @@ -171,7 +171,7 @@ bool PrefixSelector::ShouldDoLearning() { | ||
| 5 | return false; | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | bool PrefixSelector::SetCompositionFromExistingText( | ||
| 11 | const gfx::Range& range, | ||
| 12 | const std::vector<ui::ImeTextSpan>& ui_ime_text_spans) { | ||
diff --git a/www/chromium/patches/patch-ui_views_controls_prefix_selector_h b/www/chromium/patches/patch-ui_views_controls_prefix_selector_h new file mode 100644 index 0000000..b798c30 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_controls_prefix_selector_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/controls/prefix_selector.h | ||
| 2 | --- ui/views/controls/prefix_selector.h.orig | ||
| 3 | +++ ui/views/controls/prefix_selector.h | ||
| 4 | @@ -81,7 +81,7 @@ class VIEWS_EXPORT PrefixSelector : public ui::TextInp | ||
| 5 | ukm::SourceId GetClientSourceForMetrics() const override; | ||
| 6 | bool ShouldDoLearning() override; | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | bool SetCompositionFromExistingText( | ||
| 11 | const gfx::Range& range, | ||
| 12 | const std::vector<ui::ImeTextSpan>& ui_ime_text_spans) override; | ||
diff --git a/www/chromium/patches/patch-ui_views_controls_textfield_textfield_cc b/www/chromium/patches/patch-ui_views_controls_textfield_textfield_cc new file mode 100644 index 0000000..a0a1ddf --- /dev/null +++ b/www/chromium/patches/patch-ui_views_controls_textfield_textfield_cc | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | Index: ui/views/controls/textfield/textfield.cc | ||
| 2 | --- ui/views/controls/textfield/textfield.cc.orig | ||
| 3 | +++ ui/views/controls/textfield/textfield.cc | ||
| 4 | @@ -73,7 +73,7 @@ | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/base/ime/linux/text_edit_command_auralinux.h" | ||
| 11 | #include "ui/base/ime/linux/text_edit_key_bindings_delegate_auralinux.h" | ||
| 12 | #endif | ||
| 13 | @@ -166,7 +166,7 @@ bool IsControlKeyModifier(int flags) { | ||
| 14 | // Control-modified key combination, but we cannot extend it to other platforms | ||
| 15 | // as Control has different meanings and behaviors. | ||
| 16 | // https://crrev.com/2580483002/#msg46 | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 19 | return flags & ui::EF_CONTROL_DOWN; | ||
| 20 | #else | ||
| 21 | return false; | ||
| 22 | @@ -715,7 +715,7 @@ bool Textfield::OnKeyPressed(const ui::KeyEvent& event | ||
| 23 | |||
| 24 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 25 | // of lacros-chrome is complete. | ||
| 26 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 27 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 28 | ui::TextEditKeyBindingsDelegateAuraLinux* delegate = | ||
| 29 | ui::GetTextEditKeyBindingsDelegate(); | ||
| 30 | std::vector<ui::TextEditCommandAuraLinux> commands; | ||
| 31 | @@ -861,7 +861,7 @@ void Textfield::AboutToRequestFocusFromTabTraversal(bo | ||
| 32 | bool Textfield::SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) { | ||
| 33 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 34 | // of lacros-chrome is complete. | ||
| 35 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 36 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 37 | // Skip any accelerator handling that conflicts with custom keybindings. | ||
| 38 | ui::TextEditKeyBindingsDelegateAuraLinux* delegate = | ||
| 39 | ui::GetTextEditKeyBindingsDelegate(); | ||
| 40 | @@ -1721,7 +1721,7 @@ bool Textfield::ShouldDoLearning() { | ||
| 41 | return false; | ||
| 42 | } | ||
| 43 | |||
| 44 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 45 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 46 | // TODO(https://crbug.com/952355): Implement this method to support Korean IME | ||
| 47 | // reconversion feature on native text fields (e.g. find bar). | ||
| 48 | bool Textfield::SetCompositionFromExistingText( | ||
| 49 | @@ -2220,14 +2220,14 @@ ui::TextEditCommand Textfield::GetCommandForKeyEvent( | ||
| 50 | #endif | ||
| 51 | return ui::TextEditCommand::DELETE_BACKWARD; | ||
| 52 | } | ||
| 53 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 54 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 55 | // Only erase by line break on Linux and ChromeOS. | ||
| 56 | if (shift) | ||
| 57 | return ui::TextEditCommand::DELETE_TO_BEGINNING_OF_LINE; | ||
| 58 | #endif | ||
| 59 | return ui::TextEditCommand::DELETE_WORD_BACKWARD; | ||
| 60 | case ui::VKEY_DELETE: | ||
| 61 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 62 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 63 | // Only erase by line break on Linux and ChromeOS. | ||
| 64 | if (shift && control) | ||
| 65 | return ui::TextEditCommand::DELETE_TO_END_OF_LINE; | ||
diff --git a/www/chromium/patches/patch-ui_views_controls_textfield_textfield_h b/www/chromium/patches/patch-ui_views_controls_textfield_textfield_h new file mode 100644 index 0000000..b21f5f4 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_controls_textfield_textfield_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/controls/textfield/textfield.h | ||
| 2 | --- ui/views/controls/textfield/textfield.h.orig | ||
| 3 | +++ ui/views/controls/textfield/textfield.h | ||
| 4 | @@ -443,7 +443,7 @@ class VIEWS_EXPORT Textfield : public View, | ||
| 5 | // Set whether the text should be used to improve typing suggestions. | ||
| 6 | void SetShouldDoLearning(bool value) { should_do_learning_ = value; } | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | bool SetCompositionFromExistingText( | ||
| 11 | const gfx::Range& range, | ||
| 12 | const std::vector<ui::ImeTextSpan>& ui_ime_text_spans) override; | ||
diff --git a/www/chromium/patches/patch-ui_views_corewm_tooltip_aura_cc b/www/chromium/patches/patch-ui_views_corewm_tooltip_aura_cc new file mode 100644 index 0000000..4262368 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_corewm_tooltip_aura_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/corewm/tooltip_aura.cc | ||
| 2 | --- ui/views/corewm/tooltip_aura.cc.orig | ||
| 3 | +++ ui/views/corewm/tooltip_aura.cc | ||
| 4 | @@ -50,7 +50,7 @@ constexpr int kVerticalPaddingBottom = 5; | ||
| 5 | bool CanUseTranslucentTooltipWidget() { | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_WIN) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 10 | return false; | ||
| 11 | #else | ||
| 12 | return true; | ||
diff --git a/www/chromium/patches/patch-ui_views_examples_widget_example_cc b/www/chromium/patches/patch-ui_views_examples_widget_example_cc new file mode 100644 index 0000000..ee7aa94 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_examples_widget_example_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/examples/widget_example.cc | ||
| 2 | --- ui/views/examples/widget_example.cc.orig | ||
| 3 | +++ ui/views/examples/widget_example.cc | ||
| 4 | @@ -49,7 +49,7 @@ void WidgetExample::CreateExampleView(View* container) | ||
| 5 | modal_button->SetCallback( | ||
| 6 | base::BindRepeating(&WidgetExample::CreateDialogWidget, | ||
| 7 | base::Unretained(this), modal_button, true)); | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Windows does not support TYPE_CONTROL top-level widgets. | ||
| 11 | LabelButton* control_button = BuildButton( | ||
| 12 | container, GetStringUTF16(IDS_WIDGET_CHILD_WIDGET_BUTTON_LABEL)); | ||
diff --git a/www/chromium/patches/patch-ui_views_focus_focus_manager_cc b/www/chromium/patches/patch-ui_views_focus_focus_manager_cc new file mode 100644 index 0000000..5e40cc8 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_focus_focus_manager_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/views/focus/focus_manager.cc | ||
| 2 | --- ui/views/focus/focus_manager.cc.orig | ||
| 3 | +++ ui/views/focus/focus_manager.cc | ||
| 4 | @@ -634,7 +634,7 @@ bool FocusManager::RedirectAcceleratorToBubbleAnchorWi | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | // Processing an accelerator can delete things. Because we | ||
| 11 | // need these objects afterwards on Linux, save widget_ as weak pointer and | ||
| 12 | // save the close_on_deactivate property value of widget_delegate in a | ||
| 13 | @@ -651,7 +651,7 @@ bool FocusManager::RedirectAcceleratorToBubbleAnchorWi | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 16 | // of lacros-chrome is complete. | ||
| 17 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | // Need to manually close the bubble widget on Linux. On Linux when the | ||
| 20 | // bubble is shown, the main widget remains active. Because of that when | ||
| 21 | // focus is set to the main widget to process accelerator, the main widget | ||
diff --git a/www/chromium/patches/patch-ui_views_linux_ui_linux_ui_cc b/www/chromium/patches/patch-ui_views_linux_ui_linux_ui_cc new file mode 100644 index 0000000..41c7355 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_linux_ui_linux_ui_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/linux_ui/linux_ui.cc | ||
| 2 | --- ui/views/linux_ui/linux_ui.cc.orig | ||
| 3 | +++ ui/views/linux_ui/linux_ui.cc | ||
| 4 | @@ -21,7 +21,7 @@ void LinuxUI::SetInstance(std::unique_ptr<LinuxUI> ins | ||
| 5 | g_linux_ui = instance.release(); | ||
| 6 | |||
| 7 | SkiaFontDelegate::SetInstance(g_linux_ui); | ||
| 8 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMECAST) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && !BUILDFLAG(IS_CHROMECAST) | ||
| 10 | ShellDialogLinux::SetInstance(g_linux_ui); | ||
| 11 | #endif | ||
| 12 | ui::SetTextEditKeyBindingsDelegate(g_linux_ui); | ||
diff --git a/www/chromium/patches/patch-ui_views_linux_ui_linux_ui_h b/www/chromium/patches/patch-ui_views_linux_ui_linux_ui_h new file mode 100644 index 0000000..95b599a --- /dev/null +++ b/www/chromium/patches/patch-ui_views_linux_ui_linux_ui_h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/views/linux_ui/linux_ui.h | ||
| 2 | --- ui/views/linux_ui/linux_ui.h.orig | ||
| 3 | +++ ui/views/linux_ui/linux_ui.h | ||
| 4 | @@ -21,7 +21,7 @@ | ||
| 5 | #include "ui/views/controls/button/button.h" | ||
| 6 | #include "ui/views/views_export.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMECAST) | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && !BUILDFLAG(IS_CHROMECAST) | ||
| 10 | #include "ui/shell_dialogs/shell_dialog_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -57,7 +57,7 @@ class WindowFrameProvider; | ||
| 14 | // project that wants to do linux desktop native rendering. | ||
| 15 | class VIEWS_EXPORT LinuxUI : public ui::LinuxInputMethodContextFactory, | ||
| 16 | public gfx::SkiaFontDelegate, | ||
| 17 | -#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMECAST) | ||
| 18 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && !BUILDFLAG(IS_CHROMECAST) | ||
| 19 | public ui::ShellDialogLinux, | ||
| 20 | #endif | ||
| 21 | public ui::TextEditKeyBindingsDelegateAuraLinux, | ||
diff --git a/www/chromium/patches/patch-ui_views_style_platform_style_cc b/www/chromium/patches/patch-ui_views_style_platform_style_cc new file mode 100644 index 0000000..61654f5 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_style_platform_style_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/views/style/platform_style.cc | ||
| 2 | --- ui/views/style/platform_style.cc.orig | ||
| 3 | +++ ui/views/style/platform_style.cc | ||
| 4 | @@ -52,7 +52,7 @@ const View::FocusBehavior PlatformStyle::kDefaultFocus | ||
| 5 | const bool PlatformStyle::kAdjustBubbleIfOffscreen = | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | false; | ||
| 11 | #else | ||
| 12 | true; | ||
| 13 | @@ -82,7 +82,7 @@ gfx::Range PlatformStyle::RangeToDeleteBackwards(const | ||
| 14 | #endif // !BUILDFLAG(IS_MAC) | ||
| 15 | |||
| 16 | #if !BUILDFLAG(ENABLE_DESKTOP_AURA) || \ | ||
| 17 | - (!BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) | ||
| 18 | + (!BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD)) | ||
| 19 | // static | ||
| 20 | std::unique_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder( | ||
| 21 | LabelButton* button) { | ||
diff --git a/www/chromium/patches/patch-ui_views_views_delegate_cc b/www/chromium/patches/patch-ui_views_views_delegate_cc new file mode 100644 index 0000000..114c18a --- /dev/null +++ b/www/chromium/patches/patch-ui_views_views_delegate_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/views_delegate.cc | ||
| 2 | --- ui/views/views_delegate.cc.orig | ||
| 3 | +++ ui/views/views_delegate.cc | ||
| 4 | @@ -95,7 +95,7 @@ bool ViewsDelegate::IsWindowInMetro(gfx::NativeWindow | ||
| 5 | return false; | ||
| 6 | } | ||
| 7 | #elif BUILDFLAG(ENABLE_DESKTOP_AURA) && \ | ||
| 8 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 9 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) | ||
| 10 | gfx::ImageSkia* ViewsDelegate::GetDefaultWindowIcon() const { | ||
| 11 | return nullptr; | ||
| 12 | } | ||
diff --git a/www/chromium/patches/patch-ui_views_views_delegate_h b/www/chromium/patches/patch-ui_views_views_delegate_h new file mode 100644 index 0000000..b033084 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_views_delegate_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/views_delegate.h | ||
| 2 | --- ui/views/views_delegate.h.orig | ||
| 3 | +++ ui/views/views_delegate.h | ||
| 4 | @@ -139,7 +139,7 @@ class VIEWS_EXPORT ViewsDelegate { | ||
| 5 | // environment. | ||
| 6 | virtual bool IsWindowInMetro(gfx::NativeWindow window) const; | ||
| 7 | #elif BUILDFLAG(ENABLE_DESKTOP_AURA) && \ | ||
| 8 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 9 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) | ||
| 10 | virtual gfx::ImageSkia* GetDefaultWindowIcon() const; | ||
| 11 | #endif | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-ui_views_widget_desktop_aura_desktop_screen_ozone_cc b/www/chromium/patches/patch-ui_views_widget_desktop_aura_desktop_screen_ozone_cc new file mode 100644 index 0000000..4252df8 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_widget_desktop_aura_desktop_screen_ozone_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/widget/desktop_aura/desktop_screen_ozone.cc | ||
| 2 | --- ui/views/widget/desktop_aura/desktop_screen_ozone.cc.orig | ||
| 3 | +++ ui/views/widget/desktop_aura/desktop_screen_ozone.cc | ||
| 4 | @@ -25,7 +25,7 @@ gfx::NativeWindow DesktopScreenOzone::GetNativeWindowF | ||
| 5 | widget); | ||
| 6 | } | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) | ||
| 10 | std::unique_ptr<display::Screen> CreateDesktopScreen() { | ||
| 11 | auto screen = std::make_unique<aura::ScreenOzone>(); | ||
| 12 | screen->Initialize(); | ||
diff --git a/www/chromium/patches/patch-ui_views_widget_desktop_aura_desktop_window_tree_host_platform_cc b/www/chromium/patches/patch-ui_views_widget_desktop_aura_desktop_window_tree_host_platform_cc new file mode 100644 index 0000000..0744877 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_widget_desktop_aura_desktop_window_tree_host_platform_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc | ||
| 2 | --- ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc.orig | ||
| 3 | +++ ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc | ||
| 4 | @@ -915,7 +915,7 @@ display::Display DesktopWindowTreeHostPlatform::GetDis | ||
| 5 | // DesktopWindowTreeHost: | ||
| 6 | |||
| 7 | // Linux subclasses this host and adds some Linux specific bits. | ||
| 8 | -#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) | ||
| 9 | +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) | ||
| 10 | // static | ||
| 11 | DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | ||
| 12 | internal::NativeWidgetDelegate* native_widget_delegate, | ||
diff --git a/www/chromium/patches/patch-ui_views_widget_native_widget_aura_cc b/www/chromium/patches/patch-ui_views_widget_native_widget_aura_cc new file mode 100644 index 0000000..ece0baf --- /dev/null +++ b/www/chromium/patches/patch-ui_views_widget_native_widget_aura_cc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: ui/views/widget/native_widget_aura.cc | ||
| 2 | --- ui/views/widget/native_widget_aura.cc.orig | ||
| 3 | +++ ui/views/widget/native_widget_aura.cc | ||
| 4 | @@ -69,7 +69,7 @@ | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if BUILDFLAG(ENABLE_DESKTOP_AURA) && \ | ||
| 8 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 9 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) | ||
| 10 | #include "ui/views/widget/desktop_aura/desktop_window_tree_host_linux.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -1151,7 +1151,7 @@ void NativeWidgetAura::SetInitialFocus(ui::WindowShowS | ||
| 14 | |||
| 15 | namespace { | ||
| 16 | #if BUILDFLAG(ENABLE_DESKTOP_AURA) && \ | ||
| 17 | - (BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 18 | + (BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) | ||
| 19 | void CloseWindow(aura::Window* window) { | ||
| 20 | if (window) { | ||
| 21 | Widget* widget = Widget::GetWidgetForNativeView(window); | ||
| 22 | @@ -1182,7 +1182,7 @@ void Widget::CloseAllSecondaryWidgets() { | ||
| 23 | #endif | ||
| 24 | |||
| 25 | #if BUILDFLAG(ENABLE_DESKTOP_AURA) && \ | ||
| 26 | - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) | ||
| 27 | + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) | ||
| 28 | DesktopWindowTreeHostLinux::CleanUpWindowList(CloseWindow); | ||
| 29 | #endif | ||
| 30 | } | ||
diff --git a/www/chromium/patches/patch-ui_views_widget_widget_cc b/www/chromium/patches/patch-ui_views_widget_widget_cc new file mode 100644 index 0000000..95764fa --- /dev/null +++ b/www/chromium/patches/patch-ui_views_widget_widget_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: ui/views/widget/widget.cc | ||
| 2 | --- ui/views/widget/widget.cc.orig | ||
| 3 | +++ ui/views/widget/widget.cc | ||
| 4 | @@ -48,7 +48,7 @@ | ||
| 5 | #include "ui/views/window/custom_frame_view.h" | ||
| 6 | #include "ui/views/window/dialog_delegate.h" | ||
| 7 | |||
| 8 | -#if BUILDFLAG(IS_LINUX) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "ui/views/linux_ui/linux_ui.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -1791,7 +1791,7 @@ const ui::NativeTheme* Widget::GetNativeTheme() const | ||
| 14 | if (parent_) | ||
| 15 | return parent_->GetNativeTheme(); | ||
| 16 | |||
| 17 | -#if BUILDFLAG(IS_LINUX) | ||
| 18 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) | ||
| 19 | if (const views::LinuxUI* linux_ui = views::LinuxUI::instance()) { | ||
| 20 | if (auto* native_theme = linux_ui->GetNativeTheme(GetNativeWindow())) | ||
| 21 | return native_theme; | ||
diff --git a/www/chromium/patches/patch-ui_views_window_custom_frame_view_cc b/www/chromium/patches/patch-ui_views_window_custom_frame_view_cc new file mode 100644 index 0000000..40cdf62 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_window_custom_frame_view_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/window/custom_frame_view.cc | ||
| 2 | --- ui/views/window/custom_frame_view.cc.orig | ||
| 3 | +++ ui/views/window/custom_frame_view.cc | ||
| 4 | @@ -265,7 +265,7 @@ int CustomFrameView::CaptionButtonY() const { | ||
| 5 | // drawn flush with the screen edge, they still obey Fitts' Law. | ||
| 6 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch | ||
| 7 | // of lacros-chrome is complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | return FrameBorderThickness(); | ||
| 11 | #else | ||
| 12 | return frame_->IsMaximized() ? FrameBorderThickness() : kFrameShadowThickness; | ||
diff --git a/www/chromium/patches/patch-ui_views_window_dialog_delegate_cc b/www/chromium/patches/patch-ui_views_window_dialog_delegate_cc new file mode 100644 index 0000000..6bb69b2 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_window_dialog_delegate_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/window/dialog_delegate.cc | ||
| 2 | --- ui/views/window/dialog_delegate.cc.orig | ||
| 3 | +++ ui/views/window/dialog_delegate.cc | ||
| 4 | @@ -78,7 +78,7 @@ Widget* DialogDelegate::CreateDialogWidget( | ||
| 5 | |||
| 6 | // static | ||
| 7 | bool DialogDelegate::CanSupportCustomFrame(gfx::NativeView parent) { | ||
| 8 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && \ | ||
| 10 | BUILDFLAG(ENABLE_DESKTOP_AURA) | ||
| 11 | // The new style doesn't support unparented dialogs on Linux desktop. | ||
| 12 | return parent != nullptr; | ||
diff --git a/www/chromium/patches/patch-ui_views_window_frame_background_cc b/www/chromium/patches/patch-ui_views_window_frame_background_cc new file mode 100644 index 0000000..f75ef36 --- /dev/null +++ b/www/chromium/patches/patch-ui_views_window_frame_background_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: ui/views/window/frame_background.cc | ||
| 2 | --- ui/views/window/frame_background.cc.orig | ||
| 3 | +++ ui/views/window/frame_background.cc | ||
| 4 | @@ -110,7 +110,7 @@ void FrameBackground::PaintMaximized(gfx::Canvas* canv | ||
| 5 | int width) const { | ||
| 6 | // Fill the top with the frame color first so we have a constant background | ||
| 7 | // for areas not covered by the theme image. | ||
| 8 | -#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ | ||
| 9 | +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && \ | ||
| 10 | BUILDFLAG(ENABLE_DESKTOP_AURA) | ||
| 11 | ui::NativeTheme::ExtraParams params; | ||
| 12 | params.frame_top_area.use_custom_frame = use_custom_frame_; | ||
diff --git a/www/chromium/patches/patch-ui_webui_resources_js_cr_js b/www/chromium/patches/patch-ui_webui_resources_js_cr_js new file mode 100644 index 0000000..420d9d1 --- /dev/null +++ b/www/chromium/patches/patch-ui_webui_resources_js_cr_js | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Index: ui/webui/resources/js/cr.js | ||
| 2 | --- ui/webui/resources/js/cr.js.orig | ||
| 3 | +++ ui/webui/resources/js/cr.js | ||
| 4 | @@ -441,6 +441,11 @@ var cr = cr || function(global) { | ||
| 5 | return returnValue; | ||
| 6 | }, | ||
| 7 | |||
| 8 | + /** Whether this is on *BSD. */ | ||
| 9 | + get isBSD() { | ||
| 10 | + return /BSD/.test(navigator.userAgent); | ||
| 11 | + }, | ||
| 12 | + | ||
| 13 | /** Whether this is on vanilla Linux (not chromeOS). */ | ||
| 14 | get isLinux() { | ||
| 15 | return /Linux/.test(navigator.userAgent); | ||
diff --git a/www/chromium/patches/patch-v8_BUILD_gn b/www/chromium/patches/patch-v8_BUILD_gn new file mode 100644 index 0000000..d216fd4 --- /dev/null +++ b/www/chromium/patches/patch-v8_BUILD_gn | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | Index: v8/BUILD.gn | ||
| 2 | --- v8/BUILD.gn.orig | ||
| 3 | +++ v8/BUILD.gn | ||
| 4 | @@ -1217,6 +1217,14 @@ config("toolchain") { | ||
| 5 | } else if (target_os == "win") { | ||
| 6 | defines += [ "V8_HAVE_TARGET_OS" ] | ||
| 7 | defines += [ "V8_TARGET_OS_WIN" ] | ||
| 8 | + } else if (target_os == "openbsd") { | ||
| 9 | + defines += [ "V8_HAVE_TARGET_OS" ] | ||
| 10 | + defines += [ "V8_TARGET_OS_OPENBSD" ] | ||
| 11 | + defines += [ "V8_TARGET_OS_BSD" ] | ||
| 12 | + } else if (target_os == "freebsd") { | ||
| 13 | + defines += [ "V8_HAVE_TARGET_OS" ] | ||
| 14 | + defines += [ "V8_TARGET_OS_FREEBSD" ] | ||
| 15 | + defines += [ "V8_TARGET_OS_BSD" ] | ||
| 16 | } | ||
| 17 | |||
| 18 | # TODO(infra): Support v8_enable_prof on Windows. | ||
| 19 | @@ -5156,7 +5164,7 @@ v8_component("v8_libbase") { | ||
| 20 | } | ||
| 21 | } | ||
| 22 | |||
| 23 | - if (is_linux || is_chromeos) { | ||
| 24 | + if ((is_linux || is_chromeos) && !is_bsd) { | ||
| 25 | sources += [ | ||
| 26 | "src/base/debug/stack_trace_posix.cc", | ||
| 27 | "src/base/platform/platform-linux.cc", | ||
| 28 | @@ -5166,6 +5174,18 @@ v8_component("v8_libbase") { | ||
| 29 | "dl", | ||
| 30 | "rt", | ||
| 31 | ] | ||
| 32 | + } else if (is_openbsd) { | ||
| 33 | + sources += [ | ||
| 34 | + "src/base/debug/stack_trace_posix.cc", | ||
| 35 | + "src/base/platform/platform-openbsd.cc", | ||
| 36 | + ] | ||
| 37 | + libs = [ "execinfo" ] | ||
| 38 | + } else if (is_freebsd) { | ||
| 39 | + sources += [ | ||
| 40 | + "src/base/debug/stack_trace_posix.cc", | ||
| 41 | + "src/base/platform/platform-freebsd.cc", | ||
| 42 | + ] | ||
| 43 | + libs = [ "execinfo" ] | ||
| 44 | } else if (current_os == "aix") { | ||
| 45 | sources += [ | ||
| 46 | "src/base/debug/stack_trace_posix.cc", | ||
diff --git a/www/chromium/patches/patch-v8_include_v8config_h b/www/chromium/patches/patch-v8_include_v8config_h new file mode 100644 index 0000000..38ce203 --- /dev/null +++ b/www/chromium/patches/patch-v8_include_v8config_h | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | Index: v8/include/v8config.h | ||
| 2 | --- v8/include/v8config.h.orig | ||
| 3 | +++ v8/include/v8config.h | ||
| 4 | @@ -181,6 +181,8 @@ path. Add it with -I<path> to the command line | ||
| 5 | && !defined(V8_TARGET_OS_FUCHSIA) \ | ||
| 6 | && !defined(V8_TARGET_OS_IOS) \ | ||
| 7 | && !defined(V8_TARGET_OS_LINUX) \ | ||
| 8 | + && !defined(V8_TARGET_OS_OPENBSD) \ | ||
| 9 | + && !defined(V8_TARGET_OS_FREEBSD) \ | ||
| 10 | && !defined(V8_TARGET_OS_MACOSX) \ | ||
| 11 | && !defined(V8_TARGET_OS_WIN) | ||
| 12 | # error No known target OS defined. | ||
| 13 | @@ -192,6 +194,8 @@ path. Add it with -I<path> to the command line | ||
| 14 | || defined(V8_TARGET_OS_FUCHSIA) \ | ||
| 15 | || defined(V8_TARGET_OS_IOS) \ | ||
| 16 | || defined(V8_TARGET_OS_LINUX) \ | ||
| 17 | + || defined(V8_TARGET_OS_OPENBSD) \ | ||
| 18 | + || defined(V8_TARGET_OS_FREEBSD) \ | ||
| 19 | || defined(V8_TARGET_OS_MACOSX) \ | ||
| 20 | || defined(V8_TARGET_OS_WIN) | ||
| 21 | # error A target OS is defined but V8_HAVE_TARGET_OS is unset. | ||
| 22 | @@ -212,6 +216,16 @@ path. Add it with -I<path> to the command line | ||
| 23 | |||
| 24 | #ifdef V8_OS_LINUX | ||
| 25 | # define V8_TARGET_OS_LINUX | ||
| 26 | +#endif | ||
| 27 | + | ||
| 28 | +#ifdef V8_OS_OPENBSD | ||
| 29 | +# define V8_TARGET_OS_OPENBSD | ||
| 30 | +# define V8_TARGET_OS_BSD | ||
| 31 | +#endif | ||
| 32 | + | ||
| 33 | +#ifdef V8_OS_FREEBSD | ||
| 34 | +# define V8_TARGET_OS_OPENBSD | ||
| 35 | +# define V8_TARGET_OS_BSD | ||
| 36 | #endif | ||
| 37 | |||
| 38 | #ifdef V8_OS_MACOSX | ||
diff --git a/www/chromium/patches/patch-v8_src_api_api_cc b/www/chromium/patches/patch-v8_src_api_api_cc new file mode 100644 index 0000000..73c7638 --- /dev/null +++ b/www/chromium/patches/patch-v8_src_api_api_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: v8/src/api/api.cc | ||
| 2 | --- v8/src/api/api.cc.orig | ||
| 3 | +++ v8/src/api/api.cc | ||
| 4 | @@ -139,7 +139,7 @@ | ||
| 5 | #include "src/wasm/wasm-serialization.h" | ||
| 6 | #endif // V8_ENABLE_WEBASSEMBLY | ||
| 7 | |||
| 8 | -#if V8_OS_LINUX || V8_OS_MACOSX || V8_OS_FREEBSD | ||
| 9 | +#if V8_OS_LINUX || V8_OS_MACOSX || V8_OS_FREEBSD || V8_OS_OPENBSD | ||
| 10 | #include <signal.h> | ||
| 11 | #include "include/v8-wasm-trap-handler-posix.h" | ||
| 12 | #include "src/trap-handler/handler-inside-posix.h" | ||
| 13 | @@ -6060,7 +6060,7 @@ bool v8::V8::Initialize(const int build_config) { | ||
| 14 | return true; | ||
| 15 | } | ||
| 16 | |||
| 17 | -#if V8_OS_LINUX || V8_OS_MACOSX | ||
| 18 | +#if V8_OS_LINUX || V8_OS_MACOSX || V8_OS_FREEBSD || V8_OS_OPENBSD | ||
| 19 | bool TryHandleWebAssemblyTrapPosix(int sig_code, siginfo_t* info, | ||
| 20 | void* context) { | ||
| 21 | #if V8_ENABLE_WEBASSEMBLY && V8_TRAP_HANDLER_SUPPORTED | ||
diff --git a/www/chromium/patches/patch-v8_src_base_atomicops_h b/www/chromium/patches/patch-v8_src_base_atomicops_h new file mode 100644 index 0000000..c52651a --- /dev/null +++ b/www/chromium/patches/patch-v8_src_base_atomicops_h | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | Index: v8/src/base/atomicops.h | ||
| 2 | --- v8/src/base/atomicops.h.orig | ||
| 3 | +++ v8/src/base/atomicops.h | ||
| 4 | @@ -57,10 +57,10 @@ using Atomic64 = SbAtomic64; | ||
| 5 | using Atomic8 = char; | ||
| 6 | using Atomic16 = int16_t; | ||
| 7 | using Atomic32 = int32_t; | ||
| 8 | -#if defined(V8_HOST_ARCH_64_BIT) | ||
| 9 | +#if defined(V8_HOST_ARCH_64_BIT) || defined(V8_OS_OPENBSD) | ||
| 10 | // We need to be able to go between Atomic64 and AtomicWord implicitly. This | ||
| 11 | // means Atomic64 and AtomicWord should be the same type on 64-bit. | ||
| 12 | -#if defined(__ILP32__) | ||
| 13 | +#if defined(__ILP32__) && !defined(V8_OS_OPENBSD) | ||
| 14 | using Atomic64 = int64_t; | ||
| 15 | #else | ||
| 16 | using Atomic64 = intptr_t; | ||
| 17 | @@ -241,7 +241,7 @@ inline Atomic32 Acquire_Load(volatile const Atomic32* | ||
| 18 | std::memory_order_acquire); | ||
| 19 | } | ||
| 20 | |||
| 21 | -#if defined(V8_HOST_ARCH_64_BIT) | ||
| 22 | +#if defined(V8_HOST_ARCH_64_BIT) || defined(V8_OS_OPENBSD) | ||
| 23 | |||
| 24 | inline Atomic64 Relaxed_CompareAndSwap(volatile Atomic64* ptr, | ||
| 25 | Atomic64 old_value, Atomic64 new_value) { | ||
| 26 | @@ -441,7 +441,7 @@ inline int Relaxed_Memcmp(volatile const Atomic8* s1, | ||
| 27 | |||
| 28 | // On some platforms we need additional declarations to make | ||
| 29 | // AtomicWord compatible with our other Atomic* types. | ||
| 30 | -#if defined(V8_OS_MACOSX) || defined(V8_OS_OPENBSD) || defined(V8_OS_AIX) | ||
| 31 | +#if defined(V8_OS_MACOSX) || defined(V8_OS_AIX) | ||
| 32 | #include "src/base/atomicops_internals_atomicword_compat.h" | ||
| 33 | #endif | ||
| 34 | |||
diff --git a/www/chromium/patches/patch-v8_src_base_platform_platform-freebsd_cc b/www/chromium/patches/patch-v8_src_base_platform_platform-freebsd_cc new file mode 100644 index 0000000..8a0c989 --- /dev/null +++ b/www/chromium/patches/patch-v8_src_base_platform_platform-freebsd_cc | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | Index: v8/src/base/platform/platform-freebsd.cc | ||
| 2 | --- v8/src/base/platform/platform-freebsd.cc.orig | ||
| 3 | +++ v8/src/base/platform/platform-freebsd.cc | ||
| 4 | @@ -43,14 +43,10 @@ TimezoneCache* OS::CreateTimezoneCache() { | ||
| 5 | return new PosixDefaultTimezoneCache(); | ||
| 6 | } | ||
| 7 | |||
| 8 | -static unsigned StringToLong(char* buffer) { | ||
| 9 | - return static_cast<unsigned>(strtol(buffer, nullptr, 16)); | ||
| 10 | -} | ||
| 11 | - | ||
| 12 | std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() { | ||
| 13 | std::vector<SharedLibraryAddress> result; | ||
| 14 | int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_VMMAP, getpid()}; | ||
| 15 | - size_t miblen = sizeof(mib) / sizeof(mib[0]); | ||
| 16 | + unsigned int miblen = sizeof(mib) / sizeof(mib[0]); | ||
| 17 | size_t buffer_size; | ||
| 18 | if (sysctl(mib, miblen, nullptr, &buffer_size, nullptr, 0) == 0) { | ||
| 19 | // Overallocate the buffer by 1/3 to account for concurrent | ||
| 20 | @@ -82,8 +78,13 @@ std::vector<OS::SharedLibraryAddress> OS::GetSharedLib | ||
| 21 | lib_name = std::string(path); | ||
| 22 | } | ||
| 23 | result.push_back(SharedLibraryAddress( | ||
| 24 | +#if defined(__i386__) || defined(OS_FREEBSD) | ||
| 25 | + lib_name, static_cast<uintptr_t>(map->kve_start), | ||
| 26 | + static_cast<uintptr_t>(map->kve_end))); | ||
| 27 | +#else | ||
| 28 | lib_name, reinterpret_cast<uintptr_t>(map->kve_start), | ||
| 29 | reinterpret_cast<uintptr_t>(map->kve_end))); | ||
| 30 | +#endif | ||
| 31 | } | ||
| 32 | |||
| 33 | start += ssize; | ||
diff --git a/www/chromium/patches/patch-v8_src_base_platform_platform-openbsd_cc b/www/chromium/patches/patch-v8_src_base_platform_platform-openbsd_cc new file mode 100644 index 0000000..cdde7eb --- /dev/null +++ b/www/chromium/patches/patch-v8_src_base_platform_platform-openbsd_cc | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | Index: v8/src/base/platform/platform-openbsd.cc | ||
| 2 | --- v8/src/base/platform/platform-openbsd.cc.orig | ||
| 3 | +++ v8/src/base/platform/platform-openbsd.cc | ||
| 4 | @@ -6,6 +6,7 @@ | ||
| 5 | // POSIX-compatible parts, the implementation is in platform-posix.cc. | ||
| 6 | |||
| 7 | #include <pthread.h> | ||
| 8 | +#include <pthread_np.h> | ||
| 9 | #include <semaphore.h> | ||
| 10 | #include <signal.h> | ||
| 11 | #include <stdlib.h> | ||
| 12 | @@ -121,6 +122,17 @@ void OS::SignalCodeMovingGC() { | ||
| 13 | } | ||
| 14 | |||
| 15 | void OS::AdjustSchedulingParams() {} | ||
| 16 | + | ||
| 17 | +// static | ||
| 18 | +Stack::StackSlot Stack::GetStackStart() { | ||
| 19 | + stack_t ss; | ||
| 20 | + void *base; | ||
| 21 | + if (pthread_stackseg_np(pthread_self(), &ss) != 0) | ||
| 22 | + return nullptr; | ||
| 23 | + | ||
| 24 | + base = (void*)((size_t) ss.ss_sp - ss.ss_size); | ||
| 25 | + return reinterpret_cast<uint8_t*>(base) + ss.ss_size; | ||
| 26 | +} | ||
| 27 | |||
| 28 | std::vector<OS::MemoryRange> OS::GetFreeMemoryRangesWithin( | ||
| 29 | OS::Address boundary_start, OS::Address boundary_end, size_t minimum_size, | ||
diff --git a/www/chromium/patches/patch-v8_src_base_platform_platform-posix_cc b/www/chromium/patches/patch-v8_src_base_platform_platform-posix_cc new file mode 100644 index 0000000..edc757f --- /dev/null +++ b/www/chromium/patches/patch-v8_src_base_platform_platform-posix_cc | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | Index: v8/src/base/platform/platform-posix.cc | ||
| 2 | --- v8/src/base/platform/platform-posix.cc.orig | ||
| 3 | +++ v8/src/base/platform/platform-posix.cc | ||
| 4 | @@ -65,7 +65,7 @@ | ||
| 5 | #include <sys/syscall.h> | ||
| 6 | #endif | ||
| 7 | |||
| 8 | -#if V8_OS_FREEBSD || V8_OS_MACOSX || V8_OS_OPENBSD || V8_OS_SOLARIS | ||
| 9 | +#if V8_OS_FREEBSD || V8_OS_MACOSX || V8_OS_BSD || V8_OS_SOLARIS | ||
| 10 | #define MAP_ANONYMOUS MAP_ANON | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -291,8 +291,15 @@ void OS::SetRandomMmapSeed(int64_t seed) { | ||
| 14 | } | ||
| 15 | } | ||
| 16 | |||
| 17 | +#if V8_OS_OPENBSD | ||
| 18 | +// Allow OpenBSD's mmap to select a random address on OpenBSD | ||
| 19 | // static | ||
| 20 | void* OS::GetRandomMmapAddr() { | ||
| 21 | + return nullptr; | ||
| 22 | +} | ||
| 23 | +#else | ||
| 24 | +// static | ||
| 25 | +void* OS::GetRandomMmapAddr() { | ||
| 26 | uintptr_t raw_addr; | ||
| 27 | { | ||
| 28 | MutexGuard guard(rng_mutex.Pointer()); | ||
| 29 | @@ -383,6 +390,7 @@ void* OS::GetRandomMmapAddr() { | ||
| 30 | #endif | ||
| 31 | return reinterpret_cast<void*>(raw_addr); | ||
| 32 | } | ||
| 33 | +#endif | ||
| 34 | |||
| 35 | // TODO(bbudge) Move Cygwin and Fuchsia stuff into platform-specific files. | ||
| 36 | #if !V8_OS_CYGWIN && !V8_OS_FUCHSIA | ||
| 37 | @@ -598,7 +606,7 @@ void OS::DestroySharedMemoryHandle(PlatformSharedMemor | ||
| 38 | |||
| 39 | // static | ||
| 40 | bool OS::HasLazyCommits() { | ||
| 41 | -#if V8_OS_AIX || V8_OS_LINUX || V8_OS_MACOSX | ||
| 42 | +#if V8_OS_AIX || V8_OS_LINUX || V8_OS_MACOSX || V8_OS_BSD | ||
| 43 | return true; | ||
| 44 | #else | ||
| 45 | // TODO(bbudge) Return true for all POSIX platforms. | ||
| 46 | @@ -1217,7 +1225,7 @@ void Thread::SetThreadLocal(LocalStorageKey key, void* | ||
| 47 | // keep this version in POSIX as most Linux-compatible derivatives will | ||
| 48 | // support it. MacOS and FreeBSD are different here. | ||
| 49 | #if !defined(V8_OS_FREEBSD) && !defined(V8_OS_MACOSX) && !defined(_AIX) && \ | ||
| 50 | - !defined(V8_OS_SOLARIS) | ||
| 51 | + !defined(V8_OS_SOLARIS) && !defined(V8_OS_OPENBSD) | ||
| 52 | |||
| 53 | // static | ||
| 54 | Stack::StackSlot Stack::GetStackStart() { | ||
diff --git a/www/chromium/patches/patch-v8_src_base_sys-info_cc b/www/chromium/patches/patch-v8_src_base_sys-info_cc new file mode 100644 index 0000000..510297f --- /dev/null +++ b/www/chromium/patches/patch-v8_src_base_sys-info_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: v8/src/base/sys-info.cc | ||
| 2 | --- v8/src/base/sys-info.cc.orig | ||
| 3 | +++ v8/src/base/sys-info.cc | ||
| 4 | @@ -38,7 +38,7 @@ namespace base { | ||
| 5 | // static | ||
| 6 | int SysInfo::NumberOfProcessors() { | ||
| 7 | #if V8_OS_OPENBSD | ||
| 8 | - int mib[2] = {CTL_HW, HW_NCPU}; | ||
| 9 | + int mib[2] = {CTL_HW, HW_NCPUONLINE}; | ||
| 10 | int ncpu = 0; | ||
| 11 | size_t len = sizeof(ncpu); | ||
| 12 | if (sysctl(mib, arraysize(mib), &ncpu, &len, nullptr, 0) != 0) { | ||
diff --git a/www/chromium/patches/patch-v8_src_compiler_backend_ia32_instruction-selector-ia32_cc b/www/chromium/patches/patch-v8_src_compiler_backend_ia32_instruction-selector-ia32_cc new file mode 100644 index 0000000..eec3265 --- /dev/null +++ b/www/chromium/patches/patch-v8_src_compiler_backend_ia32_instruction-selector-ia32_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: v8/src/compiler/backend/ia32/instruction-selector-ia32.cc | ||
| 2 | --- v8/src/compiler/backend/ia32/instruction-selector-ia32.cc.orig | ||
| 3 | +++ v8/src/compiler/backend/ia32/instruction-selector-ia32.cc | ||
| 4 | @@ -3019,6 +3019,7 @@ void InstructionSelector::VisitI8x16Shuffle(Node* node | ||
| 5 | Emit(opcode, 1, &dst, input_count, inputs, temp_count, temps); | ||
| 6 | } | ||
| 7 | |||
| 8 | +#if V8_ENABLE_WEBASSEMBLY | ||
| 9 | void InstructionSelector::VisitI8x16Swizzle(Node* node) { | ||
| 10 | InstructionCode op = kIA32I8x16Swizzle; | ||
| 11 | |||
| 12 | @@ -3072,6 +3073,9 @@ void VisitMinOrMax(InstructionSelector* selector, Node | ||
| 13 | void InstructionSelector::VisitF32x4Pmin(Node* node) { | ||
| 14 | VisitMinOrMax(this, node, kIA32Minps, true); | ||
| 15 | } | ||
| 16 | +#else | ||
| 17 | +void InstructionSelector::VisitI8x16Swizzle(Node* node) { UNREACHABLE(); } | ||
| 18 | +#endif // V8_ENABLE_WEBASSEMBLY | ||
| 19 | |||
| 20 | void InstructionSelector::VisitF32x4Pmax(Node* node) { | ||
| 21 | VisitMinOrMax(this, node, kIA32Maxps, true); | ||
diff --git a/www/chromium/patches/patch-v8_src_diagnostics_perf-jit_cc b/www/chromium/patches/patch-v8_src_diagnostics_perf-jit_cc new file mode 100644 index 0000000..45845ad --- /dev/null +++ b/www/chromium/patches/patch-v8_src_diagnostics_perf-jit_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: v8/src/diagnostics/perf-jit.cc | ||
| 2 | --- v8/src/diagnostics/perf-jit.cc.orig | ||
| 3 | +++ v8/src/diagnostics/perf-jit.cc | ||
| 4 | @@ -30,7 +30,7 @@ | ||
| 5 | #include "src/common/assert-scope.h" | ||
| 6 | |||
| 7 | // Only compile the {PerfJitLogger} on Linux. | ||
| 8 | -#if V8_OS_LINUX | ||
| 9 | +#if defined(V8_OS_LINUX) || defined(V8_OS_BSD) | ||
| 10 | |||
| 11 | #include <fcntl.h> | ||
| 12 | #include <sys/mman.h> | ||
diff --git a/www/chromium/patches/patch-v8_src_diagnostics_perf-jit_h b/www/chromium/patches/patch-v8_src_diagnostics_perf-jit_h new file mode 100644 index 0000000..f694d46 --- /dev/null +++ b/www/chromium/patches/patch-v8_src_diagnostics_perf-jit_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: v8/src/diagnostics/perf-jit.h | ||
| 2 | --- v8/src/diagnostics/perf-jit.h.orig | ||
| 3 | +++ v8/src/diagnostics/perf-jit.h | ||
| 4 | @@ -31,7 +31,7 @@ | ||
| 5 | #include "include/v8config.h" | ||
| 6 | |||
| 7 | // {PerfJitLogger} is only implemented on Linux. | ||
| 8 | -#if V8_OS_LINUX | ||
| 9 | +#if defined(V8_OS_LINUX) || defined(V8_OS_BSD) | ||
| 10 | |||
| 11 | #include "src/logging/log.h" | ||
| 12 | |||
diff --git a/www/chromium/patches/patch-v8_src_trap-handler_handler-inside-posix_cc b/www/chromium/patches/patch-v8_src_trap-handler_handler-inside-posix_cc new file mode 100644 index 0000000..05fd6d3 --- /dev/null +++ b/www/chromium/patches/patch-v8_src_trap-handler_handler-inside-posix_cc | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | Index: v8/src/trap-handler/handler-inside-posix.cc | ||
| 2 | --- v8/src/trap-handler/handler-inside-posix.cc.orig | ||
| 3 | +++ v8/src/trap-handler/handler-inside-posix.cc | ||
| 4 | @@ -53,6 +53,8 @@ namespace trap_handler { | ||
| 5 | #define CONTEXT_REG(reg, REG) &uc->uc_mcontext->__ss.__##reg | ||
| 6 | #elif V8_OS_FREEBSD | ||
| 7 | #define CONTEXT_REG(reg, REG) &uc->uc_mcontext.mc_##reg | ||
| 8 | +#elif V8_OS_OPENBSD | ||
| 9 | +#define CONTEXT_REG(reg, REG) &uc->sc_##reg | ||
| 10 | #else | ||
| 11 | #error "Unsupported platform." | ||
| 12 | #endif | ||
| 13 | @@ -62,8 +64,12 @@ bool IsKernelGeneratedSignal(siginfo_t* info) { | ||
| 14 | // si_code at its default of 0 for signals that don’t originate in hardware. | ||
| 15 | // The other conditions are only relevant for Linux. | ||
| 16 | return info->si_code > 0 && info->si_code != SI_USER && | ||
| 17 | - info->si_code != SI_QUEUE && info->si_code != SI_TIMER && | ||
| 18 | - info->si_code != SI_ASYNCIO && info->si_code != SI_MESGQ; | ||
| 19 | + info->si_code != SI_QUEUE && info->si_code != SI_TIMER | ||
| 20 | +#ifdef V8_OS_OPENBSD | ||
| 21 | + ; | ||
| 22 | +#else | ||
| 23 | + && info->si_code != SI_ASYNCIO && info->si_code != SI_MESGQ; | ||
| 24 | +#endif | ||
| 25 | } | ||
| 26 | |||
| 27 | class UnmaskOobSignalScope { | ||
diff --git a/www/chromium/patches/patch-v8_src_trap-handler_handler-inside-posix_h b/www/chromium/patches/patch-v8_src_trap-handler_handler-inside-posix_h new file mode 100644 index 0000000..027dbec --- /dev/null +++ b/www/chromium/patches/patch-v8_src_trap-handler_handler-inside-posix_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: v8/src/trap-handler/handler-inside-posix.h | ||
| 2 | --- v8/src/trap-handler/handler-inside-posix.h.orig | ||
| 3 | +++ v8/src/trap-handler/handler-inside-posix.h | ||
| 4 | @@ -13,7 +13,7 @@ namespace v8 { | ||
| 5 | namespace internal { | ||
| 6 | namespace trap_handler { | ||
| 7 | |||
| 8 | -#if V8_OS_LINUX || V8_OS_FREEBSD | ||
| 9 | +#if V8_OS_LINUX || V8_OS_FREEBSD || V8_OS_OPENBSD | ||
| 10 | constexpr int kOobSignal = SIGSEGV; | ||
| 11 | #elif V8_OS_MACOSX | ||
| 12 | constexpr int kOobSignal = SIGBUS; | ||
diff --git a/www/chromium/patches/patch-v8_src_trap-handler_trap-handler_h b/www/chromium/patches/patch-v8_src_trap-handler_trap-handler_h new file mode 100644 index 0000000..a33e0a8 --- /dev/null +++ b/www/chromium/patches/patch-v8_src_trap-handler_trap-handler_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: v8/src/trap-handler/trap-handler.h | ||
| 2 | --- v8/src/trap-handler/trap-handler.h.orig | ||
| 3 | +++ v8/src/trap-handler/trap-handler.h | ||
| 4 | @@ -20,7 +20,7 @@ namespace trap_handler { | ||
| 5 | // X64 on Linux, Windows, MacOS, FreeBSD. | ||
| 6 | #if V8_HOST_ARCH_X64 && V8_TARGET_ARCH_X64 && \ | ||
| 7 | ((V8_OS_LINUX && !V8_OS_ANDROID) || V8_OS_WIN || V8_OS_MACOSX || \ | ||
| 8 | - V8_OS_FREEBSD) | ||
| 9 | + V8_OS_FREEBSD || V8_OS_OPENBSD) | ||
| 10 | #define V8_TRAP_HANDLER_SUPPORTED true | ||
| 11 | // Arm64 (non-simulator) on Mac. | ||
| 12 | #elif V8_TARGET_ARCH_ARM64 && V8_HOST_ARCH_ARM64 && V8_OS_MACOSX | ||
diff --git a/www/chromium/patches/patch-v8_src_wasm_baseline_ia32_liftoff-assembler-ia32_h b/www/chromium/patches/patch-v8_src_wasm_baseline_ia32_liftoff-assembler-ia32_h new file mode 100644 index 0000000..efa21fe --- /dev/null +++ b/www/chromium/patches/patch-v8_src_wasm_baseline_ia32_liftoff-assembler-ia32_h | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | Index: v8/src/wasm/baseline/ia32/liftoff-assembler-ia32.h | ||
| 2 | --- v8/src/wasm/baseline/ia32/liftoff-assembler-ia32.h.orig | ||
| 3 | +++ v8/src/wasm/baseline/ia32/liftoff-assembler-ia32.h | ||
| 4 | @@ -434,7 +434,7 @@ void LiftoffAssembler::StoreTaggedPointer(Register dst | ||
| 5 | } | ||
| 6 | |||
| 7 | void LiftoffAssembler::Load(LiftoffRegister dst, Register src_addr, | ||
| 8 | - Register offset_reg, uint32_t offset_imm, | ||
| 9 | + Register offset_reg, uintptr_t offset_imm, | ||
| 10 | LoadType type, LiftoffRegList pinned, | ||
| 11 | uint32_t* protected_load_pc, bool is_load_mem, | ||
| 12 | bool i64_offset) { | ||
| 13 | @@ -511,7 +511,7 @@ void LiftoffAssembler::Load(LiftoffRegister dst, Regis | ||
| 14 | } | ||
| 15 | |||
| 16 | void LiftoffAssembler::Store(Register dst_addr, Register offset_reg, | ||
| 17 | - uint32_t offset_imm, LiftoffRegister src, | ||
| 18 | + uintptr_t offset_imm, LiftoffRegister src, | ||
| 19 | StoreType type, LiftoffRegList pinned, | ||
| 20 | uint32_t* protected_store_pc, bool is_store_mem) { | ||
| 21 | DCHECK_EQ(type.value_type() == kWasmI64, src.is_gp_pair()); | ||
| 22 | @@ -579,7 +579,7 @@ void LiftoffAssembler::Store(Register dst_addr, Regist | ||
| 23 | } | ||
| 24 | |||
| 25 | void LiftoffAssembler::AtomicLoad(LiftoffRegister dst, Register src_addr, | ||
| 26 | - Register offset_reg, uint32_t offset_imm, | ||
| 27 | + Register offset_reg, uintptr_t offset_imm, | ||
| 28 | LoadType type, LiftoffRegList pinned) { | ||
| 29 | if (type.value() != LoadType::kI64Load) { | ||
| 30 | Load(dst, src_addr, offset_reg, offset_imm, type, pinned, nullptr, true); | ||
| 31 | @@ -598,7 +598,7 @@ void LiftoffAssembler::AtomicLoad(LiftoffRegister dst, | ||
| 32 | } | ||
| 33 | |||
| 34 | void LiftoffAssembler::AtomicStore(Register dst_addr, Register offset_reg, | ||
| 35 | - uint32_t offset_imm, LiftoffRegister src, | ||
| 36 | + uintptr_t offset_imm, LiftoffRegister src, | ||
| 37 | StoreType type, LiftoffRegList pinned) { | ||
| 38 | DCHECK_NE(offset_reg, no_reg); | ||
| 39 | DCHECK_LE(offset_imm, std::numeric_limits<int32_t>::max()); | ||
| 40 | @@ -940,7 +940,7 @@ inline void AtomicBinop64(LiftoffAssembler* lasm, Bino | ||
| 41 | } // namespace liftoff | ||
| 42 | |||
| 43 | void LiftoffAssembler::AtomicAdd(Register dst_addr, Register offset_reg, | ||
| 44 | - uint32_t offset_imm, LiftoffRegister value, | ||
| 45 | + uintptr_t offset_imm, LiftoffRegister value, | ||
| 46 | LiftoffRegister result, StoreType type) { | ||
| 47 | if (type.value() == StoreType::kI64Store) { | ||
| 48 | liftoff::AtomicBinop64(this, liftoff::kAdd, dst_addr, offset_reg, | ||
| 49 | @@ -953,7 +953,7 @@ void LiftoffAssembler::AtomicAdd(Register dst_addr, Re | ||
| 50 | } | ||
| 51 | |||
| 52 | void LiftoffAssembler::AtomicSub(Register dst_addr, Register offset_reg, | ||
| 53 | - uint32_t offset_imm, LiftoffRegister value, | ||
| 54 | + uintptr_t offset_imm, LiftoffRegister value, | ||
| 55 | LiftoffRegister result, StoreType type) { | ||
| 56 | if (type.value() == StoreType::kI64Store) { | ||
| 57 | liftoff::AtomicBinop64(this, liftoff::kSub, dst_addr, offset_reg, | ||
| 58 | @@ -965,7 +965,7 @@ void LiftoffAssembler::AtomicSub(Register dst_addr, Re | ||
| 59 | } | ||
| 60 | |||
| 61 | void LiftoffAssembler::AtomicAnd(Register dst_addr, Register offset_reg, | ||
| 62 | - uint32_t offset_imm, LiftoffRegister value, | ||
| 63 | + uintptr_t offset_imm, LiftoffRegister value, | ||
| 64 | LiftoffRegister result, StoreType type) { | ||
| 65 | if (type.value() == StoreType::kI64Store) { | ||
| 66 | liftoff::AtomicBinop64(this, liftoff::kAnd, dst_addr, offset_reg, | ||
| 67 | @@ -978,7 +978,7 @@ void LiftoffAssembler::AtomicAnd(Register dst_addr, Re | ||
| 68 | } | ||
| 69 | |||
| 70 | void LiftoffAssembler::AtomicOr(Register dst_addr, Register offset_reg, | ||
| 71 | - uint32_t offset_imm, LiftoffRegister value, | ||
| 72 | + uintptr_t offset_imm, LiftoffRegister value, | ||
| 73 | LiftoffRegister result, StoreType type) { | ||
| 74 | if (type.value() == StoreType::kI64Store) { | ||
| 75 | liftoff::AtomicBinop64(this, liftoff::kOr, dst_addr, offset_reg, offset_imm, | ||
| 76 | @@ -991,7 +991,7 @@ void LiftoffAssembler::AtomicOr(Register dst_addr, Reg | ||
| 77 | } | ||
| 78 | |||
| 79 | void LiftoffAssembler::AtomicXor(Register dst_addr, Register offset_reg, | ||
| 80 | - uint32_t offset_imm, LiftoffRegister value, | ||
| 81 | + uintptr_t offset_imm, LiftoffRegister value, | ||
| 82 | LiftoffRegister result, StoreType type) { | ||
| 83 | if (type.value() == StoreType::kI64Store) { | ||
| 84 | liftoff::AtomicBinop64(this, liftoff::kXor, dst_addr, offset_reg, | ||
| 85 | @@ -1004,7 +1004,7 @@ void LiftoffAssembler::AtomicXor(Register dst_addr, Re | ||
| 86 | } | ||
| 87 | |||
| 88 | void LiftoffAssembler::AtomicExchange(Register dst_addr, Register offset_reg, | ||
| 89 | - uint32_t offset_imm, | ||
| 90 | + uintptr_t offset_imm, | ||
| 91 | LiftoffRegister value, | ||
| 92 | LiftoffRegister result, StoreType type) { | ||
| 93 | if (type.value() == StoreType::kI64Store) { | ||
| 94 | @@ -1018,7 +1018,7 @@ void LiftoffAssembler::AtomicExchange(Register dst_add | ||
| 95 | } | ||
| 96 | |||
| 97 | void LiftoffAssembler::AtomicCompareExchange( | ||
| 98 | - Register dst_addr, Register offset_reg, uint32_t offset_imm, | ||
| 99 | + Register dst_addr, Register offset_reg, uintptr_t offset_imm, | ||
| 100 | LiftoffRegister expected, LiftoffRegister new_value, LiftoffRegister result, | ||
| 101 | StoreType type) { | ||
| 102 | // We expect that the offset has already been added to {dst_addr}, and no | ||
diff --git a/www/chromium/patches/patch-v8_tools_run_py b/www/chromium/patches/patch-v8_tools_run_py new file mode 100644 index 0000000..1c71410 --- /dev/null +++ b/www/chromium/patches/patch-v8_tools_run_py | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: v8/tools/run.py | ||
| 2 | --- v8/tools/run.py.orig | ||
| 3 | +++ v8/tools/run.py | ||
| 4 | @@ -11,7 +11,7 @@ from __future__ import print_function | ||
| 5 | import subprocess | ||
| 6 | import sys | ||
| 7 | |||
| 8 | -result = subprocess.call(sys.argv[1:]) | ||
| 9 | +sys.exit(subprocess.call(sys.argv[1:], env={"LD_LIBRARY_PATH":"${WRKSRC}/out/Release"})) | ||
| 10 | if result != 0: | ||
| 11 | # Windows error codes such as 0xC0000005 and 0xC0000409 are much easier | ||
| 12 | # to recognize and differentiate in hex. | ||
diff --git a/www/chromium/patches/patch-weblayer_browser_browser_main_parts_impl_cc b/www/chromium/patches/patch-weblayer_browser_browser_main_parts_impl_cc new file mode 100644 index 0000000..4e2176b --- /dev/null +++ b/www/chromium/patches/patch-weblayer_browser_browser_main_parts_impl_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: weblayer/browser/browser_main_parts_impl.cc | ||
| 2 | --- weblayer/browser/browser_main_parts_impl.cc.orig | ||
| 3 | +++ weblayer/browser/browser_main_parts_impl.cc | ||
| 4 | @@ -78,7 +78,7 @@ | ||
| 5 | |||
| 6 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 7 | // complete. | ||
| 8 | -#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 9 | +#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 10 | #include "ui/base/ime/init/input_method_initializer.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -196,7 +196,7 @@ int BrowserMainPartsImpl::PreEarlyInitialization() { | ||
| 14 | |||
| 15 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 16 | // complete. | ||
| 17 | -#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) | ||
| 18 | +#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)) | ||
| 19 | ui::InitializeInputMethodForTesting(); | ||
| 20 | #endif | ||
| 21 | #if BUILDFLAG(IS_ANDROID) | ||
diff --git a/www/chromium/patches/patch-weblayer_browser_content_browser_client_impl_cc b/www/chromium/patches/patch-weblayer_browser_content_browser_client_impl_cc new file mode 100644 index 0000000..a142e4a --- /dev/null +++ b/www/chromium/patches/patch-weblayer_browser_content_browser_client_impl_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: weblayer/browser/content_browser_client_impl.cc | ||
| 2 | --- weblayer/browser/content_browser_client_impl.cc.orig | ||
| 3 | +++ weblayer/browser/content_browser_client_impl.cc | ||
| 4 | @@ -153,7 +153,7 @@ | ||
| 5 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 6 | // complete. | ||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || \ | ||
| 8 | - BUILDFLAG(IS_ANDROID) | ||
| 9 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "content/public/common/content_descriptors.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -1000,7 +1000,7 @@ SafeBrowsingService* ContentBrowserClientImpl::GetSafe | ||
| 14 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 15 | // complete. | ||
| 16 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || \ | ||
| 17 | - BUILDFLAG(IS_ANDROID) | ||
| 18 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 19 | void ContentBrowserClientImpl::GetAdditionalMappedFilesForChildProcess( | ||
| 20 | const base::CommandLine& command_line, | ||
| 21 | int child_process_id, | ||
diff --git a/www/chromium/patches/patch-weblayer_browser_content_browser_client_impl_h b/www/chromium/patches/patch-weblayer_browser_content_browser_client_impl_h new file mode 100644 index 0000000..e0eebbd --- /dev/null +++ b/www/chromium/patches/patch-weblayer_browser_content_browser_client_impl_h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: weblayer/browser/content_browser_client_impl.h | ||
| 2 | --- weblayer/browser/content_browser_client_impl.h.orig | ||
| 3 | +++ weblayer/browser/content_browser_client_impl.h | ||
| 4 | @@ -179,7 +179,7 @@ class ContentBrowserClientImpl : public content::Conte | ||
| 5 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 6 | // complete. | ||
| 7 | #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || \ | ||
| 8 | - BUILDFLAG(IS_ANDROID) | ||
| 9 | + BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) | ||
| 10 | void GetAdditionalMappedFilesForChildProcess( | ||
| 11 | const base::CommandLine& command_line, | ||
| 12 | int child_process_id, | ||
diff --git a/www/chromium/patches/patch-weblayer_browser_system_network_context_manager_cc b/www/chromium/patches/patch-weblayer_browser_system_network_context_manager_cc new file mode 100644 index 0000000..7d9ba10 --- /dev/null +++ b/www/chromium/patches/patch-weblayer_browser_system_network_context_manager_cc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Index: weblayer/browser/system_network_context_manager.cc | ||
| 2 | --- weblayer/browser/system_network_context_manager.cc.orig | ||
| 3 | +++ weblayer/browser/system_network_context_manager.cc | ||
| 4 | @@ -69,7 +69,7 @@ void SystemNetworkContextManager::ConfigureDefaultNetw | ||
| 5 | network_context_params->user_agent = user_agent; | ||
| 6 | // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is | ||
| 7 | // complete. | ||
| 8 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_WIN) | ||
| 9 | +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) | ||
| 10 | // We're not configuring the cookie encryption on these platforms yet. | ||
| 11 | network_context_params->enable_encrypted_cookies = false; | ||
| 12 | #endif // (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || | ||
diff --git a/www/chromium/patches/patch-weblayer_common_weblayer_paths_cc b/www/chromium/patches/patch-weblayer_common_weblayer_paths_cc new file mode 100644 index 0000000..ac8cb1a --- /dev/null +++ b/www/chromium/patches/patch-weblayer_common_weblayer_paths_cc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Index: weblayer/common/weblayer_paths.cc | ||
| 2 | --- weblayer/common/weblayer_paths.cc.orig | ||
| 3 | +++ weblayer/common/weblayer_paths.cc | ||
| 4 | @@ -18,7 +18,7 @@ | ||
| 5 | |||
| 6 | #if BUILDFLAG(IS_WIN) | ||
| 7 | #include "base/base_paths_win.h" | ||
| 8 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 9 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 10 | #include "base/nix/xdg_util.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | @@ -36,7 +36,7 @@ bool GetDefaultUserDataDirectory(base::FilePath* resul | ||
| 14 | return false; | ||
| 15 | *result = result->AppendASCII("weblayer"); | ||
| 16 | return true; | ||
| 17 | -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 18 | +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) | ||
| 19 | std::unique_ptr<base::Environment> env(base::Environment::Create()); | ||
| 20 | base::FilePath config_dir(base::nix::GetXDGDirectory( | ||
| 21 | env.get(), base::nix::kXdgConfigHomeEnvVar, base::nix::kDotConfigDir)); | ||
diff --git a/www/chromium/pkg/CVS/Entries b/www/chromium/pkg/CVS/Entries new file mode 100644 index 0000000..f18bf00 --- /dev/null +++ b/www/chromium/pkg/CVS/Entries | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | /DESCR/1.3/Fri Jul 11 07:39:58 2014// | ||
| 2 | /PFRAG.component/1.14/Tue Mar 29 19:41:04 2022// | ||
| 3 | /PFRAG.swiftshader/1.4/Tue Mar 29 19:41:04 2022// | ||
| 4 | /PLIST/1.111/Tue Mar 29 19:41:04 2022// | ||
| 5 | /README/1.4/Fri Mar 11 20:09:41 2022// | ||
| 6 | D | ||
diff --git a/www/chromium/pkg/CVS/Repository b/www/chromium/pkg/CVS/Repository new file mode 100644 index 0000000..9e11a9b --- /dev/null +++ b/www/chromium/pkg/CVS/Repository | |||
| @@ -0,0 +1 @@ | |||
| ports/www/chromium/pkg | |||
diff --git a/www/chromium/pkg/CVS/Root b/www/chromium/pkg/CVS/Root new file mode 100644 index 0000000..3811072 --- /dev/null +++ b/www/chromium/pkg/CVS/Root | |||
| @@ -0,0 +1 @@ | |||
| /cvs | |||
diff --git a/www/chromium/pkg/DESCR b/www/chromium/pkg/DESCR new file mode 100644 index 0000000..bd9f12e --- /dev/null +++ b/www/chromium/pkg/DESCR | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | Chromium is an open-source browser project that aims | ||
| 2 | to build a safer, faster, and more stable way for all | ||
| 3 | Internet users to experience the web. | ||
diff --git a/www/chromium/pkg/PFRAG.component b/www/chromium/pkg/PFRAG.component new file mode 100644 index 0000000..9db9d88 --- /dev/null +++ b/www/chromium/pkg/PFRAG.component | |||
| @@ -0,0 +1,360 @@ | |||
| 1 | @so chrome/libAPP_UPDATE.so | ||
| 2 | @so chrome/libabsl.so | ||
| 3 | @so chrome/libaccessibility.so | ||
| 4 | @so chrome/libandroid_mojo_bindings_shared.so | ||
| 5 | @so chrome/libanimation.so | ||
| 6 | @so chrome/libapdu.so | ||
| 7 | @so chrome/libaura.so | ||
| 8 | @so chrome/libaura_extra.so | ||
| 9 | @so chrome/libauthenticator_test_mojo_bindings_shared.so | ||
| 10 | @so chrome/libax_base.so | ||
| 11 | @so chrome/libbackground_tracing.so | ||
| 12 | @so chrome/libbase.so | ||
| 13 | @so chrome/libbase_i18n.so | ||
| 14 | @so chrome/libbindings.so | ||
| 15 | @so chrome/libbindings_base.so | ||
| 16 | @so chrome/libblink_common.so | ||
| 17 | @so chrome/libblink_controller.so | ||
| 18 | @so chrome/libblink_core.so | ||
| 19 | @so chrome/libblink_embedded_frame_sink_mojo_bindings_shared.so | ||
| 20 | @so chrome/libblink_features.so | ||
| 21 | @so chrome/libblink_gpu_mojom.so | ||
| 22 | @so chrome/libblink_gpu_mojom_shared.so | ||
| 23 | @so chrome/libblink_modules.so | ||
| 24 | @so chrome/libblink_mojom_broadcastchannel_bindings_shared.so | ||
| 25 | @so chrome/libblink_platform.so | ||
| 26 | @so chrome/libbluetooth.so | ||
| 27 | @so chrome/libboringssl.so | ||
| 28 | @so chrome/libbrowser_ui_views.so | ||
| 29 | @so chrome/libcaptive_portal_core.so | ||
| 30 | @so chrome/libcapture_base.so | ||
| 31 | @so chrome/libcapture_lib.so | ||
| 32 | @so chrome/libcapture_switches.so | ||
| 33 | @so chrome/libcbor.so | ||
| 34 | @so chrome/libcc.so | ||
| 35 | @so chrome/libcc_animation.so | ||
| 36 | @so chrome/libcc_base.so | ||
| 37 | @so chrome/libcc_debug.so | ||
| 38 | @so chrome/libcc_ipc.so | ||
| 39 | @so chrome/libcc_mojo_embedder.so | ||
| 40 | @so chrome/libcc_paint.so | ||
| 41 | @so chrome/libcc_shared_mojom_traits.so | ||
| 42 | @so chrome/libcert_net_url_loader.so | ||
| 43 | @so chrome/libcertificate_matching.so | ||
| 44 | @so chrome/libchrome_features.so | ||
| 45 | @so chrome/libchrome_zlib.so | ||
| 46 | @so chrome/libchromium_sqlite3.so | ||
| 47 | @so chrome/libclient.so | ||
| 48 | @so chrome/libcloud_policy_proto_generated_compile.so | ||
| 49 | @so chrome/libcodec.so | ||
| 50 | @so chrome/libcolor.so | ||
| 51 | @so chrome/libcolor_scheme_mojo_bindings_shared.so | ||
| 52 | @so chrome/libcolor_space.so | ||
| 53 | @so chrome/libcolor_space_mojom_support.so | ||
| 54 | @so chrome/libcolor_utils.so | ||
| 55 | @so chrome/libcommon.so | ||
| 56 | @so chrome/libcompositor.so | ||
| 57 | @so chrome/libcontent.so | ||
| 58 | @so chrome/libcontent_common_mojo_bindings_shared.so | ||
| 59 | @so chrome/libcontent_public_common_mojo_bindings_shared.so | ||
| 60 | @so chrome/libcontent_settings_features.so | ||
| 61 | @so chrome/libcookies_mojom_support.so | ||
| 62 | @so chrome/libcpp.so | ||
| 63 | @so chrome/libcrash_keys.so | ||
| 64 | @so chrome/libcrcrypto.so | ||
| 65 | @so chrome/libcrdtp.so | ||
| 66 | @so chrome/libcross_origin_embedder_policy.so | ||
| 67 | @so chrome/libdata_exchange.so | ||
| 68 | @so chrome/libdawn_proc.so | ||
| 69 | @so chrome/libdbus.so | ||
| 70 | @so chrome/libdevice_base.so | ||
| 71 | @so chrome/libdevice_event_log.so | ||
| 72 | @so chrome/libdevice_features.so | ||
| 73 | @so chrome/libdevice_gamepad.so | ||
| 74 | @so chrome/libdevice_service_binder_overrides.so | ||
| 75 | @so chrome/libdevice_vr.so | ||
| 76 | @so chrome/libdevice_vr_base.so | ||
| 77 | @so chrome/libdevice_vr_isolated_xr_service_mojo_bindings.so | ||
| 78 | @so chrome/libdevice_vr_isolated_xr_service_mojo_bindings_shared.so | ||
| 79 | @so chrome/libdevice_vr_public_typemaps.so | ||
| 80 | @so chrome/libdevice_vr_service_mojo_bindings.so | ||
| 81 | @so chrome/libdevice_vr_service_mojo_bindings_blink.so | ||
| 82 | @so chrome/libdevice_vr_service_mojo_bindings_shared.so | ||
| 83 | @so chrome/libdevice_vr_test_mojo_bindings.so | ||
| 84 | @so chrome/libdevice_vr_test_mojo_bindings_blink.so | ||
| 85 | @so chrome/libdevice_vr_test_mojo_bindings_shared.so | ||
| 86 | @so chrome/libdevices.so | ||
| 87 | @so chrome/libdiscardable_memory_client.so | ||
| 88 | @so chrome/libdiscardable_memory_common.so | ||
| 89 | @so chrome/libdiscardable_memory_service.so | ||
| 90 | @so chrome/libdisplay.so | ||
| 91 | @so chrome/libdisplay_shared_mojom_traits.so | ||
| 92 | @so chrome/libdisplay_types.so | ||
| 93 | @so chrome/libdisplay_util.so | ||
| 94 | @so chrome/libdom_storage_mojom.so | ||
| 95 | @so chrome/libdom_storage_mojom_shared.so | ||
| 96 | @so chrome/libdomain_reliability.so | ||
| 97 | @so chrome/liberror_reporting.so | ||
| 98 | @so chrome/libevents.so | ||
| 99 | @so chrome/libevents_base.so | ||
| 100 | @so chrome/libevents_devices_x11.so | ||
| 101 | @so chrome/libevents_ozone.so | ||
| 102 | @so chrome/libevents_ozone_layout.so | ||
| 103 | @so chrome/libevents_x.so | ||
| 104 | @so chrome/libextras.so | ||
| 105 | @so chrome/libfake.so | ||
| 106 | @so chrome/libffmpeg.so | ||
| 107 | @so chrome/libfido.so | ||
| 108 | @so chrome/libfile_info.so | ||
| 109 | @so chrome/libfilesystem_proxy_factory.so | ||
| 110 | @so chrome/libfingerprint.so | ||
| 111 | @so chrome/libframe_mojom.so | ||
| 112 | @so chrome/libframe_mojom_shared.so | ||
| 113 | @so chrome/libfreetype_harfbuzz.so | ||
| 114 | @so chrome/libgamepad_mojom.so | ||
| 115 | @so chrome/libgamepad_mojom_blink.so | ||
| 116 | @so chrome/libgamepad_mojom_shared.so | ||
| 117 | @so chrome/libgamepad_shared_typemap_traits.so | ||
| 118 | @so chrome/libgcm.so | ||
| 119 | @so chrome/libgeometry.so | ||
| 120 | @so chrome/libgeometry_skia.so | ||
| 121 | @so chrome/libgesture_detection.so | ||
| 122 | @so chrome/libgfx.so | ||
| 123 | @so chrome/libgfx_ipc.so | ||
| 124 | @so chrome/libgfx_ipc_buffer_types.so | ||
| 125 | @so chrome/libgfx_ipc_color.so | ||
| 126 | @so chrome/libgfx_ipc_geometry.so | ||
| 127 | @so chrome/libgfx_ipc_skia.so | ||
| 128 | @so chrome/libgfx_native_types_shared_mojom_traits.so | ||
| 129 | @so chrome/libgfx_shared_mojom_traits.so | ||
| 130 | @so chrome/libgfx_switches.so | ||
| 131 | @so chrome/libgfx_x11.so | ||
| 132 | @so chrome/libgin.so | ||
| 133 | @so chrome/libgl_in_process_context.so | ||
| 134 | @so chrome/libgl_init.so | ||
| 135 | @so chrome/libgl_wrapper.so | ||
| 136 | @so chrome/libgles2.so | ||
| 137 | @so chrome/libgles2_implementation.so | ||
| 138 | @so chrome/libgles2_utils.so | ||
| 139 | @so chrome/libgpu.so | ||
| 140 | @so chrome/libgpu_ipc_service.so | ||
| 141 | @so chrome/libgpu_memory_buffer_support_x11.so | ||
| 142 | @so chrome/libgpu_shared_mojom_traits.so | ||
| 143 | @so chrome/libgtk.so | ||
| 144 | @so chrome/libgtk_ui_delegate.so | ||
| 145 | @so chrome/libheadless_non_renderer.so | ||
| 146 | @so chrome/libhost.so | ||
| 147 | @so chrome/libicui18n.so | ||
| 148 | @so chrome/libicuuc.so | ||
| 149 | @so chrome/libime_shared_mojom_traits.so | ||
| 150 | @so chrome/libinterfaces_shared.so | ||
| 151 | @so chrome/libip_address_mojom_support.so | ||
| 152 | @so chrome/libipc.so | ||
| 153 | @so chrome/libipc_mojom.so | ||
| 154 | @so chrome/libipc_mojom_shared.so | ||
| 155 | @so chrome/libkeycodes_x11.so | ||
| 156 | @so chrome/libkeyed_service_content.so | ||
| 157 | @so chrome/libkeyed_service_core.so | ||
| 158 | @so chrome/liblatency_shared_mojom_traits.so | ||
| 159 | @so chrome/liblearning_common.so | ||
| 160 | @so chrome/liblearning_impl.so | ||
| 161 | @so chrome/libleveldatabase.so | ||
| 162 | @so chrome/libleveldb_proto.so | ||
| 163 | @so chrome/liblookalikes_features.so | ||
| 164 | @so chrome/libmailbox.so | ||
| 165 | @so chrome/libmanager.so | ||
| 166 | @so chrome/libmedia.so | ||
| 167 | @so chrome/libmedia_blink.so | ||
| 168 | @so chrome/libmedia_gpu.so | ||
| 169 | @so chrome/libmedia_learning_mojo_impl.so | ||
| 170 | @so chrome/libmedia_learning_shared_typemap_traits.so | ||
| 171 | @so chrome/libmedia_message_center.so | ||
| 172 | @so chrome/libmedia_mojo_services.so | ||
| 173 | @so chrome/libmedia_session_base_cpp.so | ||
| 174 | @so chrome/libmedia_session_cpp.so | ||
| 175 | @so chrome/libmedia_webrtc.so | ||
| 176 | @so chrome/libmemory_instrumentation.so | ||
| 177 | @so chrome/libmenu.so | ||
| 178 | @so chrome/libmessage_center.so | ||
| 179 | @so chrome/libmessage_support.so | ||
| 180 | @so chrome/libmetrics_cpp.so | ||
| 181 | @so chrome/libmidi.so | ||
| 182 | @bin chrome/libmirclient.so.9 | ||
| 183 | @so chrome/libmirroring_service.so | ||
| 184 | @so chrome/libmixers.so | ||
| 185 | @so chrome/libmojo_base_lib.so | ||
| 186 | @so chrome/libmojo_base_mojom.so | ||
| 187 | @so chrome/libmojo_base_mojom_blink.so | ||
| 188 | @so chrome/libmojo_base_mojom_shared.so | ||
| 189 | @so chrome/libmojo_base_shared_typemap_traits.so | ||
| 190 | @so chrome/libmojo_base_typemap_traits.so | ||
| 191 | @so chrome/libmojo_core_embedder.so | ||
| 192 | @so chrome/libmojo_core_embedder_internal.so | ||
| 193 | @so chrome/libmojo_core_ports.so | ||
| 194 | @so chrome/libmojo_cpp_platform.so | ||
| 195 | @so chrome/libmojo_mojom_bindings.so | ||
| 196 | @so chrome/libmojo_mojom_bindings_shared.so | ||
| 197 | @so chrome/libmojo_public_system.so | ||
| 198 | @so chrome/libmojo_public_system_cpp.so | ||
| 199 | @so chrome/libmojom_core_shared.so | ||
| 200 | @so chrome/libmojom_mhtml_load_result_shared.so | ||
| 201 | @so chrome/libmojom_modules_shared.so | ||
| 202 | @so chrome/libmojom_platform_shared.so | ||
| 203 | @so chrome/libnative_theme.so | ||
| 204 | @so chrome/libnet.so | ||
| 205 | @so chrome/libnetwork_cpp.so | ||
| 206 | @so chrome/libnetwork_cpp_base.so | ||
| 207 | @so chrome/libnetwork_service.so | ||
| 208 | @so chrome/libnetwork_session_configurator.so | ||
| 209 | @so chrome/libomnibox_http_headers.so | ||
| 210 | @so chrome/libonc.so | ||
| 211 | @so chrome/libos_crypt.so | ||
| 212 | @so chrome/libozone.so | ||
| 213 | @so chrome/libozone_base.so | ||
| 214 | @so chrome/libparsers.so | ||
| 215 | @so chrome/libpdfium.so | ||
| 216 | @so chrome/libperfetto.so | ||
| 217 | @so chrome/libperformance_manager_public_mojom.so | ||
| 218 | @so chrome/libperformance_manager_public_mojom_blink.so | ||
| 219 | @so chrome/libperformance_manager_public_mojom_shared.so | ||
| 220 | @so chrome/libplatform.so | ||
| 221 | @so chrome/libplatform_window.so | ||
| 222 | @so chrome/libplatform_window_common.so | ||
| 223 | @so chrome/libplatform_window_wm.so | ||
| 224 | @so chrome/libpolicy.so | ||
| 225 | @so chrome/libpolicy_component.so | ||
| 226 | @so chrome/libpolicy_proto.so | ||
| 227 | @so chrome/libppapi_host.so | ||
| 228 | @so chrome/libppapi_proxy.so | ||
| 229 | @so chrome/libppapi_shared.so | ||
| 230 | @so chrome/libprediction.so | ||
| 231 | @so chrome/libprefs.so | ||
| 232 | @so chrome/libprinting.so | ||
| 233 | @so chrome/libprivacy_budget.so | ||
| 234 | @so chrome/libproperties.so | ||
| 235 | @so chrome/libprotobuf_lite.so | ||
| 236 | @so chrome/libproxy_config.so | ||
| 237 | @so chrome/libpublic.so | ||
| 238 | @so chrome/librange.so | ||
| 239 | @so chrome/libraster.so | ||
| 240 | @so chrome/libresource_coordinator_public_mojom.so | ||
| 241 | @so chrome/libresource_coordinator_public_mojom_blink.so | ||
| 242 | @so chrome/libresource_coordinator_public_mojom_shared.so | ||
| 243 | @so chrome/libsandbox_services.so | ||
| 244 | @so chrome/libscheduling_metrics.so | ||
| 245 | @so chrome/libschema_org_common.so | ||
| 246 | @so chrome/libschemeful_site_mojom_support.so | ||
| 247 | @so chrome/libscript_type_mojom.so | ||
| 248 | @so chrome/libscript_type_mojom_shared.so | ||
| 249 | @so chrome/libsecurity_state_features.so | ||
| 250 | @so chrome/libservice.so | ||
| 251 | @so chrome/libservice_manager_cpp.so | ||
| 252 | @so chrome/libservice_manager_cpp_types.so | ||
| 253 | @so chrome/libservice_manager_mojom.so | ||
| 254 | @so chrome/libservice_manager_mojom_blink.so | ||
| 255 | @so chrome/libservice_manager_mojom_constants.so | ||
| 256 | @so chrome/libservice_manager_mojom_constants_blink.so | ||
| 257 | @so chrome/libservice_manager_mojom_constants_shared.so | ||
| 258 | @so chrome/libservice_manager_mojom_shared.so | ||
| 259 | @so chrome/libservice_manager_mojom_traits.so | ||
| 260 | @so chrome/libservice_provider.so | ||
| 261 | @so chrome/libservice_worker_storage_mojom.so | ||
| 262 | @so chrome/libservice_worker_storage_mojom_shared.so | ||
| 263 | @so chrome/libsessions.so | ||
| 264 | @so chrome/libshared_memory_support.so | ||
| 265 | @so chrome/libshared_with_blink.so | ||
| 266 | @so chrome/libshell_dialogs.so | ||
| 267 | @so chrome/libskia.so | ||
| 268 | @so chrome/libskia_shared_typemap_traits.so | ||
| 269 | @so chrome/libsnapshot.so | ||
| 270 | @so chrome/libsql.so | ||
| 271 | @so chrome/libstartup_tracing.so | ||
| 272 | @so chrome/libstorage_browser.so | ||
| 273 | @so chrome/libstorage_common.so | ||
| 274 | @so chrome/libstorage_service_filesystem_mojom.so | ||
| 275 | @so chrome/libstorage_service_filesystem_mojom_shared.so | ||
| 276 | @so chrome/libstorage_service_filesystem_support.so | ||
| 277 | @so chrome/libstorage_service_public.so | ||
| 278 | @so chrome/libstorage_service_typemap_traits.so | ||
| 279 | @so chrome/libstub_window.so | ||
| 280 | @so chrome/libsurface.so | ||
| 281 | @so chrome/libswitches.so | ||
| 282 | @so chrome/libsystem_media_controls.so | ||
| 283 | @so chrome/libtab_count_metrics.so | ||
| 284 | @so chrome/libtab_groups.so | ||
| 285 | @so chrome/libtest_api_stubs.so | ||
| 286 | @so chrome/libtesting_api_support.so | ||
| 287 | @so chrome/libthread_linux.so | ||
| 288 | @so chrome/libtokens_mojom_shared.so | ||
| 289 | @so chrome/libtokens_traits.so | ||
| 290 | @so chrome/libtracing_cpp.so | ||
| 291 | @so chrome/libtracing_mojom.so | ||
| 292 | @so chrome/libtracing_mojom_shared.so | ||
| 293 | @so chrome/libui_accessibility_ax_mojom.so | ||
| 294 | @so chrome/libui_accessibility_ax_mojom_blink.so | ||
| 295 | @so chrome/libui_accessibility_ax_mojom_shared.so | ||
| 296 | @so chrome/libui_base.so | ||
| 297 | @so chrome/libui_base_clipboard.so | ||
| 298 | @so chrome/libui_base_clipboard_types.so | ||
| 299 | @so chrome/libui_base_cursor.so | ||
| 300 | @so chrome/libui_base_cursor_base.so | ||
| 301 | @so chrome/libui_base_cursor_theme_manager.so | ||
| 302 | @so chrome/libui_base_data_transfer_policy.so | ||
| 303 | @so chrome/libui_base_features.so | ||
| 304 | @so chrome/libui_base_idle.so | ||
| 305 | @so chrome/libui_base_ime.so | ||
| 306 | @so chrome/libui_base_ime_init.so | ||
| 307 | @so chrome/libui_base_ime_linux.so | ||
| 308 | @so chrome/libui_base_ime_types.so | ||
| 309 | @so chrome/libui_base_x.so | ||
| 310 | @so chrome/libui_data_pack.so | ||
| 311 | @so chrome/libui_devtools.so | ||
| 312 | @so chrome/libui_events_ipc.so | ||
| 313 | @so chrome/libui_gtk_x.so | ||
| 314 | @so chrome/libui_message_center_cpp.so | ||
| 315 | @so chrome/libui_touch_selection.so | ||
| 316 | @so chrome/libukm_recorder.so | ||
| 317 | @so chrome/liburl.so | ||
| 318 | @so chrome/liburl_ipc.so | ||
| 319 | @so chrome/liburl_matcher.so | ||
| 320 | @so chrome/liburl_mojom_traits.so | ||
| 321 | @so chrome/libusb_shared.so | ||
| 322 | @so chrome/libuser_manager.so | ||
| 323 | @so chrome/libuser_prefs.so | ||
| 324 | @so chrome/libv8.so | ||
| 325 | @so chrome/libv8_libbase.so | ||
| 326 | @so chrome/libv8_libplatform.so | ||
| 327 | @so chrome/libvariations_features.so | ||
| 328 | @so chrome/libvideo_capture_mojom_support.so | ||
| 329 | @so chrome/libviews.so | ||
| 330 | @so chrome/libviz_common.so | ||
| 331 | @so chrome/libviz_resource_format_utils.so | ||
| 332 | @so chrome/libviz_vulkan_context_provider.so | ||
| 333 | @so chrome/libvr_base.so | ||
| 334 | @so chrome/libvr_common.so | ||
| 335 | @so chrome/libvr_orientation.so | ||
| 336 | @so chrome/libvr_public_cpp.so | ||
| 337 | @so chrome/libvulkan.so | ||
| 338 | @so chrome/libvulkan_info.so | ||
| 339 | @so chrome/libvulkan_init.so | ||
| 340 | @so chrome/libvulkan_init_skia.so | ||
| 341 | @so chrome/libvulkan_wrapper.so | ||
| 342 | @so chrome/libvulkan_x11.so | ||
| 343 | @so chrome/libvulkan_ycbcr_info.so | ||
| 344 | @so chrome/libweb_bluetooth_mojo_bindings_shared.so | ||
| 345 | @so chrome/libweb_dialogs.so | ||
| 346 | @so chrome/libweb_feature_mojo_bindings_mojom.so | ||
| 347 | @so chrome/libweb_feature_mojo_bindings_mojom_blink.so | ||
| 348 | @so chrome/libweb_feature_mojo_bindings_mojom_shared.so | ||
| 349 | @so chrome/libweb_modal.so | ||
| 350 | @so chrome/libwebdata_common.so | ||
| 351 | @so chrome/libwebgpu.so | ||
| 352 | @so chrome/libwebrtc_component.so | ||
| 353 | @so chrome/libwebview.so | ||
| 354 | @so chrome/libwm.so | ||
| 355 | @so chrome/libwm_public.so | ||
| 356 | @so chrome/libwtf.so | ||
| 357 | @so chrome/libwtf_support.so | ||
| 358 | @so chrome/libx11_events_platform.so | ||
| 359 | @so chrome/libx11_window.so | ||
| 360 | @so chrome/libxprotos.so | ||
diff --git a/www/chromium/pkg/PFRAG.swiftshader b/www/chromium/pkg/PFRAG.swiftshader new file mode 100644 index 0000000..6e1d1c3 --- /dev/null +++ b/www/chromium/pkg/PFRAG.swiftshader | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | @so chrome/libvk_swiftshader.so | ||
| 2 | chrome/swiftshader/ | ||
| 3 | @so chrome/swiftshader/libEGL.so | ||
| 4 | @so chrome/swiftshader/libGLESv2.so | ||
diff --git a/www/chromium/pkg/PLIST b/www/chromium/pkg/PLIST new file mode 100644 index 0000000..ed08e92 --- /dev/null +++ b/www/chromium/pkg/PLIST | |||
| @@ -0,0 +1,170 @@ | |||
| 1 | @pkgpath www/chromium,proprietary | ||
| 2 | bin/chrome | ||
| 3 | @bin bin/chromedriver | ||
| 4 | chrome/ | ||
| 5 | @bin chrome/chrome | ||
| 6 | chrome/chrome_100_percent.pak | ||
| 7 | chrome/chrome_200_percent.pak | ||
| 8 | chrome/headless_lib_data.pak | ||
| 9 | chrome/headless_lib_strings.pak | ||
| 10 | chrome/icudtl.dat | ||
| 11 | @so chrome/libEGL.so | ||
| 12 | @so chrome/libGLESv2.so | ||
| 13 | %%component%% | ||
| 14 | @so chrome/libVkICD_mock_icd.so | ||
| 15 | @so chrome/libvulkan.so | ||
| 16 | chrome/locales/ | ||
| 17 | chrome/locales/am.pak | ||
| 18 | chrome/locales/am.pak.info | ||
| 19 | chrome/locales/ar.pak | ||
| 20 | chrome/locales/ar.pak.info | ||
| 21 | chrome/locales/bg.pak | ||
| 22 | chrome/locales/bg.pak.info | ||
| 23 | chrome/locales/bn.pak | ||
| 24 | chrome/locales/bn.pak.info | ||
| 25 | chrome/locales/ca.pak | ||
| 26 | chrome/locales/ca.pak.info | ||
| 27 | chrome/locales/cs.pak | ||
| 28 | chrome/locales/cs.pak.info | ||
| 29 | chrome/locales/da.pak | ||
| 30 | chrome/locales/da.pak.info | ||
| 31 | chrome/locales/de.pak | ||
| 32 | chrome/locales/de.pak.info | ||
| 33 | chrome/locales/el.pak | ||
| 34 | chrome/locales/el.pak.info | ||
| 35 | chrome/locales/en-GB.pak | ||
| 36 | chrome/locales/en-GB.pak.info | ||
| 37 | chrome/locales/en-US.pak | ||
| 38 | chrome/locales/en-US.pak.info | ||
| 39 | chrome/locales/es-419.pak | ||
| 40 | chrome/locales/es-419.pak.info | ||
| 41 | chrome/locales/es.pak | ||
| 42 | chrome/locales/es.pak.info | ||
| 43 | chrome/locales/et.pak | ||
| 44 | chrome/locales/et.pak.info | ||
| 45 | chrome/locales/fa.pak | ||
| 46 | chrome/locales/fa.pak.info | ||
| 47 | chrome/locales/fi.pak | ||
| 48 | chrome/locales/fi.pak.info | ||
| 49 | chrome/locales/fil.pak | ||
| 50 | chrome/locales/fil.pak.info | ||
| 51 | chrome/locales/fr.pak | ||
| 52 | chrome/locales/fr.pak.info | ||
| 53 | chrome/locales/gu.pak | ||
| 54 | chrome/locales/gu.pak.info | ||
| 55 | chrome/locales/he.pak | ||
| 56 | chrome/locales/he.pak.info | ||
| 57 | chrome/locales/hi.pak | ||
| 58 | chrome/locales/hi.pak.info | ||
| 59 | chrome/locales/hr.pak | ||
| 60 | chrome/locales/hr.pak.info | ||
| 61 | chrome/locales/hu.pak | ||
| 62 | chrome/locales/hu.pak.info | ||
| 63 | chrome/locales/id.pak | ||
| 64 | chrome/locales/id.pak.info | ||
| 65 | chrome/locales/it.pak | ||
| 66 | chrome/locales/it.pak.info | ||
| 67 | chrome/locales/ja.pak | ||
| 68 | chrome/locales/ja.pak.info | ||
| 69 | chrome/locales/kn.pak | ||
| 70 | chrome/locales/kn.pak.info | ||
| 71 | chrome/locales/ko.pak | ||
| 72 | chrome/locales/ko.pak.info | ||
| 73 | chrome/locales/lt.pak | ||
| 74 | chrome/locales/lt.pak.info | ||
| 75 | chrome/locales/lv.pak | ||
| 76 | chrome/locales/lv.pak.info | ||
| 77 | chrome/locales/ml.pak | ||
| 78 | chrome/locales/ml.pak.info | ||
| 79 | chrome/locales/mr.pak | ||
| 80 | chrome/locales/mr.pak.info | ||
| 81 | chrome/locales/ms.pak | ||
| 82 | chrome/locales/ms.pak.info | ||
| 83 | chrome/locales/nb.pak | ||
| 84 | chrome/locales/nb.pak.info | ||
| 85 | chrome/locales/nl.pak | ||
| 86 | chrome/locales/nl.pak.info | ||
| 87 | chrome/locales/pl.pak | ||
| 88 | chrome/locales/pl.pak.info | ||
| 89 | chrome/locales/pt-BR.pak | ||
| 90 | chrome/locales/pt-BR.pak.info | ||
| 91 | chrome/locales/pt-PT.pak | ||
| 92 | chrome/locales/pt-PT.pak.info | ||
| 93 | chrome/locales/ro.pak | ||
| 94 | chrome/locales/ro.pak.info | ||
| 95 | chrome/locales/ru.pak | ||
| 96 | chrome/locales/ru.pak.info | ||
| 97 | chrome/locales/sk.pak | ||
| 98 | chrome/locales/sk.pak.info | ||
| 99 | chrome/locales/sl.pak | ||
| 100 | chrome/locales/sl.pak.info | ||
| 101 | chrome/locales/sr.pak | ||
| 102 | chrome/locales/sr.pak.info | ||
| 103 | chrome/locales/sv.pak | ||
| 104 | chrome/locales/sv.pak.info | ||
| 105 | chrome/locales/sw.pak | ||
| 106 | chrome/locales/sw.pak.info | ||
| 107 | chrome/locales/ta.pak | ||
| 108 | chrome/locales/ta.pak.info | ||
| 109 | chrome/locales/te.pak | ||
| 110 | chrome/locales/te.pak.info | ||
| 111 | chrome/locales/th.pak | ||
| 112 | chrome/locales/th.pak.info | ||
| 113 | chrome/locales/tr.pak | ||
| 114 | chrome/locales/tr.pak.info | ||
| 115 | chrome/locales/uk.pak | ||
| 116 | chrome/locales/uk.pak.info | ||
| 117 | chrome/locales/vi.pak | ||
| 118 | chrome/locales/vi.pak.info | ||
| 119 | chrome/locales/zh-CN.pak | ||
| 120 | chrome/locales/zh-CN.pak.info | ||
| 121 | chrome/locales/zh-TW.pak | ||
| 122 | chrome/locales/zh-TW.pak.info | ||
| 123 | chrome/product_logo_48.png | ||
| 124 | chrome/resources/ | ||
| 125 | chrome/resources.pak | ||
| 126 | chrome/resources/inspector_overlay/ | ||
| 127 | chrome/resources/inspector_overlay/inspector_overlay_resources.grd | ||
| 128 | chrome/resources/inspector_overlay/main.js | ||
| 129 | chrome/snapshot_blob.bin | ||
| 130 | %%swiftshader%% | ||
| 131 | chrome/v8_context_snapshot.bin | ||
| 132 | @man man/man1/chrome.1 | ||
| 133 | share/applications/chromium-browser.desktop | ||
| 134 | share/doc/pkg-readmes/${PKGSTEM} | ||
| 135 | share/examples/chromium/ | ||
| 136 | @sample ${SYSCONFDIR}/chromium/ | ||
| 137 | share/examples/chromium/pledge.main | ||
| 138 | @sample ${SYSCONFDIR}/chromium/pledge.main | ||
| 139 | share/examples/chromium/pledge.utility_audio | ||
| 140 | @sample ${SYSCONFDIR}/chromium/pledge.utility_audio | ||
| 141 | share/examples/chromium/pledge.utility_network | ||
| 142 | @sample ${SYSCONFDIR}/chromium/pledge.utility_network | ||
| 143 | share/examples/chromium/pledge.utility_video | ||
| 144 | @sample ${SYSCONFDIR}/chromium/pledge.utility_video | ||
| 145 | share/examples/chromium/unveil.gpu | ||
| 146 | @sample ${SYSCONFDIR}/chromium/unveil.gpu | ||
| 147 | share/examples/chromium/unveil.main | ||
| 148 | @sample ${SYSCONFDIR}/chromium/unveil.main | ||
| 149 | share/examples/chromium/unveil.plugin | ||
| 150 | @sample ${SYSCONFDIR}/chromium/unveil.plugin | ||
| 151 | share/examples/chromium/unveil.renderer | ||
| 152 | @sample ${SYSCONFDIR}/chromium/unveil.renderer | ||
| 153 | share/examples/chromium/unveil.utility | ||
| 154 | @sample ${SYSCONFDIR}/chromium/unveil.utility | ||
| 155 | share/examples/chromium/unveil.utility_audio | ||
| 156 | @sample ${SYSCONFDIR}/chromium/unveil.utility_audio | ||
| 157 | share/examples/chromium/unveil.utility_network | ||
| 158 | @sample ${SYSCONFDIR}/chromium/unveil.utility_network | ||
| 159 | share/examples/chromium/unveil.utility_video | ||
| 160 | @sample ${SYSCONFDIR}/chromium/unveil.utility_video | ||
| 161 | share/icons/hicolor/128x128/apps/chrome.png | ||
| 162 | share/icons/hicolor/22_monox22_mono/ | ||
| 163 | share/icons/hicolor/22_monox22_mono/apps/ | ||
| 164 | share/icons/hicolor/22_monox22_mono/apps/chrome.png | ||
| 165 | share/icons/hicolor/24x24/apps/chrome.png | ||
| 166 | share/icons/hicolor/256x256/apps/chrome.png | ||
| 167 | share/icons/hicolor/48x48/apps/chrome.png | ||
| 168 | share/icons/hicolor/64x64/apps/chrome.png | ||
| 169 | @tag update-desktop-database | ||
| 170 | @tag gtk-update-icon-cache %D/share/icons/hicolor | ||
diff --git a/www/chromium/pkg/README b/www/chromium/pkg/README new file mode 100644 index 0000000..d543f8f --- /dev/null +++ b/www/chromium/pkg/README | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | +------------------------------------------------------------------------------- | ||
| 2 | | Running ${PKGSTEM} on OpenBSD | ||
| 3 | +------------------------------------------------------------------------------- | ||
| 4 | |||
| 5 | Chromium uses several mitigations on OpenBSD: | ||
| 6 | |||
| 7 | - each category of process uses pledge(2) to limit system call access | ||
| 8 | - each category of process uses unveil(2) to limit filesystem access. | ||
| 9 | |||
| 10 | Occasionally, some extensions may violate some pledge(2) specifications. | ||
| 11 | This will appear in syslog's /var/log/messages as | ||
| 12 | |||
| 13 | chromium[<pid>]: pledge "<name>", syscall <n>. | ||
| 14 | |||
| 15 | along with the more obvious "Oops" in chromium tabs. | ||
| 16 | |||
| 17 | Disabling pledge() or unveil() is not recommended! | ||
| 18 | |||
| 19 | THE FOLLOWING INFORMATION IS FOR DEBUG PURPOSES ONLY | ||
| 20 | |||
| 21 | - global pledge knob: invoke chromium with --no-sandbox | ||
| 22 | - specific pledge for specific processes: | ||
| 23 | ${SYSCONFDIR}/chromium/pledge.* | ||
| 24 | |||
| 25 | - global unveil knob: invoke chromium with --disable-unveil | ||
| 26 | - specific unveil for specific processes: | ||
| 27 | ${SYSCONFDIR}/chromium/unveil.* | ||
| 28 | |||
| 29 | Specific situations | ||
| 30 | ------------------- | ||
| 31 | If you need to access files from alternative locations (for example | ||
| 32 | opening files in /var/www/htdocs directly in chromium), add the paths | ||
| 33 | to ${SYSCONFDIR}/chromium/unveil.main and merge with changes in files in | ||
| 34 | ${PREFIX}/share/examples/chromium/ at update time. | ||
| 35 | |||
| 36 | webgl and 3d and acceleration support: | ||
| 37 | - some DRM supported cards are marked as unsupported by chromium | ||
| 38 | Using --ignore-gpu-blacklist may allow you to test | ||
| 39 | |||
| 40 | Interoperability with base window managers: | ||
| 41 | - some window managers do not have compositing support; for instance, fvwm. | ||
| 42 | In order to have decent graphic rendering, they should be supplemented by | ||
| 43 | a compositing manager. For instance, xcompmgr in base. | ||
