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 = [ |
Henrik Kjellander | fa16dda | 2015-04-01 22:53:56 +0200 | [diff] [blame] | 19 | "simple_command_line_parser.cc", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 20 | "simple_command_line_parser.h", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 21 | ] |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 22 | deps = [ |
kjellander | 988d31e | 2016-02-05 00:23:50 -0800 | [diff] [blame] | 23 | "../base:gtest_prod", |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 24 | ] |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 25 | configs += [ "..:common_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 26 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 27 | } |
| 28 | |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 29 | source_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 | |
| 42 | executable("frame_analyzer") { |
| 43 | sources = [ |
| 44 | "frame_analyzer/frame_analyzer.cc", |
| 45 | ] |
| 46 | deps = [ |
| 47 | ":command_line_parser", |
| 48 | ":video_quality_analysis", |
brucedawson | 84583e0 | 2016-04-28 00:21:08 -0700 | [diff] [blame^] | 49 | "//build/win:default_exe_manifest", |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 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", |
brucedawson | 84583e0 | 2016-04-28 00:21:08 -0700 | [diff] [blame^] | 62 | "//build/win:default_exe_manifest", |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 63 | ] |
| 64 | } |
| 65 | |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 66 | # TODO(kjellander): Convert all of tools.gyp into GN here. |
| 67 | |
| 68 | if (!build_with_chromium) { |
| 69 | executable("tools_unittests") { |
| 70 | testonly = true |
| 71 | |
| 72 | sources = [ |
| 73 | "simple_command_line_parser_unittest.cc", |
| 74 | ] |
| 75 | |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 76 | configs += [ "..:common_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 77 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 78 | |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 79 | deps = [ |
| 80 | ":command_line_parser", |
| 81 | "../test:test_support_main", |
brucedawson | 84583e0 | 2016-04-28 00:21:08 -0700 | [diff] [blame^] | 82 | "//build/win:default_exe_manifest", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 83 | "//testing/gtest", |
| 84 | ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 85 | } |
| 86 | } |