summaryrefslogtreecommitdiffstats
path: root/components/arc/BUILD.gn
blob: f11c2bfc021218aea99f994e078e4dc026cf1d10 (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
120
# Copyright 2015 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.

import("//mojo/public/tools/bindings/mojom.gni")

static_library("arc") {
  sources = [
    "arc_bridge_bootstrap.cc",
    "arc_bridge_bootstrap.h",
    "arc_bridge_service.cc",
    "arc_bridge_service.h",
    "arc_bridge_service_impl.cc",
    "arc_bridge_service_impl.h",
    "arc_service.cc",
    "arc_service.h",
    "arc_service_manager.cc",
    "arc_service_manager.h",
    "auth/arc_auth_fetcher.cc",
    "auth/arc_auth_fetcher.h",
    "clipboard/arc_clipboard_bridge.cc",
    "clipboard/arc_clipboard_bridge.h",
    "ime/arc_ime_bridge.cc",
    "ime/arc_ime_bridge.h",
    "ime/arc_ime_ipc_host.h",
    "ime/arc_ime_ipc_host_impl.cc",
    "ime/arc_ime_ipc_host_impl.h",
    "input/arc_input_bridge.cc",
    "input/arc_input_bridge.h",
    "net/arc_net_host_impl.cc",
    "net/arc_net_host_impl.h",
    "power/arc_power_bridge.cc",
    "power/arc_power_bridge.h",
  ]

  deps = [
    "//base",
    "//chromeos",
    "//chromeos:power_manager_proto",
    "//components/onc",
    "//components/prefs",
    "//components/signin/core/account_id",
    "//google_apis",
    "//ipc:ipc",
    "//ipc/mojo:mojo",
    "//mojo/edk/system",
    "//ui/arc",
    "//ui/aura",
    "//ui/base:base",
    "//ui/base/ime",
    "//ui/events",
    "//ui/events:dom_keycode_converter",
  ]

  public_deps = [
    ":arc_bindings",
  ]
}

mojom("arc_bindings") {
  sources = [
    "common/app.mojom",
    "common/arc_bridge.mojom",
    "common/auth.mojom",
    "common/clipboard.mojom",
    "common/ime.mojom",
    "common/input.mojom",
    "common/intent_helper.mojom",
    "common/net.mojom",
    "common/notifications.mojom",
    "common/power.mojom",
    "common/process.mojom",
    "common/settings.mojom",
    "common/video.mojom",
  ]
}

static_library("arc_test_support") {
  testonly = true
  sources = [
    "test/fake_app_instance.cc",
    "test/fake_app_instance.h",
    "test/fake_arc_bridge_instance.cc",
    "test/fake_arc_bridge_instance.h",
    "test/fake_arc_bridge_service.cc",
    "test/fake_arc_bridge_service.h",
  ]

  deps = [
    ":arc",
    ":arc_bindings",
    "//base",
    "//mojo/common:common_base",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "arc_bridge_service_unittest.cc",
    "ime/arc_ime_bridge_unittest.cc",
  ]

  deps = [
    ":arc",
    ":arc_bindings",
    ":arc_test_support",
    "//base",
    "//chromeos",
    "//ipc/mojo:mojo",
    "//mojo/public/cpp/environment:environment",
    "//mojo/public/cpp/system:system",
    "//testing/gtest",
    "//ui/aura",
    "//ui/base:test_support",
    "//ui/base/ime",
    "//ui/events",
    "//ui/events:dom_keycode_converter",
  ]
}