summaryrefslogtreecommitdiffstats
path: root/gfx/angle/moz.build
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gfx/angle/moz.build16
-rw-r--r--gfx/angle/moz.build.common13
2 files changed, 29 insertions, 0 deletions
diff --git a/gfx/angle/moz.build b/gfx/angle/moz.build
new file mode 100644
index 0000000000..08c5b40380
--- /dev/null
+++ b/gfx/angle/moz.build
@@ -0,0 +1,16 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# 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"]
+
+# Only build libEGL/libGLESv2 on Windows
+if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
+ DIRS += ["targets/libEGL", "targets/libGLESv2"]
+
+if CONFIG["MOZ_ANGLE_RENDERER"] and CONFIG["MOZ_D3DCOMPILER_VISTA_DLL_PATH"]:
+ FINAL_TARGET_FILES += [
+ "%" + CONFIG["MOZ_D3DCOMPILER_VISTA_DLL_PATH"],
+ ]
diff --git a/gfx/angle/moz.build.common b/gfx/angle/moz.build.common
new file mode 100644
index 0000000000..fa906ac78a
--- /dev/null
+++ b/gfx/angle/moz.build.common
@@ -0,0 +1,13 @@
+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',
+ ]
+
+if CONFIG['INTEL_ARCHITECTURE']:
+ CXXFLAGS += CONFIG['SSE2_FLAGS']
+DEFINES['__NDK_FPABI__'] = ''
+DEFINES['ANGLE_SKIP_DXGI_1_2_CHECK'] = True
+DEFINES['ANGLE_ENABLE_KEYEDMUTEX'] = True