| Index: webrtc/tools/BUILD.gn
|
| diff --git a/webrtc/tools/BUILD.gn b/webrtc/tools/BUILD.gn
|
| index ebeacc2460227290ada94c2d2f859da745bb8b3c..24b57f5dadcdac17034c3fa643bfa1412c63f5e4 100644
|
| --- a/webrtc/tools/BUILD.gn
|
| +++ b/webrtc/tools/BUILD.gn
|
| @@ -6,11 +6,14 @@
|
| # in the file PATENTS. All contributing project authors may
|
| # be found in the AUTHORS file in the root of the source tree.
|
|
|
| +import("//testing/test.gni")
|
| import("../build/webrtc.gni")
|
|
|
| source_set("tools") {
|
| deps = [
|
| ":command_line_parser",
|
| + ":frame_analyzer",
|
| + ":rgba_to_i420_converter",
|
| ]
|
| }
|
|
|
| @@ -31,6 +34,10 @@ source_set("video_quality_analysis") {
|
| "frame_analyzer/video_quality_analysis.cc",
|
| "frame_analyzer/video_quality_analysis.h",
|
| ]
|
| +
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +
|
| deps = [
|
| "../common_video",
|
| ]
|
| @@ -43,6 +50,25 @@ executable("frame_analyzer") {
|
| sources = [
|
| "frame_analyzer/frame_analyzer.cc",
|
| ]
|
| +
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +
|
| + deps = [
|
| + ":command_line_parser",
|
| + ":video_quality_analysis",
|
| + "//build/win:default_exe_manifest",
|
| + ]
|
| +}
|
| +
|
| +executable("psnr_ssim_analyzer") {
|
| + sources = [
|
| + "psnr_ssim_analyzer/psnr_ssim_analyzer.cc",
|
| + ]
|
| +
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +
|
| deps = [
|
| ":command_line_parser",
|
| ":video_quality_analysis",
|
| @@ -56,6 +82,10 @@ executable("rgba_to_i420_converter") {
|
| "converter/converter.h",
|
| "converter/rgba_to_i420_converter.cc",
|
| ]
|
| +
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +
|
| deps = [
|
| ":command_line_parser",
|
| "../common_video",
|
| @@ -63,24 +93,181 @@ executable("rgba_to_i420_converter") {
|
| ]
|
| }
|
|
|
| -# TODO(kjellander): Convert all of tools.gyp into GN here.
|
| +source_set("frame_editing_lib") {
|
| + sources = [
|
| + "frame_editing/frame_editing_lib.cc",
|
| + "frame_editing/frame_editing_lib.h",
|
| + ]
|
|
|
| -if (!build_with_chromium) {
|
| - executable("tools_unittests") {
|
| - testonly = true
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +
|
| + # TODO(jschuh): Bug 1348: fix this warning.
|
| + configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
| - sources = [
|
| - "simple_command_line_parser_unittest.cc",
|
| - ]
|
| + if (is_clang) {
|
| + # Suppress warnings from the Chromium Clang plugin.
|
| + # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
| + configs -= [ "//build/config/clang:find_bad_constructs" ]
|
| + }
|
| +
|
| + deps = [
|
| + "../common_video",
|
| + ]
|
| +}
|
| +
|
| +executable("frame_editor") {
|
| + sources = [
|
| + "frame_editing/frame_editing.cc",
|
| + ]
|
| +
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +
|
| + deps = [
|
| + ":command_line_parser",
|
| + ":frame_editing_lib",
|
| + "//build/win:default_exe_manifest",
|
| + ]
|
| +}
|
| +
|
| +executable("force_mic_volume_max") {
|
| + sources = [
|
| + "force_mic_volume_max/force_mic_volume_max.cc",
|
| + ]
|
| +
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +
|
| + if (is_clang) {
|
| + # Suppress warnings from the Chromium Clang plugin.
|
| + # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
| + configs -= [ "//build/config/clang:find_bad_constructs" ]
|
| + }
|
| +
|
| + deps = [
|
| + "../system_wrappers:system_wrappers_default",
|
| + "../voice_engine",
|
| + "//build/win:default_exe_manifest",
|
| + ]
|
| +}
|
|
|
| - configs += [ "..:common_config" ]
|
| - public_configs = [ "..:common_inherited_config" ]
|
| +source_set("agc_test_utils") {
|
| + testonly = true
|
| + sources = [
|
| + "agc/test_utils.cc",
|
| + "agc/test_utils.h",
|
| + ]
|
| +
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +}
|
| +
|
| +executable("agc_harness") {
|
| + testonly = true
|
| + sources = [
|
| + "agc/agc_harness.cc",
|
| + ]
|
| +
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +
|
| + if (is_clang) {
|
| + # Suppress warnings from the Chromium Clang plugin.
|
| + # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
| + configs -= [ "//build/config/clang:find_bad_constructs" ]
|
| + }
|
| +
|
| + deps = [
|
| + "../system_wrappers:system_wrappers_default",
|
| + "../test:channel_transport",
|
| + "../test:test_support",
|
| + "../voice_engine",
|
| + "//build/win:default_exe_manifest",
|
| + "//testing/gtest",
|
| + "//third_party/gflags",
|
| + ]
|
| +}
|
| +
|
| +executable("activity_metric") {
|
| + testonly = true
|
| + sources = [
|
| + "agc/activity_metric.cc",
|
| + ]
|
| +
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +
|
| + if (is_clang) {
|
| + # Suppress warnings from the Chromium Clang plugin.
|
| + # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
| + configs -= [ "//build/config/clang:find_bad_constructs" ]
|
| + }
|
| +
|
| + deps = [
|
| + "../modules/audio_processing",
|
| + "../system_wrappers:metrics_default",
|
| + "//build/win:default_exe_manifest",
|
| + "//testing/gtest",
|
| + "//third_party/gflags",
|
| + ]
|
| +}
|
| +
|
| +executable("audio_e2e_harness") {
|
| + testonly = true
|
| + sources = [
|
| + "e2e_quality/audio/audio_e2e_harness.cc",
|
| + ]
|
| +
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +
|
| + if (is_clang) {
|
| + # Suppress warnings from the Chromium Clang plugin.
|
| + # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
| + configs -= [ "//build/config/clang:find_bad_constructs" ]
|
| + }
|
| +
|
| + deps = [
|
| + "../system_wrappers:system_wrappers_default",
|
| + "../test:channel_transport",
|
| + "../voice_engine",
|
| + "//build/win:default_exe_manifest",
|
| + "//testing/gtest",
|
| + "//third_party/gflags",
|
| + ]
|
| +}
|
| +
|
| +test("tools_unittests") {
|
| + testonly = true
|
| +
|
| + sources = [
|
| + "frame_analyzer/video_quality_analysis_unittest.cc",
|
| + "frame_editing/frame_editing_unittest.cc",
|
| + "simple_command_line_parser_unittest.cc",
|
| + ]
|
| +
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +
|
| + # TODO(jschuh): Bug 1348: fix this warning.
|
| + configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
| +
|
| + if (is_clang) {
|
| + # Suppress warnings from the Chromium Clang plugin.
|
| + # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
| + configs -= [ "//build/config/clang:find_bad_constructs" ]
|
| + }
|
| +
|
| + deps = [
|
| + ":command_line_parser",
|
| + ":frame_editing_lib",
|
| + ":video_quality_analysis",
|
| + "../test:test_support_main",
|
| + "//testing/gtest",
|
| + ]
|
|
|
| - deps = [
|
| - ":command_line_parser",
|
| - "../test:test_support_main",
|
| - "//build/win:default_exe_manifest",
|
| - "//testing/gtest",
|
| - ]
|
| + if (is_android) {
|
| + deps += [ "//testing/android/native_test:native_test_support" ]
|
| }
|
| }
|
|
|