summaryrefslogtreecommitdiffstats
path: root/gfx/angle/targets
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /gfx/angle/targets
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/angle/targets')
-rw-r--r--gfx/angle/targets/angle_common/moz.build241
-rw-r--r--gfx/angle/targets/angle_gpu_info_util/moz.build230
-rw-r--r--gfx/angle/targets/angle_image_util/moz.build209
-rw-r--r--gfx/angle/targets/compression_utils_portable/moz.build174
-rw-r--r--gfx/angle/targets/libEGL/moz.build252
-rw-r--r--gfx/angle/targets/libGLESv2/moz.build458
-rw-r--r--gfx/angle/targets/preprocessor/moz.build216
-rw-r--r--gfx/angle/targets/translator/moz.build344
8 files changed, 2124 insertions, 0 deletions
diff --git a/gfx/angle/targets/angle_common/moz.build b/gfx/angle/targets/angle_common/moz.build
new file mode 100644
index 0000000000..0e8bca52af
--- /dev/null
+++ b/gfx/angle/targets/angle_common/moz.build
@@ -0,0 +1,241 @@
+# Generated by update-angle.py
+
+include("../../moz.build.common")
+
+# DEFINES["ANGLE_IS_WIN"] = True
+# DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
+DEFINES["CR_CLANG_REVISION"] = '"llvmorg-13-init-9302-g897d7bce-1"'
+DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
+# DEFINES["NDEBUG"] = True
+DEFINES["NOMINMAX"] = True
+# DEFINES["NTDDI_VERSION"] = "NTDDI_WIN10_VB"
+# DEFINES["NVALGRIND"] = True
+# DEFINES["PSAPI_VERSION"] = "2"
+DEFINES["UNICODE"] = True
+# DEFINES["USE_AURA"] = "1"
+# DEFINES["WIN32"] = True
+# DEFINES["WIN32_LEAN_AND_MEAN"] = True
+# DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
+DEFINES["WINVER"] = "0x0A00"
+DEFINES["_ATL_NO_OPENGL"] = True
+DEFINES["_CRT_RAND_S"] = True
+DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
+DEFINES["_HAS_EXCEPTIONS"] = "0"
+# DEFINES["_HAS_NODISCARD"] = True
+DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
+DEFINES["_SECURE_ATL"] = True
+DEFINES["_UNICODE"] = True
+# DEFINES["_WIN32_WINNT"] = "0x0A00"
+# DEFINES["_WINDOWS"] = True
+# DEFINES["__STD_C"] = True
+
+LOCAL_INCLUDES += [
+ "../../checkout/include/",
+ "../../checkout/out/gen/angle/",
+ "../../checkout/src/",
+ "../../checkout/src/common/third_party/base/",
+]
+
+# CXXFLAGS += [
+# "-D__DATE__=",
+# "-D__TIME__=",
+# "-D__TIMESTAMP__=",
+# "-fcolor-diagnostics",
+# "-fcomplete-member-pointers",
+# "-fcrash-diagnostics-dir=../tools/clang/crashreports",
+# "-fdebug-compilation-dir",
+# "-fmerge-all-constants",
+# "-fmsc-version=1916",
+# "-fno-delete-null-pointer-checks",
+# "-fno-ident",
+# "-ftrivial-auto-var-init=pattern",
+# "-gcodeview-ghash",
+# "-instcombine-lower-dbg-declare=0",
+# "-m64",
+# "-mllvm",
+# "-msse3",
+# "-no-canonical-prefixes",
+# "-Wbad-function-cast",
+# "-Wconditional-uninitialized",
+# "-Wexit-time-destructors",
+# "-Wextra-semi",
+# "-Wextra-semi-stmt",
+# "-Wfloat-conversion",
+# "-Wglobal-constructors",
+# "-Wheader-hygiene",
+# "-Wimplicit-fallthrough",
+# "-Winconsistent-missing-destructor-override",
+# "-Wmax-tokens",
+# "-Wmissing-field-initializers",
+# "-Wnewline-eof",
+# "-Wno-builtin-assume-aligned-alignment",
+# "-Wno-builtin-macro-redefined",
+# "-Wno-c++11-narrowing",
+# "-Wno-deprecated-copy",
+# "-Wno-final-dtor-non-final-class",
+# "-Wno-ignored-pragma-optimize",
+# "-Wno-implicit-int-float-conversion",
+# "-Wno-missing-field-initializers",
+# "-Wno-non-c-typedef-for-linkage",
+# "-Wno-nonportable-include-path",
+# "-Wno-psabi",
+# "-Wno-trigraphs",
+# "-Wno-undefined-var-template",
+# "-Wno-unneeded-internal-declaration",
+# "-Wno-unused-parameter",
+# "-Wnon-virtual-dtor",
+# "-Wparentheses",
+# "-Wrange-loop-analysis",
+# "-Wredundant-parens",
+# "-Wreturn-std-move",
+# "-Wshadow-field",
+# "-Wshorten-64-to-32",
+# "-Wstrict-prototypes",
+# "-Wstring-conversion",
+# "-Wsuggest-destructor-override",
+# "-Wsuggest-override",
+# "-Wtautological-overlap-compare",
+# "-Wtautological-type-limit-compare",
+# "-Wthread-safety",
+# "-Wundefined-reinterpret-cast",
+# "-Wunneeded-internal-declaration",
+# "-Wunreachable-code",
+# "-Wweak-template-vtables",
+# "-Xclang",
+# ".",
+# "/bigobj",
+# "/Brepro",
+# "/D__WRL_ENABLE_FUNCTION_STATICS__",
+# "/FS",
+# "/GR-",
+# "/guard:cf,nochecks",
+# "/Gw",
+# "/Gy",
+# "/MT",
+# "/O1",
+# "/Ob2",
+# "/Oi",
+# "/Oy-",
+# "/TP",
+# "/utf-8",
+# "/W4",
+# "/wd4091",
+# "/wd4100",
+# "/wd4121",
+# "/wd4127",
+# "/wd4200",
+# "/wd4201",
+# "/wd4204",
+# "/wd4221",
+# "/wd4244",
+# "/wd4245",
+# "/wd4251",
+# "/wd4267",
+# "/wd4275",
+# "/wd4305",
+# "/wd4312",
+# "/wd4324",
+# "/wd4351",
+# "/wd4355",
+# "/wd4389",
+# "/wd4456",
+# "/wd4457",
+# "/wd4458",
+# "/wd4459",
+# "/wd4503",
+# "/wd4505",
+# "/wd4510",
+# "/wd4512",
+# "/wd4577",
+# "/wd4589",
+# "/wd4610",
+# "/wd4611",
+# "/wd4661",
+# "/wd4701",
+# "/wd4702",
+# "/wd4703",
+# "/wd4706",
+# "/wd4715",
+# "/wd4838",
+# "/wd4995",
+# "/wd4996",
+# "/we4244",
+# "/we4312",
+# "/we4456",
+# "/we4458",
+# "/we4715",
+# "/we4800",
+# "/we4838",
+# "/WX",
+# "/Z7",
+# "/Zc:inline",
+# "/Zc:sizedDealloc-",
+# "/Zc:twoPhase",
+# ]
+
+SOURCES += [
+ "../../checkout/src/common/aligned_memory.cpp",
+ "../../checkout/src/common/android_util.cpp",
+ "../../checkout/src/common/angleutils.cpp",
+ "../../checkout/src/common/debug.cpp",
+ "../../checkout/src/common/entry_points_enum_autogen.cpp",
+ "../../checkout/src/common/event_tracer.cpp",
+ "../../checkout/src/common/Float16ToFloat32.cpp",
+ "../../checkout/src/common/mathutil.cpp",
+ "../../checkout/src/common/matrix_utils.cpp",
+ "../../checkout/src/common/MemoryBuffer.cpp",
+ "../../checkout/src/common/PackedEGLEnums_autogen.cpp",
+ "../../checkout/src/common/PackedEnums.cpp",
+ "../../checkout/src/common/PackedGLEnums_autogen.cpp",
+ "../../checkout/src/common/PoolAlloc.cpp",
+ "../../checkout/src/common/string_utils.cpp",
+ "../../checkout/src/common/system_utils.cpp",
+ "../../checkout/src/common/third_party/base/anglebase/sha1.cc",
+ "../../checkout/src/common/third_party/smhasher/src/PMurHash.cpp",
+ "../../checkout/src/common/third_party/xxhash/xxhash.c",
+ "../../checkout/src/common/tls.cpp",
+ "../../checkout/src/common/uniform_type_info_autogen.cpp",
+ "../../checkout/src/common/utilities.cpp",
+]
+
+if CONFIG["OS_ARCH"] != "WINNT":
+ SOURCES += [
+ "../../checkout/src/common/system_utils_posix.cpp",
+ ]
+
+if CONFIG["OS_ARCH"] == "Darwin":
+ SOURCES += [
+ "../../checkout/src/common/system_utils_apple.cpp",
+ "../../checkout/src/common/system_utils_mac.cpp",
+ ]
+
+if CONFIG["OS_ARCH"] == "WINNT":
+ SOURCES += [
+ "../../checkout/src/common/system_utils_win.cpp",
+ "../../checkout/src/common/system_utils_win32.cpp",
+ ]
+
+if CONFIG["OS_ARCH"] not in ("Darwin", "WINNT"):
+ SOURCES += [
+ "../../checkout/src/common/system_utils_linux.cpp",
+ ]
+
+# LDFLAGS += [
+# "--color-diagnostics",
+# "/call-graph-profile-sort:no",
+# "/CETCOMPAT",
+# "/DEBUG:GHASH",
+# "/FIXED:NO",
+# "/INCREMENTAL:NO",
+# "/lldignoreenv",
+# "/OPT:ICF",
+# "/OPT:NOLLDTAILMERGE",
+# "/OPT:REF",
+# "/pdbaltpath:%_PDB%",
+# "/PDBSourcePath:C:/dev/angle/out",
+# "/PROFILE",
+# "/TIMESTAMP:1619931600",
+# "/WX",
+# ]
+
+Library("angle_common")
diff --git a/gfx/angle/targets/angle_gpu_info_util/moz.build b/gfx/angle/targets/angle_gpu_info_util/moz.build
new file mode 100644
index 0000000000..91eac5c7b2
--- /dev/null
+++ b/gfx/angle/targets/angle_gpu_info_util/moz.build
@@ -0,0 +1,230 @@
+# Generated by update-angle.py
+
+include("../../moz.build.common")
+
+DEFINES["ANGLE_ENABLE_D3D11"] = True
+DEFINES["ANGLE_ENABLE_D3D11_COMPOSITOR_NATIVE_WINDOW"] = True
+DEFINES["ANGLE_ENABLE_D3D9"] = True
+# DEFINES["ANGLE_HAS_VULKAN_SYSTEM_INFO"] = True
+# DEFINES["ANGLE_IS_WIN"] = True
+# DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
+DEFINES["CR_CLANG_REVISION"] = '"llvmorg-13-init-9302-g897d7bce-1"'
+DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
+# DEFINES["NDEBUG"] = True
+DEFINES["NOMINMAX"] = True
+# DEFINES["NTDDI_VERSION"] = "NTDDI_WIN10_VB"
+# DEFINES["NVALGRIND"] = True
+# DEFINES["PSAPI_VERSION"] = "2"
+DEFINES["UNICODE"] = True
+# DEFINES["USE_AURA"] = "1"
+# DEFINES["VK_USE_PLATFORM_WIN32_KHR"] = True
+# DEFINES["WIN32"] = True
+# DEFINES["WIN32_LEAN_AND_MEAN"] = True
+# DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
+DEFINES["WINVER"] = "0x0A00"
+DEFINES["_ATL_NO_OPENGL"] = True
+DEFINES["_CRT_RAND_S"] = True
+DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
+DEFINES["_HAS_EXCEPTIONS"] = "0"
+# DEFINES["_HAS_NODISCARD"] = True
+DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
+DEFINES["_SECURE_ATL"] = True
+DEFINES["_UNICODE"] = True
+# DEFINES["_WIN32_WINNT"] = "0x0A00"
+# DEFINES["_WINDOWS"] = True
+# DEFINES["__STD_C"] = True
+
+LOCAL_INCLUDES += [
+ "../../checkout/",
+ "../../checkout/include/",
+ "../../checkout/out/gen/",
+ "../../checkout/out/gen/angle/",
+ "../../checkout/src/",
+ "../../checkout/src/common/third_party/base/",
+ "../../checkout/third_party/vulkan-deps/vulkan-headers/src/include/",
+]
+
+# CXXFLAGS += [
+# "-add-plugin",
+# "-D__DATE__=",
+# "-D__TIME__=",
+# "-D__TIMESTAMP__=",
+# "-fcolor-diagnostics",
+# "-fcomplete-member-pointers",
+# "-fcrash-diagnostics-dir=../tools/clang/crashreports",
+# "-fdebug-compilation-dir",
+# "-fmerge-all-constants",
+# "-fmsc-version=1916",
+# "-fno-delete-null-pointer-checks",
+# "-fno-ident",
+# "-ftrivial-auto-var-init=pattern",
+# "-gcodeview-ghash",
+# "-instcombine-lower-dbg-declare=0",
+# "-m64",
+# "-mllvm",
+# "-msse3",
+# "-no-canonical-prefixes",
+# "-plugin-arg-find-bad-constructs",
+# "-Wbad-function-cast",
+# "-Wconditional-uninitialized",
+# "-Wexit-time-destructors",
+# "-Wextra-semi",
+# "-Wextra-semi-stmt",
+# "-Wfloat-conversion",
+# "-Wglobal-constructors",
+# "-Wheader-hygiene",
+# "-Wimplicit-fallthrough",
+# "-Winconsistent-missing-destructor-override",
+# "-Wmax-tokens",
+# "-Wmissing-field-initializers",
+# "-Wnewline-eof",
+# "-Wno-builtin-assume-aligned-alignment",
+# "-Wno-builtin-macro-redefined",
+# "-Wno-c++11-narrowing",
+# "-Wno-deprecated-copy",
+# "-Wno-final-dtor-non-final-class",
+# "-Wno-ignored-pragma-optimize",
+# "-Wno-implicit-int-float-conversion",
+# "-Wno-missing-field-initializers",
+# "-Wno-non-c-typedef-for-linkage",
+# "-Wno-nonportable-include-path",
+# "-Wno-psabi",
+# "-Wno-trigraphs",
+# "-Wno-undefined-var-template",
+# "-Wno-unneeded-internal-declaration",
+# "-Wno-unused-parameter",
+# "-Wnon-virtual-dtor",
+# "-Wparentheses",
+# "-Wrange-loop-analysis",
+# "-Wredundant-parens",
+# "-Wreturn-std-move",
+# "-Wshadow-field",
+# "-Wshorten-64-to-32",
+# "-Wstrict-prototypes",
+# "-Wstring-conversion",
+# "-Wsuggest-destructor-override",
+# "-Wsuggest-override",
+# "-Wtautological-overlap-compare",
+# "-Wtautological-type-limit-compare",
+# "-Wthread-safety",
+# "-Wundefined-reinterpret-cast",
+# "-Wunneeded-internal-declaration",
+# "-Wunreachable-code",
+# "-Wweak-template-vtables",
+# "-Xclang",
+# ".",
+# "/bigobj",
+# "/Brepro",
+# "/D__WRL_ENABLE_FUNCTION_STATICS__",
+# "/FS",
+# "/GR-",
+# "/guard:cf,nochecks",
+# "/Gw",
+# "/Gy",
+# "/MT",
+# "/O1",
+# "/Ob2",
+# "/Oi",
+# "/Oy-",
+# "/TP",
+# "/utf-8",
+# "/W4",
+# "/wd4091",
+# "/wd4100",
+# "/wd4121",
+# "/wd4127",
+# "/wd4200",
+# "/wd4201",
+# "/wd4204",
+# "/wd4221",
+# "/wd4244",
+# "/wd4245",
+# "/wd4251",
+# "/wd4267",
+# "/wd4275",
+# "/wd4305",
+# "/wd4312",
+# "/wd4324",
+# "/wd4351",
+# "/wd4355",
+# "/wd4389",
+# "/wd4456",
+# "/wd4457",
+# "/wd4458",
+# "/wd4459",
+# "/wd4503",
+# "/wd4505",
+# "/wd4510",
+# "/wd4512",
+# "/wd4577",
+# "/wd4589",
+# "/wd4610",
+# "/wd4611",
+# "/wd4661",
+# "/wd4701",
+# "/wd4702",
+# "/wd4703",
+# "/wd4706",
+# "/wd4715",
+# "/wd4838",
+# "/wd4995",
+# "/wd4996",
+# "/we4244",
+# "/we4312",
+# "/we4456",
+# "/we4458",
+# "/we4715",
+# "/we4800",
+# "/we4838",
+# "/WX",
+# "/Z7",
+# "/Zc:inline",
+# "/Zc:sizedDealloc-",
+# "/Zc:twoPhase",
+# "checked-ptr-as-trivial-member",
+# "find-bad-constructs",
+# ]
+
+SOURCES += [
+ "../../checkout/src/gpu_info_util/SystemInfo.cpp",
+ "../../checkout/src/gpu_info_util/SystemInfo_vulkan.cpp",
+]
+
+if CONFIG["OS_ARCH"] == "WINNT":
+ SOURCES += [
+ "../../checkout/src/gpu_info_util/SystemInfo_win.cpp",
+ ]
+
+USE_LIBS += [
+ "angle_common",
+]
+
+DIRS += [
+ "../angle_common",
+]
+
+OS_LIBS += [
+ "dxgi",
+ "setupapi",
+]
+
+# LDFLAGS += [
+# "--color-diagnostics",
+# "/call-graph-profile-sort:no",
+# "/CETCOMPAT",
+# "/DEBUG:GHASH",
+# "/DELAYLOAD:d3d9.dll",
+# "/FIXED:NO",
+# "/INCREMENTAL:NO",
+# "/lldignoreenv",
+# "/OPT:ICF",
+# "/OPT:NOLLDTAILMERGE",
+# "/OPT:REF",
+# "/pdbaltpath:%_PDB%",
+# "/PDBSourcePath:C:/dev/angle/out",
+# "/PROFILE",
+# "/TIMESTAMP:1619931600",
+# "/WX",
+# ]
+
+Library("angle_gpu_info_util")
diff --git a/gfx/angle/targets/angle_image_util/moz.build b/gfx/angle/targets/angle_image_util/moz.build
new file mode 100644
index 0000000000..b565a9b220
--- /dev/null
+++ b/gfx/angle/targets/angle_image_util/moz.build
@@ -0,0 +1,209 @@
+# Generated by update-angle.py
+
+include("../../moz.build.common")
+
+# DEFINES["ANGLE_IS_WIN"] = True
+# DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
+DEFINES["CR_CLANG_REVISION"] = '"llvmorg-13-init-9302-g897d7bce-1"'
+DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
+# DEFINES["NDEBUG"] = True
+DEFINES["NOMINMAX"] = True
+# DEFINES["NTDDI_VERSION"] = "NTDDI_WIN10_VB"
+# DEFINES["NVALGRIND"] = True
+# DEFINES["PSAPI_VERSION"] = "2"
+DEFINES["UNICODE"] = True
+# DEFINES["USE_AURA"] = "1"
+# DEFINES["WIN32"] = True
+# DEFINES["WIN32_LEAN_AND_MEAN"] = True
+# DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
+DEFINES["WINVER"] = "0x0A00"
+DEFINES["_ATL_NO_OPENGL"] = True
+DEFINES["_CRT_RAND_S"] = True
+DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
+DEFINES["_HAS_EXCEPTIONS"] = "0"
+# DEFINES["_HAS_NODISCARD"] = True
+DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
+DEFINES["_SECURE_ATL"] = True
+DEFINES["_UNICODE"] = True
+# DEFINES["_WIN32_WINNT"] = "0x0A00"
+# DEFINES["_WINDOWS"] = True
+# DEFINES["__STD_C"] = True
+
+LOCAL_INCLUDES += [
+ "../../checkout/include/",
+ "../../checkout/out/gen/angle/",
+ "../../checkout/src/",
+ "../../checkout/src/common/third_party/base/",
+]
+
+# CXXFLAGS += [
+# "-D__DATE__=",
+# "-D__TIME__=",
+# "-D__TIMESTAMP__=",
+# "-fcolor-diagnostics",
+# "-fcomplete-member-pointers",
+# "-fcrash-diagnostics-dir=../tools/clang/crashreports",
+# "-fdebug-compilation-dir",
+# "-fmerge-all-constants",
+# "-fmsc-version=1916",
+# "-fno-delete-null-pointer-checks",
+# "-fno-ident",
+# "-ftrivial-auto-var-init=pattern",
+# "-gcodeview-ghash",
+# "-instcombine-lower-dbg-declare=0",
+# "-m64",
+# "-mllvm",
+# "-msse3",
+# "-no-canonical-prefixes",
+# "-Wbad-function-cast",
+# "-Wconditional-uninitialized",
+# "-Wexit-time-destructors",
+# "-Wextra-semi",
+# "-Wextra-semi-stmt",
+# "-Wfloat-conversion",
+# "-Wglobal-constructors",
+# "-Wheader-hygiene",
+# "-Wimplicit-fallthrough",
+# "-Winconsistent-missing-destructor-override",
+# "-Wmax-tokens",
+# "-Wmissing-field-initializers",
+# "-Wnewline-eof",
+# "-Wno-builtin-assume-aligned-alignment",
+# "-Wno-builtin-macro-redefined",
+# "-Wno-c++11-narrowing",
+# "-Wno-deprecated-copy",
+# "-Wno-final-dtor-non-final-class",
+# "-Wno-ignored-pragma-optimize",
+# "-Wno-implicit-int-float-conversion",
+# "-Wno-missing-field-initializers",
+# "-Wno-non-c-typedef-for-linkage",
+# "-Wno-nonportable-include-path",
+# "-Wno-psabi",
+# "-Wno-trigraphs",
+# "-Wno-undefined-var-template",
+# "-Wno-unneeded-internal-declaration",
+# "-Wno-unused-parameter",
+# "-Wnon-virtual-dtor",
+# "-Wparentheses",
+# "-Wrange-loop-analysis",
+# "-Wredundant-parens",
+# "-Wreturn-std-move",
+# "-Wshadow-field",
+# "-Wshorten-64-to-32",
+# "-Wstrict-prototypes",
+# "-Wstring-conversion",
+# "-Wsuggest-destructor-override",
+# "-Wsuggest-override",
+# "-Wtautological-overlap-compare",
+# "-Wtautological-type-limit-compare",
+# "-Wthread-safety",
+# "-Wundefined-reinterpret-cast",
+# "-Wunneeded-internal-declaration",
+# "-Wunreachable-code",
+# "-Wweak-template-vtables",
+# "-Xclang",
+# ".",
+# "/bigobj",
+# "/Brepro",
+# "/D__WRL_ENABLE_FUNCTION_STATICS__",
+# "/FS",
+# "/GR-",
+# "/guard:cf,nochecks",
+# "/Gw",
+# "/Gy",
+# "/MT",
+# "/O1",
+# "/Ob2",
+# "/Oi",
+# "/Oy-",
+# "/TP",
+# "/utf-8",
+# "/W4",
+# "/wd4091",
+# "/wd4100",
+# "/wd4121",
+# "/wd4127",
+# "/wd4200",
+# "/wd4201",
+# "/wd4204",
+# "/wd4221",
+# "/wd4244",
+# "/wd4245",
+# "/wd4251",
+# "/wd4267",
+# "/wd4275",
+# "/wd4305",
+# "/wd4312",
+# "/wd4324",
+# "/wd4351",
+# "/wd4355",
+# "/wd4389",
+# "/wd4456",
+# "/wd4457",
+# "/wd4458",
+# "/wd4459",
+# "/wd4503",
+# "/wd4505",
+# "/wd4510",
+# "/wd4512",
+# "/wd4577",
+# "/wd4589",
+# "/wd4610",
+# "/wd4611",
+# "/wd4661",
+# "/wd4701",
+# "/wd4702",
+# "/wd4703",
+# "/wd4706",
+# "/wd4715",
+# "/wd4838",
+# "/wd4995",
+# "/wd4996",
+# "/we4244",
+# "/we4312",
+# "/we4456",
+# "/we4458",
+# "/we4715",
+# "/we4800",
+# "/we4838",
+# "/WX",
+# "/Z7",
+# "/Zc:inline",
+# "/Zc:sizedDealloc-",
+# "/Zc:twoPhase",
+# ]
+
+SOURCES += [
+ "../../checkout/src/image_util/copyimage.cpp",
+ "../../checkout/src/image_util/imageformats.cpp",
+ "../../checkout/src/image_util/loadimage.cpp",
+ "../../checkout/src/image_util/loadimage_etc.cpp",
+]
+
+USE_LIBS += [
+ "angle_common",
+]
+
+DIRS += [
+ "../angle_common",
+]
+
+# LDFLAGS += [
+# "--color-diagnostics",
+# "/call-graph-profile-sort:no",
+# "/CETCOMPAT",
+# "/DEBUG:GHASH",
+# "/FIXED:NO",
+# "/INCREMENTAL:NO",
+# "/lldignoreenv",
+# "/OPT:ICF",
+# "/OPT:NOLLDTAILMERGE",
+# "/OPT:REF",
+# "/pdbaltpath:%_PDB%",
+# "/PDBSourcePath:C:/dev/angle/out",
+# "/PROFILE",
+# "/TIMESTAMP:1619931600",
+# "/WX",
+# ]
+
+Library("angle_image_util")
diff --git a/gfx/angle/targets/compression_utils_portable/moz.build b/gfx/angle/targets/compression_utils_portable/moz.build
new file mode 100644
index 0000000000..99697f6cc4
--- /dev/null
+++ b/gfx/angle/targets/compression_utils_portable/moz.build
@@ -0,0 +1,174 @@
+# Generated by update-angle.py
+
+include("../../moz.build.common")
+
+# DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
+DEFINES["CR_CLANG_REVISION"] = '"llvmorg-13-init-9302-g897d7bce-1"'
+DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
+# DEFINES["NDEBUG"] = True
+DEFINES["NOMINMAX"] = True
+# DEFINES["NTDDI_VERSION"] = "NTDDI_WIN10_VB"
+# DEFINES["NVALGRIND"] = True
+# DEFINES["PSAPI_VERSION"] = "2"
+DEFINES["UNICODE"] = True
+# DEFINES["USE_AURA"] = "1"
+# DEFINES["WIN32"] = True
+# DEFINES["WIN32_LEAN_AND_MEAN"] = True
+# DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
+DEFINES["WINVER"] = "0x0A00"
+DEFINES["_ATL_NO_OPENGL"] = True
+DEFINES["_CRT_RAND_S"] = True
+DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
+DEFINES["_HAS_EXCEPTIONS"] = "0"
+# DEFINES["_HAS_NODISCARD"] = True
+DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
+DEFINES["_SECURE_ATL"] = True
+DEFINES["_UNICODE"] = True
+# DEFINES["_WIN32_WINNT"] = "0x0A00"
+# DEFINES["_WINDOWS"] = True
+# DEFINES["__STD_C"] = True
+
+LOCAL_INCLUDES += [
+ "../../checkout/",
+ "../../checkout/out/gen/",
+ "../../checkout/third_party/zlib/",
+]
+
+# CXXFLAGS += [
+# "-add-plugin",
+# "-D__DATE__=",
+# "-D__TIME__=",
+# "-D__TIMESTAMP__=",
+# "-fcolor-diagnostics",
+# "-fcomplete-member-pointers",
+# "-fcrash-diagnostics-dir=../tools/clang/crashreports",
+# "-fdebug-compilation-dir",
+# "-fmerge-all-constants",
+# "-fmsc-version=1916",
+# "-fno-delete-null-pointer-checks",
+# "-fno-ident",
+# "-ftrivial-auto-var-init=pattern",
+# "-gcodeview-ghash",
+# "-instcombine-lower-dbg-declare=0",
+# "-m64",
+# "-mllvm",
+# "-msse3",
+# "-no-canonical-prefixes",
+# "-plugin-arg-find-bad-constructs",
+# "-Wextra-semi",
+# "-Wheader-hygiene",
+# "-Wimplicit-fallthrough",
+# "-Wmax-tokens",
+# "-Wno-builtin-assume-aligned-alignment",
+# "-Wno-builtin-macro-redefined",
+# "-Wno-c++11-narrowing",
+# "-Wno-deprecated-copy",
+# "-Wno-final-dtor-non-final-class",
+# "-Wno-ignored-pragma-optimize",
+# "-Wno-implicit-int-float-conversion",
+# "-Wno-missing-field-initializers",
+# "-Wno-non-c-typedef-for-linkage",
+# "-Wno-nonportable-include-path",
+# "-Wno-psabi",
+# "-Wno-trigraphs",
+# "-Wno-undefined-var-template",
+# "-Wno-unneeded-internal-declaration",
+# "-Wno-unused-parameter",
+# "-Wstring-conversion",
+# "-Wtautological-overlap-compare",
+# "-Wthread-safety",
+# "-Wunreachable-code",
+# "-Xclang",
+# ".",
+# "/bigobj",
+# "/Brepro",
+# "/D__WRL_ENABLE_FUNCTION_STATICS__",
+# "/FS",
+# "/GR-",
+# "/guard:cf,nochecks",
+# "/Gw",
+# "/Gy",
+# "/MT",
+# "/O1",
+# "/Ob2",
+# "/Oi",
+# "/Oy-",
+# "/TP",
+# "/utf-8",
+# "/W4",
+# "/wd4091",
+# "/wd4100",
+# "/wd4121",
+# "/wd4127",
+# "/wd4200",
+# "/wd4201",
+# "/wd4204",
+# "/wd4221",
+# "/wd4244",
+# "/wd4245",
+# "/wd4251",
+# "/wd4267",
+# "/wd4275",
+# "/wd4305",
+# "/wd4312",
+# "/wd4324",
+# "/wd4351",
+# "/wd4355",
+# "/wd4389",
+# "/wd4456",
+# "/wd4457",
+# "/wd4458",
+# "/wd4459",
+# "/wd4503",
+# "/wd4505",
+# "/wd4510",
+# "/wd4512",
+# "/wd4577",
+# "/wd4589",
+# "/wd4610",
+# "/wd4611",
+# "/wd4661",
+# "/wd4701",
+# "/wd4702",
+# "/wd4703",
+# "/wd4706",
+# "/wd4715",
+# "/wd4838",
+# "/wd4995",
+# "/wd4996",
+# "/WX",
+# "/Z7",
+# "/Zc:inline",
+# "/Zc:sizedDealloc-",
+# "/Zc:twoPhase",
+# "checked-ptr-as-trivial-member",
+# "find-bad-constructs",
+# ]
+
+SOURCES += [
+ "../../checkout/third_party/zlib/google/compression_utils_portable.cc",
+]
+
+USE_LIBS += [
+ "zlib",
+]
+
+# LDFLAGS += [
+# "--color-diagnostics",
+# "/call-graph-profile-sort:no",
+# "/CETCOMPAT",
+# "/DEBUG:GHASH",
+# "/FIXED:NO",
+# "/INCREMENTAL:NO",
+# "/lldignoreenv",
+# "/OPT:ICF",
+# "/OPT:NOLLDTAILMERGE",
+# "/OPT:REF",
+# "/pdbaltpath:%_PDB%",
+# "/PDBSourcePath:C:/dev/angle/out",
+# "/PROFILE",
+# "/TIMESTAMP:1619931600",
+# "/WX",
+# ]
+
+Library("compression_utils_portable")
diff --git a/gfx/angle/targets/libEGL/moz.build b/gfx/angle/targets/libEGL/moz.build
new file mode 100644
index 0000000000..48b5823990
--- /dev/null
+++ b/gfx/angle/targets/libEGL/moz.build
@@ -0,0 +1,252 @@
+# Generated by update-angle.py
+
+include("../../moz.build.common")
+
+# DEFINES["ANGLE_EGL_LIBRARY_NAME"] = '"libEGL"'
+DEFINES["ANGLE_GLESV2_LIBRARY_NAME"] = '"libGLESv2"'
+# DEFINES["ANGLE_IS_WIN"] = True
+DEFINES["ANGLE_USE_EGL_LOADER"] = True
+# DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
+DEFINES["CR_CLANG_REVISION"] = '"llvmorg-13-init-9302-g897d7bce-1"'
+DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
+DEFINES["EGLAPI"] = ""
+DEFINES["EGL_EGLEXT_PROTOTYPES"] = True
+DEFINES["EGL_EGL_PROTOTYPES"] = "1"
+DEFINES["GL_GLES_PROTOTYPES"] = "1"
+DEFINES["GL_GLEXT_PROTOTYPES"] = True
+DEFINES["LIBEGL_IMPLEMENTATION"] = True
+# DEFINES["NDEBUG"] = True
+DEFINES["NOMINMAX"] = True
+# DEFINES["NTDDI_VERSION"] = "NTDDI_WIN10_VB"
+# DEFINES["NVALGRIND"] = True
+# DEFINES["PSAPI_VERSION"] = "2"
+DEFINES["UNICODE"] = True
+# DEFINES["USE_AURA"] = "1"
+# DEFINES["WIN32"] = True
+# DEFINES["WIN32_LEAN_AND_MEAN"] = True
+# DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
+DEFINES["WINVER"] = "0x0A00"
+DEFINES["_ATL_NO_OPENGL"] = True
+DEFINES["_CRT_RAND_S"] = True
+DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
+DEFINES["_HAS_EXCEPTIONS"] = "0"
+# DEFINES["_HAS_NODISCARD"] = True
+DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
+DEFINES["_SECURE_ATL"] = True
+DEFINES["_UNICODE"] = True
+# DEFINES["_WIN32_WINNT"] = "0x0A00"
+# DEFINES["_WINDOWS"] = True
+# DEFINES["__STD_C"] = True
+
+LOCAL_INCLUDES += [
+ "../../checkout/include/",
+ "../../checkout/out/gen/angle/",
+ "../../checkout/src/",
+ "../../checkout/src/common/third_party/base/",
+]
+
+# CXXFLAGS += [
+# "-D__DATE__=",
+# "-D__TIME__=",
+# "-D__TIMESTAMP__=",
+# "-fcolor-diagnostics",
+# "-fcomplete-member-pointers",
+# "-fcrash-diagnostics-dir=../tools/clang/crashreports",
+# "-fdebug-compilation-dir",
+# "-fmerge-all-constants",
+# "-fmsc-version=1916",
+# "-fno-delete-null-pointer-checks",
+# "-fno-ident",
+# "-ftrivial-auto-var-init=pattern",
+# "-gcodeview-ghash",
+# "-instcombine-lower-dbg-declare=0",
+# "-m64",
+# "-mllvm",
+# "-msse3",
+# "-no-canonical-prefixes",
+# "-Wbad-function-cast",
+# "-Wconditional-uninitialized",
+# "-Wexit-time-destructors",
+# "-Wextra-semi",
+# "-Wextra-semi-stmt",
+# "-Wfloat-conversion",
+# "-Wglobal-constructors",
+# "-Wheader-hygiene",
+# "-Wimplicit-fallthrough",
+# "-Winconsistent-missing-destructor-override",
+# "-Wmax-tokens",
+# "-Wmissing-field-initializers",
+# "-Wnewline-eof",
+# "-Wno-builtin-assume-aligned-alignment",
+# "-Wno-builtin-macro-redefined",
+# "-Wno-c++11-narrowing",
+# "-Wno-deprecated-copy",
+# "-Wno-final-dtor-non-final-class",
+# "-Wno-ignored-pragma-optimize",
+# "-Wno-implicit-int-float-conversion",
+# "-Wno-missing-field-initializers",
+# "-Wno-non-c-typedef-for-linkage",
+# "-Wno-nonportable-include-path",
+# "-Wno-psabi",
+# "-Wno-trigraphs",
+# "-Wno-undefined-var-template",
+# "-Wno-unneeded-internal-declaration",
+# "-Wno-unused-parameter",
+# "-Wnon-virtual-dtor",
+# "-Wparentheses",
+# "-Wrange-loop-analysis",
+# "-Wredundant-parens",
+# "-Wreturn-std-move",
+# "-Wshadow-field",
+# "-Wshorten-64-to-32",
+# "-Wstrict-prototypes",
+# "-Wstring-conversion",
+# "-Wsuggest-destructor-override",
+# "-Wsuggest-override",
+# "-Wtautological-overlap-compare",
+# "-Wtautological-type-limit-compare",
+# "-Wthread-safety",
+# "-Wundefined-reinterpret-cast",
+# "-Wunneeded-internal-declaration",
+# "-Wunreachable-code",
+# "-Wweak-template-vtables",
+# "-Xclang",
+# ".",
+# "/bigobj",
+# "/Brepro",
+# "/D__WRL_ENABLE_FUNCTION_STATICS__",
+# "/FS",
+# "/GR-",
+# "/guard:cf,nochecks",
+# "/Gw",
+# "/Gy",
+# "/MT",
+# "/O1",
+# "/Ob2",
+# "/Oi",
+# "/Oy-",
+# "/TP",
+# "/utf-8",
+# "/W4",
+# "/wd4091",
+# "/wd4100",
+# "/wd4121",
+# "/wd4127",
+# "/wd4200",
+# "/wd4201",
+# "/wd4204",
+# "/wd4221",
+# "/wd4244",
+# "/wd4245",
+# "/wd4251",
+# "/wd4267",
+# "/wd4275",
+# "/wd4305",
+# "/wd4312",
+# "/wd4324",
+# "/wd4351",
+# "/wd4355",
+# "/wd4389",
+# "/wd4456",
+# "/wd4457",
+# "/wd4458",
+# "/wd4459",
+# "/wd4503",
+# "/wd4505",
+# "/wd4510",
+# "/wd4512",
+# "/wd4577",
+# "/wd4589",
+# "/wd4610",
+# "/wd4611",
+# "/wd4661",
+# "/wd4701",
+# "/wd4702",
+# "/wd4703",
+# "/wd4706",
+# "/wd4715",
+# "/wd4838",
+# "/wd4995",
+# "/wd4996",
+# "/we4244",
+# "/we4312",
+# "/we4456",
+# "/we4458",
+# "/we4715",
+# "/we4800",
+# "/we4838",
+# "/WX",
+# "/Z7",
+# "/Zc:inline",
+# "/Zc:sizedDealloc-",
+# "/Zc:twoPhase",
+# ]
+
+SOURCES += [
+ "../../checkout/src/libEGL/egl_loader_autogen.cpp",
+ "../../checkout/src/libEGL/libEGL_autogen.cpp",
+]
+
+USE_LIBS += [
+ "angle_common",
+ "libGLESv2",
+]
+
+DIRS += [
+ "../angle_common",
+ "../libGLESv2",
+]
+
+OS_LIBS += [
+ "advapi32",
+ "comdlg32",
+ "dbghelp",
+ "delayimp",
+ "dnsapi",
+ "gdi32",
+ "kernel32",
+ "msimg32",
+ "odbc32",
+ "odbccp32",
+ "ole32",
+ "oleaut32",
+ "shell32",
+ "shlwapi",
+ "user32",
+ "usp10",
+ "uuid",
+ "version",
+ "wininet",
+ "winmm",
+ "winspool",
+ "ws2_32",
+]
+
+# LDFLAGS += [
+# "--color-diagnostics",
+# "/call-graph-profile-sort:no",
+# "/CETCOMPAT",
+# "/DEBUG:GHASH",
+# "/DYNAMICBASE",
+# "/FIXED:NO",
+# "/guard:cf",
+# "/ignore:4199",
+# "/ignore:4221",
+# "/INCREMENTAL:NO",
+# "/lldignoreenv",
+# "/MACHINE:X64",
+# "/NXCOMPAT",
+# "/OPT:ICF",
+# "/OPT:NOLLDTAILMERGE",
+# "/OPT:REF",
+# "/pdbaltpath:%_PDB%",
+# "/PDBSourcePath:C:/dev/angle/out",
+# "/PROFILE",
+# "/SUBSYSTEM:CONSOLE,5.02",
+# "/TIMESTAMP:1619931600",
+# "/WX",
+# ]
+
+DEFFILE = "../../checkout/src/libEGL/libEGL_autogen.def"
+RCFILE = "../../checkout/src/libEGL/libEGL.rc"
+GeckoSharedLibrary("libEGL", linkage=None)
diff --git a/gfx/angle/targets/libGLESv2/moz.build b/gfx/angle/targets/libGLESv2/moz.build
new file mode 100644
index 0000000000..85a9a131a7
--- /dev/null
+++ b/gfx/angle/targets/libGLESv2/moz.build
@@ -0,0 +1,458 @@
+# Generated by update-angle.py
+
+include("../../moz.build.common")
+
+DEFINES["ANGLE_CAPTURE_ENABLED"] = "0"
+DEFINES["ANGLE_ENABLE_D3D11"] = True
+DEFINES["ANGLE_ENABLE_D3D11_COMPOSITOR_NATIVE_WINDOW"] = True
+DEFINES["ANGLE_ENABLE_D3D9"] = True
+# DEFINES["ANGLE_IS_WIN"] = True
+# DEFINES["ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES"] = "{ "d3dcompiler_47.dll", "d3dcompiler_46.dll", "d3dcompiler_43.dll" }"
+# DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
+DEFINES["CR_CLANG_REVISION"] = '"llvmorg-13-init-9302-g897d7bce-1"'
+DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
+DEFINES["EGL_EGLEXT_PROTOTYPES"] = True
+DEFINES["EGL_EGL_PROTOTYPES"] = "1"
+DEFINES["GL_API"] = ""
+DEFINES["GL_APICALL"] = ""
+DEFINES["GL_GLES_PROTOTYPES"] = "1"
+DEFINES["GL_GLEXT_PROTOTYPES"] = True
+DEFINES["LIBANGLE_IMPLEMENTATION"] = True
+DEFINES["LIBGLESV2_IMPLEMENTATION"] = True
+# DEFINES["NDEBUG"] = True
+DEFINES["NOMINMAX"] = True
+# DEFINES["NTDDI_VERSION"] = "NTDDI_WIN10_VB"
+# DEFINES["NVALGRIND"] = True
+# DEFINES["PSAPI_VERSION"] = "2"
+DEFINES["UNICODE"] = True
+# DEFINES["USE_AURA"] = "1"
+# DEFINES["WIN32"] = True
+# DEFINES["WIN32_LEAN_AND_MEAN"] = True
+# DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
+DEFINES["WINVER"] = "0x0A00"
+DEFINES["_ATL_NO_OPENGL"] = True
+DEFINES["_CRT_RAND_S"] = True
+DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
+DEFINES["_HAS_EXCEPTIONS"] = "0"
+# DEFINES["_HAS_NODISCARD"] = True
+DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
+DEFINES["_SECURE_ATL"] = True
+DEFINES["_UNICODE"] = True
+# DEFINES["_WIN32_WINNT"] = "0x0A00"
+# DEFINES["_WINDOWS"] = True
+# DEFINES["__STD_C"] = True
+
+LOCAL_INCLUDES += [
+ "../../checkout/include/",
+ "../../checkout/out/gen/angle/",
+ "../../checkout/src/",
+ "../../checkout/src/common/third_party/base/",
+ "../../checkout/third_party/zlib/",
+ "../../checkout/third_party/zlib/google/",
+]
+
+# CXXFLAGS += [
+# "-add-plugin",
+# "-D__DATE__=",
+# "-D__TIME__=",
+# "-D__TIMESTAMP__=",
+# "-fcolor-diagnostics",
+# "-fcomplete-member-pointers",
+# "-fcrash-diagnostics-dir=../tools/clang/crashreports",
+# "-fdebug-compilation-dir",
+# "-fmerge-all-constants",
+# "-fmsc-version=1916",
+# "-fno-delete-null-pointer-checks",
+# "-fno-ident",
+# "-ftrivial-auto-var-init=pattern",
+# "-gcodeview-ghash",
+# "-instcombine-lower-dbg-declare=0",
+# "-m64",
+# "-mllvm",
+# "-msse3",
+# "-no-canonical-prefixes",
+# "-plugin-arg-find-bad-constructs",
+# "-Wbad-function-cast",
+# "-Wconditional-uninitialized",
+# "-Wexit-time-destructors",
+# "-Wextra-semi",
+# "-Wextra-semi-stmt",
+# "-Wfloat-conversion",
+# "-Wglobal-constructors",
+# "-Wheader-hygiene",
+# "-Wimplicit-fallthrough",
+# "-Winconsistent-missing-destructor-override",
+# "-Wmax-tokens",
+# "-Wmissing-field-initializers",
+# "-Wnewline-eof",
+# "-Wno-builtin-assume-aligned-alignment",
+# "-Wno-builtin-macro-redefined",
+# "-Wno-c++11-narrowing",
+# "-Wno-deprecated-copy",
+# "-Wno-final-dtor-non-final-class",
+# "-Wno-ignored-pragma-optimize",
+# "-Wno-implicit-int-float-conversion",
+# "-Wno-missing-field-initializers",
+# "-Wno-non-c-typedef-for-linkage",
+# "-Wno-nonportable-include-path",
+# "-Wno-psabi",
+# "-Wno-trigraphs",
+# "-Wno-undefined-var-template",
+# "-Wno-unneeded-internal-declaration",
+# "-Wno-unused-parameter",
+# "-Wnon-virtual-dtor",
+# "-Wparentheses",
+# "-Wrange-loop-analysis",
+# "-Wredundant-parens",
+# "-Wreturn-std-move",
+# "-Wshadow-field",
+# "-Wshorten-64-to-32",
+# "-Wstrict-prototypes",
+# "-Wstring-conversion",
+# "-Wsuggest-destructor-override",
+# "-Wsuggest-override",
+# "-Wtautological-overlap-compare",
+# "-Wtautological-type-limit-compare",
+# "-Wthread-safety",
+# "-Wundefined-reinterpret-cast",
+# "-Wunneeded-internal-declaration",
+# "-Wunreachable-code",
+# "-Wweak-template-vtables",
+# "-Xclang",
+# ".",
+# "/bigobj",
+# "/Brepro",
+# "/D__WRL_ENABLE_FUNCTION_STATICS__",
+# "/FS",
+# "/GR-",
+# "/guard:cf,nochecks",
+# "/Gw",
+# "/Gy",
+# "/MT",
+# "/O1",
+# "/Ob2",
+# "/Oi",
+# "/Oy-",
+# "/TP",
+# "/utf-8",
+# "/W4",
+# "/wd4091",
+# "/wd4100",
+# "/wd4121",
+# "/wd4127",
+# "/wd4200",
+# "/wd4201",
+# "/wd4204",
+# "/wd4221",
+# "/wd4244",
+# "/wd4245",
+# "/wd4251",
+# "/wd4267",
+# "/wd4275",
+# "/wd4305",
+# "/wd4312",
+# "/wd4324",
+# "/wd4351",
+# "/wd4355",
+# "/wd4389",
+# "/wd4456",
+# "/wd4457",
+# "/wd4458",
+# "/wd4459",
+# "/wd4503",
+# "/wd4505",
+# "/wd4510",
+# "/wd4512",
+# "/wd4530",
+# "/wd4577",
+# "/wd4589",
+# "/wd4610",
+# "/wd4611",
+# "/wd4661",
+# "/wd4701",
+# "/wd4702",
+# "/wd4703",
+# "/wd4706",
+# "/wd4715",
+# "/wd4838",
+# "/wd4995",
+# "/wd4996",
+# "/we4244",
+# "/we4312",
+# "/we4456",
+# "/we4458",
+# "/we4715",
+# "/we4800",
+# "/we4838",
+# "/WX",
+# "/Z7",
+# "/Zc:inline",
+# "/Zc:sizedDealloc-",
+# "/Zc:twoPhase",
+# "checked-ptr-as-trivial-member",
+# "find-bad-constructs",
+# ]
+
+SOURCES += [
+ "../../checkout/src/libANGLE/angletypes.cpp",
+ "../../checkout/src/libANGLE/AttributeMap.cpp",
+ "../../checkout/src/libANGLE/BlobCache.cpp",
+ "../../checkout/src/libANGLE/Buffer.cpp",
+ "../../checkout/src/libANGLE/Caps.cpp",
+ "../../checkout/src/libANGLE/capture/frame_capture_utils_mock.cpp",
+ "../../checkout/src/libANGLE/capture/FrameCapture_mock.cpp",
+ "../../checkout/src/libANGLE/Compiler.cpp",
+ "../../checkout/src/libANGLE/Config.cpp",
+ "../../checkout/src/libANGLE/Context.cpp",
+ "../../checkout/src/libANGLE/Context_gl.cpp",
+ "../../checkout/src/libANGLE/Context_gles_1_0.cpp",
+ "../../checkout/src/libANGLE/Debug.cpp",
+ "../../checkout/src/libANGLE/Device.cpp",
+ "../../checkout/src/libANGLE/Display.cpp",
+ "../../checkout/src/libANGLE/EGLSync.cpp",
+ "../../checkout/src/libANGLE/Error.cpp",
+ "../../checkout/src/libANGLE/es3_copy_conversion_table_autogen.cpp",
+ "../../checkout/src/libANGLE/Fence.cpp",
+ "../../checkout/src/libANGLE/format_map_autogen.cpp",
+ "../../checkout/src/libANGLE/format_map_desktop.cpp",
+ "../../checkout/src/libANGLE/formatutils.cpp",
+ "../../checkout/src/libANGLE/Framebuffer.cpp",
+ "../../checkout/src/libANGLE/FramebufferAttachment.cpp",
+ "../../checkout/src/libANGLE/GLES1Renderer.cpp",
+ "../../checkout/src/libANGLE/GLES1State.cpp",
+ "../../checkout/src/libANGLE/HandleAllocator.cpp",
+ "../../checkout/src/libANGLE/Image.cpp",
+ "../../checkout/src/libANGLE/ImageIndex.cpp",
+ "../../checkout/src/libANGLE/IndexRangeCache.cpp",
+ "../../checkout/src/libANGLE/LoggingAnnotator.cpp",
+ "../../checkout/src/libANGLE/MemoryObject.cpp",
+ "../../checkout/src/libANGLE/MemoryProgramCache.cpp",
+ "../../checkout/src/libANGLE/Observer.cpp",
+ "../../checkout/src/libANGLE/Overlay.cpp",
+ "../../checkout/src/libANGLE/Overlay_autogen.cpp",
+ "../../checkout/src/libANGLE/Overlay_font_autogen.cpp",
+ "../../checkout/src/libANGLE/OverlayWidgets.cpp",
+ "../../checkout/src/libANGLE/Platform.cpp",
+ "../../checkout/src/libANGLE/Program.cpp",
+ "../../checkout/src/libANGLE/ProgramExecutable.cpp",
+ "../../checkout/src/libANGLE/ProgramLinkedResources.cpp",
+ "../../checkout/src/libANGLE/ProgramPipeline.cpp",
+ "../../checkout/src/libANGLE/Query.cpp",
+ "../../checkout/src/libANGLE/queryconversions.cpp",
+ "../../checkout/src/libANGLE/queryutils.cpp",
+ "../../checkout/src/libANGLE/Renderbuffer.cpp",
+ "../../checkout/src/libANGLE/renderer/BufferImpl.cpp",
+ "../../checkout/src/libANGLE/renderer/ContextImpl.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/BufferD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/CompilerD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/Blit11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/Buffer11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/Clear11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/Context11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/converged/CompositorNativeWindow11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/DebugAnnotator11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/ExternalImageSiblingImpl11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/Fence11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/formatutils11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/Framebuffer11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/Image11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/IndexBuffer11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/InputLayoutCache.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/MappedSubresourceVerifier11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/PixelTransfer11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/Program11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/ProgramPipeline11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/Query11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/renderer11_utils.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/RenderStateCache.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/RenderTarget11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/ResourceManager11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/ShaderExecutable11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/StateManager11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/StreamProducerD3DTexture.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/SwapChain11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/texture_format_table.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/texture_format_table_autogen.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/TextureStorage11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/TransformFeedback11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/Trim11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/VertexArray11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/VertexBuffer11.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d11/win32/NativeWindow11Win32.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/Blit9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/Buffer9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/Context9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/DebugAnnotator9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/Fence9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/formatutils9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/Framebuffer9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/Image9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/IndexBuffer9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/NativeWindow9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/Query9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/Renderer9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/renderer9_utils.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/RenderTarget9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/ShaderExecutable9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/StateManager9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/SwapChain9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/TextureStorage9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/VertexBuffer9.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/d3d9/VertexDeclarationCache.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/DeviceD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/DisplayD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/driver_utils_d3d.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/DynamicHLSL.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/DynamicImage2DHLSL.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/EGLImageD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/FramebufferD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/HLSLCompiler.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/ImageD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/IndexBuffer.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/IndexDataManager.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/NativeWindowD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/ProgramD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/RenderbufferD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/RendererD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/RenderTargetD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/ShaderD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/ShaderExecutableD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/SurfaceD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/SwapChainD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/TextureD3D.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/VertexBuffer.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d/VertexDataManager.cpp",
+ "../../checkout/src/libANGLE/renderer/d3d_format.cpp",
+ "../../checkout/src/libANGLE/renderer/DeviceImpl.cpp",
+ "../../checkout/src/libANGLE/renderer/DisplayImpl.cpp",
+ "../../checkout/src/libANGLE/renderer/driver_utils.cpp",
+ "../../checkout/src/libANGLE/renderer/dxgi_format_map_autogen.cpp",
+ "../../checkout/src/libANGLE/renderer/dxgi_support_table_autogen.cpp",
+ "../../checkout/src/libANGLE/renderer/EGLReusableSync.cpp",
+ "../../checkout/src/libANGLE/renderer/EGLSyncImpl.cpp",
+ "../../checkout/src/libANGLE/renderer/Format_table_autogen.cpp",
+ "../../checkout/src/libANGLE/renderer/load_functions_table_autogen.cpp",
+ "../../checkout/src/libANGLE/renderer/ProgramPipelineImpl.cpp",
+ "../../checkout/src/libANGLE/renderer/QueryImpl.cpp",
+ "../../checkout/src/libANGLE/renderer/renderer_utils.cpp",
+ "../../checkout/src/libANGLE/renderer/ShaderImpl.cpp",
+ "../../checkout/src/libANGLE/renderer/SurfaceImpl.cpp",
+ "../../checkout/src/libANGLE/renderer/TextureImpl.cpp",
+ "../../checkout/src/libANGLE/ResourceManager.cpp",
+ "../../checkout/src/libANGLE/Sampler.cpp",
+ "../../checkout/src/libANGLE/Semaphore.cpp",
+ "../../checkout/src/libANGLE/Shader.cpp",
+ "../../checkout/src/libANGLE/State.cpp",
+ "../../checkout/src/libANGLE/Stream.cpp",
+ "../../checkout/src/libANGLE/Surface.cpp",
+ "../../checkout/src/libANGLE/Texture.cpp",
+ "../../checkout/src/libANGLE/Thread.cpp",
+ "../../checkout/src/libANGLE/TransformFeedback.cpp",
+ "../../checkout/src/libANGLE/Uniform.cpp",
+ "../../checkout/src/libANGLE/validationEGL.cpp",
+ "../../checkout/src/libANGLE/validationES.cpp",
+ "../../checkout/src/libANGLE/validationES1.cpp",
+ "../../checkout/src/libANGLE/validationES2.cpp",
+ "../../checkout/src/libANGLE/validationES3.cpp",
+ "../../checkout/src/libANGLE/validationES31.cpp",
+ "../../checkout/src/libANGLE/validationES32.cpp",
+ "../../checkout/src/libANGLE/validationESEXT.cpp",
+ "../../checkout/src/libANGLE/validationGL1.cpp",
+ "../../checkout/src/libANGLE/validationGL2.cpp",
+ "../../checkout/src/libANGLE/validationGL3.cpp",
+ "../../checkout/src/libANGLE/validationGL4.cpp",
+ "../../checkout/src/libANGLE/VaryingPacking.cpp",
+ "../../checkout/src/libANGLE/VertexArray.cpp",
+ "../../checkout/src/libANGLE/VertexAttribute.cpp",
+ "../../checkout/src/libANGLE/WorkerThread.cpp",
+ "../../checkout/src/libGLESv2/egl_ext_stubs.cpp",
+ "../../checkout/src/libGLESv2/egl_stubs.cpp",
+ "../../checkout/src/libGLESv2/entry_points_egl_autogen.cpp",
+ "../../checkout/src/libGLESv2/entry_points_egl_ext_autogen.cpp",
+ "../../checkout/src/libGLESv2/entry_points_gles_1_0_autogen.cpp",
+ "../../checkout/src/libGLESv2/entry_points_gles_2_0_autogen.cpp",
+ "../../checkout/src/libGLESv2/entry_points_gles_3_0_autogen.cpp",
+ "../../checkout/src/libGLESv2/entry_points_gles_3_1_autogen.cpp",
+ "../../checkout/src/libGLESv2/entry_points_gles_3_2_autogen.cpp",
+ "../../checkout/src/libGLESv2/entry_points_gles_ext_autogen.cpp",
+ "../../checkout/src/libGLESv2/global_state.cpp",
+ "../../checkout/src/libGLESv2/libGLESv2_autogen.cpp",
+ "../../checkout/src/libGLESv2/proc_table_egl_autogen.cpp",
+ "../../checkout/src/third_party/systeminfo/SystemInfo.cpp",
+]
+
+USE_LIBS += [
+ "angle_common",
+ "angle_gpu_info_util",
+ "angle_image_util",
+ "compression_utils_portable",
+ "translator",
+]
+
+DIRS += [
+ "../angle_common",
+ "../angle_gpu_info_util",
+ "../angle_image_util",
+ "../compression_utils_portable",
+ "../translator",
+]
+
+OS_LIBS += [
+ "advapi32",
+ "comdlg32",
+ "d3d9",
+ "dbghelp",
+ "delayimp",
+ "dnsapi",
+ "dxgi",
+ "dxguid",
+ "gdi32",
+ "kernel32",
+ "msimg32",
+ "odbc32",
+ "odbccp32",
+ "ole32",
+ "oleaut32",
+ "setupapi",
+ "shell32",
+ "shlwapi",
+ "user32",
+ "usp10",
+ "uuid",
+ "version",
+ "wininet",
+ "winmm",
+ "winspool",
+ "ws2_32",
+]
+
+# LDFLAGS += [
+# "--color-diagnostics",
+# "/call-graph-profile-sort:no",
+# "/CETCOMPAT",
+# "/DEBUG:GHASH",
+# "/DELAYLOAD:d3d9.dll",
+# "/DYNAMICBASE",
+# "/FIXED:NO",
+# "/guard:cf",
+# "/ignore:4199",
+# "/ignore:4221",
+# "/INCREMENTAL:NO",
+# "/lldignoreenv",
+# "/MACHINE:X64",
+# "/NXCOMPAT",
+# "/OPT:ICF",
+# "/OPT:NOLLDTAILMERGE",
+# "/OPT:REF",
+# "/pdbaltpath:%_PDB%",
+# "/PDBSourcePath:C:/dev/angle/out",
+# "/PROFILE",
+# "/SUBSYSTEM:CONSOLE,5.02",
+# "/TIMESTAMP:1619931600",
+# "/WX",
+# ]
+
+DEFFILE = "../../checkout/src/libGLESv2/libGLESv2_autogen.def"
+RCFILE = "../../checkout/src/libGLESv2/libGLESv2.rc"
+GeckoSharedLibrary("libGLESv2", linkage=None)
diff --git a/gfx/angle/targets/preprocessor/moz.build b/gfx/angle/targets/preprocessor/moz.build
new file mode 100644
index 0000000000..c14a46c582
--- /dev/null
+++ b/gfx/angle/targets/preprocessor/moz.build
@@ -0,0 +1,216 @@
+# Generated by update-angle.py
+
+include("../../moz.build.common")
+
+# DEFINES["ANGLE_IS_WIN"] = True
+# DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
+DEFINES["CR_CLANG_REVISION"] = '"llvmorg-13-init-9302-g897d7bce-1"'
+DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
+# DEFINES["NDEBUG"] = True
+DEFINES["NOMINMAX"] = True
+# DEFINES["NTDDI_VERSION"] = "NTDDI_WIN10_VB"
+# DEFINES["NVALGRIND"] = True
+# DEFINES["PSAPI_VERSION"] = "2"
+DEFINES["UNICODE"] = True
+# DEFINES["USE_AURA"] = "1"
+# DEFINES["WIN32"] = True
+# DEFINES["WIN32_LEAN_AND_MEAN"] = True
+# DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
+DEFINES["WINVER"] = "0x0A00"
+DEFINES["_ATL_NO_OPENGL"] = True
+DEFINES["_CRT_RAND_S"] = True
+DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
+DEFINES["_HAS_EXCEPTIONS"] = "0"
+# DEFINES["_HAS_NODISCARD"] = True
+DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
+DEFINES["_SECURE_ATL"] = True
+DEFINES["_UNICODE"] = True
+# DEFINES["_WIN32_WINNT"] = "0x0A00"
+# DEFINES["_WINDOWS"] = True
+# DEFINES["__STD_C"] = True
+
+LOCAL_INCLUDES += [
+ "../../checkout/include/",
+ "../../checkout/out/gen/angle/",
+ "../../checkout/src/",
+ "../../checkout/src/common/third_party/base/",
+]
+
+# CXXFLAGS += [
+# "-D__DATE__=",
+# "-D__TIME__=",
+# "-D__TIMESTAMP__=",
+# "-fcolor-diagnostics",
+# "-fcomplete-member-pointers",
+# "-fcrash-diagnostics-dir=../tools/clang/crashreports",
+# "-fdebug-compilation-dir",
+# "-fmerge-all-constants",
+# "-fmsc-version=1916",
+# "-fno-delete-null-pointer-checks",
+# "-fno-ident",
+# "-ftrivial-auto-var-init=pattern",
+# "-gcodeview-ghash",
+# "-instcombine-lower-dbg-declare=0",
+# "-m64",
+# "-mllvm",
+# "-msse3",
+# "-no-canonical-prefixes",
+# "-Wbad-function-cast",
+# "-Wconditional-uninitialized",
+# "-Wexit-time-destructors",
+# "-Wextra-semi",
+# "-Wextra-semi-stmt",
+# "-Wfloat-conversion",
+# "-Wglobal-constructors",
+# "-Wheader-hygiene",
+# "-Wimplicit-fallthrough",
+# "-Winconsistent-missing-destructor-override",
+# "-Wmax-tokens",
+# "-Wmissing-field-initializers",
+# "-Wnewline-eof",
+# "-Wno-builtin-assume-aligned-alignment",
+# "-Wno-builtin-macro-redefined",
+# "-Wno-c++11-narrowing",
+# "-Wno-deprecated-copy",
+# "-Wno-final-dtor-non-final-class",
+# "-Wno-ignored-pragma-optimize",
+# "-Wno-implicit-int-float-conversion",
+# "-Wno-missing-field-initializers",
+# "-Wno-non-c-typedef-for-linkage",
+# "-Wno-nonportable-include-path",
+# "-Wno-psabi",
+# "-Wno-trigraphs",
+# "-Wno-undefined-var-template",
+# "-Wno-unneeded-internal-declaration",
+# "-Wno-unused-parameter",
+# "-Wnon-virtual-dtor",
+# "-Wparentheses",
+# "-Wrange-loop-analysis",
+# "-Wredundant-parens",
+# "-Wreturn-std-move",
+# "-Wshadow-field",
+# "-Wshorten-64-to-32",
+# "-Wstrict-prototypes",
+# "-Wstring-conversion",
+# "-Wsuggest-destructor-override",
+# "-Wsuggest-override",
+# "-Wtautological-overlap-compare",
+# "-Wtautological-type-limit-compare",
+# "-Wthread-safety",
+# "-Wundefined-reinterpret-cast",
+# "-Wunneeded-internal-declaration",
+# "-Wunreachable-code",
+# "-Wweak-template-vtables",
+# "-Xclang",
+# ".",
+# "/bigobj",
+# "/Brepro",
+# "/D__WRL_ENABLE_FUNCTION_STATICS__",
+# "/FS",
+# "/GR-",
+# "/guard:cf,nochecks",
+# "/Gw",
+# "/Gy",
+# "/MT",
+# "/O1",
+# "/Ob2",
+# "/Oi",
+# "/Oy-",
+# "/TP",
+# "/utf-8",
+# "/W4",
+# "/wd4091",
+# "/wd4100",
+# "/wd4121",
+# "/wd4127",
+# "/wd4200",
+# "/wd4201",
+# "/wd4204",
+# "/wd4221",
+# "/wd4244",
+# "/wd4245",
+# "/wd4251",
+# "/wd4267",
+# "/wd4275",
+# "/wd4305",
+# "/wd4312",
+# "/wd4324",
+# "/wd4351",
+# "/wd4355",
+# "/wd4389",
+# "/wd4456",
+# "/wd4457",
+# "/wd4458",
+# "/wd4459",
+# "/wd4503",
+# "/wd4505",
+# "/wd4510",
+# "/wd4512",
+# "/wd4577",
+# "/wd4589",
+# "/wd4610",
+# "/wd4611",
+# "/wd4661",
+# "/wd4701",
+# "/wd4702",
+# "/wd4703",
+# "/wd4706",
+# "/wd4715",
+# "/wd4838",
+# "/wd4995",
+# "/wd4996",
+# "/we4244",
+# "/we4312",
+# "/we4456",
+# "/we4458",
+# "/we4715",
+# "/we4800",
+# "/we4838",
+# "/WX",
+# "/Z7",
+# "/Zc:inline",
+# "/Zc:sizedDealloc-",
+# "/Zc:twoPhase",
+# ]
+
+SOURCES += [
+ "../../checkout/src/compiler/preprocessor/DiagnosticsBase.cpp",
+ "../../checkout/src/compiler/preprocessor/DirectiveHandlerBase.cpp",
+ "../../checkout/src/compiler/preprocessor/DirectiveParser.cpp",
+ "../../checkout/src/compiler/preprocessor/Input.cpp",
+ "../../checkout/src/compiler/preprocessor/Lexer.cpp",
+ "../../checkout/src/compiler/preprocessor/Macro.cpp",
+ "../../checkout/src/compiler/preprocessor/MacroExpander.cpp",
+ "../../checkout/src/compiler/preprocessor/Preprocessor.cpp",
+ "../../checkout/src/compiler/preprocessor/preprocessor_lex_autogen.cpp",
+ "../../checkout/src/compiler/preprocessor/preprocessor_tab_autogen.cpp",
+ "../../checkout/src/compiler/preprocessor/Token.cpp",
+]
+
+USE_LIBS += [
+ "angle_common",
+]
+
+DIRS += [
+ "../angle_common",
+]
+
+# LDFLAGS += [
+# "--color-diagnostics",
+# "/call-graph-profile-sort:no",
+# "/CETCOMPAT",
+# "/DEBUG:GHASH",
+# "/FIXED:NO",
+# "/INCREMENTAL:NO",
+# "/lldignoreenv",
+# "/OPT:ICF",
+# "/OPT:NOLLDTAILMERGE",
+# "/OPT:REF",
+# "/pdbaltpath:%_PDB%",
+# "/PDBSourcePath:C:/dev/angle/out",
+# "/PROFILE",
+# "/TIMESTAMP:1619931600",
+# "/WX",
+# ]
+
+Library("preprocessor")
diff --git a/gfx/angle/targets/translator/moz.build b/gfx/angle/targets/translator/moz.build
new file mode 100644
index 0000000000..9d6897e672
--- /dev/null
+++ b/gfx/angle/targets/translator/moz.build
@@ -0,0 +1,344 @@
+# Generated by update-angle.py
+
+include("../../moz.build.common")
+
+DEFINES["ANGLE_ENABLE_ESSL"] = True
+DEFINES["ANGLE_ENABLE_GLSL"] = True
+DEFINES["ANGLE_ENABLE_HLSL"] = True
+# DEFINES["ANGLE_IS_WIN"] = True
+# DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
+DEFINES["CR_CLANG_REVISION"] = '"llvmorg-13-init-9302-g897d7bce-1"'
+DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
+# DEFINES["NDEBUG"] = True
+DEFINES["NOMINMAX"] = True
+# DEFINES["NTDDI_VERSION"] = "NTDDI_WIN10_VB"
+# DEFINES["NVALGRIND"] = True
+# DEFINES["PSAPI_VERSION"] = "2"
+DEFINES["UNICODE"] = True
+# DEFINES["USE_AURA"] = "1"
+# DEFINES["WIN32"] = True
+# DEFINES["WIN32_LEAN_AND_MEAN"] = True
+# DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
+DEFINES["WINVER"] = "0x0A00"
+DEFINES["_ATL_NO_OPENGL"] = True
+DEFINES["_CRT_RAND_S"] = True
+DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
+DEFINES["_HAS_EXCEPTIONS"] = "0"
+# DEFINES["_HAS_NODISCARD"] = True
+DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
+DEFINES["_SECURE_ATL"] = True
+DEFINES["_UNICODE"] = True
+# DEFINES["_WIN32_WINNT"] = "0x0A00"
+# DEFINES["_WINDOWS"] = True
+# DEFINES["__STD_C"] = True
+
+LOCAL_INCLUDES += [
+ "../../checkout/include/",
+ "../../checkout/out/gen/angle/",
+ "../../checkout/src/",
+ "../../checkout/src/common/third_party/base/",
+]
+
+# CXXFLAGS += [
+# "-D__DATE__=",
+# "-D__TIME__=",
+# "-D__TIMESTAMP__=",
+# "-fcolor-diagnostics",
+# "-fcomplete-member-pointers",
+# "-fcrash-diagnostics-dir=../tools/clang/crashreports",
+# "-fdebug-compilation-dir",
+# "-fmerge-all-constants",
+# "-fmsc-version=1916",
+# "-fno-delete-null-pointer-checks",
+# "-fno-ident",
+# "-ftrivial-auto-var-init=pattern",
+# "-gcodeview-ghash",
+# "-instcombine-lower-dbg-declare=0",
+# "-m64",
+# "-mllvm",
+# "-msse3",
+# "-no-canonical-prefixes",
+# "-Wbad-function-cast",
+# "-Wconditional-uninitialized",
+# "-Wexit-time-destructors",
+# "-Wextra-semi",
+# "-Wextra-semi-stmt",
+# "-Wfloat-conversion",
+# "-Wglobal-constructors",
+# "-Wheader-hygiene",
+# "-Wimplicit-fallthrough",
+# "-Winconsistent-missing-destructor-override",
+# "-Wmax-tokens",
+# "-Wmissing-field-initializers",
+# "-Wnewline-eof",
+# "-Wno-builtin-assume-aligned-alignment",
+# "-Wno-builtin-macro-redefined",
+# "-Wno-c++11-narrowing",
+# "-Wno-deprecated-copy",
+# "-Wno-final-dtor-non-final-class",
+# "-Wno-ignored-pragma-optimize",
+# "-Wno-implicit-int-float-conversion",
+# "-Wno-missing-field-initializers",
+# "-Wno-non-c-typedef-for-linkage",
+# "-Wno-nonportable-include-path",
+# "-Wno-psabi",
+# "-Wno-trigraphs",
+# "-Wno-undefined-var-template",
+# "-Wno-unneeded-internal-declaration",
+# "-Wno-unused-parameter",
+# "-Wnon-virtual-dtor",
+# "-Wparentheses",
+# "-Wrange-loop-analysis",
+# "-Wredundant-parens",
+# "-Wreturn-std-move",
+# "-Wshadow-field",
+# "-Wshorten-64-to-32",
+# "-Wstrict-prototypes",
+# "-Wstring-conversion",
+# "-Wsuggest-destructor-override",
+# "-Wsuggest-override",
+# "-Wtautological-overlap-compare",
+# "-Wtautological-type-limit-compare",
+# "-Wthread-safety",
+# "-Wundefined-reinterpret-cast",
+# "-Wunneeded-internal-declaration",
+# "-Wunreachable-code",
+# "-Wweak-template-vtables",
+# "-Xclang",
+# ".",
+# "/bigobj",
+# "/Brepro",
+# "/D__WRL_ENABLE_FUNCTION_STATICS__",
+# "/FS",
+# "/GR-",
+# "/guard:cf,nochecks",
+# "/Gw",
+# "/Gy",
+# "/MT",
+# "/O1",
+# "/Ob2",
+# "/Oi",
+# "/Oy-",
+# "/TP",
+# "/utf-8",
+# "/W4",
+# "/wd4091",
+# "/wd4100",
+# "/wd4121",
+# "/wd4127",
+# "/wd4200",
+# "/wd4201",
+# "/wd4204",
+# "/wd4221",
+# "/wd4244",
+# "/wd4245",
+# "/wd4251",
+# "/wd4267",
+# "/wd4275",
+# "/wd4305",
+# "/wd4312",
+# "/wd4324",
+# "/wd4351",
+# "/wd4355",
+# "/wd4389",
+# "/wd4456",
+# "/wd4457",
+# "/wd4458",
+# "/wd4459",
+# "/wd4503",
+# "/wd4505",
+# "/wd4510",
+# "/wd4512",
+# "/wd4577",
+# "/wd4589",
+# "/wd4610",
+# "/wd4611",
+# "/wd4661",
+# "/wd4701",
+# "/wd4702",
+# "/wd4703",
+# "/wd4706",
+# "/wd4715",
+# "/wd4718",
+# "/wd4838",
+# "/wd4995",
+# "/wd4996",
+# "/we4244",
+# "/we4312",
+# "/we4456",
+# "/we4458",
+# "/we4715",
+# "/we4800",
+# "/we4838",
+# "/WX",
+# "/Z7",
+# "/Zc:inline",
+# "/Zc:sizedDealloc-",
+# "/Zc:twoPhase",
+# ]
+
+SOURCES += [
+ "../../checkout/src/compiler/translator/ASTMetadataHLSL.cpp",
+ "../../checkout/src/compiler/translator/AtomicCounterFunctionHLSL.cpp",
+ "../../checkout/src/compiler/translator/blocklayout.cpp",
+ "../../checkout/src/compiler/translator/blocklayoutHLSL.cpp",
+ "../../checkout/src/compiler/translator/BuiltInFunctionEmulator.cpp",
+ "../../checkout/src/compiler/translator/BuiltInFunctionEmulatorGLSL.cpp",
+ "../../checkout/src/compiler/translator/BuiltInFunctionEmulatorHLSL.cpp",
+ "../../checkout/src/compiler/translator/BuiltinsWorkaroundGLSL.cpp",
+ "../../checkout/src/compiler/translator/CallDAG.cpp",
+ "../../checkout/src/compiler/translator/CodeGen.cpp",
+ "../../checkout/src/compiler/translator/CollectVariables.cpp",
+ "../../checkout/src/compiler/translator/Compiler.cpp",
+ "../../checkout/src/compiler/translator/ConstantUnion.cpp",
+ "../../checkout/src/compiler/translator/Declarator.cpp",
+ "../../checkout/src/compiler/translator/Diagnostics.cpp",
+ "../../checkout/src/compiler/translator/DirectiveHandler.cpp",
+ "../../checkout/src/compiler/translator/emulated_builtin_functions_hlsl_autogen.cpp",
+ "../../checkout/src/compiler/translator/ExtensionBehavior.cpp",
+ "../../checkout/src/compiler/translator/ExtensionGLSL.cpp",
+ "../../checkout/src/compiler/translator/FlagStd140Structs.cpp",
+ "../../checkout/src/compiler/translator/FunctionLookup.cpp",
+ "../../checkout/src/compiler/translator/glslang_lex_autogen.cpp",
+ "../../checkout/src/compiler/translator/glslang_tab_autogen.cpp",
+ "../../checkout/src/compiler/translator/HashNames.cpp",
+ "../../checkout/src/compiler/translator/ImageFunctionHLSL.cpp",
+ "../../checkout/src/compiler/translator/ImmutableString_autogen.cpp",
+ "../../checkout/src/compiler/translator/ImmutableString_ESSL_autogen.cpp",
+ "../../checkout/src/compiler/translator/ImmutableStringBuilder.cpp",
+ "../../checkout/src/compiler/translator/InfoSink.cpp",
+ "../../checkout/src/compiler/translator/Initialize.cpp",
+ "../../checkout/src/compiler/translator/InitializeDll.cpp",
+ "../../checkout/src/compiler/translator/IntermNode.cpp",
+ "../../checkout/src/compiler/translator/IsASTDepthBelowLimit.cpp",
+ "../../checkout/src/compiler/translator/Operator.cpp",
+ "../../checkout/src/compiler/translator/OutputESSL.cpp",
+ "../../checkout/src/compiler/translator/OutputGLSL.cpp",
+ "../../checkout/src/compiler/translator/OutputGLSLBase.cpp",
+ "../../checkout/src/compiler/translator/OutputHLSL.cpp",
+ "../../checkout/src/compiler/translator/OutputTree.cpp",
+ "../../checkout/src/compiler/translator/ParseContext.cpp",
+ "../../checkout/src/compiler/translator/PoolAlloc.cpp",
+ "../../checkout/src/compiler/translator/QualifierTypes.cpp",
+ "../../checkout/src/compiler/translator/ResourcesHLSL.cpp",
+ "../../checkout/src/compiler/translator/ShaderLang.cpp",
+ "../../checkout/src/compiler/translator/ShaderStorageBlockFunctionHLSL.cpp",
+ "../../checkout/src/compiler/translator/ShaderStorageBlockOutputHLSL.cpp",
+ "../../checkout/src/compiler/translator/ShaderVars.cpp",
+ "../../checkout/src/compiler/translator/StructureHLSL.cpp",
+ "../../checkout/src/compiler/translator/Symbol.cpp",
+ "../../checkout/src/compiler/translator/SymbolTable.cpp",
+ "../../checkout/src/compiler/translator/SymbolTable_autogen.cpp",
+ "../../checkout/src/compiler/translator/SymbolTable_ESSL_autogen.cpp",
+ "../../checkout/src/compiler/translator/SymbolUniqueId.cpp",
+ "../../checkout/src/compiler/translator/TextureFunctionHLSL.cpp",
+ "../../checkout/src/compiler/translator/TranslatorESSL.cpp",
+ "../../checkout/src/compiler/translator/TranslatorGLSL.cpp",
+ "../../checkout/src/compiler/translator/TranslatorHLSL.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/ClampPointSize.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/AddDefaultReturnStatements.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/ArrayReturnValueToOutParameter.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/BreakVariableAliasingInInnerLoops.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/ExpandIntegerPowExpressions.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/RecordUniformBlocksWithLargeArrayMember.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/RemoveSwitchFallThrough.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/RewriteAtomicFunctionExpressions.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/RewriteElseBlocks.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/RewriteExpressionsWithShaderStorageBlock.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/RewriteUnaryMinusOperatorInt.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/SeparateArrayConstructorStatements.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/SeparateArrayInitialization.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/SeparateExpressionsReturningArrays.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/UnfoldShortCircuitToIf.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/d3d/WrapSwitchStatementsInBlocks.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/DeclareAndInitBuiltinsForInstancedMultiview.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/DeferGlobalInitializers.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/EmulateGLFragColorBroadcast.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/EmulateMultiDrawShaderBuiltins.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/EmulatePrecision.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/FoldExpressions.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/ForcePrecisionQualifier.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/gl/ClampFragDepth.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/gl/mac/AddAndTrueToLoopCondition.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/gl/mac/RewriteDoWhile.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/gl/mac/RewriteRowMajorMatrices.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/gl/mac/RewriteUnaryMinusOperatorFloat.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/gl/mac/UnfoldShortCircuitAST.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/gl/RecordConstantPrecision.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/gl/RegenerateStructNames.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/gl/RewriteRepeatedAssignToSwizzled.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/gl/UseInterfaceBlockFields.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/gl/VectorizeVectorScalarArithmetic.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/InitializeVariables.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/PruneEmptyCases.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/PruneNoOps.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/RemoveArrayLengthMethod.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/RemoveDynamicIndexing.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/RemoveInvariantDeclaration.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/RemoveUnreferencedVariables.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/RewriteTexelFetchOffset.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/ScalarizeVecAndMatConstructorArgs.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/SeparateDeclarations.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/SimplifyLoopConditions.cpp",
+ "../../checkout/src/compiler/translator/tree_ops/SplitSequenceOperator.cpp",
+ "../../checkout/src/compiler/translator/tree_util/DriverUniform.cpp",
+ "../../checkout/src/compiler/translator/tree_util/FindFunction.cpp",
+ "../../checkout/src/compiler/translator/tree_util/FindMain.cpp",
+ "../../checkout/src/compiler/translator/tree_util/FindSymbolNode.cpp",
+ "../../checkout/src/compiler/translator/tree_util/IntermNode_util.cpp",
+ "../../checkout/src/compiler/translator/tree_util/IntermNodePatternMatcher.cpp",
+ "../../checkout/src/compiler/translator/tree_util/IntermTraverse.cpp",
+ "../../checkout/src/compiler/translator/tree_util/ReplaceArrayOfMatrixVarying.cpp",
+ "../../checkout/src/compiler/translator/tree_util/ReplaceClipCullDistanceVariable.cpp",
+ "../../checkout/src/compiler/translator/tree_util/ReplaceShadowingVariables.cpp",
+ "../../checkout/src/compiler/translator/tree_util/ReplaceVariable.cpp",
+ "../../checkout/src/compiler/translator/tree_util/RewriteSampleMaskVariable.cpp",
+ "../../checkout/src/compiler/translator/tree_util/RunAtTheBeginningOfShader.cpp",
+ "../../checkout/src/compiler/translator/tree_util/RunAtTheEndOfShader.cpp",
+ "../../checkout/src/compiler/translator/tree_util/SpecializationConstant.cpp",
+ "../../checkout/src/compiler/translator/Types.cpp",
+ "../../checkout/src/compiler/translator/util.cpp",
+ "../../checkout/src/compiler/translator/UtilsHLSL.cpp",
+ "../../checkout/src/compiler/translator/ValidateAST.cpp",
+ "../../checkout/src/compiler/translator/ValidateBarrierFunctionCall.cpp",
+ "../../checkout/src/compiler/translator/ValidateClipCullDistance.cpp",
+ "../../checkout/src/compiler/translator/ValidateGlobalInitializer.cpp",
+ "../../checkout/src/compiler/translator/ValidateLimitations.cpp",
+ "../../checkout/src/compiler/translator/ValidateMaxParameters.cpp",
+ "../../checkout/src/compiler/translator/ValidateOutputs.cpp",
+ "../../checkout/src/compiler/translator/ValidateSwitch.cpp",
+ "../../checkout/src/compiler/translator/ValidateVaryingLocations.cpp",
+ "../../checkout/src/compiler/translator/VariablePacker.cpp",
+ "../../checkout/src/compiler/translator/VersionGLSL.cpp",
+ "../../checkout/src/third_party/compiler/ArrayBoundsClamper.cpp",
+]
+
+USE_LIBS += [
+ "angle_common",
+ "preprocessor",
+]
+
+DIRS += [
+ "../angle_common",
+ "../preprocessor",
+]
+
+# LDFLAGS += [
+# "--color-diagnostics",
+# "/call-graph-profile-sort:no",
+# "/CETCOMPAT",
+# "/DEBUG:GHASH",
+# "/FIXED:NO",
+# "/INCREMENTAL:NO",
+# "/lldignoreenv",
+# "/OPT:ICF",
+# "/OPT:NOLLDTAILMERGE",
+# "/OPT:REF",
+# "/pdbaltpath:%_PDB%",
+# "/PDBSourcePath:C:/dev/angle/out",
+# "/PROFILE",
+# "/TIMESTAMP:1619931600",
+# "/WX",
+# ]
+
+Library("translator")