OLD | NEW |
| (Empty) |
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. | |
4 | |
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 "//ipc", | |
36 "//mojo/public/c/system", | |
37 "//mojo/public/cpp/bindings", | |
38 ] | |
39 } | |
40 | |
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 ] | |
47 | |
48 deps = [ | |
49 ":mojo", | |
50 ":mojom", | |
51 "//base", | |
52 "//base/test:test_support", | |
53 "//ipc", | |
54 "//ipc:test_support", | |
55 "//mojo/edk/system", | |
56 "//mojo/edk/test:test_support", | |
57 "//testing/gtest", | |
58 "//url", | |
59 ] | |
60 } | |
61 | |
62 test("ipc_mojo_perftests") { | |
63 sources = [ | |
64 "ipc_mojo_perftest.cc", | |
65 "run_all_perftests.cc", | |
66 ] | |
67 | |
68 deps = [ | |
69 ":mojo", | |
70 ":mojom", | |
71 "//base", | |
72 "//base/test:test_support", | |
73 "//ipc", | |
74 "//ipc:test_support", | |
75 "//mojo/edk/system", | |
76 "//mojo/edk/test:test_support", | |
77 "//mojo/edk/test:test_support_impl", | |
78 "//url", | |
79 ] | |
80 | |
81 if (is_linux && !is_component_build) { | |
82 public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | |
83 } | |
84 } | |
OLD | NEW |