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 | ] |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 22 | |
| 23 | configs += [ "..:common_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame^] | 24 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | # TODO(kjellander): Convert all of tools.gyp into GN here. |
| 28 | |
| 29 | if (!build_with_chromium) { |
| 30 | executable("tools_unittests") { |
| 31 | testonly = true |
| 32 | |
| 33 | sources = [ |
| 34 | "simple_command_line_parser_unittest.cc", |
| 35 | ] |
| 36 | |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 37 | configs += [ "..:common_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame^] | 38 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 39 | |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 40 | deps = [ |
| 41 | ":command_line_parser", |
| 42 | "../test:test_support_main", |
| 43 | "//testing/gtest", |
| 44 | ] |
| 45 | } |
| 46 | } |