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/.
8 BUG_COMPONENT = ('Core', 'Audio/Video')
11 'include/vorbis/codec.h',
12 'include/vorbis/vorbisenc.h',
16 'lib/vorbis_analysis.c',
17 'lib/vorbis_bitrate.c',
19 'lib/vorbis_envelope.c',
20 'lib/vorbis_floor0.c',
21 'lib/vorbis_lookup.c',
24 'lib/vorbis_mapping0.c',
27 'lib/vorbis_registry.c',
28 'lib/vorbis_sharedbook.c',
29 'lib/vorbis_smallft.c',
30 'lib/vorbis_synthesis.c',
34 # These files can't be unified because of function redefinitions.
36 'lib/vorbis_codebook.c',
37 'lib/vorbis_floor1.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 # We allow warnings for third-party code that can be updated from upstream.
52 AllowCompilerWarnings()
54 FINAL_LIBRARY = 'gkmedias'
56 # Suppress warnings in third-party code.
57 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
58 CFLAGS += ['-Wno-uninitialized']
60 # Add libFuzzer configuration directives
61 #include('/tools/fuzzing/libfuzzer-config.mozbuild')