blob: 0daba4d6c8eff04a28fdfaad99fe993a916a9a76 [file] [log] [blame]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +00001# 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 = [
Henrik Kjellanderfa16dda2015-04-01 22:53:56 +020019 "simple_command_line_parser.cc",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020020 "simple_command_line_parser.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000021 ]
Henrik Kjellander67bcb602015-10-07 08:42:52 +020022 deps = [
23 "..:gtest_prod",
24 ]
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000025 configs += [ "..:common_config" ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020026 public_configs = [ "..:common_inherited_config" ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000027}
28
Henrik Kjellander67bcb602015-10-07 08:42:52 +020029source_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
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000064# 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
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000074 configs += [ "..:common_config" ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020075 public_configs = [ "..:common_inherited_config" ]
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000076
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000077 deps = [
78 ":command_line_parser",
79 "../test:test_support_main",
80 "//testing/gtest",
81 ]
82 }
83}