From 61a900f292d7df67003f6567495cfc86e3daa797 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sat, 2 Jan 2021 13:35:39 +0000 Subject: 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. --- gfx/angle/moz.build | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gfx/angle/moz.build') 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 -- cgit v1.2.3