| OLD | NEW |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("//testing/test.gni") | |
| 10 import("//third_party/protobuf/proto_library.gni") | 9 import("//third_party/protobuf/proto_library.gni") |
| 11 import("../build/webrtc.gni") | 10 import("../build/webrtc.gni") |
| 12 | 11 |
| 13 source_set("tools") { | 12 rtc_source_set("tools") { |
| 14 deps = [ | 13 deps = [ |
| 15 ":command_line_parser", | 14 ":command_line_parser", |
| 16 ] | 15 ] |
| 17 | 16 |
| 18 if (!build_with_chromium) { | 17 if (!build_with_chromium) { |
| 19 # TODO(kjellander): Enable these when webrtc:5970 is fixed. | 18 # TODO(kjellander): Enable these when webrtc:5970 is fixed. |
| 20 deps += [ | 19 deps += [ |
| 21 ":frame_analyzer", | 20 ":frame_analyzer", |
| 22 ":rgba_to_i420_converter", | 21 ":rgba_to_i420_converter", |
| 23 ] | 22 ] |
| 24 } | 23 } |
| 25 } | 24 } |
| 26 | 25 |
| 27 source_set("command_line_parser") { | 26 rtc_source_set("command_line_parser") { |
| 28 sources = [ | 27 sources = [ |
| 29 "simple_command_line_parser.cc", | 28 "simple_command_line_parser.cc", |
| 30 "simple_command_line_parser.h", | 29 "simple_command_line_parser.h", |
| 31 ] | 30 ] |
| 32 deps = [ | 31 deps = [ |
| 33 "../base:gtest_prod", | 32 "../base:gtest_prod", |
| 34 ] | 33 ] |
| 35 configs += [ "..:common_config" ] | 34 configs += [ "..:common_config" ] |
| 36 public_configs = [ "..:common_inherited_config" ] | 35 public_configs = [ "..:common_inherited_config" ] |
| 37 } | 36 } |
| 38 | 37 |
| 39 source_set("video_quality_analysis") { | 38 rtc_source_set("video_quality_analysis") { |
| 40 sources = [ | 39 sources = [ |
| 41 "frame_analyzer/video_quality_analysis.cc", | 40 "frame_analyzer/video_quality_analysis.cc", |
| 42 "frame_analyzer/video_quality_analysis.h", | 41 "frame_analyzer/video_quality_analysis.h", |
| 43 ] | 42 ] |
| 44 | 43 |
| 45 configs += [ "..:common_config" ] | 44 configs += [ "..:common_config" ] |
| 46 public_configs = [ "..:common_inherited_config" ] | 45 public_configs = [ "..:common_inherited_config" ] |
| 47 | 46 |
| 48 deps = [ | 47 deps = [ |
| 49 "../common_video", | 48 "../common_video", |
| 50 ] | 49 ] |
| 51 public_deps = [ | 50 public_deps = [ |
| 52 "../common_video", | 51 "../common_video", |
| 53 ] | 52 ] |
| 54 } | 53 } |
| 55 | 54 |
| 56 executable("frame_analyzer") { | 55 rtc_executable("frame_analyzer") { |
| 57 sources = [ | 56 sources = [ |
| 58 "frame_analyzer/frame_analyzer.cc", | 57 "frame_analyzer/frame_analyzer.cc", |
| 59 ] | 58 ] |
| 60 | 59 |
| 61 configs += [ "..:common_config" ] | 60 configs += [ "..:common_config" ] |
| 62 public_configs = [ "..:common_inherited_config" ] | 61 public_configs = [ "..:common_inherited_config" ] |
| 63 | 62 |
| 64 deps = [ | 63 deps = [ |
| 65 ":command_line_parser", | 64 ":command_line_parser", |
| 66 ":video_quality_analysis", | 65 ":video_quality_analysis", |
| 67 "//build/config/sanitizers:deps", | 66 "//build/config/sanitizers:deps", |
| 68 "//build/win:default_exe_manifest", | 67 "//build/win:default_exe_manifest", |
| 69 ] | 68 ] |
| 70 } | 69 } |
| 71 | 70 |
| 72 executable("psnr_ssim_analyzer") { | 71 rtc_executable("psnr_ssim_analyzer") { |
| 73 sources = [ | 72 sources = [ |
| 74 "psnr_ssim_analyzer/psnr_ssim_analyzer.cc", | 73 "psnr_ssim_analyzer/psnr_ssim_analyzer.cc", |
| 75 ] | 74 ] |
| 76 | 75 |
| 77 configs += [ "..:common_config" ] | 76 configs += [ "..:common_config" ] |
| 78 public_configs = [ "..:common_inherited_config" ] | 77 public_configs = [ "..:common_inherited_config" ] |
| 79 | 78 |
| 80 deps = [ | 79 deps = [ |
| 81 ":command_line_parser", | 80 ":command_line_parser", |
| 82 ":video_quality_analysis", | 81 ":video_quality_analysis", |
| 83 "//build/config/sanitizers:deps", | 82 "//build/config/sanitizers:deps", |
| 84 "//build/win:default_exe_manifest", | 83 "//build/win:default_exe_manifest", |
| 85 ] | 84 ] |
| 86 } | 85 } |
| 87 | 86 |
| 88 executable("rgba_to_i420_converter") { | 87 rtc_executable("rgba_to_i420_converter") { |
| 89 sources = [ | 88 sources = [ |
| 90 "converter/converter.cc", | 89 "converter/converter.cc", |
| 91 "converter/converter.h", | 90 "converter/converter.h", |
| 92 "converter/rgba_to_i420_converter.cc", | 91 "converter/rgba_to_i420_converter.cc", |
| 93 ] | 92 ] |
| 94 | 93 |
| 95 configs += [ "..:common_config" ] | 94 configs += [ "..:common_config" ] |
| 96 public_configs = [ "..:common_inherited_config" ] | 95 public_configs = [ "..:common_inherited_config" ] |
| 97 | 96 |
| 98 deps = [ | 97 deps = [ |
| 99 ":command_line_parser", | 98 ":command_line_parser", |
| 100 "../common_video", | 99 "../common_video", |
| 101 "//build/config/sanitizers:deps", | 100 "//build/config/sanitizers:deps", |
| 102 "//build/win:default_exe_manifest", | 101 "//build/win:default_exe_manifest", |
| 103 ] | 102 ] |
| 104 } | 103 } |
| 105 | 104 |
| 106 source_set("frame_editing_lib") { | 105 rtc_source_set("frame_editing_lib") { |
| 107 sources = [ | 106 sources = [ |
| 108 "frame_editing/frame_editing_lib.cc", | 107 "frame_editing/frame_editing_lib.cc", |
| 109 "frame_editing/frame_editing_lib.h", | 108 "frame_editing/frame_editing_lib.h", |
| 110 ] | 109 ] |
| 111 | 110 |
| 112 configs += [ "..:common_config" ] | 111 configs += [ "..:common_config" ] |
| 113 public_configs = [ "..:common_inherited_config" ] | 112 public_configs = [ "..:common_inherited_config" ] |
| 114 | 113 |
| 115 # TODO(jschuh): Bug 1348: fix this warning. | 114 # TODO(jschuh): Bug 1348: fix this warning. |
| 116 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 115 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 117 | 116 |
| 118 if (is_clang) { | 117 if (is_clang) { |
| 119 # Suppress warnings from the Chromium Clang plugin. | 118 # Suppress warnings from the Chromium Clang plugin. |
| 120 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 119 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 121 configs -= [ "//build/config/clang:find_bad_constructs" ] | 120 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 122 } | 121 } |
| 123 | 122 |
| 124 deps = [ | 123 deps = [ |
| 125 "../common_video", | 124 "../common_video", |
| 126 ] | 125 ] |
| 127 } | 126 } |
| 128 | 127 |
| 129 executable("frame_editor") { | 128 rtc_executable("frame_editor") { |
| 130 sources = [ | 129 sources = [ |
| 131 "frame_editing/frame_editing.cc", | 130 "frame_editing/frame_editing.cc", |
| 132 ] | 131 ] |
| 133 | 132 |
| 134 configs += [ "..:common_config" ] | 133 configs += [ "..:common_config" ] |
| 135 public_configs = [ "..:common_inherited_config" ] | 134 public_configs = [ "..:common_inherited_config" ] |
| 136 | 135 |
| 137 deps = [ | 136 deps = [ |
| 138 ":command_line_parser", | 137 ":command_line_parser", |
| 139 ":frame_editing_lib", | 138 ":frame_editing_lib", |
| 140 "//build/config/sanitizers:deps", | 139 "//build/config/sanitizers:deps", |
| 141 "//build/win:default_exe_manifest", | 140 "//build/win:default_exe_manifest", |
| 142 ] | 141 ] |
| 143 } | 142 } |
| 144 | 143 |
| 145 executable("force_mic_volume_max") { | 144 rtc_executable("force_mic_volume_max") { |
| 146 sources = [ | 145 sources = [ |
| 147 "force_mic_volume_max/force_mic_volume_max.cc", | 146 "force_mic_volume_max/force_mic_volume_max.cc", |
| 148 ] | 147 ] |
| 149 | 148 |
| 150 configs += [ "..:common_config" ] | 149 configs += [ "..:common_config" ] |
| 151 public_configs = [ "..:common_inherited_config" ] | 150 public_configs = [ "..:common_inherited_config" ] |
| 152 | 151 |
| 153 if (is_clang) { | 152 if (is_clang) { |
| 154 # Suppress warnings from the Chromium Clang plugin. | 153 # Suppress warnings from the Chromium Clang plugin. |
| 155 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 154 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 156 configs -= [ "//build/config/clang:find_bad_constructs" ] | 155 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 157 } | 156 } |
| 158 | 157 |
| 159 deps = [ | 158 deps = [ |
| 160 "../system_wrappers:system_wrappers_default", | 159 "../system_wrappers:system_wrappers_default", |
| 161 "../voice_engine", | 160 "../voice_engine", |
| 162 "//build/config/sanitizers:deps", | 161 "//build/config/sanitizers:deps", |
| 163 "//build/win:default_exe_manifest", | 162 "//build/win:default_exe_manifest", |
| 164 ] | 163 ] |
| 165 } | 164 } |
| 166 | 165 |
| 167 if (rtc_enable_protobuf) { | 166 if (rtc_enable_protobuf) { |
| 168 proto_library("graph_proto") { | 167 proto_library("graph_proto") { |
| 169 sources = [ | 168 sources = [ |
| 170 "event_log_visualizer/graph.proto", | 169 "event_log_visualizer/graph.proto", |
| 171 ] | 170 ] |
| 172 proto_out_dir = "webrtc/tools/event_log_visualizer" | 171 proto_out_dir = "webrtc/tools/event_log_visualizer" |
| 173 } | 172 } |
| 174 | 173 |
| 175 source_set("event_log_visualizer_utils") { | 174 rtc_source_set("event_log_visualizer_utils") { |
| 176 sources = [ | 175 sources = [ |
| 177 "event_log_visualizer/analyzer.cc", | 176 "event_log_visualizer/analyzer.cc", |
| 178 "event_log_visualizer/analyzer.h", | 177 "event_log_visualizer/analyzer.h", |
| 179 "event_log_visualizer/plot_base.cc", | 178 "event_log_visualizer/plot_base.cc", |
| 180 "event_log_visualizer/plot_base.h", | 179 "event_log_visualizer/plot_base.h", |
| 181 "event_log_visualizer/plot_protobuf.cc", | 180 "event_log_visualizer/plot_protobuf.cc", |
| 182 "event_log_visualizer/plot_protobuf.h", | 181 "event_log_visualizer/plot_protobuf.h", |
| 183 "event_log_visualizer/plot_python.cc", | 182 "event_log_visualizer/plot_python.cc", |
| 184 "event_log_visualizer/plot_python.h", | 183 "event_log_visualizer/plot_python.h", |
| 185 ] | 184 ] |
| 186 configs += [ "..:common_config" ] | 185 configs += [ "..:common_config" ] |
| 187 public_configs = [ "..:common_inherited_config" ] | 186 public_configs = [ "..:common_inherited_config" ] |
| 188 if (is_clang && !is_nacl) { | 187 if (is_clang && !is_nacl) { |
| 189 # Suppress warnings from the Chromium Clang plugin. | 188 # Suppress warnings from the Chromium Clang plugin. |
| 190 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 189 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 191 configs -= [ "//build/config/clang:find_bad_constructs" ] | 190 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 192 } | 191 } |
| 193 defines = [ "ENABLE_RTC_EVENT_LOG" ] | 192 defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| 194 deps = [ | 193 deps = [ |
| 195 "../:rtc_event_log", | 194 "../:rtc_event_log", |
| 196 "../:rtc_event_log_parser", | 195 "../:rtc_event_log_parser", |
| 197 "../modules/congestion_controller:congestion_controller", | 196 "../modules/congestion_controller:congestion_controller", |
| 198 "../modules/rtp_rtcp:rtp_rtcp", | 197 "../modules/rtp_rtcp:rtp_rtcp", |
| 199 "../system_wrappers:system_wrappers_default", | 198 "../system_wrappers:system_wrappers_default", |
| 200 "//build/config/sanitizers:deps", | 199 "//build/config/sanitizers:deps", |
| 201 ] | 200 ] |
| 202 public_deps = [ | 201 public_deps = [ |
| 203 ":graph_proto", | 202 ":graph_proto", |
| 204 "../:rtc_event_log_parser", | 203 "../:rtc_event_log_parser", |
| 205 ] | 204 ] |
| 206 } | 205 } |
| 207 } | 206 } |
| 208 | 207 |
| 209 # Exclude tools depending on gflags since that's not available in Chromium. | 208 # Exclude tools depending on gflags since that's not available in Chromium. |
| 210 if (rtc_include_tests) { | 209 if (rtc_include_tests) { |
| 211 if (rtc_enable_protobuf) { | 210 if (rtc_enable_protobuf) { |
| 212 executable("event_log_visualizer") { | 211 rtc_executable("event_log_visualizer") { |
| 213 testonly = true | 212 testonly = true |
| 214 sources = [ | 213 sources = [ |
| 215 "event_log_visualizer/main.cc", | 214 "event_log_visualizer/main.cc", |
| 216 ] | 215 ] |
| 217 | 216 |
| 218 configs += [ "..:common_config" ] | 217 configs += [ "..:common_config" ] |
| 219 public_configs = [ "..:common_inherited_config" ] | 218 public_configs = [ "..:common_inherited_config" ] |
| 220 | 219 |
| 221 if (is_clang && !is_nacl) { | 220 if (is_clang && !is_nacl) { |
| 222 # Suppress warnings from the Chromium Clang plugin. | 221 # Suppress warnings from the Chromium Clang plugin. |
| 223 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 222 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 224 configs -= [ "//build/config/clang:find_bad_constructs" ] | 223 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 225 } | 224 } |
| 226 | 225 |
| 227 defines = [ "ENABLE_RTC_EVENT_LOG" ] | 226 defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| 228 deps = [ | 227 deps = [ |
| 229 ":event_log_visualizer_utils", | 228 ":event_log_visualizer_utils", |
| 230 "//build/config/sanitizers:deps", | 229 "//build/config/sanitizers:deps", |
| 231 "//third_party/gflags", | 230 "//third_party/gflags", |
| 232 ] | 231 ] |
| 233 } | 232 } |
| 234 } | 233 } |
| 235 | 234 |
| 236 executable("activity_metric") { | 235 rtc_executable("activity_metric") { |
| 237 testonly = true | 236 testonly = true |
| 238 sources = [ | 237 sources = [ |
| 239 "agc/activity_metric.cc", | 238 "agc/activity_metric.cc", |
| 240 ] | 239 ] |
| 241 | 240 |
| 242 configs += [ "..:common_config" ] | 241 configs += [ "..:common_config" ] |
| 243 public_configs = [ "..:common_inherited_config" ] | 242 public_configs = [ "..:common_inherited_config" ] |
| 244 | 243 |
| 245 if (is_clang) { | 244 if (is_clang) { |
| 246 # Suppress warnings from the Chromium Clang plugin. | 245 # Suppress warnings from the Chromium Clang plugin. |
| 247 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 246 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 248 configs -= [ "//build/config/clang:find_bad_constructs" ] | 247 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 249 } | 248 } |
| 250 | 249 |
| 251 deps = [ | 250 deps = [ |
| 252 "../modules/audio_processing", | 251 "../modules/audio_processing", |
| 253 "../system_wrappers:metrics_default", | 252 "../system_wrappers:metrics_default", |
| 254 "//build/config/sanitizers:deps", | 253 "//build/config/sanitizers:deps", |
| 255 "//build/win:default_exe_manifest", | 254 "//build/win:default_exe_manifest", |
| 256 "//testing/gtest", | 255 "//testing/gtest", |
| 257 "//third_party/gflags", | 256 "//third_party/gflags", |
| 258 ] | 257 ] |
| 259 } | 258 } |
| 260 | 259 |
| 261 executable("audio_e2e_harness") { | 260 rtc_executable("audio_e2e_harness") { |
| 262 testonly = true | 261 testonly = true |
| 263 sources = [ | 262 sources = [ |
| 264 "e2e_quality/audio/audio_e2e_harness.cc", | 263 "e2e_quality/audio/audio_e2e_harness.cc", |
| 265 ] | 264 ] |
| 266 | 265 |
| 267 configs += [ "..:common_config" ] | 266 configs += [ "..:common_config" ] |
| 268 public_configs = [ "..:common_inherited_config" ] | 267 public_configs = [ "..:common_inherited_config" ] |
| 269 | 268 |
| 270 if (is_clang) { | 269 if (is_clang) { |
| 271 # Suppress warnings from the Chromium Clang plugin. | 270 # Suppress warnings from the Chromium Clang plugin. |
| 272 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 271 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 273 configs -= [ "//build/config/clang:find_bad_constructs" ] | 272 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 274 } | 273 } |
| 275 | 274 |
| 276 deps = [ | 275 deps = [ |
| 277 "../system_wrappers:system_wrappers_default", | 276 "../system_wrappers:system_wrappers_default", |
| 278 "../test:channel_transport", | 277 "../test:channel_transport", |
| 279 "../voice_engine", | 278 "../voice_engine", |
| 280 "//build/config/sanitizers:deps", | 279 "//build/config/sanitizers:deps", |
| 281 "//build/win:default_exe_manifest", | 280 "//build/win:default_exe_manifest", |
| 282 "//testing/gtest", | 281 "//testing/gtest", |
| 283 "//third_party/gflags", | 282 "//third_party/gflags", |
| 284 ] | 283 ] |
| 285 } | 284 } |
| 286 | 285 |
| 287 if (is_android || is_ios) { | 286 if (is_android || is_ios) { |
| 288 tools_unittests_resources = [ "//resources/foreman_cif.yuv" ] | 287 tools_unittests_resources = [ "//resources/foreman_cif.yuv" ] |
| 289 } | 288 } |
| 290 | 289 |
| 291 if (is_ios) { | 290 if (is_ios) { |
| 292 bundle_data("tools_unittests_bundle_data") { | 291 bundle_data("tools_unittests_bundle_data") { |
| 293 testonly = true | 292 testonly = true |
| 294 sources = tools_unittests_resources | 293 sources = tools_unittests_resources |
| 295 outputs = [ | 294 outputs = [ |
| 296 "{{bundle_resources_dir}}/{{source_file_part}}", | 295 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 297 ] | 296 ] |
| 298 } | 297 } |
| 299 } | 298 } |
| 300 | 299 |
| 301 test("tools_unittests") { | 300 rtc_test("tools_unittests") { |
| 302 testonly = true | 301 testonly = true |
| 303 | 302 |
| 304 sources = [ | 303 sources = [ |
| 305 "frame_analyzer/video_quality_analysis_unittest.cc", | 304 "frame_analyzer/video_quality_analysis_unittest.cc", |
| 306 "frame_editing/frame_editing_unittest.cc", | 305 "frame_editing/frame_editing_unittest.cc", |
| 307 "simple_command_line_parser_unittest.cc", | 306 "simple_command_line_parser_unittest.cc", |
| 308 ] | 307 ] |
| 309 | 308 |
| 310 configs += [ "..:common_config" ] | 309 configs += [ "..:common_config" ] |
| 311 public_configs = [ "..:common_inherited_config" ] | 310 public_configs = [ "..:common_inherited_config" ] |
| 312 | 311 |
| 313 # TODO(jschuh): Bug 1348: fix this warning. | 312 # TODO(jschuh): Bug 1348: fix this warning. |
| 314 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 313 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 315 | 314 |
| 316 if (is_clang) { | 315 if (is_clang) { |
| 317 # Suppress warnings from the Chromium Clang plugin. | 316 # Suppress warnings from the Chromium Clang plugin. |
| 318 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 317 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 319 configs -= [ "//build/config/clang:find_bad_constructs" ] | 318 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 320 } | 319 } |
| 321 | 320 |
| 322 deps = [ | 321 deps = [ |
| 323 ":command_line_parser", | 322 ":command_line_parser", |
| 324 ":frame_editing_lib", | 323 ":frame_editing_lib", |
| 325 ":video_quality_analysis", | 324 ":video_quality_analysis", |
| 326 "../test:test_support_main", | 325 "../test:test_support_main", |
| 327 "//testing/gtest", | 326 "//testing/gtest", |
| 328 ] | 327 ] |
| 329 | 328 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 347 ] | 346 ] |
| 348 outputs = [ | 347 outputs = [ |
| 349 "$root_build_dir/{{source_file_part}}", | 348 "$root_build_dir/{{source_file_part}}", |
| 350 ] | 349 ] |
| 351 deps = [ | 350 deps = [ |
| 352 "..:rtc_event_log_proto", | 351 "..:rtc_event_log_proto", |
| 353 ] | 352 ] |
| 354 } | 353 } |
| 355 } | 354 } |
| 356 } | 355 } |
| OLD | NEW |