aw: Disable ipc command buffer by default
[chromium-blink-merge.git] / ipc / mojo / BUILD.gn
blobd801a7b9c19ca16ed9b418eb258d39645651fd84
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("//testing/test.gni")
6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
8 mojom("client_channel") {
9   sources = [
10     "client_channel.mojom",
11   ]
14 component("mojo") {
15   sources = [
16     "async_handle_waiter.cc",
17     "async_handle_waiter.h",
18     "client_channel.mojom",
19     "ipc_channel_mojo.cc",
20     "ipc_channel_mojo.h",
21     "ipc_message_pipe_reader.cc",
22     "ipc_message_pipe_reader.h",
23     "ipc_mojo_bootstrap.cc",
24     "ipc_mojo_bootstrap.h",
25     "ipc_mojo_handle_attachment.cc",
26     "ipc_mojo_handle_attachment.h",
27     "ipc_mojo_message_helper.cc",
28     "ipc_mojo_message_helper.h",
29     "ipc_mojo_param_traits.cc",
30     "ipc_mojo_param_traits.h",
31     "scoped_ipc_support.cc",
32     "scoped_ipc_support.h",
33   ]
35   defines = [ "IPC_MOJO_IMPLEMENTATION" ]
37   deps = [
38     "//base",
39     "//base/third_party/dynamic_annotations",
40     "//ipc",
41     "//mojo/environment:chromium",
42     "//third_party/mojo/src/mojo/edk/system",
43     "//third_party/mojo/src/mojo/public/c/environment:environment",
44     "//third_party/mojo/src/mojo/public/cpp/bindings",
45     ":client_channel",
46   ]
49 test("ipc_mojo_unittests") {
50   sources = [
51     "async_handle_waiter_unittest.cc",
52     "ipc_channel_mojo_unittest.cc",
53     "ipc_mojo_bootstrap_unittest.cc",
54     "run_all_unittests.cc",
55   ]
57   deps = [
58     "//base",
59     "//base/test:test_support",
60     "//base/third_party/dynamic_annotations",
61     "//ipc",
62     "//ipc:test_support",
63     "//ipc/mojo",
64     "//mojo/environment:chromium",
65     "//testing/gtest",
66     "//third_party/mojo/src/mojo/edk/system",
67     "//url",
68   ]
71 test("ipc_mojo_perftests") {
72   sources = [
73     "ipc_mojo_perftest.cc",
74   ]
76   deps = [
77     "//base",
78     "//base/test:test_support",
79     "//base/test:test_support_perf",
80     "//base/third_party/dynamic_annotations",
81     "//ipc",
82     "//ipc:test_support",
83     "//ipc/mojo",
84     "//mojo/environment:chromium",
85     "//third_party/mojo/src/mojo/edk/system",
86     "//url",
87   ]