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',
24 'target_name': 'mojo',
27 'mojo_application_manager',
28 'mojo_application_manager_unittests',
29 'mojo_apps_js_unittests',
30 'mojo_base.gyp:mojo_base',
31 'mojo_compositor_app',
32 'mojo_content_handler_demo',
35 'mojo_example_apptests',
36 '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_embedder',
100 # GN version: //mojo/shell:external_service_bindings
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': [
108 'mojo_base.gyp:mojo_cpp_bindings',
111 'mojo_base.gyp:mojo_cpp_bindings',
115 'target_name': 'mojo_spy',
116 'type': 'static_library',
118 '../base/base.gyp:base',
119 '../base/base.gyp:base_static',
120 '../net/net.gyp:http_server',
121 '../url/url.gyp:url_lib',
122 'mojo_application_manager',
125 'mojom_base_output_dir': 'mojo',
127 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
129 'spy/public/spy.mojom',
133 'spy/spy_server_impl.h',
134 'spy/spy_server_impl.cc',
135 'spy/websocket_server.cc',
136 'spy/websocket_server.h',
140 # GN version: //mojo/shell:lib
141 'target_name': 'mojo_shell_lib',
142 'type': 'static_library',
144 '../base/base.gyp:base',
145 '../base/base.gyp:base_static',
146 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
147 '../net/net.gyp:net',
148 '../url/url.gyp:url_lib',
149 'mojo_application_manager',
150 'mojo_base.gyp:mojo_application_bindings',
151 'mojo_base.gyp:mojo_common_lib',
152 'mojo_base.gyp:mojo_gles2_impl',
153 'mojo_base.gyp:mojo_system_impl',
154 'mojo_base.gyp:mojo_application_chromium',
155 'mojo_external_service_bindings',
156 'mojo_native_viewport_service_lib',
157 'mojo_network_bindings',
160 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
162 'shell/app_child_process.cc',
163 'shell/app_child_process.h',
164 'shell/app_child_process.mojom',
165 'shell/app_child_process_host.cc',
166 'shell/app_child_process_host.h',
167 'shell/child_process.cc',
168 'shell/child_process.h',
169 'shell/child_process_host.cc',
170 'shell/child_process_host.h',
173 'shell/dbus_application_loader_linux.cc',
174 'shell/dbus_application_loader_linux.h',
175 'shell/dynamic_application_loader.cc',
176 'shell/dynamic_application_loader.h',
177 'shell/dynamic_service_runner.h',
180 'shell/in_process_dynamic_service_runner.cc',
181 'shell/in_process_dynamic_service_runner.h',
182 'shell/mojo_url_resolver.cc',
183 'shell/mojo_url_resolver.h',
184 'shell/out_of_process_dynamic_service_runner.cc',
185 'shell/out_of_process_dynamic_service_runner.h',
188 'shell/task_runners.cc',
189 'shell/task_runners.h',
190 'shell/test_child_process.cc',
191 'shell/test_child_process.h',
192 'shell/ui_application_loader_android.cc',
193 'shell/ui_application_loader_android.h',
194 'shell/view_manager_loader.cc',
195 'shell/view_manager_loader.h',
200 '../build/linux/system.gyp:dbus',
201 '../dbus/dbus.gyp:dbus',
206 'mojo_network_service_lib',
209 'shell/network_application_loader.cc',
210 'shell/network_application_loader.h',
215 # These are only necessary as long as we hard code use of ViewManager.
216 '../skia/skia.gyp:skia',
218 'mojo_view_manager_bindings',
222 'shell/view_manager_loader.cc',
223 'shell/view_manager_loader.h',
229 # GN version: //mojo/shell:test_support
230 'target_name': 'mojo_shell_test_support',
231 'type': 'static_library',
233 '../base/base.gyp:base',
234 '../base/base.gyp:base_static',
235 '../url/url.gyp:url_lib',
236 'mojo_application_manager',
237 'mojo_base.gyp:mojo_system_impl',
241 'shell/shell_test_helper.cc',
242 'shell/shell_test_helper.h',
246 # GN version: //mojo/shell
247 'target_name': 'mojo_shell',
248 'type': 'executable',
250 '../base/base.gyp:base',
251 '../ui/gl/gl.gyp:gl',
252 '../url/url.gyp:url_lib',
253 'mojo_application_manager',
254 'mojo_base.gyp:mojo_common_lib',
255 'mojo_base.gyp:mojo_environment_chromium',
256 'mojo_base.gyp:mojo_system_impl',
262 '../ui/ozone/ozone.gyp:ozone',
267 'shell/desktop/mojo_main.cc',
271 # GN version: //mojo/shell:mojo_shell_tests
272 'target_name': 'mojo_shell_tests',
273 'type': '<(gtest_target_type)',
275 '../base/base.gyp:base',
276 '../base/base.gyp:base_i18n',
277 '../base/base.gyp:test_support_base',
278 '../testing/gtest.gyp:gtest',
279 '../net/net.gyp:net_test_support',
280 # TODO(vtl): We don't currently need this, but I imagine we will soon.
281 # '../ui/gl/gl.gyp:gl',
282 '../url/url.gyp:url_lib',
283 'mojo_application_manager',
284 'mojo_base.gyp:mojo_common_lib',
285 'mojo_base.gyp:mojo_environment_chromium',
286 'mojo_base.gyp:mojo_system_impl',
289 'mojo_test_request_tracker_app',
290 'mojo_test_service_bindings',
293 'shell/child_process_host_unittest.cc',
294 'shell/dynamic_application_loader_unittest.cc',
295 'shell/in_process_dynamic_service_runner_unittest.cc',
296 'shell/shell_test_base.cc',
297 'shell/shell_test_base.h',
298 'shell/shell_test_base_unittest.cc',
299 'shell/shell_test_main.cc',
302 ['OS == "android"', {
304 '../testing/android/native_test.gyp:native_test_native_code',
310 # GN version: //mojo/application_manager
311 'target_name': 'mojo_application_manager',
312 'type': '<(component)',
314 'MOJO_APPLICATION_MANAGER_IMPLEMENTATION',
317 '../base/base.gyp:base',
318 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
319 '../net/net.gyp:net',
320 '../url/url.gyp:url_lib',
321 'mojo_content_handler_bindings',
322 'mojo_network_bindings',
323 'mojo_base.gyp:mojo_application_bindings',
324 'mojo_base.gyp:mojo_common_lib',
325 'mojo_base.gyp:mojo_environment_chromium',
326 '<(mojo_system_for_component)',
329 'application_manager/application_loader.cc',
330 'application_manager/application_loader.h',
331 'application_manager/application_manager.cc',
332 'application_manager/application_manager.h',
333 'application_manager/application_manager_export.h',
334 'application_manager/background_shell_application_loader.cc',
335 'application_manager/background_shell_application_loader.h',
337 'export_dependent_settings': [
338 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
339 'mojo_base.gyp:mojo_application_bindings',
340 'mojo_network_bindings',
344 # GN version: //mojo/application_manager:unittests
345 'target_name': 'mojo_application_manager_unittests',
346 'type': 'executable',
348 '../base/base.gyp:base',
349 '../testing/gtest.gyp:gtest',
350 '../url/url.gyp:url_lib',
351 'mojo_application_manager',
352 'mojo_base.gyp:mojo_common_lib',
353 'mojo_base.gyp:mojo_cpp_bindings',
354 'mojo_base.gyp:mojo_environment_chromium',
355 'mojo_base.gyp:mojo_run_all_unittests',
356 'mojo_base.gyp:mojo_application_chromium',
358 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
360 'application_manager/application_manager_unittest.cc',
361 'application_manager/background_shell_application_loader_unittest.cc',
362 'application_manager/test.mojom',
366 # GN version: //mojo/cc
367 'target_name': 'mojo_cc_support',
368 'type': 'static_library',
370 '../base/base.gyp:base',
372 '../cc/cc.gyp:cc_surfaces',
373 '../skia/skia.gyp:skia',
374 '../gpu/gpu.gyp:gles2_implementation',
376 'mojo_surfaces_bindings',
380 'mojo_public_gles2_for_loadable_module.gypi',
382 'export_dependent_settings': [
383 'mojo_surfaces_bindings',
386 'cc/context_provider_mojo.cc',
387 'cc/context_provider_mojo.h',
388 'cc/output_surface_mojo.cc',
389 'cc/output_surface_mojo.h',
397 'target_name': 'mojo_native_viewport_java',
400 '../base/base.gyp:base_java',
403 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
405 'includes': [ '../build/java.gypi' ],
408 'target_name': 'libmojo_shell',
409 'type': 'shared_library',
411 '../base/base.gyp:base',
412 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
413 '../ui/gfx/gfx.gyp:gfx',
414 '../ui/gfx/gfx.gyp:gfx_geometry',
415 '../ui/gl/gl.gyp:gl',
416 'mojo_base.gyp:mojo_application_bindings',
417 'mojo_base.gyp:mojo_common_lib',
418 'mojo_base.gyp:mojo_environment_chromium',
419 'mojo_base.gyp:mojo_jni_headers',
423 'shell/android/library_loader.cc',
424 'shell/android/mojo_main.cc',
425 'shell/android/mojo_main.h',
429 'target_name': 'mojo_shell_apk',
432 '../base/base.gyp:base_java',
433 '../net/net.gyp:net_java',
434 'mojo_native_viewport_java',
438 'apk_name': 'MojoShell',
439 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
440 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
441 'native_lib_target': 'libmojo_shell',
443 'includes': [ '../build/java_apk.gypi' ],
450 'target_name': 'mojo_dbus_service',
451 'type': 'static_library',
453 '../base/base.gyp:base',
454 '../build/linux/system.gyp:dbus',
455 '../dbus/dbus.gyp:dbus',
456 'mojo_base.gyp:mojo_application_chromium',
457 'mojo_base.gyp:mojo_common_lib',
458 'mojo_base.gyp:mojo_system_impl',
459 'mojo_external_service_bindings',
462 'dbus/dbus_external_service.h',
463 'dbus/dbus_external_service.cc',
471 # GN version: //mojo/aura
472 'target_name': 'mojo_aura_support',
473 'type': 'static_library',
476 '../ui/aura/aura.gyp:aura',
477 '../ui/compositor/compositor.gyp:compositor',
478 '../ui/events/events.gyp:events',
479 '../ui/events/events.gyp:events_base',
480 '../ui/gl/gl.gyp:gl',
481 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
483 'mojo_native_viewport_bindings',
486 'mojo_public_gles2_for_loadable_module.gypi',
491 'aura/context_factory_mojo.cc',
492 'aura/context_factory_mojo.h',
493 'aura/screen_mojo.cc',
494 'aura/screen_mojo.h',
495 'aura/window_tree_host_mojo.cc',
496 'aura/window_tree_host_mojo.h',
497 'aura/window_tree_host_mojo_delegate.h',
501 'target_name': 'mojo_views_support',
502 'type': 'static_library',
504 '../base/base.gyp:base',
505 '../base/base.gyp:base_i18n',
506 '../skia/skia.gyp:skia',
507 '../skia/skia.gyp:skia',
508 '../third_party/icu/icu.gyp:icui18n',
509 '../third_party/icu/icu.gyp:icuuc',
510 '../ui/aura/aura.gyp:aura',
511 '../ui/base/ui_base.gyp:ui_base',
512 '../ui/views/views.gyp:views',
513 '../ui/wm/wm.gyp:wm',
515 'mojo_views_support_internal',
518 'views/input_method_mojo_linux.cc',
519 'views/input_method_mojo_linux.h',
520 'views/native_widget_view_manager.cc',
521 'views/native_widget_view_manager.h',
522 'views/views_init.cc',
523 'views/views_init.h',
527 'target_name': 'mojo_views_support_internal',
528 'type': '<(component)',
530 '../base/base.gyp:base',
531 '../base/base.gyp:base_i18n',
532 '../base/base.gyp:base_static',
533 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
534 '../skia/skia.gyp:skia',
535 '../skia/skia.gyp:skia',
536 '../third_party/icu/icu.gyp:icui18n',
537 '../third_party/icu/icu.gyp:icuuc',
538 '../ui/base/ui_base.gyp:ui_base',
539 '../ui/gfx/gfx.gyp:gfx',
542 'views/mojo_views_export.h',
543 'views/views_init_internal.cc',
544 'views/views_init_internal.h',
547 'MOJO_VIEWS_IMPLEMENTATION',
552 ['component!="shared_library" and OS=="linux"', {
555 'target_name': 'mojo_python_system',
557 'python_base_module': 'mojo',
558 'python_cython_module': 'system',
561 'public/python/mojo/c_core.pxd',
562 'public/python/mojo/system.pyx',
565 'mojo_base.gyp:mojo_system',
567 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
570 'target_name': 'mojo_python_embedder',
571 'type': 'loadable_module',
573 'python_base_module': 'mojo',
574 'python_cython_module': 'embedder',
577 'python/system/mojo/embedder.pyx',
580 'mojo_base.gyp:mojo_system_impl',
582 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
585 'target_name': 'mojo_python',
588 'python_base_module': 'mojo',
591 'public/python/mojo/__init__.py',
594 'mojo_python_embedder',
595 'mojo_python_system',
597 'includes': [ '../third_party/cython/python_module.gypi' ],