Bug 797671: Import Webrtc.org code from stable branch 3.12 (rev 2820) rs=jesup
[gecko.git] / media / webrtc / trunk / src / modules / audio_processing / ns / ns.gypi
blob940e33017f97ec02d9900d2ac4475b66a584410e
1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS.  All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree.
10   'targets': [
11     {
12       'target_name': 'ns',
13       'type': '<(library)',
14       'dependencies': [
15         '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing',
16         'apm_util'
17       ],
18       'include_dirs': [
19         'include',
20       ],
21       'direct_dependent_settings': {
22         'include_dirs': [
23           'include',
24         ],
25       },
26       'sources': [
27         'include/noise_suppression.h',
28         'noise_suppression.c',
29         'windows_private.h',
30         'defines.h',
31         'ns_core.c',
32         'ns_core.h',
33       ],
34     },
35     {
36       'target_name': 'ns_fix',
37       'type': '<(library)',
38       'dependencies': [
39         '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing',
40         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
41       ],
42       'include_dirs': [
43         'include',
44       ],
45       'direct_dependent_settings': {
46         'include_dirs': [
47           'include',
48         ],
49       },
50       'sources': [
51         'include/noise_suppression_x.h',
52         'noise_suppression_x.c',
53         'nsx_defines.h',
54         'nsx_core.c',
55         'nsx_core.h',
56       ],
57       'conditions': [
58         ['target_arch=="arm" and armv7==1', {
59           'dependencies': [ 'ns_neon', ],
60         }],
61       ],
62     },
63   ],
64   'conditions': [
65     ['target_arch=="arm" and armv7==1', {
66       'targets': [
67         {
68           'target_name': 'ns_neon',
69           'type': '<(library)',
70           'includes': [ '../../../build/arm_neon.gypi', ],
71           'dependencies': [
72             '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing',
73           ],
74           'sources': [
75             'nsx_core_neon.c',
76           ],
77         },
78       ],
79     }],
80   ],