2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:22 +04:00
|
|
|
# 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/.
|
|
|
|
|
2015-03-03 22:36:00 +03:00
|
|
|
with Files('*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Video/Audio')
|
|
|
|
|
2013-10-24 01:52:00 +04:00
|
|
|
EXPORTS.vorbis += [
|
|
|
|
'include/vorbis/codec.h',
|
2013-11-12 00:30:16 +04:00
|
|
|
'include/vorbis/vorbisenc.h',
|
2013-10-24 01:52:00 +04:00
|
|
|
]
|
|
|
|
|
2013-12-01 23:58:23 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-24 01:52:00 +04:00
|
|
|
'lib/vorbis_analysis.c',
|
|
|
|
'lib/vorbis_bitrate.c',
|
|
|
|
'lib/vorbis_block.c',
|
|
|
|
'lib/vorbis_envelope.c',
|
|
|
|
'lib/vorbis_floor0.c',
|
|
|
|
'lib/vorbis_lookup.c',
|
|
|
|
'lib/vorbis_lpc.c',
|
|
|
|
'lib/vorbis_lsp.c',
|
|
|
|
'lib/vorbis_mapping0.c',
|
|
|
|
'lib/vorbis_mdct.c',
|
|
|
|
'lib/vorbis_psy.c',
|
|
|
|
'lib/vorbis_registry.c',
|
|
|
|
'lib/vorbis_sharedbook.c',
|
|
|
|
'lib/vorbis_smallft.c',
|
|
|
|
'lib/vorbis_synthesis.c',
|
2013-11-12 00:30:16 +04:00
|
|
|
'lib/vorbisenc.c',
|
2013-10-24 01:52:00 +04:00
|
|
|
]
|
|
|
|
|
2013-12-01 23:58:23 +04:00
|
|
|
# These files can't be unified because of function redefinitions.
|
|
|
|
SOURCES += [
|
|
|
|
'lib/vorbis_codebook.c',
|
|
|
|
'lib/vorbis_floor1.c',
|
|
|
|
'lib/vorbis_info.c',
|
|
|
|
'lib/vorbis_res0.c',
|
|
|
|
'lib/vorbis_window.c',
|
|
|
|
]
|
|
|
|
|
2013-11-12 00:30:16 +04:00
|
|
|
LOCAL_INCLUDES += ['lib']
|
|
|
|
|
2013-10-25 00:06:00 +04:00
|
|
|
if CONFIG['OS_ARCH'] == 'AIX':
|
|
|
|
DEFINES['alloca'] = '__alloca'
|
|
|
|
|
2013-10-25 00:05:00 +04:00
|
|
|
if CONFIG['OS_ARCH'] == 'SunOS':
|
|
|
|
DEFINES['HAVE_ALLOCA_H'] = True
|
|
|
|
|
2015-10-20 04:05:20 +03:00
|
|
|
# We allow warnings for third-party code that can be updated from upstream.
|
2015-08-28 06:44:53 +03:00
|
|
|
ALLOW_COMPILER_WARNINGS = True
|
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'gkmedias'
|
2014-04-15 19:34:24 +04:00
|
|
|
|
|
|
|
# Suppress warnings in third-party code.
|
|
|
|
if CONFIG['GNU_CC']:
|
|
|
|
CFLAGS += ['-Wno-uninitialized']
|