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',
43 'mojo_message_generator',
44 'mojo_native_viewport_service',
45 'mojo_network_service',
46 'mojo_pepper_container_app',
47 'mojo_profile_service',
48 'mojo_public_test_utils',
49 'mojo_public_bindings_unittests',
50 'mojo_public_environment_unittests',
51 'mojo_public_system_perftests',
52 'mojo_public_system_unittests',
53 'mojo_public_utility_unittests',
55 'mojo_service_manager',
56 'mojo_service_manager_unittests',
62 'mojo_system_unittests',
65 'mojo_view_manager_lib',
66 'mojo_view_manager_lib_unittests',
73 'mojo_aura_demo_init',
78 'mojo_window_manager',
80 'mojo_view_manager_unittests',
88 'libmojo_system_java',
95 'mojo_dbus_echo_service',
101 'target_name': 'mojo_external_service_bindings',
102 'type': 'static_library',
104 'shell/external_service.mojom',
106 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
107 'export_dependent_settings': [
115 'target_name': 'mojo_run_all_unittests',
116 'type': 'static_library',
118 '../base/base.gyp:base',
119 '../base/base.gyp:test_support_base',
120 '../testing/gtest.gyp:gtest',
123 'mojo_test_support_impl',
126 'common/test/run_all_unittests.cc',
130 'target_name': 'mojo_run_all_perftests',
131 'type': 'static_library',
133 '../base/base.gyp:test_support_base',
136 'mojo_test_support_impl',
139 'common/test/run_all_perftests.cc',
143 # GN version: //mojo/system
144 'target_name': 'mojo_system_impl',
145 'type': '<(component)',
147 '../base/base.gyp:base',
148 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
151 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
152 'MOJO_SYSTEM_IMPLEMENTATION',
153 'MOJO_USE_SYSTEM_IMPL',
156 'embedder/channel_init.cc',
157 'embedder/channel_init.h',
158 'embedder/embedder.cc',
159 'embedder/embedder.h',
160 'embedder/platform_channel_pair.cc',
161 'embedder/platform_channel_pair.h',
162 'embedder/platform_channel_pair_posix.cc',
163 'embedder/platform_channel_pair_win.cc',
164 'embedder/platform_channel_utils_posix.cc',
165 'embedder/platform_channel_utils_posix.h',
166 'embedder/platform_handle.cc',
167 'embedder/platform_handle.h',
168 'embedder/platform_handle_utils.h',
169 'embedder/platform_handle_utils_posix.cc',
170 'embedder/platform_handle_utils_win.cc',
171 'embedder/platform_handle_vector.h',
172 'embedder/scoped_platform_handle.h',
175 'system/constants.h',
178 'system/data_pipe.cc',
179 'system/data_pipe.h',
180 'system/data_pipe_consumer_dispatcher.cc',
181 'system/data_pipe_consumer_dispatcher.h',
182 'system/data_pipe_producer_dispatcher.cc',
183 'system/data_pipe_producer_dispatcher.h',
184 'system/dispatcher.cc',
185 'system/dispatcher.h',
186 'system/entrypoints.cc',
187 'system/handle_signals_state.h',
188 'system/handle_table.cc',
189 'system/handle_table.h',
190 'system/local_data_pipe.cc',
191 'system/local_data_pipe.h',
192 'system/local_message_pipe_endpoint.cc',
193 'system/local_message_pipe_endpoint.h',
194 'system/mapping_table.cc',
195 'system/mapping_table.h',
198 'system/message_in_transit.cc',
199 'system/message_in_transit.h',
200 'system/message_in_transit_queue.cc',
201 'system/message_in_transit_queue.h',
202 'system/message_pipe.cc',
203 'system/message_pipe.h',
204 'system/message_pipe_dispatcher.cc',
205 'system/message_pipe_dispatcher.h',
206 'system/message_pipe_endpoint.cc',
207 'system/message_pipe_endpoint.h',
208 'system/options_validation.h',
209 'system/platform_handle_dispatcher.cc',
210 'system/platform_handle_dispatcher.h',
211 'system/proxy_message_pipe_endpoint.cc',
212 'system/proxy_message_pipe_endpoint.h',
213 'system/raw_channel.cc',
214 'system/raw_channel.h',
215 'system/raw_channel_posix.cc',
216 'system/raw_channel_win.cc',
217 'system/raw_shared_buffer.cc',
218 'system/raw_shared_buffer.h',
219 'system/raw_shared_buffer_posix.cc',
220 'system/raw_shared_buffer_win.cc',
221 'system/shared_buffer_dispatcher.cc',
222 'system/shared_buffer_dispatcher.h',
223 'system/simple_dispatcher.cc',
224 'system/simple_dispatcher.h',
225 'system/transport_data.cc',
226 'system/transport_data.h',
229 'system/waiter_list.cc',
230 'system/waiter_list.h',
232 # TODO(vtl): It's a little unfortunate that these end up in the same
233 # component as non-test-only code. In the static build, this code should
234 # hopefully be dead-stripped.
235 'embedder/test_embedder.cc',
236 'embedder/test_embedder.h',
238 'all_dependent_settings': {
239 # Ensures that dependent projects import the core functions on Windows.
240 'defines': ['MOJO_USE_SYSTEM_IMPL'],
244 'target_name': 'mojo_system_unittests',
245 'type': 'executable',
247 '../base/base.gyp:base',
248 '../base/base.gyp:run_all_unittests',
249 '../testing/gtest.gyp:gtest',
250 'mojo_common_test_support',
254 'embedder/embedder_unittest.cc',
255 'embedder/platform_channel_pair_posix_unittest.cc',
256 'system/channel_unittest.cc',
257 'system/core_unittest.cc',
258 'system/core_test_base.cc',
259 'system/core_test_base.h',
260 'system/data_pipe_unittest.cc',
261 'system/dispatcher_unittest.cc',
262 'system/local_data_pipe_unittest.cc',
263 'system/memory_unittest.cc',
264 'system/message_pipe_dispatcher_unittest.cc',
265 'system/message_pipe_unittest.cc',
266 'system/multiprocess_message_pipe_unittest.cc',
267 'system/options_validation_unittest.cc',
268 'system/platform_handle_dispatcher_unittest.cc',
269 'system/raw_channel_unittest.cc',
270 'system/raw_shared_buffer_unittest.cc',
271 'system/remote_message_pipe_unittest.cc',
272 'system/shared_buffer_dispatcher_unittest.cc',
273 'system/simple_dispatcher_unittest.cc',
274 'system/test_utils.cc',
275 'system/test_utils.h',
276 'system/waiter_list_unittest.cc',
277 'system/waiter_test_utils.cc',
278 'system/waiter_test_utils.h',
279 'system/waiter_unittest.cc',
283 'target_name': 'mojo_gles2_impl',
284 'type': '<(component)',
286 '../base/base.gyp:base',
287 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
288 '../gpu/gpu.gyp:command_buffer_client',
289 '../gpu/gpu.gyp:command_buffer_common',
290 '../gpu/gpu.gyp:gles2_cmd_helper',
291 '../gpu/gpu.gyp:gles2_implementation',
293 'mojo_gles2_bindings',
294 'mojo_environment_chromium',
298 'MOJO_GLES2_IMPL_IMPLEMENTATION',
301 'gles2/command_buffer_client_impl.cc',
302 'gles2/command_buffer_client_impl.h',
303 'gles2/gles2_impl_export.h',
304 'gles2/gles2_support_impl.cc',
305 'gles2/gles2_support_impl.h',
306 'gles2/gles2_context.cc',
307 'gles2/gles2_context.h',
311 'target_name': 'mojo_test_support_impl',
312 'type': 'static_library',
314 '../base/base.gyp:base',
317 'common/test/test_support_impl.cc',
318 'common/test/test_support_impl.h',
322 # GN version: //mojo/common
323 'target_name': 'mojo_common_lib',
324 'type': '<(component)',
326 'MOJO_COMMON_IMPLEMENTATION',
329 '../base/base.gyp:base',
330 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
333 'export_dependent_settings': [
334 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
338 'common/common_type_converters.cc',
339 'common/common_type_converters.h',
340 'common/data_pipe_utils.cc',
341 'common/data_pipe_utils.h',
342 'common/handle_watcher.cc',
343 'common/handle_watcher.h',
344 'common/message_pump_mojo.cc',
345 'common/message_pump_mojo.h',
346 'common/message_pump_mojo_handler.h',
347 'common/time_helper.cc',
348 'common/time_helper.h',
352 'target_name': 'mojo_common_test_support',
353 'type': 'static_library',
355 '../base/base.gyp:base',
356 '../base/base.gyp:test_support_base',
357 '../testing/gtest.gyp:gtest',
361 'common/test/multiprocess_test_helper.cc',
362 'common/test/multiprocess_test_helper.h',
363 'common/test/test_utils.h',
364 'common/test/test_utils_posix.cc',
365 'common/test/test_utils_win.cc',
369 'target_name': 'mojo_common_unittests',
370 'type': 'executable',
372 '../base/base.gyp:base',
373 '../base/base.gyp:base_message_loop_tests',
374 '../testing/gtest.gyp:gtest',
376 'mojo_environment_chromium',
378 'mojo_common_test_support',
379 'mojo_public_test_utils',
380 'mojo_run_all_unittests',
383 'common/common_type_converters_unittest.cc',
384 'common/handle_watcher_unittest.cc',
385 'common/message_pump_mojo_unittest.cc',
386 'common/test/multiprocess_test_helper_unittest.cc',
390 # GN version: //mojo/environment:chromium
391 'target_name': 'mojo_environment_chromium',
392 'type': 'static_library',
395 'mojo_environment_chromium_impl',
398 'environment/environment.cc',
399 # TODO(vtl): This is kind of ugly. (See TODO in logging.h.)
400 "public/cpp/environment/logging.h",
401 "public/cpp/environment/lib/logging.h",
406 'export_dependent_settings': [
407 'mojo_environment_chromium_impl',
411 # GN version: //mojo/environment:chromium_impl
412 'target_name': 'mojo_environment_chromium_impl',
413 'type': '<(component)',
415 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
418 '../base/base.gyp:base',
419 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
423 'environment/default_async_waiter_impl.cc',
424 'environment/default_async_waiter_impl.h',
425 'environment/default_logger_impl.cc',
426 'environment/default_logger_impl.h',
433 # GN version: //mojo/service_manager
434 'target_name': 'mojo_service_manager',
435 'type': '<(component)',
437 'MOJO_SERVICE_MANAGER_IMPLEMENTATION',
440 '../base/base.gyp:base',
441 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
442 '../net/net.gyp:net',
443 '../url/url.gyp:url_lib',
445 'mojo_environment_chromium',
446 'mojo_service_provider_bindings',
450 'service_manager/background_service_loader.cc',
451 'service_manager/background_service_loader.h',
452 'service_manager/service_loader.h',
453 'service_manager/service_manager.cc',
454 'service_manager/service_manager.h',
455 'service_manager/service_manager_export.h',
457 'export_dependent_settings': [
458 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
459 'mojo_service_provider_bindings',
463 'target_name': 'mojo_spy',
464 'type': 'static_library',
466 '../base/base.gyp:base',
467 '../base/base.gyp:base_static',
468 '../net/net.gyp:http_server',
469 '../url/url.gyp:url_lib',
470 'mojo_service_manager',
475 'spy/websocket_server.cc',
476 'spy/websocket_server.h',
480 'target_name': 'mojo_shell_lib',
481 'type': 'static_library',
483 '../base/base.gyp:base',
484 '../base/base.gyp:base_static',
485 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
486 '../net/net.gyp:net',
487 '../url/url.gyp:url_lib',
489 'mojo_external_service_bindings',
491 'mojo_native_viewport_service',
492 'mojo_network_bindings',
493 'mojo_profile_service',
494 'mojo_service_manager',
495 'mojo_service_provider_bindings',
499 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
501 'shell/app_child_process.cc',
502 'shell/app_child_process.h',
503 'shell/app_child_process.mojom',
504 'shell/app_child_process_host.cc',
505 'shell/app_child_process_host.h',
506 'shell/child_process.cc',
507 'shell/child_process.h',
508 'shell/child_process_host.cc',
509 'shell/child_process_host.h',
512 'shell/dbus_service_loader_linux.cc',
513 'shell/dbus_service_loader_linux.h',
514 'shell/dynamic_service_loader.cc',
515 'shell/dynamic_service_loader.h',
516 'shell/dynamic_service_runner.h',
519 'shell/in_process_dynamic_service_runner.cc',
520 'shell/in_process_dynamic_service_runner.h',
521 'shell/keep_alive.cc',
522 'shell/keep_alive.h',
523 'shell/mojo_url_resolver.cc',
524 'shell/mojo_url_resolver.h',
525 'shell/out_of_process_dynamic_service_runner.cc',
526 'shell/out_of_process_dynamic_service_runner.h',
527 'shell/profile_service_loader.cc',
528 'shell/profile_service_loader.h',
533 'shell/task_runners.cc',
534 'shell/task_runners.h',
535 'shell/test_child_process.cc',
536 'shell/test_child_process.h',
537 'shell/view_manager_loader.cc',
538 'shell/view_manager_loader.h',
543 '../build/linux/system.gyp:dbus',
544 '../dbus/dbus.gyp:dbus',
549 # These are only necessary as long as we hard code use of ViewManager.
550 '../skia/skia.gyp:skia',
553 'mojo_view_manager_bindings',
557 'shell/view_manager_loader.cc',
558 'shell/view_manager_loader.h',
564 'target_name': 'mojo_shell_test_support',
565 'type': 'static_library',
567 '../base/base.gyp:base',
568 '../base/base.gyp:base_static',
569 '../url/url.gyp:url_lib',
570 'mojo_service_manager',
575 'shell/shell_test_helper.cc',
576 'shell/shell_test_helper.h',
580 'target_name': 'mojo_shell',
581 'type': 'executable',
583 '../base/base.gyp:base',
584 '../ui/gl/gl.gyp:gl',
585 '../url/url.gyp:url_lib',
587 'mojo_environment_chromium',
588 'mojo_service_manager',
593 'shell/desktop/mojo_main.cc',
597 'target_name': 'mojo_shell_tests',
598 'type': '<(gtest_target_type)',
600 '../base/base.gyp:base',
601 '../base/base.gyp:test_support_base',
602 '../testing/gtest.gyp:gtest',
603 # TODO(vtl): We don't currently need this, but I imagine we will soon.
604 # '../ui/gl/gl.gyp:gl',
605 '../url/url.gyp:url_lib',
607 'mojo_environment_chromium',
608 'mojo_service_manager',
611 'mojo_test_service_bindings',
614 'shell/child_process_host_unittest.cc',
615 'shell/shell_test_base.cc',
616 'shell/shell_test_base.h',
617 'shell/shell_test_base_unittest.cc',
618 'shell/shell_test_main.cc',
621 ['OS == "android"', {
623 '../testing/android/native_test.gyp:native_test_native_code',
629 'target_name': 'mojo_service_manager_unittests',
630 'type': 'executable',
632 '../base/base.gyp:base',
633 '../testing/gtest.gyp:gtest',
634 '../url/url.gyp:url_lib',
637 'mojo_environment_chromium',
638 'mojo_run_all_unittests',
639 'mojo_service_manager',
642 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
644 'service_manager/service_manager_unittest.cc',
645 'service_manager/test.mojom',
649 'target_name': 'mojo_js_bindings_lib',
650 'type': 'static_library',
652 '../base/base.gyp:base',
653 '../gin/gin.gyp:gin',
654 '../v8/tools/gyp/v8.gyp:v8',
657 'export_dependent_settings': [
658 '../base/base.gyp:base',
659 '../gin/gin.gyp:gin',
663 'bindings/js/core.cc',
664 'bindings/js/core.h',
665 'bindings/js/handle.cc',
666 'bindings/js/handle.h',
667 'bindings/js/support.cc',
668 'bindings/js/support.h',
669 'bindings/js/waiting_callback.cc',
670 'bindings/js/waiting_callback.h',
674 'target_name': 'mojo_js_unittests',
675 'type': 'executable',
677 '../gin/gin.gyp:gin_test',
678 'mojo_common_test_support',
679 'mojo_js_bindings_lib',
680 'mojo_run_all_unittests',
681 'mojo_public_test_interfaces',
684 'bindings/js/run_js_tests.cc',
688 'target_name': 'mojo_message_generator',
689 'type': 'executable',
691 '../base/base.gyp:base',
692 '../testing/gtest.gyp:gtest',
695 'mojo_environment_chromium',
699 'tools/message_generator.cc',
703 'target_name': 'mojo_cc_support',
704 'type': 'static_library',
706 '../base/base.gyp:base',
708 '../skia/skia.gyp:skia',
709 '../gpu/gpu.gyp:gles2_implementation',
713 'cc/context_provider_mojo.cc',
714 'cc/context_provider_mojo.h',
722 'target_name': 'mojo_jni_headers',
725 'mojo_java_set_jni_headers',
728 'android/javatests/src/org/chromium/mojo/MojoTestCase.java',
729 'android/system/src/org/chromium/mojo/system/impl/CoreImpl.java',
730 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java',
731 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
734 'jni_gen_package': 'mojo',
736 'includes': [ '../build/jni_generator.gypi' ],
739 'target_name': 'mojo_system_java',
742 '../base/base.gyp:base_java',
746 'java_in_dir': '<(DEPTH)/mojo/android/system',
748 'includes': [ '../build/java.gypi' ],
751 'target_name': 'libmojo_system_java',
752 'type': 'static_library',
754 '../base/base.gyp:base',
755 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
757 'mojo_environment_chromium',
759 'mojo_service_provider_bindings',
763 'android/system/core_impl.cc',
764 'android/system/core_impl.h',
768 'target_name': 'libmojo_java_unittest',
769 'type': 'shared_library',
771 '../base/base.gyp:base',
772 '../base/base.gyp:test_support_base',
773 'libmojo_system_java',
777 'UNIT_TEST' # As exported from testing/gtest.gyp:gtest.
780 'android/javatests/mojo_test_case.cc',
781 'android/javatests/mojo_test_case.h',
782 'android/javatests/init_library.cc',
786 'target_name': 'mojo_test_apk',
789 'mojo_bindings_java',
790 'mojo_public_test_interfaces',
792 '../base/base.gyp:base_java_test_support',
795 'apk_name': 'MojoTest',
796 'java_in_dir': '<(DEPTH)/mojo/android/javatests',
797 'resource_dir': '<(DEPTH)/mojo/android/javatests/apk',
798 'native_lib_target': 'libmojo_java_unittest',
800 # Given that this apk tests itself, it needs to bring emma with it
803 ['emma_coverage != 0', {
804 'emma_instrument': 1,
808 'includes': [ '../build/java_apk.gypi' ],
811 'target_name': 'mojo_native_viewport_java',
814 '../base/base.gyp:base_java',
817 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
819 'includes': [ '../build/java.gypi' ],
822 'target_name': 'mojo_java_set_jni_headers',
825 'jni_gen_package': 'mojo',
826 'input_java_class': 'java/util/HashSet.class',
828 'includes': [ '../build/jar_file_jni_generator.gypi' ],
831 'target_name': 'libmojo_shell',
832 'type': 'shared_library',
834 '../base/base.gyp:base',
835 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
836 '../ui/gfx/gfx.gyp:gfx',
837 '../ui/gfx/gfx.gyp:gfx_geometry',
838 '../ui/gl/gl.gyp:gl',
840 'mojo_environment_chromium',
842 'mojo_service_provider_bindings',
846 'shell/android/library_loader.cc',
847 'shell/android/mojo_main.cc',
848 'shell/android/mojo_main.h',
852 'target_name': 'mojo_shell_apk',
855 '../base/base.gyp:base_java',
856 '../net/net.gyp:net_java',
857 'mojo_native_viewport_java',
861 'apk_name': 'MojoShell',
862 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
863 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
864 'native_lib_target': 'libmojo_shell',
866 'includes': [ '../build/java_apk.gypi' ],
873 'target_name': 'mojo_dbus_service',
874 'type': 'static_library',
876 '../base/base.gyp:base',
877 '../build/linux/system.gyp:dbus',
878 '../dbus/dbus.gyp:dbus',
880 'mojo_external_service_bindings',
885 'dbus/dbus_external_service.h',
886 'dbus/dbus_external_service.cc',
891 ['test_isolation_mode != "noop"', {
894 'target_name': 'mojo_js_unittests_run',
900 '../build/isolate.gypi',
901 'mojo_js_unittests.isolate',
904 'mojo_js_unittests.isolate',
912 'target_name': 'mojo_aura_support',
913 'type': 'static_library',
916 '../ui/aura/aura.gyp:aura',
917 '../ui/compositor/compositor.gyp:compositor',
918 '../ui/events/events.gyp:events',
919 '../ui/events/events.gyp:events_base',
920 '../ui/gl/gl.gyp:gl',
921 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
924 'mojo_native_viewport_bindings',
929 'aura/context_factory_mojo.cc',
930 'aura/context_factory_mojo.h',
931 'aura/screen_mojo.cc',
932 'aura/screen_mojo.h',
933 'aura/window_tree_host_mojo.cc',
934 'aura/window_tree_host_mojo.h',
935 'aura/window_tree_host_mojo_delegate.h',
939 'target_name': 'mojo_views_support',
940 'type': 'static_library',
942 '../base/base.gyp:base',
943 '../base/base.gyp:base_i18n',
944 '../skia/skia.gyp:skia',
945 '../skia/skia.gyp:skia',
946 '../third_party/icu/icu.gyp:icui18n',
947 '../third_party/icu/icu.gyp:icuuc',
948 '../ui/aura/aura.gyp:aura',
949 '../ui/base/ui_base.gyp:ui_base',
950 '../ui/views/views.gyp:views',
951 '../ui/wm/wm.gyp:wm',
955 'views/native_widget_view_manager.cc',
956 'views/native_widget_view_manager.h',
957 'views/views_init.cc',
958 'views/views_init.h',