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_edk.gni") | 5 import("../mojo_edk.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("../../../third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 7 import("../../../third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
8 | 8 |
9 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
11 import("//build/config/android/rules.gni") | 11 import("//build/config/android/rules.gni") |
12 } | 12 } |
13 | 13 |
14 config("system_config") { | 14 config("system_config") { |
15 defines = [ | 15 defines = [ |
16 # Ensures that dependent projects import the core functions on Windows. | 16 # Ensures that dependent projects import the core functions on Windows. |
17 "MOJO_USE_SYSTEM_IMPL", | 17 "MOJO_USE_SYSTEM_IMPL", |
18 ] | 18 ] |
19 } | 19 } |
20 | 20 |
21 mojom("master") { | 21 mojom("master") { |
22 sources = [ | 22 sources = [ |
23 "master.mojom", | 23 "master.mojom", |
24 ] | 24 ] |
| 25 |
| 26 with_environment = false |
25 } | 27 } |
26 | 28 |
27 static_library("system") { | 29 static_library("system") { |
28 # TODO(use_chrome_edk): this should be a component to match third_party, | 30 # TODO(use_chrome_edk): this should be a component to match third_party, |
29 # but since third_party includes it, we either make it a static library | 31 # but since third_party includes it, we either make it a static library |
30 # or we have to change the export macros to be different than third_party. | 32 # or we have to change the export macros to be different than third_party. |
31 #component("system") { | 33 #component("system") { |
32 # TODO(use_chrome_edk): remove "2" | 34 # TODO(use_chrome_edk): remove "2" |
33 output_name = "mojo_system_impl2" | 35 output_name = "mojo_system_impl2" |
34 | 36 |
35 sources = [ | 37 sources = [ |
36 "async_waiter.cc", | 38 "async_waiter.cc", |
37 "async_waiter.h", | 39 "async_waiter.h", |
38 "awakable.h", | 40 "awakable.h", |
39 "awakable_list.cc", | 41 "awakable_list.cc", |
40 "awakable_list.h", | 42 "awakable_list.h", |
41 "configuration.cc", | 43 "configuration.cc", |
42 "configuration.h", | 44 "configuration.h", |
43 "core.cc", | 45 "core.cc", |
44 "core.h", | 46 "core.h", |
45 "data_pipe.cc", | 47 "data_pipe.cc", |
46 "data_pipe.h", | 48 "data_pipe.h", |
47 "data_pipe_consumer_dispatcher.cc", | 49 "data_pipe_consumer_dispatcher.cc", |
48 "data_pipe_consumer_dispatcher.h", | 50 "data_pipe_consumer_dispatcher.h", |
49 "data_pipe_producer_dispatcher.cc", | 51 "data_pipe_producer_dispatcher.cc", |
50 "data_pipe_producer_dispatcher.h", | 52 "data_pipe_producer_dispatcher.h", |
51 "dispatcher.cc", | 53 "dispatcher.cc", |
52 "dispatcher.h", | 54 "dispatcher.h", |
53 "handle_signals_state.h", | 55 "handle_signals_state.h", |
54 "handle_table.cc", | 56 "handle_table.cc", |
55 "handle_table.h", | 57 "handle_table.h", |
56 "mapping_table.cc", | 58 "mapping_table.cc", |
57 "mapping_table.h", | 59 "mapping_table.h", |
| 60 |
58 #"master_impl.cc", | 61 #"master_impl.cc", |
59 #"master_impl.h", | 62 #"master_impl.h", |
60 "message_in_transit.cc", | 63 "message_in_transit.cc", |
61 "message_in_transit.h", | 64 "message_in_transit.h", |
62 "message_in_transit_queue.cc", | 65 "message_in_transit_queue.cc", |
63 "message_in_transit_queue.h", | 66 "message_in_transit_queue.h", |
64 "message_pipe_dispatcher.cc", | 67 "message_pipe_dispatcher.cc", |
65 "message_pipe_dispatcher.h", | 68 "message_pipe_dispatcher.h", |
66 "options_validation.h", | 69 "options_validation.h", |
67 "platform_handle_dispatcher.cc", | 70 "platform_handle_dispatcher.cc", |
(...skipping 23 matching lines...) Expand all Loading... |
91 "../embedder", | 94 "../embedder", |
92 "../embedder:delegates", | 95 "../embedder:delegates", |
93 "../embedder:platform", | 96 "../embedder:platform", |
94 "../../../third_party/mojo/src/mojo/public/c/system", | 97 "../../../third_party/mojo/src/mojo/public/c/system", |
95 "../../../third_party/mojo/src/mojo/public/cpp/system", | 98 "../../../third_party/mojo/src/mojo/public/cpp/system", |
96 ] | 99 ] |
97 | 100 |
98 deps = [ | 101 deps = [ |
99 "//base", | 102 "//base", |
100 "//base/third_party/dynamic_annotations", | 103 "//base/third_party/dynamic_annotations", |
| 104 |
101 #":master", | 105 #":master", |
102 ] | 106 ] |
103 | 107 |
104 if (is_win) { | 108 if (is_win) { |
105 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), | 109 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), |
106 # which is uninteresting. | 110 # which is uninteresting. |
107 } | 111 } |
108 | 112 |
109 allow_circular_includes_from = [ "../embedder" ] | 113 allow_circular_includes_from = [ "../embedder" ] |
110 } | 114 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 # TODO(use_chrome_edk): remove "2" | 146 # TODO(use_chrome_edk): remove "2" |
143 test("mojo_system_unittests2") { | 147 test("mojo_system_unittests2") { |
144 sources = [ | 148 sources = [ |
145 "../test/multiprocess_test_helper_unittest.cc", | 149 "../test/multiprocess_test_helper_unittest.cc", |
146 "awakable_list_unittest.cc", | 150 "awakable_list_unittest.cc", |
147 "core_test_base.cc", | 151 "core_test_base.cc", |
148 "core_test_base.h", | 152 "core_test_base.h", |
149 "core_unittest.cc", | 153 "core_unittest.cc", |
150 "data_pipe_unittest.cc", | 154 "data_pipe_unittest.cc", |
151 "dispatcher_unittest.cc", | 155 "dispatcher_unittest.cc", |
| 156 |
152 #"master_impl_unittest.cc", | 157 #"master_impl_unittest.cc", |
153 | 158 |
154 "message_in_transit_queue_unittest.cc", | 159 "message_in_transit_queue_unittest.cc", |
155 "message_in_transit_test_utils.cc", | 160 "message_in_transit_test_utils.cc", |
156 "message_in_transit_test_utils.h", | 161 "message_in_transit_test_utils.h", |
157 "message_pipe_test_utils.cc", | 162 "message_pipe_test_utils.cc", |
158 "message_pipe_test_utils.h", | 163 "message_pipe_test_utils.h", |
159 "message_pipe_unittest.cc", | 164 "message_pipe_unittest.cc", |
160 "multiprocess_message_pipe_unittest.cc", | 165 "multiprocess_message_pipe_unittest.cc", |
161 "options_validation_unittest.cc", | 166 "options_validation_unittest.cc", |
162 "platform_handle_dispatcher_unittest.cc", | 167 "platform_handle_dispatcher_unittest.cc", |
163 | |
164 "raw_channel_unittest.cc", | 168 "raw_channel_unittest.cc", |
165 "run_all_unittests.cc", | 169 "run_all_unittests.cc", |
166 "shared_buffer_dispatcher_unittest.cc", | 170 "shared_buffer_dispatcher_unittest.cc", |
167 "simple_dispatcher_unittest.cc", | 171 "simple_dispatcher_unittest.cc", |
168 "waiter_test_utils.cc", | 172 "waiter_test_utils.cc", |
169 "waiter_test_utils.h", | 173 "waiter_test_utils.h", |
170 "waiter_unittest.cc", | 174 "waiter_unittest.cc", |
171 ] | 175 ] |
172 | 176 |
173 deps = [ | 177 deps = [ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 "../../../third_party/mojo/src/mojo/public/cpp/environment:standalone", | 209 "../../../third_party/mojo/src/mojo/public/cpp/environment:standalone", |
206 "//base", | 210 "//base", |
207 "//base/test:test_support", | 211 "//base/test:test_support", |
208 "//testing/gtest", | 212 "//testing/gtest", |
209 | 213 |
210 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are | 214 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are |
211 # declared in third party only for now. | 215 # declared in third party only for now. |
212 "//third_party/mojo/src/mojo/edk/system", | 216 "//third_party/mojo/src/mojo/edk/system", |
213 ] | 217 ] |
214 } | 218 } |
OLD | NEW |