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 = [ |
| 19 | "simple_command_line_parser.h", |
| 20 | "simple_command_line_parser.cc", |
| 21 | ] |
| 22 | } |
| 23 | |
| 24 | # TODO(kjellander): Convert all of tools.gyp into GN here. |
| 25 | |
| 26 | if (!build_with_chromium) { |
| 27 | executable("tools_unittests") { |
| 28 | testonly = true |
| 29 | |
| 30 | sources = [ |
| 31 | "simple_command_line_parser_unittest.cc", |
| 32 | ] |
| 33 | |
| 34 | deps = [ |
| 35 | ":command_line_parser", |
| 36 | "../test:test_support_main", |
| 37 | "//testing/gtest", |
| 38 | ] |
| 39 | } |
| 40 | } |