Using "static_assert" in lieu of "COMPILE_ASSERT" in courgete module
[chromium-blink-merge.git] / ipc / mojo / BUILD.gn
blob7c04d181cef53bf4cb3cb084417b766511497015
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("//third_party/mojo/src/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     "async_handle_waiter.cc",
17     "async_handle_waiter.h",
18     "ipc_channel_mojo.cc",
19     "ipc_channel_mojo.h",
20     "ipc_channel_mojo_host.cc",
21     "ipc_channel_mojo_host.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     "//third_party/mojo/src/mojo/public/cpp/bindings",
36     "//third_party/mojo/src/mojo/edk/system",
37     ":client_channel",
38   ]
41 test("ipc_mojo_unittests") {
42   sources = [
43     "async_handle_waiter_unittest.cc",
44     "ipc_channel_mojo_unittest.cc",
45     "ipc_mojo_bootstrap_unittest.cc",
46     "run_all_unittests.cc",
47   ]
49   deps = [
50     "//base",
51     "//base/test:test_support",
52     "//base/third_party/dynamic_annotations",
53     "//ipc",
54     "//ipc:test_support",
55     "//ipc/mojo",
56     "//mojo/environment:chromium",
57     "//third_party/mojo/src/mojo/edk/system",
58     "//url",
59   ]
62 test("ipc_mojo_perftests") {
63   sources = [
64     "ipc_mojo_perftest.cc",
65   ]
67   deps = [
68     "//base",
69     "//base/test:test_support",
70     "//base/test:test_support_perf",
71     "//base/third_party/dynamic_annotations",
72     "//ipc",
73     "//ipc:test_support",
74     "//ipc/mojo",
75     "//mojo/environment:chromium",
76     "//third_party/mojo/src/mojo/edk/system",
77     "//url",
78   ]