blob: 21aef153197daa4fde2e36bc2546e933072859ae [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': [
18 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
19 '<(webrtc_root)/modules/modules.gyp:audio_coding_module',
20 '<(webrtc_root)/modules/modules.gyp:audio_conference_mixer',
21 '<(webrtc_root)/modules/modules.gyp:audio_device',
22 '<(webrtc_root)/modules/modules.gyp:audio_processing',
23 '<(webrtc_root)/modules/modules.gyp:media_file',
24 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
25 '<(webrtc_root)/modules/modules.gyp:webrtc_utility',
26 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000027 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000028 'sources': [
29 '../common_types.h',
30 '../engine_configurations.h',
31 '../typedefs.h',
32 'include/voe_audio_processing.h',
33 'include/voe_base.h',
34 'include/voe_call_report.h',
35 'include/voe_codec.h',
36 'include/voe_dtmf.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000037 'include/voe_errors.h',
38 'include/voe_external_media.h',
39 'include/voe_file.h',
40 'include/voe_hardware.h',
41 'include/voe_neteq_stats.h',
42 'include/voe_network.h',
43 'include/voe_rtp_rtcp.h',
44 'include/voe_video_sync.h',
45 'include/voe_volume_control.h',
46 'channel.cc',
47 'channel.h',
48 'channel_manager.cc',
49 'channel_manager.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000050 'dtmf_inband.cc',
51 'dtmf_inband.h',
52 'dtmf_inband_queue.cc',
53 'dtmf_inband_queue.h',
54 'level_indicator.cc',
55 'level_indicator.h',
56 'monitor_module.cc',
57 'monitor_module.h',
58 'output_mixer.cc',
59 'output_mixer.h',
60 'output_mixer_internal.cc',
61 'output_mixer_internal.h',
62 'shared_data.cc',
63 'shared_data.h',
64 'statistics.cc',
65 'statistics.h',
66 'transmit_mixer.cc',
67 'transmit_mixer.h',
68 'utility.cc',
69 'utility.h',
70 'voe_audio_processing_impl.cc',
71 'voe_audio_processing_impl.h',
72 'voe_base_impl.cc',
73 'voe_base_impl.h',
74 'voe_call_report_impl.cc',
75 'voe_call_report_impl.h',
76 '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',
113 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000114 # The rest are to satisfy the unittests' include chain.
115 # This would be unnecessary if we used qualified includes.
116 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
117 '<(webrtc_root)/modules/modules.gyp:audio_device',
118 '<(webrtc_root)/modules/modules.gyp:audio_processing',
119 '<(webrtc_root)/modules/modules.gyp:audio_coding_module',
120 '<(webrtc_root)/modules/modules.gyp:audio_conference_mixer',
121 '<(webrtc_root)/modules/modules.gyp:media_file',
122 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
123 '<(webrtc_root)/modules/modules.gyp:webrtc_utility',
124 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000125 '<(webrtc_root)/test/test.gyp:test_support_main',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000126 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000127 'sources': [
128 'channel_unittest.cc',
129 'output_mixer_unittest.cc',
130 'transmit_mixer_unittest.cc',
131 'voe_audio_processing_unittest.cc',
132 'voe_base_unittest.cc',
133 'voe_codec_unittest.cc',
wu@webrtc.org24301a62013-12-13 19:17:43 +0000134 'voe_neteq_stats_unittest.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000135 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000136 'conditions': [
137 # TODO(henrike): remove build_with_chromium==1 when the bots are
138 # using Chromium's buildbots.
139 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
140 'dependencies': [
141 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
142 ],
143 }],
144 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000145 },
146 {
147 'target_name': 'voe_auto_test',
148 'type': 'executable',
149 'dependencies': [
150 'voice_engine',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000151 '<(DEPTH)/testing/gmock.gyp:gmock',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000152 '<(DEPTH)/testing/gtest.gyp:gtest',
fischman@webrtc.orgdde7d4c2013-08-15 23:31:30 +0000153 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000154 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000155 '<(webrtc_root)/test/test.gyp:channel_transport',
156 '<(webrtc_root)/test/test.gyp:test_support',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000157 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000158 'sources': [
159 'test/auto_test/automated_mode.cc',
160 'test/auto_test/extended/agc_config_test.cc',
161 'test/auto_test/extended/ec_metrics_test.cc',
162 'test/auto_test/fakes/fake_external_transport.cc',
163 'test/auto_test/fakes/fake_external_transport.h',
164 'test/auto_test/fixtures/after_initialization_fixture.cc',
165 'test/auto_test/fixtures/after_initialization_fixture.h',
166 'test/auto_test/fixtures/after_streaming_fixture.cc',
167 'test/auto_test/fixtures/after_streaming_fixture.h',
168 'test/auto_test/fixtures/before_initialization_fixture.cc',
169 'test/auto_test/fixtures/before_initialization_fixture.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000170 'test/auto_test/standard/audio_processing_test.cc',
171 'test/auto_test/standard/call_report_test.cc',
172 'test/auto_test/standard/codec_before_streaming_test.cc',
173 'test/auto_test/standard/codec_test.cc',
174 'test/auto_test/standard/dtmf_test.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000175 'test/auto_test/standard/external_media_test.cc',
176 'test/auto_test/standard/file_before_streaming_test.cc',
177 'test/auto_test/standard/file_test.cc',
178 'test/auto_test/standard/hardware_before_initializing_test.cc',
179 'test/auto_test/standard/hardware_before_streaming_test.cc',
180 'test/auto_test/standard/hardware_test.cc',
181 'test/auto_test/standard/manual_hold_test.cc',
182 'test/auto_test/standard/mixing_test.cc',
183 'test/auto_test/standard/neteq_stats_test.cc',
184 'test/auto_test/standard/neteq_test.cc',
185 'test/auto_test/standard/network_test.cc',
186 'test/auto_test/standard/rtp_rtcp_before_streaming_test.cc',
187 'test/auto_test/standard/rtp_rtcp_test.cc',
188 'test/auto_test/standard/voe_base_misc_test.cc',
189 'test/auto_test/standard/video_sync_test.cc',
190 'test/auto_test/standard/volume_test.cc',
191 'test/auto_test/resource_manager.cc',
192 'test/auto_test/voe_cpu_test.cc',
193 'test/auto_test/voe_cpu_test.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000194 'test/auto_test/voe_standard_test.cc',
195 'test/auto_test/voe_standard_test.h',
196 'test/auto_test/voe_stress_test.cc',
197 'test/auto_test/voe_stress_test.h',
198 'test/auto_test/voe_test_defines.h',
199 'test/auto_test/voe_test_interface.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000200 ],
201 'conditions': [
202 ['OS=="android"', {
203 # some tests are not supported on android yet, exclude these tests.
204 'sources!': [
205 'test/auto_test/standard/hardware_before_streaming_test.cc',
206 ],
207 }],
208 ],
209 # Disable warnings to enable Win64 build, issue 1323.
210 'msvs_disabled_warnings': [
211 4267, # size_t to int truncation.
212 ],
213 },
214 {
215 # command line test that should work on linux/mac/win
216 'target_name': 'voe_cmd_test',
217 'type': 'executable',
218 'dependencies': [
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000219 'voice_engine',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000220 '<(DEPTH)/testing/gtest.gyp:gtest',
minyue@webrtc.orgcc92e002013-09-30 08:43:50 +0000221 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000222 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000223 '<(webrtc_root)/test/test.gyp:channel_transport',
224 '<(webrtc_root)/test/test.gyp:test_support',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000225 ],
226 'sources': [
227 'test/cmd_test/voe_cmd_test.cc',
228 ],
229 },
230 ], # targets
231 'conditions': [
232 # TODO(kjellander): Support UseoFMFC on VS2010.
233 # http://code.google.com/p/webrtc/issues/detail?id=709
234 ['OS=="win" and MSVS_VERSION < "2010"', {
235 'targets': [
236 # WinTest - GUI test for Windows
237 {
238 'target_name': 'voe_ui_win_test',
239 'type': 'executable',
240 'dependencies': [
241 'voice_engine',
242 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
243 '<(webrtc_root)/test/test.gyp:test_support',
244 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000245 'sources': [
246 'test/win_test/Resource.h',
247 'test/win_test/WinTest.cc',
248 'test/win_test/WinTest.h',
249 'test/win_test/WinTest.rc',
250 'test/win_test/WinTestDlg.cc',
251 'test/win_test/WinTestDlg.h',
252 'test/win_test/res/WinTest.ico',
253 'test/win_test/res/WinTest.rc2',
254 'test/win_test/stdafx.cc',
255 'test/win_test/stdafx.h',
256 ],
257 'configurations': {
258 'Common_Base': {
259 'msvs_configuration_attributes': {
260 'conditions': [
261 ['component=="shared_library"', {
262 'UseOfMFC': '2', # Shared DLL
263 },{
264 'UseOfMFC': '1', # Static
265 }],
266 ],
267 },
268 },
269 },
270 'msvs_settings': {
271 'VCLinkerTool': {
272 'SubSystem': '2', # Windows
273 },
274 },
275 },
276 ], # targets
277 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000278 # TODO(henrike): remove build_with_chromium==1 when the bots are using
279 # Chromium's buildbots.
280 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
281 'targets': [
282 {
283 'target_name': 'voice_engine_unittests_apk_target',
284 'type': 'none',
285 'dependencies': [
286 '<(apk_tests_path):voice_engine_unittests_apk',
287 ],
288 },
289 ],
290 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000291 ['test_isolation_mode != "noop"', {
292 'targets': [
293 {
294 'target_name': 'voice_engine_unittests_run',
295 'type': 'none',
296 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000297 'voice_engine_unittests',
298 ],
299 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000300 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000301 'voice_engine_unittests.isolate',
302 ],
303 'sources': [
304 'voice_engine_unittests.isolate',
305 ],
306 },
307 {
308 'target_name': 'voe_auto_test_run',
309 'type': 'none',
310 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000311 'voe_auto_test',
312 ],
313 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000314 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000315 'voe_auto_test.isolate',
316 ],
317 'sources': [
318 'voe_auto_test.isolate',
319 ],
320 },
321 ],
322 }],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000323 ], # conditions
324 }], # include_tests
325 ], # conditions
xians@google.comd3185fe2011-09-12 12:24:39 +0000326}