blob: cc62388a75d985e077b1c225ba14faba53fa16b9 [file] [log] [blame]
bjornv@webrtc.org70569082012-04-12 12:13:50 +00001# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00002#
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{
andrew@webrtc.orgbd8c8652015-03-20 00:28:22 +000010 'targets': [
11 {
kjellanderf97bfed2015-11-05 06:02:15 -080012 'target_name': 'audioproc_test_utils',
13 'type': 'static_library',
14 'dependencies': [
kjellanderf97bfed2015-11-05 06:02:15 -080015 '<(webrtc_root)/base/base.gyp:rtc_base_approved',
16 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
17 ],
18 'sources': [
peahca4cac72016-06-29 15:26:12 -070019 'test/audio_buffer_tools.cc',
20 'test/audio_buffer_tools.h',
kjellanderf97bfed2015-11-05 06:02:15 -080021 'test/test_utils.cc',
22 'test/test_utils.h',
23 ],
24 },
25 {
andrew@webrtc.orgbd8c8652015-03-20 00:28:22 +000026 'target_name': 'transient_suppression_test',
27 'type': 'executable',
28 'dependencies': [
29 '<(DEPTH)/testing/gtest.gyp:gtest',
30 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
31 '<(webrtc_root)/test/test.gyp:test_support',
32 '<(webrtc_root)/modules/modules.gyp:audio_processing',
33 ],
34 'sources': [
35 'transient/transient_suppression_test.cc',
36 'transient/file_utils.cc',
37 'transient/file_utils.h',
38 ],
39 }, # transient_suppression_test
40 {
41 'target_name': 'click_annotate',
42 'type': 'executable',
43 'dependencies': [
44 '<(webrtc_root)/modules/modules.gyp:audio_processing',
45 ],
46 'sources': [
47 'transient/click_annotate.cc',
48 'transient/file_utils.cc',
49 'transient/file_utils.h',
50 ],
51 }, # click_annotate
52 {
53 'target_name': 'nonlinear_beamformer_test',
54 'type': 'executable',
55 'dependencies': [
Andrew MacDonaldcb05b722015-05-07 22:17:51 -070056 'audioproc_test_utils',
andrew@webrtc.orgbd8c8652015-03-20 00:28:22 +000057 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
58 '<(webrtc_root)/modules/modules.gyp:audio_processing',
59 ],
60 'sources': [
61 'beamformer/nonlinear_beamformer_test.cc',
andrew@webrtc.orgbd8c8652015-03-20 00:28:22 +000062 ],
63 }, # nonlinear_beamformer_test
64 ],
andrew@webrtc.org7bf26462011-12-03 00:03:31 +000065 'conditions': [
peah1bcfce52016-08-26 07:16:04 -070066 ['enable_intelligibility_enhancer==1', {
67 'defines': ['WEBRTC_INTELLIGIBILITY_ENHANCER=1',],
68 'targets': [
69 {
70 'target_name': 'intelligibility_proc',
71 'type': 'executable',
72 'dependencies': [
73 'audioproc_test_utils',
74 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
75 '<(DEPTH)/testing/gtest.gyp:gtest',
76 '<(webrtc_root)/modules/modules.gyp:audio_processing',
77 '<(webrtc_root)/test/test.gyp:test_support',
78 ],
79 'sources': [
80 'intelligibility/test/intelligibility_proc.cc',
81 ],
82 },
83 ],
84 }, {
85 'defines': ['WEBRTC_INTELLIGIBILITY_ENHANCER=0',],
86 }],
andrew@webrtc.org7bf26462011-12-03 00:03:31 +000087 ['enable_protobuf==1', {
88 'targets': [
89 {
andrew@webrtc.orgdd5d8042014-03-13 00:57:52 +000090 'target_name': 'audioproc_unittest_proto',
91 'type': 'static_library',
92 'sources': [ 'test/unittest.proto', ],
93 'variables': {
94 'proto_in_dir': 'test',
95 # Workaround to protect against gyp's pathname relativization when
96 # this file is included by modules.gyp.
kjellander78ddd732016-02-09 08:13:06 -080097 'proto_out_protected': 'webrtc/modules/audio_processing',
andrew@webrtc.orgdd5d8042014-03-13 00:57:52 +000098 'proto_out_dir': '<(proto_out_protected)',
99 },
100 'includes': [ '../../build/protoc.gypi', ],
101 },
102 {
Andrew MacDonaldcb05b722015-05-07 22:17:51 -0700103 'target_name': 'audioproc_protobuf_utils',
104 'type': 'static_library',
105 'dependencies': [
106 'audioproc_debug_proto',
107 ],
108 'sources': [
109 'test/protobuf_utils.cc',
110 'test/protobuf_utils.h',
111 ],
112 },
113 {
andrew@webrtc.org08df9b22014-12-16 20:57:15 +0000114 'target_name': 'audioproc_f',
115 'type': 'executable',
116 'dependencies': [
117 'audio_processing',
118 'audioproc_debug_proto',
Andrew MacDonaldcb05b722015-05-07 22:17:51 -0700119 'audioproc_test_utils',
120 'audioproc_protobuf_utils',
Bjorn Volcker1ca324f2015-06-29 14:57:29 +0200121 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
Andrew MacDonaldb444b3f2015-05-27 17:26:03 -0700122 '<(webrtc_root)/test/test.gyp:test_support',
andrew@webrtc.org08df9b22014-12-16 20:57:15 +0000123 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
124 ],
aluebsb0ad43b2015-11-20 00:11:53 -0800125 'sources': [
peah60a189f2016-05-24 20:54:40 -0700126 'test/audio_processing_simulator.cc',
127 'test/audio_processing_simulator.h',
128 'test/aec_dump_based_simulator.cc',
129 'test/aec_dump_based_simulator.h',
130 'test/wav_based_simulator.cc',
131 'test/wav_based_simulator.h',
aluebsb0ad43b2015-11-20 00:11:53 -0800132 'test/audioproc_float.cc',
133 ],
andrew@webrtc.org08df9b22014-12-16 20:57:15 +0000134 },
135 {
andrew@webrtc.org7bf26462011-12-03 00:03:31 +0000136 'target_name': 'unpack_aecdump',
137 'type': 'executable',
138 'dependencies': [
139 'audioproc_debug_proto',
Andrew MacDonaldcb05b722015-05-07 22:17:51 -0700140 'audioproc_test_utils',
141 'audioproc_protobuf_utils',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000142 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
aluebs@webrtc.org841f58f2014-09-02 07:51:51 +0000143 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
fischman@webrtc.orgdde7d4c2013-08-15 23:31:30 +0000144 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
andrew@webrtc.org7bf26462011-12-03 00:03:31 +0000145 ],
146 'sources': [ 'test/unpack.cc', ],
147 },
aluebs@webrtc.org0c39e912014-12-18 22:22:04 +0000148 ],
149 }],
niklase@google.com470e71d2011-07-07 08:21:25 +0000150 ],
151}