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',
32 'mojo_compositor_app',
34 'mojo_common_unittests',
39 'mojo_message_generator',
40 'mojo_native_viewport_service',
41 'mojo_pepper_container_app',
42 'mojo_public_test_utils',
43 'mojo_public_bindings_unittests',
44 'mojo_public_environment_unittests',
45 'mojo_public_system_perftests',
46 'mojo_public_system_unittests',
47 'mojo_public_utility_unittests',
49 'mojo_service_manager',
50 'mojo_service_manager_unittests',
55 'mojo_system_unittests',
63 'mojo_sample_view_manager_app',
65 'mojo_view_manager_unittests',
72 'libmojo_system_java',
79 'target_name': 'mojo_external_service_bindings',
80 'type': 'static_library',
82 'shell/external_service.mojom',
85 'mojom_base_output_dir': 'mojo',
87 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
88 'export_dependent_settings': [
96 'target_name': 'mojo_run_all_unittests',
97 'type': 'static_library',
99 '../base/base.gyp:base',
100 '../base/base.gyp:test_support_base',
101 '../testing/gtest.gyp:gtest',
104 'mojo_test_support_impl',
107 'common/test/run_all_unittests.cc',
111 'target_name': 'mojo_run_all_perftests',
112 'type': 'static_library',
114 '../base/base.gyp:test_support_base',
117 'mojo_test_support_impl',
120 'common/test/run_all_perftests.cc',
124 'target_name': 'mojo_system_impl',
125 'type': '<(component)',
127 '../base/base.gyp:base',
128 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
131 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
132 'MOJO_SYSTEM_IMPLEMENTATION',
133 'MOJO_USE_SYSTEM_IMPL',
136 'embedder/embedder.cc',
137 'embedder/embedder.h',
138 'embedder/platform_channel_pair.cc',
139 'embedder/platform_channel_pair.h',
140 'embedder/platform_channel_pair_posix.cc',
141 'embedder/platform_channel_pair_win.cc',
142 'embedder/platform_channel_utils_posix.cc',
143 'embedder/platform_channel_utils_posix.h',
144 'embedder/platform_handle.cc',
145 'embedder/platform_handle.h',
146 'embedder/scoped_platform_handle.h',
149 'system/constants.h',
152 'system/data_pipe.cc',
153 'system/data_pipe.h',
154 'system/data_pipe_consumer_dispatcher.cc',
155 'system/data_pipe_consumer_dispatcher.h',
156 'system/data_pipe_producer_dispatcher.cc',
157 'system/data_pipe_producer_dispatcher.h',
158 'system/dispatcher.cc',
159 'system/dispatcher.h',
160 'system/entrypoints.cc',
161 'system/handle_table.cc',
162 'system/handle_table.h',
163 'system/local_data_pipe.cc',
164 'system/local_data_pipe.h',
165 'system/local_message_pipe_endpoint.cc',
166 'system/local_message_pipe_endpoint.h',
167 'system/mapping_table.cc',
168 'system/mapping_table.h',
171 'system/message_in_transit.cc',
172 'system/message_in_transit.h',
173 'system/message_in_transit_queue.cc',
174 'system/message_in_transit_queue.h',
175 'system/message_pipe.cc',
176 'system/message_pipe.h',
177 'system/message_pipe_dispatcher.cc',
178 'system/message_pipe_dispatcher.h',
179 'system/message_pipe_endpoint.cc',
180 'system/message_pipe_endpoint.h',
181 'system/proxy_message_pipe_endpoint.cc',
182 'system/proxy_message_pipe_endpoint.h',
183 'system/raw_channel.cc',
184 'system/raw_channel.h',
185 'system/raw_channel_posix.cc',
186 'system/raw_channel_win.cc',
187 'system/raw_shared_buffer.cc',
188 'system/raw_shared_buffer.h',
189 'system/raw_shared_buffer_posix.cc',
190 'system/raw_shared_buffer_win.cc',
191 'system/shared_buffer_dispatcher.cc',
192 'system/shared_buffer_dispatcher.h',
193 'system/simple_dispatcher.cc',
194 'system/simple_dispatcher.h',
197 'system/waiter_list.cc',
198 'system/waiter_list.h',
200 # TODO(vtl): It's a little unfortunate that these end up in the same
201 # component as non-test-only code. In the static build, this code should
202 # hopefully be dead-stripped.
203 'embedder/test_embedder.cc',
204 'embedder/test_embedder.h',
206 'all_dependent_settings': {
207 # Ensures that dependent projects import the core functions on Windows.
208 'defines': ['MOJO_USE_SYSTEM_IMPL'],
212 'target_name': 'mojo_system_unittests',
213 'type': 'executable',
215 '../base/base.gyp:base',
216 '../base/base.gyp:run_all_unittests',
217 '../testing/gtest.gyp:gtest',
218 'mojo_common_test_support',
222 'embedder/embedder_unittest.cc',
223 'embedder/platform_channel_pair_posix_unittest.cc',
224 'system/channel_unittest.cc',
225 'system/core_unittest.cc',
226 'system/core_test_base.cc',
227 'system/core_test_base.h',
228 'system/data_pipe_unittest.cc',
229 'system/dispatcher_unittest.cc',
230 'system/local_data_pipe_unittest.cc',
231 'system/message_pipe_dispatcher_unittest.cc',
232 'system/message_pipe_unittest.cc',
233 'system/multiprocess_message_pipe_unittest.cc',
234 'system/raw_channel_unittest.cc',
235 'system/raw_shared_buffer_unittest.cc',
236 'system/remote_message_pipe_unittest.cc',
237 'system/shared_buffer_dispatcher_unittest.cc',
238 'system/simple_dispatcher_unittest.cc',
239 'system/test_utils.cc',
240 'system/test_utils.h',
241 'system/waiter_list_unittest.cc',
242 'system/waiter_test_utils.cc',
243 'system/waiter_test_utils.h',
244 'system/waiter_unittest.cc',
248 'target_name': 'mojo_gles2_impl',
249 'type': '<(component)',
251 '../base/base.gyp:base',
252 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
253 '../gpu/gpu.gyp:command_buffer_client',
254 '../gpu/gpu.gyp:command_buffer_common',
255 '../gpu/gpu.gyp:gles2_cmd_helper',
256 '../gpu/gpu.gyp:gles2_implementation',
258 'mojo_gles2_bindings',
259 'mojo_environment_chromium',
263 'MOJO_GLES2_IMPL_IMPLEMENTATION',
266 'gles2/command_buffer_client_impl.cc',
267 'gles2/command_buffer_client_impl.h',
268 'gles2/gles2_impl_export.h',
269 'gles2/gles2_support_impl.cc',
270 'gles2/gles2_support_impl.h',
271 'gles2/gles2_context.cc',
272 'gles2/gles2_context.h',
276 'target_name': 'mojo_test_support_impl',
277 'type': 'static_library',
279 '../base/base.gyp:base',
282 'common/test/test_support_impl.cc',
283 'common/test/test_support_impl.h',
287 'target_name': 'mojo_common_lib',
288 'type': '<(component)',
290 'MOJO_COMMON_IMPLEMENTATION',
293 '../base/base.gyp:base',
294 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
297 'export_dependent_settings': [
298 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
302 'common/channel_init.cc',
303 'common/channel_init.h',
304 'common/common_type_converters.cc',
305 'common/common_type_converters.h',
306 'common/environment_data.cc',
307 'common/environment_data.h',
308 'common/handle_watcher.cc',
309 'common/handle_watcher.h',
310 'common/message_pump_mojo.cc',
311 'common/message_pump_mojo.h',
312 'common/message_pump_mojo_handler.h',
313 'common/time_helper.cc',
314 'common/time_helper.h',
318 'target_name': 'mojo_common_test_support',
319 'type': 'static_library',
321 '../base/base.gyp:base',
322 '../base/base.gyp:test_support_base',
323 '../testing/gtest.gyp:gtest',
327 'common/test/multiprocess_test_helper.cc',
328 'common/test/multiprocess_test_helper.h',
329 'common/test/test_utils.h',
330 'common/test/test_utils_posix.cc',
331 'common/test/test_utils_win.cc',
335 'target_name': 'mojo_common_unittests',
336 'type': 'executable',
338 '../base/base.gyp:base',
339 '../base/base.gyp:base_message_loop_tests',
340 '../testing/gtest.gyp:gtest',
342 'mojo_environment_chromium',
344 'mojo_common_test_support',
345 'mojo_public_test_utils',
346 'mojo_run_all_unittests',
349 'common/common_type_converters_unittest.cc',
350 'common/handle_watcher_unittest.cc',
351 'common/message_pump_mojo_unittest.cc',
352 'common/test/multiprocess_test_helper_unittest.cc',
356 'target_name': 'mojo_environment_chromium',
357 'type': 'static_library',
360 'mojo_environment_chromium_impl',
363 'environment/default_async_waiter.cc',
364 'environment/buffer_tls.cc',
365 'environment/environment.cc',
370 'export_dependent_settings': [
371 'mojo_environment_chromium_impl',
375 'target_name': 'mojo_environment_chromium_impl',
376 'type': '<(component)',
378 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
381 '../base/base.gyp:base',
382 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
386 'environment/default_async_waiter_impl.cc',
387 'environment/default_async_waiter_impl.h',
388 'environment/buffer_tls_impl.cc',
389 'environment/buffer_tls_impl.h',
396 'target_name': 'mojo_service_manager',
397 'type': '<(component)',
399 'MOJO_SERVICE_MANAGER_IMPLEMENTATION',
402 '../base/base.gyp:base',
403 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
404 '../net/net.gyp:net',
405 '../url/url.gyp:url_lib',
407 'mojo_environment_chromium',
408 'mojo_shell_bindings',
412 'service_manager/service_loader.h',
413 'service_manager/service_manager.cc',
414 'service_manager/service_manager.h',
415 'service_manager/service_manager_export.h',
417 'export_dependent_settings': [
418 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
419 'mojo_shell_bindings',
423 'target_name': 'mojo_spy',
424 'type': 'static_library',
426 '../base/base.gyp:base',
427 '../base/base.gyp:base_static',
428 '../net/net.gyp:http_server',
429 '../url/url.gyp:url_lib',
430 'mojo_service_manager',
435 'spy/websocket_server.cc',
436 'spy/websocket_server.h',
440 'target_name': 'mojo_shell_lib',
441 'type': 'static_library',
443 '../base/base.gyp:base',
444 '../base/base.gyp:base_static',
445 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
446 '../net/net.gyp:net',
447 '../url/url.gyp:url_lib',
448 'mojo_external_service_bindings',
450 'mojo_service_manager',
451 'mojo_shell_bindings',
453 'mojo_native_viewport_service',
457 'mojom_base_output_dir': 'mojo',
459 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
461 'shell/app_child_process.cc',
462 'shell/app_child_process.h',
463 'shell/app_child_process.mojom',
464 'shell/app_child_process_host.cc',
465 'shell/app_child_process_host.h',
466 'shell/child_process.cc',
467 'shell/child_process.h',
468 'shell/child_process_host.cc',
469 'shell/child_process_host.h',
472 'shell/dbus_service_loader_linux.cc',
473 'shell/dbus_service_loader_linux.h',
474 'shell/dynamic_service_loader.cc',
475 'shell/dynamic_service_loader.h',
476 'shell/dynamic_service_runner.h',
479 'shell/in_process_dynamic_service_runner.cc',
480 'shell/in_process_dynamic_service_runner.h',
481 'shell/keep_alive.cc',
482 'shell/keep_alive.h',
485 'shell/network_delegate.cc',
486 'shell/network_delegate.h',
487 'shell/out_of_process_dynamic_service_runner.cc',
488 'shell/out_of_process_dynamic_service_runner.h',
495 'shell/task_runners.cc',
496 'shell/task_runners.h',
497 'shell/test_child_process.cc',
498 'shell/test_child_process.h',
499 'shell/url_request_context_getter.cc',
500 'shell/url_request_context_getter.h',
505 '../build/linux/system.gyp:dbus',
506 '../dbus/dbus.gyp:dbus',
511 # These are only necessary as long as we hard code use of ViewManager.
512 '../skia/skia.gyp:skia',
520 'target_name': 'mojo_shell_test_support',
521 'type': 'static_library',
523 '../base/base.gyp:base',
524 '../base/base.gyp:base_static',
525 '../url/url.gyp:url_lib',
526 'mojo_service_manager',
531 'shell/shell_test_helper.cc',
532 'shell/shell_test_helper.h',
536 'target_name': 'mojo_shell',
537 'type': 'executable',
539 '../base/base.gyp:base',
540 '../ui/gl/gl.gyp:gl',
541 '../url/url.gyp:url_lib',
543 'mojo_environment_chromium',
544 'mojo_service_manager',
549 'shell/desktop/mojo_main.cc',
553 'target_name': 'mojo_service_manager_unittests',
554 'type': 'executable',
556 '../base/base.gyp:base',
557 '../testing/gtest.gyp:gtest',
558 '../url/url.gyp:url_lib',
561 'mojo_environment_chromium',
562 'mojo_run_all_unittests',
563 'mojo_service_manager',
567 'mojom_base_output_dir': 'mojo',
569 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
571 'service_manager/service_manager_unittest.cc',
572 'service_manager/test.mojom',
576 'target_name': 'mojo_js_bindings_lib',
577 'type': 'static_library',
579 '../base/base.gyp:base',
580 '../gin/gin.gyp:gin',
581 '../v8/tools/gyp/v8.gyp:v8',
584 'export_dependent_settings': [
585 '../base/base.gyp:base',
586 '../gin/gin.gyp:gin',
590 'bindings/js/core.cc',
591 'bindings/js/core.h',
592 'bindings/js/handle.cc',
593 'bindings/js/handle.h',
594 'bindings/js/support.cc',
595 'bindings/js/support.h',
596 'bindings/js/unicode.cc',
597 'bindings/js/unicode.h',
598 'bindings/js/waiting_callback.cc',
599 'bindings/js/waiting_callback.h',
603 'target_name': 'mojo_js_unittests',
604 'type': 'executable',
606 '../gin/gin.gyp:gin_test',
607 'mojo_common_test_support',
608 'mojo_js_bindings_lib',
609 'mojo_run_all_unittests',
610 'mojo_public_test_interfaces',
613 'bindings/js/run_js_tests.cc',
617 'target_name': 'mojo_message_generator',
618 'type': 'executable',
620 '../base/base.gyp:base',
621 '../testing/gtest.gyp:gtest',
624 'mojo_environment_chromium',
628 'tools/message_generator.cc',
636 'target_name': 'mojo_jni_headers',
639 'mojo_java_set_jni_headers',
642 'android/javatests/src/org/chromium/mojo/system/CoreTest.java',
643 'android/system/src/org/chromium/mojo/system/CoreImpl.java',
644 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java',
645 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
648 'jni_gen_package': 'mojo',
649 'jni_generator_ptr_type': 'long',
651 'includes': [ '../build/jni_generator.gypi' ],
654 'target_name': 'mojo_system_java',
657 '../base/base.gyp:base_java',
661 'java_in_dir': '<(DEPTH)/mojo/android/system',
663 'includes': [ '../build/java.gypi' ],
666 'target_name': 'libmojo_system_java',
667 'type': 'static_library',
669 '../base/base.gyp:base',
670 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
672 'mojo_environment_chromium',
674 'mojo_shell_bindings',
678 'android/system/core_impl.cc',
679 'android/system/core_impl.h',
683 'target_name': 'libmojo_java_unittest',
684 'type': 'shared_library',
686 '../base/base.gyp:base',
687 'libmojo_system_java',
691 'android/javatests/core_test.cc',
692 'android/javatests/core_test.h',
693 'android/javatests/init_library.cc',
697 'target_name': 'mojo_test_apk',
701 '../base/base.gyp:base_java_test_support',
704 'apk_name': 'MojoTest',
705 'java_in_dir': '<(DEPTH)/mojo/android/javatests',
706 'resource_dir': '<(DEPTH)/mojo/android/javatests/apk',
707 'native_lib_target': 'libmojo_java_unittest',
709 # Given that this apk tests itself, it needs to bring emma with it
712 ['emma_coverage != 0', {
713 'emma_instrument': 1,
717 'includes': [ '../build/java_apk.gypi' ],
720 'target_name': 'mojo_native_viewport_java',
723 '../base/base.gyp:base_java',
726 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
728 'includes': [ '../build/java.gypi' ],
731 'target_name': 'mojo_java_set_jni_headers',
734 'jni_gen_package': 'mojo',
735 'jni_generator_ptr_type': 'long',
736 'input_java_class': 'java/util/HashSet.class',
738 'includes': [ '../build/jar_file_jni_generator.gypi' ],
741 'target_name': 'libmojo_shell',
742 'type': 'shared_library',
744 '../base/base.gyp:base',
745 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
746 '../ui/gfx/gfx.gyp:gfx',
747 '../ui/gfx/gfx.gyp:gfx_geometry',
748 '../ui/gl/gl.gyp:gl',
750 'mojo_environment_chromium',
752 'mojo_shell_bindings',
756 'shell/android/library_loader.cc',
757 'shell/android/mojo_main.cc',
758 'shell/android/mojo_main.h',
762 'target_name': 'mojo_shell_apk',
765 '../base/base.gyp:base_java',
766 '../net/net.gyp:net_java',
767 'mojo_native_viewport_java',
771 'apk_name': 'MojoShell',
772 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
773 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
774 'native_lib_target': 'libmojo_shell',
776 'includes': [ '../build/java_apk.gypi' ],
780 ['test_isolation_mode != "noop"', {
783 'target_name': 'mojo_js_unittests_run',
789 '../build/isolate.gypi',
790 'mojo_js_unittests.isolate',
793 'mojo_js_unittests.isolate',