From 0c89b2e69058fc118aa647739ebd2e5660ada1d0 Mon Sep 17 00:00:00 2001 From: Jan Koudijs Date: Tue, 22 Jul 2025 10:58:41 -0600 Subject: [PATCH] Meta: Add offline build for ANGLE flatpak module At the same time, build with gcc instead of bundled clang. Co-Authored-By: Andrew Kaster --- Meta/CMake/flatpak/angle/angle-build.sh | 1 - Meta/CMake/flatpak/angle/angle-checkout.sh | 10 -- Meta/CMake/flatpak/angle/angle-configure.sh | 6 +- Meta/CMake/flatpak/angle/angle-install.sh | 3 - Meta/CMake/flatpak/angle/angle-sources.json | 121 ++++++++++++++++++ Meta/CMake/flatpak/angle/build-arm64.patch | 13 ++ Meta/CMake/flatpak/angle/gclient_args.gni | 5 + Meta/CMake/flatpak/org.ladybird.Ladybird.json | 43 ++++++- 8 files changed, 180 insertions(+), 22 deletions(-) delete mode 100755 Meta/CMake/flatpak/angle/angle-checkout.sh create mode 100644 Meta/CMake/flatpak/angle/angle-sources.json create mode 100644 Meta/CMake/flatpak/angle/build-arm64.patch create mode 100644 Meta/CMake/flatpak/angle/gclient_args.gni diff --git a/Meta/CMake/flatpak/angle/angle-build.sh b/Meta/CMake/flatpak/angle/angle-build.sh index 16f515eb4fc..bfdd021079e 100755 --- a/Meta/CMake/flatpak/angle/angle-build.sh +++ b/Meta/CMake/flatpak/angle/angle-build.sh @@ -2,7 +2,6 @@ set -e -export PATH=$PWD/depot_tools:$PATH cd angle ninja -j"$(nproc)" -C out diff --git a/Meta/CMake/flatpak/angle/angle-checkout.sh b/Meta/CMake/flatpak/angle/angle-checkout.sh deleted file mode 100755 index bfe5b97f325..00000000000 --- a/Meta/CMake/flatpak/angle/angle-checkout.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -set -e - -git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git depot_tools -export PATH=$PWD/depot_tools:$PATH - -gclient config https://chromium.googlesource.com/angle/angle < <(yes) -gclient sync -r chromium/7258 < <(yes) -gclient runhooks < <(yes) diff --git a/Meta/CMake/flatpak/angle/angle-configure.sh b/Meta/CMake/flatpak/angle/angle-configure.sh index 837ccb8fa9f..dd9b6052c5b 100755 --- a/Meta/CMake/flatpak/angle/angle-configure.sh +++ b/Meta/CMake/flatpak/angle/angle-configure.sh @@ -2,14 +2,15 @@ set -e -export PATH=$PWD/depot_tools:$PATH cd angle gn gen out --args=' + is_clang=false is_official_build=true is_component_build=true is_debug=false angle_build_tests=false + angle_enable_abseil=true angle_enable_renderdoc=false angle_enable_swiftshader=false angle_enable_vulkan=true @@ -18,8 +19,11 @@ gn gen out --args=' angle_use_wayland=true angle_use_x11=false build_angle_deqp_tests=false + treat_warnings_as_errors=false use_custom_libcxx=false use_safe_libstdcxx=true + use_siso=false + use_sysroot=false chrome_pgo_phase=0 is_cfi = false ' diff --git a/Meta/CMake/flatpak/angle/angle-install.sh b/Meta/CMake/flatpak/angle/angle-install.sh index f14acdaea86..ade4c549f88 100755 --- a/Meta/CMake/flatpak/angle/angle-install.sh +++ b/Meta/CMake/flatpak/angle/angle-install.sh @@ -2,7 +2,6 @@ set -e -export PATH=$PWD/depot_tools:$PATH cd angle # Headers @@ -41,5 +40,3 @@ cat > "$FLATPAK_DEST/lib/pkgconfig/angle.pc" <