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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 import("../../../mojo/public/tools/bindings/mojom.gni") | 6 import("../../../mojo/public/tools/bindings/mojom.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
(...skipping 13 matching lines...) Expand all Loading... |
24 #component("system") { | 24 #component("system") { |
25 # TODO(use_chrome_edk): remove "2" | 25 # TODO(use_chrome_edk): remove "2" |
26 output_name = "mojo_system_impl2" | 26 output_name = "mojo_system_impl2" |
27 | 27 |
28 sources = [ | 28 sources = [ |
29 "async_waiter.cc", | 29 "async_waiter.cc", |
30 "async_waiter.h", | 30 "async_waiter.h", |
31 "awakable.h", | 31 "awakable.h", |
32 "awakable_list.cc", | 32 "awakable_list.cc", |
33 "awakable_list.h", | 33 "awakable_list.h", |
34 "broker.h", | 34 "channel.cc", |
35 "broker_messages.h", | 35 "channel.h", |
36 "broker_state.cc", | 36 "channel_posix.cc", |
37 "broker_state.h", | 37 "channel_win.cc", |
38 "child_broker.cc", | |
39 "child_broker.h", | |
40 "child_broker_host.cc", | |
41 "child_broker_host.h", | |
42 "configuration.cc", | 38 "configuration.cc", |
43 "configuration.h", | 39 "configuration.h", |
44 "core.cc", | 40 "core.cc", |
45 "core.h", | 41 "core.h", |
46 "data_pipe.cc", | |
47 "data_pipe.h", | |
48 "data_pipe_consumer_dispatcher.cc", | 42 "data_pipe_consumer_dispatcher.cc", |
49 "data_pipe_consumer_dispatcher.h", | 43 "data_pipe_consumer_dispatcher.h", |
| 44 "data_pipe_control_message.cc", |
| 45 "data_pipe_control_message.h", |
50 "data_pipe_producer_dispatcher.cc", | 46 "data_pipe_producer_dispatcher.cc", |
51 "data_pipe_producer_dispatcher.h", | 47 "data_pipe_producer_dispatcher.h", |
52 "dispatcher.cc", | 48 "dispatcher.cc", |
53 "dispatcher.h", | 49 "dispatcher.h", |
54 "handle_signals_state.h", | 50 "handle_signals_state.h", |
55 "handle_table.cc", | 51 "handle_table.cc", |
56 "handle_table.h", | 52 "handle_table.h", |
57 "mapping_table.cc", | 53 "mapping_table.cc", |
58 "mapping_table.h", | 54 "mapping_table.h", |
59 "message_in_transit.cc", | |
60 "message_in_transit.h", | |
61 "message_in_transit_queue.cc", | |
62 "message_in_transit_queue.h", | |
63 "message_pipe_dispatcher.cc", | 55 "message_pipe_dispatcher.cc", |
64 "message_pipe_dispatcher.h", | 56 "message_pipe_dispatcher.h", |
| 57 "node_channel.cc", |
| 58 "node_channel.h", |
| 59 "node_controller.cc", |
| 60 "node_controller.h", |
65 "options_validation.h", | 61 "options_validation.h", |
66 "platform_handle_dispatcher.cc", | 62 "platform_handle_dispatcher.cc", |
67 "platform_handle_dispatcher.h", | 63 "platform_handle_dispatcher.h", |
68 "raw_channel.cc", | 64 "ports_message.cc", |
69 "raw_channel.h", | 65 "ports_message.h", |
70 "raw_channel_posix.cc", | 66 "remote_message_pipe_bootstrap.cc", |
71 "raw_channel_win.cc", | 67 "remote_message_pipe_bootstrap.h", |
72 "routed_raw_channel.cc", | |
73 "routed_raw_channel.h", | |
74 "shared_buffer_dispatcher.cc", | 68 "shared_buffer_dispatcher.cc", |
75 "shared_buffer_dispatcher.h", | 69 "shared_buffer_dispatcher.h", |
76 "simple_dispatcher.cc", | |
77 "simple_dispatcher.h", | |
78 "transport_data.cc", | |
79 "transport_data.h", | |
80 "wait_set_dispatcher.cc", | 70 "wait_set_dispatcher.cc", |
81 "wait_set_dispatcher.h", | 71 "wait_set_dispatcher.h", |
82 "waiter.cc", | 72 "waiter.cc", |
83 "waiter.h", | 73 "waiter.h", |
84 ] | 74 ] |
85 | 75 |
86 defines = [ | 76 defines = [ |
87 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", | 77 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", |
88 "MOJO_SYSTEM_IMPLEMENTATION", | 78 "MOJO_SYSTEM_IMPLEMENTATION", |
89 ] | 79 ] |
90 | 80 |
91 all_dependent_configs = [ ":system_config" ] | 81 all_dependent_configs = [ ":system_config" ] |
92 | 82 |
93 public_deps = [ | 83 public_deps = [ |
94 "../../../mojo/public/c/system", | 84 "../../../mojo/public/c/system", |
95 "../../../mojo/public/cpp/system", | 85 "../../../mojo/public/cpp/system", |
96 "../embedder", | 86 "../embedder", |
97 "../embedder:delegates", | 87 "../embedder:delegates", |
98 "../embedder:platform", | 88 "../embedder:platform", |
| 89 "ports", |
99 ] | 90 ] |
100 | 91 |
101 deps = [ | 92 deps = [ |
102 "//base", | 93 "//base", |
103 "//base/third_party/dynamic_annotations", | 94 "//base/third_party/dynamic_annotations", |
| 95 "//crypto", |
104 ] | 96 ] |
105 | 97 |
106 if (is_win) { | 98 if (is_win) { |
107 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), | 99 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), |
108 # which is uninteresting. | 100 # which is uninteresting. |
109 } | 101 } |
110 | 102 |
111 allow_circular_includes_from = [ "../embedder" ] | 103 allow_circular_includes_from = [ "../embedder" ] |
112 } | 104 } |
113 | 105 |
(...skipping 23 matching lines...) Expand all Loading... |
137 "//base", | 129 "//base", |
138 "//base/test:test_support", | 130 "//base/test:test_support", |
139 "//mojo/edk/test:test_support", | 131 "//mojo/edk/test:test_support", |
140 "//testing/gtest:gtest", | 132 "//testing/gtest:gtest", |
141 ] | 133 ] |
142 } | 134 } |
143 | 135 |
144 # TODO(use_chrome_edk): remove "2" | 136 # TODO(use_chrome_edk): remove "2" |
145 test("mojo_system_unittests2") { | 137 test("mojo_system_unittests2") { |
146 sources = [ | 138 sources = [ |
147 "../test/multiprocess_test_helper_unittest.cc", | |
148 "awakable_list_unittest.cc", | 139 "awakable_list_unittest.cc", |
149 "core_test_base.cc", | 140 "core_test_base.cc", |
150 "core_test_base.h", | 141 "core_test_base.h", |
151 "core_unittest.cc", | 142 "core_unittest.cc", |
152 "data_pipe_unittest.cc", | 143 "data_pipe_unittest.cc", |
153 "dispatcher_unittest.cc", | |
154 "message_in_transit_queue_unittest.cc", | |
155 "message_in_transit_test_utils.cc", | |
156 "message_in_transit_test_utils.h", | |
157 "message_pipe_test_utils.cc", | 144 "message_pipe_test_utils.cc", |
158 "message_pipe_test_utils.h", | 145 "message_pipe_test_utils.h", |
159 "message_pipe_unittest.cc", | 146 "message_pipe_unittest.cc", |
160 "multiprocess_message_pipe_unittest.cc", | 147 "multiprocess_message_pipe_unittest.cc", |
161 "options_validation_unittest.cc", | 148 "options_validation_unittest.cc", |
162 "platform_handle_dispatcher_unittest.cc", | 149 "platform_handle_dispatcher_unittest.cc", |
163 "raw_channel_unittest.cc", | |
164 "shared_buffer_dispatcher_unittest.cc", | 150 "shared_buffer_dispatcher_unittest.cc", |
165 "simple_dispatcher_unittest.cc", | 151 "shared_buffer_unittest.cc", |
166 "wait_set_dispatcher_unittest.cc", | 152 "wait_set_dispatcher_unittest.cc", |
167 "waiter_test_utils.cc", | 153 "waiter_test_utils.cc", |
168 "waiter_test_utils.h", | 154 "waiter_test_utils.h", |
169 "waiter_unittest.cc", | 155 "waiter_unittest.cc", |
170 ] | 156 ] |
171 | 157 |
172 deps = [ | 158 deps = [ |
173 ":test_utils", | 159 ":test_utils", |
174 | 160 |
175 # TODO(use_chrome_edk): remove "2" | 161 # TODO(use_chrome_edk): remove "2" |
(...skipping 29 matching lines...) Expand all Loading... |
205 "../test:test_support", | 191 "../test:test_support", |
206 "//base", | 192 "//base", |
207 "//base/test:test_support", | 193 "//base/test:test_support", |
208 "//testing/gtest", | 194 "//testing/gtest", |
209 | 195 |
210 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are | 196 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are |
211 # declared in third party only for now. | 197 # declared in third party only for now. |
212 "//third_party/mojo/src/mojo/edk/system", | 198 "//third_party/mojo/src/mojo/edk/system", |
213 ] | 199 ] |
214 } | 200 } |
OLD | NEW |