blob: 683b355cc70146bfdb24c41c20caf2857a255279 [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': [
wjia@google.comfdaee9c2011-09-17 00:06:08 +000011 '../build/common.gypi',
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +000012 'audio_coding/audio_coding.gypi',
andresp@webrtc.org749c6022015-02-25 11:50:17 +000013 'audio_conference_mixer/audio_conference_mixer.gypi',
andrew@webrtc.org236d5d32012-09-21 20:46:40 +000014 'audio_device/audio_device.gypi',
andrew@webrtc.org4d5d5c12011-10-19 01:40:33 +000015 'audio_processing/audio_processing.gypi',
pwestin@webrtc.org1cd11622012-04-19 12:13:52 +000016 'bitrate_controller/bitrate_controller.gypi',
sergeyu@chromium.org15e32cc2013-04-29 20:10:57 +000017 'desktop_capture/desktop_capture.gypi',
andresp@webrtc.org87a592d2015-02-25 03:18:23 +000018 'media_file/media_file.gypi',
pwestin@webrtc.orgb5180172012-11-09 20:56:23 +000019 'pacing/pacing.gypi',
stefan@webrtc.org9354cc92012-06-07 08:10:14 +000020 'remote_bitrate_estimator/remote_bitrate_estimator.gypi',
andresp@webrtc.org749c6022015-02-25 11:50:17 +000021 'rtp_rtcp/rtp_rtcp.gypi',
22 'utility/utility.gypi',
Zeke Chin71f6f442015-06-29 14:34:58 -070023 'video_coding/codecs/h264/h264.gypi',
Henrik Kjellandera74c08d2015-10-22 12:23:11 +020024 'video_coding/codecs/i420/i420.gypi',
andresp@webrtc.org749c6022015-02-25 11:50:17 +000025 'video_coding/video_coding.gypi',
andrew@webrtc.org94caca72012-10-30 21:58:00 +000026 'video_capture/video_capture.gypi',
andresp@webrtc.org749c6022015-02-25 11:50:17 +000027 'video_processing/video_processing.gypi',
andrew@webrtc.org9841d922012-10-31 05:22:11 +000028 'video_render/video_render.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000029 ],
xians@google.comd3185fe2011-09-12 12:24:39 +000030 'conditions': [
mflodman@webrtc.org6af95942012-05-24 13:23:35 +000031 ['include_tests==1', {
xians@google.comd3185fe2011-09-12 12:24:39 +000032 'includes': [
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +000033 'audio_coding/audio_coding_tests.gypi',
andrew@webrtc.orgc732ca62012-09-10 16:33:43 +000034 'audio_processing/audio_processing_tests.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000035 'rtp_rtcp/test/testFec/test_fec.gypi',
andresp@webrtc.org749c6022015-02-25 11:50:17 +000036 'video_coding/video_coding_test.gypi',
kjellander@webrtc.org35a17562011-10-06 06:44:54 +000037 'video_coding/codecs/test/video_codecs_test_framework.gypi',
38 'video_coding/codecs/tools/video_codecs_tools.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000039 ], # includes
solenberg@webrtc.org86136a02013-09-09 13:06:52 +000040 'variables': {
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000041 'conditions': [
42 # Desktop capturer is supported only on Windows, OSX and Linux.
43 ['OS=="win" or OS=="mac" or OS=="linux"', {
44 'desktop_capture_supported%': 1,
45 }, {
46 'desktop_capture_supported%': 0,
47 }],
hbosbab934b2016-01-27 01:36:03 -080048 ['rtc_use_h264==1', {
49 'videoprocessor_defines': [
50 'WEBRTC_VIDEOPROCESSOR_H264_TESTS',
51 ],
52 }, {
53 'videoprocessor_defines': [],
54 }],
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000055 ],
56 },
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +000057 'targets': [
58 {
phoglund@webrtc.org32fe90b2013-08-19 11:40:19 +000059 'target_name': 'modules_tests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +000060 'type': '<(gtest_target_type)',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000061 'dependencies': [
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000062 '<(DEPTH)/testing/gtest.gyp:gtest',
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000063 '<(webrtc_root)/common.gyp:webrtc_common',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000064 '<(webrtc_root)/common_video/common_video.gyp:common_video',
65 '<(webrtc_root)/modules/video_coding/codecs/vp8/vp8.gyp:webrtc_vp8',
marpan@webrtc.org5b883172014-11-01 06:10:48 +000066 '<(webrtc_root)/modules/video_coding/codecs/vp9/vp9.gyp:webrtc_vp9',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000067 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000068 '<(webrtc_root)/test/metrics.gyp:metrics',
69 '<(webrtc_root)/test/test.gyp:test_support',
70 '<(webrtc_root)/test/test.gyp:test_support_main',
pbos@webrtc.org788acd12014-12-15 09:41:24 +000071 'audio_coding_module',
72 'rtp_rtcp',
73 'video_codecs_test_framework',
74 'webrtc_utility',
75 'webrtc_video_coding',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000076 ],
77 'defines': [
78 '<@(audio_coding_defines)',
hbosbab934b2016-01-27 01:36:03 -080079 '<@(videoprocessor_defines)',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000080 ],
81 'sources': [
kjellander3e6db232015-11-26 04:44:54 -080082 'audio_coding/test/APITest.cc',
83 'audio_coding/test/Channel.cc',
84 'audio_coding/test/EncodeDecodeTest.cc',
85 'audio_coding/test/PCMFile.cc',
86 'audio_coding/test/PacketLossTest.cc',
87 'audio_coding/test/RTPFile.cc',
88 'audio_coding/test/SpatialAudio.cc',
89 'audio_coding/test/TestAllCodecs.cc',
90 'audio_coding/test/TestRedFec.cc',
91 'audio_coding/test/TestStereo.cc',
92 'audio_coding/test/TestVADDTX.cc',
93 'audio_coding/test/Tester.cc',
94 'audio_coding/test/TimedTrace.cc',
95 'audio_coding/test/TwoWayCommunication.cc',
96 'audio_coding/test/iSACTest.cc',
97 'audio_coding/test/opus_test.cc',
98 'audio_coding/test/target_delay_unittest.cc',
99 'audio_coding/test/utility.cc',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000100 'rtp_rtcp/test/testFec/test_fec.cc',
101 'video_coding/codecs/test/videoprocessor_integrationtest.cc',
102 'video_coding/codecs/vp8/test/vp8_impl_unittest.cc',
103 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000104 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000105 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000106 'dependencies': [
107 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
108 ],
109 }],
kjellander02060002016-02-16 22:06:12 -0800110 ['OS=="ios"', {
111 'mac_bundle_resources': [
112 '<(DEPTH)/resources/audio_coding/testfile32kHz.pcm',
113 '<(DEPTH)/resources/audio_coding/teststereo32kHz.pcm',
114 '<(DEPTH)/resources/foreman_cif.yuv',
115 '<(DEPTH)/resources/paris_qcif.yuv',
116 ],
117 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000118 ],
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000119 },
kjellander9ac4df12016-02-18 13:15:09 -0800120 {
121 'target_name': 'modules_unittests',
122 'type': '<(gtest_target_type)',
123 'defines': [
124 '<@(audio_coding_defines)',
125 ],
126 'dependencies': [
127 'acm_receive_test',
128 'acm_send_test',
129 'audio_coding_module',
130 'audio_conference_mixer',
131 'audio_device' ,
132 'audio_processing',
133 'audioproc_test_utils',
134 'bitrate_controller',
135 'bwe_simulator',
136 'cng',
137 'isac_fix',
138 'media_file',
139 'neteq',
140 'neteq_test_support',
141 'neteq_unittest_tools',
142 'paced_sender',
143 'pcm16b', # Needed by NetEq tests.
144 'red',
145 'remote_bitrate_estimator',
146 'rtp_rtcp',
147 'video_codecs_test_framework',
148 'video_processing',
149 'webrtc_utility',
150 'webrtc_video_coding',
151 '<@(neteq_dependencies)',
152 '<(DEPTH)/testing/gmock.gyp:gmock',
153 '<(DEPTH)/testing/gtest.gyp:gtest',
154 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
155 '<(webrtc_root)/common.gyp:webrtc_common',
156 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
157 '<(webrtc_root)/common_video/common_video.gyp:common_video',
158 '<(webrtc_root)/modules/modules.gyp:video_capture',
159 '<(webrtc_root)/modules/video_coding/codecs/vp8/vp8.gyp:webrtc_vp8',
160 '<(webrtc_root)/modules/video_coding/codecs/vp9/vp9.gyp:webrtc_vp9',
161 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
162 '<(webrtc_root)/test/test.gyp:fake_video_frames',
163 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
164 '<(webrtc_root)/test/test.gyp:test_support_main',
165 '<(webrtc_root)/test/webrtc_test_common.gyp:webrtc_test_common',
166 '<(webrtc_root)/tools/tools.gyp:agc_test_utils',
167 ],
168 'sources': [
169 'audio_coding/codecs/cng/audio_encoder_cng_unittest.cc',
170 'audio_coding/acm2/acm_receiver_unittest_oldapi.cc',
171 'audio_coding/acm2/audio_coding_module_unittest_oldapi.cc',
172 'audio_coding/acm2/call_statistics_unittest.cc',
173 'audio_coding/acm2/codec_manager_unittest.cc',
174 'audio_coding/acm2/initial_delay_manager_unittest.cc',
175 'audio_coding/acm2/rent_a_codec_unittest.cc',
176 'audio_coding/codecs/cng/cng_unittest.cc',
177 'audio_coding/codecs/isac/fix/source/filterbanks_unittest.cc',
178 'audio_coding/codecs/isac/fix/source/filters_unittest.cc',
179 'audio_coding/codecs/isac/fix/source/lpc_masking_model_unittest.cc',
180 'audio_coding/codecs/isac/fix/source/transform_unittest.cc',
181 'audio_coding/codecs/isac/main/source/audio_encoder_isac_unittest.cc',
182 'audio_coding/codecs/isac/main/source/isac_unittest.cc',
183 'audio_coding/codecs/isac/unittest.cc',
184 'audio_coding/codecs/opus/audio_encoder_opus_unittest.cc',
185 'audio_coding/codecs/opus/opus_unittest.cc',
186 'audio_coding/codecs/red/audio_encoder_copy_red_unittest.cc',
187 'audio_coding/neteq/audio_classifier_unittest.cc',
188 'audio_coding/neteq/audio_multi_vector_unittest.cc',
189 'audio_coding/neteq/audio_vector_unittest.cc',
190 'audio_coding/neteq/background_noise_unittest.cc',
191 'audio_coding/neteq/buffer_level_filter_unittest.cc',
192 'audio_coding/neteq/comfort_noise_unittest.cc',
193 'audio_coding/neteq/decision_logic_unittest.cc',
194 'audio_coding/neteq/decoder_database_unittest.cc',
195 'audio_coding/neteq/delay_manager_unittest.cc',
196 'audio_coding/neteq/delay_peak_detector_unittest.cc',
197 'audio_coding/neteq/dsp_helper_unittest.cc',
198 'audio_coding/neteq/dtmf_buffer_unittest.cc',
199 'audio_coding/neteq/dtmf_tone_generator_unittest.cc',
200 'audio_coding/neteq/expand_unittest.cc',
201 'audio_coding/neteq/merge_unittest.cc',
202 'audio_coding/neteq/nack_unittest.cc',
203 'audio_coding/neteq/neteq_external_decoder_unittest.cc',
204 'audio_coding/neteq/neteq_impl_unittest.cc',
205 'audio_coding/neteq/neteq_network_stats_unittest.cc',
206 'audio_coding/neteq/neteq_stereo_unittest.cc',
207 'audio_coding/neteq/neteq_unittest.cc',
208 'audio_coding/neteq/normal_unittest.cc',
209 'audio_coding/neteq/packet_buffer_unittest.cc',
210 'audio_coding/neteq/payload_splitter_unittest.cc',
211 'audio_coding/neteq/post_decode_vad_unittest.cc',
212 'audio_coding/neteq/random_vector_unittest.cc',
213 'audio_coding/neteq/sync_buffer_unittest.cc',
214 'audio_coding/neteq/timestamp_scaler_unittest.cc',
215 'audio_coding/neteq/time_stretch_unittest.cc',
216 'audio_coding/neteq/mock/mock_audio_decoder.h',
217 'audio_coding/neteq/mock/mock_audio_vector.h',
218 'audio_coding/neteq/mock/mock_buffer_level_filter.h',
219 'audio_coding/neteq/mock/mock_decoder_database.h',
220 'audio_coding/neteq/mock/mock_delay_manager.h',
221 'audio_coding/neteq/mock/mock_delay_peak_detector.h',
222 'audio_coding/neteq/mock/mock_dtmf_buffer.h',
223 'audio_coding/neteq/mock/mock_dtmf_tone_generator.h',
224 'audio_coding/neteq/mock/mock_expand.h',
225 'audio_coding/neteq/mock/mock_external_decoder_pcm16b.h',
226 'audio_coding/neteq/mock/mock_packet_buffer.h',
227 'audio_coding/neteq/mock/mock_payload_splitter.h',
228 'audio_coding/neteq/tools/input_audio_file_unittest.cc',
229 'audio_coding/neteq/tools/packet_unittest.cc',
230 'audio_conference_mixer/test/audio_conference_mixer_unittest.cc',
231 'audio_device/fine_audio_buffer_unittest.cc',
232 'audio_processing/aec/echo_cancellation_unittest.cc',
233 'audio_processing/aec/system_delay_unittest.cc',
234 'audio_processing/agc/agc_manager_direct_unittest.cc',
235 # TODO(ajm): Fix to match new interface.
236 # 'audio_processing/agc/agc_unittest.cc',
237 'audio_processing/agc/histogram_unittest.cc',
238 'audio_processing/agc/mock_agc.h',
239 'audio_processing/beamformer/array_util_unittest.cc',
240 'audio_processing/beamformer/complex_matrix_unittest.cc',
241 'audio_processing/beamformer/covariance_matrix_generator_unittest.cc',
242 'audio_processing/beamformer/matrix_unittest.cc',
243 'audio_processing/beamformer/mock_nonlinear_beamformer.h',
244 'audio_processing/beamformer/nonlinear_beamformer_unittest.cc',
245 'audio_processing/echo_cancellation_impl_unittest.cc',
246 'audio_processing/intelligibility/intelligibility_enhancer_unittest.cc',
247 'audio_processing/intelligibility/intelligibility_utils_unittest.cc',
248 'audio_processing/splitting_filter_unittest.cc',
249 'audio_processing/transient/dyadic_decimator_unittest.cc',
250 'audio_processing/transient/file_utils.cc',
251 'audio_processing/transient/file_utils.h',
252 'audio_processing/transient/file_utils_unittest.cc',
253 'audio_processing/transient/moving_moments_unittest.cc',
254 'audio_processing/transient/transient_detector_unittest.cc',
255 'audio_processing/transient/transient_suppressor_unittest.cc',
256 'audio_processing/transient/wpd_node_unittest.cc',
257 'audio_processing/transient/wpd_tree_unittest.cc',
258 'audio_processing/utility/delay_estimator_unittest.cc',
259 'audio_processing/vad/gmm_unittest.cc',
260 'audio_processing/vad/pitch_based_vad_unittest.cc',
261 'audio_processing/vad/pitch_internal_unittest.cc',
262 'audio_processing/vad/pole_zero_filter_unittest.cc',
263 'audio_processing/vad/standalone_vad_unittest.cc',
264 'audio_processing/vad/vad_audio_proc_unittest.cc',
265 'audio_processing/vad/vad_circular_buffer_unittest.cc',
266 'audio_processing/vad/voice_activity_detector_unittest.cc',
267 'bitrate_controller/bitrate_controller_unittest.cc',
268 'bitrate_controller/send_side_bandwidth_estimation_unittest.cc',
269 'media_file/media_file_unittest.cc',
270 'module_common_types_unittest.cc',
271 'pacing/bitrate_prober_unittest.cc',
272 'pacing/paced_sender_unittest.cc',
273 'pacing/packet_router_unittest.cc',
274 'remote_bitrate_estimator/bwe_simulations.cc',
275 'remote_bitrate_estimator/include/mock/mock_remote_bitrate_observer.h',
276 'remote_bitrate_estimator/include/mock/mock_remote_bitrate_estimator.h',
277 'remote_bitrate_estimator/inter_arrival_unittest.cc',
278 'remote_bitrate_estimator/overuse_detector_unittest.cc',
279 'remote_bitrate_estimator/rate_statistics_unittest.cc',
280 'remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time_unittest.cc',
281 'remote_bitrate_estimator/remote_bitrate_estimator_single_stream_unittest.cc',
282 'remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc',
283 'remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.h',
284 'remote_bitrate_estimator/remote_estimator_proxy_unittest.cc',
285 'remote_bitrate_estimator/send_time_history_unittest.cc',
286 'remote_bitrate_estimator/test/bwe_test_framework_unittest.cc',
287 'remote_bitrate_estimator/test/bwe_unittest.cc',
288 'remote_bitrate_estimator/test/metric_recorder_unittest.cc',
289 'remote_bitrate_estimator/test/estimators/nada_unittest.cc',
290 'remote_bitrate_estimator/transport_feedback_adapter_unittest.cc',
291 'rtp_rtcp/source/mock/mock_rtp_payload_strategy.h',
292 'rtp_rtcp/source/byte_io_unittest.cc',
293 'rtp_rtcp/source/fec_receiver_unittest.cc',
294 'rtp_rtcp/source/fec_test_helper.cc',
295 'rtp_rtcp/source/fec_test_helper.h',
296 'rtp_rtcp/source/h264_sps_parser_unittest.cc',
297 'rtp_rtcp/source/h264_bitstream_parser_unittest.cc',
298 'rtp_rtcp/source/nack_rtx_unittest.cc',
299 'rtp_rtcp/source/packet_loss_stats_unittest.cc',
300 'rtp_rtcp/source/producer_fec_unittest.cc',
301 'rtp_rtcp/source/receive_statistics_unittest.cc',
302 'rtp_rtcp/source/remote_ntp_time_estimator_unittest.cc',
303 'rtp_rtcp/source/rtcp_format_remb_unittest.cc',
304 'rtp_rtcp/source/rtcp_packet_unittest.cc',
305 'rtp_rtcp/source/rtcp_packet/app_unittest.cc',
306 'rtp_rtcp/source/rtcp_packet/bye_unittest.cc',
307 'rtp_rtcp/source/rtcp_packet/compound_packet_unittest.cc',
308 'rtp_rtcp/source/rtcp_packet/dlrr_unittest.cc',
309 'rtp_rtcp/source/rtcp_packet/extended_jitter_report_unittest.cc',
310 'rtp_rtcp/source/rtcp_packet/extended_reports_unittest.cc',
311 'rtp_rtcp/source/rtcp_packet/fir_unittest.cc',
312 'rtp_rtcp/source/rtcp_packet/nack_unittest.cc',
313 'rtp_rtcp/source/rtcp_packet/pli_unittest.cc',
314 'rtp_rtcp/source/rtcp_packet/rapid_resync_request_unittest.cc',
315 'rtp_rtcp/source/rtcp_packet/receiver_report_unittest.cc',
316 'rtp_rtcp/source/rtcp_packet/remb_unittest.cc',
317 'rtp_rtcp/source/rtcp_packet/report_block_unittest.cc',
318 'rtp_rtcp/source/rtcp_packet/rpsi_unittest.cc',
319 'rtp_rtcp/source/rtcp_packet/rrtr_unittest.cc',
320 'rtp_rtcp/source/rtcp_packet/sdes_unittest.cc',
321 'rtp_rtcp/source/rtcp_packet/sender_report_unittest.cc',
322 'rtp_rtcp/source/rtcp_packet/sli_unittest.cc',
323 'rtp_rtcp/source/rtcp_packet/tmmbn_unittest.cc',
324 'rtp_rtcp/source/rtcp_packet/tmmbr_unittest.cc',
325 'rtp_rtcp/source/rtcp_packet/transport_feedback_unittest.cc',
326 'rtp_rtcp/source/rtcp_packet/voip_metric_unittest.cc',
327 'rtp_rtcp/source/rtcp_receiver_unittest.cc',
328 'rtp_rtcp/source/rtcp_sender_unittest.cc',
329 'rtp_rtcp/source/rtcp_utility_unittest.cc',
330 'rtp_rtcp/source/rtp_fec_unittest.cc',
331 'rtp_rtcp/source/rtp_format_h264_unittest.cc',
332 'rtp_rtcp/source/rtp_format_vp8_test_helper.cc',
333 'rtp_rtcp/source/rtp_format_vp8_test_helper.h',
334 'rtp_rtcp/source/rtp_format_vp8_unittest.cc',
335 'rtp_rtcp/source/rtp_format_vp9_unittest.cc',
336 'rtp_rtcp/source/rtp_packet_history_unittest.cc',
337 'rtp_rtcp/source/rtp_payload_registry_unittest.cc',
338 'rtp_rtcp/source/rtp_rtcp_impl_unittest.cc',
339 'rtp_rtcp/source/rtp_header_extension_unittest.cc',
340 'rtp_rtcp/source/rtp_sender_unittest.cc',
341 'rtp_rtcp/source/time_util_unittest.cc',
342 'rtp_rtcp/source/vp8_partition_aggregator_unittest.cc',
343 'rtp_rtcp/test/testAPI/test_api.cc',
344 'rtp_rtcp/test/testAPI/test_api.h',
345 'rtp_rtcp/test/testAPI/test_api_audio.cc',
346 'rtp_rtcp/test/testAPI/test_api_rtcp.cc',
347 'rtp_rtcp/test/testAPI/test_api_video.cc',
348 'utility/source/audio_frame_operations_unittest.cc',
349 'utility/source/file_player_unittests.cc',
350 'utility/source/process_thread_impl_unittest.cc',
351 'video_coding/codecs/test/packet_manipulator_unittest.cc',
352 'video_coding/codecs/test/stats_unittest.cc',
353 'video_coding/codecs/test/videoprocessor_unittest.cc',
354 'video_coding/codecs/vp8/default_temporal_layers_unittest.cc',
355 'video_coding/codecs/vp8/reference_picture_selection_unittest.cc',
356 'video_coding/codecs/vp8/screenshare_layers_unittest.cc',
357 'video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc',
358 'video_coding/codecs/vp8/simulcast_unittest.cc',
359 'video_coding/codecs/vp8/simulcast_unittest.h',
360 'video_coding/codecs/vp9/screenshare_layers_unittest.cc',
361 'video_coding/include/mock/mock_vcm_callbacks.h',
362 'video_coding/decoding_state_unittest.cc',
363 'video_coding/jitter_buffer_unittest.cc',
364 'video_coding/jitter_estimator_tests.cc',
365 'video_coding/media_optimization_unittest.cc',
366 'video_coding/receiver_unittest.cc',
367 'video_coding/session_info_unittest.cc',
368 'video_coding/timing_unittest.cc',
369 'video_coding/video_coding_robustness_unittest.cc',
370 'video_coding/video_receiver_unittest.cc',
371 'video_coding/video_sender_unittest.cc',
372 'video_coding/qm_select_unittest.cc',
373 'video_coding/test/stream_generator.cc',
374 'video_coding/test/stream_generator.h',
375 'video_coding/utility/quality_scaler_unittest.cc',
376 'video_processing/test/brightness_detection_test.cc',
377 'video_processing/test/content_metrics_test.cc',
378 'video_processing/test/deflickering_test.cc',
379 'video_processing/test/denoiser_test.cc',
380 'video_processing/test/video_processing_unittest.cc',
381 'video_processing/test/video_processing_unittest.h',
382 ],
383 'conditions': [
384 ['enable_bwe_test_logging==1', {
385 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1' ],
386 }, {
387 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0' ],
388 'sources!': [
389 'remote_bitrate_estimator/test/bwe_test_logging.cc'
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100390 ],
kjellander9ac4df12016-02-18 13:15:09 -0800391 }],
392 # Run screen/window capturer tests only on platforms where they are
393 # supported.
394 ['desktop_capture_supported==1 or OS=="android"', {
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100395 'dependencies': [
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100396 'desktop_capture',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100397 ],
398 'sources': [
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100399 'desktop_capture/desktop_region_unittest.cc',
400 'desktop_capture/differ_block_unittest.cc',
401 'desktop_capture/differ_unittest.cc',
kjellander9ac4df12016-02-18 13:15:09 -0800402 ],
403 }],
404 ['desktop_capture_supported==1', {
405 'sources': [
406 'desktop_capture/desktop_and_cursor_composer_unittest.cc',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100407 'desktop_capture/mouse_cursor_monitor_unittest.cc',
408 'desktop_capture/screen_capturer_helper_unittest.cc',
409 'desktop_capture/screen_capturer_mac_unittest.cc',
410 'desktop_capture/screen_capturer_mock_objects.h',
411 'desktop_capture/screen_capturer_unittest.cc',
412 'desktop_capture/window_capturer_unittest.cc',
413 'desktop_capture/win/cursor_unittest.cc',
414 'desktop_capture/win/cursor_unittest_resources.h',
415 'desktop_capture/win/cursor_unittest_resources.rc',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100416 ],
kjellander9ac4df12016-02-18 13:15:09 -0800417 }],
418 ['prefer_fixed_point==1', {
419 'defines': [ 'WEBRTC_AUDIOPROC_FIXED_PROFILE' ],
420 }, {
421 'defines': [ 'WEBRTC_AUDIOPROC_FLOAT_PROFILE' ],
422 }],
423 ['enable_protobuf==1', {
424 'defines': [
425 'WEBRTC_AUDIOPROC_DEBUG_DUMP',
426 'WEBRTC_NETEQ_UNITTEST_BITEXACT',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100427 ],
kjellander9ac4df12016-02-18 13:15:09 -0800428 'dependencies': [
429 'audioproc_protobuf_utils',
430 'audioproc_unittest_proto',
431 'neteq_unittest_proto',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100432 ],
kjellander9ac4df12016-02-18 13:15:09 -0800433 'sources': [
434 'audio_processing/audio_processing_impl_locking_unittest.cc',
435 'audio_processing/audio_processing_impl_unittest.cc',
436 'audio_processing/test/audio_processing_unittest.cc',
437 'audio_processing/test/debug_dump_test.cc',
438 'audio_processing/test/test_utils.h',
439 ],
440 }],
441 ['build_libvpx==1', {
442 'dependencies': [
443 '<(libvpx_dir)/libvpx.gyp:libvpx_new',
444 ],
445 }],
446 ['OS=="android"', {
447 'dependencies': [
448 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
449 ],
450 # Need to disable error due to the line in
451 # base/android/jni_android.h triggering it:
452 # const BASE_EXPORT jobject GetApplicationContext()
453 # error: type qualifiers ignored on function return type
454 'cflags': [
455 '-Wno-ignored-qualifiers',
456 ],
457 'sources': [
458 'audio_device/android/audio_device_unittest.cc',
459 'audio_device/android/audio_manager_unittest.cc',
460 'audio_device/android/ensure_initialized.cc',
461 'audio_device/android/ensure_initialized.h',
462 ],
463 }],
464 ['OS=="ios"', {
465 'sources': [
466 'video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc',
467 'audio_device/ios/audio_device_unittest_ios.cc',
468 ],
469 # This needs to be kept in sync with modules_unittests.isolate.
470 'mac_bundle_resources': [
471 '<(DEPTH)/data/audio_processing/output_data_float.pb',
472 '<(DEPTH)/data/audio_processing/output_data_mac.pb',
473 '<(DEPTH)/data/voice_engine/audio_tiny48.wav',
474 '<(DEPTH)/resources/att-downlink.rx',
475 '<(DEPTH)/resources/att-uplink.rx',
476 '<(DEPTH)/resources/audio_coding/neteq4_network_stats.dat',
477 '<(DEPTH)/resources/audio_coding/neteq4_opus_network_stats.dat',
478 '<(DEPTH)/resources/audio_coding/neteq4_opus_ref.pcm',
479 '<(DEPTH)/resources/audio_coding/neteq4_opus_ref_win_32.pcm',
480 '<(DEPTH)/resources/audio_coding/neteq4_opus_ref_win_64.pcm',
481 '<(DEPTH)/resources/audio_coding/neteq4_opus_rtcp_stats.dat',
482 '<(DEPTH)/resources/audio_coding/neteq4_rtcp_stats.dat',
483 '<(DEPTH)/resources/audio_coding/neteq4_universal_ref.pcm',
484 '<(DEPTH)/resources/audio_coding/neteq4_universal_ref_win_32.pcm',
485 '<(DEPTH)/resources/audio_coding/neteq4_universal_ref_win_64.pcm',
486 '<(DEPTH)/resources/audio_coding/neteq_opus.rtp',
487 '<(DEPTH)/resources/audio_coding/neteq_universal_new.rtp',
488 '<(DEPTH)/resources/audio_coding/speech_mono_16kHz.pcm',
489 '<(DEPTH)/resources/audio_coding/speech_mono_32_48kHz.pcm',
490 '<(DEPTH)/resources/audio_coding/testfile32kHz.pcm',
491 '<(DEPTH)/resources/audio_coding/teststereo32kHz.pcm',
492 '<(DEPTH)/resources/audio_device/audio_short16.pcm',
493 '<(DEPTH)/resources/audio_device/audio_short44.pcm',
494 '<(DEPTH)/resources/audio_device/audio_short48.pcm',
495 '<(DEPTH)/resources/audio_processing/agc/agc_audio.pcm',
496 '<(DEPTH)/resources/audio_processing/agc/agc_no_circular_buffer.dat',
497 '<(DEPTH)/resources/audio_processing/agc/agc_pitch_gain.dat',
498 '<(DEPTH)/resources/audio_processing/agc/agc_pitch_lag.dat',
499 '<(DEPTH)/resources/audio_processing/agc/agc_spectral_peak.dat',
500 '<(DEPTH)/resources/audio_processing/agc/agc_vad.dat',
501 '<(DEPTH)/resources/audio_processing/agc/agc_voicing_prob.dat',
502 '<(DEPTH)/resources/audio_processing/agc/agc_with_circular_buffer.dat',
503 '<(DEPTH)/resources/audio_processing/transient/ajm-macbook-1-spke16m.pcm',
504 '<(DEPTH)/resources/audio_processing/transient/audio16kHz.pcm',
505 '<(DEPTH)/resources/audio_processing/transient/audio32kHz.pcm',
506 '<(DEPTH)/resources/audio_processing/transient/audio48kHz.pcm',
507 '<(DEPTH)/resources/audio_processing/transient/audio8kHz.pcm',
508 '<(DEPTH)/resources/audio_processing/transient/detect16kHz.dat',
509 '<(DEPTH)/resources/audio_processing/transient/detect32kHz.dat',
510 '<(DEPTH)/resources/audio_processing/transient/detect48kHz.dat',
511 '<(DEPTH)/resources/audio_processing/transient/detect8kHz.dat',
512 '<(DEPTH)/resources/audio_processing/transient/double-utils.dat',
513 '<(DEPTH)/resources/audio_processing/transient/float-utils.dat',
514 '<(DEPTH)/resources/audio_processing/transient/suppressed16kHz.pcm',
515 '<(DEPTH)/resources/audio_processing/transient/suppressed32kHz.pcm',
516 '<(DEPTH)/resources/audio_processing/transient/suppressed8kHz.pcm',
517 '<(DEPTH)/resources/audio_processing/transient/wpd0.dat',
518 '<(DEPTH)/resources/audio_processing/transient/wpd1.dat',
519 '<(DEPTH)/resources/audio_processing/transient/wpd2.dat',
520 '<(DEPTH)/resources/audio_processing/transient/wpd3.dat',
521 '<(DEPTH)/resources/audio_processing/transient/wpd4.dat',
522 '<(DEPTH)/resources/audio_processing/transient/wpd5.dat',
523 '<(DEPTH)/resources/audio_processing/transient/wpd6.dat',
524 '<(DEPTH)/resources/audio_processing/transient/wpd7.dat',
525 '<(DEPTH)/resources/deflicker_before_cif_short.yuv',
526 '<(DEPTH)/resources/far16_stereo.pcm',
527 '<(DEPTH)/resources/far32_stereo.pcm',
528 '<(DEPTH)/resources/far44_stereo.pcm',
529 '<(DEPTH)/resources/far48_stereo.pcm',
530 '<(DEPTH)/resources/far8_stereo.pcm',
531 '<(DEPTH)/resources/foremanColorEnhanced_cif_short.yuv',
532 '<(DEPTH)/resources/foreman_cif.yuv',
533 '<(DEPTH)/resources/foreman_cif_short.yuv',
534 '<(DEPTH)/resources/near16_stereo.pcm',
535 '<(DEPTH)/resources/near32_stereo.pcm',
536 '<(DEPTH)/resources/near44_stereo.pcm',
537 '<(DEPTH)/resources/near48_stereo.pcm',
538 '<(DEPTH)/resources/near8_stereo.pcm',
539 '<(DEPTH)/resources/ref03.aecdump',
540 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke1_0_AST.bin',
541 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke1_0_TOF.bin',
542 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke1_1_AST.bin',
543 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke1_1_TOF.bin',
544 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke2_0_AST.bin',
545 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke2_0_TOF.bin',
546 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke2_1_AST.bin',
547 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingChoke2_1_TOF.bin',
548 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingDelay1_0_AST.bin',
549 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingDelay1_0_TOF.bin',
550 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingLoss1_0_AST.bin',
551 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_IncreasingLoss1_0_TOF.bin',
552 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Multi1_1_AST.bin',
553 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_Multi1_1_TOF.bin',
554 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyChoke_0_AST.bin',
555 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyChoke_0_TOF.bin',
556 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyChoke_1_AST.bin',
557 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyChoke_1_TOF.bin',
558 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyDelay_0_AST.bin',
559 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyDelay_0_TOF.bin',
560 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyLoss_0_AST.bin',
561 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_SteadyLoss_0_TOF.bin',
562 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_UnlimitedSpeed_0_AST.bin',
563 '<(DEPTH)/resources/remote_bitrate_estimator/VideoSendersTest_BweTest_UnlimitedSpeed_0_TOF.bin',
564 '<(DEPTH)/resources/short_mixed_mono_48.dat',
565 '<(DEPTH)/resources/short_mixed_mono_48_arm.dat',
566 '<(DEPTH)/resources/short_mixed_mono_48.pcm',
567 '<(DEPTH)/resources/short_mixed_stereo_48.dat',
568 '<(DEPTH)/resources/short_mixed_stereo_48.pcm',
569 '<(DEPTH)/resources/sprint-downlink.rx',
570 '<(DEPTH)/resources/sprint-uplink.rx',
571 '<(DEPTH)/resources/synthetic-trace.rx',
572 '<(DEPTH)/resources/tmobile-downlink.rx',
573 '<(DEPTH)/resources/tmobile-uplink.rx',
574 '<(DEPTH)/resources/utility/encapsulated_pcm16b_8khz.wav',
575 '<(DEPTH)/resources/utility/encapsulated_pcmu_8khz.wav',
576 '<(DEPTH)/resources/verizon3g-downlink.rx',
577 '<(DEPTH)/resources/verizon3g-uplink.rx',
578 '<(DEPTH)/resources/verizon4g-downlink.rx',
579 '<(DEPTH)/resources/verizon4g-uplink.rx',
580 '<(DEPTH)/resources/video_coding/frame-ethernet-ii.pcap',
581 '<(DEPTH)/resources/video_coding/frame-loopback.pcap',
582 '<(DEPTH)/resources/video_coding/pltype103.rtp',
583 '<(DEPTH)/resources/video_coding/ssrcs-2.pcap',
584 '<(DEPTH)/resources/video_coding/ssrcs-3.pcap',
585 ],
586 }],
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100587 ],
kjellander9ac4df12016-02-18 13:15:09 -0800588 # Disable warnings to enable Win64 build, issue 1323.
589 'msvs_disabled_warnings': [
590 4267, # size_t to int truncation.
591 ],
592 },
593 ],
594 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000595 ['OS=="android"', {
henrike@webrtc.org1303af32013-07-03 21:50:33 +0000596 'targets': [
597 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000598 'target_name': 'modules_unittests_apk_target',
henrike@webrtc.org1303af32013-07-03 21:50:33 +0000599 'type': 'none',
600 'dependencies': [
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000601 '<(apk_tests_path):modules_unittests_apk',
henrike@webrtc.org1303af32013-07-03 21:50:33 +0000602 ],
andrew@webrtc.org2cbb4292013-08-02 20:52:54 +0000603 },
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000604 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000605 'target_name': 'modules_tests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000606 'type': 'none',
607 'dependencies': [
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000608 '<(apk_tests_path):modules_tests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000609 ],
610 },
611 ],
612 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000613 ['test_isolation_mode != "noop"', {
614 'targets': [
615 {
Henrik Kjellanderd6d27e72015-09-25 22:19:11 +0200616 'target_name': 'audio_codec_speed_tests_run',
617 'type': 'none',
618 'dependencies': [
619 'audio_codec_speed_tests',
620 ],
621 'includes': [
622 '../build/isolate.gypi',
623 ],
624 'sources': [
625 'audio_codec_speed_tests.isolate',
626 ],
627 },
628 {
629 'target_name': 'audio_decoder_unittests_run',
630 'type': 'none',
631 'dependencies': [
632 'audio_decoder_unittests',
633 ],
634 'includes': [
635 '../build/isolate.gypi',
636 ],
637 'sources': [
638 'audio_decoder_unittests.isolate',
639 ],
640 },
641 {
642 'target_name': 'audio_device_tests_run',
643 'type': 'none',
644 'dependencies': [
645 'audio_device_tests',
646 ],
647 'includes': [
648 '../build/isolate.gypi',
649 ],
650 'sources': [
651 'audio_device_tests.isolate',
652 ],
653 },
654 {
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000655 'target_name': 'modules_tests_run',
656 'type': 'none',
657 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000658 'modules_tests',
659 ],
660 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000661 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000662 ],
663 'sources': [
664 'modules_tests.isolate',
665 ],
666 },
667 {
668 'target_name': 'modules_unittests_run',
669 'type': 'none',
670 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000671 'modules_unittests',
672 ],
673 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000674 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000675 ],
676 'sources': [
677 'modules_unittests.isolate',
678 ],
679 },
Henrik Kjellanderd6d27e72015-09-25 22:19:11 +0200680 {
681 'target_name': 'video_render_tests_run',
682 'type': 'none',
683 'dependencies': [
684 'video_render_tests',
685 ],
686 'includes': [
687 '../build/isolate.gypi',
688 ],
689 'sources': [
690 'video_render_tests.isolate',
691 ],
692 },
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000693 ],
694 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000695 ],
mflodman@webrtc.org6af95942012-05-24 13:23:35 +0000696 }], # include_tests
xians@google.comd3185fe2011-09-12 12:24:39 +0000697 ], # conditions
698}