media/libspeex_resampler/src/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libspeex_resampler/src/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,46 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +EXPORTS.speex += [
    1.11 +    'speex_config_types.h',
    1.12 +    'speex_resampler.h',
    1.13 +    'speex_types.h',
    1.14 +]
    1.15 +
    1.16 +SOURCES += [
    1.17 +  'sse_detect.cpp',
    1.18 +]
    1.19 +
    1.20 +SOURCES += [
    1.21 +    'resample.c',
    1.22 +]
    1.23 +
    1.24 +MSVC_ENABLE_PGO = True
    1.25 +
    1.26 +FINAL_LIBRARY = 'gkmedias'
    1.27 +
    1.28 +# We don't compile the full speex codec, only the resampler.
    1.29 +DEFINES['OUTSIDE_SPEEX'] = True
    1.30 +# Speex wants a random prefix when building in another program, to avoid name
    1.31 +# clashes
    1.32 +DEFINES['RANDOM_PREFIX'] = 'speex'
    1.33 +# We don't use -fvisibility=hidden
    1.34 +DEFINES['SPX_RESAMPLE_EXPORT'] = ''
    1.35 +
    1.36 +if CONFIG['OS_TARGET'] == 'Android':
    1.37 +    DEFINES['FIXED_POINT'] = True
    1.38 +else:
    1.39 +    DEFINES['FLOATING_POINT'] = True
    1.40 +
    1.41 +# Only use SSE code when using floating point samples, and on x86
    1.42 +if CONFIG['INTEL_ARCHITECTURE'] and CONFIG['OS_TARGET'] != 'Android':
    1.43 +    DEFINES['_USE_SSE'] = True
    1.44 +    DEFINES['_USE_SSE2'] = True
    1.45 +    SOURCES['resample.c'].flags += CONFIG['SSE2_FLAGS']
    1.46 +
    1.47 +# Suppress warnings in third-party code.
    1.48 +if CONFIG['GNU_CC']:
    1.49 +    CFLAGS += ['-Wno-sign-compare']

mercurial