blob: 882a16e3063c5df6ed0ff96c466910fb8360adeb [file] [log] [blame]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +00001# 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
9import("../build/webrtc.gni")
10
11source_set("tools") {
12 deps = [
13 ":command_line_parser",
14 ]
15}
16
17source_set("command_line_parser") {
18 sources = [
Henrik Kjellander6ac53b22015-04-01 17:29:44 +020019 "simple_command_line_parser.h",
Henrik Kjellanderfa16dda2015-04-01 22:53:56 +020020 "simple_command_line_parser.cc",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000021 ]
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000022
23 configs += [ "..:common_config" ]
Henrik Kjellanderfa16dda2015-04-01 22:53:56 +020024 public_configs = [ "..:common_inherited_config"]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000025}
26
27# TODO(kjellander): Convert all of tools.gyp into GN here.
28
29if (!build_with_chromium) {
30 executable("tools_unittests") {
31 testonly = true
32
33 sources = [
34 "simple_command_line_parser_unittest.cc",
35 ]
36
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000037 configs += [ "..:common_config" ]
Henrik Kjellanderfa16dda2015-04-01 22:53:56 +020038 public_configs = [ "..:common_inherited_config"]
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000039
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000040 deps = [
41 ":command_line_parser",
42 "../test:test_support_main",
43 "//testing/gtest",
44 ]
45 }
46}