1# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
2#
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.
8
9{
10  'targets': [
11    {
12      'target_name': 'audioproc_unittest',
13      'type': 'executable',
14      'conditions': [
15        ['prefer_fixed_point==1', {
16          'defines': [ 'WEBRTC_APM_UNIT_TEST_FIXED_PROFILE' ],
17        }, {
18          'defines': [ 'WEBRTC_APM_UNIT_TEST_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        '<(webrtc_root)/../testing/gtest.gyp:gtest',
31      ],
32      'sources': [ 'test/unit_test.cc', ],
33    },
34    {
35      'target_name': 'audioproc_unittest_proto',
36      'type': 'static_library',
37      'sources': [ 'test/unittest.proto', ],
38      'variables': {
39        'proto_in_dir': 'test',
40        # Workaround to protect against gyp's pathname relativization when this
41        # file is included by modules.gyp.
42        'proto_out_protected': 'webrtc/audio_processing',
43        'proto_out_dir': '<(proto_out_protected)',
44      },
45      'includes': [ '../../build/protoc.gypi', ],
46    },
47  ],
48  'conditions': [
49    ['enable_protobuf==1', {
50      'targets': [
51        {
52          'target_name': 'audioproc',
53          'type': 'executable',
54          'dependencies': [
55            'audio_processing',
56            'audioproc_debug_proto',
57            '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
58            '<(webrtc_root)/../testing/gtest.gyp:gtest',
59          ],
60          'sources': [ 'test/process_test.cc', ],
61        },
62        {
63          'target_name': 'unpack_aecdump',
64          'type': 'executable',
65          'dependencies': [
66            'audioproc_debug_proto',
67            '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
68            '<(webrtc_root)/../third_party/google-gflags/google-gflags.gyp:google-gflags',
69          ],
70          'sources': [ 'test/unpack.cc', ],
71        },
72      ],
73    }],
74  ],
75}
76