Bug 1755481: rename `nsIClipboard::getData` to `nsIClipboard::getSomeData` and docume...
[gecko.git] / media / libsoundtouch / src / moz.build
blob63173892f2c5d5ab5e24e791f5997292a90ba74f
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/.
7 EXPORTS.soundtouch += [
8     'FIFOSamplePipe.h',
9     'SoundTouch.h',
10     'soundtouch_config.h',
11     'SoundTouchFactory.h',
12     'STTypes.h',
15 UNIFIED_SOURCES += [
16     'AAFilter.cpp',
17     'cpu_detect_x86.cpp',
18     'FIFOSampleBuffer.cpp',
19     'FIRFilter.cpp',
20     'InterpolateCubic.cpp',
21     'InterpolateLinear.cpp',
22     'InterpolateShannon.cpp',
23     'RateTransposer.cpp',
24     'SoundTouch.cpp',
25     'SoundTouchFactory.cpp',
26     'TDStretch.cpp',
29 if CONFIG['INTEL_ARCHITECTURE']:
30     if CONFIG['MOZ_SAMPLE_TYPE_FLOAT32']:
31         SOURCES += ['sse_optimized.cpp']
32         SOURCES['sse_optimized.cpp'].flags += CONFIG['SSE2_FLAGS']
33     else:
34         SOURCES += ['mmx_optimized.cpp']
35         SOURCES['mmx_optimized.cpp'].flags += CONFIG['MMX_FLAGS']
37 if CONFIG['OS_ARCH'] != 'WINNT':
38     # GCC/Clang require permissions to be explicitly set for the soundtouch
39     # header.
40     CXXFLAGS += ['-include', SRCDIR + '/soundtouch_perms.h']
41 else:
42     # Windows need alloca renamed to _alloca
43     DEFINES['alloca'] = '_alloca'
45 DEFINES['BUILDING_SOUNDTOUCH'] = 1
47 # We allow warnings for third-party code that can be updated from upstream.
48 AllowCompilerWarnings()
50 FINAL_LIBRARY = 'lgpllibs'
52 # Use abort() instead of exception in SoundTouch.
53 DEFINES['ST_NO_EXCEPTION_HANDLING'] = 1