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',
32 'mojo_compositor_app',
33 'mojo_content_handler_demo',
36 'mojo_example_apptests',
37 'mojo_example_service',
41 'mojo_native_viewport_service_lib',
42 'mojo_network_service',
43 'mojo_pepper_container_app',
51 'mojo_surfaces_child_app',
52 'mojo_surfaces_child_gl_app',
54 'mojo_surfaces_lib_unittests',
55 'mojo_surfaces_service',
57 'mojo_test_request_tracker_app',
58 'mojo_view_manager_lib',
59 'mojo_view_manager_lib_unittests',
66 'mojo_aura_demo_init',
68 'mojo_core_window_manager',
69 'mojo_core_window_manager_unittests',
75 'mojo_window_manager',
77 'mojo_wm_flow_embedded',
81 'mojo_view_manager_unittests',
87 'mojo_dbus_echo_service',
90 ['component != "shared_library" and OS == "linux"', {
92 'mojo_python_bindings',
93 'mojo_python_embedder',
101 # GN version: //mojo/shell:external_service_bindings
102 'target_name': 'mojo_external_service_bindings',
103 'type': 'static_library',
105 'shell/external_service.mojom',
107 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
108 'export_dependent_settings': [
109 'mojo_base.gyp:mojo_cpp_bindings',
112 'mojo_base.gyp:mojo_cpp_bindings',
116 # GN version: //mojo/spy
117 'target_name': 'mojo_spy',
118 'type': 'static_library',
120 '../base/base.gyp:base',
121 '../base/base.gyp:base_static',
122 '../net/net.gyp:http_server',
123 '../url/url.gyp:url_lib',
124 'mojo_application_manager',
127 'mojom_base_output_dir': 'mojo',
129 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
131 'spy/public/spy.mojom',
135 'spy/spy_server_impl.h',
136 'spy/spy_server_impl.cc',
137 'spy/websocket_server.cc',
138 'spy/websocket_server.h',
142 # GN version: //mojo/shell:lib
143 'target_name': 'mojo_shell_lib',
144 'type': 'static_library',
146 '../base/base.gyp:base',
147 '../base/base.gyp:base_static',
148 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
149 '../net/net.gyp:net',
150 '../url/url.gyp:url_lib',
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_native_viewport_service_lib',
159 'mojo_network_bindings',
162 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
164 'shell/app_child_process.cc',
165 'shell/app_child_process.h',
166 'shell/app_child_process.mojom',
167 'shell/app_child_process_host.cc',
168 'shell/app_child_process_host.h',
169 'shell/child_process.cc',
170 'shell/child_process.h',
171 'shell/child_process_host.cc',
172 'shell/child_process_host.h',
175 'shell/dbus_application_loader_linux.cc',
176 'shell/dbus_application_loader_linux.h',
177 'shell/dynamic_application_loader.cc',
178 'shell/dynamic_application_loader.h',
179 'shell/dynamic_service_runner.h',
182 'shell/in_process_dynamic_service_runner.cc',
183 'shell/in_process_dynamic_service_runner.h',
184 'shell/mojo_url_resolver.cc',
185 'shell/mojo_url_resolver.h',
186 'shell/out_of_process_dynamic_service_runner.cc',
187 'shell/out_of_process_dynamic_service_runner.h',
190 'shell/task_runners.cc',
191 'shell/task_runners.h',
192 'shell/test_child_process.cc',
193 'shell/test_child_process.h',
194 'shell/ui_application_loader_android.cc',
195 'shell/ui_application_loader_android.h',
196 'shell/view_manager_loader.cc',
197 'shell/view_manager_loader.h',
202 '../build/linux/system.gyp:dbus',
203 '../dbus/dbus.gyp:dbus',
208 'mojo_network_service_lib',
211 'shell/network_application_loader.cc',
212 'shell/network_application_loader.h',
217 # These are only necessary as long as we hard code use of ViewManager.
218 '../skia/skia.gyp:skia',
220 'mojo_view_manager_bindings',
224 'shell/view_manager_loader.cc',
225 'shell/view_manager_loader.h',
231 # GN version: //mojo/shell:test_support
232 'target_name': 'mojo_shell_test_support',
233 'type': 'static_library',
235 '../base/base.gyp:base',
236 '../base/base.gyp:base_static',
237 '../url/url.gyp:url_lib',
238 'mojo_application_manager',
239 'mojo_base.gyp:mojo_system_impl',
243 'shell/shell_test_helper.cc',
244 'shell/shell_test_helper.h',
248 # GN version: //mojo/shell
249 'target_name': 'mojo_shell',
250 'type': 'executable',
252 '../base/base.gyp:base',
253 '../ui/gl/gl.gyp:gl',
254 '../url/url.gyp:url_lib',
255 'mojo_application_manager',
256 'mojo_base.gyp:mojo_common_lib',
257 'mojo_base.gyp:mojo_environment_chromium',
258 'mojo_base.gyp:mojo_system_impl',
264 '../ui/ozone/ozone.gyp:ozone',
269 'shell/desktop/mojo_main.cc',
273 # GN version: //mojo/shell:mojo_shell_tests
274 'target_name': 'mojo_shell_tests',
275 'type': '<(gtest_target_type)',
277 '../base/base.gyp:base',
278 '../base/base.gyp:base_i18n',
279 '../base/base.gyp:test_support_base',
280 '../testing/gtest.gyp:gtest',
281 '../net/net.gyp:net_test_support',
282 # TODO(vtl): We don't currently need this, but I imagine we will soon.
283 # '../ui/gl/gl.gyp:gl',
284 '../url/url.gyp:url_lib',
285 'mojo_application_manager',
286 'mojo_base.gyp:mojo_common_lib',
287 'mojo_base.gyp:mojo_environment_chromium',
288 'mojo_base.gyp:mojo_system_impl',
291 'mojo_test_request_tracker_app',
292 'mojo_test_service_bindings',
295 'shell/child_process_host_unittest.cc',
296 'shell/dynamic_application_loader_unittest.cc',
297 'shell/in_process_dynamic_service_runner_unittest.cc',
298 'shell/shell_test_base.cc',
299 'shell/shell_test_base.h',
300 'shell/shell_test_base_unittest.cc',
301 'shell/shell_test_main.cc',
304 ['OS == "android"', {
306 '../testing/android/native_test.gyp:native_test_native_code',
312 # GN version: //mojo/application_manager
313 'target_name': 'mojo_application_manager',
314 'type': '<(component)',
316 'MOJO_APPLICATION_MANAGER_IMPLEMENTATION',
319 '../base/base.gyp:base',
320 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
321 '../net/net.gyp:net',
322 '../url/url.gyp:url_lib',
323 'mojo_content_handler_bindings',
324 'mojo_network_bindings',
325 'mojo_base.gyp:mojo_application_bindings',
326 'mojo_base.gyp:mojo_common_lib',
327 'mojo_base.gyp:mojo_environment_chromium',
328 '<(mojo_system_for_component)',
331 'application_manager/application_loader.cc',
332 'application_manager/application_loader.h',
333 'application_manager/application_manager.cc',
334 'application_manager/application_manager.h',
335 'application_manager/application_manager_export.h',
336 'application_manager/background_shell_application_loader.cc',
337 'application_manager/background_shell_application_loader.h',
339 'export_dependent_settings': [
340 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
341 'mojo_base.gyp:mojo_application_bindings',
342 'mojo_network_bindings',
346 # GN version: //mojo/application_manager:unittests
347 'target_name': 'mojo_application_manager_unittests',
348 'type': 'executable',
350 '../base/base.gyp:base',
351 '../testing/gtest.gyp:gtest',
352 '../url/url.gyp:url_lib',
353 'mojo_application_manager',
354 'mojo_base.gyp:mojo_common_lib',
355 'mojo_base.gyp:mojo_cpp_bindings',
356 'mojo_base.gyp:mojo_environment_chromium',
357 'mojo_base.gyp:mojo_run_all_unittests',
358 'mojo_base.gyp:mojo_application_chromium',
360 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
362 'application_manager/application_manager_unittest.cc',
363 'application_manager/background_shell_application_loader_unittest.cc',
364 'application_manager/test.mojom',
368 # GN version: //mojo/cc
369 'target_name': 'mojo_cc_support',
370 'type': 'static_library',
372 '../base/base.gyp:base',
374 '../cc/cc.gyp:cc_surfaces',
375 '../skia/skia.gyp:skia',
376 '../gpu/gpu.gyp:gles2_implementation',
378 'mojo_surfaces_bindings',
382 'mojo_public_gles2_for_loadable_module.gypi',
384 'export_dependent_settings': [
385 'mojo_surfaces_bindings',
388 'cc/context_provider_mojo.cc',
389 'cc/context_provider_mojo.h',
390 'cc/output_surface_mojo.cc',
391 'cc/output_surface_mojo.h',
399 'target_name': 'mojo_native_viewport_java',
402 '../base/base.gyp:base_java',
405 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
407 'includes': [ '../build/java.gypi' ],
410 'target_name': 'libmojo_shell',
411 'type': 'shared_library',
413 '../base/base.gyp:base',
414 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
415 '../ui/gfx/gfx.gyp:gfx',
416 '../ui/gfx/gfx.gyp:gfx_geometry',
417 '../ui/gl/gl.gyp:gl',
418 'mojo_base.gyp:mojo_application_bindings',
419 'mojo_base.gyp:mojo_common_lib',
420 'mojo_base.gyp:mojo_environment_chromium',
421 'mojo_base.gyp:mojo_jni_headers',
425 'shell/android/library_loader.cc',
426 'shell/android/mojo_main.cc',
427 'shell/android/mojo_main.h',
431 'target_name': 'mojo_shell_apk',
434 '../base/base.gyp:base_java',
435 '../net/net.gyp:net_java',
436 'mojo_native_viewport_java',
440 'apk_name': 'MojoShell',
441 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
442 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
443 'native_lib_target': 'libmojo_shell',
445 'includes': [ '../build/java_apk.gypi' ],
452 # GN version: //mojo/dbus
453 'target_name': 'mojo_dbus_service',
454 'type': 'static_library',
456 '../base/base.gyp:base',
457 '../build/linux/system.gyp:dbus',
458 '../dbus/dbus.gyp:dbus',
459 'mojo_base.gyp:mojo_application_chromium',
460 'mojo_base.gyp:mojo_common_lib',
461 'mojo_base.gyp:mojo_system_impl',
462 'mojo_external_service_bindings',
465 'dbus/dbus_external_service.h',
466 'dbus/dbus_external_service.cc',
474 # GN version: //mojo/aura
475 'target_name': 'mojo_aura_support',
476 'type': 'static_library',
479 '../ui/aura/aura.gyp:aura',
480 '../ui/compositor/compositor.gyp:compositor',
481 '../ui/events/events.gyp:events',
482 '../ui/events/events.gyp:events_base',
483 '../ui/gl/gl.gyp:gl',
484 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
486 'mojo_native_viewport_bindings',
489 'mojo_public_gles2_for_loadable_module.gypi',
494 'aura/context_factory_mojo.cc',
495 'aura/context_factory_mojo.h',
496 'aura/screen_mojo.cc',
497 'aura/screen_mojo.h',
498 'aura/window_tree_host_mojo.cc',
499 'aura/window_tree_host_mojo.h',
500 'aura/window_tree_host_mojo_delegate.h',
504 # GN version: //mojo/views
505 'target_name': 'mojo_views_support',
506 'type': 'static_library',
508 '../base/base.gyp:base',
509 '../base/base.gyp:base_i18n',
510 '../skia/skia.gyp:skia',
511 '../third_party/icu/icu.gyp:icui18n',
512 '../third_party/icu/icu.gyp:icuuc',
513 '../ui/aura/aura.gyp:aura',
514 '../ui/base/ui_base.gyp:ui_base',
515 '../ui/views/views.gyp:views',
516 '../ui/wm/wm.gyp:wm',
518 'mojo_views_support_internal',
519 'mojo_view_manager_bindings',
522 'views/input_method_mojo_linux.cc',
523 'views/input_method_mojo_linux.h',
524 'views/native_widget_view_manager.cc',
525 'views/native_widget_view_manager.h',
526 'views/views_init.cc',
527 'views/views_init.h',
531 # GN version: //mojo/views:views_internal
532 'target_name': 'mojo_views_support_internal',
533 'type': '<(component)',
535 '../base/base.gyp:base',
536 '../base/base.gyp:base_i18n',
537 '../base/base.gyp:base_static',
538 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
539 '../skia/skia.gyp:skia',
540 '../third_party/icu/icu.gyp:icui18n',
541 '../third_party/icu/icu.gyp:icuuc',
542 '../ui/base/ui_base.gyp:ui_base',
543 '../ui/gfx/gfx.gyp:gfx',
546 'views/mojo_views_export.h',
547 'views/views_init_internal.cc',
548 'views/views_init_internal.h',
551 'MOJO_VIEWS_IMPLEMENTATION',
556 ['component!="shared_library" and OS=="linux"', {
559 # GN version: //mojo/public/python:system
560 'target_name': 'mojo_python_system',
562 'python_base_module': 'mojo',
563 'python_cython_module': 'system',
566 'public/python/mojo/c_core.pxd',
567 'public/python/mojo/system.pyx',
570 'mojo_base.gyp:mojo_system',
572 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
575 # GN version: //mojo/python:embedder
576 'target_name': 'mojo_python_embedder',
577 'type': 'loadable_module',
579 'python_base_module': 'mojo',
580 'python_cython_module': 'embedder',
583 'python/system/mojo/embedder.pyx',
586 'mojo_base.gyp:mojo_system_impl',
588 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
591 # GN version: //mojo/public/python:bindings
592 'target_name': 'mojo_python_bindings',
595 'python_base_module': 'mojo/bindings',
598 'public/python/mojo/bindings/__init__.py',
599 'public/python/mojo/bindings/descriptor.py',
600 'public/python/mojo/bindings/reflection.py',
601 'public/python/mojo/bindings/serialization.py',
604 'mojo_python_system',
606 'includes': [ '../third_party/cython/python_module.gypi' ],
609 # GN version: //mojo/python
610 'target_name': 'mojo_python',
613 'python_base_module': 'mojo',
616 'public/python/mojo/__init__.py',
619 'mojo_python_bindings',
620 'mojo_python_embedder',
621 'mojo_python_system',
623 'includes': [ '../third_party/cython/python_module.gypi' ],
627 ['component!="shared_library" and OS=="linux" and test_isolation_mode!="noop"', {
630 'target_name': 'mojo_python_unittests_run',
634 'mojo_base.gyp:mojo_public_test_interfaces',
637 '../build/isolate.gypi',
638 'mojo_python_unittests.isolate',
641 'mojo_python_unittests.isolate',