OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
6 import("//testing/test.gni") | |
7 | |
8 mojom("mojom") { | |
9 sources = [ | |
10 "ipc.mojom", | |
11 ] | |
12 } | |
13 | |
14 component("mojo") { | |
15 sources = [ | |
16 "ipc_channel_mojo.cc", | |
17 "ipc_channel_mojo.h", | |
18 "ipc_message_pipe_reader.cc", | |
19 "ipc_message_pipe_reader.h", | |
20 "ipc_mojo_bootstrap.cc", | |
21 "ipc_mojo_bootstrap.h", | |
22 "ipc_mojo_handle_attachment.cc", | |
23 "ipc_mojo_handle_attachment.h", | |
24 "ipc_mojo_message_helper.cc", | |
25 "ipc_mojo_message_helper.h", | |
26 "ipc_mojo_param_traits.cc", | |
27 "ipc_mojo_param_traits.h", | |
28 ] | |
29 | |
30 defines = [ "IPC_MOJO_IMPLEMENTATION" ] | |
31 | |
32 deps = [ | |
33 ":mojom", | |
34 "//base", | |
35 "//base/third_party/dynamic_annotations", | |
36 "//ipc", | |
37 "//mojo/public/c/system", | |
38 "//mojo/public/cpp/bindings", | |
39 ] | |
40 } | |
41 | 6 |
42 source_set("ipc_support") { | 7 source_set("ipc_support") { |
43 sources = [ | 8 sources = [ |
44 "scoped_ipc_support.cc", | 9 "scoped_ipc_support.cc", |
jam
2016/06/15 18:57:30
why are you leaving these two files here instead o
Anand Mistry (off Chromium)
2016/06/16 00:24:29
This class has nothing to do with legacy IPC and d
| |
45 "scoped_ipc_support.h", | 10 "scoped_ipc_support.h", |
46 ] | 11 ] |
47 | 12 |
48 deps = [ | 13 deps = [ |
49 "//base", | 14 "//base", |
50 "//mojo/edk/system", | 15 "//mojo/edk/system", |
51 ] | 16 ] |
52 } | 17 } |
53 | |
54 test("ipc_mojo_unittests") { | |
55 sources = [ | |
56 "ipc_channel_mojo_unittest.cc", | |
57 "ipc_mojo_bootstrap_unittest.cc", | |
58 "run_all_unittests.cc", | |
59 ] | |
60 | |
61 deps = [ | |
62 ":mojo", | |
63 ":mojom", | |
64 "//base", | |
65 "//base/test:test_support", | |
66 "//base/third_party/dynamic_annotations", | |
67 "//ipc", | |
68 "//ipc:test_support", | |
69 "//mojo/edk/system", | |
70 "//mojo/edk/test:test_support", | |
71 "//testing/gtest", | |
72 "//url", | |
73 ] | |
74 } | |
75 | |
76 test("ipc_mojo_perftests") { | |
77 sources = [ | |
78 "ipc_mojo_perftest.cc", | |
79 "run_all_perftests.cc", | |
80 ] | |
81 | |
82 deps = [ | |
83 ":mojo", | |
84 ":mojom", | |
85 "//base", | |
86 "//base/test:test_support", | |
87 "//base/third_party/dynamic_annotations", | |
88 "//ipc", | |
89 "//ipc:test_support", | |
90 "//mojo/edk/system", | |
91 "//mojo/edk/test:test_support", | |
92 "//mojo/edk/test:test_support_impl", | |
93 "//url", | |
94 ] | |
95 | |
96 if (is_linux && !is_component_build) { | |
97 public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | |
98 } | |
99 } | |
OLD | NEW |