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 config("system_config") { | 5 config("system_config") { |
6 defines = [ | 6 defines = [ |
7 # Ensures that dependent projects import the core functions on Windows. | 7 # Ensures that dependent projects import the core functions on Windows. |
8 "MOJO_USE_SYSTEM_IMPL", | 8 "MOJO_USE_SYSTEM_IMPL", |
9 ] | 9 ] |
10 } | 10 } |
11 | 11 |
12 component("system") { | 12 component("system") { |
13 output_name = "mojo_system_impl" | 13 output_name = "mojo_system_impl" |
14 | 14 |
| 15 deps = [ |
| 16 "//base", |
| 17 "//base/third_party/dynamic_annotations", |
| 18 "//mojo/edk/embedder", |
| 19 ] |
| 20 |
| 21 defines = [ |
| 22 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", |
| 23 "MOJO_SYSTEM_IMPLEMENTATION", |
| 24 ] |
| 25 |
| 26 all_dependent_configs = [ ":system_config" ] |
| 27 |
15 sources = [ | 28 sources = [ |
16 "channel.cc", | 29 "channel.cc", |
17 "channel.h", | 30 "channel.h", |
18 "channel_endpoint.cc", | 31 "channel_endpoint.cc", |
19 "channel_endpoint.h", | 32 "channel_endpoint.h", |
20 "channel_endpoint_id.cc", | 33 "channel_endpoint_id.cc", |
21 "channel_endpoint_id.h", | 34 "channel_endpoint_id.h", |
22 "channel_info.cc", | 35 "channel_info.cc", |
23 "channel_info.h", | 36 "channel_info.h", |
24 "channel_manager.cc", | 37 "constants.h", |
25 "channel_manager.h", | |
26 "configuration.cc", | |
27 "configuration.h", | |
28 "core.cc", | 38 "core.cc", |
29 "core.h", | 39 "core.h", |
30 "data_pipe.cc", | 40 "data_pipe.cc", |
31 "data_pipe.h", | 41 "data_pipe.h", |
32 "data_pipe_consumer_dispatcher.cc", | 42 "data_pipe_consumer_dispatcher.cc", |
33 "data_pipe_consumer_dispatcher.h", | 43 "data_pipe_consumer_dispatcher.h", |
34 "data_pipe_producer_dispatcher.cc", | 44 "data_pipe_producer_dispatcher.cc", |
35 "data_pipe_producer_dispatcher.h", | 45 "data_pipe_producer_dispatcher.h", |
36 "dispatcher.cc", | 46 "dispatcher.cc", |
37 "dispatcher.h", | 47 "dispatcher.h", |
| 48 "entrypoints.cc", |
38 "handle_signals_state.h", | 49 "handle_signals_state.h", |
39 "handle_table.cc", | 50 "handle_table.cc", |
40 "handle_table.h", | 51 "handle_table.h", |
41 "local_data_pipe.cc", | 52 "local_data_pipe.cc", |
42 "local_data_pipe.h", | 53 "local_data_pipe.h", |
43 "local_message_pipe_endpoint.cc", | 54 "local_message_pipe_endpoint.cc", |
44 "local_message_pipe_endpoint.h", | 55 "local_message_pipe_endpoint.h", |
45 "mapping_table.cc", | 56 "mapping_table.cc", |
46 "mapping_table.h", | 57 "mapping_table.h", |
47 "memory.cc", | 58 "memory.cc", |
(...skipping 21 matching lines...) Expand all Loading... |
69 "shared_buffer_dispatcher.h", | 80 "shared_buffer_dispatcher.h", |
70 "simple_dispatcher.cc", | 81 "simple_dispatcher.cc", |
71 "simple_dispatcher.h", | 82 "simple_dispatcher.h", |
72 "transport_data.cc", | 83 "transport_data.cc", |
73 "transport_data.h", | 84 "transport_data.h", |
74 "waiter.cc", | 85 "waiter.cc", |
75 "waiter.h", | 86 "waiter.h", |
76 "waiter_list.cc", | 87 "waiter_list.cc", |
77 "waiter_list.h", | 88 "waiter_list.h", |
78 ] | 89 ] |
79 | |
80 defines = [ | |
81 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", | |
82 "MOJO_SYSTEM_IMPLEMENTATION", | |
83 ] | |
84 | |
85 all_dependent_configs = [ ":system_config" ] | |
86 | |
87 public_deps = [ | |
88 "//mojo/edk/embedder", | |
89 "//mojo/edk/embedder:platform", | |
90 "//mojo/public/c/system", | |
91 ] | |
92 | |
93 deps = [ | |
94 "//base", | |
95 "//base/third_party/dynamic_annotations", | |
96 ] | |
97 | |
98 allow_circular_includes_from = [ "//mojo/edk/embedder" ] | |
99 } | 90 } |
100 | 91 |
101 # GYP version: mojo/edk/mojo_edk.gyp:mojo_system_unittests | 92 # GYP version: mojo/edk/mojo_edk.gyp:mojo_system_unittests |
102 test("mojo_system_unittests") { | 93 test("mojo_system_unittests") { |
| 94 deps = [ |
| 95 ":system", |
| 96 "//base", |
| 97 "//mojo/edk/embedder:embedder_unittests", |
| 98 "//mojo/edk/test:test_support", |
| 99 "//testing/gtest", |
| 100 ] |
| 101 |
103 sources = [ | 102 sources = [ |
104 "../test/multiprocess_test_helper_unittest.cc", | 103 "../test/multiprocess_test_helper_unittest.cc", |
105 "channel_endpoint_id_unittest.cc", | 104 "channel_endpoint_id_unittest.cc", |
106 "channel_unittest.cc", | 105 "channel_unittest.cc", |
107 "core_test_base.cc", | 106 "core_test_base.cc", |
108 "core_test_base.h", | 107 "core_test_base.h", |
109 "core_unittest.cc", | 108 "core_unittest.cc", |
110 "data_pipe_unittest.cc", | 109 "data_pipe_unittest.cc", |
111 "dispatcher_unittest.cc", | 110 "dispatcher_unittest.cc", |
112 "local_data_pipe_unittest.cc", | 111 "local_data_pipe_unittest.cc", |
113 "memory_unittest.cc", | 112 "memory_unittest.cc", |
114 "message_pipe_dispatcher_unittest.cc", | 113 "message_pipe_dispatcher_unittest.cc", |
115 "message_pipe_test_utils.cc", | 114 "message_pipe_test_utils.cc", |
116 "message_pipe_test_utils.h", | 115 "message_pipe_test_utils.h", |
117 "message_pipe_unittest.cc", | 116 "message_pipe_unittest.cc", |
118 "multiprocess_message_pipe_unittest.cc", | 117 "multiprocess_message_pipe_unittest.cc", |
119 "options_validation_unittest.cc", | 118 "options_validation_unittest.cc", |
120 "platform_handle_dispatcher_unittest.cc", | 119 "platform_handle_dispatcher_unittest.cc", |
121 "raw_channel_unittest.cc", | 120 "raw_channel_unittest.cc", |
122 "remote_message_pipe_unittest.cc", | 121 "remote_message_pipe_unittest.cc", |
123 "run_all_unittests.cc", | 122 "run_all_unittests.cc", |
124 "shared_buffer_dispatcher_unittest.cc", | 123 "shared_buffer_dispatcher_unittest.cc", |
125 "simple_dispatcher_unittest.cc", | 124 "simple_dispatcher_unittest.cc", |
126 # TODO(vtl): Factor test_utils.* into their own source set. | |
127 "test_utils.cc", | 125 "test_utils.cc", |
128 "test_utils.h", | 126 "test_utils.h", |
129 "waiter_list_unittest.cc", | 127 "waiter_list_unittest.cc", |
130 "waiter_test_utils.cc", | 128 "waiter_test_utils.cc", |
131 "waiter_test_utils.h", | 129 "waiter_test_utils.h", |
132 "waiter_unittest.cc", | 130 "waiter_unittest.cc", |
133 ] | 131 ] |
134 | |
135 deps = [ | |
136 ":system", | |
137 "//base", | |
138 "//base/test:test_support", | |
139 "//mojo/edk/embedder:embedder_unittests", | |
140 "//mojo/edk/test:test_support", | |
141 "//testing/gtest", | |
142 ] | |
143 | |
144 allow_circular_includes_from = [ "//mojo/edk/embedder:embedder_unittests" ] | |
145 } | 132 } |
146 | 133 |
147 # GYP version: mojo/edk/mojo_edk.gyp:mojo_message_pipe_perftests | 134 # GYP version: mojo/edk/mojo_edk.gyp:mojo_message_pipe_perftests |
148 test("mojo_message_pipe_perftests") { | 135 test("mojo_message_pipe_perftests") { |
149 sources = [ | |
150 "message_pipe_perftest.cc", | |
151 "message_pipe_test_utils.h", | |
152 "message_pipe_test_utils.cc", | |
153 "test_utils.cc", | |
154 "test_utils.h", | |
155 ] | |
156 | |
157 deps = [ | 136 deps = [ |
158 ":system", | 137 ":system", |
159 "//base", | 138 "//base", |
160 "//base/test:test_support", | 139 "//base/test:test_support", |
161 "//base/test:test_support_perf", | 140 "//base/test:test_support_perf", |
162 "//mojo/edk/test:test_support", | 141 "//mojo/edk/test:test_support", |
163 "//testing/gtest", | 142 "//testing/gtest", |
164 ] | 143 ] |
| 144 |
| 145 sources = [ |
| 146 "message_pipe_perftest.cc", |
| 147 "message_pipe_test_utils.h", |
| 148 "message_pipe_test_utils.cc", |
| 149 "test_utils.cc", |
| 150 "test_utils.h", |
| 151 ] |
165 } | 152 } |
OLD | NEW |