cc: Refactor RecordingSource
[chromium-blink-merge.git] / ipc / mojo / BUILD.gn
blob324cc9ac9aa85e7817644f1d60cafbdb6585cd2f
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//mojo/public/tools/bindings/mojom.gni")
7 mojom("client_channel") {
8   sources = [
9     "client_channel.mojom",
10   ]
13 component("mojo") {
14   sources = [
15     "client_channel.mojom",
16     "ipc_channel_mojo.cc",
17     "ipc_channel_mojo.h",
18     "ipc_channel_mojo_host.cc",
19     "ipc_channel_mojo_host.h",
20     "ipc_channel_mojo_readers.cc",
21     "ipc_channel_mojo_readers.h",
22     "ipc_mojo_bootstrap.cc",
23     "ipc_mojo_bootstrap.h",
24     "ipc_message_pipe_reader.cc",
25     "ipc_message_pipe_reader.h",
26   ]
28   defines = [ "IPC_MOJO_IMPLEMENTATION" ]
30   deps = [
31     "//base",
32     "//base/third_party/dynamic_annotations",
33     "//ipc",
34     "//mojo/environment:chromium",
35     "//mojo/public/cpp/bindings",
36     "//mojo/edk/system",
37     ":client_channel",
38   ]
41 test("ipc_mojo_unittests") {
42   sources = [
43     "ipc_channel_mojo_unittest.cc",
44     "ipc_mojo_bootstrap_unittest.cc",
45     "run_all_unittests.cc",
46   ]
48   deps = [
49     "//base",
50     "//base/test:test_support",
51     "//base/third_party/dynamic_annotations",
52     "//ipc",
53     "//ipc:test_support",
54     "//ipc/mojo",
55     "//mojo/edk/system",
56     "//mojo/environment:chromium",
57     "//url",
58   ]
61 test("ipc_mojo_perftests") {
62   sources = [
63     "ipc_mojo_perftest.cc",
64   ]
66   deps = [
67     "//base",
68     "//base/test:test_support",
69     "//base/test:test_support_perf",
70     "//base/third_party/dynamic_annotations",
71     "//ipc",
72     "//ipc:test_support",
73     "//ipc/mojo",
74     "//mojo/edk/system",
75     "//mojo/environment:chromium",
76     "//url",
77   ]