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',
57 'mojo_view_manager_lib',
58 'mojo_view_manager_lib_unittests',
65 'mojo_sample_view_manager_app',
67 'mojo_view_manager_unittests',
74 'libmojo_system_java',
81 'target_name': 'mojo_external_service_bindings',
82 'type': 'static_library',
84 'shell/external_service.mojom',
87 'mojom_base_output_dir': 'mojo',
89 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
90 'export_dependent_settings': [
98 'target_name': 'mojo_run_all_unittests',
99 'type': 'static_library',
101 '../base/base.gyp:base',
102 '../base/base.gyp:test_support_base',
103 '../testing/gtest.gyp:gtest',
106 'mojo_test_support_impl',
109 'common/test/run_all_unittests.cc',
113 'target_name': 'mojo_run_all_perftests',
114 'type': 'static_library',
116 '../base/base.gyp:test_support_base',
119 'mojo_test_support_impl',
122 'common/test/run_all_perftests.cc',
126 'target_name': 'mojo_system_impl',
127 'type': '<(component)',
129 '../base/base.gyp:base',
130 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
133 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
134 'MOJO_SYSTEM_IMPLEMENTATION',
135 'MOJO_USE_SYSTEM_IMPL',
138 'embedder/embedder.cc',
139 'embedder/embedder.h',
140 'embedder/platform_channel_pair.cc',
141 'embedder/platform_channel_pair.h',
142 'embedder/platform_channel_pair_posix.cc',
143 'embedder/platform_channel_pair_win.cc',
144 'embedder/platform_channel_utils_posix.cc',
145 'embedder/platform_channel_utils_posix.h',
146 'embedder/platform_handle.cc',
147 'embedder/platform_handle.h',
148 'embedder/scoped_platform_handle.h',
151 'system/constants.h',
154 'system/data_pipe.cc',
155 'system/data_pipe.h',
156 'system/data_pipe_consumer_dispatcher.cc',
157 'system/data_pipe_consumer_dispatcher.h',
158 'system/data_pipe_producer_dispatcher.cc',
159 'system/data_pipe_producer_dispatcher.h',
160 'system/dispatcher.cc',
161 'system/dispatcher.h',
162 'system/entrypoints.cc',
163 'system/handle_table.cc',
164 'system/handle_table.h',
165 'system/local_data_pipe.cc',
166 'system/local_data_pipe.h',
167 'system/local_message_pipe_endpoint.cc',
168 'system/local_message_pipe_endpoint.h',
169 'system/mapping_table.cc',
170 'system/mapping_table.h',
173 'system/message_in_transit.cc',
174 'system/message_in_transit.h',
175 'system/message_in_transit_queue.cc',
176 'system/message_in_transit_queue.h',
177 'system/message_pipe.cc',
178 'system/message_pipe.h',
179 'system/message_pipe_dispatcher.cc',
180 'system/message_pipe_dispatcher.h',
181 'system/message_pipe_endpoint.cc',
182 'system/message_pipe_endpoint.h',
183 'system/proxy_message_pipe_endpoint.cc',
184 'system/proxy_message_pipe_endpoint.h',
185 'system/raw_channel.cc',
186 'system/raw_channel.h',
187 'system/raw_channel_posix.cc',
188 'system/raw_channel_win.cc',
189 'system/raw_shared_buffer.cc',
190 'system/raw_shared_buffer.h',
191 'system/raw_shared_buffer_posix.cc',
192 'system/raw_shared_buffer_win.cc',
193 'system/shared_buffer_dispatcher.cc',
194 'system/shared_buffer_dispatcher.h',
195 'system/simple_dispatcher.cc',
196 'system/simple_dispatcher.h',
197 'system/transport_data.cc',
198 'system/transport_data.h',
201 'system/waiter_list.cc',
202 'system/waiter_list.h',
204 # TODO(vtl): It's a little unfortunate that these end up in the same
205 # component as non-test-only code. In the static build, this code should
206 # hopefully be dead-stripped.
207 'embedder/test_embedder.cc',
208 'embedder/test_embedder.h',
210 'all_dependent_settings': {
211 # Ensures that dependent projects import the core functions on Windows.
212 'defines': ['MOJO_USE_SYSTEM_IMPL'],
216 'target_name': 'mojo_system_unittests',
217 'type': 'executable',
219 '../base/base.gyp:base',
220 '../base/base.gyp:run_all_unittests',
221 '../testing/gtest.gyp:gtest',
222 'mojo_common_test_support',
226 'embedder/embedder_unittest.cc',
227 'embedder/platform_channel_pair_posix_unittest.cc',
228 'system/channel_unittest.cc',
229 'system/core_unittest.cc',
230 'system/core_test_base.cc',
231 'system/core_test_base.h',
232 'system/data_pipe_unittest.cc',
233 'system/dispatcher_unittest.cc',
234 'system/local_data_pipe_unittest.cc',
235 'system/message_pipe_dispatcher_unittest.cc',
236 'system/message_pipe_unittest.cc',
237 'system/multiprocess_message_pipe_unittest.cc',
238 'system/raw_channel_unittest.cc',
239 'system/raw_shared_buffer_unittest.cc',
240 'system/remote_message_pipe_unittest.cc',
241 'system/shared_buffer_dispatcher_unittest.cc',
242 'system/simple_dispatcher_unittest.cc',
243 'system/test_utils.cc',
244 'system/test_utils.h',
245 'system/waiter_list_unittest.cc',
246 'system/waiter_test_utils.cc',
247 'system/waiter_test_utils.h',
248 'system/waiter_unittest.cc',
252 'target_name': 'mojo_gles2_impl',
253 'type': '<(component)',
255 '../base/base.gyp:base',
256 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
257 '../gpu/gpu.gyp:command_buffer_client',
258 '../gpu/gpu.gyp:command_buffer_common',
259 '../gpu/gpu.gyp:gles2_cmd_helper',
260 '../gpu/gpu.gyp:gles2_implementation',
262 'mojo_gles2_bindings',
263 'mojo_environment_chromium',
267 'MOJO_GLES2_IMPL_IMPLEMENTATION',
270 'gles2/command_buffer_client_impl.cc',
271 'gles2/command_buffer_client_impl.h',
272 'gles2/gles2_impl_export.h',
273 'gles2/gles2_support_impl.cc',
274 'gles2/gles2_support_impl.h',
275 'gles2/gles2_context.cc',
276 'gles2/gles2_context.h',
280 'target_name': 'mojo_test_support_impl',
281 'type': 'static_library',
283 '../base/base.gyp:base',
286 'common/test/test_support_impl.cc',
287 'common/test/test_support_impl.h',
291 'target_name': 'mojo_common_lib',
292 'type': '<(component)',
294 'MOJO_COMMON_IMPLEMENTATION',
297 '../base/base.gyp:base',
298 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
301 'export_dependent_settings': [
302 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
306 'common/channel_init.cc',
307 'common/channel_init.h',
308 'common/common_type_converters.cc',
309 'common/common_type_converters.h',
310 'common/environment_data.cc',
311 'common/environment_data.h',
312 'common/handle_watcher.cc',
313 'common/handle_watcher.h',
314 'common/message_pump_mojo.cc',
315 'common/message_pump_mojo.h',
316 'common/message_pump_mojo_handler.h',
317 'common/time_helper.cc',
318 'common/time_helper.h',
322 'target_name': 'mojo_common_test_support',
323 'type': 'static_library',
325 '../base/base.gyp:base',
326 '../base/base.gyp:test_support_base',
327 '../testing/gtest.gyp:gtest',
331 'common/test/multiprocess_test_helper.cc',
332 'common/test/multiprocess_test_helper.h',
333 'common/test/test_utils.h',
334 'common/test/test_utils_posix.cc',
335 'common/test/test_utils_win.cc',
339 'target_name': 'mojo_common_unittests',
340 'type': 'executable',
342 '../base/base.gyp:base',
343 '../base/base.gyp:base_message_loop_tests',
344 '../testing/gtest.gyp:gtest',
346 'mojo_environment_chromium',
348 'mojo_common_test_support',
349 'mojo_public_test_utils',
350 'mojo_run_all_unittests',
353 'common/common_type_converters_unittest.cc',
354 'common/handle_watcher_unittest.cc',
355 'common/message_pump_mojo_unittest.cc',
356 'common/test/multiprocess_test_helper_unittest.cc',
360 'target_name': 'mojo_environment_chromium',
361 'type': 'static_library',
364 'mojo_environment_chromium_impl',
367 'environment/default_async_waiter.cc',
368 'environment/buffer_tls.cc',
369 'environment/environment.cc',
374 'export_dependent_settings': [
375 'mojo_environment_chromium_impl',
379 'target_name': 'mojo_environment_chromium_impl',
380 'type': '<(component)',
382 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
385 '../base/base.gyp:base',
386 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
390 'environment/default_async_waiter_impl.cc',
391 'environment/default_async_waiter_impl.h',
392 'environment/buffer_tls_impl.cc',
393 'environment/buffer_tls_impl.h',
400 'target_name': 'mojo_service_manager',
401 'type': '<(component)',
403 'MOJO_SERVICE_MANAGER_IMPLEMENTATION',
406 '../base/base.gyp:base',
407 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
408 '../net/net.gyp:net',
409 '../url/url.gyp:url_lib',
411 'mojo_environment_chromium',
412 'mojo_shell_bindings',
416 'service_manager/background_service_loader.cc',
417 'service_manager/background_service_loader.h',
418 'service_manager/service_loader.h',
419 'service_manager/service_manager.cc',
420 'service_manager/service_manager.h',
421 'service_manager/service_manager_export.h',
423 'export_dependent_settings': [
424 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
425 'mojo_shell_bindings',
429 'target_name': 'mojo_spy',
430 'type': 'static_library',
432 '../base/base.gyp:base',
433 '../base/base.gyp:base_static',
434 '../net/net.gyp:http_server',
435 '../url/url.gyp:url_lib',
436 'mojo_service_manager',
441 'spy/websocket_server.cc',
442 'spy/websocket_server.h',
446 'target_name': 'mojo_shell_lib',
447 'type': 'static_library',
449 '../base/base.gyp:base',
450 '../base/base.gyp:base_static',
451 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
452 '../net/net.gyp:net',
453 '../url/url.gyp:url_lib',
454 'mojo_external_service_bindings',
456 'mojo_service_manager',
457 'mojo_shell_bindings',
459 'mojo_native_viewport_service',
463 'mojom_base_output_dir': 'mojo',
465 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
467 'shell/app_child_process.cc',
468 'shell/app_child_process.h',
469 'shell/app_child_process.mojom',
470 'shell/app_child_process_host.cc',
471 'shell/app_child_process_host.h',
472 'shell/child_process.cc',
473 'shell/child_process.h',
474 'shell/child_process_host.cc',
475 'shell/child_process_host.h',
478 'shell/dbus_service_loader_linux.cc',
479 'shell/dbus_service_loader_linux.h',
480 'shell/dynamic_service_loader.cc',
481 'shell/dynamic_service_loader.h',
482 'shell/dynamic_service_runner.h',
485 'shell/in_process_dynamic_service_runner.cc',
486 'shell/in_process_dynamic_service_runner.h',
487 'shell/keep_alive.cc',
488 'shell/keep_alive.h',
491 'shell/network_delegate.cc',
492 'shell/network_delegate.h',
493 'shell/out_of_process_dynamic_service_runner.cc',
494 'shell/out_of_process_dynamic_service_runner.h',
501 'shell/task_runners.cc',
502 'shell/task_runners.h',
503 'shell/test_child_process.cc',
504 'shell/test_child_process.h',
505 'shell/url_request_context_getter.cc',
506 'shell/url_request_context_getter.h',
511 '../build/linux/system.gyp:dbus',
512 '../dbus/dbus.gyp:dbus',
517 # These are only necessary as long as we hard code use of ViewManager.
518 '../skia/skia.gyp:skia',
526 'target_name': 'mojo_shell_test_support',
527 'type': 'static_library',
529 '../base/base.gyp:base',
530 '../base/base.gyp:base_static',
531 '../url/url.gyp:url_lib',
532 'mojo_service_manager',
537 'shell/shell_test_helper.cc',
538 'shell/shell_test_helper.h',
542 'target_name': 'mojo_shell',
543 'type': 'executable',
545 '../base/base.gyp:base',
546 '../ui/gl/gl.gyp:gl',
547 '../url/url.gyp:url_lib',
549 'mojo_environment_chromium',
550 'mojo_service_manager',
555 'shell/desktop/mojo_main.cc',
559 'target_name': 'mojo_service_manager_unittests',
560 'type': 'executable',
562 '../base/base.gyp:base',
563 '../testing/gtest.gyp:gtest',
564 '../url/url.gyp:url_lib',
567 'mojo_environment_chromium',
568 'mojo_run_all_unittests',
569 'mojo_service_manager',
573 'mojom_base_output_dir': 'mojo',
575 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
577 'service_manager/service_manager_unittest.cc',
578 'service_manager/test.mojom',
582 'target_name': 'mojo_js_bindings_lib',
583 'type': 'static_library',
585 '../base/base.gyp:base',
586 '../gin/gin.gyp:gin',
587 '../v8/tools/gyp/v8.gyp:v8',
590 'export_dependent_settings': [
591 '../base/base.gyp:base',
592 '../gin/gin.gyp:gin',
596 'bindings/js/core.cc',
597 'bindings/js/core.h',
598 'bindings/js/handle.cc',
599 'bindings/js/handle.h',
600 'bindings/js/support.cc',
601 'bindings/js/support.h',
602 'bindings/js/unicode.cc',
603 'bindings/js/unicode.h',
604 'bindings/js/waiting_callback.cc',
605 'bindings/js/waiting_callback.h',
609 'target_name': 'mojo_js_unittests',
610 'type': 'executable',
612 '../gin/gin.gyp:gin_test',
613 'mojo_common_test_support',
614 'mojo_js_bindings_lib',
615 'mojo_run_all_unittests',
616 'mojo_public_test_interfaces',
619 'bindings/js/run_js_tests.cc',
623 'target_name': 'mojo_message_generator',
624 'type': 'executable',
626 '../base/base.gyp:base',
627 '../testing/gtest.gyp:gtest',
630 'mojo_environment_chromium',
634 'tools/message_generator.cc',
638 'target_name': 'mojo_cc_support',
639 'type': 'static_library',
641 '../base/base.gyp:base',
643 '../skia/skia.gyp:skia',
644 '../gpu/gpu.gyp:gles2_implementation',
648 'cc/context_provider_mojo.cc',
649 'cc/context_provider_mojo.h',
657 'target_name': 'mojo_jni_headers',
660 'mojo_java_set_jni_headers',
663 'android/javatests/src/org/chromium/mojo/system/CoreTest.java',
664 'android/system/src/org/chromium/mojo/system/CoreImpl.java',
665 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java',
666 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
669 'jni_gen_package': 'mojo',
670 'jni_generator_ptr_type': 'long',
672 'includes': [ '../build/jni_generator.gypi' ],
675 'target_name': 'mojo_system_java',
678 '../base/base.gyp:base_java',
682 'java_in_dir': '<(DEPTH)/mojo/android/system',
684 'includes': [ '../build/java.gypi' ],
687 'target_name': 'libmojo_system_java',
688 'type': 'static_library',
690 '../base/base.gyp:base',
691 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
693 'mojo_environment_chromium',
695 'mojo_shell_bindings',
699 'android/system/core_impl.cc',
700 'android/system/core_impl.h',
704 'target_name': 'libmojo_java_unittest',
705 'type': 'shared_library',
707 '../base/base.gyp:base',
708 'libmojo_system_java',
712 'android/javatests/core_test.cc',
713 'android/javatests/core_test.h',
714 'android/javatests/init_library.cc',
718 'target_name': 'mojo_test_apk',
722 '../base/base.gyp:base_java_test_support',
725 'apk_name': 'MojoTest',
726 'java_in_dir': '<(DEPTH)/mojo/android/javatests',
727 'resource_dir': '<(DEPTH)/mojo/android/javatests/apk',
728 'native_lib_target': 'libmojo_java_unittest',
730 # Given that this apk tests itself, it needs to bring emma with it
733 ['emma_coverage != 0', {
734 'emma_instrument': 1,
738 'includes': [ '../build/java_apk.gypi' ],
741 'target_name': 'mojo_native_viewport_java',
744 '../base/base.gyp:base_java',
747 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
749 'includes': [ '../build/java.gypi' ],
752 'target_name': 'mojo_java_set_jni_headers',
755 'jni_gen_package': 'mojo',
756 'jni_generator_ptr_type': 'long',
757 'input_java_class': 'java/util/HashSet.class',
759 'includes': [ '../build/jar_file_jni_generator.gypi' ],
762 'target_name': 'libmojo_shell',
763 'type': 'shared_library',
765 '../base/base.gyp:base',
766 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
767 '../ui/gfx/gfx.gyp:gfx',
768 '../ui/gfx/gfx.gyp:gfx_geometry',
769 '../ui/gl/gl.gyp:gl',
771 'mojo_environment_chromium',
773 'mojo_shell_bindings',
777 'shell/android/library_loader.cc',
778 'shell/android/mojo_main.cc',
779 'shell/android/mojo_main.h',
783 'target_name': 'mojo_shell_apk',
786 '../base/base.gyp:base_java',
787 '../net/net.gyp:net_java',
788 'mojo_native_viewport_java',
792 'apk_name': 'MojoShell',
793 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
794 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
795 'native_lib_target': 'libmojo_shell',
797 'includes': [ '../build/java_apk.gypi' ],
804 'target_name': 'mojo_dbus_service',
805 'type': 'static_library',
807 '../base/base.gyp:base',
808 '../build/linux/system.gyp:dbus',
809 '../dbus/dbus.gyp:dbus',
811 'mojo_external_service_bindings',
816 'dbus/dbus_external_service.h',
817 'dbus/dbus_external_service.cc',
822 ['test_isolation_mode != "noop"', {
825 'target_name': 'mojo_js_unittests_run',
831 '../build/isolate.gypi',
832 'mojo_js_unittests.isolate',
835 'mojo_js_unittests.isolate',
843 'target_name': 'mojo_aura_support',
844 'type': 'static_library',
847 '../ui/aura/aura.gyp:aura',
848 '../ui/events/events.gyp:events',
849 '../ui/events/events.gyp:events_base',
850 '../ui/compositor/compositor.gyp:compositor',
851 '../ui/gl/gl.gyp:gl',
852 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
855 'mojo_native_viewport_bindings',
858 'aura/context_factory_mojo.cc',
859 'aura/context_factory_mojo.h',
860 'aura/screen_mojo.cc',
861 'aura/screen_mojo.h',
862 'aura/window_tree_host_mojo.cc',
863 'aura/window_tree_host_mojo.h',