summaryrefslogtreecommitdiffstats
path: root/mojo/shell/public/cpp/BUILD.gn
blob: b1f0345060df24329033437a05bf13ff5a61dd60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# GYP version: mojo/mojo_base.gyp:mojo_application_base
source_set("cpp") {
  public_deps = [
    ":init_commandline",
    ":sources",
  ]
}

# Like the target above, but without special commandline initialization that
# apps use.
source_set("cpp_for_chromium") {
  public_deps = [
    ":sources",
  ]
}

source_set("sources") {
  sources = [
    "application_runner.h",
    "connect.h",
    "connection.h",
    "connector.h",
    "identity.h",
    "initialize_base_and_icu.cc",
    "interface_binder.h",
    "interface_factory.h",
    "interface_factory_impl.h",
    "interface_registry.h",
    "lib/application_runner.cc",
    "lib/connection_impl.cc",
    "lib/connection_impl.h",
    "lib/connector_impl.cc",
    "lib/connector_impl.h",
    "lib/identity.cc",
    "lib/interface_factory_binder.h",
    "lib/interface_registry.cc",
    "lib/message_loop_ref.cc",
    "lib/names.cc",
    "lib/shell_client.cc",
    "lib/shell_connection.cc",
    "message_loop_ref.h",
    "names.h",
    "shell.h",
    "shell_client.h",
    "shell_connection.h",
  ]

  deps = [
    "//base",
    "//base:i18n",
  ]

  public_deps = [
    "//mojo/public/cpp/bindings",
    "//mojo/public/cpp/system",
    "//mojo/shell/public/interfaces",
    "//url",
  ]
}

source_set("init_commandline") {
  sources = [
    "lib/init_commandline.cc",
  ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "application_test_base.h",
    "lib/application_test_base.cc",
    "lib/application_test_main.cc",
  ]

  public_deps = [
    ":cpp",
    "//testing/gtest",
  ]

  deps = [
    "//base",
    "//base/test:test_support",
    "//mojo/logging",
    "//mojo/public/cpp/bindings",
    "//mojo/public/cpp/system",
    "//mojo/shell/public/interfaces:interfaces_cpp_sources",
  ]

  data_deps = []
}

source_set("shell_test_support") {
  testonly = true
  sources = [
    "lib/shell_test.cc",
    "shell_test.h",
  ]

  public_deps = [
    ":cpp",
    "//testing/gtest",
  ]

  deps = [
    "//base",
    "//base/test:test_support",
    "//mojo/logging",
    "//mojo/public/cpp/bindings",
    "//mojo/public/cpp/system",
    "//mojo/shell/background:lib",
    "//mojo/shell/public/interfaces:interfaces_cpp_sources",
  ]

  data_deps = []
}