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/.
6
7SOURCES += [
8    'tremor_block.c',
9    'tremor_codebook.c',
10    'tremor_floor0.c',
11    'tremor_floor1.c',
12    'tremor_info.c',
13    'tremor_mapping0.c',
14    'tremor_mdct.c',
15    'tremor_registry.c',
16    'tremor_res012.c',
17    'tremor_sharedbook.c',
18    'tremor_synthesis.c',
19    'tremor_window.c',
20]
21
22FINAL_LIBRARY = 'gkmedias'
23
24if CONFIG['OS_ARCH'] == 'AIX':
25    DEFINES['alloca'] = '__alloca'
26
27if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['CC_TYPE'] in ('clang', 'gcc') and not CONFIG['MOZ_THUMB2']:
28    DEFINES['_ARM_ASSEM_'] = True
29
30LOCAL_INCLUDES += [
31    '/media/libtremor/include/tremor',
32]
33
34# We allow warnings for third-party code that can be updated from upstream.
35AllowCompilerWarnings()
36