summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Dapena Paz <jdapena@igalia.com>2022-05-20 17:30:53 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2022-05-26 20:59:58 +0000
commit84c446d08eff4b519986946ac89b0f742aab1381 (patch)
tree74aaf680af8dbca01f9b0ae024cbd6498f3cbfbb
parent1c2e41cfd5ab158b82abd6b81733d6b471722d27 (diff)
chromium: do not build with Swiftshader and Dawn.
We want to use the native GL implementation in our targets. So there is no use for Swiftshader, and it increases building time. We also drop Dawn, though that will imply we do not support WebGPU. That should be reenabled later. Bug-AGL: SPEC-4391 Change-Id: I8dddf66d39f58db005f1fbddc0acc4008c8ce3ab Signed-off-by: Jose Dapena Paz <jdapena@igalia.com>
-rw-r--r--recipes-wam/chromium/chromium.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/recipes-wam/chromium/chromium.inc b/recipes-wam/chromium/chromium.inc
index be813604..d9500bcd 100644
--- a/recipes-wam/chromium/chromium.inc
+++ b/recipes-wam/chromium/chromium.inc
@@ -99,6 +99,11 @@ GN_ARGS += "use_thin_lto=false"
# let Yocto handle everything.
GN_ARGS += "use_sysroot=false"
+# Reduce the size of the build by removing swiftshader and dawn.
+# This will effectively block support for WebGPU.
+# TODO(jdapena): reenable WebGPU support
+GN_ARGS += "use_swiftshader=false enable_swiftshader_vulkan=false use_dawn=false"
+
# ARM builds need special additional flags (see ${S}/build/config/arm.gni).
# If we do not pass |arm_arch| and friends to GN, it will deduce a value that
# will then conflict with TUNE_CCARGS and CC.
@@ -216,7 +221,7 @@ install_webruntime() {
# mv ${D}${CBE_DATA_PATH}/neva_locales ${D}${CBE_DATA_LOCALES_PATH}
install -d ${D}${libdir}
- install -d ${D}${libdir}/swiftshader
+ # install -d ${D}${libdir}/swiftshader
install -d ${D}${includedir}/${BPN}
install -d ${D}${CBE_DATA_PATH}
install -d ${D}${CBE_DATA_LOCALES_PATH}
@@ -224,7 +229,7 @@ install_webruntime() {
# Install webos webview files
${S}/depot_tools/ninja ${PARALLEL_MAKE} -C ${OUT_DIR} webos/install/weboswebruntime
- install -v -m 0644 ${OUT_DIR}/swiftshader/*.so ${D}${libdir}/swiftshader
+ # install -v -m 0644 ${OUT_DIR}/swiftshader/*.so ${D}${libdir}/swiftshader
cp -R --no-dereference --preserve=mode,links -v ${OUT_DIR}/image/${includedir}/${BPN}/* ${D}${includedir}/${BPN}/
install -v -m 0644 ${OUT_DIR}/image/${libdir}/*.so ${D}${libdir}
@@ -252,7 +257,6 @@ RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_gpu-libs}"
FILES:${PN} = " \
${libdir}/*.so \
- ${libdir}/swiftshader/*.so \
${CBE_DATA_PATH}/* \
${libdir}/${BPN}/*.so \
"