blob: b49a5d3dca2be02c900b909fe3644994fa75d0f0 [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 }],
110 ],
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000111 },
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +0000112 ],
henrike@webrtc.org1303af32013-07-03 21:50:33 +0000113 'conditions': [
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100114 # Does not compile on iOS for ia32 or x64: webrtc:4755.
115 ['OS!="ios" or target_arch=="arm" or target_arch=="arm64"', {
116 'targets': [
117 {
118 'target_name': 'modules_unittests',
119 'type': '<(gtest_target_type)',
120 'defines': [
121 '<@(audio_coding_defines)',
122 ],
123 'dependencies': [
124 'acm_receive_test',
125 'acm_send_test',
126 'audio_coding_module',
127 'audio_conference_mixer',
128 'audio_device' ,
129 'audio_processing',
130 'audioproc_test_utils',
131 'bitrate_controller',
132 'bwe_simulator',
133 'cng',
134 'desktop_capture',
135 'isac_fix',
136 'media_file',
137 'neteq',
138 'neteq_test_support',
139 'neteq_unittest_tools',
140 'paced_sender',
141 'pcm16b', # Needed by NetEq tests.
142 'red',
143 'remote_bitrate_estimator',
144 'rtp_rtcp',
145 'video_codecs_test_framework',
146 'video_processing',
147 'webrtc_utility',
148 'webrtc_video_coding',
149 '<@(neteq_dependencies)',
150 '<(DEPTH)/testing/gmock.gyp:gmock',
151 '<(DEPTH)/testing/gtest.gyp:gtest',
152 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
153 '<(webrtc_root)/common.gyp:webrtc_common',
154 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
jackychen67e94fb2016-01-11 21:34:07 -0800155 '<(webrtc_root)/common_video/common_video.gyp:common_video',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100156 '<(webrtc_root)/modules/modules.gyp:video_capture',
157 '<(webrtc_root)/modules/video_coding/codecs/vp8/vp8.gyp:webrtc_vp8',
158 '<(webrtc_root)/modules/video_coding/codecs/vp9/vp9.gyp:webrtc_vp9',
159 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
Peter Boström13f61df2016-01-04 22:36:38 +0100160 '<(webrtc_root)/test/test.gyp:fake_video_frames',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100161 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
162 '<(webrtc_root)/test/test.gyp:test_support_main',
163 '<(webrtc_root)/test/webrtc_test_common.gyp:webrtc_test_common',
164 '<(webrtc_root)/tools/tools.gyp:agc_test_utils',
165 ],
166 'sources': [
167 'audio_coding/codecs/cng/audio_encoder_cng_unittest.cc',
kjellander3e6db232015-11-26 04:44:54 -0800168 'audio_coding/acm2/acm_receiver_unittest_oldapi.cc',
169 'audio_coding/acm2/audio_coding_module_unittest_oldapi.cc',
170 'audio_coding/acm2/call_statistics_unittest.cc',
171 'audio_coding/acm2/codec_manager_unittest.cc',
172 'audio_coding/acm2/initial_delay_manager_unittest.cc',
173 'audio_coding/acm2/rent_a_codec_unittest.cc',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100174 'audio_coding/codecs/cng/cng_unittest.cc',
175 'audio_coding/codecs/isac/fix/source/filters_unittest.cc',
176 'audio_coding/codecs/isac/fix/source/filterbanks_unittest.cc',
177 'audio_coding/codecs/isac/fix/source/lpc_masking_model_unittest.cc',
178 'audio_coding/codecs/isac/fix/source/transform_unittest.cc',
179 'audio_coding/codecs/isac/main/source/audio_encoder_isac_unittest.cc',
180 'audio_coding/codecs/isac/main/source/isac_unittest.cc',
181 'audio_coding/codecs/isac/unittest.cc',
182 'audio_coding/codecs/opus/audio_encoder_opus_unittest.cc',
183 'audio_coding/codecs/opus/opus_unittest.cc',
184 'audio_coding/codecs/red/audio_encoder_copy_red_unittest.cc',
185 'audio_coding/neteq/audio_classifier_unittest.cc',
186 'audio_coding/neteq/audio_multi_vector_unittest.cc',
187 'audio_coding/neteq/audio_vector_unittest.cc',
188 'audio_coding/neteq/background_noise_unittest.cc',
189 'audio_coding/neteq/buffer_level_filter_unittest.cc',
190 'audio_coding/neteq/comfort_noise_unittest.cc',
191 'audio_coding/neteq/decision_logic_unittest.cc',
192 'audio_coding/neteq/decoder_database_unittest.cc',
193 'audio_coding/neteq/delay_manager_unittest.cc',
194 'audio_coding/neteq/delay_peak_detector_unittest.cc',
195 'audio_coding/neteq/dsp_helper_unittest.cc',
196 'audio_coding/neteq/dtmf_buffer_unittest.cc',
197 'audio_coding/neteq/dtmf_tone_generator_unittest.cc',
198 'audio_coding/neteq/expand_unittest.cc',
199 'audio_coding/neteq/merge_unittest.cc',
200 'audio_coding/neteq/nack_unittest.cc',
201 'audio_coding/neteq/neteq_external_decoder_unittest.cc',
202 'audio_coding/neteq/neteq_impl_unittest.cc',
203 'audio_coding/neteq/neteq_network_stats_unittest.cc',
204 'audio_coding/neteq/neteq_stereo_unittest.cc',
205 'audio_coding/neteq/neteq_unittest.cc',
206 'audio_coding/neteq/normal_unittest.cc',
207 'audio_coding/neteq/packet_buffer_unittest.cc',
208 'audio_coding/neteq/payload_splitter_unittest.cc',
209 'audio_coding/neteq/post_decode_vad_unittest.cc',
210 'audio_coding/neteq/random_vector_unittest.cc',
211 'audio_coding/neteq/sync_buffer_unittest.cc',
212 'audio_coding/neteq/timestamp_scaler_unittest.cc',
213 'audio_coding/neteq/time_stretch_unittest.cc',
214 'audio_coding/neteq/mock/mock_audio_decoder.h',
215 'audio_coding/neteq/mock/mock_audio_vector.h',
216 'audio_coding/neteq/mock/mock_buffer_level_filter.h',
217 'audio_coding/neteq/mock/mock_decoder_database.h',
218 'audio_coding/neteq/mock/mock_delay_manager.h',
219 'audio_coding/neteq/mock/mock_delay_peak_detector.h',
220 'audio_coding/neteq/mock/mock_dtmf_buffer.h',
221 'audio_coding/neteq/mock/mock_dtmf_tone_generator.h',
222 'audio_coding/neteq/mock/mock_expand.h',
223 'audio_coding/neteq/mock/mock_external_decoder_pcm16b.h',
224 'audio_coding/neteq/mock/mock_packet_buffer.h',
225 'audio_coding/neteq/mock/mock_payload_splitter.h',
226 'audio_coding/neteq/tools/input_audio_file_unittest.cc',
227 'audio_coding/neteq/tools/packet_unittest.cc',
228 'audio_conference_mixer/test/audio_conference_mixer_unittest.cc',
229 'audio_device/fine_audio_buffer_unittest.cc',
230 'audio_processing/aec/echo_cancellation_unittest.cc',
231 'audio_processing/aec/system_delay_unittest.cc',
232 'audio_processing/agc/agc_manager_direct_unittest.cc',
233 # TODO(ajm): Fix to match new interface.
234 # 'audio_processing/agc/agc_unittest.cc',
235 'audio_processing/agc/histogram_unittest.cc',
236 'audio_processing/agc/mock_agc.h',
237 'audio_processing/beamformer/array_util_unittest.cc',
238 'audio_processing/beamformer/complex_matrix_unittest.cc',
239 'audio_processing/beamformer/covariance_matrix_generator_unittest.cc',
240 'audio_processing/beamformer/matrix_unittest.cc',
241 'audio_processing/beamformer/mock_nonlinear_beamformer.h',
242 'audio_processing/beamformer/nonlinear_beamformer_unittest.cc',
243 'audio_processing/echo_cancellation_impl_unittest.cc',
244 'audio_processing/intelligibility/intelligibility_enhancer_unittest.cc',
245 'audio_processing/intelligibility/intelligibility_utils_unittest.cc',
246 'audio_processing/splitting_filter_unittest.cc',
247 'audio_processing/transient/dyadic_decimator_unittest.cc',
248 'audio_processing/transient/file_utils.cc',
249 'audio_processing/transient/file_utils.h',
250 'audio_processing/transient/file_utils_unittest.cc',
251 'audio_processing/transient/moving_moments_unittest.cc',
252 'audio_processing/transient/transient_detector_unittest.cc',
253 'audio_processing/transient/transient_suppressor_unittest.cc',
254 'audio_processing/transient/wpd_node_unittest.cc',
255 'audio_processing/transient/wpd_tree_unittest.cc',
256 'audio_processing/utility/delay_estimator_unittest.cc',
257 'audio_processing/vad/gmm_unittest.cc',
258 'audio_processing/vad/pitch_based_vad_unittest.cc',
259 'audio_processing/vad/pitch_internal_unittest.cc',
260 'audio_processing/vad/pole_zero_filter_unittest.cc',
261 'audio_processing/vad/standalone_vad_unittest.cc',
262 'audio_processing/vad/vad_audio_proc_unittest.cc',
263 'audio_processing/vad/vad_circular_buffer_unittest.cc',
264 'audio_processing/vad/voice_activity_detector_unittest.cc',
265 'bitrate_controller/bitrate_controller_unittest.cc',
266 'bitrate_controller/send_side_bandwidth_estimation_unittest.cc',
267 'desktop_capture/desktop_and_cursor_composer_unittest.cc',
268 'desktop_capture/desktop_region_unittest.cc',
269 'desktop_capture/differ_block_unittest.cc',
270 'desktop_capture/differ_unittest.cc',
271 'desktop_capture/mouse_cursor_monitor_unittest.cc',
272 'desktop_capture/screen_capturer_helper_unittest.cc',
273 'desktop_capture/screen_capturer_mac_unittest.cc',
274 'desktop_capture/screen_capturer_mock_objects.h',
275 'desktop_capture/screen_capturer_unittest.cc',
276 'desktop_capture/window_capturer_unittest.cc',
277 'desktop_capture/win/cursor_unittest.cc',
278 'desktop_capture/win/cursor_unittest_resources.h',
279 'desktop_capture/win/cursor_unittest_resources.rc',
280 'media_file/media_file_unittest.cc',
281 'module_common_types_unittest.cc',
282 'pacing/bitrate_prober_unittest.cc',
283 'pacing/paced_sender_unittest.cc',
284 'pacing/packet_router_unittest.cc',
285 'remote_bitrate_estimator/bwe_simulations.cc',
286 'remote_bitrate_estimator/include/mock/mock_remote_bitrate_observer.h',
287 'remote_bitrate_estimator/include/mock/mock_remote_bitrate_estimator.h',
288 'remote_bitrate_estimator/inter_arrival_unittest.cc',
289 'remote_bitrate_estimator/overuse_detector_unittest.cc',
290 'remote_bitrate_estimator/rate_statistics_unittest.cc',
291 'remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time_unittest.cc',
292 'remote_bitrate_estimator/remote_bitrate_estimator_single_stream_unittest.cc',
293 'remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc',
294 'remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.h',
295 'remote_bitrate_estimator/remote_estimator_proxy_unittest.cc',
296 'remote_bitrate_estimator/send_time_history_unittest.cc',
297 'remote_bitrate_estimator/test/bwe_test_framework_unittest.cc',
298 'remote_bitrate_estimator/test/bwe_unittest.cc',
299 'remote_bitrate_estimator/test/metric_recorder_unittest.cc',
300 'remote_bitrate_estimator/test/estimators/nada_unittest.cc',
301 'remote_bitrate_estimator/transport_feedback_adapter_unittest.cc',
302 'rtp_rtcp/source/mock/mock_rtp_payload_strategy.h',
303 'rtp_rtcp/source/byte_io_unittest.cc',
304 'rtp_rtcp/source/fec_receiver_unittest.cc',
305 'rtp_rtcp/source/fec_test_helper.cc',
306 'rtp_rtcp/source/fec_test_helper.h',
307 'rtp_rtcp/source/h264_sps_parser_unittest.cc',
308 'rtp_rtcp/source/h264_bitstream_parser_unittest.cc',
309 'rtp_rtcp/source/nack_rtx_unittest.cc',
310 'rtp_rtcp/source/packet_loss_stats_unittest.cc',
311 'rtp_rtcp/source/producer_fec_unittest.cc',
312 'rtp_rtcp/source/receive_statistics_unittest.cc',
313 'rtp_rtcp/source/remote_ntp_time_estimator_unittest.cc',
314 'rtp_rtcp/source/rtcp_format_remb_unittest.cc',
315 'rtp_rtcp/source/rtcp_packet_unittest.cc',
316 'rtp_rtcp/source/rtcp_packet/app_unittest.cc',
danilchap50c51362015-11-22 09:03:11 -0800317 'rtp_rtcp/source/rtcp_packet/bye_unittest.cc',
danilchap2f7dea12016-01-13 02:03:04 -0800318 'rtp_rtcp/source/rtcp_packet/compound_packet_unittest.cc',
danilchap54999d42015-12-16 01:56:20 -0800319 'rtp_rtcp/source/rtcp_packet/dlrr_unittest.cc',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100320 'rtp_rtcp/source/rtcp_packet/extended_jitter_report_unittest.cc',
Danil Chapovalov256e5b22016-01-15 14:16:24 +0100321 'rtp_rtcp/source/rtcp_packet/extended_reports_unittest.cc',
Danil Chapovalov5679da12016-01-15 13:19:53 +0100322 'rtp_rtcp/source/rtcp_packet/fir_unittest.cc',
danilchapa8890a52015-12-22 03:43:04 -0800323 'rtp_rtcp/source/rtcp_packet/nack_unittest.cc',
danilchapf8385ad2015-11-27 05:36:09 -0800324 'rtp_rtcp/source/rtcp_packet/pli_unittest.cc',
danilchap09fef9e2016-02-09 05:57:51 -0800325 'rtp_rtcp/source/rtcp_packet/rapid_resync_request_unittest.cc',
Danil Chapovalov97f7e132015-12-04 16:13:30 +0100326 'rtp_rtcp/source/rtcp_packet/receiver_report_unittest.cc',
Danil Chapovalova5eba6c2016-01-15 12:40:15 +0100327 'rtp_rtcp/source/rtcp_packet/remb_unittest.cc',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100328 'rtp_rtcp/source/rtcp_packet/report_block_unittest.cc',
Danil Chapovalov2c132972016-01-15 15:21:21 +0100329 'rtp_rtcp/source/rtcp_packet/rpsi_unittest.cc',
Danil Chapovalovfc47ed62015-12-07 14:46:35 +0100330 'rtp_rtcp/source/rtcp_packet/rrtr_unittest.cc',
Danil Chapovalov1567d0b2016-01-15 17:34:27 +0100331 'rtp_rtcp/source/rtcp_packet/sdes_unittest.cc',
danilchap34ed2b92016-01-18 02:43:32 -0800332 'rtp_rtcp/source/rtcp_packet/sender_report_unittest.cc',
danilchap92e677a2016-01-12 10:04:52 -0800333 'rtp_rtcp/source/rtcp_packet/sli_unittest.cc',
danilchapef3d8052016-01-11 03:31:08 -0800334 'rtp_rtcp/source/rtcp_packet/tmmbn_unittest.cc',
danilchap7e8145f2016-01-11 11:49:19 -0800335 'rtp_rtcp/source/rtcp_packet/tmmbr_unittest.cc',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100336 'rtp_rtcp/source/rtcp_packet/transport_feedback_unittest.cc',
danilchap91941ae2015-12-15 07:06:36 -0800337 'rtp_rtcp/source/rtcp_packet/voip_metric_unittest.cc',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100338 'rtp_rtcp/source/rtcp_receiver_unittest.cc',
339 'rtp_rtcp/source/rtcp_sender_unittest.cc',
340 'rtp_rtcp/source/rtcp_utility_unittest.cc',
341 'rtp_rtcp/source/rtp_fec_unittest.cc',
342 'rtp_rtcp/source/rtp_format_h264_unittest.cc',
343 'rtp_rtcp/source/rtp_format_vp8_test_helper.cc',
344 'rtp_rtcp/source/rtp_format_vp8_test_helper.h',
345 'rtp_rtcp/source/rtp_format_vp8_unittest.cc',
346 'rtp_rtcp/source/rtp_format_vp9_unittest.cc',
347 'rtp_rtcp/source/rtp_packet_history_unittest.cc',
348 'rtp_rtcp/source/rtp_payload_registry_unittest.cc',
349 'rtp_rtcp/source/rtp_rtcp_impl_unittest.cc',
350 'rtp_rtcp/source/rtp_header_extension_unittest.cc',
351 'rtp_rtcp/source/rtp_sender_unittest.cc',
danilchap1227e8b2015-12-21 11:06:50 -0800352 'rtp_rtcp/source/time_util_unittest.cc',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100353 'rtp_rtcp/source/vp8_partition_aggregator_unittest.cc',
354 'rtp_rtcp/test/testAPI/test_api.cc',
355 'rtp_rtcp/test/testAPI/test_api.h',
356 'rtp_rtcp/test/testAPI/test_api_audio.cc',
357 'rtp_rtcp/test/testAPI/test_api_rtcp.cc',
358 'rtp_rtcp/test/testAPI/test_api_video.cc',
359 'utility/source/audio_frame_operations_unittest.cc',
360 'utility/source/file_player_unittests.cc',
361 'utility/source/process_thread_impl_unittest.cc',
362 'video_coding/codecs/test/packet_manipulator_unittest.cc',
363 'video_coding/codecs/test/stats_unittest.cc',
364 'video_coding/codecs/test/videoprocessor_unittest.cc',
365 'video_coding/codecs/vp8/default_temporal_layers_unittest.cc',
366 'video_coding/codecs/vp8/reference_picture_selection_unittest.cc',
367 'video_coding/codecs/vp8/screenshare_layers_unittest.cc',
368 'video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc',
369 'video_coding/codecs/vp8/simulcast_unittest.cc',
370 'video_coding/codecs/vp8/simulcast_unittest.h',
371 'video_coding/codecs/vp9/screenshare_layers_unittest.cc',
372 'video_coding/include/mock/mock_vcm_callbacks.h',
373 'video_coding/decoding_state_unittest.cc',
374 'video_coding/jitter_buffer_unittest.cc',
375 'video_coding/jitter_estimator_tests.cc',
376 'video_coding/media_optimization_unittest.cc',
377 'video_coding/receiver_unittest.cc',
378 'video_coding/session_info_unittest.cc',
379 'video_coding/timing_unittest.cc',
380 'video_coding/video_coding_robustness_unittest.cc',
381 'video_coding/video_receiver_unittest.cc',
382 'video_coding/video_sender_unittest.cc',
383 'video_coding/qm_select_unittest.cc',
384 'video_coding/test/stream_generator.cc',
385 'video_coding/test/stream_generator.h',
386 'video_coding/utility/quality_scaler_unittest.cc',
387 'video_processing/test/brightness_detection_test.cc',
388 'video_processing/test/content_metrics_test.cc',
389 'video_processing/test/deflickering_test.cc',
jackychen67e94fb2016-01-11 21:34:07 -0800390 'video_processing/test/denoiser_test.cc',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100391 'video_processing/test/video_processing_unittest.cc',
392 'video_processing/test/video_processing_unittest.h',
393 ],
394 'conditions': [
395 ['enable_bwe_test_logging==1', {
396 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1' ],
397 }, {
398 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0' ],
399 'sources!': [
400 'remote_bitrate_estimator/test/bwe_test_logging.cc'
401 ],
402 }],
403 # Run screen/window capturer tests only on platforms where they are
404 # supported.
405 ['desktop_capture_supported==0', {
406 'sources!': [
407 'desktop_capture/desktop_and_cursor_composer_unittest.cc',
408 'desktop_capture/mouse_cursor_monitor_unittest.cc',
409 'desktop_capture/screen_capturer_helper_unittest.cc',
410 'desktop_capture/screen_capturer_mac_unittest.cc',
411 'desktop_capture/screen_capturer_mock_objects.h',
412 'desktop_capture/screen_capturer_unittest.cc',
413 'desktop_capture/window_capturer_unittest.cc',
414 ],
415 }],
416 ['prefer_fixed_point==1', {
417 'defines': [ 'WEBRTC_AUDIOPROC_FIXED_PROFILE' ],
418 }, {
419 'defines': [ 'WEBRTC_AUDIOPROC_FLOAT_PROFILE' ],
420 }],
421 ['enable_protobuf==1', {
422 'defines': [
423 'WEBRTC_AUDIOPROC_DEBUG_DUMP',
minyue5f026d02015-12-16 07:36:04 -0800424 'WEBRTC_NETEQ_UNITTEST_BITEXACT',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100425 ],
426 'dependencies': [
427 'audioproc_protobuf_utils',
428 'audioproc_unittest_proto',
minyue5f026d02015-12-16 07:36:04 -0800429 'neteq_unittest_proto',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100430 ],
431 'sources': [
432 'audio_processing/audio_processing_impl_locking_unittest.cc',
433 'audio_processing/audio_processing_impl_unittest.cc',
434 'audio_processing/test/audio_processing_unittest.cc',
435 'audio_processing/test/debug_dump_test.cc',
436 'audio_processing/test/test_utils.h',
437 ],
438 }],
439 ['build_libvpx==1', {
440 'dependencies': [
441 '<(libvpx_dir)/libvpx.gyp:libvpx_new',
442 ],
443 }],
444 ['OS=="android"', {
445 'dependencies': [
446 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
447 ],
448 # Need to disable error due to the line in
449 # base/android/jni_android.h triggering it:
450 # const BASE_EXPORT jobject GetApplicationContext()
451 # error: type qualifiers ignored on function return type
452 'cflags': [
453 '-Wno-ignored-qualifiers',
454 ],
455 'sources': [
456 'audio_device/android/audio_device_unittest.cc',
457 'audio_device/android/audio_manager_unittest.cc',
458 'audio_device/android/ensure_initialized.cc',
459 'audio_device/android/ensure_initialized.h',
460 ],
461 }],
462 ['OS=="ios"', {
463 'sources': [
464 'video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc',
465 'audio_device/ios/audio_device_unittest_ios.cc',
466 ],
467 'mac_bundle_resources': [
468 '<(DEPTH)/resources/audio_coding/speech_mono_16kHz.pcm',
469 '<(DEPTH)/resources/audio_coding/testfile32kHz.pcm',
470 '<(DEPTH)/resources/audio_coding/teststereo32kHz.pcm',
471 '<(DEPTH)/resources/audio_device/audio_short16.pcm',
472 '<(DEPTH)/resources/audio_device/audio_short44.pcm',
473 '<(DEPTH)/resources/audio_device/audio_short48.pcm',
474 '<(DEPTH)/resources/audio_processing/agc/agc_no_circular_buffer.dat',
475 '<(DEPTH)/resources/audio_processing/agc/agc_pitch_gain.dat',
476 '<(DEPTH)/resources/audio_processing/agc/agc_pitch_lag.dat',
477 '<(DEPTH)/resources/audio_processing/agc/agc_spectral_peak.dat',
478 '<(DEPTH)/resources/audio_processing/agc/agc_voicing_prob.dat',
479 '<(DEPTH)/resources/audio_processing/agc/agc_with_circular_buffer.dat',
480 '<(DEPTH)/resources/short_mixed_mono_48.dat',
481 '<(DEPTH)/resources/short_mixed_mono_48.pcm',
482 '<(DEPTH)/resources/short_mixed_stereo_48.dat',
483 '<(DEPTH)/resources/short_mixed_stereo_48.pcm',
484 ],
485 }],
486 ],
487 # Disable warnings to enable Win64 build, issue 1323.
488 'msvs_disabled_warnings': [
489 4267, # size_t to int truncation.
490 ],
491 },
492 ],
493 }],
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000494 ['OS=="android"', {
henrike@webrtc.org1303af32013-07-03 21:50:33 +0000495 'targets': [
496 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000497 'target_name': 'modules_unittests_apk_target',
henrike@webrtc.org1303af32013-07-03 21:50:33 +0000498 'type': 'none',
499 'dependencies': [
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000500 '<(apk_tests_path):modules_unittests_apk',
henrike@webrtc.org1303af32013-07-03 21:50:33 +0000501 ],
andrew@webrtc.org2cbb4292013-08-02 20:52:54 +0000502 },
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000503 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000504 'target_name': 'modules_tests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000505 'type': 'none',
506 'dependencies': [
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000507 '<(apk_tests_path):modules_tests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000508 ],
509 },
510 ],
511 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000512 ['test_isolation_mode != "noop"', {
513 'targets': [
514 {
Henrik Kjellanderd6d27e72015-09-25 22:19:11 +0200515 'target_name': 'audio_codec_speed_tests_run',
516 'type': 'none',
517 'dependencies': [
518 'audio_codec_speed_tests',
519 ],
520 'includes': [
521 '../build/isolate.gypi',
522 ],
523 'sources': [
524 'audio_codec_speed_tests.isolate',
525 ],
526 },
527 {
528 'target_name': 'audio_decoder_unittests_run',
529 'type': 'none',
530 'dependencies': [
531 'audio_decoder_unittests',
532 ],
533 'includes': [
534 '../build/isolate.gypi',
535 ],
536 'sources': [
537 'audio_decoder_unittests.isolate',
538 ],
539 },
540 {
541 'target_name': 'audio_device_tests_run',
542 'type': 'none',
543 'dependencies': [
544 'audio_device_tests',
545 ],
546 'includes': [
547 '../build/isolate.gypi',
548 ],
549 'sources': [
550 'audio_device_tests.isolate',
551 ],
552 },
553 {
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000554 'target_name': 'modules_tests_run',
555 'type': 'none',
556 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000557 'modules_tests',
558 ],
559 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000560 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000561 ],
562 'sources': [
563 'modules_tests.isolate',
564 ],
565 },
566 {
567 'target_name': 'modules_unittests_run',
568 'type': 'none',
569 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000570 'modules_unittests',
571 ],
572 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000573 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000574 ],
575 'sources': [
576 'modules_unittests.isolate',
577 ],
578 },
Henrik Kjellanderd6d27e72015-09-25 22:19:11 +0200579 {
580 'target_name': 'video_render_tests_run',
581 'type': 'none',
582 'dependencies': [
583 'video_render_tests',
584 ],
585 'includes': [
586 '../build/isolate.gypi',
587 ],
588 'sources': [
589 'video_render_tests.isolate',
590 ],
591 },
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000592 ],
593 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000594 ],
mflodman@webrtc.org6af95942012-05-24 13:23:35 +0000595 }], # include_tests
xians@google.comd3185fe2011-09-12 12:24:39 +0000596 ], # conditions
597}