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 config("system_config") { | |
6 defines = [ | |
7 # Ensures that dependent projects import the core functions on Windows. | |
8 "MOJO_USE_SYSTEM_IMPL", | |
9 ] | |
10 } | |
11 | |
12 component("system") { | |
13 output_name = "mojo_system_impl" | |
14 | |
15 deps = [ | |
16 "//base", | |
17 "//base/third_party/dynamic_annotations", | |
18 "//mojo/embedder", | |
19 ] | |
20 | |
21 defines = [ | |
22 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", | |
23 "MOJO_SYSTEM_IMPLEMENTATION", | |
24 ] | |
25 | |
26 all_dependent_configs = [ ":system_config" ] | |
27 | |
28 sources = [ | |
29 "channel.cc", | |
30 "channel.h", | |
31 "channel_endpoint.cc", | |
32 "channel_endpoint.h", | |
33 "constants.h", | |
34 "core.cc", | |
35 "core.h", | |
36 "data_pipe.cc", | |
37 "data_pipe.h", | |
38 "data_pipe_consumer_dispatcher.cc", | |
39 "data_pipe_consumer_dispatcher.h", | |
40 "data_pipe_producer_dispatcher.cc", | |
41 "data_pipe_producer_dispatcher.h", | |
42 "dispatcher.cc", | |
43 "dispatcher.h", | |
44 "entrypoints.cc", | |
45 "handle_signals_state.h", | |
46 "handle_table.cc", | |
47 "handle_table.h", | |
48 "local_data_pipe.cc", | |
49 "local_data_pipe.h", | |
50 "local_message_pipe_endpoint.cc", | |
51 "local_message_pipe_endpoint.h", | |
52 "mapping_table.cc", | |
53 "mapping_table.h", | |
54 "memory.cc", | |
55 "memory.h", | |
56 "message_in_transit.cc", | |
57 "message_in_transit.h", | |
58 "message_in_transit_queue.cc", | |
59 "message_in_transit_queue.h", | |
60 "message_pipe.cc", | |
61 "message_pipe.h", | |
62 "message_pipe_dispatcher.cc", | |
63 "message_pipe_dispatcher.h", | |
64 "message_pipe_endpoint.cc", | |
65 "message_pipe_endpoint.h", | |
66 "options_validation.h", | |
67 "platform_handle_dispatcher.cc", | |
68 "platform_handle_dispatcher.h", | |
69 "proxy_message_pipe_endpoint.cc", | |
70 "proxy_message_pipe_endpoint.h", | |
71 "raw_channel.cc", | |
72 "raw_channel.h", | |
73 "raw_channel_posix.cc", | |
74 "raw_channel_win.cc", | |
75 "shared_buffer_dispatcher.cc", | |
76 "shared_buffer_dispatcher.h", | |
77 "simple_dispatcher.cc", | |
78 "simple_dispatcher.h", | |
79 "transport_data.cc", | |
80 "transport_data.h", | |
81 "waiter.cc", | |
82 "waiter.h", | |
83 "waiter_list.cc", | |
84 "waiter_list.h", | |
85 ] | |
86 } | |
87 | |
88 # GYP version: mojo/mojo_base.gyp:mojo_system_unittests | |
89 test("mojo_system_unittests") { | |
90 deps = [ | |
91 ":system", | |
92 "//base", | |
93 "//mojo/common/test:test_support", | |
94 "//mojo/embedder:embedder_unittests", | |
95 "//testing/gtest", | |
96 ] | |
97 | |
98 sources = [ | |
99 "channel_unittest.cc", | |
100 "core_unittest.cc", | |
101 "core_test_base.cc", | |
102 "core_test_base.h", | |
103 "data_pipe_unittest.cc", | |
104 "dispatcher_unittest.cc", | |
105 "local_data_pipe_unittest.cc", | |
106 "memory_unittest.cc", | |
107 "message_pipe_dispatcher_unittest.cc", | |
108 "message_pipe_test_utils.h", | |
109 "message_pipe_test_utils.cc", | |
110 "message_pipe_unittest.cc", | |
111 "multiprocess_message_pipe_unittest.cc", | |
112 "options_validation_unittest.cc", | |
113 "platform_handle_dispatcher_unittest.cc", | |
114 "raw_channel_unittest.cc", | |
115 "remote_message_pipe_unittest.cc", | |
116 "run_all_unittests.cc", | |
117 "shared_buffer_dispatcher_unittest.cc", | |
118 "simple_dispatcher_unittest.cc", | |
119 "test_utils.cc", | |
120 "test_utils.h", | |
121 "waiter_list_unittest.cc", | |
122 "waiter_test_utils.cc", | |
123 "waiter_test_utils.h", | |
124 "waiter_unittest.cc", | |
125 ] | |
126 } | |
127 | |
128 # GYP version: mojo/mojo_base.gyp:mojo_message_pipe_perftests | |
129 test("mojo_message_pipe_perftests") { | |
130 deps = [ | |
131 ":system", | |
132 "//base", | |
133 "//base/test:test_support", | |
134 "//base/test:test_support_perf", | |
135 "//mojo/common/test:test_support", | |
136 "//testing/gtest", | |
137 ] | |
138 | |
139 sources = [ | |
140 "message_pipe_perftest.cc", | |
141 "message_pipe_test_utils.h", | |
142 "message_pipe_test_utils.cc", | |
143 "test_utils.cc", | |
144 "test_utils.h", | |
145 ] | |
146 } | |
OLD | NEW |