blob: 3ec870dca9179c05ba4b6153e66ac0b7cec59b2a [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',
minyue@webrtc.orgc1a40a72014-05-28 09:52:06 +000023 '<(webrtc_root)/modules/modules.gyp:bitrate_controller',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000024 '<(webrtc_root)/modules/modules.gyp:media_file',
25 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
26 '<(webrtc_root)/modules/modules.gyp:webrtc_utility',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000027 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000028 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000029 'sources': [
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000030 'include/voe_audio_processing.h',
31 'include/voe_base.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000032 'include/voe_codec.h',
33 'include/voe_dtmf.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000034 'include/voe_errors.h',
35 'include/voe_external_media.h',
36 'include/voe_file.h',
37 'include/voe_hardware.h',
38 'include/voe_neteq_stats.h',
39 'include/voe_network.h',
40 'include/voe_rtp_rtcp.h',
41 'include/voe_video_sync.h',
42 'include/voe_volume_control.h',
43 'channel.cc',
44 'channel.h',
45 'channel_manager.cc',
46 'channel_manager.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000047 'dtmf_inband.cc',
48 'dtmf_inband.h',
49 'dtmf_inband_queue.cc',
50 'dtmf_inband_queue.h',
51 'level_indicator.cc',
52 'level_indicator.h',
53 'monitor_module.cc',
54 'monitor_module.h',
minyue@webrtc.org74aaf292014-07-16 21:28:26 +000055 'network_predictor.cc',
56 'network_predictor.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000057 'output_mixer.cc',
58 'output_mixer.h',
andrew@webrtc.orgf791b1c2013-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.orgf791b1c2013-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.orgf791b1c2013-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.org3ce62fc2011-10-06 01:03:18 +000096 ],
andrew@webrtc.orgf791b1c2013-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.org89c67402013-08-02 16:53:47 +0000105 'type': '<(gtest_target_type)',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000106 'dependencies': [
107 'voice_engine',
108 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.orgf791b1c2013-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',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000119 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000120 '<(webrtc_root)/test/test.gyp:test_support_main',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000121 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000122 'sources': [
123 'channel_unittest.cc',
minyue@webrtc.org74aaf292014-07-16 21:28:26 +0000124 'network_predictor_unittest.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000125 'transmit_mixer_unittest.cc',
andrew@webrtc.orga78a41f2014-04-08 23:09:28 +0000126 'utility_unittest.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000127 'voe_audio_processing_unittest.cc',
128 'voe_base_unittest.cc',
129 'voe_codec_unittest.cc',
130 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000131 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000132 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000133 'dependencies': [
134 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
135 ],
136 }],
137 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000138 },
139 {
140 'target_name': 'voe_auto_test',
141 'type': 'executable',
142 'dependencies': [
143 'voice_engine',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000144 '<(DEPTH)/testing/gmock.gyp:gmock',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000145 '<(DEPTH)/testing/gtest.gyp:gtest',
fischman@webrtc.orgdde7d4c2013-08-15 23:31:30 +0000146 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000147 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
148 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000149 '<(webrtc_root)/test/test.gyp:channel_transport',
150 '<(webrtc_root)/test/test.gyp:test_support',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000151 ],
andrew@webrtc.orgf791b1c2013-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',
solenberg@webrtc.org57e06022014-05-16 11:27:09 +0000164 'test/auto_test/fixtures/before_streaming_fixture.cc',
165 'test/auto_test/fixtures/before_streaming_fixture.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000166 'test/auto_test/standard/audio_processing_test.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000167 'test/auto_test/standard/codec_before_streaming_test.cc',
168 'test/auto_test/standard/codec_test.cc',
169 'test/auto_test/standard/dtmf_test.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000170 'test/auto_test/standard/external_media_test.cc',
171 'test/auto_test/standard/file_before_streaming_test.cc',
172 'test/auto_test/standard/file_test.cc',
173 'test/auto_test/standard/hardware_before_initializing_test.cc',
174 'test/auto_test/standard/hardware_before_streaming_test.cc',
175 'test/auto_test/standard/hardware_test.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000176 'test/auto_test/standard/mixing_test.cc',
177 'test/auto_test/standard/neteq_stats_test.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000178 'test/auto_test/standard/rtp_rtcp_before_streaming_test.cc',
wu@webrtc.orgebdb0e32014-03-06 23:49:08 +0000179 'test/auto_test/standard/rtp_rtcp_extensions.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000180 'test/auto_test/standard/rtp_rtcp_test.cc',
181 'test/auto_test/standard/voe_base_misc_test.cc',
182 'test/auto_test/standard/video_sync_test.cc',
183 'test/auto_test/standard/volume_test.cc',
184 'test/auto_test/resource_manager.cc',
185 'test/auto_test/voe_cpu_test.cc',
186 'test/auto_test/voe_cpu_test.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000187 'test/auto_test/voe_standard_test.cc',
188 'test/auto_test/voe_standard_test.h',
189 'test/auto_test/voe_stress_test.cc',
190 'test/auto_test/voe_stress_test.h',
191 'test/auto_test/voe_test_defines.h',
192 'test/auto_test/voe_test_interface.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000193 ],
194 'conditions': [
195 ['OS=="android"', {
196 # some tests are not supported on android yet, exclude these tests.
197 'sources!': [
198 'test/auto_test/standard/hardware_before_streaming_test.cc',
199 ],
200 }],
201 ],
202 # Disable warnings to enable Win64 build, issue 1323.
203 'msvs_disabled_warnings': [
204 4267, # size_t to int truncation.
205 ],
206 },
207 {
208 # command line test that should work on linux/mac/win
209 'target_name': 'voe_cmd_test',
210 'type': 'executable',
211 'dependencies': [
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000212 'voice_engine',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000213 '<(DEPTH)/testing/gtest.gyp:gtest',
minyue@webrtc.orgcc92e002013-09-30 08:43:50 +0000214 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000215 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
216 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000217 '<(webrtc_root)/test/test.gyp:channel_transport',
218 '<(webrtc_root)/test/test.gyp:test_support',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000219 ],
220 'sources': [
221 'test/cmd_test/voe_cmd_test.cc',
222 ],
223 },
224 ], # targets
225 'conditions': [
226 # TODO(kjellander): Support UseoFMFC on VS2010.
227 # http://code.google.com/p/webrtc/issues/detail?id=709
228 ['OS=="win" and MSVS_VERSION < "2010"', {
229 'targets': [
230 # WinTest - GUI test for Windows
231 {
232 'target_name': 'voe_ui_win_test',
233 'type': 'executable',
234 'dependencies': [
235 'voice_engine',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000236 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000237 '<(webrtc_root)/test/test.gyp:test_support',
238 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000239 'sources': [
240 'test/win_test/Resource.h',
241 'test/win_test/WinTest.cc',
242 'test/win_test/WinTest.h',
243 'test/win_test/WinTest.rc',
244 'test/win_test/WinTestDlg.cc',
245 'test/win_test/WinTestDlg.h',
246 'test/win_test/res/WinTest.ico',
247 'test/win_test/res/WinTest.rc2',
248 'test/win_test/stdafx.cc',
249 'test/win_test/stdafx.h',
250 ],
251 'configurations': {
252 'Common_Base': {
253 'msvs_configuration_attributes': {
254 'conditions': [
255 ['component=="shared_library"', {
256 'UseOfMFC': '2', # Shared DLL
257 },{
258 'UseOfMFC': '1', # Static
259 }],
260 ],
261 },
262 },
263 },
264 'msvs_settings': {
265 'VCLinkerTool': {
266 'SubSystem': '2', # Windows
267 },
268 },
269 },
270 ], # targets
271 }],
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000272 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000273 'targets': [
274 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000275 'target_name': 'voice_engine_unittests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000276 'type': 'none',
277 'dependencies': [
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000278 '<(apk_tests_path):voice_engine_unittests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000279 ],
280 },
281 ],
282 }],
kjellander@webrtc.org33654222013-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.org33654222013-08-22 07:57:00 +0000289 'voice_engine_unittests',
290 ],
291 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000292 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000293 ],
294 'sources': [
295 'voice_engine_unittests.isolate',
296 ],
297 },
298 {
299 'target_name': 'voe_auto_test_run',
300 'type': 'none',
301 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000302 'voe_auto_test',
303 ],
304 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000305 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000306 ],
307 'sources': [
308 'voe_auto_test.isolate',
309 ],
310 },
311 ],
312 }],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000313 ], # conditions
314 }], # include_tests
315 ], # conditions
xians@google.comd3185fe2011-09-12 12:24:39 +0000316}