Bug 1869043 allow a device to be specified with MediaTrackGraph::NotifyWhenDeviceStar...
[gecko.git] / media / libvorbis / moz.build
blobaf1ca189b4ec5b8c02f3e0ea5ec986c9cf1de253
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 with Files('*'):
8     BUG_COMPONENT = ('Core', 'Audio/Video')
10 EXPORTS.vorbis += [
11     'include/vorbis/codec.h',
12     'include/vorbis/vorbisenc.h',
15 UNIFIED_SOURCES += [
16     'lib/vorbis_analysis.c',
17     'lib/vorbis_bitrate.c',
18     'lib/vorbis_block.c',
19     'lib/vorbis_envelope.c',
20     'lib/vorbis_floor0.c',
21     'lib/vorbis_lookup.c',
22     'lib/vorbis_lpc.c',
23     'lib/vorbis_lsp.c',
24     'lib/vorbis_mapping0.c',
25     'lib/vorbis_mdct.c',
26     'lib/vorbis_psy.c',
27     'lib/vorbis_registry.c',
28     'lib/vorbis_sharedbook.c',
29     'lib/vorbis_smallft.c',
30     'lib/vorbis_synthesis.c',
31     'lib/vorbisenc.c',
34 # These files can't be unified because of function redefinitions.
35 SOURCES += [
36     'lib/vorbis_codebook.c',
37     'lib/vorbis_floor1.c',
38     'lib/vorbis_info.c',
39     'lib/vorbis_res0.c',
40     'lib/vorbis_window.c',
43 LOCAL_INCLUDES += ['lib']
45 if CONFIG['OS_ARCH'] == 'AIX':
46     DEFINES['alloca'] = '__alloca'
48 if CONFIG['OS_ARCH'] == 'SunOS':
49     DEFINES['HAVE_ALLOCA_H'] = True
51 if CONFIG["OS_ARCH"] == "Linux":
52     OS_LIBS += [
53         "m",
54     ]
56 # We allow warnings for third-party code that can be updated from upstream.
57 AllowCompilerWarnings()
59 FINAL_LIBRARY = 'gkcodecs'
60 NoVisibilityFlags()
62 # Suppress warnings in third-party code.
63 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
64     CFLAGS += ['-Wno-uninitialized']
66 # Add libFuzzer configuration directives
67 #include('/tools/fuzzing/libfuzzer-config.mozbuild')