bug 1001001 - stop exporting opus_ symbols from libxul r=rilian, ted

opus doesn't seem to provide a define for being built as a static
library, but it allows us to override what it would define OPUS_EXPORT
to be.  So we can just define OPUS_EXPORT to the empty string and then
those symbols will be hidden in libxul just like anything else.
This commit is contained in:
Trevor Saunders 2014-04-24 13:44:48 -04:00
parent cad1735642
commit 8d65cfed89

View File

@ -28,6 +28,11 @@ if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['GNU_AS']:
DEFINES['OPUS_ARM_MAY_HAVE_MEDIA'] = True
DEFINES['OPUS_ARM_MAY_HAVE_NEON'] = True
# We only need to export symbols if we're built into libgkmedias instead of
# libxul which only happens on windows.
if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
DEFINES['OPUS_EXPORT'] = ''
if CONFIG['MOZ_DEBUG']:
DEFINES['ENABLE_ASSERTIONS'] = True