media/libsoundtouch/src/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libsoundtouch/src/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,44 @@
     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.soundtouch += [
    1.11 +    'FIFOSamplePipe.h',
    1.12 +    'SoundTouch.h',
    1.13 +    'soundtouch_config.h',
    1.14 +    'STTypes.h',
    1.15 +]
    1.16 +
    1.17 +UNIFIED_SOURCES += [
    1.18 +    'AAFilter.cpp',
    1.19 +    'cpu_detect_x86.cpp',
    1.20 +    'FIFOSampleBuffer.cpp',
    1.21 +    'FIRFilter.cpp',
    1.22 +    'InterpolateCubic.cpp',
    1.23 +    'InterpolateLinear.cpp',
    1.24 +    'InterpolateShannon.cpp',
    1.25 +    'RateTransposer.cpp',
    1.26 +    'SoundTouch.cpp',
    1.27 +    'TDStretch.cpp',
    1.28 +]
    1.29 +
    1.30 +if CONFIG['INTEL_ARCHITECTURE']:
    1.31 +    if CONFIG['MOZ_SAMPLE_TYPE_FLOAT32']:
    1.32 +        SOURCES += ['sse_optimized.cpp']
    1.33 +        SOURCES['sse_optimized.cpp'].flags += CONFIG['SSE2_FLAGS']
    1.34 +    else:
    1.35 +        SOURCES += ['mmx_optimized.cpp']
    1.36 +        SOURCES['mmx_optimized.cpp'].flags += CONFIG['MMX_FLAGS']
    1.37 +
    1.38 +MSVC_ENABLE_PGO = True
    1.39 +if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
    1.40 +    NO_VISIBILITY_FLAGS = True
    1.41 +
    1.42 +FINAL_LIBRARY = 'gkmedias'
    1.43 +
    1.44 +# Use abort() instead of exception in SoundTouch.
    1.45 +DEFINES['ST_NO_EXCEPTION_HANDLING'] = 1
    1.46 +
    1.47 +DEFINES['BUILDING_SOUNDTOUCH'] = True

mercurial