Bug 797671: Import Webrtc.org code from stable branch 3.12 (rev 2820) rs=jesup
[gecko.git] / media / webrtc / trunk / src / modules / audio_processing / apm_tests.gypi
blob0d5bfacb0681d215a6a3e503f4819d658895affd
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': 'audioproc_unittest',
13       'type': 'executable',
14       'conditions': [
15         ['prefer_fixed_point==1', {
16           'defines': [ 'WEBRTC_AUDIOPROC_FIXED_PROFILE' ],
17         }, {
18           'defines': [ 'WEBRTC_AUDIOPROC_FLOAT_PROFILE' ],
19         }],
20         ['enable_protobuf==1', {
21           'defines': [ 'WEBRTC_AUDIOPROC_DEBUG_DUMP' ],
22         }],
23       ],
24       'dependencies': [
25         'audio_processing',
26         'audioproc_unittest_proto',
27         '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing',
28         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
29         '<(webrtc_root)/test/test.gyp:test_support',
30         '<(DEPTH)/testing/gtest.gyp:gtest',
31       ],
32       'sources': [
33         'aec/system_delay_unittest.cc',
34         'test/unit_test.cc',
35         'utility/delay_estimator_unittest.cc',
36       ],
37     },
38     {
39       'target_name': 'audioproc_unittest_proto',
40       'type': 'static_library',
41       'sources': [ 'test/unittest.proto', ],
42       'variables': {
43         'proto_in_dir': 'test',
44         # Workaround to protect against gyp's pathname relativization when this
45         # file is included by modules.gyp.
46         'proto_out_protected': 'webrtc/audio_processing',
47         'proto_out_dir': '<(proto_out_protected)',
48       },
49       'includes': [ '../../build/protoc.gypi', ],
50     },
51   ],
52   'conditions': [
53     ['enable_protobuf==1', {
54       'targets': [
55         {
56           'target_name': 'audioproc',
57           'type': 'executable',
58           'dependencies': [
59             'audio_processing',
60             'audioproc_debug_proto',
61             '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
62             '<(DEPTH)/testing/gtest.gyp:gtest',
63           ],
64           'sources': [ 'test/process_test.cc', ],
65         },
66         {
67           'target_name': 'unpack_aecdump',
68           'type': 'executable',
69           'dependencies': [
70             'audioproc_debug_proto',
71             '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
72             '<(DEPTH)/third_party/google-gflags/google-gflags.gyp:google-gflags',
73           ],
74           'sources': [ 'test/unpack.cc', ],
75         },
76       ],
77     }],
78   ],