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 'mojo_dbus_echo_service',
87 'target_name': 'mojo_external_service_bindings',
88 'type': 'static_library',
90 'shell/external_service.mojom',
93 'mojom_base_output_dir': 'mojo',
95 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
96 'export_dependent_settings': [
104 'target_name': 'mojo_run_all_unittests',
105 'type': 'static_library',
107 '../base/base.gyp:base',
108 '../base/base.gyp:test_support_base',
109 '../testing/gtest.gyp:gtest',
112 'mojo_test_support_impl',
115 'common/test/run_all_unittests.cc',
119 'target_name': 'mojo_run_all_perftests',
120 'type': 'static_library',
122 '../base/base.gyp:test_support_base',
125 'mojo_test_support_impl',
128 'common/test/run_all_perftests.cc',
132 'target_name': 'mojo_system_impl',
133 'type': '<(component)',
135 '../base/base.gyp:base',
136 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
139 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
140 'MOJO_SYSTEM_IMPLEMENTATION',
141 'MOJO_USE_SYSTEM_IMPL',
144 'embedder/embedder.cc',
145 'embedder/embedder.h',
146 'embedder/platform_channel_pair.cc',
147 'embedder/platform_channel_pair.h',
148 'embedder/platform_channel_pair_posix.cc',
149 'embedder/platform_channel_pair_win.cc',
150 'embedder/platform_channel_utils_posix.cc',
151 'embedder/platform_channel_utils_posix.h',
152 'embedder/platform_handle.cc',
153 'embedder/platform_handle.h',
154 'embedder/platform_handle_vector.cc',
155 'embedder/platform_handle_vector.h',
156 'embedder/scoped_platform_handle.h',
159 'system/constants.h',
162 'system/data_pipe.cc',
163 'system/data_pipe.h',
164 'system/data_pipe_consumer_dispatcher.cc',
165 'system/data_pipe_consumer_dispatcher.h',
166 'system/data_pipe_producer_dispatcher.cc',
167 'system/data_pipe_producer_dispatcher.h',
168 'system/dispatcher.cc',
169 'system/dispatcher.h',
170 'system/entrypoints.cc',
171 'system/handle_table.cc',
172 'system/handle_table.h',
173 'system/local_data_pipe.cc',
174 'system/local_data_pipe.h',
175 'system/local_message_pipe_endpoint.cc',
176 'system/local_message_pipe_endpoint.h',
177 'system/mapping_table.cc',
178 'system/mapping_table.h',
181 'system/message_in_transit.cc',
182 'system/message_in_transit.h',
183 'system/message_in_transit_queue.cc',
184 'system/message_in_transit_queue.h',
185 'system/message_pipe.cc',
186 'system/message_pipe.h',
187 'system/message_pipe_dispatcher.cc',
188 'system/message_pipe_dispatcher.h',
189 'system/message_pipe_endpoint.cc',
190 'system/message_pipe_endpoint.h',
191 'system/platform_handle_dispatcher.cc',
192 'system/platform_handle_dispatcher.h',
193 'system/proxy_message_pipe_endpoint.cc',
194 'system/proxy_message_pipe_endpoint.h',
195 'system/raw_channel.cc',
196 'system/raw_channel.h',
197 'system/raw_channel_posix.cc',
198 'system/raw_channel_win.cc',
199 'system/raw_shared_buffer.cc',
200 'system/raw_shared_buffer.h',
201 'system/raw_shared_buffer_posix.cc',
202 'system/raw_shared_buffer_win.cc',
203 'system/shared_buffer_dispatcher.cc',
204 'system/shared_buffer_dispatcher.h',
205 'system/simple_dispatcher.cc',
206 'system/simple_dispatcher.h',
207 'system/transport_data.cc',
208 'system/transport_data.h',
211 'system/waiter_list.cc',
212 'system/waiter_list.h',
214 # TODO(vtl): It's a little unfortunate that these end up in the same
215 # component as non-test-only code. In the static build, this code should
216 # hopefully be dead-stripped.
217 'embedder/test_embedder.cc',
218 'embedder/test_embedder.h',
220 'all_dependent_settings': {
221 # Ensures that dependent projects import the core functions on Windows.
222 'defines': ['MOJO_USE_SYSTEM_IMPL'],
226 'target_name': 'mojo_system_unittests',
227 'type': 'executable',
229 '../base/base.gyp:base',
230 '../base/base.gyp:run_all_unittests',
231 '../testing/gtest.gyp:gtest',
232 'mojo_common_test_support',
236 'embedder/embedder_unittest.cc',
237 'embedder/platform_channel_pair_posix_unittest.cc',
238 'system/channel_unittest.cc',
239 'system/core_unittest.cc',
240 'system/core_test_base.cc',
241 'system/core_test_base.h',
242 'system/data_pipe_unittest.cc',
243 'system/dispatcher_unittest.cc',
244 'system/local_data_pipe_unittest.cc',
245 'system/message_pipe_dispatcher_unittest.cc',
246 'system/message_pipe_unittest.cc',
247 'system/multiprocess_message_pipe_unittest.cc',
248 'system/platform_handle_dispatcher_unittest.cc',
249 'system/raw_channel_unittest.cc',
250 'system/raw_shared_buffer_unittest.cc',
251 'system/remote_message_pipe_unittest.cc',
252 'system/shared_buffer_dispatcher_unittest.cc',
253 'system/simple_dispatcher_unittest.cc',
254 'system/test_utils.cc',
255 'system/test_utils.h',
256 'system/waiter_list_unittest.cc',
257 'system/waiter_test_utils.cc',
258 'system/waiter_test_utils.h',
259 'system/waiter_unittest.cc',
263 'target_name': 'mojo_gles2_impl',
264 'type': '<(component)',
266 '../base/base.gyp:base',
267 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
268 '../gpu/gpu.gyp:command_buffer_client',
269 '../gpu/gpu.gyp:command_buffer_common',
270 '../gpu/gpu.gyp:gles2_cmd_helper',
271 '../gpu/gpu.gyp:gles2_implementation',
273 'mojo_gles2_bindings',
274 'mojo_environment_chromium',
278 'MOJO_GLES2_IMPL_IMPLEMENTATION',
281 'gles2/command_buffer_client_impl.cc',
282 'gles2/command_buffer_client_impl.h',
283 'gles2/gles2_impl_export.h',
284 'gles2/gles2_support_impl.cc',
285 'gles2/gles2_support_impl.h',
286 'gles2/gles2_context.cc',
287 'gles2/gles2_context.h',
291 'target_name': 'mojo_test_support_impl',
292 'type': 'static_library',
294 '../base/base.gyp:base',
297 'common/test/test_support_impl.cc',
298 'common/test/test_support_impl.h',
302 'target_name': 'mojo_common_lib',
303 'type': '<(component)',
305 'MOJO_COMMON_IMPLEMENTATION',
308 '../base/base.gyp:base',
309 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
312 'export_dependent_settings': [
313 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
317 'common/channel_init.cc',
318 'common/channel_init.h',
319 'common/common_type_converters.cc',
320 'common/common_type_converters.h',
321 'common/environment_data.cc',
322 'common/environment_data.h',
323 'common/handle_watcher.cc',
324 'common/handle_watcher.h',
325 'common/message_pump_mojo.cc',
326 'common/message_pump_mojo.h',
327 'common/message_pump_mojo_handler.h',
328 'common/time_helper.cc',
329 'common/time_helper.h',
333 'target_name': 'mojo_common_test_support',
334 'type': 'static_library',
336 '../base/base.gyp:base',
337 '../base/base.gyp:test_support_base',
338 '../testing/gtest.gyp:gtest',
342 'common/test/multiprocess_test_helper.cc',
343 'common/test/multiprocess_test_helper.h',
344 'common/test/test_utils.h',
345 'common/test/test_utils_posix.cc',
346 'common/test/test_utils_win.cc',
350 'target_name': 'mojo_common_unittests',
351 'type': 'executable',
353 '../base/base.gyp:base',
354 '../base/base.gyp:base_message_loop_tests',
355 '../testing/gtest.gyp:gtest',
357 'mojo_environment_chromium',
359 'mojo_common_test_support',
360 'mojo_public_test_utils',
361 'mojo_run_all_unittests',
364 'common/common_type_converters_unittest.cc',
365 'common/handle_watcher_unittest.cc',
366 'common/message_pump_mojo_unittest.cc',
367 'common/test/multiprocess_test_helper_unittest.cc',
371 'target_name': 'mojo_environment_chromium',
372 'type': 'static_library',
375 'mojo_environment_chromium_impl',
378 'environment/default_async_waiter.cc',
379 'environment/buffer_tls.cc',
380 'environment/environment.cc',
385 'export_dependent_settings': [
386 'mojo_environment_chromium_impl',
390 'target_name': 'mojo_environment_chromium_impl',
391 'type': '<(component)',
393 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
396 '../base/base.gyp:base',
397 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
401 'environment/default_async_waiter_impl.cc',
402 'environment/default_async_waiter_impl.h',
403 'environment/buffer_tls_impl.cc',
404 'environment/buffer_tls_impl.h',
411 'target_name': 'mojo_service_manager',
412 'type': '<(component)',
414 'MOJO_SERVICE_MANAGER_IMPLEMENTATION',
417 '../base/base.gyp:base',
418 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
419 '../net/net.gyp:net',
420 '../url/url.gyp:url_lib',
422 'mojo_environment_chromium',
423 'mojo_shell_bindings',
427 'service_manager/background_service_loader.cc',
428 'service_manager/background_service_loader.h',
429 'service_manager/service_loader.h',
430 'service_manager/service_manager.cc',
431 'service_manager/service_manager.h',
432 'service_manager/service_manager_export.h',
434 'export_dependent_settings': [
435 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
436 'mojo_shell_bindings',
440 'target_name': 'mojo_spy',
441 'type': 'static_library',
443 '../base/base.gyp:base',
444 '../base/base.gyp:base_static',
445 '../net/net.gyp:http_server',
446 '../url/url.gyp:url_lib',
447 'mojo_service_manager',
452 'spy/websocket_server.cc',
453 'spy/websocket_server.h',
457 'target_name': 'mojo_shell_lib',
458 'type': 'static_library',
460 '../base/base.gyp:base',
461 '../base/base.gyp:base_static',
462 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
463 '../net/net.gyp:net',
464 '../url/url.gyp:url_lib',
465 'mojo_external_service_bindings',
467 'mojo_service_manager',
468 'mojo_shell_bindings',
470 'mojo_native_viewport_service',
474 'mojom_base_output_dir': 'mojo',
476 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
478 'shell/app_child_process.cc',
479 'shell/app_child_process.h',
480 'shell/app_child_process.mojom',
481 'shell/app_child_process_host.cc',
482 'shell/app_child_process_host.h',
483 'shell/child_process.cc',
484 'shell/child_process.h',
485 'shell/child_process_host.cc',
486 'shell/child_process_host.h',
489 'shell/dbus_service_loader_linux.cc',
490 'shell/dbus_service_loader_linux.h',
491 'shell/dynamic_service_loader.cc',
492 'shell/dynamic_service_loader.h',
493 'shell/dynamic_service_runner.h',
496 'shell/in_process_dynamic_service_runner.cc',
497 'shell/in_process_dynamic_service_runner.h',
498 'shell/keep_alive.cc',
499 'shell/keep_alive.h',
502 'shell/network_delegate.cc',
503 'shell/network_delegate.h',
504 'shell/out_of_process_dynamic_service_runner.cc',
505 'shell/out_of_process_dynamic_service_runner.h',
512 'shell/task_runners.cc',
513 'shell/task_runners.h',
514 'shell/test_child_process.cc',
515 'shell/test_child_process.h',
516 'shell/url_request_context_getter.cc',
517 'shell/url_request_context_getter.h',
518 'shell/view_manager_loader.cc',
519 'shell/view_manager_loader.h',
524 '../build/linux/system.gyp:dbus',
525 '../dbus/dbus.gyp:dbus',
530 # These are only necessary as long as we hard code use of ViewManager.
531 '../skia/skia.gyp:skia',
535 'mojo_view_manager_bindings',
539 'shell/view_manager_loader.cc',
540 'shell/view_manager_loader.h',
546 'target_name': 'mojo_shell_test_support',
547 'type': 'static_library',
549 '../base/base.gyp:base',
550 '../base/base.gyp:base_static',
551 '../url/url.gyp:url_lib',
552 'mojo_service_manager',
557 'shell/shell_test_helper.cc',
558 'shell/shell_test_helper.h',
562 'target_name': 'mojo_shell',
563 'type': 'executable',
565 '../base/base.gyp:base',
566 '../ui/gl/gl.gyp:gl',
567 '../url/url.gyp:url_lib',
569 'mojo_environment_chromium',
570 'mojo_service_manager',
575 'shell/desktop/mojo_main.cc',
579 'target_name': 'mojo_service_manager_unittests',
580 'type': 'executable',
582 '../base/base.gyp:base',
583 '../testing/gtest.gyp:gtest',
584 '../url/url.gyp:url_lib',
587 'mojo_environment_chromium',
588 'mojo_run_all_unittests',
589 'mojo_service_manager',
593 'mojom_base_output_dir': 'mojo',
595 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
597 'service_manager/service_manager_unittest.cc',
598 'service_manager/test.mojom',
602 'target_name': 'mojo_js_bindings_lib',
603 'type': 'static_library',
605 '../base/base.gyp:base',
606 '../gin/gin.gyp:gin',
607 '../v8/tools/gyp/v8.gyp:v8',
610 'export_dependent_settings': [
611 '../base/base.gyp:base',
612 '../gin/gin.gyp:gin',
616 'bindings/js/core.cc',
617 'bindings/js/core.h',
618 'bindings/js/handle.cc',
619 'bindings/js/handle.h',
620 'bindings/js/support.cc',
621 'bindings/js/support.h',
622 'bindings/js/unicode.cc',
623 'bindings/js/unicode.h',
624 'bindings/js/waiting_callback.cc',
625 'bindings/js/waiting_callback.h',
629 'target_name': 'mojo_js_unittests',
630 'type': 'executable',
632 '../gin/gin.gyp:gin_test',
633 'mojo_common_test_support',
634 'mojo_js_bindings_lib',
635 'mojo_run_all_unittests',
636 'mojo_public_test_interfaces',
639 'bindings/js/run_js_tests.cc',
643 'target_name': 'mojo_message_generator',
644 'type': 'executable',
646 '../base/base.gyp:base',
647 '../testing/gtest.gyp:gtest',
650 'mojo_environment_chromium',
654 'tools/message_generator.cc',
658 'target_name': 'mojo_cc_support',
659 'type': 'static_library',
661 '../base/base.gyp:base',
663 '../skia/skia.gyp:skia',
664 '../gpu/gpu.gyp:gles2_implementation',
668 'cc/context_provider_mojo.cc',
669 'cc/context_provider_mojo.h',
677 'target_name': 'mojo_jni_headers',
680 'mojo_java_set_jni_headers',
683 'android/javatests/src/org/chromium/mojo/system/CoreTest.java',
684 'android/system/src/org/chromium/mojo/system/CoreImpl.java',
685 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java',
686 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
689 'jni_gen_package': 'mojo',
690 'jni_generator_ptr_type': 'long',
692 'includes': [ '../build/jni_generator.gypi' ],
695 'target_name': 'mojo_system_java',
698 '../base/base.gyp:base_java',
702 'java_in_dir': '<(DEPTH)/mojo/android/system',
704 'includes': [ '../build/java.gypi' ],
707 'target_name': 'libmojo_system_java',
708 'type': 'static_library',
710 '../base/base.gyp:base',
711 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
713 'mojo_environment_chromium',
715 'mojo_shell_bindings',
719 'android/system/core_impl.cc',
720 'android/system/core_impl.h',
724 'target_name': 'libmojo_java_unittest',
725 'type': 'shared_library',
727 '../base/base.gyp:base',
728 'libmojo_system_java',
732 'android/javatests/core_test.cc',
733 'android/javatests/core_test.h',
734 'android/javatests/init_library.cc',
738 'target_name': 'mojo_test_apk',
742 '../base/base.gyp:base_java_test_support',
745 'apk_name': 'MojoTest',
746 'java_in_dir': '<(DEPTH)/mojo/android/javatests',
747 'resource_dir': '<(DEPTH)/mojo/android/javatests/apk',
748 'native_lib_target': 'libmojo_java_unittest',
750 # Given that this apk tests itself, it needs to bring emma with it
753 ['emma_coverage != 0', {
754 'emma_instrument': 1,
758 'includes': [ '../build/java_apk.gypi' ],
761 'target_name': 'mojo_native_viewport_java',
764 '../base/base.gyp:base_java',
767 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
769 'includes': [ '../build/java.gypi' ],
772 'target_name': 'mojo_java_set_jni_headers',
775 'jni_gen_package': 'mojo',
776 'jni_generator_ptr_type': 'long',
777 'input_java_class': 'java/util/HashSet.class',
779 'includes': [ '../build/jar_file_jni_generator.gypi' ],
782 'target_name': 'libmojo_shell',
783 'type': 'shared_library',
785 '../base/base.gyp:base',
786 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
787 '../ui/gfx/gfx.gyp:gfx',
788 '../ui/gfx/gfx.gyp:gfx_geometry',
789 '../ui/gl/gl.gyp:gl',
791 'mojo_environment_chromium',
793 'mojo_shell_bindings',
797 'shell/android/library_loader.cc',
798 'shell/android/mojo_main.cc',
799 'shell/android/mojo_main.h',
803 'target_name': 'mojo_shell_apk',
806 '../base/base.gyp:base_java',
807 '../net/net.gyp:net_java',
808 'mojo_native_viewport_java',
812 'apk_name': 'MojoShell',
813 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
814 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
815 'native_lib_target': 'libmojo_shell',
817 'includes': [ '../build/java_apk.gypi' ],
824 'target_name': 'mojo_dbus_service',
825 'type': 'static_library',
827 '../base/base.gyp:base',
828 '../build/linux/system.gyp:dbus',
829 '../dbus/dbus.gyp:dbus',
831 'mojo_external_service_bindings',
836 'dbus/dbus_external_service.h',
837 'dbus/dbus_external_service.cc',
842 ['test_isolation_mode != "noop"', {
845 'target_name': 'mojo_js_unittests_run',
851 '../build/isolate.gypi',
852 'mojo_js_unittests.isolate',
855 'mojo_js_unittests.isolate',
863 'target_name': 'mojo_aura_support',
864 'type': 'static_library',
867 '../ui/aura/aura.gyp:aura',
868 '../ui/events/events.gyp:events',
869 '../ui/events/events.gyp:events_base',
870 '../ui/compositor/compositor.gyp:compositor',
871 '../ui/gl/gl.gyp:gl',
872 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
875 'mojo_native_viewport_bindings',
878 'aura/context_factory_mojo.cc',
879 'aura/context_factory_mojo.h',
880 'aura/screen_mojo.cc',
881 'aura/screen_mojo.h',
882 'aura/window_tree_host_mojo.cc',
883 'aura/window_tree_host_mojo.h',