summaryrefslogtreecommitdiff
path: root/gfx/ots/src/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
commit2f8ad85ecfe966b10f029e79d45aa8bb4381962c (patch)
tree146dd48634e5d44746acdd49dc142e413349054d /gfx/ots/src/moz.build
parent90c9ed3ed3c38a427fe5971d071aa4f844f4c248 (diff)
downloadaura-central-2f8ad85ecfe966b10f029e79d45aa8bb4381962c.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/ots/src/moz.build')
-rw-r--r--gfx/ots/src/moz.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/gfx/ots/src/moz.build b/gfx/ots/src/moz.build
index 150773db9..909a2092e 100644
--- a/gfx/ots/src/moz.build
+++ b/gfx/ots/src/moz.build
@@ -56,6 +56,9 @@ SOURCES += [
'vvar.cc',
]
+if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
+ NO_VISIBILITY_FLAGS = True
+
# We allow warnings for third-party code that can be updated from upstream.
ALLOW_COMPILER_WARNINGS = True
@@ -66,6 +69,10 @@ DEFINES['PACKAGE_BUGREPORT'] = '"http://bugzilla.mozilla.org/"'
DEFINES['OTS_GRAPHITE'] = 1
DEFINES['OTS_VARIATIONS'] = 1
+if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
+ DEFINES['OTS_DLL'] = True
+ DEFINES['OTS_DLL_EXPORTS'] = True
+
USE_LIBS += [
'brotli',
'woff2',