media/libspeex_resampler/src/moz.build

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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/.
     7 EXPORTS.speex += [
     8     'speex_config_types.h',
     9     'speex_resampler.h',
    10     'speex_types.h',
    11 ]
    13 SOURCES += [
    14   'sse_detect.cpp',
    15 ]
    17 SOURCES += [
    18     'resample.c',
    19 ]
    21 MSVC_ENABLE_PGO = True
    23 FINAL_LIBRARY = 'gkmedias'
    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'] = ''
    33 if CONFIG['OS_TARGET'] == 'Android':
    34     DEFINES['FIXED_POINT'] = True
    35 else:
    36     DEFINES['FLOATING_POINT'] = True
    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']
    44 # Suppress warnings in third-party code.
    45 if CONFIG['GNU_CC']:
    46     CFLAGS += ['-Wno-sign-compare']

mercurial