summaryrefslogtreecommitdiffstats
path: root/media/libav/libavcommon.mozbuild
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /media/libav/libavcommon.mozbuild
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/libav/libavcommon.mozbuild')
-rw-r--r--media/libav/libavcommon.mozbuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/media/libav/libavcommon.mozbuild b/media/libav/libavcommon.mozbuild
new file mode 100644
index 000000000..e3a2a1176
--- /dev/null
+++ b/media/libav/libavcommon.mozbuild
@@ -0,0 +1,51 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Add assembler flags and includes
+if CONFIG['LIBAV_FFT_ASFLAGS']:
+ ASFLAGS += CONFIG['LIBAV_FFT_ASFLAGS']
+ ASFLAGS += ['-I%s/media/libav' % TOPSRCDIR]
+ USE_YASM = True
+
+if CONFIG['OS_ARCH'] == 'WINNT':
+ # Fix inline symbols and math defines for windows.
+ DEFINES['_USE_MATH_DEFINES'] = True
+ DEFINES['inline'] = "__inline"
+ ASFLAGS += ['-Pconfig_win.asm']
+ # 32-bit windows need to prefix symbols with an underscore.
+ if CONFIG['CPU_ARCH'] == 'x86':
+ ASFLAGS += ['-DPREFIX']
+elif CONFIG['OS_ARCH'] == 'Darwin':
+ # 32/64-bit macosx assemblers need to prefix symbols with an underscore.
+ ASFLAGS += ['-Pconfig_darwin.asm', '-DPREFIX']
+else:
+ # Default to unix, similar to how ASFLAGS setup works in configure.in
+ ASFLAGS += ['-Pconfig_unix.asm']
+
+LOCAL_INCLUDES += ['/media/libav']
+
+# Suppress warnings in third-party code.
+if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
+ CFLAGS += [
+ '-Wno-parentheses',
+ '-Wno-pointer-sign',
+ '-Wno-sign-compare',
+ '-Wno-switch',
+ '-Wno-type-limits',
+ ]
+if CONFIG['CLANG_CXX'] or CONFIG['CLANG_CL']:
+ CFLAGS += [
+ '-Wno-incompatible-pointer-types-discards-qualifiers',
+ '-Wno-logical-op-parentheses',
+ ]
+if CONFIG['_MSC_VER'] and not CONFIG['CLANG_CL']:
+ CFLAGS += [
+ '-wd4090', # 'return' : different 'const' qualifiers
+ '-wd4018', # '>' : signed/unsigned mismatch
+ '-wd4305', # 'initializing' : truncation from '__int64' to 'double'
+ ]
+
+FINAL_LIBRARY = 'lgpllibs'