Skip to content

Commit

Permalink
Bug 1880746 - Part 2: Simplify angle moz.build DIRS dependencies. r=f…
Browse files Browse the repository at this point in the history
…irefox-build-system-reviewers,jgilbert,glandium

Differential Revision: https://phabricator.services.mozilla.com/D202206
  • Loading branch information
arai-a committed Feb 27, 2024
1 parent 26e1dc4 commit e36924c
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 22 deletions.
5 changes: 4 additions & 1 deletion gfx/angle/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIRS += ["targets/translator"]
DIRS += [
"targets/angle_common",
"targets/translator",
]

# Only build libEGL/libGLESv2 on Windows
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
Expand Down
4 changes: 0 additions & 4 deletions gfx/angle/targets/angle_gpu_info_util/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,6 @@ USE_LIBS += [
"angle_common",
]

DIRS += [
"../angle_common",
]

OS_LIBS += [
"dxgi",
"setupapi",
Expand Down
4 changes: 0 additions & 4 deletions gfx/angle/targets/angle_image_util/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ USE_LIBS += [
"angle_common",
]

DIRS += [
"../angle_common",
]

# LDFLAGS += [
# "--color-diagnostics",
# "/call-graph-profile-sort:no",
Expand Down
5 changes: 0 additions & 5 deletions gfx/angle/targets/libEGL/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,6 @@ USE_LIBS += [
"libGLESv2",
]

DIRS += [
"../angle_common",
"../libGLESv2",
]

OS_LIBS += [
"advapi32",
"comdlg32",
Expand Down
2 changes: 0 additions & 2 deletions gfx/angle/targets/libGLESv2/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,9 @@ USE_LIBS += [
]

DIRS += [
"../angle_common",
"../angle_gpu_info_util",
"../angle_image_util",
"../compression_utils_portable",
"../translator",
]

OS_LIBS += [
Expand Down
4 changes: 0 additions & 4 deletions gfx/angle/targets/preprocessor/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,6 @@ USE_LIBS += [
"angle_common",
]

DIRS += [
"../angle_common",
]

# LDFLAGS += [
# "--color-diagnostics",
# "/call-graph-profile-sort:no",
Expand Down
1 change: 0 additions & 1 deletion gfx/angle/targets/translator/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ USE_LIBS += [
]

DIRS += [
"../angle_common",
"../preprocessor",
]

Expand Down
12 changes: 11 additions & 1 deletion gfx/angle/update-angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,18 @@ def comment(x):
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)

Expand Down

0 comments on commit e36924c

Please sign in to comment.