media/libspeex_resampler/src/moz.build

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:5c3b099b7123
1 # -*- Mode: python; c-basic-offset: 4; 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
7 EXPORTS.speex += [
8 'speex_config_types.h',
9 'speex_resampler.h',
10 'speex_types.h',
11 ]
12
13 SOURCES += [
14 'sse_detect.cpp',
15 ]
16
17 SOURCES += [
18 'resample.c',
19 ]
20
21 MSVC_ENABLE_PGO = True
22
23 FINAL_LIBRARY = 'gkmedias'
24
25 # We don't compile the full speex codec, only the resampler.
26 DEFINES['OUTSIDE_SPEEX'] = True
27 # Speex wants a random prefix when building in another program, to avoid name
28 # clashes
29 DEFINES['RANDOM_PREFIX'] = 'speex'
30 # We don't use -fvisibility=hidden
31 DEFINES['SPX_RESAMPLE_EXPORT'] = ''
32
33 if CONFIG['OS_TARGET'] == 'Android':
34 DEFINES['FIXED_POINT'] = True
35 else:
36 DEFINES['FLOATING_POINT'] = True
37
38 # Only use SSE code when using floating point samples, and on x86
39 if CONFIG['INTEL_ARCHITECTURE'] and CONFIG['OS_TARGET'] != 'Android':
40 DEFINES['_USE_SSE'] = True
41 DEFINES['_USE_SSE2'] = True
42 SOURCES['resample.c'].flags += CONFIG['SSE2_FLAGS']
43
44 # Suppress warnings in third-party code.
45 if CONFIG['GNU_CC']:
46 CFLAGS += ['-Wno-sign-compare']

mercurial