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/.
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS.opus += [
|
|
|
|
'include/opus.h',
|
|
|
|
'include/opus_defines.h',
|
|
|
|
'include/opus_multistream.h',
|
|
|
|
'include/opus_types.h',
|
|
|
|
]
|
|
|
|
|
2013-08-22 10:56:01 +04:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'gkmedias'
|
2013-11-27 17:55:07 +04:00
|
|
|
|
|
|
|
DEFINES['OPUS_BUILD'] = True
|
2013-12-05 02:00:00 +04:00
|
|
|
DEFINES['OPUS_VERSION'] = '"v1.1-mozilla"'
|
2013-11-27 17:55:07 +04:00
|
|
|
DEFINES['USE_ALLOCA'] = True
|
|
|
|
|
2014-02-14 12:20:09 +04:00
|
|
|
if CONFIG['MOZ_DEBUG']:
|
|
|
|
DEFINES['ENABLE_ASSERTIONS'] = True
|
|
|
|
|
2013-11-27 17:55:07 +04:00
|
|
|
if CONFIG['OS_ARCH'] in ('Linux', 'Darwin', 'DragonFly', 'FreeBSD',
|
|
|
|
'NetBSD', 'OpenBSD'):
|
|
|
|
DEFINES['HAVE_LRINTF'] = True
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
DEFINES['inline'] = '__inline'
|
|
|
|
if CONFIG['GNU_CC']:
|
|
|
|
DEFINES['HAVE_LRINTF'] = True
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'AIX':
|
|
|
|
DEFINES['alloca'] = '__alloca'
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'SunOS':
|
|
|
|
DEFINES['HAVE_ALLOCA_H'] = True
|
|
|
|
|
|
|
|
if not CONFIG['MOZ_SAMPLE_TYPE_FLOAT32']:
|
|
|
|
DEFINES['FIXED_POINT'] = 1
|
|
|
|
DEFINES['DISABLE_FLOAT_API'] = True
|
2014-01-10 00:44:24 +04:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'celt',
|
|
|
|
'include',
|
|
|
|
'silk',
|
|
|
|
'src',
|
|
|
|
]
|
|
|
|
|
|
|
|
# sources.mozbuild is generated from gen-sources.py when a new libopus is
|
|
|
|
# imported.
|
|
|
|
include('sources.mozbuild')
|
|
|
|
|
|
|
|
SOURCES += celt_sources
|
|
|
|
SOURCES += silk_sources
|
|
|
|
SOURCES += opus_sources
|
|
|
|
|
|
|
|
if CONFIG['MOZ_SAMPLE_TYPE_FLOAT32']:
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'silk/float',
|
|
|
|
]
|
|
|
|
SOURCES += silk_sources_float
|
|
|
|
SOURCES += opus_sources_float
|
|
|
|
else:
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'silk/fixed',
|
|
|
|
]
|
|
|
|
SOURCES += silk_sources_fixed
|