summaryrefslogtreecommitdiffstats
path: root/gfx/angle/update-angle.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /gfx/angle/update-angle.py
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-adbda400be353e676059e335c3c0aaf99e719475.tar.xz
firefox-adbda400be353e676059e335c3c0aaf99e719475.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/angle/update-angle.py')
-rwxr-xr-xgfx/angle/update-angle.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/gfx/angle/update-angle.py b/gfx/angle/update-angle.py
index 348a1cf745..99d65f84f6 100755
--- a/gfx/angle/update-angle.py
+++ b/gfx/angle/update-angle.py
@@ -5,7 +5,7 @@
assert __name__ == "__main__"
-"""
+r"""
To update ANGLE in Gecko, use Windows with git-bash, and setup depot_tools, python2, and
python3. Because depot_tools expects `python` to be `python2` (shame!), python2 must come
before python3 in your path.
@@ -502,8 +502,18 @@ def export_target(target_full_name) -> Set[str]:
dep_dirs = set(dep_libs)
dep_dirs.discard("zlib")
+ # Those directories are added by gfx/angle/moz.build.
+ already_added_dirs = [
+ "angle_common",
+ "translator",
+ "libEGL",
+ "libGLESv2",
+ ]
+
append_arr(lines, "USE_LIBS", dep_libs)
- append_arr(lines, "DIRS", ["../" + x for x in dep_dirs])
+ append_arr(
+ lines, "DIRS", ["../" + x for x in dep_dirs if x not in already_added_dirs]
+ )
append_arr(lines, "OS_LIBS", os_libs)
append_arr_commented(lines, "LDFLAGS", ldflags)