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_base.gyp:mojo_base',
28 'mojo_apps_js_unittests',
29 'mojo_compositor_app',
36 'mojo_native_viewport_service',
37 'mojo_network_service',
38 'mojo_pepper_container_app',
41 'mojo_service_manager',
42 'mojo_service_manager_unittests',
47 'mojo_surfaces_child_app',
49 'mojo_surfaces_lib_unittests',
51 'mojo_surfaces_service',
53 'mojo_test_request_tracker_app',
54 'mojo_view_manager_lib',
55 'mojo_view_manager_lib_unittests',
62 'mojo_aura_demo_init',
64 'mojo_core_window_manager',
65 'mojo_core_window_manager_unittests',
71 'mojo_window_manager',
76 'mojo_view_manager_unittests',
82 'mojo_dbus_echo_service',
88 # GN version: //mojo/shell:external_service_bindings
89 'target_name': 'mojo_external_service_bindings',
90 'type': 'static_library',
92 'shell/external_service.mojom',
94 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
95 'export_dependent_settings': [
96 'mojo_base.gyp:mojo_cpp_bindings',
99 'mojo_base.gyp:mojo_cpp_bindings',
103 # GN version: //mojo/gles2
104 'target_name': 'mojo_gles2_impl',
105 'type': '<(component)',
107 '../base/base.gyp:base',
108 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
109 '../gpu/gpu.gyp:command_buffer_client',
110 '../gpu/gpu.gyp:command_buffer_common',
111 '../gpu/gpu.gyp:gles2_cmd_helper',
112 '../gpu/gpu.gyp:gles2_implementation',
113 'mojo_base.gyp:mojo_environment_chromium',
115 'mojo_gles2_bindings',
116 '<(mojo_system_for_component)',
119 'MOJO_GLES2_IMPL_IMPLEMENTATION',
122 'gles2/command_buffer_client_impl.cc',
123 'gles2/command_buffer_client_impl.h',
124 'gles2/gles2_impl_export.h',
125 'gles2/gles2_support_impl.cc',
126 'gles2/gles2_support_impl.h',
127 'gles2/gles2_context.cc',
128 'gles2/gles2_context.h',
132 'target_name': 'mojo_spy',
133 'type': 'static_library',
135 '../base/base.gyp:base',
136 '../base/base.gyp:base_static',
137 '../net/net.gyp:http_server',
138 '../url/url.gyp:url_lib',
139 'mojo_service_manager',
142 'mojom_base_output_dir': 'mojo',
144 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
146 'spy/public/spy.mojom',
150 'spy/spy_server_impl.h',
151 'spy/spy_server_impl.cc',
152 'spy/websocket_server.cc',
153 'spy/websocket_server.h',
157 # GN version: //mojo/shell:lib
158 'target_name': 'mojo_shell_lib',
159 'type': 'static_library',
161 '../base/base.gyp:base',
162 '../base/base.gyp:base_static',
163 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
164 '../net/net.gyp:net',
165 '../url/url.gyp:url_lib',
166 'mojo_base.gyp:mojo_application_bindings',
167 'mojo_base.gyp:mojo_common_lib',
168 'mojo_base.gyp:mojo_system_impl',
169 'mojo_base.gyp:mojo_application',
170 'mojo_external_service_bindings',
172 'mojo_native_viewport_service',
173 'mojo_network_bindings',
174 'mojo_service_manager',
177 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
179 'shell/app_child_process.cc',
180 'shell/app_child_process.h',
181 'shell/app_child_process.mojom',
182 'shell/app_child_process_host.cc',
183 'shell/app_child_process_host.h',
184 'shell/child_process.cc',
185 'shell/child_process.h',
186 'shell/child_process_host.cc',
187 'shell/child_process_host.h',
190 'shell/dbus_service_loader_linux.cc',
191 'shell/dbus_service_loader_linux.h',
192 'shell/dynamic_service_loader.cc',
193 'shell/dynamic_service_loader.h',
194 'shell/dynamic_service_runner.h',
197 'shell/in_process_dynamic_service_runner.cc',
198 'shell/in_process_dynamic_service_runner.h',
199 'shell/keep_alive.cc',
200 'shell/keep_alive.h',
201 'shell/mojo_url_resolver.cc',
202 'shell/mojo_url_resolver.h',
203 'shell/out_of_process_dynamic_service_runner.cc',
204 'shell/out_of_process_dynamic_service_runner.h',
209 'shell/task_runners.cc',
210 'shell/task_runners.h',
211 'shell/test_child_process.cc',
212 'shell/test_child_process.h',
213 'shell/ui_service_loader_android.cc',
214 'shell/ui_service_loader_android.h',
215 'shell/view_manager_loader.cc',
216 'shell/view_manager_loader.h',
221 '../build/linux/system.gyp:dbus',
222 '../dbus/dbus.gyp:dbus',
227 'mojo_network_service_lib',
230 'shell/network_service_loader.cc',
231 'shell/network_service_loader.h',
236 # These are only necessary as long as we hard code use of ViewManager.
237 '../skia/skia.gyp:skia',
240 'mojo_view_manager_bindings',
244 'shell/view_manager_loader.cc',
245 'shell/view_manager_loader.h',
251 'target_name': 'mojo_shell_test_support',
252 'type': 'static_library',
254 '../base/base.gyp:base',
255 '../base/base.gyp:base_static',
256 '../url/url.gyp:url_lib',
257 'mojo_base.gyp:mojo_system_impl',
258 'mojo_service_manager',
262 'shell/shell_test_helper.cc',
263 'shell/shell_test_helper.h',
267 # GN version: //mojo/shell
268 'target_name': 'mojo_shell',
269 'type': 'executable',
271 '../base/base.gyp:base',
272 '../ui/gl/gl.gyp:gl',
273 '../url/url.gyp:url_lib',
274 'mojo_base.gyp:mojo_common_lib',
275 'mojo_base.gyp:mojo_environment_chromium',
276 'mojo_base.gyp:mojo_system_impl',
277 'mojo_service_manager',
283 '../ui/ozone/ozone.gyp:ozone',
288 'shell/desktop/mojo_main.cc',
292 'target_name': 'mojo_shell_tests',
293 'type': '<(gtest_target_type)',
295 '../base/base.gyp:base',
296 '../base/base.gyp:base_i18n',
297 '../base/base.gyp:test_support_base',
298 '../testing/gtest.gyp:gtest',
299 '../net/net.gyp:net_test_support',
300 # TODO(vtl): We don't currently need this, but I imagine we will soon.
301 # '../ui/gl/gl.gyp:gl',
302 '../url/url.gyp:url_lib',
303 'mojo_base.gyp:mojo_common_lib',
304 'mojo_base.gyp:mojo_environment_chromium',
305 'mojo_base.gyp:mojo_system_impl',
306 'mojo_service_manager',
309 'mojo_test_request_tracker_app',
310 'mojo_test_service_bindings',
313 'shell/child_process_host_unittest.cc',
314 'shell/dynamic_service_loader_unittest.cc',
315 'shell/in_process_dynamic_service_runner_unittest.cc',
316 'shell/shell_test_base.cc',
317 'shell/shell_test_base.h',
318 'shell/shell_test_base_unittest.cc',
319 'shell/shell_test_main.cc',
322 ['OS == "android"', {
324 '../testing/android/native_test.gyp:native_test_native_code',
330 # GN version: //mojo/service_manager
331 'target_name': 'mojo_service_manager',
332 'type': '<(component)',
334 'MOJO_SERVICE_MANAGER_IMPLEMENTATION',
337 '../base/base.gyp:base',
338 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
339 '../net/net.gyp:net',
340 '../url/url.gyp:url_lib',
341 'mojo_base.gyp:mojo_application_bindings',
342 'mojo_base.gyp:mojo_common_lib',
343 'mojo_base.gyp:mojo_environment_chromium',
344 '<(mojo_system_for_component)',
347 'service_manager/background_service_loader.cc',
348 'service_manager/background_service_loader.h',
349 'service_manager/service_loader.h',
350 'service_manager/service_manager.cc',
351 'service_manager/service_manager.h',
352 'service_manager/service_manager_export.h',
354 'export_dependent_settings': [
355 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
356 'mojo_base.gyp:mojo_application_bindings',
360 'target_name': 'mojo_service_manager_unittests',
361 'type': 'executable',
363 '../base/base.gyp:base',
364 '../testing/gtest.gyp:gtest',
365 '../url/url.gyp:url_lib',
366 'mojo_base.gyp:mojo_common_lib',
367 'mojo_base.gyp:mojo_cpp_bindings',
368 'mojo_base.gyp:mojo_environment_chromium',
369 'mojo_base.gyp:mojo_run_all_unittests',
370 'mojo_base.gyp:mojo_application',
371 'mojo_service_manager',
373 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
375 'service_manager/service_manager_unittest.cc',
376 'service_manager/test.mojom',
380 # GN version: //mojo/cc
381 'target_name': 'mojo_cc_support',
382 'type': 'static_library',
384 '../base/base.gyp:base',
386 '../skia/skia.gyp:skia',
387 '../gpu/gpu.gyp:gles2_implementation',
391 'cc/context_provider_mojo.cc',
392 'cc/context_provider_mojo.h',
400 'target_name': 'mojo_native_viewport_java',
403 '../base/base.gyp:base_java',
406 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
408 'includes': [ '../build/java.gypi' ],
411 'target_name': 'libmojo_shell',
412 'type': 'shared_library',
414 '../base/base.gyp:base',
415 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
416 '../ui/gfx/gfx.gyp:gfx',
417 '../ui/gfx/gfx.gyp:gfx_geometry',
418 '../ui/gl/gl.gyp:gl',
419 'mojo_base.gyp:mojo_application_bindings',
420 'mojo_base.gyp:mojo_common_lib',
421 'mojo_base.gyp:mojo_environment_chromium',
422 'mojo_base.gyp:mojo_jni_headers',
426 'shell/android/library_loader.cc',
427 'shell/android/mojo_main.cc',
428 'shell/android/mojo_main.h',
432 'target_name': 'mojo_shell_apk',
435 '../base/base.gyp:base_java',
436 '../net/net.gyp:net_java',
437 'mojo_native_viewport_java',
441 'apk_name': 'MojoShell',
442 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
443 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
444 'native_lib_target': 'libmojo_shell',
446 'includes': [ '../build/java_apk.gypi' ],
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',
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 'target_name': 'mojo_aura_support',
475 'type': 'static_library',
478 '../ui/aura/aura.gyp:aura',
479 '../ui/compositor/compositor.gyp:compositor',
480 '../ui/events/events.gyp:events',
481 '../ui/events/events.gyp:events_base',
482 '../ui/gl/gl.gyp:gl',
483 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
486 'mojo_native_viewport_bindings',
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/native_widget_view_manager.cc',
519 'views/native_widget_view_manager.h',
520 'views/views_init.cc',
521 'views/views_init.h',
525 'target_name': 'mojo_views_support_internal',
526 'type': '<(component)',
528 '../base/base.gyp:base',
529 '../base/base.gyp:base_i18n',
530 '../base/base.gyp:base_static',
531 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
532 '../skia/skia.gyp:skia',
533 '../skia/skia.gyp:skia',
534 '../third_party/icu/icu.gyp:icui18n',
535 '../third_party/icu/icu.gyp:icuuc',
536 '../ui/base/ui_base.gyp:ui_base',
537 '../ui/gfx/gfx.gyp:gfx',
540 'views/mojo_views_export.h',
541 'views/views_init_internal.cc',
542 'views/views_init_internal.h',
545 'MOJO_VIEWS_IMPLEMENTATION',