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
9import("../build/webrtc.gni")
10
11source_set("tools") {
12  deps = [
13    ":command_line_parser",
14  ]
15}
16
17source_set("command_line_parser") {
18  sources = [
19    "simple_command_line_parser.cc",
20    "simple_command_line_parser.h",
21  ]
22  deps = [
23    "..:gtest_prod",
24  ]
25  configs += [ "..:common_config" ]
26  public_configs = [ "..:common_inherited_config" ]
27}
28
29source_set("video_quality_analysis") {
30  sources = [
31    "frame_analyzer/video_quality_analysis.cc",
32    "frame_analyzer/video_quality_analysis.h",
33  ]
34  deps = [
35    "../common_video",
36  ]
37  public_deps = [
38    "../common_video",
39  ]
40}
41
42executable("frame_analyzer") {
43  sources = [
44    "frame_analyzer/frame_analyzer.cc",
45  ]
46  deps = [
47    ":command_line_parser",
48    ":video_quality_analysis",
49  ]
50}
51
52executable("rgba_to_i420_converter") {
53  sources = [
54    "converter/converter.cc",
55    "converter/converter.h",
56    "converter/rgba_to_i420_converter.cc",
57  ]
58  deps = [
59    ":command_line_parser",
60    "../common_video",
61  ]
62}
63
64# TODO(kjellander): Convert all of tools.gyp into GN here.
65
66if (!build_with_chromium) {
67  executable("tools_unittests") {
68    testonly = true
69
70    sources = [
71      "simple_command_line_parser_unittest.cc",
72    ]
73
74    configs += [ "..:common_config" ]
75    public_configs = [ "..:common_inherited_config" ]
76
77    deps = [
78      ":command_line_parser",
79      "../test:test_support_main",
80      "//testing/gtest",
81    ]
82  }
83}
84