blob: 10fa7ba6def19eee645460bf7adfdf846d04c8ff [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.org64a897a2011-11-17 13:33:11 +000012 'audio_coding/codecs/cng/cng.gypi',
kjellander@webrtc.orgcc2ecb32011-11-17 13:48:36 +000013 'audio_coding/codecs/g711/g711.gypi',
kjellander@webrtc.org3f1cb8e2011-11-17 13:56:54 +000014 'audio_coding/codecs/g722/g722.gypi',
kjellander@webrtc.org36e1ad92011-11-07 15:27:11 +000015 'audio_coding/codecs/ilbc/ilbc.gypi',
andrew@webrtc.org6a16e742012-08-09 18:35:39 +000016 'audio_coding/codecs/isac/main/source/isac.gypi',
17 'audio_coding/codecs/isac/fix/source/isacfix.gypi',
kjellander@webrtc.orgb72268e2011-11-17 13:39:15 +000018 'audio_coding/codecs/pcm16b/pcm16b.gypi',
henrik.lundin@webrtc.org70e53fa2014-04-29 08:58:46 +000019 'audio_coding/main/acm2/audio_coding_module.gypi',
henrik.lundin@webrtc.org1b9df052014-05-28 07:33:39 +000020 'audio_coding/neteq4/neteq.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000021 'audio_conference_mixer/source/audio_conference_mixer.gypi',
andrew@webrtc.org236d5d32012-09-21 20:46:40 +000022 'audio_device/audio_device.gypi',
andrew@webrtc.org4d5d5c12011-10-19 01:40:33 +000023 'audio_processing/audio_processing.gypi',
pwestin@webrtc.org1cd11622012-04-19 12:13:52 +000024 'bitrate_controller/bitrate_controller.gypi',
sergeyu@chromium.org15e32cc2013-04-29 20:10:57 +000025 'desktop_capture/desktop_capture.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000026 'media_file/source/media_file.gypi',
pwestin@webrtc.orgb5180172012-11-09 20:56:23 +000027 'pacing/pacing.gypi',
stefan@webrtc.org9354cc92012-06-07 08:10:14 +000028 'remote_bitrate_estimator/remote_bitrate_estimator.gypi',
andrew@webrtc.org94caca72012-10-30 21:58:00 +000029 'rtp_rtcp/source/rtp_rtcp.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000030 'utility/source/utility.gypi',
31 'video_coding/codecs/i420/main/source/i420.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000032 'video_coding/main/source/video_coding.gypi',
andrew@webrtc.org94caca72012-10-30 21:58:00 +000033 'video_capture/video_capture.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000034 'video_processing/main/source/video_processing.gypi',
andrew@webrtc.org9841d922012-10-31 05:22:11 +000035 'video_render/video_render.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000036 ],
xians@google.comd3185fe2011-09-12 12:24:39 +000037 'conditions': [
andrew@webrtc.orgc0773fc2012-10-19 07:13:52 +000038 ['include_opus==1', {
39 'includes': ['audio_coding/codecs/opus/opus.gypi',],
40 }],
mflodman@webrtc.org6af95942012-05-24 13:23:35 +000041 ['include_tests==1', {
xians@google.comd3185fe2011-09-12 12:24:39 +000042 'includes': [
andrew@webrtc.org6a16e742012-08-09 18:35:39 +000043 'audio_coding/codecs/isac/isac_test.gypi',
44 'audio_coding/codecs/isac/isacfix_test.gypi',
minyue@webrtc.org04546882014-03-07 08:55:48 +000045 'audio_coding/codecs/tools/audio_codec_speed_tests.gypi',
andrew@webrtc.orgc732ca62012-09-10 16:33:43 +000046 'audio_processing/audio_processing_tests.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000047 'rtp_rtcp/test/testFec/test_fec.gypi',
48 'video_coding/main/source/video_coding_test.gypi',
kjellander@webrtc.org35a17562011-10-06 06:44:54 +000049 'video_coding/codecs/test/video_codecs_test_framework.gypi',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000050 'video_coding/codecs/test_framework/test_framework.gypi',
kjellander@webrtc.org35a17562011-10-06 06:44:54 +000051 'video_coding/codecs/tools/video_codecs_tools.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000052 ], # includes
solenberg@webrtc.org86136a02013-09-09 13:06:52 +000053 'variables': {
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000054 'conditions': [
55 # Desktop capturer is supported only on Windows, OSX and Linux.
56 ['OS=="win" or OS=="mac" or OS=="linux"', {
57 'desktop_capture_supported%': 1,
58 }, {
59 'desktop_capture_supported%': 0,
60 }],
61 ],
62 },
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +000063 'targets': [
64 {
65 'target_name': 'modules_unittests',
henrike@webrtc.org1303af32013-07-03 21:50:33 +000066 'type': '<(gtest_target_type)',
turaj@webrtc.org6ea3d1c2013-10-02 21:44:33 +000067 'defines': [
68 '<@(audio_coding_defines)',
69 ],
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +000070 'dependencies': [
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000071 'audio_coding_module',
72 'audio_processing',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000073 'bitrate_controller',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000074 'CNG',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000075 'desktop_capture',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000076 'iSACFix',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000077 'media_file',
henrik.lundin@webrtc.org1b9df052014-05-28 07:33:39 +000078 'NetEq4',
79 'NetEq4TestTools',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000080 'neteq_unittest_tools',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000081 'paced_sender',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000082 'PCM16B', # Needed by NetEq tests.
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000083 'remote_bitrate_estimator',
84 'rtp_rtcp',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000085 'test_framework',
86 'video_codecs_test_framework',
87 'video_processing',
kjellander@webrtc.orgfec34d72013-06-05 08:58:46 +000088 'webrtc_utility',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000089 'webrtc_video_coding',
90 '<@(neteq_dependencies)',
solenberg@webrtc.org86136a02013-09-09 13:06:52 +000091 '<(rbe_components_path)/remote_bitrate_estimator_components.gyp:rbe_components',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000092 '<(DEPTH)/testing/gmock.gyp:gmock',
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +000093 '<(DEPTH)/testing/gtest.gyp:gtest',
turaj@webrtc.orga6101d72013-10-01 22:01:09 +000094 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +000095 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
96 '<(webrtc_root)/modules/video_coding/codecs/vp8/vp8.gyp:webrtc_vp8',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000097 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +000098 '<(webrtc_root)/test/test.gyp:test_support_main',
pbos@webrtc.org724947b2013-12-11 16:26:16 +000099 '<(webrtc_root)/test/test.gyp:frame_generator',
asapersson@webrtc.org0f2809a2014-02-21 08:14:45 +0000100 '<(webrtc_root)/test/test.gyp:rtcp_packet_parser',
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +0000101 ],
102 'sources': [
turaj@webrtc.org6ea3d1c2013-10-02 21:44:33 +0000103 'audio_coding/main/acm2/acm_receiver_unittest.cc',
henrik.lundin@webrtc.org7c6e3d12014-04-15 17:59:25 +0000104 'audio_coding/main/acm2/audio_coding_module_unittest.cc',
wu@webrtc.org24301a62013-12-13 19:17:43 +0000105 'audio_coding/main/acm2/call_statistics_unittest.cc',
turaj@webrtc.org6ea3d1c2013-10-02 21:44:33 +0000106 'audio_coding/main/acm2/initial_delay_manager_unittest.cc',
107 'audio_coding/main/acm2/nack_unittest.cc',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000108 'audio_coding/codecs/cng/cng_unittest.cc',
109 'audio_coding/codecs/isac/fix/source/filters_unittest.cc',
110 'audio_coding/codecs/isac/fix/source/filterbanks_unittest.cc',
111 'audio_coding/codecs/isac/fix/source/lpc_masking_model_unittest.cc',
112 'audio_coding/codecs/isac/fix/source/transform_unittest.cc',
113 'audio_coding/codecs/isac/main/source/isac_unittest.cc',
114 'audio_coding/codecs/opus/opus_unittest.cc',
henrik.lundin@webrtc.org1b9df052014-05-28 07:33:39 +0000115 'audio_coding/neteq4/audio_classifier_unittest.cc',
116 'audio_coding/neteq4/audio_multi_vector_unittest.cc',
117 'audio_coding/neteq4/audio_vector_unittest.cc',
118 'audio_coding/neteq4/background_noise_unittest.cc',
119 'audio_coding/neteq4/buffer_level_filter_unittest.cc',
120 'audio_coding/neteq4/comfort_noise_unittest.cc',
121 'audio_coding/neteq4/decision_logic_unittest.cc',
122 'audio_coding/neteq4/decoder_database_unittest.cc',
123 'audio_coding/neteq4/delay_manager_unittest.cc',
124 'audio_coding/neteq4/delay_peak_detector_unittest.cc',
125 'audio_coding/neteq4/dsp_helper_unittest.cc',
126 'audio_coding/neteq4/dtmf_buffer_unittest.cc',
127 'audio_coding/neteq4/dtmf_tone_generator_unittest.cc',
128 'audio_coding/neteq4/expand_unittest.cc',
129 'audio_coding/neteq4/merge_unittest.cc',
130 'audio_coding/neteq4/neteq_external_decoder_unittest.cc',
131 'audio_coding/neteq4/neteq_impl_unittest.cc',
132 'audio_coding/neteq4/neteq_stereo_unittest.cc',
133 'audio_coding/neteq4/neteq_unittest.cc',
134 'audio_coding/neteq4/normal_unittest.cc',
135 'audio_coding/neteq4/packet_buffer_unittest.cc',
136 'audio_coding/neteq4/payload_splitter_unittest.cc',
137 'audio_coding/neteq4/post_decode_vad_unittest.cc',
138 'audio_coding/neteq4/random_vector_unittest.cc',
139 'audio_coding/neteq4/sync_buffer_unittest.cc',
140 'audio_coding/neteq4/timestamp_scaler_unittest.cc',
141 'audio_coding/neteq4/time_stretch_unittest.cc',
142 'audio_coding/neteq4/mock/mock_audio_decoder.h',
143 'audio_coding/neteq4/mock/mock_audio_vector.h',
144 'audio_coding/neteq4/mock/mock_buffer_level_filter.h',
145 'audio_coding/neteq4/mock/mock_decoder_database.h',
146 'audio_coding/neteq4/mock/mock_delay_manager.h',
147 'audio_coding/neteq4/mock/mock_delay_peak_detector.h',
148 'audio_coding/neteq4/mock/mock_dtmf_buffer.h',
149 'audio_coding/neteq4/mock/mock_dtmf_tone_generator.h',
150 'audio_coding/neteq4/mock/mock_external_decoder_pcm16b.h',
151 'audio_coding/neteq4/mock/mock_packet_buffer.h',
152 'audio_coding/neteq4/mock/mock_payload_splitter.h',
153 'audio_coding/neteq4/tools/packet_unittest.cc',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000154 'audio_processing/aec/system_delay_unittest.cc',
155 'audio_processing/aec/echo_cancellation_unittest.cc',
andrew@webrtc.org1760a172013-09-25 23:17:38 +0000156 'audio_processing/echo_cancellation_impl_unittest.cc',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000157 'audio_processing/utility/delay_estimator_unittest.cc',
158 'audio_processing/utility/ring_buffer_unittest.cc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000159 'bitrate_controller/bitrate_controller_unittest.cc',
sergeyu@chromium.orge6e749d2013-10-16 02:48:41 +0000160 'desktop_capture/desktop_and_cursor_composer_unittest.cc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000161 'desktop_capture/desktop_region_unittest.cc',
162 'desktop_capture/differ_block_unittest.cc',
163 'desktop_capture/differ_unittest.cc',
sergeyu@chromium.orge6e749d2013-10-16 02:48:41 +0000164 'desktop_capture/mouse_cursor_monitor_unittest.cc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000165 'desktop_capture/screen_capturer_helper_unittest.cc',
166 'desktop_capture/screen_capturer_mac_unittest.cc',
167 'desktop_capture/screen_capturer_mock_objects.h',
168 'desktop_capture/screen_capturer_unittest.cc',
169 'desktop_capture/window_capturer_unittest.cc',
andrew@webrtc.org60730cf2014-01-07 17:45:09 +0000170 'desktop_capture/win/cursor_unittest.cc',
171 'desktop_capture/win/cursor_unittest_resources.h',
172 'desktop_capture/win/cursor_unittest_resources.rc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000173 'media_file/source/media_file_unittest.cc',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000174 'module_common_types_unittest.cc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000175 'pacing/paced_sender_unittest.cc',
stefan@webrtc.orgc88d3362014-02-05 15:57:14 +0000176 'remote_bitrate_estimator/bwe_simulations.cc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000177 'remote_bitrate_estimator/include/mock/mock_remote_bitrate_observer.h',
sprang@webrtc.org37968a92013-12-03 10:31:59 +0000178 'remote_bitrate_estimator/rate_statistics_unittest.cc',
solenberg@webrtc.org86136a02013-09-09 13:06:52 +0000179 'remote_bitrate_estimator/remote_bitrate_estimator_single_stream_unittest.cc',
180 'remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc',
181 'remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.h',
solenberg@webrtc.org82151062013-10-21 14:23:26 +0000182 'remote_bitrate_estimator/remote_bitrate_estimators_test.cc',
solenberg@webrtc.org812dd112013-12-03 15:11:14 +0000183 'remote_bitrate_estimator/test/bwe_test_baselinefile.cc',
184 'remote_bitrate_estimator/test/bwe_test_baselinefile.h',
185 'remote_bitrate_estimator/test/bwe_test_fileutils.cc',
186 'remote_bitrate_estimator/test/bwe_test_fileutils.h',
solenberg@webrtc.orgd6e46632013-10-30 16:06:26 +0000187 'remote_bitrate_estimator/test/bwe_test_framework.cc',
188 'remote_bitrate_estimator/test/bwe_test_framework.h',
189 'remote_bitrate_estimator/test/bwe_test_framework_unittest.cc',
190 'remote_bitrate_estimator/test/bwe_test_logging.cc',
191 'remote_bitrate_estimator/test/bwe_test_logging.h',
solenberg@webrtc.orgc8f76dd2013-11-28 10:11:35 +0000192 'remote_bitrate_estimator/test/bwe_test.cc',
193 'remote_bitrate_estimator/test/bwe_test.h',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000194 'rtp_rtcp/source/mock/mock_rtp_payload_strategy.h',
sprang@webrtc.org499631c2013-12-03 13:22:48 +0000195 'rtp_rtcp/source/byte_io_unittest.cc',
stefan@webrtc.org7bb8f022013-09-06 13:40:11 +0000196 'rtp_rtcp/source/fec_receiver_unittest.cc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000197 'rtp_rtcp/source/fec_test_helper.cc',
198 'rtp_rtcp/source/fec_test_helper.h',
199 'rtp_rtcp/source/nack_rtx_unittest.cc',
200 'rtp_rtcp/source/producer_fec_unittest.cc',
stefan@webrtc.org286fe0b2013-08-21 20:58:21 +0000201 'rtp_rtcp/source/receive_statistics_unittest.cc',
wu@webrtc.org88abf112014-05-14 16:53:51 +0000202 'rtp_rtcp/source/remote_ntp_time_estimator_unittest.cc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000203 'rtp_rtcp/source/rtcp_format_remb_unittest.cc',
asapersson@webrtc.org0f2809a2014-02-21 08:14:45 +0000204 'rtp_rtcp/source/rtcp_packet_unittest.cc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000205 'rtp_rtcp/source/rtcp_receiver_unittest.cc',
asapersson@webrtc.org0f2809a2014-02-21 08:14:45 +0000206 'rtp_rtcp/source/rtcp_sender_unittest.cc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000207 'rtp_rtcp/source/rtp_fec_unittest.cc',
208 'rtp_rtcp/source/rtp_format_vp8_unittest.cc',
209 'rtp_rtcp/source/rtp_format_vp8_test_helper.cc',
210 'rtp_rtcp/source/rtp_format_vp8_test_helper.h',
211 'rtp_rtcp/source/rtp_packet_history_unittest.cc',
212 'rtp_rtcp/source/rtp_payload_registry_unittest.cc',
asapersson@webrtc.org042e91c2013-10-23 13:58:31 +0000213 'rtp_rtcp/source/rtp_rtcp_impl_unittest.cc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000214 'rtp_rtcp/source/rtp_utility_unittest.cc',
215 'rtp_rtcp/source/rtp_header_extension_unittest.cc',
216 'rtp_rtcp/source/rtp_sender_unittest.cc',
217 'rtp_rtcp/source/vp8_partition_aggregator_unittest.cc',
218 'rtp_rtcp/test/testAPI/test_api.cc',
219 'rtp_rtcp/test/testAPI/test_api.h',
220 'rtp_rtcp/test/testAPI/test_api_audio.cc',
221 'rtp_rtcp/test/testAPI/test_api_rtcp.cc',
222 'rtp_rtcp/test/testAPI/test_api_video.cc',
kjellander@webrtc.orgfec34d72013-06-05 08:58:46 +0000223 'utility/source/audio_frame_operations_unittest.cc',
henrik.lundin@webrtc.org74767402014-05-26 13:37:45 +0000224 'utility/source/file_player_unittests.cc',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000225 'video_coding/codecs/test/packet_manipulator_unittest.cc',
226 'video_coding/codecs/test/stats_unittest.cc',
227 'video_coding/codecs/test/videoprocessor_unittest.cc',
228 'video_coding/codecs/vp8/default_temporal_layers_unittest.cc',
229 'video_coding/codecs/vp8/reference_picture_selection_unittest.cc',
230 'video_coding/main/interface/mock/mock_vcm_callbacks.h',
231 'video_coding/main/source/decoding_state_unittest.cc',
232 'video_coding/main/source/jitter_buffer_unittest.cc',
henrik.lundin@webrtc.org544b17c2013-09-26 12:05:15 +0000233 'video_coding/main/source/media_optimization_unittest.cc',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000234 'video_coding/main/source/receiver_unittest.cc',
235 'video_coding/main/source/session_info_unittest.cc',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000236 'video_coding/main/source/timing_unittest.cc',
237 'video_coding/main/source/video_coding_robustness_unittest.cc',
andresp@webrtc.orge401c2e2013-09-16 20:29:13 +0000238 'video_coding/main/source/video_receiver_unittest.cc',
239 'video_coding/main/source/video_sender_unittest.cc',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000240 'video_coding/main/source/qm_select_unittest.cc',
andresp@webrtc.org1f09dbe2013-09-13 19:17:54 +0000241 'video_coding/main/source/test/stream_generator.cc',
242 'video_coding/main/source/test/stream_generator.h',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000243 'video_coding/main/test/pcap_file_reader.cc',
244 'video_coding/main/test/pcap_file_reader_unittest.cc',
245 'video_coding/main/test/rtp_file_reader.cc',
246 'video_coding/main/test/rtp_file_reader_unittest.cc',
247 'video_processing/main/test/unit_test/brightness_detection_test.cc',
248 'video_processing/main/test/unit_test/color_enhancement_test.cc',
249 'video_processing/main/test/unit_test/content_metrics_test.cc',
250 'video_processing/main/test/unit_test/deflickering_test.cc',
251 'video_processing/main/test/unit_test/denoising_test.cc',
pbos@webrtc.orgc66aaaf2013-07-03 07:56:33 +0000252 'video_processing/main/test/unit_test/video_processing_unittest.cc',
253 'video_processing/main/test/unit_test/video_processing_unittest.h',
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +0000254 ],
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000255 'conditions': [
solenberg@webrtc.orgd6e46632013-10-30 16:06:26 +0000256 ['enable_bwe_test_logging==1', {
257 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1' ],
258 }, {
259 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0' ],
260 'sources!': [
261 'remote_bitrate_estimator/test/bwe_test_logging.cc'
262 ],
263 }],
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000264 # Run screen/window capturer tests only on platforms where they are
265 # supported.
sergeyu@chromium.org9e182792013-06-17 21:14:36 +0000266 ['desktop_capture_supported==0', {
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000267 'sources!': [
sergeyu@chromium.orge6e749d2013-10-16 02:48:41 +0000268 'desktop_capture/desktop_and_cursor_composer_unittest.cc',
sergeyu@chromium.org2767b532013-10-16 02:42:38 +0000269 'desktop_capture/mouse_cursor_monitor_unittest.cc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000270 'desktop_capture/screen_capturer_helper_unittest.cc',
271 'desktop_capture/screen_capturer_mac_unittest.cc',
272 'desktop_capture/screen_capturer_mock_objects.h',
273 'desktop_capture/screen_capturer_unittest.cc',
274 'desktop_capture/window_capturer_unittest.cc',
275 ],
276 }],
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000277 ['prefer_fixed_point==1', {
278 'defines': [ 'WEBRTC_AUDIOPROC_FIXED_PROFILE' ],
279 }, {
280 'defines': [ 'WEBRTC_AUDIOPROC_FLOAT_PROFILE' ],
281 }],
282 ['enable_protobuf==1', {
283 'defines': [ 'WEBRTC_AUDIOPROC_DEBUG_DUMP' ],
andrew@webrtc.orgdd5d8042014-03-13 00:57:52 +0000284 'dependencies': [
285 'audioproc_unittest_proto',
286 ],
287 'sources': [
288 'audio_processing/audio_processing_impl_unittest.cc',
289 'audio_processing/test/audio_processing_unittest.cc',
290 'audio_processing/test/test_utils.h',
291 ],
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000292 }],
293 ['build_libvpx==1', {
294 'dependencies': [
295 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
296 ],
297 }],
henrike@webrtc.org1303af32013-07-03 21:50:33 +0000298 # TODO(henrike): remove build_with_chromium==1 when the bots are
299 # using Chromium's buildbots.
300 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
301 'dependencies': [
302 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
303 ],
304 }],
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000305 ],
306 # Disable warnings to enable Win64 build, issue 1323.
307 'msvs_disabled_warnings': [
308 4267, # size_t to int truncation.
309 ],
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +0000310 },
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000311 {
phoglund@webrtc.org32fe90b2013-08-19 11:40:19 +0000312 'target_name': 'modules_tests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000313 'type': '<(gtest_target_type)',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000314 'dependencies': [
315 'audio_coding_module',
316 'rtp_rtcp',
317 'test_framework',
318 'video_codecs_test_framework',
319 'webrtc_utility',
320 'webrtc_video_coding',
321 '<(DEPTH)/testing/gtest.gyp:gtest',
322 '<(webrtc_root)/common_video/common_video.gyp:common_video',
323 '<(webrtc_root)/modules/video_coding/codecs/vp8/vp8.gyp:webrtc_vp8',
324 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
325 '<(webrtc_root)/test/metrics.gyp:metrics',
326 '<(webrtc_root)/test/test.gyp:test_support',
327 '<(webrtc_root)/test/test.gyp:test_support_main',
328 ],
329 'defines': [
330 '<@(audio_coding_defines)',
331 ],
332 'sources': [
333 'audio_coding/main/test/ACMTest.cc',
334 'audio_coding/main/test/APITest.cc',
335 'audio_coding/main/test/Channel.cc',
336 'audio_coding/main/test/dual_stream_unittest.cc',
337 'audio_coding/main/test/EncodeDecodeTest.cc',
338 'audio_coding/main/test/iSACTest.cc',
339 'audio_coding/main/test/opus_test.cc',
minyue@webrtc.orgaa5ea1c2014-05-23 15:16:51 +0000340 'audio_coding/main/test/PacketLossTest.cc',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000341 'audio_coding/main/test/PCMFile.cc',
342 'audio_coding/main/test/RTPFile.cc',
343 'audio_coding/main/test/SpatialAudio.cc',
344 'audio_coding/main/test/TestAllCodecs.cc',
345 'audio_coding/main/test/target_delay_unittest.cc',
346 'audio_coding/main/test/Tester.cc',
minyue@webrtc.orgaa5ea1c2014-05-23 15:16:51 +0000347 'audio_coding/main/test/TestRedFec.cc',
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000348 'audio_coding/main/test/TestStereo.cc',
349 'audio_coding/main/test/TestVADDTX.cc',
350 'audio_coding/main/test/TimedTrace.cc',
351 'audio_coding/main/test/TwoWayCommunication.cc',
352 'audio_coding/main/test/initial_delay_unittest.cc',
353 'audio_coding/main/test/utility.cc',
354 'rtp_rtcp/test/testFec/test_fec.cc',
355 'video_coding/codecs/test/videoprocessor_integrationtest.cc',
356 'video_coding/codecs/vp8/test/vp8_impl_unittest.cc',
357 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000358 'conditions': [
359 # TODO(henrike): remove build_with_chromium==1 when the bots are
360 # using Chromium's buildbots.
361 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
362 'dependencies': [
363 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
364 ],
365 }],
366 ],
kjellander@webrtc.org63e98882013-06-14 20:09:44 +0000367 },
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +0000368 ],
henrike@webrtc.org1303af32013-07-03 21:50:33 +0000369 'conditions': [
370 # TODO(henrike): remove build_with_chromium==1 when the bots are using
371 # Chromium's buildbots.
henrike@webrtc.orgbd3eee32013-07-08 17:34:20 +0000372 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
henrike@webrtc.org1303af32013-07-03 21:50:33 +0000373 'targets': [
374 {
375 'target_name': 'modules_unittests_apk_target',
376 'type': 'none',
377 'dependencies': [
378 '<(apk_tests_path):modules_unittests_apk',
379 ],
andrew@webrtc.org2cbb4292013-08-02 20:52:54 +0000380 },
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000381 {
phoglund@webrtc.org32fe90b2013-08-19 11:40:19 +0000382 'target_name': 'modules_tests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000383 'type': 'none',
384 'dependencies': [
phoglund@webrtc.org32fe90b2013-08-19 11:40:19 +0000385 '<(apk_tests_path):modules_tests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000386 ],
387 },
388 ],
389 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000390 ['test_isolation_mode != "noop"', {
391 'targets': [
392 {
393 'target_name': 'modules_tests_run',
394 'type': 'none',
395 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000396 'modules_tests',
397 ],
398 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000399 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000400 'modules_tests.isolate',
401 ],
402 'sources': [
403 'modules_tests.isolate',
404 ],
405 },
406 {
407 'target_name': 'modules_unittests_run',
408 'type': 'none',
409 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000410 'modules_unittests',
411 ],
412 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000413 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000414 'modules_unittests.isolate',
415 ],
416 'sources': [
417 'modules_unittests.isolate',
418 ],
419 },
420 ],
421 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000422 ],
mflodman@webrtc.org6af95942012-05-24 13:23:35 +0000423 }], # include_tests
xians@google.comd3185fe2011-09-12 12:24:39 +0000424 ], # conditions
425}