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 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 9 | import("//testing/test.gni") |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 10 | import("../build/webrtc.gni") |
| 11 | |
| 12 | source_set("tools") { |
| 13 | deps = [ |
| 14 | ":command_line_parser", |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 15 | ":frame_analyzer", |
| 16 | ":rgba_to_i420_converter", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 17 | ] |
| 18 | } |
| 19 | |
| 20 | source_set("command_line_parser") { |
| 21 | sources = [ |
Henrik Kjellander | fa16dda | 2015-04-01 22:53:56 +0200 | [diff] [blame] | 22 | "simple_command_line_parser.cc", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 23 | "simple_command_line_parser.h", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 24 | ] |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 25 | deps = [ |
kjellander | 988d31e | 2016-02-05 00:23:50 -0800 | [diff] [blame] | 26 | "../base:gtest_prod", |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 27 | ] |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 28 | configs += [ "..:common_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 29 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 30 | } |
| 31 | |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 32 | source_set("video_quality_analysis") { |
| 33 | sources = [ |
| 34 | "frame_analyzer/video_quality_analysis.cc", |
| 35 | "frame_analyzer/video_quality_analysis.h", |
| 36 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 37 | |
| 38 | configs += [ "..:common_config" ] |
| 39 | public_configs = [ "..:common_inherited_config" ] |
| 40 | |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 41 | deps = [ |
| 42 | "../common_video", |
| 43 | ] |
| 44 | public_deps = [ |
| 45 | "../common_video", |
| 46 | ] |
| 47 | } |
| 48 | |
| 49 | executable("frame_analyzer") { |
| 50 | sources = [ |
| 51 | "frame_analyzer/frame_analyzer.cc", |
| 52 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 53 | |
| 54 | configs += [ "..:common_config" ] |
| 55 | public_configs = [ "..:common_inherited_config" ] |
| 56 | |
| 57 | deps = [ |
| 58 | ":command_line_parser", |
| 59 | ":video_quality_analysis", |
| 60 | "//build/win:default_exe_manifest", |
| 61 | ] |
| 62 | } |
| 63 | |
| 64 | executable("psnr_ssim_analyzer") { |
| 65 | sources = [ |
| 66 | "psnr_ssim_analyzer/psnr_ssim_analyzer.cc", |
| 67 | ] |
| 68 | |
| 69 | configs += [ "..:common_config" ] |
| 70 | public_configs = [ "..:common_inherited_config" ] |
| 71 | |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 72 | deps = [ |
| 73 | ":command_line_parser", |
| 74 | ":video_quality_analysis", |
brucedawson | 84583e0 | 2016-04-28 00:21:08 -0700 | [diff] [blame] | 75 | "//build/win:default_exe_manifest", |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 76 | ] |
| 77 | } |
| 78 | |
| 79 | executable("rgba_to_i420_converter") { |
| 80 | sources = [ |
| 81 | "converter/converter.cc", |
| 82 | "converter/converter.h", |
| 83 | "converter/rgba_to_i420_converter.cc", |
| 84 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 85 | |
| 86 | configs += [ "..:common_config" ] |
| 87 | public_configs = [ "..:common_inherited_config" ] |
| 88 | |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 89 | deps = [ |
| 90 | ":command_line_parser", |
| 91 | "../common_video", |
brucedawson | 84583e0 | 2016-04-28 00:21:08 -0700 | [diff] [blame] | 92 | "//build/win:default_exe_manifest", |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 93 | ] |
| 94 | } |
| 95 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 96 | source_set("frame_editing_lib") { |
| 97 | sources = [ |
| 98 | "frame_editing/frame_editing_lib.cc", |
| 99 | "frame_editing/frame_editing_lib.h", |
| 100 | ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 101 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 102 | configs += [ "..:common_config" ] |
| 103 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 104 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 105 | # TODO(jschuh): Bug 1348: fix this warning. |
| 106 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 107 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 108 | if (is_clang) { |
| 109 | # Suppress warnings from the Chromium Clang plugin. |
| 110 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 111 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 112 | } |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 113 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 114 | deps = [ |
| 115 | "../common_video", |
| 116 | ] |
| 117 | } |
| 118 | |
| 119 | executable("frame_editor") { |
| 120 | sources = [ |
| 121 | "frame_editing/frame_editing.cc", |
| 122 | ] |
| 123 | |
| 124 | configs += [ "..:common_config" ] |
| 125 | public_configs = [ "..:common_inherited_config" ] |
| 126 | |
| 127 | deps = [ |
| 128 | ":command_line_parser", |
| 129 | ":frame_editing_lib", |
| 130 | "//build/win:default_exe_manifest", |
| 131 | ] |
| 132 | } |
| 133 | |
| 134 | executable("force_mic_volume_max") { |
| 135 | sources = [ |
| 136 | "force_mic_volume_max/force_mic_volume_max.cc", |
| 137 | ] |
| 138 | |
| 139 | configs += [ "..:common_config" ] |
| 140 | public_configs = [ "..:common_inherited_config" ] |
| 141 | |
| 142 | if (is_clang) { |
| 143 | # Suppress warnings from the Chromium Clang plugin. |
| 144 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 145 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 146 | } |
| 147 | |
| 148 | deps = [ |
| 149 | "../system_wrappers:system_wrappers_default", |
| 150 | "../voice_engine", |
| 151 | "//build/win:default_exe_manifest", |
| 152 | ] |
| 153 | } |
| 154 | |
| 155 | source_set("agc_test_utils") { |
| 156 | testonly = true |
| 157 | sources = [ |
| 158 | "agc/test_utils.cc", |
| 159 | "agc/test_utils.h", |
| 160 | ] |
| 161 | |
| 162 | configs += [ "..:common_config" ] |
| 163 | public_configs = [ "..:common_inherited_config" ] |
| 164 | } |
| 165 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 166 | # Exclude tools depending on gflags since that's not available in Chromium. |
| 167 | # There's no point processing WebRTC standalone tests in a Chromium build. |
| 168 | if (!build_with_chromium) { |
| 169 | executable("agc_harness") { |
| 170 | testonly = true |
| 171 | sources = [ |
| 172 | "agc/agc_harness.cc", |
| 173 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 174 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 175 | configs += [ "..:common_config" ] |
| 176 | public_configs = [ "..:common_inherited_config" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 177 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 178 | if (is_clang) { |
| 179 | # Suppress warnings from the Chromium Clang plugin. |
| 180 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 181 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 182 | } |
| 183 | |
| 184 | deps = [ |
| 185 | "../system_wrappers:system_wrappers_default", |
| 186 | "../test:channel_transport", |
| 187 | "../test:test_support", |
| 188 | "../voice_engine", |
| 189 | "//build/win:default_exe_manifest", |
| 190 | "//testing/gtest", |
| 191 | "//third_party/gflags", |
| 192 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 193 | } |
| 194 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 195 | executable("activity_metric") { |
| 196 | testonly = true |
| 197 | sources = [ |
| 198 | "agc/activity_metric.cc", |
| 199 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 200 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 201 | configs += [ "..:common_config" ] |
| 202 | public_configs = [ "..:common_inherited_config" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 203 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 204 | if (is_clang) { |
| 205 | # Suppress warnings from the Chromium Clang plugin. |
| 206 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 207 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 208 | } |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 209 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 210 | deps = [ |
| 211 | "../modules/audio_processing", |
| 212 | "../system_wrappers:metrics_default", |
| 213 | "//build/win:default_exe_manifest", |
| 214 | "//testing/gtest", |
| 215 | "//third_party/gflags", |
| 216 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 217 | } |
| 218 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 219 | executable("audio_e2e_harness") { |
| 220 | testonly = true |
| 221 | sources = [ |
| 222 | "e2e_quality/audio/audio_e2e_harness.cc", |
| 223 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 224 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 225 | configs += [ "..:common_config" ] |
| 226 | public_configs = [ "..:common_inherited_config" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 227 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 228 | if (is_clang) { |
| 229 | # Suppress warnings from the Chromium Clang plugin. |
| 230 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 231 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 232 | } |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 233 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 234 | deps = [ |
| 235 | "../system_wrappers:system_wrappers_default", |
| 236 | "../test:channel_transport", |
| 237 | "../voice_engine", |
| 238 | "//build/win:default_exe_manifest", |
| 239 | "//testing/gtest", |
| 240 | "//third_party/gflags", |
| 241 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 242 | } |
| 243 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 244 | test("tools_unittests") { |
| 245 | testonly = true |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 246 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 247 | sources = [ |
| 248 | "frame_analyzer/video_quality_analysis_unittest.cc", |
| 249 | "frame_editing/frame_editing_unittest.cc", |
| 250 | "simple_command_line_parser_unittest.cc", |
| 251 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 252 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 253 | configs += [ "..:common_config" ] |
| 254 | public_configs = [ "..:common_inherited_config" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 255 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 256 | # TODO(jschuh): Bug 1348: fix this warning. |
| 257 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 258 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 259 | if (is_clang) { |
| 260 | # Suppress warnings from the Chromium Clang plugin. |
| 261 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 262 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 263 | } |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 264 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 265 | deps = [ |
| 266 | ":command_line_parser", |
| 267 | ":frame_editing_lib", |
| 268 | ":video_quality_analysis", |
| 269 | "../test:test_support_main", |
| 270 | "//testing/gtest", |
| 271 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 272 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame^] | 273 | if (is_android) { |
| 274 | deps += [ "//testing/android/native_test:native_test_support" ] |
| 275 | } |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 276 | } |
| 277 | } |