| 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") |
| 9 import("../build/webrtc.gni") | 10 import("../build/webrtc.gni") |
| 10 | 11 |
| 11 source_set("tools") { | 12 source_set("tools") { |
| 12 deps = [ | 13 deps = [ |
| 13 ":command_line_parser", | 14 ":command_line_parser", |
| 15 ":frame_analyzer", |
| 16 ":rgba_to_i420_converter", |
| 14 ] | 17 ] |
| 15 } | 18 } |
| 16 | 19 |
| 17 source_set("command_line_parser") { | 20 source_set("command_line_parser") { |
| 18 sources = [ | 21 sources = [ |
| 19 "simple_command_line_parser.cc", | 22 "simple_command_line_parser.cc", |
| 20 "simple_command_line_parser.h", | 23 "simple_command_line_parser.h", |
| 21 ] | 24 ] |
| 22 deps = [ | 25 deps = [ |
| 23 "../base:gtest_prod", | 26 "../base:gtest_prod", |
| 24 ] | 27 ] |
| 25 configs += [ "..:common_config" ] | 28 configs += [ "..:common_config" ] |
| 26 public_configs = [ "..:common_inherited_config" ] | 29 public_configs = [ "..:common_inherited_config" ] |
| 27 } | 30 } |
| 28 | 31 |
| 29 source_set("video_quality_analysis") { | 32 source_set("video_quality_analysis") { |
| 30 sources = [ | 33 sources = [ |
| 31 "frame_analyzer/video_quality_analysis.cc", | 34 "frame_analyzer/video_quality_analysis.cc", |
| 32 "frame_analyzer/video_quality_analysis.h", | 35 "frame_analyzer/video_quality_analysis.h", |
| 33 ] | 36 ] |
| 37 |
| 38 configs += [ "..:common_config" ] |
| 39 public_configs = [ "..:common_inherited_config" ] |
| 40 |
| 34 deps = [ | 41 deps = [ |
| 35 "../common_video", | 42 "../common_video", |
| 36 ] | 43 ] |
| 37 public_deps = [ | 44 public_deps = [ |
| 38 "../common_video", | 45 "../common_video", |
| 39 ] | 46 ] |
| 40 } | 47 } |
| 41 | 48 |
| 42 executable("frame_analyzer") { | 49 executable("frame_analyzer") { |
| 43 sources = [ | 50 sources = [ |
| 44 "frame_analyzer/frame_analyzer.cc", | 51 "frame_analyzer/frame_analyzer.cc", |
| 45 ] | 52 ] |
| 53 |
| 54 configs += [ "..:common_config" ] |
| 55 public_configs = [ "..:common_inherited_config" ] |
| 56 |
| 46 deps = [ | 57 deps = [ |
| 47 ":command_line_parser", | 58 ":command_line_parser", |
| 48 ":video_quality_analysis", | 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 |
| 72 deps = [ |
| 73 ":command_line_parser", |
| 74 ":video_quality_analysis", |
| 49 "//build/win:default_exe_manifest", | 75 "//build/win:default_exe_manifest", |
| 50 ] | 76 ] |
| 51 } | 77 } |
| 52 | 78 |
| 53 executable("rgba_to_i420_converter") { | 79 executable("rgba_to_i420_converter") { |
| 54 sources = [ | 80 sources = [ |
| 55 "converter/converter.cc", | 81 "converter/converter.cc", |
| 56 "converter/converter.h", | 82 "converter/converter.h", |
| 57 "converter/rgba_to_i420_converter.cc", | 83 "converter/rgba_to_i420_converter.cc", |
| 58 ] | 84 ] |
| 85 |
| 86 configs += [ "..:common_config" ] |
| 87 public_configs = [ "..:common_inherited_config" ] |
| 88 |
| 59 deps = [ | 89 deps = [ |
| 60 ":command_line_parser", | 90 ":command_line_parser", |
| 61 "../common_video", | 91 "../common_video", |
| 62 "//build/win:default_exe_manifest", | 92 "//build/win:default_exe_manifest", |
| 63 ] | 93 ] |
| 64 } | 94 } |
| 65 | 95 |
| 66 # TODO(kjellander): Convert all of tools.gyp into GN here. | 96 source_set("frame_editing_lib") { |
| 97 sources = [ |
| 98 "frame_editing/frame_editing_lib.cc", |
| 99 "frame_editing/frame_editing_lib.h", |
| 100 ] |
| 67 | 101 |
| 68 if (!build_with_chromium) { | 102 configs += [ "..:common_config" ] |
| 69 executable("tools_unittests") { | 103 public_configs = [ "..:common_inherited_config" ] |
| 70 testonly = true | |
| 71 | 104 |
| 72 sources = [ | 105 # TODO(jschuh): Bug 1348: fix this warning. |
| 73 "simple_command_line_parser_unittest.cc", | 106 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 74 ] | |
| 75 | 107 |
| 76 configs += [ "..:common_config" ] | 108 if (is_clang) { |
| 77 public_configs = [ "..:common_inherited_config" ] | 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 } |
| 78 | 113 |
| 79 deps = [ | 114 deps = [ |
| 80 ":command_line_parser", | 115 "../common_video", |
| 81 "../test:test_support_main", | 116 ] |
| 82 "//build/win:default_exe_manifest", | 117 } |
| 83 "//testing/gtest", | 118 |
| 84 ] | 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 |
| 166 executable("agc_harness") { |
| 167 testonly = true |
| 168 sources = [ |
| 169 "agc/agc_harness.cc", |
| 170 ] |
| 171 |
| 172 configs += [ "..:common_config" ] |
| 173 public_configs = [ "..:common_inherited_config" ] |
| 174 |
| 175 if (is_clang) { |
| 176 # Suppress warnings from the Chromium Clang plugin. |
| 177 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 178 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 179 } |
| 180 |
| 181 deps = [ |
| 182 "../system_wrappers:system_wrappers_default", |
| 183 "../test:channel_transport", |
| 184 "../test:test_support", |
| 185 "../voice_engine", |
| 186 "//build/win:default_exe_manifest", |
| 187 "//testing/gtest", |
| 188 "//third_party/gflags", |
| 189 ] |
| 190 } |
| 191 |
| 192 executable("activity_metric") { |
| 193 testonly = true |
| 194 sources = [ |
| 195 "agc/activity_metric.cc", |
| 196 ] |
| 197 |
| 198 configs += [ "..:common_config" ] |
| 199 public_configs = [ "..:common_inherited_config" ] |
| 200 |
| 201 if (is_clang) { |
| 202 # Suppress warnings from the Chromium Clang plugin. |
| 203 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 204 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 205 } |
| 206 |
| 207 deps = [ |
| 208 "../modules/audio_processing", |
| 209 "../system_wrappers:metrics_default", |
| 210 "//build/win:default_exe_manifest", |
| 211 "//testing/gtest", |
| 212 "//third_party/gflags", |
| 213 ] |
| 214 } |
| 215 |
| 216 executable("audio_e2e_harness") { |
| 217 testonly = true |
| 218 sources = [ |
| 219 "e2e_quality/audio/audio_e2e_harness.cc", |
| 220 ] |
| 221 |
| 222 configs += [ "..:common_config" ] |
| 223 public_configs = [ "..:common_inherited_config" ] |
| 224 |
| 225 if (is_clang) { |
| 226 # Suppress warnings from the Chromium Clang plugin. |
| 227 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 228 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 229 } |
| 230 |
| 231 deps = [ |
| 232 "../system_wrappers:system_wrappers_default", |
| 233 "../test:channel_transport", |
| 234 "../voice_engine", |
| 235 "//build/win:default_exe_manifest", |
| 236 "//testing/gtest", |
| 237 "//third_party/gflags", |
| 238 ] |
| 239 } |
| 240 |
| 241 test("tools_unittests") { |
| 242 testonly = true |
| 243 |
| 244 sources = [ |
| 245 "frame_analyzer/video_quality_analysis_unittest.cc", |
| 246 "frame_editing/frame_editing_unittest.cc", |
| 247 "simple_command_line_parser_unittest.cc", |
| 248 ] |
| 249 |
| 250 configs += [ "..:common_config" ] |
| 251 public_configs = [ "..:common_inherited_config" ] |
| 252 |
| 253 # TODO(jschuh): Bug 1348: fix this warning. |
| 254 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 255 |
| 256 if (is_clang) { |
| 257 # Suppress warnings from the Chromium Clang plugin. |
| 258 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 259 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 260 } |
| 261 |
| 262 deps = [ |
| 263 ":command_line_parser", |
| 264 ":frame_editing_lib", |
| 265 ":video_quality_analysis", |
| 266 "../test:test_support_main", |
| 267 "//testing/gtest", |
| 268 ] |
| 269 |
| 270 if (is_android) { |
| 271 deps += [ "//testing/android/native_test:native_test_support" ] |
| 85 } | 272 } |
| 86 } | 273 } |
| OLD | NEW |