1 # Copyright 2013 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.
8 ['mojo_shell_debug_url != ""', {
11 'MOJO_SHELL_DEBUG_URL="<(mojo_shell_debug_url)"',
18 'mojo_shell_debug_url%': "",
28 'target_name': 'mojo',
31 'mojo_apps_js_unittests',
33 'mojo_compositor_app',
35 'mojo_common_unittests',
38 'mojo_message_generator',
39 'mojo_native_viewport_service',
40 'mojo_pepper_container_app',
41 'mojo_public_test_utils',
42 'mojo_public_bindings_unittests',
43 'mojo_public_environment_unittests',
44 'mojo_public_system_perftests',
45 'mojo_public_system_unittests',
46 'mojo_public_utility_unittests',
48 'mojo_service_manager',
49 'mojo_service_manager_unittests',
54 'mojo_system_unittests',
68 'target_name': 'mojo_run_all_unittests',
69 'type': 'static_library',
71 '../base/base.gyp:base',
72 '../base/base.gyp:test_support_base',
73 '../testing/gtest.gyp:gtest',
76 'mojo_test_support_impl',
79 'common/test/run_all_unittests.cc',
83 'target_name': 'mojo_run_all_perftests',
84 'type': 'static_library',
86 '../base/base.gyp:test_support_base',
89 'mojo_test_support_impl',
92 'common/test/run_all_perftests.cc',
96 'target_name': 'mojo_system_impl',
97 'type': '<(component)',
99 '../base/base.gyp:base',
100 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
103 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
104 'MOJO_SYSTEM_IMPLEMENTATION',
105 'MOJO_USE_SYSTEM_IMPL',
108 'embedder/embedder.cc',
109 'embedder/embedder.h',
110 'embedder/platform_channel_pair.cc',
111 'embedder/platform_channel_pair.h',
112 'embedder/platform_channel_pair_posix.cc',
113 'embedder/platform_channel_pair_win.cc',
114 'embedder/platform_channel_utils_posix.cc',
115 'embedder/platform_channel_utils_posix.h',
116 'embedder/platform_handle.cc',
117 'embedder/platform_handle.h',
118 'embedder/scoped_platform_handle.h',
121 'system/constants.h',
124 'system/data_pipe.cc',
125 'system/data_pipe.h',
126 'system/data_pipe_consumer_dispatcher.cc',
127 'system/data_pipe_consumer_dispatcher.h',
128 'system/data_pipe_producer_dispatcher.cc',
129 'system/data_pipe_producer_dispatcher.h',
130 'system/dispatcher.cc',
131 'system/dispatcher.h',
132 'system/entrypoints.cc',
133 'system/handle_table.cc',
134 'system/handle_table.h',
135 'system/local_data_pipe.cc',
136 'system/local_data_pipe.h',
137 'system/local_message_pipe_endpoint.cc',
138 'system/local_message_pipe_endpoint.h',
139 'system/mapping_table.cc',
140 'system/mapping_table.h',
143 'system/message_in_transit.cc',
144 'system/message_in_transit.h',
145 'system/message_in_transit_queue.cc',
146 'system/message_in_transit_queue.h',
147 'system/message_pipe.cc',
148 'system/message_pipe.h',
149 'system/message_pipe_dispatcher.cc',
150 'system/message_pipe_dispatcher.h',
151 'system/message_pipe_endpoint.cc',
152 'system/message_pipe_endpoint.h',
153 'system/proxy_message_pipe_endpoint.cc',
154 'system/proxy_message_pipe_endpoint.h',
155 'system/raw_channel.cc',
156 'system/raw_channel.h',
157 'system/raw_channel_posix.cc',
158 'system/raw_channel_win.cc',
159 'system/raw_shared_buffer.cc',
160 'system/raw_shared_buffer.h',
161 'system/raw_shared_buffer_posix.cc',
162 'system/raw_shared_buffer_win.cc',
163 'system/shared_buffer_dispatcher.cc',
164 'system/shared_buffer_dispatcher.h',
165 'system/simple_dispatcher.cc',
166 'system/simple_dispatcher.h',
169 'system/waiter_list.cc',
170 'system/waiter_list.h',
172 # TODO(vtl): It's a little unfortunate that these end up in the same
173 # component as non-test-only code. In the static build, this code should
174 # hopefully be dead-stripped.
175 'embedder/test_embedder.cc',
176 'embedder/test_embedder.h',
178 'all_dependent_settings': {
179 # Ensures that dependent projects import the core functions on Windows.
180 'defines': ['MOJO_USE_SYSTEM_IMPL'],
184 'target_name': 'mojo_system_unittests',
185 'type': 'executable',
187 '../base/base.gyp:base',
188 '../base/base.gyp:run_all_unittests',
189 '../testing/gtest.gyp:gtest',
190 'mojo_common_test_support',
194 'embedder/embedder_unittest.cc',
195 'embedder/platform_channel_pair_posix_unittest.cc',
196 'system/core_unittest.cc',
197 'system/core_test_base.cc',
198 'system/core_test_base.h',
199 'system/data_pipe_unittest.cc',
200 'system/dispatcher_unittest.cc',
201 'system/local_data_pipe_unittest.cc',
202 'system/message_pipe_dispatcher_unittest.cc',
203 'system/message_pipe_unittest.cc',
204 'system/multiprocess_message_pipe_unittest.cc',
205 'system/raw_channel_unittest.cc',
206 'system/raw_shared_buffer_unittest.cc',
207 'system/remote_message_pipe_unittest.cc',
208 'system/shared_buffer_dispatcher_unittest.cc',
209 'system/simple_dispatcher_unittest.cc',
210 'system/test_utils.cc',
211 'system/test_utils.h',
212 'system/waiter_list_unittest.cc',
213 'system/waiter_test_utils.cc',
214 'system/waiter_test_utils.h',
215 'system/waiter_unittest.cc',
219 'target_name': 'mojo_gles2_impl',
220 'type': '<(component)',
222 '../base/base.gyp:base',
223 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
224 '../gpu/gpu.gyp:command_buffer_client',
225 '../gpu/gpu.gyp:command_buffer_common',
226 '../gpu/gpu.gyp:gles2_cmd_helper',
227 '../gpu/gpu.gyp:gles2_implementation',
229 'mojo_gles2_bindings',
230 'mojo_environment_chromium',
234 'MOJO_GLES2_IMPL_IMPLEMENTATION',
237 'gles2/command_buffer_client_impl.cc',
238 'gles2/command_buffer_client_impl.h',
239 'gles2/gles2_impl_export.h',
240 'gles2/gles2_support_impl.cc',
241 'gles2/gles2_support_impl.h',
242 'gles2/gles2_context.cc',
243 'gles2/gles2_context.h',
247 'target_name': 'mojo_test_support_impl',
248 'type': 'static_library',
250 '../base/base.gyp:base',
253 'common/test/test_support_impl.cc',
254 'common/test/test_support_impl.h',
258 'target_name': 'mojo_common_lib',
259 'type': '<(component)',
261 'MOJO_COMMON_IMPLEMENTATION',
264 '../base/base.gyp:base',
265 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
268 'export_dependent_settings': [
269 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
273 'common/common_type_converters.cc',
274 'common/common_type_converters.h',
275 'common/environment_data.cc',
276 'common/environment_data.h',
277 'common/handle_watcher.cc',
278 'common/handle_watcher.h',
279 'common/message_pump_mojo.cc',
280 'common/message_pump_mojo.h',
281 'common/message_pump_mojo_handler.h',
282 'common/mojo_channel_init.cc',
283 'common/mojo_channel_init.h',
284 'common/time_helper.cc',
285 'common/time_helper.h',
289 'target_name': 'mojo_common_test_support',
290 'type': 'static_library',
292 '../base/base.gyp:base',
293 '../base/base.gyp:test_support_base',
294 '../testing/gtest.gyp:gtest',
298 'common/test/multiprocess_test_helper.cc',
299 'common/test/multiprocess_test_helper.h',
300 'common/test/test_utils.h',
301 'common/test/test_utils_posix.cc',
302 'common/test/test_utils_win.cc',
306 'target_name': 'mojo_common_unittests',
307 'type': 'executable',
309 '../base/base.gyp:base',
310 '../base/base.gyp:base_message_loop_tests',
311 '../testing/gtest.gyp:gtest',
313 'mojo_environment_chromium',
315 'mojo_common_test_support',
316 'mojo_public_test_utils',
317 'mojo_run_all_unittests',
320 'common/common_type_converters_unittest.cc',
321 'common/handle_watcher_unittest.cc',
322 'common/message_pump_mojo_unittest.cc',
323 'common/test/multiprocess_test_helper_unittest.cc',
327 'target_name': 'mojo_environment_chromium',
328 'type': 'static_library',
331 'mojo_environment_chromium_impl',
334 'environment/default_async_waiter.cc',
335 'environment/buffer_tls.cc',
336 'environment/environment.cc',
341 'export_dependent_settings': [
342 'mojo_environment_chromium_impl',
346 'target_name': 'mojo_environment_chromium_impl',
347 'type': '<(component)',
349 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
352 '../base/base.gyp:base',
353 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
357 'environment/default_async_waiter_impl.cc',
358 'environment/default_async_waiter_impl.h',
359 'environment/buffer_tls_impl.cc',
360 'environment/buffer_tls_impl.h',
367 'target_name': 'mojo_service_manager',
368 'type': '<(component)',
370 'MOJO_SERVICE_MANAGER_IMPLEMENTATION',
373 '../base/base.gyp:base',
374 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
375 '../net/net.gyp:net',
376 '../url/url.gyp:url_lib',
378 'mojo_environment_chromium',
379 'mojo_shell_bindings',
383 'service_manager/service_loader.h',
384 'service_manager/service_manager.cc',
385 'service_manager/service_manager.h',
386 'service_manager/service_manager_export.h',
388 'export_dependent_settings': [
389 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
390 'mojo_shell_bindings',
394 'target_name': 'mojo_spy',
395 'type': 'static_library',
397 '../base/base.gyp:base',
398 '../base/base.gyp:base_static',
399 '../url/url.gyp:url_lib',
400 'mojo_service_manager',
408 'target_name': 'mojo_shell_lib',
409 'type': 'static_library',
411 '../base/base.gyp:base',
412 '../base/base.gyp:base_static',
413 '../net/net.gyp:net',
414 '../url/url.gyp:url_lib',
416 'mojo_service_manager',
417 'mojo_shell_bindings',
419 'mojo_native_viewport_service',
423 'mojom_base_output_dir': 'mojo',
425 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
427 'shell/app_child_process.cc',
428 'shell/app_child_process.h',
429 'shell/app_child_process.mojom',
430 'shell/app_child_process_host.cc',
431 'shell/app_child_process_host.h',
432 'shell/child_process.cc',
433 'shell/child_process.h',
434 'shell/child_process_host.cc',
435 'shell/child_process_host.h',
438 'shell/dynamic_service_loader.cc',
439 'shell/dynamic_service_loader.h',
440 'shell/dynamic_service_runner.h',
443 'shell/in_process_dynamic_service_runner.cc',
444 'shell/in_process_dynamic_service_runner.h',
445 'shell/keep_alive.cc',
446 'shell/keep_alive.h',
449 'shell/network_delegate.cc',
450 'shell/network_delegate.h',
451 'shell/out_of_process_dynamic_service_runner.cc',
452 'shell/out_of_process_dynamic_service_runner.h',
459 'shell/task_runners.cc',
460 'shell/task_runners.h',
461 'shell/test_child_process.cc',
462 'shell/test_child_process.h',
463 'shell/url_request_context_getter.cc',
464 'shell/url_request_context_getter.h',
468 'target_name': 'mojo_shell',
469 'type': 'executable',
471 '../base/base.gyp:base',
472 '../ui/gl/gl.gyp:gl',
473 '../url/url.gyp:url_lib',
475 'mojo_environment_chromium',
476 'mojo_service_manager',
481 'shell/desktop/mojo_main.cc',
485 'target_name': 'mojo_service_manager_unittests',
486 'type': 'executable',
488 '../base/base.gyp:base',
489 '../testing/gtest.gyp:gtest',
490 '../url/url.gyp:url_lib',
493 'mojo_environment_chromium',
494 'mojo_run_all_unittests',
495 'mojo_service_manager',
499 'mojom_base_output_dir': 'mojo',
501 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
503 'service_manager/service_manager_unittest.cc',
504 'service_manager/test.mojom',
508 'target_name': 'mojo_js_bindings_lib',
509 'type': 'static_library',
511 '../base/base.gyp:base',
512 '../gin/gin.gyp:gin',
513 '../v8/tools/gyp/v8.gyp:v8',
516 'export_dependent_settings': [
517 '../base/base.gyp:base',
518 '../gin/gin.gyp:gin',
522 'bindings/js/core.cc',
523 'bindings/js/core.h',
524 'bindings/js/handle.cc',
525 'bindings/js/handle.h',
526 'bindings/js/support.cc',
527 'bindings/js/support.h',
528 'bindings/js/unicode.cc',
529 'bindings/js/unicode.h',
530 'bindings/js/waiting_callback.cc',
531 'bindings/js/waiting_callback.h',
535 'target_name': 'mojo_js_unittests',
536 'type': 'executable',
538 '../gin/gin.gyp:gin_test',
539 'mojo_js_bindings_lib',
540 'mojo_run_all_unittests',
541 'mojo_public_test_interfaces',
544 'bindings/js/run_js_tests.cc',
548 'target_name': 'mojo_message_generator',
549 'type': 'executable',
551 '../base/base.gyp:base',
552 '../testing/gtest.gyp:gtest',
555 'mojo_environment_chromium',
559 'tools/message_generator.cc',
567 'target_name': 'mojo_native_viewport_java',
570 '../base/base.gyp:base_java',
573 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
575 'includes': [ '../build/java.gypi' ],
578 'target_name': 'mojo_java_set_jni_headers',
581 'jni_gen_package': 'mojo',
582 'jni_generator_ptr_type': 'long',
583 'input_java_class': 'java/util/HashSet.class',
585 'includes': [ '../build/jar_file_jni_generator.gypi' ],
588 'target_name': 'mojo_jni_headers',
591 'mojo_java_set_jni_headers',
594 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java',
595 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
598 'jni_gen_package': 'mojo',
599 'jni_generator_ptr_type': 'long',
601 'includes': [ '../build/jni_generator.gypi' ],
604 'target_name': 'libmojo_shell',
605 'type': 'shared_library',
607 '../base/base.gyp:base',
608 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
609 '../ui/gfx/gfx.gyp:gfx',
610 '../ui/gfx/gfx.gyp:gfx_geometry',
611 '../ui/gl/gl.gyp:gl',
613 'mojo_environment_chromium',
615 'mojo_shell_bindings',
619 'shell/android/library_loader.cc',
620 'shell/android/mojo_main.cc',
621 'shell/android/mojo_main.h',
625 'target_name': 'mojo_shell_apk',
628 '../base/base.gyp:base_java',
629 '../net/net.gyp:net_java',
630 'mojo_native_viewport_java',
634 'apk_name': 'MojoShell',
635 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
636 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
637 'native_lib_target': 'libmojo_shell',
639 'includes': [ '../build/java_apk.gypi' ],
643 ['test_isolation_mode != "noop"', {
646 'target_name': 'mojo_js_unittests_run',
652 '../build/isolate.gypi',
653 'mojo_js_unittests.isolate',
656 'mojo_js_unittests.isolate',