kjellander | d2b63cf | 2017-06-30 10:04:59 | [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. |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 8 | import("../webrtc.gni") |
Kimmo Kinnunen | 08f6a6c | 2019-02-26 09:46:17 | [diff] [blame] | 9 | if (rtc_enable_protobuf) { |
| 10 | import("//third_party/protobuf/proto_library.gni") |
| 11 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 12 | |
| 13 | group("rtc_tools") { |
| 14 | # This target shall build all targets in tools/. |
| 15 | testonly = true |
| 16 | |
Mirko Bonadei | f5ff67c | 2017-12-06 15:31:18 | [diff] [blame] | 17 | deps = [ |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 18 | ":frame_analyzer", |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 19 | ":video_file_reader", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 20 | ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 21 | if (!build_with_chromium) { |
Mirko Bonadei | f5ff67c | 2017-12-06 15:31:18 | [diff] [blame] | 22 | deps += [ |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 23 | ":psnr_ssim_analyzer", |
| 24 | ":rgba_to_i420_converter", |
Mirko Bonadei | 08ce986 | 2020-06-11 09:25:32 | [diff] [blame] | 25 | ":video_quality_analysis", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 26 | ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 27 | } |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 28 | if (!build_with_chromium && rtc_enable_protobuf) { |
| 29 | deps += [ ":chart_proto" ] |
| 30 | } |
| 31 | if (!build_with_chromium && rtc_include_tests) { |
Artem Titov | 8041b65 | 2020-02-19 14:03:45 | [diff] [blame] | 32 | deps += [ |
| 33 | ":tools_unittests", |
| 34 | ":yuv_to_ivf_converter", |
| 35 | ] |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 36 | } |
| 37 | if (rtc_include_tests && rtc_enable_protobuf) { |
| 38 | deps += [ |
| 39 | ":rtp_analyzer", |
| 40 | "network_tester", |
| 41 | ] |
| 42 | } |
| 43 | if (rtc_include_tests && rtc_enable_protobuf && !build_with_chromium) { |
| 44 | deps += [ |
| 45 | ":audioproc_f", |
| 46 | ":event_log_visualizer", |
| 47 | ":unpack_aecdump", |
| 48 | ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 49 | } |
Florent Castelli | 023be3c | 2022-03-15 15:01:52 | [diff] [blame] | 50 | if (!build_with_chromium && rtc_enable_grpc) { |
| 51 | deps += [ "data_channel_benchmark" ] |
| 52 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 53 | } |
| 54 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 55 | rtc_library("video_file_reader") { |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 56 | sources = [ |
| 57 | "video_file_reader.cc", |
| 58 | "video_file_reader.h", |
| 59 | ] |
| 60 | deps = [ |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 61 | "../api:scoped_refptr", |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 62 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 63 | "../api/video:video_rtp_headers", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 64 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 65 | "../rtc_base:logging", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 66 | "../rtc_base:refcount", |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 67 | "../rtc_base:rtc_base_approved", |
Florent Castelli | 57aa81b | 2022-04-04 15:14:02 | [diff] [blame] | 68 | "../rtc_base:stringutils", |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 69 | ] |
| 70 | absl_deps = [ |
Steve Anton | 68586e8 | 2018-12-14 01:41:25 | [diff] [blame] | 71 | "//third_party/abseil-cpp/absl/strings", |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 72 | "//third_party/abseil-cpp/absl/types:optional", |
| 73 | ] |
| 74 | } |
| 75 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 76 | rtc_library("video_file_writer") { |
Paulina Hensman | b671d46 | 2018-09-14 09:32:00 | [diff] [blame] | 77 | sources = [ |
| 78 | "video_file_writer.cc", |
| 79 | "video_file_writer.h", |
| 80 | ] |
| 81 | deps = [ |
| 82 | ":video_file_reader", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 83 | "../api:scoped_refptr", |
Paulina Hensman | b671d46 | 2018-09-14 09:32:00 | [diff] [blame] | 84 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 85 | "../api/video:video_rtp_headers", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 86 | "../rtc_base:logging", |
Paulina Hensman | b671d46 | 2018-09-14 09:32:00 | [diff] [blame] | 87 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 88 | ] |
| 89 | absl_deps = [ |
Steve Anton | 68586e8 | 2018-12-14 01:41:25 | [diff] [blame] | 90 | "//third_party/abseil-cpp/absl/strings", |
Paulina Hensman | b671d46 | 2018-09-14 09:32:00 | [diff] [blame] | 91 | "//third_party/abseil-cpp/absl/types:optional", |
| 92 | ] |
| 93 | } |
| 94 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 95 | rtc_library("video_quality_analysis") { |
Patrik Höglund | 2ea2796 | 2020-01-13 14:10:40 | [diff] [blame] | 96 | testonly = true |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 97 | sources = [ |
Magnus Jedvert | 1927dfa | 2018-09-11 10:56:06 | [diff] [blame] | 98 | "frame_analyzer/linear_least_squares.cc", |
| 99 | "frame_analyzer/linear_least_squares.h", |
| 100 | "frame_analyzer/video_color_aligner.cc", |
| 101 | "frame_analyzer/video_color_aligner.h", |
Magnus Jedvert | 286df00 | 2018-11-22 14:17:30 | [diff] [blame] | 102 | "frame_analyzer/video_geometry_aligner.cc", |
| 103 | "frame_analyzer/video_geometry_aligner.h", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 104 | "frame_analyzer/video_quality_analysis.cc", |
| 105 | "frame_analyzer/video_quality_analysis.h", |
Magnus Jedvert | 62228c4 | 2018-09-05 13:04:08 | [diff] [blame] | 106 | "frame_analyzer/video_temporal_aligner.cc", |
| 107 | "frame_analyzer/video_temporal_aligner.h", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 108 | ] |
Mirko Bonadei | 0250be5 | 2017-12-01 12:53:04 | [diff] [blame] | 109 | deps = [ |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 110 | ":video_file_reader", |
Magnus Jedvert | 1927dfa | 2018-09-11 10:56:06 | [diff] [blame] | 111 | "../api:array_view", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 112 | "../api:scoped_refptr", |
Magnus Jedvert | 286df00 | 2018-11-22 14:17:30 | [diff] [blame] | 113 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 114 | "../api/video:video_rtp_headers", |
Mirko Bonadei | f5ff67c | 2017-12-06 15:31:18 | [diff] [blame] | 115 | "../common_video", |
Magnus Jedvert | 62228c4 | 2018-09-05 13:04:08 | [diff] [blame] | 116 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 117 | "../rtc_base:logging", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 118 | "../rtc_base:refcount", |
Magnus Jedvert | 62228c4 | 2018-09-05 13:04:08 | [diff] [blame] | 119 | "../rtc_base:rtc_base_approved", |
Edward Lemur | 2e5966b | 2018-01-30 14:33:02 | [diff] [blame] | 120 | "../test:perf_test", |
Mirko Bonadei | 401d056 | 2017-12-14 10:24:00 | [diff] [blame] | 121 | "//third_party/libyuv", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 122 | ] |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 123 | absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 124 | } |
| 125 | |
Andrey Logvin | 7864600 | 2021-01-29 10:50:19 | [diff] [blame] | 126 | # Abseil dependencies are not moved to the absl_deps field deliberately. |
| 127 | # If build_with_chromium is true, the absl_deps replaces the dependencies with |
| 128 | # the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags |
| 129 | # (and some others) because they cannot be used in Chromiums. Special exception |
| 130 | # for the "frame_analyzer" target in "third_party/abseil-cpp/absl.gni" allows |
| 131 | # it to be build in chromium. |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 132 | rtc_executable("frame_analyzer") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 133 | visibility = [ "*" ] |
Mirko Bonadei | 6bafc8b | 2019-06-18 19:09:24 | [diff] [blame] | 134 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 135 | sources = [ "frame_analyzer/frame_analyzer.cc" ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 136 | |
| 137 | deps = [ |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 138 | ":video_file_reader", |
Paulina Hensman | b671d46 | 2018-09-14 09:32:00 | [diff] [blame] | 139 | ":video_file_writer", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 140 | ":video_quality_analysis", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 141 | "../api:scoped_refptr", |
Magnus Jedvert | b468ace | 2018-09-05 14:11:48 | [diff] [blame] | 142 | "../rtc_base:stringutils", |
Edward Lemur | 2e5966b | 2018-01-30 14:33:02 | [diff] [blame] | 143 | "../test:perf_test", |
Mirko Bonadei | 6bafc8b | 2019-06-18 19:09:24 | [diff] [blame] | 144 | "//third_party/abseil-cpp/absl/flags:flag", |
| 145 | "//third_party/abseil-cpp/absl/flags:parse", |
Steve Anton | 68586e8 | 2018-12-14 01:41:25 | [diff] [blame] | 146 | "//third_party/abseil-cpp/absl/strings", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 147 | ] |
Johannes Kron | bb52bdf | 2021-02-25 09:10:08 | [diff] [blame] | 148 | |
| 149 | if (build_with_chromium) { |
| 150 | # When building from Chromium, WebRTC's metrics and field trial |
| 151 | # implementations need to be replaced by the Chromium ones. |
| 152 | deps += [ "//third_party/webrtc_overrides:webrtc_component" ] |
| 153 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 154 | } |
| 155 | |
Mirko Bonadei | 647968f | 2020-04-01 11:26:24 | [diff] [blame] | 156 | # TODO(bugs.webrtc.org/11474): Enable this on win if needed. For now it |
| 157 | # is only required for Linux and Android. |
Mirko Bonadei | e50c979 | 2020-04-20 15:48:26 | [diff] [blame] | 158 | if (!build_with_chromium && !build_with_mozilla && !is_win && !is_ios) { |
Mirko Bonadei | 080afed | 2018-09-18 11:39:37 | [diff] [blame] | 159 | action("frame_analyzer_host") { |
| 160 | script = "//tools_webrtc/executable_host_build.py" |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 161 | outputs = [ "${root_out_dir}/frame_analyzer_host" ] |
Mirko Bonadei | 080afed | 2018-09-18 11:39:37 | [diff] [blame] | 162 | args = [ |
| 163 | "--executable_name", |
| 164 | "frame_analyzer", |
| 165 | ] |
| 166 | } |
Mirko Bonadei | b56706f | 2018-09-18 09:03:39 | [diff] [blame] | 167 | } |
| 168 | |
Mirko Bonadei | a5cec55 | 2020-02-06 09:16:20 | [diff] [blame] | 169 | if (!is_component_build) { |
| 170 | # This target can be built from Chromium but it doesn't support |
| 171 | # is_component_build=true because it depends on WebRTC testonly code |
| 172 | # which is not part of //third_party/webrtc_overrides:webrtc_component. |
Andrey Logvin | 7864600 | 2021-01-29 10:50:19 | [diff] [blame] | 173 | |
| 174 | # Abseil dependencies are not moved to the absl_deps field deliberately. |
| 175 | # If build_with_chromium is true, the absl_deps replaces the dependencies with |
| 176 | # the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags |
| 177 | # (and some others) because they cannot be used in Chromiums. Special exception |
| 178 | # for the "frame_analyzer" target in "third_party/abseil-cpp/absl.gni" allows |
| 179 | # it to be build in chromium. |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 180 | rtc_executable("rtp_generator") { |
| 181 | visibility = [ "*" ] |
| 182 | testonly = true |
| 183 | sources = [ |
| 184 | "rtp_generator/main.cc", |
| 185 | "rtp_generator/rtp_generator.cc", |
| 186 | "rtp_generator/rtp_generator.h", |
| 187 | ] |
| 188 | |
| 189 | deps = [ |
Artem Titov | 33f9d2b | 2019-12-05 14:59:00 | [diff] [blame] | 190 | "../api:create_frame_generator", |
Niels Möller | 6dcd4dc | 2019-08-26 08:45:28 | [diff] [blame] | 191 | "../api:rtp_parameters", |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 192 | "../api:transport_api", |
Danil Chapovalov | 83bbe91 | 2019-08-07 10:24:53 | [diff] [blame] | 193 | "../api/rtc_event_log", |
Ilya Nikolaevskiy | ca16021 | 2019-07-10 13:34:45 | [diff] [blame] | 194 | "../api/task_queue:default_task_queue_factory", |
| 195 | "../api/task_queue:task_queue", |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 196 | "../api/video:builtin_video_bitrate_allocator_factory", |
| 197 | "../api/video_codecs:builtin_video_decoder_factory", |
| 198 | "../api/video_codecs:builtin_video_encoder_factory", |
| 199 | "../api/video_codecs:video_codecs_api", |
| 200 | "../call", |
| 201 | "../call:call_interfaces", |
| 202 | "../call:fake_network", |
| 203 | "../call:rtp_interfaces", |
| 204 | "../call:rtp_sender", |
| 205 | "../call:simulated_network", |
| 206 | "../call:simulated_packet_receiver", |
| 207 | "../call:video_stream_api", |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 208 | "../media:rtc_audio_video", |
| 209 | "../media:rtc_media_base", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 210 | "../rtc_base", |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 211 | "../rtc_base:rtc_base_approved", |
| 212 | "../rtc_base:rtc_json", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 213 | "../rtc_base:threading", |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 214 | "../rtc_base/system:file_wrapper", |
| 215 | "../test:fileutils", |
| 216 | "../test:rtp_test_utils", |
| 217 | "../test:video_test_common", |
Mirko Bonadei | a95949e | 2019-06-25 06:46:18 | [diff] [blame] | 218 | "//third_party/abseil-cpp/absl/flags:flag", |
| 219 | "//third_party/abseil-cpp/absl/flags:parse", |
Mirko Bonadei | 06cdb23 | 2019-07-19 08:02:46 | [diff] [blame] | 220 | "//third_party/abseil-cpp/absl/flags:usage", |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 221 | "//third_party/abseil-cpp/absl/strings", |
| 222 | ] |
Mirko Bonadei | a5cec55 | 2020-02-06 09:16:20 | [diff] [blame] | 223 | if (build_with_chromium) { |
| 224 | # When building from Chromium, WebRTC's metrics and field trial |
| 225 | # implementations need to be replaced by the Chromium ones. |
| 226 | deps += [ "//third_party/webrtc_overrides:webrtc_component" ] |
| 227 | } |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 228 | } |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 229 | |
| 230 | # This target can be built from Chromium but it doesn't support |
| 231 | # is_component_build=true because it depends on WebRTC testonly code |
| 232 | # which is not part of //third_party/webrtc_overrides:webrtc_component. |
Andrey Logvin | 7864600 | 2021-01-29 10:50:19 | [diff] [blame] | 233 | |
| 234 | # Abseil dependencies are not moved to the absl_deps field deliberately. |
| 235 | # If build_with_chromium is true, the absl_deps replaces the dependencies with |
| 236 | # the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags |
| 237 | # (and some others) because they cannot be used in Chromiums. Special exception |
| 238 | # for the "frame_analyzer" target in "third_party/abseil-cpp/absl.gni" allows |
| 239 | # it to be build in chromium. |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 240 | rtc_executable("video_replay") { |
| 241 | visibility = [ "*" ] |
| 242 | testonly = true |
| 243 | sources = [ "video_replay.cc" ] |
| 244 | deps = [ |
| 245 | "../api/rtc_event_log", |
| 246 | "../api/task_queue:default_task_queue_factory", |
| 247 | "../api/test/video:function_video_factory", |
| 248 | "../api/transport:field_trial_based_config", |
Philipp Hancke | fae4fb1 | 2021-01-26 17:05:56 | [diff] [blame] | 249 | "../api/video:video_frame", |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 250 | "../api/video_codecs:video_codecs_api", |
| 251 | "../call", |
| 252 | "../call:call_interfaces", |
| 253 | "../common_video", |
| 254 | "../media:rtc_internal_video_codecs", |
Danil Chapovalov | 76a35d9 | 2021-06-08 10:30:46 | [diff] [blame] | 255 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Philipp Hancke | fae4fb1 | 2021-01-26 17:05:56 | [diff] [blame] | 256 | "../modules/video_coding:video_coding_utility", |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 257 | "../rtc_base:checks", |
| 258 | "../rtc_base:rtc_json", |
| 259 | "../rtc_base:stringutils", |
| 260 | "../rtc_base:timeutils", |
| 261 | "../system_wrappers", |
| 262 | "../test:call_config_utils", |
| 263 | "../test:encoder_settings", |
| 264 | "../test:fake_video_codecs", |
| 265 | "../test:null_transport", |
| 266 | "../test:rtp_test_utils", |
| 267 | "../test:run_test", |
| 268 | "../test:run_test_interface", |
| 269 | "../test:test_common", |
| 270 | "../test:test_renderer", |
| 271 | "../test:test_support", |
| 272 | "../test:video_test_common", |
| 273 | "../test:video_test_support", |
| 274 | "//third_party/abseil-cpp/absl/flags:flag", |
| 275 | "//third_party/abseil-cpp/absl/flags:parse", |
| 276 | ] |
| 277 | if (build_with_chromium) { |
| 278 | # When building from Chromium, WebRTC's metrics and field trial |
| 279 | # implementations need to be replaced by the Chromium ones. |
| 280 | deps += [ "//third_party/webrtc_overrides:webrtc_component" ] |
| 281 | } |
| 282 | } |
Mirko Bonadei | a5cec55 | 2020-02-06 09:16:20 | [diff] [blame] | 283 | } |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 284 | |
Mirko Bonadei | a5cec55 | 2020-02-06 09:16:20 | [diff] [blame] | 285 | # Only expose the targets needed by Chromium (e.g. frame_analyzer) to avoid |
| 286 | # building a lot of redundant code as part of Chromium builds. |
| 287 | if (!build_with_chromium) { |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 288 | rtc_executable("psnr_ssim_analyzer") { |
Mirko Bonadei | 8e032c8 | 2019-06-25 06:51:01 | [diff] [blame] | 289 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 290 | sources = [ "psnr_ssim_analyzer/psnr_ssim_analyzer.cc" ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 291 | |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 292 | deps = [ |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 293 | ":video_file_reader", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 294 | ":video_quality_analysis", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 295 | "../api:scoped_refptr", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 296 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 297 | "../api/video:video_rtp_headers", |
Mirko Bonadei | 8e032c8 | 2019-06-25 06:51:01 | [diff] [blame] | 298 | "//third_party/abseil-cpp/absl/flags:flag", |
| 299 | "//third_party/abseil-cpp/absl/flags:parse", |
Mirko Bonadei | 4e72245 | 2019-07-19 08:08:41 | [diff] [blame] | 300 | "//third_party/abseil-cpp/absl/flags:usage", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 301 | ] |
| 302 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 303 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 304 | rtc_library("reference_less_video_analysis_lib") { |
Patrik Höglund | 2ea2796 | 2020-01-13 14:10:40 | [diff] [blame] | 305 | testonly = true |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 306 | sources = [ |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 307 | "frame_analyzer/reference_less_video_analysis_lib.cc", |
| 308 | "frame_analyzer/reference_less_video_analysis_lib.h", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 309 | ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 310 | |
| 311 | deps = [ |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 312 | ":video_file_reader", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 313 | ":video_quality_analysis", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 314 | "../api:scoped_refptr", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 315 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 316 | "../api/video:video_rtp_headers", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 317 | ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 318 | } |
| 319 | |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 320 | rtc_executable("reference_less_video_analysis") { |
Mirko Bonadei | 6d6b0fb | 2019-06-25 06:49:03 | [diff] [blame] | 321 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 322 | sources = [ "frame_analyzer/reference_less_video_analysis.cc" ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 323 | |
| 324 | deps = [ |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 325 | ":reference_less_video_analysis_lib", |
Mirko Bonadei | 6d6b0fb | 2019-06-25 06:49:03 | [diff] [blame] | 326 | "//third_party/abseil-cpp/absl/flags:flag", |
| 327 | "//third_party/abseil-cpp/absl/flags:parse", |
Mirko Bonadei | 7ddca16 | 2019-07-19 08:32:16 | [diff] [blame] | 328 | "//third_party/abseil-cpp/absl/flags:usage", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 329 | ] |
| 330 | } |
| 331 | |
| 332 | rtc_executable("rgba_to_i420_converter") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 333 | visibility = [ "*" ] |
Mirko Bonadei | 2308bb2 | 2019-06-25 06:52:47 | [diff] [blame] | 334 | testonly = true |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 335 | sources = [ |
| 336 | "converter/converter.cc", |
| 337 | "converter/converter.h", |
| 338 | "converter/rgba_to_i420_converter.cc", |
| 339 | ] |
| 340 | |
| 341 | deps = [ |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 342 | "../common_video", |
Mirko Bonadei | 2308bb2 | 2019-06-25 06:52:47 | [diff] [blame] | 343 | "//third_party/abseil-cpp/absl/flags:flag", |
| 344 | "//third_party/abseil-cpp/absl/flags:parse", |
Mirko Bonadei | 249bade | 2019-07-19 09:58:07 | [diff] [blame] | 345 | "//third_party/abseil-cpp/absl/flags:usage", |
Mirko Bonadei | 401d056 | 2017-12-14 10:24:00 | [diff] [blame] | 346 | "//third_party/libyuv", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 347 | ] |
| 348 | } |
| 349 | |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 350 | if (rtc_enable_protobuf) { |
| 351 | proto_library("chart_proto") { |
Bjorn Terelius | 9b809d3 | 2019-04-24 15:12:45 | [diff] [blame] | 352 | visibility = [ "*" ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 353 | sources = [ |
Mirko Bonadei | 575998c | 2019-07-25 11:57:41 | [diff] [blame] | 354 | "rtc_event_log_visualizer/proto/chart.proto", |
| 355 | "rtc_event_log_visualizer/proto/chart_enums.proto", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 356 | ] |
Mirko Bonadei | 575998c | 2019-07-25 11:57:41 | [diff] [blame] | 357 | proto_out_dir = "rtc_tools/rtc_event_log_visualizer/proto" |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 358 | } |
| 359 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 360 | rtc_library("event_log_visualizer_utils") { |
Per Kjellander | a0f5f60 | 2018-01-10 15:57:32 | [diff] [blame] | 361 | visibility = [ "*" ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 362 | sources = [ |
Bjorn Terelius | 48b8279 | 2020-05-19 08:57:24 | [diff] [blame] | 363 | "rtc_event_log_visualizer/alerts.cc", |
| 364 | "rtc_event_log_visualizer/alerts.h", |
Bjorn Terelius | c186e14 | 2020-06-05 08:47:19 | [diff] [blame] | 365 | "rtc_event_log_visualizer/analyze_audio.cc", |
| 366 | "rtc_event_log_visualizer/analyze_audio.h", |
Mirko Bonadei | 575998c | 2019-07-25 11:57:41 | [diff] [blame] | 367 | "rtc_event_log_visualizer/analyzer.cc", |
| 368 | "rtc_event_log_visualizer/analyzer.h", |
Bjorn Terelius | 48b8279 | 2020-05-19 08:57:24 | [diff] [blame] | 369 | "rtc_event_log_visualizer/analyzer_common.cc", |
| 370 | "rtc_event_log_visualizer/analyzer_common.h", |
Mirko Bonadei | 575998c | 2019-07-25 11:57:41 | [diff] [blame] | 371 | "rtc_event_log_visualizer/log_simulation.cc", |
| 372 | "rtc_event_log_visualizer/log_simulation.h", |
| 373 | "rtc_event_log_visualizer/plot_base.cc", |
| 374 | "rtc_event_log_visualizer/plot_base.h", |
| 375 | "rtc_event_log_visualizer/plot_protobuf.cc", |
| 376 | "rtc_event_log_visualizer/plot_protobuf.h", |
| 377 | "rtc_event_log_visualizer/plot_python.cc", |
| 378 | "rtc_event_log_visualizer/plot_python.h", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 379 | ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 380 | deps = [ |
Mirko Bonadei | f5ff67c | 2017-12-06 15:31:18 | [diff] [blame] | 381 | ":chart_proto", |
Artem Titov | 741daaf | 2019-03-21 13:37:36 | [diff] [blame] | 382 | "../api:function_view", |
Niels Möller | 0d863f7 | 2020-11-24 16:50:31 | [diff] [blame] | 383 | "../api:network_state_predictor_api", |
Mirko Bonadei | 3663ed3 | 2019-10-19 10:03:23 | [diff] [blame] | 384 | "../rtc_base:ignore_wundef", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 385 | "../rtc_base:logging", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 386 | "../rtc_base:macromagic", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 387 | "../rtc_base:refcount", |
Niels Möller | 3f651d8 | 2018-12-19 14:06:17 | [diff] [blame] | 388 | |
| 389 | # TODO(kwiberg): Remove this dependency. |
| 390 | "../api/audio_codecs:audio_codecs_api", |
Sebastian Jansson | 95edb03 | 2019-01-17 15:24:12 | [diff] [blame] | 391 | "../api/transport:field_trial_based_config", |
Niels Möller | 3f651d8 | 2018-12-19 14:06:17 | [diff] [blame] | 392 | "../api/transport:goog_cc", |
Sebastian Jansson | 1175ae0 | 2019-03-13 07:56:58 | [diff] [blame] | 393 | "../api/transport:network_control", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 394 | "../call:call_interfaces", |
| 395 | "../call:video_stream_api", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 396 | "../logging:rtc_event_log_parser", |
Qingsi Wang | 970b088 | 2018-02-01 19:04:46 | [diff] [blame] | 397 | "../logging:rtc_stream_config", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 398 | "../modules/audio_coding:ana_debug_dump_proto", |
Mirko Bonadei | 818d910 | 2017-12-12 11:46:13 | [diff] [blame] | 399 | "../modules/audio_coding:audio_network_adaptor", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 400 | "../modules/audio_coding:neteq_tools", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 401 | "../modules/congestion_controller", |
Sebastian Jansson | 04b18cb | 2018-07-02 07:25:25 | [diff] [blame] | 402 | "../modules/congestion_controller/goog_cc:delay_based_bwe", |
Sebastian Jansson | 172fd85 | 2018-05-24 12:17:06 | [diff] [blame] | 403 | "../modules/congestion_controller/goog_cc:estimators", |
Sebastian Jansson | 5c94f55 | 2018-10-15 16:46:51 | [diff] [blame] | 404 | "../modules/congestion_controller/rtp:transport_feedback", |
Niels Möller | fd6c091 | 2017-10-31 09:19:10 | [diff] [blame] | 405 | "../modules/pacing", |
Sebastian Jansson | 5c94f55 | 2018-10-15 16:46:51 | [diff] [blame] | 406 | "../modules/remote_bitrate_estimator", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 407 | "../modules/rtp_rtcp", |
Niels Möller | 3f651d8 | 2018-12-19 14:06:17 | [diff] [blame] | 408 | "../modules/rtp_rtcp:rtp_rtcp_format", |
| 409 | "../rtc_base:checks", |
| 410 | "../rtc_base:rtc_base_approved", |
| 411 | "../rtc_base:rtc_numerics", |
| 412 | "../rtc_base:stringutils", |
Paul Hallak | 46fbefa | 2021-05-21 16:53:28 | [diff] [blame] | 413 | "../system_wrappers", |
Björn Terelius | ae1892d | 2020-06-17 09:55:55 | [diff] [blame] | 414 | "../test:explicit_key_value_config", |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 415 | ] |
| 416 | absl_deps = [ |
Björn Terelius | c69c1bb | 2019-10-11 13:06:58 | [diff] [blame] | 417 | "//third_party/abseil-cpp/absl/algorithm:container", |
Danil Chapovalov | e904161 | 2021-02-22 11:43:39 | [diff] [blame] | 418 | "//third_party/abseil-cpp/absl/base:core_headers", |
Per Kjellander | fe2063e | 2021-05-12 07:02:43 | [diff] [blame] | 419 | "//third_party/abseil-cpp/absl/functional:bind_front", |
Bjorn Terelius | 6c4b1b7 | 2019-01-11 12:01:29 | [diff] [blame] | 420 | "//third_party/abseil-cpp/absl/strings", |
Bjorn Terelius | c186e14 | 2020-06-05 08:47:19 | [diff] [blame] | 421 | "//third_party/abseil-cpp/absl/types:optional", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 422 | ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 423 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 424 | } |
| 425 | } |
| 426 | |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 427 | if (rtc_include_tests) { |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 428 | if (!build_with_chromium) { |
| 429 | rtc_executable("yuv_to_ivf_converter") { |
| 430 | visibility = [ "*" ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 431 | testonly = true |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 432 | sources = [ "converter/yuv_to_ivf_converter.cc" ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 433 | deps = [ |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 434 | "../api:create_frame_generator", |
| 435 | "../api:frame_generator_api", |
| 436 | "../api/task_queue:default_task_queue_factory", |
| 437 | "../api/video:encoded_image", |
| 438 | "../api/video:video_frame", |
| 439 | "../api/video_codecs:video_codecs_api", |
| 440 | "../media:rtc_media_base", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 441 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 442 | "../modules/video_coding:video_codec_interface", |
| 443 | "../modules/video_coding:video_coding_utility", |
| 444 | "../modules/video_coding:webrtc_h264", |
| 445 | "../modules/video_coding:webrtc_vp8", |
| 446 | "../modules/video_coding:webrtc_vp9", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 447 | "../rtc_base:checks", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 448 | "../rtc_base:criticalsection", |
| 449 | "../rtc_base:logging", |
| 450 | "../rtc_base:rtc_event", |
| 451 | "../rtc_base:rtc_task_queue", |
| 452 | "../rtc_base/synchronization:mutex", |
| 453 | "../rtc_base/system:file_wrapper", |
| 454 | "../test:video_test_common", |
| 455 | "../test:video_test_support", |
| 456 | "//third_party/abseil-cpp/absl/debugging:failure_signal_handler", |
| 457 | "//third_party/abseil-cpp/absl/debugging:symbolize", |
Mirko Bonadei | 4b091f4 | 2019-07-16 09:55:08 | [diff] [blame] | 458 | "//third_party/abseil-cpp/absl/flags:flag", |
| 459 | "//third_party/abseil-cpp/absl/flags:parse", |
Mirko Bonadei | f2d97b8 | 2019-07-24 13:29:47 | [diff] [blame] | 460 | "//third_party/abseil-cpp/absl/strings", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 461 | ] |
| 462 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 463 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 464 | if (rtc_enable_protobuf) { |
| 465 | rtc_executable("event_log_visualizer") { |
| 466 | testonly = true |
| 467 | sources = [ "rtc_event_log_visualizer/main.cc" ] |
| 468 | data = [ |
| 469 | # If --wav_filename is not provided, event_log_visualizer uses |
| 470 | # EN_script2_F_sp2_B1.wav by default. This is a good default to use |
| 471 | # for example with flags --plot=all when there is no need to use a |
| 472 | # specific .wav file. |
| 473 | "../resources/audio_processing/conversational_speech/EN_script2_F_sp2_B1.wav", |
| 474 | ] |
| 475 | deps = [ |
| 476 | ":event_log_visualizer_utils", |
| 477 | "../api/neteq:neteq_api", |
| 478 | "../api/rtc_event_log", |
| 479 | "../logging:rtc_event_log_parser", |
| 480 | "../modules/audio_coding:neteq", |
| 481 | "../modules/rtp_rtcp:rtp_rtcp_format", |
| 482 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 483 | "../rtc_base:logging", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 484 | "../rtc_base:protobuf_utils", |
| 485 | "../rtc_base:rtc_base_approved", |
| 486 | "../system_wrappers:field_trial", |
| 487 | "../test:field_trial", |
| 488 | "../test:fileutils", |
| 489 | "../test:test_support", |
| 490 | "//third_party/abseil-cpp/absl/algorithm:container", |
| 491 | "//third_party/abseil-cpp/absl/flags:config", |
| 492 | "//third_party/abseil-cpp/absl/flags:flag", |
| 493 | "//third_party/abseil-cpp/absl/flags:parse", |
| 494 | "//third_party/abseil-cpp/absl/flags:usage", |
| 495 | "//third_party/abseil-cpp/absl/strings", |
| 496 | ] |
| 497 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 498 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 499 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 500 | tools_unittests_resources = [ |
| 501 | "../resources/foreman_128x96.yuv", |
| 502 | "../resources/foreman_cif.yuv", |
| 503 | "../resources/reference_less_video_test_file.y4m", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 504 | ] |
| 505 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 506 | if (is_ios) { |
| 507 | bundle_data("tools_unittests_bundle_data") { |
| 508 | testonly = true |
| 509 | sources = tools_unittests_resources |
| 510 | outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ] |
| 511 | } |
| 512 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 513 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 514 | rtc_test("tools_unittests") { |
| 515 | testonly = true |
| 516 | |
| 517 | sources = [ |
| 518 | "frame_analyzer/linear_least_squares_unittest.cc", |
| 519 | "frame_analyzer/reference_less_video_analysis_unittest.cc", |
| 520 | "frame_analyzer/video_color_aligner_unittest.cc", |
| 521 | "frame_analyzer/video_geometry_aligner_unittest.cc", |
| 522 | "frame_analyzer/video_quality_analysis_unittest.cc", |
| 523 | "frame_analyzer/video_temporal_aligner_unittest.cc", |
| 524 | "sanitizers_unittest.cc", |
| 525 | "video_file_reader_unittest.cc", |
| 526 | "video_file_writer_unittest.cc", |
| 527 | ] |
| 528 | |
| 529 | deps = [ |
| 530 | ":video_file_reader", |
| 531 | ":video_file_writer", |
| 532 | ":video_quality_analysis", |
| 533 | "../api:scoped_refptr", |
| 534 | "../api/video:video_frame", |
| 535 | "../api/video:video_rtp_headers", |
| 536 | "../common_video", |
| 537 | "../rtc_base", |
| 538 | "../rtc_base:checks", |
| 539 | "../rtc_base:null_socket_server", |
| 540 | "../rtc_base:threading", |
| 541 | "../test:fileutils", |
| 542 | "../test:test_main", |
| 543 | "../test:test_support", |
| 544 | "//testing/gtest", |
| 545 | "//third_party/libyuv", |
| 546 | ] |
| 547 | |
| 548 | if (!build_with_chromium) { |
| 549 | deps += [ ":reference_less_video_analysis_lib" ] |
| 550 | } |
| 551 | |
| 552 | if (rtc_enable_protobuf) { |
| 553 | deps += [ "network_tester:network_tester_unittests" ] |
| 554 | } |
| 555 | |
| 556 | data = tools_unittests_resources |
| 557 | if (is_android) { |
| 558 | deps += [ "//testing/android/native_test:native_test_support" ] |
| 559 | shard_timeout = 900 |
| 560 | } |
| 561 | if (is_ios) { |
| 562 | deps += [ ":tools_unittests_bundle_data" ] |
| 563 | } |
Yves Gerey | 21cddff | 2018-10-30 20:12:42 | [diff] [blame] | 564 | } |
| 565 | |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 566 | if (rtc_enable_protobuf) { |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 567 | rtc_executable("audioproc_f") { |
| 568 | testonly = true |
| 569 | sources = [ "audioproc_f/audioproc_float_main.cc" ] |
| 570 | deps = [ |
| 571 | "../api:audioproc_f_api", |
| 572 | "../modules/audio_processing", |
| 573 | "../modules/audio_processing:api", |
| 574 | "../rtc_base:rtc_base_approved", |
| 575 | ] |
| 576 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 577 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 578 | rtc_executable("unpack_aecdump") { |
| 579 | visibility = [ "*" ] |
| 580 | testonly = true |
| 581 | sources = [ "unpack_aecdump/unpack.cc" ] |
| 582 | |
| 583 | deps = [ |
| 584 | "../api:function_view", |
| 585 | "../common_audio", |
| 586 | "../modules/audio_processing", |
| 587 | "../modules/audio_processing:audioproc_debug_proto", |
| 588 | "../modules/audio_processing:audioproc_debug_proto", |
| 589 | "../modules/audio_processing:audioproc_protobuf_utils", |
| 590 | "../modules/audio_processing:audioproc_test_utils", |
| 591 | "../rtc_base:ignore_wundef", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 592 | "../rtc_base:macromagic", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 593 | "../rtc_base:protobuf_utils", |
| 594 | "../rtc_base:rtc_base_approved", |
Florent Castelli | 57aa81b | 2022-04-04 15:14:02 | [diff] [blame] | 595 | "../rtc_base:stringutils", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 596 | "//third_party/abseil-cpp/absl/flags:flag", |
| 597 | "//third_party/abseil-cpp/absl/flags:parse", |
| 598 | ] |
| 599 | } # unpack_aecdump |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 600 | } |
| 601 | } |
| 602 | |
| 603 | if (rtc_enable_protobuf) { |
| 604 | copy("rtp_analyzer") { |
| 605 | sources = [ |
| 606 | "py_event_log_analyzer/misc.py", |
| 607 | "py_event_log_analyzer/pb_parse.py", |
| 608 | "py_event_log_analyzer/rtp_analyzer.py", |
| 609 | "py_event_log_analyzer/rtp_analyzer.sh", |
| 610 | ] |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 611 | outputs = [ "$root_build_dir/{{source_file_part}}" ] |
| 612 | deps = [ "../logging:rtc_event_log_proto" ] |
Patrik Höglund | 844ce8b | 2017-12-12 14:53:31 | [diff] [blame] | 613 | } # rtp_analyzer |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 614 | } |
| 615 | } |