kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 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 | |
| 9 | import("../build/webrtc.gni") |
| 10 | |
| 11 | source_set("tools") { |
| 12 | deps = [ |
| 13 | ":command_line_parser", |
| 14 | ] |
| 15 | } |
| 16 | |
| 17 | source_set("command_line_parser") { |
| 18 | sources = [ |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 19 | "simple_command_line_parser.cc", |
Henrik Kjellander | 6ac53b2 | 2015-04-01 17:29:44 +0200 | [diff] [blame^] | 20 | "simple_command_line_parser.h", |
| 21 | ] |
| 22 | deps = [ |
| 23 | "..:gtest_prod", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 24 | ] |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 25 | |
| 26 | configs += [ "..:common_config" ] |
Henrik Kjellander | 6ac53b2 | 2015-04-01 17:29:44 +0200 | [diff] [blame^] | 27 | public_configs = [ "..:common_inherited_config" ] |
| 28 | } |
| 29 | |
| 30 | source_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 | |
| 43 | executable("frame_analyzer") { |
| 44 | sources = [ |
| 45 | "frame_analyzer/frame_analyzer.cc", |
| 46 | ] |
| 47 | deps = [ |
| 48 | ":command_line_parser", |
| 49 | ":video_quality_analysis", |
| 50 | ] |
| 51 | } |
| 52 | |
| 53 | executable("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.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | # TODO(kjellander): Convert all of tools.gyp into GN here. |
| 66 | |
| 67 | if (!build_with_chromium) { |
| 68 | executable("tools_unittests") { |
| 69 | testonly = true |
| 70 | |
| 71 | sources = [ |
| 72 | "simple_command_line_parser_unittest.cc", |
| 73 | ] |
| 74 | |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 75 | configs += [ "..:common_config" ] |
Henrik Kjellander | 6ac53b2 | 2015-04-01 17:29:44 +0200 | [diff] [blame^] | 76 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 77 | |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 78 | deps = [ |
| 79 | ":command_line_parser", |
| 80 | "../test:test_support_main", |
| 81 | "//testing/gtest", |
| 82 | ] |
| 83 | } |
| 84 | } |