summaryrefslogtreecommitdiffstats
path: root/gfx/angle/moz.build.common
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /gfx/angle/moz.build.common
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/angle/moz.build.common')
-rw-r--r--gfx/angle/moz.build.common34
1 files changed, 34 insertions, 0 deletions
diff --git a/gfx/angle/moz.build.common b/gfx/angle/moz.build.common
new file mode 100644
index 0000000000..f9f46e8305
--- /dev/null
+++ b/gfx/angle/moz.build.common
@@ -0,0 +1,34 @@
+AllowCompilerWarnings()
+
+if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'):
+ CXXFLAGS += [
+ '-Wno-final-dtor-non-final-class',
+ '-Wno-implicit-const-int-float-conversion',
+ '-Wno-range-loop-construct',
+ ]
+
+CXXFLAGS += CONFIG['MOZ_X11_CFLAGS']
+
+if CONFIG['INTEL_ARCHITECTURE']:
+ CXXFLAGS += CONFIG['SSE2_FLAGS']
+
+if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
+ DEFINES['ANGLE_IS_WIN'] = True
+
+ # ANGLE wants NTDDI_WIN10_VB, but:
+ # > /builds/worker/checkouts/gecko/vs2017_15.9.6/SDK/include/10.0.17134.0/winrt/wrl/def.h(48,2):
+ # > #error WRL requires NTDDI_VERSION to be #defined at least to NTDDI_VISTA or greater
+ DEFINES['NTDDI_VERSION'] = 'NTDDI_WIN10_RS2'
+
+ if CONFIG['INTEL_ARCHITECTURE']:
+ DEFINES['X86_WINDOWS'] = True
+else:
+ DEFINES['ANGLE_PLATFORM_EXPORT'] = ''
+
+DEFINES['__NDK_FPABI__'] = ''
+DEFINES['ANGLE_SKIP_DXGI_1_2_CHECK'] = True
+DEFINES['ANGLE_ENABLE_KEYEDMUTEX'] = True
+DEFINES['ANGLE_TRANSLATOR_ESSL_ONLY'] = True
+
+if CONFIG["MOZ_WAYLAND"]:
+ CXXFLAGS += [ "-DWL_EGL_PLATFORM" ]