summaryrefslogtreecommitdiff
path: root/gfx/angle/moz.build
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-01-02 13:35:39 +0000
committerMoonchild <moonchild@palemoon.org>2021-01-02 13:35:39 +0000
commit61a900f292d7df67003f6567495cfc86e3daa797 (patch)
tree146dd48634e5d44746acdd49dc142e413349054d /gfx/angle/moz.build
parentda87b0d49f1a529ae1efca1aa7c1ed7452222cdd (diff)
downloaduxp-61a900f292d7df67003f6567495cfc86e3daa797.tar.gz
Issue mcp-graveyard/UXP#61 - Reinstate buildability with shared gkmedias dll
This fully works for splitting gkmedias.dll back out from xul with one exception which is Skia throwing undefined externals when linking gkmedias.
Diffstat (limited to 'gfx/angle/moz.build')
-rwxr-xr-xgfx/angle/moz.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/gfx/angle/moz.build b/gfx/angle/moz.build
index 1dbfaf2cee..f12eb6ca5a 100755
--- a/gfx/angle/moz.build
+++ b/gfx/angle/moz.build
@@ -172,6 +172,14 @@ EXPORTS.angle.KHR += [ 'include/KHR/khrplatform.h' ]
LOCAL_INCLUDES += [ 'include', 'src', 'src/common/third_party/numerics' ]
+if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
+ NO_VISIBILITY_FLAGS = True
+
+# This tells ANGLE to build the translator with declspec(dllexport) on Windows
+# which we need to get these symbols exported from gkmedias
+DEFINES['COMPONENT_BUILD'] = True
+DEFINES['ANGLE_TRANSLATOR_IMPLEMENTATION'] = True
+
# We allow warnings for third-party code that can be updated from upstream.
ALLOW_COMPILER_WARNINGS = True