summaryrefslogtreecommitdiffstats
path: root/layout/media/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
commitbabeb5c556de6f9686f5cd47133d0c40c07bfc2e (patch)
tree146dd48634e5d44746acdd49dc142e413349054d /layout/media/moz.build
parent0bb464bfc13e3a0239fd268de265fc332014b385 (diff)
downloadUXP-babeb5c556de6f9686f5cd47133d0c40c07bfc2e.tar
UXP-babeb5c556de6f9686f5cd47133d0c40c07bfc2e.tar.gz
UXP-babeb5c556de6f9686f5cd47133d0c40c07bfc2e.tar.lz
UXP-babeb5c556de6f9686f5cd47133d0c40c07bfc2e.tar.xz
UXP-babeb5c556de6f9686f5cd47133d0c40c07bfc2e.zip
Issue #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 'layout/media/moz.build')
-rw-r--r--layout/media/moz.build17
1 files changed, 12 insertions, 5 deletions
diff --git a/layout/media/moz.build b/layout/media/moz.build
index 8fd0eb9a8..9ea465319 100644
--- a/layout/media/moz.build
+++ b/layout/media/moz.build
@@ -6,16 +6,23 @@
with Files('**'):
BUG_COMPONENT = ('Core', 'Video/Audio')
-# media/webrtc/signaling/test/common.build uses the gkmedias library,
-# expecting at least some of what it contains to be linked, but not libxul,
-# so we need to keep an independent pseudo-library, as well as the OS_LIBS
-# on Windows for them to propagate there.
-Library('gkmedias')
+if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
+ GeckoSharedLibrary('gkmedias', linkage=None)
+ USE_LIBS += [
+ 'nspr',
+ ]
+else:
+ # media/webrtc/signaling/test/common.build uses the gkmedias library,
+ # expecting at least some of what it contains to be linked, but not libxul,
+ # so we need to keep an independent pseudo-library, as well as the OS_LIBS
+ # on Windows for them to propagate there.
+ Library('gkmedias')
if CONFIG['MOZ_WEBRTC']:
DIRS += ['webrtc']
if CONFIG['OS_TARGET'] == 'WINNT':
+ DEFFILE = 'symbols.def'
OS_LIBS += [
'usp10',
'ole32',