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 'mojo_application_manager',
29 'mojo_application_manager_unittests',
30 'mojo_apps_js_unittests',
31 'mojo_base.gyp:mojo_base',
33 'mojo_clipboard_unittests',
34 'mojo_compositor_app',
35 'mojo_content_handler_demo',
38 'mojo_example_apptests',
39 'mojo_example_service',
43 'mojo_native_viewport_service',
44 'mojo_network_service',
45 'mojo_pepper_container_app',
53 'mojo_surfaces_child_app',
54 'mojo_surfaces_child_gl_app',
56 'mojo_surfaces_lib_unittests',
57 'mojo_surfaces_service',
59 'mojo_test_request_tracker_app',
60 'mojo_view_manager_lib',
61 'mojo_view_manager_lib_unittests',
68 'mojo_aura_demo_init',
70 'mojo_core_window_manager',
71 'mojo_core_window_manager_unittests',
77 'mojo_window_manager',
79 'mojo_wm_flow_embedded',
83 'mojo_view_manager_unittests',
89 'mojo_dbus_echo_service',
90 'mojo_external_application_tests',
93 ['component != "shared_library" and OS == "linux"', {
95 'mojo_python_bindings',
96 'mojo_python_embedder',
104 # GN version: //mojo/shell:external_service_bindings
105 'target_name': 'mojo_external_service_bindings',
106 'type': 'static_library',
108 'shell/external_service.mojom',
110 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
111 'export_dependent_settings': [
112 'mojo_base.gyp:mojo_cpp_bindings',
115 'mojo_base.gyp:mojo_cpp_bindings',
119 # GN version: //mojo/spy
120 'target_name': 'mojo_spy',
121 'type': 'static_library',
123 '../base/base.gyp:base',
124 '../net/net.gyp:http_server',
125 '../url/url.gyp:url_lib',
126 'mojo_application_manager',
129 'mojom_base_output_dir': 'mojo',
131 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
133 'spy/public/spy.mojom',
137 'spy/spy_server_impl.h',
138 'spy/spy_server_impl.cc',
139 'spy/websocket_server.cc',
140 'spy/websocket_server.h',
144 # GN version: //mojo/shell:lib
145 'target_name': 'mojo_shell_lib',
146 'type': 'static_library',
148 '../base/base.gyp:base',
149 '../base/base.gyp:base_static',
150 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
151 'mojo_application_manager',
152 'mojo_base.gyp:mojo_application_bindings',
153 'mojo_base.gyp:mojo_common_lib',
154 'mojo_base.gyp:mojo_gles2_impl',
155 'mojo_base.gyp:mojo_system_impl',
156 'mojo_base.gyp:mojo_application_chromium',
157 'mojo_external_service_bindings',
158 'mojo_network_bindings',
161 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
163 'shell/app_child_process.cc',
164 'shell/app_child_process.h',
165 'shell/app_child_process.mojom',
166 'shell/app_child_process_host.cc',
167 'shell/app_child_process_host.h',
168 'shell/child_process.cc',
169 'shell/child_process.h',
170 'shell/child_process_host.cc',
171 'shell/child_process_host.h',
174 'shell/dbus_application_loader_linux.cc',
175 'shell/dbus_application_loader_linux.h',
176 'shell/dynamic_application_loader.cc',
177 'shell/dynamic_application_loader.h',
178 'shell/dynamic_service_runner.h',
179 'shell/external_application_listener_posix.cc',
180 'shell/external_application_listener_win.cc',
181 'shell/external_application_listener.h',
182 'shell/external_application_registrar.mojom',
183 'shell/incoming_connection_listener_posix.cc',
184 'shell/incoming_connection_listener_posix.h',
187 'shell/in_process_dynamic_service_runner.cc',
188 'shell/in_process_dynamic_service_runner.h',
189 'shell/mojo_url_resolver.cc',
190 'shell/mojo_url_resolver.h',
191 'shell/out_of_process_dynamic_service_runner.cc',
192 'shell/out_of_process_dynamic_service_runner.h',
195 'shell/task_runners.cc',
196 'shell/task_runners.h',
197 'shell/test_child_process.cc',
198 'shell/test_child_process.h',
199 'shell/ui_application_loader_android.cc',
200 'shell/ui_application_loader_android.h',
203 ['component=="shared_library"', {
205 '../ui/gl/gl.gyp:gl',
210 '../build/linux/system.gyp:dbus',
211 '../dbus/dbus.gyp:dbus',
214 'shell/external_application_registrar_connection.cc',
215 'shell/external_application_registrar_connection.h',
220 'mojo_network_service_lib',
221 'mojo_native_viewport_service_lib',
224 'shell/network_application_loader.cc',
225 'shell/network_application_loader.h',
231 # GN version: //mojo/shell:test_support
232 'target_name': 'mojo_shell_test_support',
233 'type': 'static_library',
235 'mojo_base.gyp:mojo_system_impl',
239 'shell/shell_test_helper.cc',
240 'shell/shell_test_helper.h',
244 # GN version: //mojo/shell
245 'target_name': 'mojo_shell',
246 'type': 'executable',
248 '../base/base.gyp:base',
249 'mojo_base.gyp:mojo_common_lib',
250 'mojo_base.gyp:mojo_environment_chromium',
254 'shell/desktop/mojo_main.cc',
257 ['component=="shared_library"', {
259 '../ui/gfx/gfx.gyp:gfx',
265 # GN version: //mojo/shell:mojo_shell_tests
266 'target_name': 'mojo_shell_tests',
267 'type': '<(gtest_target_type)',
269 '../base/base.gyp:base',
270 '../base/base.gyp:base_i18n',
271 '../base/base.gyp:test_support_base',
272 '../testing/gtest.gyp:gtest',
273 '../net/net.gyp:net_test_support',
274 '../url/url.gyp:url_lib',
275 'mojo_application_manager',
276 'mojo_base.gyp:mojo_common_lib',
277 'mojo_base.gyp:mojo_environment_chromium',
278 'mojo_base.gyp:mojo_system_impl',
281 'mojo_test_request_tracker_app',
282 'mojo_test_service_bindings',
285 'shell/child_process_host_unittest.cc',
286 'shell/dynamic_application_loader_unittest.cc',
287 'shell/in_process_dynamic_service_runner_unittest.cc',
288 'shell/shell_test_base.cc',
289 'shell/shell_test_base.h',
290 'shell/shell_test_base_unittest.cc',
291 'shell/shell_test_main.cc',
294 ['OS == "android"', {
296 '../testing/android/native_test.gyp:native_test_native_code',
302 # GN version: //mojo/application_manager
303 'target_name': 'mojo_application_manager',
304 'type': '<(component)',
306 'MOJO_APPLICATION_MANAGER_IMPLEMENTATION',
309 '../base/base.gyp:base',
310 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
311 '../url/url.gyp:url_lib',
312 'mojo_content_handler_bindings',
313 'mojo_network_bindings',
314 'mojo_base.gyp:mojo_application_bindings',
315 'mojo_base.gyp:mojo_common_lib',
316 'mojo_base.gyp:mojo_environment_chromium',
317 '<(mojo_system_for_component)',
320 'application_manager/application_loader.cc',
321 'application_manager/application_loader.h',
322 'application_manager/application_manager.cc',
323 'application_manager/application_manager.h',
324 'application_manager/application_manager_export.h',
325 'application_manager/background_shell_application_loader.cc',
326 'application_manager/background_shell_application_loader.h',
328 'export_dependent_settings': [
329 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
330 'mojo_base.gyp:mojo_application_bindings',
331 'mojo_network_bindings',
335 # GN version: //mojo/application_manager:mojo_application_manager_unittests
336 'target_name': 'mojo_application_manager_unittests',
337 'type': 'executable',
339 '../base/base.gyp:base',
340 '../testing/gtest.gyp:gtest',
341 '../url/url.gyp:url_lib',
342 'mojo_application_manager',
343 'mojo_base.gyp:mojo_common_lib',
344 'mojo_base.gyp:mojo_cpp_bindings',
345 'mojo_base.gyp:mojo_environment_chromium',
346 'mojo_base.gyp:mojo_run_all_unittests',
347 'mojo_base.gyp:mojo_application_chromium',
349 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
351 'application_manager/application_manager_unittest.cc',
352 'application_manager/background_shell_application_loader_unittest.cc',
353 'application_manager/test.mojom',
357 # GN version: //mojo/cc
358 'target_name': 'mojo_cc_support',
359 'type': 'static_library',
361 '../base/base.gyp:base',
363 '../cc/cc.gyp:cc_surfaces',
364 '../skia/skia.gyp:skia',
365 '../gpu/gpu.gyp:gles2_implementation',
367 'mojo_surfaces_bindings',
371 'mojo_public_gles2_for_loadable_module.gypi',
373 'export_dependent_settings': [
374 'mojo_surfaces_bindings',
377 'cc/context_provider_mojo.cc',
378 'cc/context_provider_mojo.h',
379 'cc/output_surface_mojo.cc',
380 'cc/output_surface_mojo.h',
388 'target_name': 'mojo_native_viewport_java',
391 '../base/base.gyp:base_java',
394 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
396 'includes': [ '../build/java.gypi' ],
399 'target_name': 'libmojo_shell',
400 'type': 'shared_library',
402 '../base/base.gyp:base',
403 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
404 '../ui/gfx/gfx.gyp:gfx',
405 '../ui/gfx/gfx.gyp:gfx_geometry',
406 '../ui/gl/gl.gyp:gl',
407 'mojo_base.gyp:mojo_application_bindings',
408 'mojo_base.gyp:mojo_common_lib',
409 'mojo_base.gyp:mojo_environment_chromium',
410 'mojo_base.gyp:mojo_jni_headers',
414 'shell/android/library_loader.cc',
415 'shell/android/mojo_main.cc',
416 'shell/android/mojo_main.h',
420 'target_name': 'mojo_shell_apk',
423 '../base/base.gyp:base_java',
424 '../net/net.gyp:net_java',
425 'mojo_native_viewport_java',
429 'apk_name': 'MojoShell',
430 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
431 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
432 'native_lib_target': 'libmojo_shell',
434 'includes': [ '../build/java_apk.gypi' ],
441 # GN version: //mojo/dbus
442 'target_name': 'mojo_dbus_service',
443 'type': 'static_library',
445 '../base/base.gyp:base',
446 '../build/linux/system.gyp:dbus',
447 '../dbus/dbus.gyp:dbus',
448 'mojo_base.gyp:mojo_application_chromium',
449 'mojo_base.gyp:mojo_common_lib',
450 'mojo_base.gyp:mojo_system_impl',
451 'mojo_external_service_bindings',
454 'dbus/dbus_external_service.h',
455 'dbus/dbus_external_service.cc',
459 # GN version: //mojo/shell:mojo_external_application_tests
460 'target_name': 'mojo_external_application_tests',
461 'type': '<(gtest_target_type)',
463 '../base/base.gyp:base',
464 '../base/base.gyp:test_support_base',
465 '../testing/gtest.gyp:gtest',
466 '../net/net.gyp:net_test_support',
467 '../url/url.gyp:url_lib',
468 'mojo_application_manager',
469 'mojo_base.gyp:mojo_common_lib',
470 'mojo_base.gyp:mojo_environment_chromium',
471 'mojo_base.gyp:mojo_system_impl',
475 'shell/incoming_connection_listener_unittest.cc',
476 'shell/external_application_listener_unittest.cc',
477 'shell/external_application_test_main.cc',
485 # GN version: //mojo/aura
486 'target_name': 'mojo_aura_support',
487 'type': 'static_library',
490 '../ui/aura/aura.gyp:aura',
491 '../ui/compositor/compositor.gyp:compositor',
492 '../ui/events/events.gyp:events',
493 '../ui/events/events.gyp:events_base',
495 'mojo_native_viewport_bindings',
498 'mojo_public_gles2_for_loadable_module.gypi',
503 'aura/context_factory_mojo.cc',
504 'aura/context_factory_mojo.h',
505 'aura/screen_mojo.cc',
506 'aura/screen_mojo.h',
507 'aura/window_tree_host_mojo.cc',
508 'aura/window_tree_host_mojo.h',
509 'aura/window_tree_host_mojo_delegate.h',
513 # GN version: //mojo/views
514 'target_name': 'mojo_views_support',
515 'type': 'static_library',
517 '../base/base.gyp:base',
518 '../base/base.gyp:base_i18n',
519 '../skia/skia.gyp:skia',
520 '../third_party/icu/icu.gyp:icui18n',
521 '../third_party/icu/icu.gyp:icuuc',
522 '../ui/aura/aura.gyp:aura',
523 '../ui/base/ui_base.gyp:ui_base',
524 '../ui/views/views.gyp:views',
525 '../ui/wm/wm.gyp:wm',
527 'mojo_views_support_internal',
528 'mojo_view_manager_bindings',
531 'views/input_method_mojo_linux.cc',
532 'views/input_method_mojo_linux.h',
533 'views/native_widget_view_manager.cc',
534 'views/native_widget_view_manager.h',
535 'views/views_init.cc',
536 'views/views_init.h',
540 # GN version: //mojo/views:views_internal
541 'target_name': 'mojo_views_support_internal',
542 'type': '<(component)',
544 '../base/base.gyp:base',
545 '../base/base.gyp:base_i18n',
546 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
547 '../skia/skia.gyp:skia',
548 '../third_party/icu/icu.gyp:icui18n',
549 '../third_party/icu/icu.gyp:icuuc',
550 '../ui/base/ui_base.gyp:ui_base',
551 '../ui/gfx/gfx.gyp:gfx',
554 'views/mojo_views_export.h',
555 'views/views_init_internal.cc',
556 'views/views_init_internal.h',
559 'MOJO_VIEWS_IMPLEMENTATION',
564 ['component!="shared_library" and OS=="linux"', {
567 # GN version: //mojo/public/python:system
568 'target_name': 'mojo_python_system',
570 'python_base_module': 'mojo',
571 'python_cython_module': 'system',
574 'public/python/mojo/c_core.pxd',
575 'public/python/mojo/c_environment.pxd',
576 'public/python/mojo/system.pyx',
577 'public/python/src/python_system_helper.cc',
578 'public/python/src/python_system_helper.h',
581 'mojo_base.gyp:mojo_environment_standalone',
582 'mojo_base.gyp:mojo_system',
583 'mojo_base.gyp:mojo_utility',
585 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
588 # GN version: //mojo/python:embedder
589 'target_name': 'mojo_python_embedder',
590 'type': 'loadable_module',
592 'python_base_module': 'mojo',
593 'python_cython_module': 'embedder',
596 'python/system/mojo/embedder.pyx',
599 'mojo_base.gyp:mojo_system_impl',
601 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
604 # GN version: //mojo/public/python:bindings
605 'target_name': 'mojo_python_bindings',
608 'python_base_module': 'mojo/bindings',
611 'public/python/mojo/bindings/__init__.py',
612 'public/python/mojo/bindings/descriptor.py',
613 'public/python/mojo/bindings/messaging.py',
614 'public/python/mojo/bindings/promise.py',
615 'public/python/mojo/bindings/reflection.py',
616 'public/python/mojo/bindings/serialization.py',
619 'mojo_python_system',
621 'includes': [ '../third_party/cython/python_module.gypi' ],
624 # GN version: //mojo/python
625 'target_name': 'mojo_python',
628 'python_base_module': 'mojo',
631 'public/python/mojo/__init__.py',
634 'mojo_python_bindings',
635 'mojo_python_embedder',
636 'mojo_python_system',
638 # The python module need to be copied to their destinations
641 'action_name': 'Copy system module.',
643 '<(DEPTH)/build/cp.py',
644 '<(PRODUCT_DIR)/libmojo_python_system.so',
647 '<(PRODUCT_DIR)/python/mojo/system.so',
656 'action_name': 'Copy embedder module.',
658 '<(DEPTH)/build/cp.py',
659 '<(PRODUCT_DIR)/libmojo_python_embedder.so',
662 '<(PRODUCT_DIR)/python/mojo/embedder.so',
671 'includes': [ '../third_party/cython/python_module.gypi' ],
675 ['component!="shared_library" and OS=="linux" and test_isolation_mode!="noop"', {
678 'target_name': 'mojo_python_unittests_run',
682 'mojo_base.gyp:mojo_public_test_interfaces',
685 '../build/isolate.gypi',
686 'mojo_python_unittests.isolate',
689 'mojo_python_unittests.isolate',