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)"',
20 'mojo_variables.gypi',
25 'target_name': 'mojo',
28 'edk/mojo_edk.gyp:mojo_edk',
29 'mojo_application_manager',
30 'mojo_application_manager_unittests',
31 'mojo_apps_js_unittests',
32 'mojo_base.gyp:mojo_base',
34 'mojo_clipboard_unittests',
35 'mojo_compositor_app',
36 'mojo_content_handler_demo',
39 'mojo_example_apptests',
40 'mojo_example_service',
43 'mojo_input_events_lib',
44 'mojo_js_content_handler',
47 'mojo_native_viewport_service',
48 'mojo_network_service',
49 'mojo_pepper_container_app',
57 'mojo_surfaces_child_app',
58 'mojo_surfaces_child_gl_app',
60 'mojo_surfaces_lib_unittests',
61 'mojo_surfaces_service',
63 'mojo_test_request_tracker_app',
64 'mojo_view_manager_lib_unittests',
66 'services/public/mojo_services_public.gyp:mojo_services_public',
67 'public/mojo_public.gyp:mojo_public',
73 'mojo_aura_demo_init',
75 'mojo_core_window_manager',
76 'mojo_core_window_manager_unittests',
83 'mojo_view_manager_unittests',
84 'mojo_window_manager',
86 'mojo_wm_flow_embedded',
93 'mojo_external_application_tests',
96 ['component != "shared_library" and OS == "linux"', {
98 'mojo_python_bindings',
99 'mojo_python_embedder',
100 'mojo_python_system',
107 # GN version: //mojo/shell:external_service_bindings
108 'target_name': 'mojo_external_service_bindings',
109 'type': 'static_library',
111 'shell/external_service.mojom',
113 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
114 'export_dependent_settings': [
115 'public/mojo_public.gyp:mojo_cpp_bindings',
118 'public/mojo_public.gyp:mojo_cpp_bindings',
122 # GN version: //mojo/spy
123 'target_name': 'mojo_spy',
124 'type': 'static_library',
126 '../base/base.gyp:base',
127 '../net/net.gyp:http_server',
128 '../url/url.gyp:url_lib',
129 'mojo_application_manager',
132 'mojom_base_output_dir': 'mojo',
134 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
136 'spy/public/spy.mojom',
140 'spy/spy_server_impl.h',
141 'spy/spy_server_impl.cc',
142 'spy/websocket_server.cc',
143 'spy/websocket_server.h',
147 # GN version: //mojo/shell:lib
148 'target_name': 'mojo_shell_lib',
149 'type': 'static_library',
151 '../base/base.gyp:base',
152 '../base/base.gyp:base_static',
153 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
154 'edk/mojo_edk.gyp:mojo_system_impl',
155 'mojo_application_manager',
156 'mojo_base.gyp:mojo_application_chromium',
157 'mojo_base.gyp:mojo_common_lib',
158 'mojo_external_service_bindings',
160 'services/public/mojo_services_public.gyp:mojo_network_bindings',
162 'public/mojo_public.gyp:mojo_application_bindings',
164 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
166 'shell/app_child_process.cc',
167 'shell/app_child_process.h',
168 'shell/app_child_process.mojom',
169 'shell/app_child_process_host.cc',
170 'shell/app_child_process_host.h',
171 'shell/child_process.cc',
172 'shell/child_process.h',
173 'shell/child_process_host.cc',
174 'shell/child_process_host.h',
177 'shell/dynamic_application_loader.cc',
178 'shell/dynamic_application_loader.h',
179 'shell/dynamic_service_runner.h',
180 'shell/external_application_listener_posix.cc',
181 'shell/external_application_listener_win.cc',
182 'shell/external_application_listener.h',
183 'shell/external_application_registrar.mojom',
184 'shell/incoming_connection_listener_posix.cc',
185 'shell/incoming_connection_listener_posix.h',
188 'shell/in_process_dynamic_service_runner.cc',
189 'shell/in_process_dynamic_service_runner.h',
190 'shell/mojo_url_resolver.cc',
191 'shell/mojo_url_resolver.h',
192 'shell/out_of_process_dynamic_service_runner.cc',
193 'shell/out_of_process_dynamic_service_runner.h',
196 'shell/task_runners.cc',
197 'shell/task_runners.h',
198 'shell/test_child_process.cc',
199 'shell/test_child_process.h',
200 'shell/ui_application_loader_android.cc',
201 'shell/ui_application_loader_android.h',
204 ['component=="shared_library"', {
206 '../ui/gl/gl.gyp:gl',
211 'shell/external_application_registrar_connection.cc',
212 'shell/external_application_registrar_connection.h',
217 'mojo_network_service_lib',
218 'mojo_native_viewport_service_lib',
221 'shell/network_application_loader.cc',
222 'shell/network_application_loader.h',
228 # GN version: //mojo/shell:test_support
229 'target_name': 'mojo_shell_test_support',
230 'type': 'static_library',
232 'edk/mojo_edk.gyp:mojo_system_impl',
236 'shell/shell_test_helper.cc',
237 'shell/shell_test_helper.h',
241 # GN version: //mojo/shell
242 'target_name': 'mojo_shell',
243 'type': 'executable',
245 '../base/base.gyp:base',
246 'mojo_base.gyp:mojo_common_lib',
247 'mojo_base.gyp:mojo_environment_chromium',
251 'shell/desktop/mojo_main.cc',
254 ['component=="shared_library"', {
256 '../ui/gfx/gfx.gyp:gfx',
262 # GN version: //mojo/shell:mojo_shell_tests
263 'target_name': 'mojo_shell_tests',
264 'type': '<(gtest_target_type)',
266 '../base/base.gyp:base',
267 '../base/base.gyp:base_i18n',
268 '../base/base.gyp:test_support_base',
269 '../testing/gtest.gyp:gtest',
270 '../net/net.gyp:net_test_support',
271 '../url/url.gyp:url_lib',
272 'edk/mojo_edk.gyp:mojo_system_impl',
273 'mojo_application_manager',
274 'mojo_base.gyp:mojo_common_lib',
275 'mojo_base.gyp:mojo_environment_chromium',
278 'mojo_test_request_tracker_app',
279 'mojo_test_service_bindings',
282 'shell/child_process_host_unittest.cc',
283 'shell/dynamic_application_loader_unittest.cc',
284 'shell/in_process_dynamic_service_runner_unittest.cc',
285 'shell/shell_test_base.cc',
286 'shell/shell_test_base.h',
287 'shell/shell_test_base_unittest.cc',
288 'shell/shell_test_main.cc',
291 ['OS == "android"', {
293 '../testing/android/native_test.gyp:native_test_native_code',
299 # GN version: //mojo/application_manager
300 'target_name': 'mojo_application_manager',
301 'type': '<(component)',
303 'MOJO_APPLICATION_MANAGER_IMPLEMENTATION',
306 '../base/base.gyp:base',
307 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
308 '../url/url.gyp:url_lib',
309 'services/public/mojo_services_public.gyp:mojo_content_handler_bindings',
310 'services/public/mojo_services_public.gyp:mojo_network_bindings',
311 'mojo_base.gyp:mojo_common_lib',
312 'mojo_base.gyp:mojo_environment_chromium',
313 'public/mojo_public.gyp:mojo_application_bindings',
314 '<(mojo_system_for_component)',
317 'application_manager/application_loader.cc',
318 'application_manager/application_loader.h',
319 'application_manager/application_manager.cc',
320 'application_manager/application_manager.h',
321 'application_manager/application_manager_export.h',
322 'application_manager/background_shell_application_loader.cc',
323 'application_manager/background_shell_application_loader.h',
325 'export_dependent_settings': [
326 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
327 'public/mojo_public.gyp:mojo_application_bindings',
328 'services/public/mojo_services_public.gyp:mojo_network_bindings',
332 # GN version: //mojo/application_manager:mojo_application_manager_unittests
333 'target_name': 'mojo_application_manager_unittests',
334 'type': 'executable',
336 '../base/base.gyp:base',
337 '../testing/gtest.gyp:gtest',
338 '../url/url.gyp:url_lib',
339 'edk/mojo_edk.gyp:mojo_run_all_unittests',
340 'mojo_application_manager',
341 'mojo_base.gyp:mojo_application_chromium',
342 'mojo_base.gyp:mojo_common_lib',
343 'mojo_base.gyp:mojo_environment_chromium',
344 'public/mojo_public.gyp:mojo_cpp_bindings',
346 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
348 'application_manager/application_manager_unittest.cc',
349 'application_manager/background_shell_application_loader_unittest.cc',
350 'application_manager/test.mojom',
354 # GN version: //mojo/cc
355 'target_name': 'mojo_cc_support',
356 'type': 'static_library',
358 '../base/base.gyp:base',
360 '../cc/cc.gyp:cc_surfaces',
361 '../skia/skia.gyp:skia',
362 '../gpu/gpu.gyp:gles2_implementation',
365 'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
368 'mojo_public_gles2_for_loadable_module.gypi',
370 'export_dependent_settings': [
371 'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
374 'cc/context_provider_mojo.cc',
375 'cc/context_provider_mojo.h',
376 'cc/output_surface_mojo.cc',
377 'cc/output_surface_mojo.h',
381 # GN version: //mojo/gles2
382 'target_name': 'mojo_gles2_impl',
383 'type': '<(component)',
385 '../base/base.gyp:base',
386 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
387 '../gpu/gpu.gyp:command_buffer_client',
388 '../gpu/gpu.gyp:command_buffer_common',
389 '../gpu/gpu.gyp:gles2_cmd_helper',
390 '../gpu/gpu.gyp:gles2_implementation',
391 'mojo_base.gyp:mojo_environment_chromium',
393 'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
394 '<(mojo_system_for_component)',
398 'GL_GLEXT_PROTOTYPES',
399 'MOJO_GLES2_IMPLEMENTATION',
400 'MOJO_GLES2_IMPL_IMPLEMENTATION',
401 'MOJO_USE_GLES2_IMPL'
403 'direct_dependent_settings': {
408 'export_dependent_settings': [
409 'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
412 'gles2/command_buffer_client_impl.cc',
413 'gles2/command_buffer_client_impl.h',
414 'gles2/gles2_impl_export.h',
415 'gles2/gles2_impl.cc',
416 'gles2/gles2_context.cc',
417 'gles2/gles2_context.h',
419 'all_dependent_settings': {
420 # Ensures that dependent projects import the core functions on Windows.
421 'defines': ['MOJO_USE_GLES2_IMPL'],
425 # GN version: //mojo/bindings/js/tests:mojo_js_unittests
426 'target_name': 'mojo_js_unittests',
427 'type': 'executable',
429 '../gin/gin.gyp:gin_test',
430 'edk/mojo_edk.gyp:mojo_common_test_support',
431 'edk/mojo_edk.gyp:mojo_run_all_unittests',
432 'mojo_base.gyp:mojo_js_bindings_lib',
433 'public/mojo_public.gyp:mojo_environment_standalone',
434 'public/mojo_public.gyp:mojo_public_test_interfaces',
435 'public/mojo_public.gyp:mojo_utility',
438 'bindings/js/tests/run_js_tests.cc',
446 'target_name': 'mojo_native_viewport_java',
449 '../base/base.gyp:base_java',
452 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
454 'includes': [ '../build/java.gypi' ],
457 'target_name': 'libmojo_shell',
458 'type': 'shared_library',
460 '../base/base.gyp:base',
461 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
462 '../ui/gfx/gfx.gyp:gfx',
463 '../ui/gfx/gfx.gyp:gfx_geometry',
464 '../ui/gl/gl.gyp:gl',
465 'mojo_base.gyp:mojo_common_lib',
466 'mojo_base.gyp:mojo_environment_chromium',
467 'mojo_base.gyp:mojo_jni_headers',
469 'public/mojo_public.gyp:mojo_application_bindings',
472 'shell/android/library_loader.cc',
473 'shell/android/mojo_main.cc',
474 'shell/android/mojo_main.h',
478 'target_name': 'mojo_shell_apk',
481 '../base/base.gyp:base_java',
482 '../net/net.gyp:net_java',
483 'mojo_native_viewport_java',
487 'apk_name': 'MojoShell',
488 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
489 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
490 'native_lib_target': 'libmojo_shell',
492 'includes': [ '../build/java_apk.gypi' ],
499 # GN version: //mojo/shell:mojo_external_application_tests
500 'target_name': 'mojo_external_application_tests',
501 'type': '<(gtest_target_type)',
503 '../base/base.gyp:base',
504 '../base/base.gyp:test_support_base',
505 '../testing/gtest.gyp:gtest',
506 '../net/net.gyp:net_test_support',
507 '../url/url.gyp:url_lib',
508 'edk/mojo_edk.gyp:mojo_system_impl',
509 'mojo_application_manager',
510 'mojo_base.gyp:mojo_common_lib',
511 'mojo_base.gyp:mojo_environment_chromium',
515 'shell/incoming_connection_listener_unittest.cc',
516 'shell/external_application_listener_unittest.cc',
517 'shell/external_application_test_main.cc',
525 # GN version: //mojo/aura
526 'target_name': 'mojo_aura_support',
527 'type': 'static_library',
530 '../ui/aura/aura.gyp:aura',
531 '../ui/compositor/compositor.gyp:compositor',
532 '../ui/events/events.gyp:events',
533 '../ui/events/events.gyp:events_base',
537 'mojo_view_manager_lib',
538 'public/mojo_public.gyp:mojo_application_base',
539 'public/mojo_public.gyp:mojo_application_bindings',
540 'services/public/mojo_services_public.gyp:mojo_native_viewport_bindings',
543 'mojo_public_gles2_for_loadable_module.gypi',
548 'aura/screen_mojo.cc',
549 'aura/screen_mojo.h',
550 'aura/surface_binding.cc',
551 'aura/surface_binding.h',
552 'aura/surface_context_factory.cc',
553 'aura/surface_context_factory.h',
554 'aura/window_tree_host_mojo.cc',
555 'aura/window_tree_host_mojo.h',
559 # GN version: //mojo/views
560 'target_name': 'mojo_views_support',
561 'type': 'static_library',
563 '../base/base.gyp:base',
564 '../base/base.gyp:base_i18n',
565 '../skia/skia.gyp:skia',
566 '../third_party/icu/icu.gyp:icui18n',
567 '../third_party/icu/icu.gyp:icuuc',
568 '../ui/aura/aura.gyp:aura',
569 '../ui/base/ui_base.gyp:ui_base',
570 '../ui/views/views.gyp:views',
571 '../ui/wm/wm.gyp:wm',
573 'mojo_views_support_internal',
574 'mojo_view_manager_lib',
575 'services/public/mojo_services_public.gyp:mojo_view_manager_bindings',
578 'views/input_method_mojo_linux.cc',
579 'views/input_method_mojo_linux.h',
580 'views/native_widget_view_manager.cc',
581 'views/native_widget_view_manager.h',
582 'views/views_init.cc',
583 'views/views_init.h',
587 # GN version: //mojo/views:views_internal
588 'target_name': 'mojo_views_support_internal',
589 'type': '<(component)',
591 '../base/base.gyp:base',
592 '../base/base.gyp:base_i18n',
593 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
594 '../skia/skia.gyp:skia',
595 '../third_party/icu/icu.gyp:icui18n',
596 '../third_party/icu/icu.gyp:icuuc',
597 '../ui/base/ui_base.gyp:ui_base',
598 '../ui/gfx/gfx.gyp:gfx',
601 'views/mojo_views_export.h',
602 'views/views_init_internal.cc',
603 'views/views_init_internal.h',
606 'MOJO_VIEWS_IMPLEMENTATION',
610 # GN version: //mojo/services/public/cpp/view_manager/lib:run_unittests
611 'target_name': 'mojo_view_manager_run_unittests',
612 'type': 'static_library',
614 '../base/base.gyp:base',
615 '../base/base.gyp:test_support_base',
618 'services/public/cpp/view_manager/lib/view_manager_test_suite.cc',
619 'services/public/cpp/view_manager/lib/view_manager_test_suite.h',
620 'services/public/cpp/view_manager/lib/view_manager_unittests.cc',
625 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
632 ['component!="shared_library" and OS=="linux"', {
635 # GN version: //mojo/public/python:system
636 'target_name': 'mojo_python_system',
638 'python_base_module': 'mojo',
639 'python_cython_module': 'system',
642 'public/python/mojo/c_core.pxd',
643 'public/python/mojo/c_environment.pxd',
644 'public/python/mojo/system.pyx',
645 'public/python/src/python_system_helper.cc',
646 'public/python/src/python_system_helper.h',
649 'public/mojo_public.gyp:mojo_environment_standalone',
650 'public/mojo_public.gyp:mojo_system',
651 'public/mojo_public.gyp:mojo_utility',
653 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
656 # GN version: //mojo/python:embedder
657 'target_name': 'mojo_python_embedder',
658 'type': 'loadable_module',
660 'python_base_module': 'mojo',
661 'python_cython_module': 'embedder',
664 'python/system/mojo/embedder.pyx',
667 'edk/mojo_edk.gyp:mojo_system_impl',
669 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
672 # GN version: //mojo/public/python:bindings
673 'target_name': 'mojo_python_bindings',
676 'python_base_module': 'mojo/bindings',
679 'public/python/mojo/bindings/__init__.py',
680 'public/python/mojo/bindings/descriptor.py',
681 'public/python/mojo/bindings/messaging.py',
682 'public/python/mojo/bindings/promise.py',
683 'public/python/mojo/bindings/reflection.py',
684 'public/python/mojo/bindings/serialization.py',
687 'mojo_python_system',
689 'includes': [ '../third_party/cython/python_module.gypi' ],
692 # GN version: //mojo/python
693 'target_name': 'mojo_python',
696 'python_base_module': 'mojo',
699 'public/python/mojo/__init__.py',
702 'mojo_python_bindings',
703 'mojo_python_embedder',
704 'mojo_python_system',
706 # The python module need to be copied to their destinations
709 'action_name': 'Copy system module.',
711 '<(DEPTH)/build/cp.py',
712 '<(PRODUCT_DIR)/libmojo_python_system.so',
715 '<(PRODUCT_DIR)/python/mojo/system.so',
724 'action_name': 'Copy embedder module.',
726 '<(DEPTH)/build/cp.py',
727 '<(PRODUCT_DIR)/libmojo_python_embedder.so',
730 '<(PRODUCT_DIR)/python/mojo/embedder.so',
739 'includes': [ '../third_party/cython/python_module.gypi' ],
743 ['component!="shared_library" and OS=="linux" and test_isolation_mode!="noop"', {
746 'target_name': 'mojo_python_unittests_run',
750 'public/mojo_public.gyp:mojo_public_test_interfaces',
753 '../build/isolate.gypi',
756 'mojo_python_unittests.isolate',
761 ['test_isolation_mode != "noop"', {
764 'target_name': 'mojo_js_unittests_run',
770 '../build/isolate.gypi',
773 'mojo_js_unittests.isolate',