blob: 76f99faa874ef0bb76b83c0a937c2bc5b176d852 [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 = [
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000019 "simple_command_line_parser.cc",
Henrik Kjellander6ac53b22015-04-01 17:29:44 +020020 "simple_command_line_parser.h",
21 ]
22 deps = [
23 "..:gtest_prod",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000024 ]
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000025
26 configs += [ "..:common_config" ]
Henrik Kjellander6ac53b22015-04-01 17:29:44 +020027 public_configs = [ "..:common_inherited_config" ]
28}
29
30source_set("video_quality_analysis") {
31 sources = [
32 "frame_analyzer/video_quality_analysis.cc",
33 "frame_analyzer/video_quality_analysis.h",
34 ]
35 deps = [
36 "../common_video",
37 ]
38 public_deps = [
39 "../common_video",
40 ]
41}
42
43executable("frame_analyzer") {
44 sources = [
45 "frame_analyzer/frame_analyzer.cc",
46 ]
47 deps = [
48 ":command_line_parser",
49 ":video_quality_analysis",
50 ]
51}
52
53executable("rgba_to_i420_converter") {
54 sources = [
55 "converter/converter.cc",
56 "converter/converter.h",
57 "converter/rgba_to_i420_converter.cc",
58 ]
59 deps = [
60 ":command_line_parser",
61 "../common_video",
62 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000063}
64
65# TODO(kjellander): Convert all of tools.gyp into GN here.
66
67if (!build_with_chromium) {
68 executable("tools_unittests") {
69 testonly = true
70
71 sources = [
72 "simple_command_line_parser_unittest.cc",
73 ]
74
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000075 configs += [ "..:common_config" ]
Henrik Kjellander6ac53b22015-04-01 17:29:44 +020076 public_configs = [ "..:common_inherited_config" ]
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000077
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000078 deps = [
79 ":command_line_parser",
80 "../test:test_support_main",
81 "//testing/gtest",
82 ]
83 }
84}