vspasova@webrtc.org | f61dc9b | 2012-08-22 08:12:00 +0000 | [diff] [blame] | 1 | # 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.org | ac410e2 | 2012-08-27 14:57:19 +0000 | [diff] [blame] | 14 | { |
vspasova@webrtc.org | ac410e2 | 2012-08-27 14:57:19 +0000 | [diff] [blame] | 15 | 'target_name': 'video_quality_analysis', |
wjia@webrtc.org | 2e2a4cf | 2013-01-18 17:13:47 +0000 | [diff] [blame] | 16 | 'type': 'static_library', |
vspasova@webrtc.org | ac410e2 | 2012-08-27 14:57:19 +0000 | [diff] [blame] | 17 | 'dependencies': [ |
kjellander@webrtc.org | d7e34e1 | 2015-01-26 19:17:26 +0000 | [diff] [blame] | 18 | '<(webrtc_root)/common_video/common_video.gyp:common_video', |
vspasova@webrtc.org | ac410e2 | 2012-08-27 14:57:19 +0000 | [diff] [blame] | 19 | ], |
vspasova@webrtc.org | ac410e2 | 2012-08-27 14:57:19 +0000 | [diff] [blame] | 20 | 'export_dependent_settings': [ |
kjellander@webrtc.org | d7e34e1 | 2015-01-26 19:17:26 +0000 | [diff] [blame] | 21 | '<(webrtc_root)/common_video/common_video.gyp:common_video', |
vspasova@webrtc.org | ac410e2 | 2012-08-27 14:57:19 +0000 | [diff] [blame] | 22 | ], |
| 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.org | 14d7700 | 2013-05-17 11:52:08 +0000 | [diff] [blame] | 32 | '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser', |
vspasova@webrtc.org | ac410e2 | 2012-08-27 14:57:19 +0000 | [diff] [blame] | 33 | '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.org | 14d7700 | 2013-05-17 11:52:08 +0000 | [diff] [blame] | 43 | '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser', |
vspasova@webrtc.org | ac410e2 | 2012-08-27 14:57:19 +0000 | [diff] [blame] | 44 | 'video_quality_analysis', |
| 45 | ], |
| 46 | 'sources': [ |
| 47 | 'psnr_ssim_analyzer/psnr_ssim_analyzer.cc', |
| 48 | ], |
| 49 | }, # psnr_ssim_analyzer |
vspasova@webrtc.org | f61dc9b | 2012-08-22 08:12:00 +0000 | [diff] [blame] | 50 | { |
| 51 | 'target_name': 'rgba_to_i420_converter', |
| 52 | 'type': 'executable', |
| 53 | 'dependencies': [ |
kjellander@webrtc.org | d7e34e1 | 2015-01-26 19:17:26 +0000 | [diff] [blame] | 54 | '<(webrtc_root)/common_video/common_video.gyp:common_video', |
phoglund@webrtc.org | 14d7700 | 2013-05-17 11:52:08 +0000 | [diff] [blame] | 55 | '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser', |
vspasova@webrtc.org | f61dc9b | 2012-08-22 08:12:00 +0000 | [diff] [blame] | 56 | ], |
| 57 | 'sources': [ |
| 58 | 'converter/converter.h', |
| 59 | 'converter/converter.cc', |
| 60 | 'converter/rgba_to_i420_converter.cc', |
vspasova@webrtc.org | f61dc9b | 2012-08-22 08:12:00 +0000 | [diff] [blame] | 61 | ], |
vspasova@webrtc.org | ac410e2 | 2012-08-27 14:57:19 +0000 | [diff] [blame] | 62 | }, # rgba_to_i420_converter |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 63 | { |
brykt@google.com | f556890 | 2012-12-20 11:42:45 +0000 | [diff] [blame] | 64 | 'target_name': 'frame_editing_lib', |
wjia@webrtc.org | 2e2a4cf | 2013-01-18 17:13:47 +0000 | [diff] [blame] | 65 | 'type': 'static_library', |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 66 | 'dependencies': [ |
andrew@webrtc.org | dddc02b | 2012-11-30 02:28:27 +0000 | [diff] [blame] | 67 | '<(webrtc_root)/common_video/common_video.gyp:common_video', |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 68 | ], |
| 69 | 'sources': [ |
brykt@google.com | f556890 | 2012-12-20 11:42:45 +0000 | [diff] [blame] | 70 | 'frame_editing/frame_editing_lib.cc', |
| 71 | 'frame_editing/frame_editing_lib.h', |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 72 | ], |
kjellander@webrtc.org | fa53d87 | 2013-02-04 10:07:17 +0000 | [diff] [blame] | 73 | # Disable warnings to enable Win64 build, issue 1323. |
| 74 | 'msvs_disabled_warnings': [ |
| 75 | 4267, # size_t to int truncation. |
| 76 | ], |
brykt@google.com | f556890 | 2012-12-20 11:42:45 +0000 | [diff] [blame] | 77 | }, # frame_editing_lib |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 78 | { |
brykt@google.com | f556890 | 2012-12-20 11:42:45 +0000 | [diff] [blame] | 79 | 'target_name': 'frame_editor', |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 80 | 'type': 'executable', |
| 81 | 'dependencies': [ |
phoglund@webrtc.org | 14d7700 | 2013-05-17 11:52:08 +0000 | [diff] [blame] | 82 | '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser', |
brykt@google.com | f556890 | 2012-12-20 11:42:45 +0000 | [diff] [blame] | 83 | 'frame_editing_lib', |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 84 | ], |
| 85 | 'sources': [ |
brykt@google.com | f556890 | 2012-12-20 11:42:45 +0000 | [diff] [blame] | 86 | 'frame_editing/frame_editing.cc', |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 87 | ], |
brykt@google.com | f556890 | 2012-12-20 11:42:45 +0000 | [diff] [blame] | 88 | }, # frame_editing |
phoglund@webrtc.org | 14d7700 | 2013-05-17 11:52:08 +0000 | [diff] [blame] | 89 | { |
| 90 | 'target_name': 'force_mic_volume_max', |
| 91 | 'type': 'executable', |
| 92 | 'dependencies': [ |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 93 | '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 94 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default', |
phoglund@webrtc.org | 14d7700 | 2013-05-17 11:52:08 +0000 | [diff] [blame] | 95 | ], |
| 96 | 'sources': [ |
| 97 | 'force_mic_volume_max/force_mic_volume_max.cc', |
| 98 | ], |
| 99 | }, # force_mic_volume_max |
vspasova@webrtc.org | f61dc9b | 2012-08-22 08:12:00 +0000 | [diff] [blame] | 100 | ], |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 101 | 'conditions': [ |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 102 | ['enable_protobuf==1 and include_tests==1', { |
| 103 | # TODO(terelius): This tool requires the include_test condition to |
| 104 | # prevent build errors when gflags isn't found in downstream projects. |
| 105 | # There should be a cleaner way to do this. The tool is not test related. |
| 106 | 'targets': [ |
| 107 | { |
| 108 | # This target should only be built if enable_protobuf is set |
| 109 | 'target_name': 'event_log_visualizer', |
| 110 | 'type': 'executable', |
| 111 | 'dependencies': [ |
Stefan Holmer | 1318103 | 2016-07-29 14:48:54 +0200 | [diff] [blame] | 112 | '<(webrtc_root)/webrtc.gyp:rtc_event_log', |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 113 | '<(webrtc_root)/webrtc.gyp:rtc_event_log_parser', |
Stefan Holmer | 1318103 | 2016-07-29 14:48:54 +0200 | [diff] [blame] | 114 | '<(webrtc_root)/modules/modules.gyp:congestion_controller', |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 115 | '<(webrtc_root)/modules/modules.gyp:rtp_rtcp', |
| 116 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default', |
Stefan Holmer | 1318103 | 2016-07-29 14:48:54 +0200 | [diff] [blame] | 117 | '<(webrtc_root)/test/test.gyp:field_trial', |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 118 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
| 119 | ], |
| 120 | 'sources': [ |
| 121 | 'event_log_visualizer/analyzer.cc', |
| 122 | 'event_log_visualizer/analyzer.h', |
| 123 | 'event_log_visualizer/generate_timeseries.cc', |
terelius | dc35dcd | 2016-08-01 12:03:27 -0700 | [diff] [blame^] | 124 | 'event_log_visualizer/plot_base.cc', |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 125 | 'event_log_visualizer/plot_base.h', |
| 126 | 'event_log_visualizer/plot_python.cc', |
| 127 | 'event_log_visualizer/plot_python.h', |
| 128 | ], |
| 129 | }, |
| 130 | ], |
| 131 | }], |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 132 | ['include_tests==1', { |
| 133 | 'targets' : [ |
| 134 | { |
kjellander@webrtc.org | a33f05e | 2015-01-29 14:29:45 +0000 | [diff] [blame] | 135 | 'target_name': 'agc_test_utils', |
| 136 | 'type': 'static_library', |
| 137 | 'sources': [ |
| 138 | 'agc/test_utils.cc', |
| 139 | 'agc/test_utils.h', |
pbos@webrtc.org | a7f7772 | 2014-12-15 16:33:16 +0000 | [diff] [blame] | 140 | ], |
| 141 | }, |
| 142 | { |
| 143 | 'target_name': 'agc_harness', |
| 144 | 'type': 'executable', |
| 145 | 'dependencies': [ |
| 146 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 147 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 148 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default', |
pbos@webrtc.org | a7f7772 | 2014-12-15 16:33:16 +0000 | [diff] [blame] | 149 | '<(webrtc_root)/test/test.gyp:channel_transport', |
| 150 | '<(webrtc_root)/test/test.gyp:test_support', |
Alejandro Luebs | d094c04 | 2015-09-29 15:43:42 -0700 | [diff] [blame] | 151 | '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine', |
pbos@webrtc.org | a7f7772 | 2014-12-15 16:33:16 +0000 | [diff] [blame] | 152 | ], |
| 153 | 'sources': [ |
kjellander@webrtc.org | a33f05e | 2015-01-29 14:29:45 +0000 | [diff] [blame] | 154 | 'agc/agc_harness.cc', |
pbos@webrtc.org | a7f7772 | 2014-12-15 16:33:16 +0000 | [diff] [blame] | 155 | ], |
| 156 | }, # agc_harness |
| 157 | { |
pbos@webrtc.org | a7f7772 | 2014-12-15 16:33:16 +0000 | [diff] [blame] | 158 | 'target_name': 'activity_metric', |
| 159 | 'type': 'executable', |
| 160 | 'dependencies': [ |
| 161 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 162 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
Alejandro Luebs | d094c04 | 2015-09-29 15:43:42 -0700 | [diff] [blame] | 163 | '<(webrtc_root)/modules/modules.gyp:audio_processing', |
pbos@webrtc.org | a7f7772 | 2014-12-15 16:33:16 +0000 | [diff] [blame] | 164 | ], |
| 165 | 'sources': [ |
kjellander@webrtc.org | a33f05e | 2015-01-29 14:29:45 +0000 | [diff] [blame] | 166 | 'agc/activity_metric.cc', |
pbos@webrtc.org | a7f7772 | 2014-12-15 16:33:16 +0000 | [diff] [blame] | 167 | ], |
| 168 | }, # activity_metric |
| 169 | { |
kjellander@webrtc.org | eb61a85 | 2013-10-21 08:40:56 +0000 | [diff] [blame] | 170 | 'target_name': 'audio_e2e_harness', |
| 171 | 'type': 'executable', |
| 172 | 'dependencies': [ |
| 173 | '<(webrtc_root)/test/test.gyp:channel_transport', |
| 174 | '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 175 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default', |
kjellander@webrtc.org | eb61a85 | 2013-10-21 08:40:56 +0000 | [diff] [blame] | 176 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 177 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
| 178 | ], |
| 179 | 'sources': [ |
| 180 | 'e2e_quality/audio/audio_e2e_harness.cc', |
| 181 | ], |
| 182 | }, # audio_e2e_harness |
| 183 | { |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 184 | 'target_name': 'tools_unittests', |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 185 | 'type': '<(gtest_target_type)', |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 186 | 'dependencies': [ |
brykt@google.com | f556890 | 2012-12-20 11:42:45 +0000 | [diff] [blame] | 187 | 'frame_editing_lib', |
kjellander@webrtc.org | f880f86 | 2013-09-10 12:10:01 +0000 | [diff] [blame] | 188 | 'video_quality_analysis', |
phoglund@webrtc.org | 14d7700 | 2013-05-17 11:52:08 +0000 | [diff] [blame] | 189 | '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser', |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 190 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 191 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 192 | ], |
| 193 | 'sources': [ |
kjellander@webrtc.org | b2d7497 | 2013-01-26 16:36:40 +0000 | [diff] [blame] | 194 | 'simple_command_line_parser_unittest.cc', |
brykt@google.com | f556890 | 2012-12-20 11:42:45 +0000 | [diff] [blame] | 195 | 'frame_editing/frame_editing_unittest.cc', |
kjellander@webrtc.org | f880f86 | 2013-09-10 12:10:01 +0000 | [diff] [blame] | 196 | 'frame_analyzer/video_quality_analysis_unittest.cc', |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 197 | ], |
kjellander@webrtc.org | fa53d87 | 2013-02-04 10:07:17 +0000 | [diff] [blame] | 198 | # Disable warnings to enable Win64 build, issue 1323. |
| 199 | 'msvs_disabled_warnings': [ |
| 200 | 4267, # size_t to int truncation. |
| 201 | ], |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 202 | 'conditions': [ |
kjellander@webrtc.org | 3bd4156 | 2014-09-01 11:06:37 +0000 | [diff] [blame] | 203 | ['OS=="android"', { |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 204 | 'dependencies': [ |
| 205 | '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 206 | ], |
| 207 | }], |
| 208 | ], |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 209 | }, # tools_unittests |
aleloi | 7ebbf90 | 2016-06-20 07:39:15 -0700 | [diff] [blame] | 210 | { |
| 211 | 'target_name': 'rtp_analyzer', |
| 212 | 'type': 'none', |
| 213 | 'variables': { |
| 214 | 'copy_output_dir%': '<(PRODUCT_DIR)', |
| 215 | }, |
| 216 | 'copies': [ |
| 217 | { |
| 218 | 'destination': '<(copy_output_dir)/', |
| 219 | 'files': [ |
| 220 | 'py_event_log_analyzer/misc.py', |
| 221 | 'py_event_log_analyzer/pb_parse.py', |
| 222 | 'py_event_log_analyzer/rtp_analyzer.py', |
| 223 | 'py_event_log_analyzer/rtp_analyzer.sh', |
| 224 | ] |
| 225 | }, |
| 226 | ], |
| 227 | 'dependencies': [ '<(webrtc_root)/webrtc.gyp:rtc_event_log_proto' ], |
| 228 | 'process_outputs_as_sources': 1, |
| 229 | }, # rtp_analyzer |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 230 | ], # targets |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 231 | 'conditions': [ |
kjellander@webrtc.org | 3bd4156 | 2014-09-01 11:06:37 +0000 | [diff] [blame] | 232 | ['OS=="android"', { |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 233 | 'targets': [ |
| 234 | { |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 235 | 'target_name': 'tools_unittests_apk_target', |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 236 | 'type': 'none', |
| 237 | 'dependencies': [ |
kjellander | 208d198 | 2016-05-31 04:01:38 -0700 | [diff] [blame] | 238 | '<(android_tests_path):tools_unittests_apk', |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 239 | ], |
| 240 | }, |
| 241 | ], |
kjellander | e532aec | 2016-04-17 20:08:20 -0700 | [diff] [blame] | 242 | 'conditions': [ |
| 243 | ['test_isolation_mode != "noop"', |
| 244 | { |
| 245 | 'targets': [ |
| 246 | { |
| 247 | 'target_name': 'tools_unittests_apk_run', |
| 248 | 'type': 'none', |
| 249 | 'dependencies': [ |
kjellander | 208d198 | 2016-05-31 04:01:38 -0700 | [diff] [blame] | 250 | '<(android_tests_path):tools_unittests_apk', |
kjellander | e532aec | 2016-04-17 20:08:20 -0700 | [diff] [blame] | 251 | ], |
| 252 | 'includes': [ |
| 253 | '../build/isolate.gypi', |
| 254 | ], |
| 255 | 'sources': [ |
| 256 | 'tools_unittests_apk.isolate', |
| 257 | ], |
| 258 | }, |
| 259 | ], |
| 260 | }, |
| 261 | ], |
| 262 | ], |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 263 | }], |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 264 | ['test_isolation_mode != "noop"', { |
| 265 | 'targets': [ |
| 266 | { |
| 267 | 'target_name': 'tools_unittests_run', |
| 268 | 'type': 'none', |
| 269 | 'dependencies': [ |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 270 | 'tools_unittests', |
| 271 | ], |
| 272 | 'includes': [ |
kjellander@webrtc.org | 2a97317 | 2013-10-02 19:31:16 +0000 | [diff] [blame] | 273 | '../build/isolate.gypi', |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 274 | ], |
| 275 | 'sources': [ |
| 276 | 'tools_unittests.isolate', |
| 277 | ], |
| 278 | }, |
| 279 | ], |
| 280 | }], |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 281 | ], |
brykt@google.com | 4de3dfe | 2012-11-27 13:44:07 +0000 | [diff] [blame] | 282 | }], # include_tests |
| 283 | ], # conditions |
wjia@webrtc.org | 2e2a4cf | 2013-01-18 17:13:47 +0000 | [diff] [blame] | 284 | } |