blob: 570d68062d94574296c19d81eb35205f857d6e2f [file] [log] [blame]
xians@google.comd3185fe2011-09-12 12:24:39 +00001# 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 'includes': [
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000011 '../build/common.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000012 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000013 'targets': [
14 {
15 'target_name': 'voice_engine',
16 'type': 'static_library',
17 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000018 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000019 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
20 '<(webrtc_root)/modules/modules.gyp:audio_coding_module',
21 '<(webrtc_root)/modules/modules.gyp:audio_conference_mixer',
22 '<(webrtc_root)/modules/modules.gyp:audio_device',
23 '<(webrtc_root)/modules/modules.gyp:audio_processing',
minyue@webrtc.orgc1a40a72014-05-28 09:52:06 +000024 '<(webrtc_root)/modules/modules.gyp:bitrate_controller',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000025 '<(webrtc_root)/modules/modules.gyp:media_file',
26 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
27 '<(webrtc_root)/modules/modules.gyp:webrtc_utility',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000028 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
ivocb04965c2015-09-09 00:09:43 -070029 '<(webrtc_root)/webrtc.gyp:rtc_event_log',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000030 ],
minyue3cea2562015-11-10 03:49:26 -080031 'export_dependent_settings': [
32 '<(webrtc_root)/modules/modules.gyp:audio_coding_module',
33 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000034 'sources': [
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000035 'include/voe_audio_processing.h',
36 'include/voe_base.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000037 'include/voe_codec.h',
38 'include/voe_dtmf.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000039 'include/voe_errors.h',
40 'include/voe_external_media.h',
41 'include/voe_file.h',
42 'include/voe_hardware.h',
43 'include/voe_neteq_stats.h',
44 'include/voe_network.h',
45 'include/voe_rtp_rtcp.h',
46 'include/voe_video_sync.h',
47 'include/voe_volume_control.h',
48 'channel.cc',
49 'channel.h',
50 'channel_manager.cc',
51 'channel_manager.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000052 'dtmf_inband.cc',
53 'dtmf_inband.h',
54 'dtmf_inband_queue.cc',
55 'dtmf_inband_queue.h',
56 'level_indicator.cc',
57 'level_indicator.h',
58 'monitor_module.cc',
59 'monitor_module.h',
minyue@webrtc.org74aaf292014-07-16 21:28:26 +000060 'network_predictor.cc',
61 'network_predictor.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000062 'output_mixer.cc',
63 'output_mixer.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000064 'shared_data.cc',
65 'shared_data.h',
66 'statistics.cc',
67 'statistics.h',
68 'transmit_mixer.cc',
69 'transmit_mixer.h',
70 'utility.cc',
71 'utility.h',
72 'voe_audio_processing_impl.cc',
73 'voe_audio_processing_impl.h',
74 'voe_base_impl.cc',
75 'voe_base_impl.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000076 'voe_codec_impl.cc',
77 'voe_codec_impl.h',
78 'voe_dtmf_impl.cc',
79 'voe_dtmf_impl.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000080 'voe_external_media_impl.cc',
81 'voe_external_media_impl.h',
82 'voe_file_impl.cc',
83 'voe_file_impl.h',
84 'voe_hardware_impl.cc',
85 'voe_hardware_impl.h',
86 'voe_neteq_stats_impl.cc',
87 'voe_neteq_stats_impl.h',
88 'voe_network_impl.cc',
89 'voe_network_impl.h',
90 'voe_rtp_rtcp_impl.cc',
91 'voe_rtp_rtcp_impl.h',
92 'voe_video_sync_impl.cc',
93 'voe_video_sync_impl.h',
94 'voe_volume_control_impl.cc',
95 'voe_volume_control_impl.h',
96 'voice_engine_defines.h',
97 'voice_engine_impl.cc',
98 'voice_engine_impl.h',
99 ],
100 },
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +0000101 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000102 'conditions': [
103 ['OS=="win"', {
104 'defines': ['WEBRTC_DRIFT_COMPENSATION_SUPPORTED',],
105 }],
106 ['include_tests==1', {
107 'targets': [
108 {
109 'target_name': 'voice_engine_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000110 'type': '<(gtest_target_type)',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000111 'dependencies': [
112 'voice_engine',
Jelena Marusic06b08af2015-04-21 11:39:57 +0200113 '<(DEPTH)/testing/gmock.gyp:gmock',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000114 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000115 # The rest are to satisfy the unittests' include chain.
116 # This would be unnecessary if we used qualified includes.
117 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
118 '<(webrtc_root)/modules/modules.gyp:audio_device',
119 '<(webrtc_root)/modules/modules.gyp:audio_processing',
120 '<(webrtc_root)/modules/modules.gyp:audio_coding_module',
121 '<(webrtc_root)/modules/modules.gyp:audio_conference_mixer',
122 '<(webrtc_root)/modules/modules.gyp:media_file',
123 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
124 '<(webrtc_root)/modules/modules.gyp:webrtc_utility',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000125 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000126 '<(webrtc_root)/test/test.gyp:test_support_main',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000127 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000128 'sources': [
129 'channel_unittest.cc',
minyue@webrtc.org74aaf292014-07-16 21:28:26 +0000130 'network_predictor_unittest.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000131 'transmit_mixer_unittest.cc',
andrew@webrtc.orga78a41f2014-04-08 23:09:28 +0000132 'utility_unittest.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000133 'voe_audio_processing_unittest.cc',
134 'voe_base_unittest.cc',
135 'voe_codec_unittest.cc',
Jelena Marusic46bd31b2015-04-30 10:57:10 +0200136 'voe_network_unittest.cc',
137 'voice_engine_fixture.cc',
138 'voice_engine_fixture.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000139 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000140 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000141 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000142 'dependencies': [
143 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
144 ],
145 }],
146 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000147 },
148 {
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000149 # command line test that should work on linux/mac/win
150 'target_name': 'voe_cmd_test',
151 'type': 'executable',
152 'dependencies': [
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000153 'voice_engine',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000154 '<(DEPTH)/testing/gtest.gyp:gtest',
minyue@webrtc.orgcc92e002013-09-30 08:43:50 +0000155 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000156 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
157 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000158 '<(webrtc_root)/test/test.gyp:channel_transport',
159 '<(webrtc_root)/test/test.gyp:test_support',
ivocb04965c2015-09-09 00:09:43 -0700160 '<(webrtc_root)/webrtc.gyp:rtc_event_log',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000161 ],
162 'sources': [
163 'test/cmd_test/voe_cmd_test.cc',
164 ],
165 },
166 ], # targets
167 'conditions': [
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100168 ['OS!="ios"', {
169 'targets': [
170 {
171 'target_name': 'voe_auto_test',
172 'type': 'executable',
173 'dependencies': [
174 'voice_engine',
175 '<(DEPTH)/testing/gmock.gyp:gmock',
176 '<(DEPTH)/testing/gtest.gyp:gtest',
177 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
178 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
179 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
180 '<(webrtc_root)/test/test.gyp:channel_transport',
181 '<(webrtc_root)/test/test.gyp:test_support',
182 '<(webrtc_root)/test/webrtc_test_common.gyp:webrtc_test_common',
183 '<(webrtc_root)/webrtc.gyp:rtc_event_log',
184 ],
185 'sources': [
186 'test/auto_test/automated_mode.cc',
187 'test/auto_test/extended/agc_config_test.cc',
188 'test/auto_test/extended/ec_metrics_test.cc',
189 'test/auto_test/fakes/conference_transport.cc',
190 'test/auto_test/fakes/conference_transport.h',
191 'test/auto_test/fakes/loudest_filter.cc',
192 'test/auto_test/fakes/loudest_filter.h',
193 'test/auto_test/fixtures/after_initialization_fixture.cc',
194 'test/auto_test/fixtures/after_initialization_fixture.h',
195 'test/auto_test/fixtures/after_streaming_fixture.cc',
196 'test/auto_test/fixtures/after_streaming_fixture.h',
197 'test/auto_test/fixtures/before_initialization_fixture.cc',
198 'test/auto_test/fixtures/before_initialization_fixture.h',
199 'test/auto_test/fixtures/before_streaming_fixture.cc',
200 'test/auto_test/fixtures/before_streaming_fixture.h',
201 'test/auto_test/standard/audio_processing_test.cc',
202 'test/auto_test/standard/codec_before_streaming_test.cc',
203 'test/auto_test/standard/codec_test.cc',
204 'test/auto_test/standard/dtmf_test.cc',
205 'test/auto_test/standard/external_media_test.cc',
206 'test/auto_test/standard/file_before_streaming_test.cc',
207 'test/auto_test/standard/file_test.cc',
208 'test/auto_test/standard/hardware_before_initializing_test.cc',
209 'test/auto_test/standard/hardware_before_streaming_test.cc',
210 'test/auto_test/standard/hardware_test.cc',
211 'test/auto_test/standard/mixing_test.cc',
212 'test/auto_test/standard/neteq_stats_test.cc',
213 'test/auto_test/standard/rtp_rtcp_before_streaming_test.cc',
214 'test/auto_test/standard/rtp_rtcp_extensions.cc',
215 'test/auto_test/standard/rtp_rtcp_test.cc',
216 'test/auto_test/standard/voe_base_misc_test.cc',
217 'test/auto_test/standard/video_sync_test.cc',
218 'test/auto_test/standard/volume_test.cc',
219 'test/auto_test/resource_manager.cc',
220 'test/auto_test/voe_conference_test.cc',
221 'test/auto_test/voe_cpu_test.cc',
222 'test/auto_test/voe_cpu_test.h',
223 'test/auto_test/voe_output_test.cc',
224 'test/auto_test/voe_standard_test.cc',
225 'test/auto_test/voe_standard_test.h',
226 'test/auto_test/voe_stress_test.cc',
227 'test/auto_test/voe_stress_test.h',
228 'test/auto_test/voe_test_defines.h',
229 'test/auto_test/voe_test_interface.h',
230 ],
231 'conditions': [
232 ['OS=="android"', {
233 # some tests are not supported on android yet, exclude these tests.
234 'sources!': [
235 'test/auto_test/standard/hardware_before_streaming_test.cc',
236 ],
237 }],
238 ['enable_protobuf==1', {
239 'defines': [
240 'ENABLE_RTC_EVENT_LOG',
241 ],
242 }],
243 ],
244 # Disable warnings to enable Win64 build, issue 1323.
245 'msvs_disabled_warnings': [
246 4267, # size_t to int truncation.
247 ],
248 },
249 ],
250 }],
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000251 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000252 'targets': [
253 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000254 'target_name': 'voice_engine_unittests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000255 'type': 'none',
256 'dependencies': [
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000257 '<(apk_tests_path):voice_engine_unittests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000258 ],
259 },
260 ],
261 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000262 ['test_isolation_mode != "noop"', {
263 'targets': [
264 {
265 'target_name': 'voice_engine_unittests_run',
266 'type': 'none',
267 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000268 'voice_engine_unittests',
269 ],
270 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000271 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000272 ],
273 'sources': [
274 'voice_engine_unittests.isolate',
275 ],
276 },
277 {
278 'target_name': 'voe_auto_test_run',
279 'type': 'none',
280 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000281 'voe_auto_test',
282 ],
283 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000284 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000285 ],
286 'sources': [
287 'voe_auto_test.isolate',
288 ],
289 },
290 ],
291 }],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000292 ], # conditions
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100293 }], # include_tests==1
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000294 ], # conditions
xians@google.comd3185fe2011-09-12 12:24:39 +0000295}