Fix Webarchy WebKit renderer on the 2720 Flip
This commit is contained in:
1 parent
d4f0134e32
commit
77d95c715c
9 files changed
+259
-18
No files matched your search
@@ -1102,6 +1102,30 @@ for f in overlay/rootfs/etc/os-release overlay/rootfs/usr/lib/os-release
|
||||
fi
|
||||
done
|
||||
|
||||
echo "[check] Webarchy WebKit renderer profile..."
|
||||
WEBARCHY_SRC="$BASE_DIR/src/dwm-plugins/webarchy_plugin.cpp"
|
||||
WEBARCHY_SO="$BASE_DIR/prebuilt/sxmo-x11/usr/lib/dwm/plugins/webarchy.so"
|
||||
for token in 'webarchySoftwareRendererPreferred' 'configureWebkitRenderer' \
|
||||
'WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER' 'nokia,beatles'; do
|
||||
if ! grep -qF "$token" "$WEBARCHY_SRC"; then
|
||||
fail "webarchy_plugin.cpp is missing the $token renderer fallback"
|
||||
fi
|
||||
done
|
||||
if grep -qF 'WEBKIT_DISABLE_DMABUF_RENDERER", "0"' "$WEBARCHY_SRC" || \
|
||||
grep -qF 'WEBKIT_DISABLE_COMPOSITING_MODE", "0"' "$WEBARCHY_SRC"; then
|
||||
fail "WebKit presence flags must never be defined as 0"
|
||||
fi
|
||||
if ! strings "$WEBARCHY_SO" 2>/dev/null | grep -qF 'nokia,beatles'; then
|
||||
fail "shipped webarchy.so is stale: rebuild with scripts/build-sxmo-x11.sh"
|
||||
fi
|
||||
if [ ! -x "$BASE_DIR/scripts/test-webarchy-renderer.py" ]; then
|
||||
fail "missing host unit test scripts/test-webarchy-renderer.py"
|
||||
fi
|
||||
if command -v g++ >/dev/null 2>&1 && \
|
||||
! "$BASE_DIR/scripts/test-webarchy-renderer.py" >/dev/null 2>&1; then
|
||||
fail "host webarchy renderer profile test failed"
|
||||
fi
|
||||
|
||||
if [ "$FAILURES" -ne 0 ]; then
|
||||
echo "[check] $FAILURES check(s) failed."
|
||||
exit 1
|
||||
|
||||
Reference in new issue
Block a user