OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
10 | 10 |
11 source_set("tools") { | 11 source_set("tools") { |
12 deps = [ | 12 deps = [ |
13 ":command_line_parser", | 13 ":command_line_parser", |
14 ] | 14 ] |
15 } | 15 } |
16 | 16 |
17 source_set("command_line_parser") { | 17 source_set("command_line_parser") { |
18 sources = [ | 18 sources = [ |
19 "simple_command_line_parser.cc", | 19 "simple_command_line_parser.cc", |
20 "simple_command_line_parser.h", | 20 "simple_command_line_parser.h", |
21 ] | 21 ] |
22 | 22 deps = [ |
| 23 "..:gtest_prod", |
| 24 ] |
23 configs += [ "..:common_config" ] | 25 configs += [ "..:common_config" ] |
24 public_configs = [ "..:common_inherited_config" ] | 26 public_configs = [ "..:common_inherited_config" ] |
25 } | 27 } |
26 | 28 |
| 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", |
| 49 ] |
| 50 } |
| 51 |
| 52 executable("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 |
27 # TODO(kjellander): Convert all of tools.gyp into GN here. | 64 # TODO(kjellander): Convert all of tools.gyp into GN here. |
28 | 65 |
29 if (!build_with_chromium) { | 66 if (!build_with_chromium) { |
30 executable("tools_unittests") { | 67 executable("tools_unittests") { |
31 testonly = true | 68 testonly = true |
32 | 69 |
33 sources = [ | 70 sources = [ |
34 "simple_command_line_parser_unittest.cc", | 71 "simple_command_line_parser_unittest.cc", |
35 ] | 72 ] |
36 | 73 |
37 configs += [ "..:common_config" ] | 74 configs += [ "..:common_config" ] |
38 public_configs = [ "..:common_inherited_config" ] | 75 public_configs = [ "..:common_inherited_config" ] |
39 | 76 |
40 deps = [ | 77 deps = [ |
41 ":command_line_parser", | 78 ":command_line_parser", |
42 "../test:test_support_main", | 79 "../test:test_support_main", |
43 "//testing/gtest", | 80 "//testing/gtest", |
44 ] | 81 ] |
45 } | 82 } |
46 } | 83 } |
OLD | NEW |