blob: cd83b52732f1579870348e074655a2fe7b8db635 [file] [log] [blame]
vspasova@webrtc.orgf61dc9b2012-08-22 08:12:00 +00001# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9{
10 'includes': [
11 '../build/common.gypi',
12 ],
13 'targets': [
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000014 {
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000015 'target_name': 'video_quality_analysis',
wjia@webrtc.org2e2a4cf2013-01-18 17:13:47 +000016 'type': 'static_library',
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000017 'dependencies': [
kjellander@webrtc.orgd7e34e12015-01-26 19:17:26 +000018 '<(webrtc_root)/common_video/common_video.gyp:common_video',
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000019 ],
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000020 'export_dependent_settings': [
kjellander@webrtc.orgd7e34e12015-01-26 19:17:26 +000021 '<(webrtc_root)/common_video/common_video.gyp:common_video',
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000022 ],
23 'sources': [
24 'frame_analyzer/video_quality_analysis.h',
25 'frame_analyzer/video_quality_analysis.cc',
26 ],
27 }, # video_quality_analysis
28 {
29 'target_name': 'frame_analyzer',
30 'type': 'executable',
31 'dependencies': [
phoglund@webrtc.org14d77002013-05-17 11:52:08 +000032 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000033 'video_quality_analysis',
34 ],
35 'sources': [
36 'frame_analyzer/frame_analyzer.cc',
37 ],
38 }, # frame_analyzer
39 {
40 'target_name': 'psnr_ssim_analyzer',
41 'type': 'executable',
42 'dependencies': [
phoglund@webrtc.org14d77002013-05-17 11:52:08 +000043 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000044 'video_quality_analysis',
45 ],
46 'sources': [
47 'psnr_ssim_analyzer/psnr_ssim_analyzer.cc',
48 ],
49 }, # psnr_ssim_analyzer
vspasova@webrtc.orgf61dc9b2012-08-22 08:12:00 +000050 {
51 'target_name': 'rgba_to_i420_converter',
52 'type': 'executable',
53 'dependencies': [
kjellander@webrtc.orgd7e34e12015-01-26 19:17:26 +000054 '<(webrtc_root)/common_video/common_video.gyp:common_video',
phoglund@webrtc.org14d77002013-05-17 11:52:08 +000055 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
vspasova@webrtc.orgf61dc9b2012-08-22 08:12:00 +000056 ],
57 'sources': [
58 'converter/converter.h',
59 'converter/converter.cc',
60 'converter/rgba_to_i420_converter.cc',
vspasova@webrtc.orgf61dc9b2012-08-22 08:12:00 +000061 ],
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000062 }, # rgba_to_i420_converter
brykt@google.com4de3dfe2012-11-27 13:44:07 +000063 {
brykt@google.comf5568902012-12-20 11:42:45 +000064 'target_name': 'frame_editing_lib',
wjia@webrtc.org2e2a4cf2013-01-18 17:13:47 +000065 'type': 'static_library',
brykt@google.com4de3dfe2012-11-27 13:44:07 +000066 'dependencies': [
andrew@webrtc.orgdddc02b2012-11-30 02:28:27 +000067 '<(webrtc_root)/common_video/common_video.gyp:common_video',
brykt@google.com4de3dfe2012-11-27 13:44:07 +000068 ],
69 'sources': [
brykt@google.comf5568902012-12-20 11:42:45 +000070 'frame_editing/frame_editing_lib.cc',
71 'frame_editing/frame_editing_lib.h',
brykt@google.com4de3dfe2012-11-27 13:44:07 +000072 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +000073 # Disable warnings to enable Win64 build, issue 1323.
74 'msvs_disabled_warnings': [
75 4267, # size_t to int truncation.
76 ],
brykt@google.comf5568902012-12-20 11:42:45 +000077 }, # frame_editing_lib
brykt@google.com4de3dfe2012-11-27 13:44:07 +000078 {
brykt@google.comf5568902012-12-20 11:42:45 +000079 'target_name': 'frame_editor',
brykt@google.com4de3dfe2012-11-27 13:44:07 +000080 'type': 'executable',
81 'dependencies': [
phoglund@webrtc.org14d77002013-05-17 11:52:08 +000082 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
brykt@google.comf5568902012-12-20 11:42:45 +000083 'frame_editing_lib',
brykt@google.com4de3dfe2012-11-27 13:44:07 +000084 ],
85 'sources': [
brykt@google.comf5568902012-12-20 11:42:45 +000086 'frame_editing/frame_editing.cc',
brykt@google.com4de3dfe2012-11-27 13:44:07 +000087 ],
brykt@google.comf5568902012-12-20 11:42:45 +000088 }, # frame_editing
phoglund@webrtc.org14d77002013-05-17 11:52:08 +000089 {
90 'target_name': 'force_mic_volume_max',
91 'type': 'executable',
92 'dependencies': [
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000093 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000094 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
phoglund@webrtc.org14d77002013-05-17 11:52:08 +000095 ],
96 'sources': [
97 'force_mic_volume_max/force_mic_volume_max.cc',
98 ],
99 }, # force_mic_volume_max
vspasova@webrtc.orgf61dc9b2012-08-22 08:12:00 +0000100 ],
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000101 'conditions': [
skvlad185ba292016-08-23 13:01:27 -0700102 ['enable_protobuf==1', {
terelius54ce6802016-07-13 06:44:41 -0700103 'targets': [
104 {
skvlad185ba292016-08-23 13:01:27 -0700105 # RTC event log visualization library
106 'target_name': 'event_log_visualizer_utils',
107 'type': 'static_library',
terelius54ce6802016-07-13 06:44:41 -0700108 'dependencies': [
Stefan Holmer13181032016-07-29 14:48:54 +0200109 '<(webrtc_root)/webrtc.gyp:rtc_event_log',
terelius54ce6802016-07-13 06:44:41 -0700110 '<(webrtc_root)/webrtc.gyp:rtc_event_log_parser',
Stefan Holmer13181032016-07-29 14:48:54 +0200111 '<(webrtc_root)/modules/modules.gyp:congestion_controller',
terelius54ce6802016-07-13 06:44:41 -0700112 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
113 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default',
terelius54ce6802016-07-13 06:44:41 -0700114 ],
115 'sources': [
116 'event_log_visualizer/analyzer.cc',
117 'event_log_visualizer/analyzer.h',
tereliusdc35dcd2016-08-01 12:03:27 -0700118 'event_log_visualizer/plot_base.cc',
terelius54ce6802016-07-13 06:44:41 -0700119 'event_log_visualizer/plot_base.h',
120 'event_log_visualizer/plot_python.cc',
121 'event_log_visualizer/plot_python.h',
122 ],
skvlad185ba292016-08-23 13:01:27 -0700123 'export_dependent_settings': [
124 '<(webrtc_root)/webrtc.gyp:rtc_event_log_parser',
125 ],
126 },
127 ],
128 }],
129 ['enable_protobuf==1 and include_tests==1', {
130 # TODO(terelius): This tool requires the include_test condition to
131 # prevent build errors when gflags isn't found in downstream projects.
132 # There should be a cleaner way to do this. The tool is not test related.
133 'targets': [
134 {
135 # Command line tool for RTC event log visualization
136 'target_name': 'event_log_visualizer',
137 'type': 'executable',
138 'dependencies': [
139 'event_log_visualizer_utils',
140 '<(webrtc_root)/test/test.gyp:field_trial',
141 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
142 ],
143 'sources': [
144 'event_log_visualizer/main.cc',
145 ],
terelius54ce6802016-07-13 06:44:41 -0700146 },
147 ],
148 }],
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000149 ['include_tests==1', {
150 'targets' : [
151 {
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000152 'target_name': 'agc_test_utils',
153 'type': 'static_library',
154 'sources': [
155 'agc/test_utils.cc',
156 'agc/test_utils.h',
pbos@webrtc.orga7f77722014-12-15 16:33:16 +0000157 ],
158 },
159 {
160 'target_name': 'agc_harness',
161 'type': 'executable',
162 'dependencies': [
163 '<(DEPTH)/testing/gtest.gyp:gtest',
164 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000165 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
pbos@webrtc.orga7f77722014-12-15 16:33:16 +0000166 '<(webrtc_root)/test/test.gyp:channel_transport',
167 '<(webrtc_root)/test/test.gyp:test_support',
Alejandro Luebsd094c042015-09-29 15:43:42 -0700168 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
pbos@webrtc.orga7f77722014-12-15 16:33:16 +0000169 ],
170 'sources': [
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000171 'agc/agc_harness.cc',
pbos@webrtc.orga7f77722014-12-15 16:33:16 +0000172 ],
173 }, # agc_harness
174 {
pbos@webrtc.orga7f77722014-12-15 16:33:16 +0000175 'target_name': 'activity_metric',
176 'type': 'executable',
177 'dependencies': [
178 '<(DEPTH)/testing/gtest.gyp:gtest',
179 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
Alejandro Luebsd094c042015-09-29 15:43:42 -0700180 '<(webrtc_root)/modules/modules.gyp:audio_processing',
pbos@webrtc.orga7f77722014-12-15 16:33:16 +0000181 ],
182 'sources': [
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000183 'agc/activity_metric.cc',
pbos@webrtc.orga7f77722014-12-15 16:33:16 +0000184 ],
185 }, # activity_metric
186 {
kjellander@webrtc.orgeb61a852013-10-21 08:40:56 +0000187 'target_name': 'audio_e2e_harness',
188 'type': 'executable',
189 'dependencies': [
190 '<(webrtc_root)/test/test.gyp:channel_transport',
191 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000192 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
kjellander@webrtc.orgeb61a852013-10-21 08:40:56 +0000193 '<(DEPTH)/testing/gtest.gyp:gtest',
194 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
195 ],
196 'sources': [
197 'e2e_quality/audio/audio_e2e_harness.cc',
198 ],
199 }, # audio_e2e_harness
200 {
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000201 'target_name': 'tools_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000202 'type': '<(gtest_target_type)',
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000203 'dependencies': [
brykt@google.comf5568902012-12-20 11:42:45 +0000204 'frame_editing_lib',
kjellander@webrtc.orgf880f862013-09-10 12:10:01 +0000205 'video_quality_analysis',
phoglund@webrtc.org14d77002013-05-17 11:52:08 +0000206 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000207 '<(webrtc_root)/test/test.gyp:test_support_main',
208 '<(DEPTH)/testing/gtest.gyp:gtest',
209 ],
210 'sources': [
kjellander@webrtc.orgb2d74972013-01-26 16:36:40 +0000211 'simple_command_line_parser_unittest.cc',
brykt@google.comf5568902012-12-20 11:42:45 +0000212 'frame_editing/frame_editing_unittest.cc',
kjellander@webrtc.orgf880f862013-09-10 12:10:01 +0000213 'frame_analyzer/video_quality_analysis_unittest.cc',
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000214 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000215 # Disable warnings to enable Win64 build, issue 1323.
216 'msvs_disabled_warnings': [
217 4267, # size_t to int truncation.
218 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000219 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000220 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000221 'dependencies': [
222 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
223 ],
224 }],
225 ],
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000226 }, # tools_unittests
aleloi7ebbf902016-06-20 07:39:15 -0700227 {
228 'target_name': 'rtp_analyzer',
229 'type': 'none',
230 'variables': {
231 'copy_output_dir%': '<(PRODUCT_DIR)',
232 },
233 'copies': [
234 {
235 'destination': '<(copy_output_dir)/',
236 'files': [
237 'py_event_log_analyzer/misc.py',
238 'py_event_log_analyzer/pb_parse.py',
239 'py_event_log_analyzer/rtp_analyzer.py',
240 'py_event_log_analyzer/rtp_analyzer.sh',
241 ]
242 },
243 ],
244 'dependencies': [ '<(webrtc_root)/webrtc.gyp:rtc_event_log_proto' ],
245 'process_outputs_as_sources': 1,
246 }, # rtp_analyzer
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000247 ], # targets
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000248 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000249 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000250 'targets': [
251 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000252 'target_name': 'tools_unittests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000253 'type': 'none',
254 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700255 '<(android_tests_path):tools_unittests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000256 ],
257 },
258 ],
kjellandere532aec2016-04-17 20:08:20 -0700259 'conditions': [
260 ['test_isolation_mode != "noop"',
261 {
262 'targets': [
263 {
264 'target_name': 'tools_unittests_apk_run',
265 'type': 'none',
266 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700267 '<(android_tests_path):tools_unittests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700268 ],
269 'includes': [
270 '../build/isolate.gypi',
271 ],
272 'sources': [
273 'tools_unittests_apk.isolate',
274 ],
275 },
276 ],
277 },
278 ],
279 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000280 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000281 ['test_isolation_mode != "noop"', {
282 'targets': [
283 {
284 'target_name': 'tools_unittests_run',
285 'type': 'none',
286 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000287 'tools_unittests',
288 ],
289 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000290 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000291 ],
292 'sources': [
293 'tools_unittests.isolate',
294 ],
295 },
296 ],
297 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000298 ],
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000299 }], # include_tests
300 ], # conditions
wjia@webrtc.org2e2a4cf2013-01-18 17:13:47 +0000301}