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 # Essential components (and their tests) that are needed to build | 5 # Essential components (and their tests) that are needed to build |
6 # Chrome should be here. Other components that are useful only in | 6 # Chrome should be here. Other components that are useful only in |
7 # Mojo land like mojo_shell should be in mojo.gyp. | 7 # Mojo land like mojo_shell should be in mojo.gyp. |
8 { | 8 { |
9 'includes': [ | 9 'includes': [ |
10 'mojo_public.gypi', | 10 'mojo_public.gypi', |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 '../base/base.gyp:test_support_base', | 80 '../base/base.gyp:test_support_base', |
81 'mojo_system_impl', | 81 'mojo_system_impl', |
82 'mojo_test_support', | 82 'mojo_test_support', |
83 'mojo_test_support_impl', | 83 'mojo_test_support_impl', |
84 ], | 84 ], |
85 'sources': [ | 85 'sources': [ |
86 'common/test/run_all_perftests.cc', | 86 'common/test/run_all_perftests.cc', |
87 ], | 87 ], |
88 }, | 88 }, |
89 { | 89 { |
90 # GN version: //mojo/edk/system | 90 # GN version: //mojo/system |
91 'target_name': 'mojo_system_impl', | 91 'target_name': 'mojo_system_impl', |
92 'type': '<(component)', | 92 'type': '<(component)', |
93 'dependencies': [ | 93 'dependencies': [ |
94 '../base/base.gyp:base', | 94 '../base/base.gyp:base', |
95 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 95 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
96 ], | 96 ], |
97 'defines': [ | 97 'defines': [ |
98 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', | 98 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', |
99 'MOJO_SYSTEM_IMPLEMENTATION', | 99 'MOJO_SYSTEM_IMPLEMENTATION', |
100 'MOJO_USE_SYSTEM_IMPL', | 100 'MOJO_USE_SYSTEM_IMPL', |
101 ], | 101 ], |
102 'sources': [ | 102 'sources': [ |
103 'edk/embedder/channel_init.cc', | 103 'embedder/channel_init.cc', |
104 'edk/embedder/channel_init.h', | 104 'embedder/channel_init.h', |
105 'edk/embedder/embedder.cc', | 105 'embedder/embedder.cc', |
106 'edk/embedder/embedder.h', | 106 'embedder/embedder.h', |
107 'edk/embedder/platform_channel_pair.cc', | 107 'embedder/platform_channel_pair.cc', |
108 'edk/embedder/platform_channel_pair.h', | 108 'embedder/platform_channel_pair.h', |
109 'edk/embedder/platform_channel_pair_posix.cc', | 109 'embedder/platform_channel_pair_posix.cc', |
110 'edk/embedder/platform_channel_pair_win.cc', | 110 'embedder/platform_channel_pair_win.cc', |
111 'edk/embedder/platform_channel_utils_posix.cc', | 111 'embedder/platform_channel_utils_posix.cc', |
112 'edk/embedder/platform_channel_utils_posix.h', | 112 'embedder/platform_channel_utils_posix.h', |
113 'edk/embedder/platform_handle.cc', | 113 'embedder/platform_handle.cc', |
114 'edk/embedder/platform_handle.h', | 114 'embedder/platform_handle.h', |
115 'edk/embedder/platform_handle_utils.h', | 115 'embedder/platform_handle_utils.h', |
116 'edk/embedder/platform_handle_utils_posix.cc', | 116 'embedder/platform_handle_utils_posix.cc', |
117 'edk/embedder/platform_handle_utils_win.cc', | 117 'embedder/platform_handle_utils_win.cc', |
118 'edk/embedder/platform_handle_vector.h', | 118 'embedder/platform_handle_vector.h', |
119 'edk/embedder/platform_shared_buffer.h', | 119 'embedder/platform_shared_buffer.h', |
120 'edk/embedder/platform_support.h', | 120 'embedder/platform_support.h', |
121 'edk/embedder/scoped_platform_handle.h', | 121 'embedder/scoped_platform_handle.h', |
122 'edk/embedder/simple_platform_shared_buffer.cc', | 122 'embedder/simple_platform_shared_buffer.cc', |
123 'edk/embedder/simple_platform_shared_buffer.h', | 123 'embedder/simple_platform_shared_buffer.h', |
124 'edk/embedder/simple_platform_shared_buffer_posix.cc', | 124 'embedder/simple_platform_shared_buffer_posix.cc', |
125 'edk/embedder/simple_platform_shared_buffer_win.cc', | 125 'embedder/simple_platform_shared_buffer_win.cc', |
126 'edk/embedder/simple_platform_support.cc', | 126 'embedder/simple_platform_support.cc', |
127 'edk/embedder/simple_platform_support.h', | 127 'embedder/simple_platform_support.h', |
128 'edk/system/channel.cc', | 128 'system/channel.cc', |
129 'edk/system/channel.h', | 129 'system/channel.h', |
130 'edk/system/channel_endpoint.cc', | 130 'system/channel_endpoint.cc', |
131 'edk/system/channel_endpoint.h', | 131 'system/channel_endpoint.h', |
132 'edk/system/constants.h', | 132 'system/constants.h', |
133 'edk/system/core.cc', | 133 'system/core.cc', |
134 'edk/system/core.h', | 134 'system/core.h', |
135 'edk/system/data_pipe.cc', | 135 'system/data_pipe.cc', |
136 'edk/system/data_pipe.h', | 136 'system/data_pipe.h', |
137 'edk/system/data_pipe_consumer_dispatcher.cc', | 137 'system/data_pipe_consumer_dispatcher.cc', |
138 'edk/system/data_pipe_consumer_dispatcher.h', | 138 'system/data_pipe_consumer_dispatcher.h', |
139 'edk/system/data_pipe_producer_dispatcher.cc', | 139 'system/data_pipe_producer_dispatcher.cc', |
140 'edk/system/data_pipe_producer_dispatcher.h', | 140 'system/data_pipe_producer_dispatcher.h', |
141 'edk/system/dispatcher.cc', | 141 'system/dispatcher.cc', |
142 'edk/system/dispatcher.h', | 142 'system/dispatcher.h', |
143 'edk/system/entrypoints.cc', | 143 'system/entrypoints.cc', |
144 'edk/system/handle_signals_state.h', | 144 'system/handle_signals_state.h', |
145 'edk/system/handle_table.cc', | 145 'system/handle_table.cc', |
146 'edk/system/handle_table.h', | 146 'system/handle_table.h', |
147 'edk/system/local_data_pipe.cc', | 147 'system/local_data_pipe.cc', |
148 'edk/system/local_data_pipe.h', | 148 'system/local_data_pipe.h', |
149 'edk/system/local_message_pipe_endpoint.cc', | 149 'system/local_message_pipe_endpoint.cc', |
150 'edk/system/local_message_pipe_endpoint.h', | 150 'system/local_message_pipe_endpoint.h', |
151 'edk/system/mapping_table.cc', | 151 'system/mapping_table.cc', |
152 'edk/system/mapping_table.h', | 152 'system/mapping_table.h', |
153 'edk/system/memory.cc', | 153 'system/memory.cc', |
154 'edk/system/memory.h', | 154 'system/memory.h', |
155 'edk/system/message_in_transit.cc', | 155 'system/message_in_transit.cc', |
156 'edk/system/message_in_transit.h', | 156 'system/message_in_transit.h', |
157 'edk/system/message_in_transit_queue.cc', | 157 'system/message_in_transit_queue.cc', |
158 'edk/system/message_in_transit_queue.h', | 158 'system/message_in_transit_queue.h', |
159 'edk/system/message_pipe.cc', | 159 'system/message_pipe.cc', |
160 'edk/system/message_pipe.h', | 160 'system/message_pipe.h', |
161 'edk/system/message_pipe_dispatcher.cc', | 161 'system/message_pipe_dispatcher.cc', |
162 'edk/system/message_pipe_dispatcher.h', | 162 'system/message_pipe_dispatcher.h', |
163 'edk/system/message_pipe_endpoint.cc', | 163 'system/message_pipe_endpoint.cc', |
164 'edk/system/message_pipe_endpoint.h', | 164 'system/message_pipe_endpoint.h', |
165 'edk/system/options_validation.h', | 165 'system/options_validation.h', |
166 'edk/system/platform_handle_dispatcher.cc', | 166 'system/platform_handle_dispatcher.cc', |
167 'edk/system/platform_handle_dispatcher.h', | 167 'system/platform_handle_dispatcher.h', |
168 'edk/system/proxy_message_pipe_endpoint.cc', | 168 'system/proxy_message_pipe_endpoint.cc', |
169 'edk/system/proxy_message_pipe_endpoint.h', | 169 'system/proxy_message_pipe_endpoint.h', |
170 'edk/system/raw_channel.cc', | 170 'system/raw_channel.cc', |
171 'edk/system/raw_channel.h', | 171 'system/raw_channel.h', |
172 'edk/system/raw_channel_posix.cc', | 172 'system/raw_channel_posix.cc', |
173 'edk/system/raw_channel_win.cc', | 173 'system/raw_channel_win.cc', |
174 'edk/system/shared_buffer_dispatcher.cc', | 174 'system/shared_buffer_dispatcher.cc', |
175 'edk/system/shared_buffer_dispatcher.h', | 175 'system/shared_buffer_dispatcher.h', |
176 'edk/system/simple_dispatcher.cc', | 176 'system/simple_dispatcher.cc', |
177 'edk/system/simple_dispatcher.h', | 177 'system/simple_dispatcher.h', |
178 'edk/system/transport_data.cc', | 178 'system/transport_data.cc', |
179 'edk/system/transport_data.h', | 179 'system/transport_data.h', |
180 'edk/system/waiter.cc', | 180 'system/waiter.cc', |
181 'edk/system/waiter.h', | 181 'system/waiter.h', |
182 'edk/system/waiter_list.cc', | 182 'system/waiter_list.cc', |
183 'edk/system/waiter_list.h', | 183 'system/waiter_list.h', |
184 # Test-only code: | 184 # Test-only code: |
185 # TODO(vtl): It's a little unfortunate that these end up in the same | 185 # TODO(vtl): It's a little unfortunate that these end up in the same |
186 # component as non-test-only code. In the static build, this code should | 186 # component as non-test-only code. In the static build, this code should |
187 # hopefully be dead-stripped. | 187 # hopefully be dead-stripped. |
188 'edk/embedder/test_embedder.cc', | 188 'embedder/test_embedder.cc', |
189 'edk/embedder/test_embedder.h', | 189 'embedder/test_embedder.h', |
190 ], | 190 ], |
191 'all_dependent_settings': { | 191 'all_dependent_settings': { |
192 # Ensures that dependent projects import the core functions on Windows. | 192 # Ensures that dependent projects import the core functions on Windows. |
193 'defines': ['MOJO_USE_SYSTEM_IMPL'], | 193 'defines': ['MOJO_USE_SYSTEM_IMPL'], |
194 } | 194 } |
195 }, | 195 }, |
196 { | 196 { |
197 # GN version: //mojo/edk/system:mojo_system_unittests | 197 # GN version: //mojo/system:mojo_system_unittests |
198 'target_name': 'mojo_system_unittests', | 198 'target_name': 'mojo_system_unittests', |
199 'type': 'executable', | 199 'type': 'executable', |
200 'dependencies': [ | 200 'dependencies': [ |
201 '../base/base.gyp:base', | 201 '../base/base.gyp:base', |
202 '../testing/gtest.gyp:gtest', | 202 '../testing/gtest.gyp:gtest', |
203 'mojo_common_test_support', | 203 'mojo_common_test_support', |
204 'mojo_system_impl', | 204 'mojo_system_impl', |
205 ], | 205 ], |
206 'sources': [ | 206 'sources': [ |
207 'edk/embedder/embedder_unittest.cc', | 207 'embedder/embedder_unittest.cc', |
208 'edk/embedder/platform_channel_pair_posix_unittest.cc', | 208 'embedder/platform_channel_pair_posix_unittest.cc', |
209 'edk/embedder/simple_platform_shared_buffer_unittest.cc', | 209 'embedder/simple_platform_shared_buffer_unittest.cc', |
210 'edk/system/channel_unittest.cc', | 210 'system/channel_unittest.cc', |
211 'edk/system/core_unittest.cc', | 211 'system/core_unittest.cc', |
212 'edk/system/core_test_base.cc', | 212 'system/core_test_base.cc', |
213 'edk/system/core_test_base.h', | 213 'system/core_test_base.h', |
214 'edk/system/data_pipe_unittest.cc', | 214 'system/data_pipe_unittest.cc', |
215 'edk/system/dispatcher_unittest.cc', | 215 'system/dispatcher_unittest.cc', |
216 'edk/system/local_data_pipe_unittest.cc', | 216 'system/local_data_pipe_unittest.cc', |
217 'edk/system/memory_unittest.cc', | 217 'system/memory_unittest.cc', |
218 'edk/system/message_pipe_dispatcher_unittest.cc', | 218 'system/message_pipe_dispatcher_unittest.cc', |
219 'edk/system/message_pipe_test_utils.h', | 219 'system/message_pipe_test_utils.h', |
220 'edk/system/message_pipe_test_utils.cc', | 220 'system/message_pipe_test_utils.cc', |
221 'edk/system/message_pipe_unittest.cc', | 221 'system/message_pipe_unittest.cc', |
222 'edk/system/multiprocess_message_pipe_unittest.cc', | 222 'system/multiprocess_message_pipe_unittest.cc', |
223 'edk/system/options_validation_unittest.cc', | 223 'system/options_validation_unittest.cc', |
224 'edk/system/platform_handle_dispatcher_unittest.cc', | 224 'system/platform_handle_dispatcher_unittest.cc', |
225 'edk/system/raw_channel_unittest.cc', | 225 'system/raw_channel_unittest.cc', |
226 'edk/system/remote_message_pipe_unittest.cc', | 226 'system/remote_message_pipe_unittest.cc', |
227 'edk/system/run_all_unittests.cc', | 227 'system/run_all_unittests.cc', |
228 'edk/system/shared_buffer_dispatcher_unittest.cc', | 228 'system/shared_buffer_dispatcher_unittest.cc', |
229 'edk/system/simple_dispatcher_unittest.cc', | 229 'system/simple_dispatcher_unittest.cc', |
230 'edk/system/test_utils.cc', | 230 'system/test_utils.cc', |
231 'edk/system/test_utils.h', | 231 'system/test_utils.h', |
232 'edk/system/waiter_list_unittest.cc', | 232 'system/waiter_list_unittest.cc', |
233 'edk/system/waiter_test_utils.cc', | 233 'system/waiter_test_utils.cc', |
234 'edk/system/waiter_test_utils.h', | 234 'system/waiter_test_utils.h', |
235 'edk/system/waiter_unittest.cc', | 235 'system/waiter_unittest.cc', |
236 ], | 236 ], |
237 'conditions': [ | 237 'conditions': [ |
238 ['OS=="ios"', { | 238 ['OS=="ios"', { |
239 'sources!': [ | 239 'sources!': [ |
240 'edk/embedder/embedder_unittest.cc', | 240 'embedder/embedder_unittest.cc', |
241 'edk/system/multiprocess_message_pipe_unittest.cc', | 241 'system/multiprocess_message_pipe_unittest.cc', |
242 ], | 242 ], |
243 }], | 243 }], |
244 ], | 244 ], |
245 }, | 245 }, |
246 { | 246 { |
247 # GN version: //mojo/edk/system:mojo_message_pipe_perftests | 247 # GN version: //mojo/system:mojo_message_pipe_perftests |
248 'target_name': 'mojo_message_pipe_perftests', | 248 'target_name': 'mojo_message_pipe_perftests', |
249 'type': 'executable', | 249 'type': 'executable', |
250 'dependencies': [ | 250 'dependencies': [ |
251 '../base/base.gyp:base', | 251 '../base/base.gyp:base', |
252 '../base/base.gyp:test_support_base', | 252 '../base/base.gyp:test_support_base', |
253 '../base/base.gyp:test_support_perf', | 253 '../base/base.gyp:test_support_perf', |
254 '../testing/gtest.gyp:gtest', | 254 '../testing/gtest.gyp:gtest', |
255 'mojo_common_test_support', | 255 'mojo_common_test_support', |
256 'mojo_environment_chromium', | 256 'mojo_environment_chromium', |
257 'mojo_system_impl', | 257 'mojo_system_impl', |
258 ], | 258 ], |
259 'sources': [ | 259 'sources': [ |
260 'edk/system/message_pipe_perftest.cc', | 260 'system/message_pipe_perftest.cc', |
261 'edk/system/message_pipe_test_utils.h', | 261 'system/message_pipe_test_utils.h', |
262 'edk/system/message_pipe_test_utils.cc', | 262 'system/message_pipe_test_utils.cc', |
263 'edk/system/test_utils.cc', | 263 'system/test_utils.cc', |
264 'edk/system/test_utils.h', | 264 'system/test_utils.h', |
265 ], | 265 ], |
266 }, | 266 }, |
267 { | 267 { |
268 # GN version: //mojo/common/test:test_support_impl | 268 # GN version: //mojo/common/test:test_support_impl |
269 'target_name': 'mojo_test_support_impl', | 269 'target_name': 'mojo_test_support_impl', |
270 'type': 'static_library', | 270 'type': 'static_library', |
271 'dependencies': [ | 271 'dependencies': [ |
272 '../base/base.gyp:base', | 272 '../base/base.gyp:base', |
273 ], | 273 ], |
274 'sources': [ | 274 'sources': [ |
(...skipping 25 matching lines...) Expand all Loading... |
300 'common/handle_watcher.cc', | 300 'common/handle_watcher.cc', |
301 'common/handle_watcher.h', | 301 'common/handle_watcher.h', |
302 'common/message_pump_mojo.cc', | 302 'common/message_pump_mojo.cc', |
303 'common/message_pump_mojo.h', | 303 'common/message_pump_mojo.h', |
304 'common/message_pump_mojo_handler.h', | 304 'common/message_pump_mojo_handler.h', |
305 'common/time_helper.cc', | 305 'common/time_helper.cc', |
306 'common/time_helper.h', | 306 'common/time_helper.h', |
307 ], | 307 ], |
308 }, | 308 }, |
309 { | 309 { |
310 # GN version: //mojo/edk/test:test_support | 310 # GN version: //mojo/common/test:test_support |
311 'target_name': 'mojo_common_test_support', | 311 'target_name': 'mojo_common_test_support', |
312 'type': 'static_library', | 312 'type': 'static_library', |
313 'dependencies': [ | 313 'dependencies': [ |
314 '../base/base.gyp:base', | 314 '../base/base.gyp:base', |
315 '../base/base.gyp:test_support_base', | 315 '../base/base.gyp:test_support_base', |
316 '../testing/gtest.gyp:gtest', | 316 '../testing/gtest.gyp:gtest', |
317 'mojo_system_impl', | 317 'mojo_system_impl', |
318 ], | 318 ], |
319 'sources': [ | 319 'sources': [ |
320 'edk/test/multiprocess_test_helper.cc', | 320 'common/test/multiprocess_test_helper.cc', |
321 'edk/test/multiprocess_test_helper.h', | 321 'common/test/multiprocess_test_helper.h', |
322 'edk/test/test_utils.h', | 322 'common/test/test_utils.h', |
323 'edk/test/test_utils_posix.cc', | 323 'common/test/test_utils_posix.cc', |
324 'edk/test/test_utils_win.cc', | 324 'common/test/test_utils_win.cc', |
325 ], | 325 ], |
326 'conditions': [ | 326 'conditions': [ |
327 ['OS=="ios"', { | 327 ['OS=="ios"', { |
328 'sources!': [ | 328 'sources!': [ |
329 'edk/test/multiprocess_test_helper.cc', | 329 'common/test/multiprocess_test_helper.cc', |
330 ], | 330 ], |
331 }], | 331 }], |
332 ], | 332 ], |
333 }, | 333 }, |
334 { | 334 { |
335 # GN version: //mojo/common:mojo_common_unittests | 335 # GN version: //mojo/common:mojo_common_unittests |
336 'target_name': 'mojo_common_unittests', | 336 'target_name': 'mojo_common_unittests', |
337 'type': 'executable', | 337 'type': 'executable', |
338 'dependencies': [ | 338 'dependencies': [ |
339 '../base/base.gyp:base', | 339 '../base/base.gyp:base', |
340 '../base/base.gyp:base_message_loop_tests', | 340 '../base/base.gyp:base_message_loop_tests', |
341 '../testing/gtest.gyp:gtest', | 341 '../testing/gtest.gyp:gtest', |
342 '../url/url.gyp:url_lib', | 342 '../url/url.gyp:url_lib', |
343 'mojo_cpp_bindings', | 343 'mojo_cpp_bindings', |
344 'mojo_environment_chromium', | 344 'mojo_environment_chromium', |
345 'mojo_common_lib', | 345 'mojo_common_lib', |
346 'mojo_common_test_support', | 346 'mojo_common_test_support', |
347 'mojo_public_test_utils', | 347 'mojo_public_test_utils', |
348 'mojo_run_all_unittests', | 348 'mojo_run_all_unittests', |
349 ], | 349 ], |
350 'sources': [ | 350 'sources': [ |
351 'common/common_type_converters_unittest.cc', | 351 'common/common_type_converters_unittest.cc', |
352 'common/handle_watcher_unittest.cc', | 352 'common/handle_watcher_unittest.cc', |
353 'common/message_pump_mojo_unittest.cc', | 353 'common/message_pump_mojo_unittest.cc', |
354 'edk/test/multiprocess_test_helper_unittest.cc', | 354 'common/test/multiprocess_test_helper_unittest.cc', |
355 ], | 355 ], |
356 'conditions': [ | 356 'conditions': [ |
357 ['OS=="ios"', { | 357 ['OS=="ios"', { |
358 'sources!': [ | 358 'sources!': [ |
359 'edk/test/multiprocess_test_helper_unittest.cc', | 359 'common/test/multiprocess_test_helper_unittest.cc', |
360 ], | 360 ], |
361 }], | 361 }], |
362 ], | 362 ], |
363 }, | 363 }, |
364 { | 364 { |
365 # GN version: //mojo/environment:chromium | 365 # GN version: //mojo/environment:chromium |
366 'target_name': 'mojo_environment_chromium', | 366 'target_name': 'mojo_environment_chromium', |
367 'type': 'static_library', | 367 'type': 'static_library', |
368 'dependencies': [ | 368 'dependencies': [ |
369 'mojo_environment_chromium_impl', | 369 'mojo_environment_chromium_impl', |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 '../build/isolate.gypi', | 651 '../build/isolate.gypi', |
652 ], | 652 ], |
653 'sources': [ | 653 'sources': [ |
654 'mojo_js_unittests.isolate', | 654 'mojo_js_unittests.isolate', |
655 ], | 655 ], |
656 }, | 656 }, |
657 ], | 657 ], |
658 }], | 658 }], |
659 ] | 659 ] |
660 } | 660 } |
OLD | NEW |