kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 1 | # Copyright (c) 2014 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 | |
terelius | b246a29 | 2016-08-23 18:15:25 -0700 | [diff] [blame] | 9 | import("//third_party/protobuf/proto_library.gni") |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 10 | import("../build/webrtc.gni") |
| 11 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 12 | rtc_source_set("tools") { |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 13 | deps = [ |
| 14 | ":command_line_parser", |
| 15 | ] |
kjellander | a811968 | 2016-06-06 02:00:18 -0700 | [diff] [blame] | 16 | |
| 17 | if (!build_with_chromium) { |
| 18 | # TODO(kjellander): Enable these when webrtc:5970 is fixed. |
| 19 | deps += [ |
| 20 | ":frame_analyzer", |
| 21 | ":rgba_to_i420_converter", |
| 22 | ] |
| 23 | } |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 24 | } |
| 25 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 26 | rtc_source_set("command_line_parser") { |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 27 | sources = [ |
Henrik Kjellander | fa16dda | 2015-04-01 22:53:56 +0200 | [diff] [blame] | 28 | "simple_command_line_parser.cc", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 29 | "simple_command_line_parser.h", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 30 | ] |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 31 | deps = [ |
kjellander | 988d31e | 2016-02-05 00:23:50 -0800 | [diff] [blame] | 32 | "../base:gtest_prod", |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 33 | ] |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 34 | configs += [ "..:common_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 35 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 36 | } |
| 37 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 38 | rtc_source_set("video_quality_analysis") { |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 39 | sources = [ |
| 40 | "frame_analyzer/video_quality_analysis.cc", |
| 41 | "frame_analyzer/video_quality_analysis.h", |
| 42 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 43 | |
| 44 | configs += [ "..:common_config" ] |
| 45 | public_configs = [ "..:common_inherited_config" ] |
| 46 | |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 47 | deps = [ |
| 48 | "../common_video", |
| 49 | ] |
| 50 | public_deps = [ |
| 51 | "../common_video", |
| 52 | ] |
| 53 | } |
| 54 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 55 | rtc_executable("frame_analyzer") { |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 56 | sources = [ |
| 57 | "frame_analyzer/frame_analyzer.cc", |
| 58 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 59 | |
| 60 | configs += [ "..:common_config" ] |
| 61 | public_configs = [ "..:common_inherited_config" ] |
| 62 | |
| 63 | deps = [ |
| 64 | ":command_line_parser", |
| 65 | ":video_quality_analysis", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 66 | "//build/config/sanitizers:deps", |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 67 | "//build/win:default_exe_manifest", |
| 68 | ] |
| 69 | } |
| 70 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 71 | rtc_executable("psnr_ssim_analyzer") { |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 72 | sources = [ |
| 73 | "psnr_ssim_analyzer/psnr_ssim_analyzer.cc", |
| 74 | ] |
| 75 | |
| 76 | configs += [ "..:common_config" ] |
| 77 | public_configs = [ "..:common_inherited_config" ] |
| 78 | |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 79 | deps = [ |
| 80 | ":command_line_parser", |
| 81 | ":video_quality_analysis", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 82 | "//build/config/sanitizers:deps", |
brucedawson | 84583e0 | 2016-04-28 00:21:08 -0700 | [diff] [blame] | 83 | "//build/win:default_exe_manifest", |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 84 | ] |
| 85 | } |
| 86 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 87 | rtc_executable("rgba_to_i420_converter") { |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 88 | sources = [ |
| 89 | "converter/converter.cc", |
| 90 | "converter/converter.h", |
| 91 | "converter/rgba_to_i420_converter.cc", |
| 92 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 93 | |
| 94 | configs += [ "..:common_config" ] |
| 95 | public_configs = [ "..:common_inherited_config" ] |
| 96 | |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 97 | deps = [ |
| 98 | ":command_line_parser", |
| 99 | "../common_video", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 100 | "//build/config/sanitizers:deps", |
brucedawson | 84583e0 | 2016-04-28 00:21:08 -0700 | [diff] [blame] | 101 | "//build/win:default_exe_manifest", |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 102 | ] |
| 103 | } |
| 104 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 105 | rtc_source_set("frame_editing_lib") { |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 106 | sources = [ |
| 107 | "frame_editing/frame_editing_lib.cc", |
| 108 | "frame_editing/frame_editing_lib.h", |
| 109 | ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 110 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 111 | configs += [ "..:common_config" ] |
| 112 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 113 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 114 | # TODO(jschuh): Bug 1348: fix this warning. |
| 115 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 116 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 117 | if (is_clang) { |
| 118 | # Suppress warnings from the Chromium Clang plugin. |
| 119 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 120 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 121 | } |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 122 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 123 | deps = [ |
| 124 | "../common_video", |
| 125 | ] |
| 126 | } |
| 127 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 128 | rtc_executable("frame_editor") { |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 129 | sources = [ |
| 130 | "frame_editing/frame_editing.cc", |
| 131 | ] |
| 132 | |
| 133 | configs += [ "..:common_config" ] |
| 134 | public_configs = [ "..:common_inherited_config" ] |
| 135 | |
| 136 | deps = [ |
| 137 | ":command_line_parser", |
| 138 | ":frame_editing_lib", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 139 | "//build/config/sanitizers:deps", |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 140 | "//build/win:default_exe_manifest", |
| 141 | ] |
| 142 | } |
| 143 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 144 | rtc_executable("force_mic_volume_max") { |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 145 | sources = [ |
| 146 | "force_mic_volume_max/force_mic_volume_max.cc", |
| 147 | ] |
| 148 | |
| 149 | configs += [ "..:common_config" ] |
| 150 | public_configs = [ "..:common_inherited_config" ] |
| 151 | |
| 152 | if (is_clang) { |
| 153 | # Suppress warnings from the Chromium Clang plugin. |
| 154 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 155 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 156 | } |
| 157 | |
| 158 | deps = [ |
| 159 | "../system_wrappers:system_wrappers_default", |
| 160 | "../voice_engine", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 161 | "//build/config/sanitizers:deps", |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 162 | "//build/win:default_exe_manifest", |
| 163 | ] |
| 164 | } |
| 165 | |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 166 | if (rtc_enable_protobuf) { |
terelius | b246a29 | 2016-08-23 18:15:25 -0700 | [diff] [blame] | 167 | proto_library("graph_proto") { |
| 168 | sources = [ |
| 169 | "event_log_visualizer/graph.proto", |
| 170 | ] |
| 171 | proto_out_dir = "webrtc/tools/event_log_visualizer" |
| 172 | } |
| 173 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 174 | rtc_source_set("event_log_visualizer_utils") { |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 175 | sources = [ |
| 176 | "event_log_visualizer/analyzer.cc", |
| 177 | "event_log_visualizer/analyzer.h", |
| 178 | "event_log_visualizer/plot_base.cc", |
| 179 | "event_log_visualizer/plot_base.h", |
terelius | b246a29 | 2016-08-23 18:15:25 -0700 | [diff] [blame] | 180 | "event_log_visualizer/plot_protobuf.cc", |
| 181 | "event_log_visualizer/plot_protobuf.h", |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 182 | "event_log_visualizer/plot_python.cc", |
| 183 | "event_log_visualizer/plot_python.h", |
| 184 | ] |
| 185 | configs += [ "..:common_config" ] |
| 186 | public_configs = [ "..:common_inherited_config" ] |
| 187 | if (is_clang && !is_nacl) { |
| 188 | # Suppress warnings from the Chromium Clang plugin. |
| 189 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 190 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 191 | } |
| 192 | defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| 193 | deps = [ |
| 194 | "../:rtc_event_log", |
| 195 | "../:rtc_event_log_parser", |
| 196 | "../modules/congestion_controller:congestion_controller", |
| 197 | "../modules/rtp_rtcp:rtp_rtcp", |
| 198 | "../system_wrappers:system_wrappers_default", |
| 199 | "//build/config/sanitizers:deps", |
| 200 | ] |
| 201 | public_deps = [ |
terelius | b246a29 | 2016-08-23 18:15:25 -0700 | [diff] [blame] | 202 | ":graph_proto", |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 203 | "../:rtc_event_log_parser", |
| 204 | ] |
| 205 | } |
| 206 | } |
| 207 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 208 | # Exclude tools depending on gflags since that's not available in Chromium. |
kjellander@webrtc.org | aff499c | 2016-06-06 23:04:31 +0200 | [diff] [blame] | 209 | if (rtc_include_tests) { |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 210 | if (rtc_enable_protobuf) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 211 | rtc_executable("event_log_visualizer") { |
Stefan Holmer | 1318103 | 2016-07-29 14:48:54 +0200 | [diff] [blame] | 212 | testonly = true |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 213 | sources = [ |
terelius | d49a37b | 2016-08-10 07:12:38 -0700 | [diff] [blame] | 214 | "event_log_visualizer/main.cc", |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 215 | ] |
| 216 | |
| 217 | configs += [ "..:common_config" ] |
| 218 | public_configs = [ "..:common_inherited_config" ] |
| 219 | |
| 220 | if (is_clang && !is_nacl) { |
| 221 | # Suppress warnings from the Chromium Clang plugin. |
| 222 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 223 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 224 | } |
| 225 | |
| 226 | defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| 227 | deps = [ |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 228 | ":event_log_visualizer_utils", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 229 | "//build/config/sanitizers:deps", |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 230 | "//third_party/gflags", |
| 231 | ] |
| 232 | } |
| 233 | } |
| 234 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 235 | rtc_executable("activity_metric") { |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 236 | testonly = true |
| 237 | sources = [ |
| 238 | "agc/activity_metric.cc", |
| 239 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 240 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 241 | configs += [ "..:common_config" ] |
| 242 | public_configs = [ "..:common_inherited_config" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 243 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 244 | if (is_clang) { |
| 245 | # Suppress warnings from the Chromium Clang plugin. |
| 246 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 247 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 248 | } |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 249 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 250 | deps = [ |
| 251 | "../modules/audio_processing", |
| 252 | "../system_wrappers:metrics_default", |
ehmaldonado | 19319a3 | 2016-08-25 02:44:01 -0700 | [diff] [blame] | 253 | "//build/config/sanitizers:deps", |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 254 | "//build/win:default_exe_manifest", |
| 255 | "//testing/gtest", |
| 256 | "//third_party/gflags", |
| 257 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 258 | } |
| 259 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 260 | rtc_executable("audio_e2e_harness") { |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 261 | testonly = true |
| 262 | sources = [ |
| 263 | "e2e_quality/audio/audio_e2e_harness.cc", |
| 264 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 265 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 266 | configs += [ "..:common_config" ] |
| 267 | public_configs = [ "..:common_inherited_config" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 268 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 269 | if (is_clang) { |
| 270 | # Suppress warnings from the Chromium Clang plugin. |
| 271 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 272 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 273 | } |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 274 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 275 | deps = [ |
| 276 | "../system_wrappers:system_wrappers_default", |
| 277 | "../test:channel_transport", |
| 278 | "../voice_engine", |
ehmaldonado | 19319a3 | 2016-08-25 02:44:01 -0700 | [diff] [blame] | 279 | "//build/config/sanitizers:deps", |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 280 | "//build/win:default_exe_manifest", |
| 281 | "//testing/gtest", |
| 282 | "//third_party/gflags", |
| 283 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 284 | } |
| 285 | |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 286 | if (is_android || is_ios) { |
Henrik Kjellander | 7a122d6 | 2016-08-30 13:10:23 +0200 | [diff] [blame] | 287 | tools_unittests_resources = [ "//resources/foreman_cif.yuv" ] |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 288 | } |
| 289 | |
| 290 | if (is_ios) { |
| 291 | bundle_data("tools_unittests_bundle_data") { |
| 292 | testonly = true |
| 293 | sources = tools_unittests_resources |
| 294 | outputs = [ |
| 295 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 296 | ] |
| 297 | } |
| 298 | } |
| 299 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 300 | rtc_test("tools_unittests") { |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 301 | testonly = true |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 302 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 303 | sources = [ |
| 304 | "frame_analyzer/video_quality_analysis_unittest.cc", |
| 305 | "frame_editing/frame_editing_unittest.cc", |
| 306 | "simple_command_line_parser_unittest.cc", |
| 307 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 308 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 309 | configs += [ "..:common_config" ] |
| 310 | public_configs = [ "..:common_inherited_config" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 311 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 312 | # TODO(jschuh): Bug 1348: fix this warning. |
| 313 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 314 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 315 | if (is_clang) { |
| 316 | # Suppress warnings from the Chromium Clang plugin. |
| 317 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 318 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 319 | } |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 320 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 321 | deps = [ |
| 322 | ":command_line_parser", |
| 323 | ":frame_editing_lib", |
| 324 | ":video_quality_analysis", |
| 325 | "../test:test_support_main", |
| 326 | "//testing/gtest", |
| 327 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 328 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 329 | if (is_android) { |
| 330 | deps += [ "//testing/android/native_test:native_test_support" ] |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 331 | data = tools_unittests_resources |
kjellander | 28a0ffd | 2016-08-24 07:48:42 -0700 | [diff] [blame] | 332 | shard_timeout = 900 |
| 333 | } |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 334 | if (is_ios) { |
| 335 | deps += [ ":tools_unittests_bundle_data" ] |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 336 | } |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 337 | } |
aleloi | 7ebbf90 | 2016-06-20 07:39:15 -0700 | [diff] [blame] | 338 | |
| 339 | if (rtc_enable_protobuf) { |
| 340 | copy("rtp_analyzer") { |
| 341 | sources = [ |
| 342 | "py_event_log_analyzer/misc.py", |
| 343 | "py_event_log_analyzer/pb_parse.py", |
| 344 | "py_event_log_analyzer/rtp_analyzer.py", |
| 345 | "py_event_log_analyzer/rtp_analyzer.sh", |
| 346 | ] |
| 347 | outputs = [ |
| 348 | "$root_build_dir/{{source_file_part}}", |
| 349 | ] |
| 350 | deps = [ |
| 351 | "..:rtc_event_log_proto", |
| 352 | ] |
| 353 | } |
| 354 | } |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 355 | } |