blob: 1db0003a50cdc8478e1d894945190c10fe64d684 [file] [log] [blame]
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +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': [
11 '../build/common.gypi',
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000012 ],
andrew@webrtc.org5221d1c2013-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.orgb015cbe2012-10-22 18:19:23 +000027 ],
andrew@webrtc.org5221d1c2013-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',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +000034 'include/voe_codec.h',
35 'include/voe_dtmf.h',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +000036 'include/voe_errors.h',
37 'include/voe_external_media.h',
38 'include/voe_file.h',
39 'include/voe_hardware.h',
40 'include/voe_neteq_stats.h',
41 'include/voe_network.h',
42 'include/voe_rtp_rtcp.h',
43 'include/voe_video_sync.h',
44 'include/voe_volume_control.h',
45 'channel.cc',
46 'channel.h',
47 'channel_manager.cc',
48 'channel_manager.h',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +000049 'dtmf_inband.cc',
50 'dtmf_inband.h',
51 'dtmf_inband_queue.cc',
52 'dtmf_inband_queue.h',
53 'level_indicator.cc',
54 'level_indicator.h',
55 'monitor_module.cc',
56 'monitor_module.h',
57 'output_mixer.cc',
58 'output_mixer.h',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +000059 'shared_data.cc',
60 'shared_data.h',
61 'statistics.cc',
62 'statistics.h',
63 'transmit_mixer.cc',
64 'transmit_mixer.h',
65 'utility.cc',
66 'utility.h',
67 'voe_audio_processing_impl.cc',
68 'voe_audio_processing_impl.h',
69 'voe_base_impl.cc',
70 'voe_base_impl.h',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +000071 'voe_codec_impl.cc',
72 'voe_codec_impl.h',
73 'voe_dtmf_impl.cc',
74 'voe_dtmf_impl.h',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +000075 'voe_external_media_impl.cc',
76 'voe_external_media_impl.h',
77 'voe_file_impl.cc',
78 'voe_file_impl.h',
79 'voe_hardware_impl.cc',
80 'voe_hardware_impl.h',
81 'voe_neteq_stats_impl.cc',
82 'voe_neteq_stats_impl.h',
83 'voe_network_impl.cc',
84 'voe_network_impl.h',
85 'voe_rtp_rtcp_impl.cc',
86 'voe_rtp_rtcp_impl.h',
87 'voe_video_sync_impl.cc',
88 'voe_video_sync_impl.h',
89 'voe_volume_control_impl.cc',
90 'voe_volume_control_impl.h',
91 'voice_engine_defines.h',
92 'voice_engine_impl.cc',
93 'voice_engine_impl.h',
94 ],
95 },
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000096 ],
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +000097 'conditions': [
98 ['OS=="win"', {
99 'defines': ['WEBRTC_DRIFT_COMPENSATION_SUPPORTED',],
100 }],
101 ['include_tests==1', {
102 'targets': [
103 {
104 'target_name': 'voice_engine_unittests',
henrike@webrtc.orgacb00f52013-08-02 16:53:47 +0000105 'type': '<(gtest_target_type)',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000106 'dependencies': [
107 'voice_engine',
108 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000109 # The rest are to satisfy the unittests' include chain.
110 # This would be unnecessary if we used qualified includes.
111 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
112 '<(webrtc_root)/modules/modules.gyp:audio_device',
113 '<(webrtc_root)/modules/modules.gyp:audio_processing',
114 '<(webrtc_root)/modules/modules.gyp:audio_coding_module',
115 '<(webrtc_root)/modules/modules.gyp:audio_conference_mixer',
116 '<(webrtc_root)/modules/modules.gyp:media_file',
117 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
118 '<(webrtc_root)/modules/modules.gyp:webrtc_utility',
119 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.org46cec2a2013-06-11 08:29:17 +0000120 '<(webrtc_root)/test/test.gyp:test_support_main',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000121 ],
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000122 'sources': [
123 'channel_unittest.cc',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000124 'transmit_mixer_unittest.cc',
andrew@webrtc.org01f45922014-04-08 23:09:28 +0000125 'utility_unittest.cc',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000126 'voe_audio_processing_unittest.cc',
127 'voe_base_unittest.cc',
128 'voe_codec_unittest.cc',
129 ],
henrike@webrtc.orgacb00f52013-08-02 16:53:47 +0000130 'conditions': [
131 # TODO(henrike): remove build_with_chromium==1 when the bots are
132 # using Chromium's buildbots.
133 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
134 'dependencies': [
135 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
136 ],
137 }],
138 ],
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000139 },
140 {
141 'target_name': 'voe_auto_test',
142 'type': 'executable',
143 'dependencies': [
144 'voice_engine',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000145 '<(DEPTH)/testing/gmock.gyp:gmock',
kjellander@webrtc.org46cec2a2013-06-11 08:29:17 +0000146 '<(DEPTH)/testing/gtest.gyp:gtest',
fischman@webrtc.org1e817c32013-08-15 23:31:30 +0000147 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander@webrtc.org46cec2a2013-06-11 08:29:17 +0000148 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.org46cec2a2013-06-11 08:29:17 +0000149 '<(webrtc_root)/test/test.gyp:channel_transport',
150 '<(webrtc_root)/test/test.gyp:test_support',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000151 ],
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000152 'sources': [
153 'test/auto_test/automated_mode.cc',
154 'test/auto_test/extended/agc_config_test.cc',
155 'test/auto_test/extended/ec_metrics_test.cc',
156 'test/auto_test/fakes/fake_external_transport.cc',
157 'test/auto_test/fakes/fake_external_transport.h',
158 'test/auto_test/fixtures/after_initialization_fixture.cc',
159 'test/auto_test/fixtures/after_initialization_fixture.h',
160 'test/auto_test/fixtures/after_streaming_fixture.cc',
161 'test/auto_test/fixtures/after_streaming_fixture.h',
162 'test/auto_test/fixtures/before_initialization_fixture.cc',
163 'test/auto_test/fixtures/before_initialization_fixture.h',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000164 'test/auto_test/standard/audio_processing_test.cc',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000165 'test/auto_test/standard/codec_before_streaming_test.cc',
166 'test/auto_test/standard/codec_test.cc',
167 'test/auto_test/standard/dtmf_test.cc',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000168 'test/auto_test/standard/external_media_test.cc',
169 'test/auto_test/standard/file_before_streaming_test.cc',
170 'test/auto_test/standard/file_test.cc',
171 'test/auto_test/standard/hardware_before_initializing_test.cc',
172 'test/auto_test/standard/hardware_before_streaming_test.cc',
173 'test/auto_test/standard/hardware_test.cc',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000174 'test/auto_test/standard/mixing_test.cc',
175 'test/auto_test/standard/neteq_stats_test.cc',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000176 'test/auto_test/standard/network_test.cc',
177 'test/auto_test/standard/rtp_rtcp_before_streaming_test.cc',
wu@webrtc.org9a823222014-03-06 23:49:08 +0000178 'test/auto_test/standard/rtp_rtcp_extensions.cc',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000179 'test/auto_test/standard/rtp_rtcp_test.cc',
180 'test/auto_test/standard/voe_base_misc_test.cc',
181 'test/auto_test/standard/video_sync_test.cc',
182 'test/auto_test/standard/volume_test.cc',
183 'test/auto_test/resource_manager.cc',
184 'test/auto_test/voe_cpu_test.cc',
185 'test/auto_test/voe_cpu_test.h',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000186 'test/auto_test/voe_standard_test.cc',
187 'test/auto_test/voe_standard_test.h',
188 'test/auto_test/voe_stress_test.cc',
189 'test/auto_test/voe_stress_test.h',
190 'test/auto_test/voe_test_defines.h',
191 'test/auto_test/voe_test_interface.h',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000192 ],
193 'conditions': [
194 ['OS=="android"', {
195 # some tests are not supported on android yet, exclude these tests.
196 'sources!': [
197 'test/auto_test/standard/hardware_before_streaming_test.cc',
198 ],
199 }],
200 ],
201 # Disable warnings to enable Win64 build, issue 1323.
202 'msvs_disabled_warnings': [
203 4267, # size_t to int truncation.
204 ],
205 },
206 {
207 # command line test that should work on linux/mac/win
208 'target_name': 'voe_cmd_test',
209 'type': 'executable',
210 'dependencies': [
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000211 'voice_engine',
kjellander@webrtc.org46cec2a2013-06-11 08:29:17 +0000212 '<(DEPTH)/testing/gtest.gyp:gtest',
minyue@webrtc.org0de00492013-09-30 08:43:50 +0000213 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000214 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.org46cec2a2013-06-11 08:29:17 +0000215 '<(webrtc_root)/test/test.gyp:channel_transport',
216 '<(webrtc_root)/test/test.gyp:test_support',
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000217 ],
218 'sources': [
219 'test/cmd_test/voe_cmd_test.cc',
220 ],
221 },
222 ], # targets
223 'conditions': [
224 # TODO(kjellander): Support UseoFMFC on VS2010.
225 # http://code.google.com/p/webrtc/issues/detail?id=709
226 ['OS=="win" and MSVS_VERSION < "2010"', {
227 'targets': [
228 # WinTest - GUI test for Windows
229 {
230 'target_name': 'voe_ui_win_test',
231 'type': 'executable',
232 'dependencies': [
233 'voice_engine',
234 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
235 '<(webrtc_root)/test/test.gyp:test_support',
236 ],
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000237 'sources': [
238 'test/win_test/Resource.h',
239 'test/win_test/WinTest.cc',
240 'test/win_test/WinTest.h',
241 'test/win_test/WinTest.rc',
242 'test/win_test/WinTestDlg.cc',
243 'test/win_test/WinTestDlg.h',
244 'test/win_test/res/WinTest.ico',
245 'test/win_test/res/WinTest.rc2',
246 'test/win_test/stdafx.cc',
247 'test/win_test/stdafx.h',
248 ],
249 'configurations': {
250 'Common_Base': {
251 'msvs_configuration_attributes': {
252 'conditions': [
253 ['component=="shared_library"', {
254 'UseOfMFC': '2', # Shared DLL
255 },{
256 'UseOfMFC': '1', # Static
257 }],
258 ],
259 },
260 },
261 },
262 'msvs_settings': {
263 'VCLinkerTool': {
264 'SubSystem': '2', # Windows
265 },
266 },
267 },
268 ], # targets
269 }],
henrike@webrtc.orgacb00f52013-08-02 16:53:47 +0000270 # TODO(henrike): remove build_with_chromium==1 when the bots are using
271 # Chromium's buildbots.
272 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
273 'targets': [
274 {
275 'target_name': 'voice_engine_unittests_apk_target',
276 'type': 'none',
277 'dependencies': [
278 '<(apk_tests_path):voice_engine_unittests_apk',
279 ],
280 },
281 ],
282 }],
kjellander@webrtc.org3540c822013-08-22 07:57:00 +0000283 ['test_isolation_mode != "noop"', {
284 'targets': [
285 {
286 'target_name': 'voice_engine_unittests_run',
287 'type': 'none',
288 'dependencies': [
kjellander@webrtc.org3540c822013-08-22 07:57:00 +0000289 'voice_engine_unittests',
290 ],
291 'includes': [
kjellander@webrtc.org22a28932013-10-02 19:31:16 +0000292 '../build/isolate.gypi',
kjellander@webrtc.org3540c822013-08-22 07:57:00 +0000293 'voice_engine_unittests.isolate',
294 ],
295 'sources': [
296 'voice_engine_unittests.isolate',
297 ],
298 },
299 {
300 'target_name': 'voe_auto_test_run',
301 'type': 'none',
302 'dependencies': [
kjellander@webrtc.org3540c822013-08-22 07:57:00 +0000303 'voe_auto_test',
304 ],
305 'includes': [
kjellander@webrtc.org22a28932013-10-02 19:31:16 +0000306 '../build/isolate.gypi',
kjellander@webrtc.org3540c822013-08-22 07:57:00 +0000307 'voe_auto_test.isolate',
308 ],
309 'sources': [
310 'voe_auto_test.isolate',
311 ],
312 },
313 ],
314 }],
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000315 ], # conditions
316 }], # include_tests
317 ], # conditions
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +0000318}