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)"',
18 'mojo_converters.gypi',
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',
36 'mojo_input_events_lib',
37 'mojo_js_content_handler',
40 'mojo_native_viewport_service',
41 'mojo_network_service',
46 'mojo_surfaces_lib_unittests',
47 'mojo_surfaces_service',
49 'mojo_test_request_tracker_app',
50 'services/public/mojo_services_public.gyp:mojo_services_public',
51 'public/mojo_public.gyp:mojo_public',
56 'mojo_external_application_tests',
62 # GN version: //mojo/shell:external_service_bindings
63 'target_name': 'mojo_external_service_bindings',
64 'type': 'static_library',
66 'shell/external_service.mojom',
68 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
69 'export_dependent_settings': [
70 'public/mojo_public.gyp:mojo_cpp_bindings',
73 'public/mojo_public.gyp:mojo_cpp_bindings',
77 # GN version: //mojo/spy
78 'target_name': 'mojo_spy',
79 'type': 'static_library',
81 '../base/base.gyp:base',
82 '../net/net.gyp:http_server',
83 '../url/url.gyp:url_lib',
84 'mojo_application_manager',
87 'mojom_base_output_dir': 'mojo',
89 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
91 'spy/public/spy.mojom',
95 'spy/spy_server_impl.h',
96 'spy/spy_server_impl.cc',
97 'spy/websocket_server.cc',
98 'spy/websocket_server.h',
102 # GN version: //mojo/shell:lib
103 'target_name': 'mojo_shell_lib',
104 'type': 'static_library',
106 '../base/base.gyp:base',
107 '../base/base.gyp:base_static',
108 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
109 'edk/mojo_edk.gyp:mojo_system_impl',
110 'mojo_application_manager',
111 'mojo_base.gyp:mojo_application_chromium',
112 'mojo_base.gyp:mojo_common_lib',
113 'mojo_external_service_bindings',
115 'services/public/mojo_services_public.gyp:mojo_network_bindings',
117 'public/mojo_public.gyp:mojo_application_bindings',
119 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
121 'shell/app_child_process.cc',
122 'shell/app_child_process.h',
123 'shell/app_child_process.mojom',
124 'shell/app_child_process_host.cc',
125 'shell/app_child_process_host.h',
126 'shell/child_process.cc',
127 'shell/child_process.h',
128 'shell/child_process_host.cc',
129 'shell/child_process_host.h',
132 'shell/dynamic_application_loader.cc',
133 'shell/dynamic_application_loader.h',
134 'shell/dynamic_service_runner.h',
135 'shell/external_application_listener.h',
136 'shell/external_application_listener_posix.cc',
137 'shell/external_application_listener_win.cc',
138 'shell/external_application_registrar.mojom',
139 'shell/filename_util.cc',
140 'shell/filename_util.h',
141 'shell/in_process_dynamic_service_runner.cc',
142 'shell/in_process_dynamic_service_runner.h',
143 'shell/incoming_connection_listener_posix.cc',
144 'shell/incoming_connection_listener_posix.h',
147 'shell/mojo_url_resolver.cc',
148 'shell/mojo_url_resolver.h',
149 'shell/out_of_process_dynamic_service_runner.cc',
150 'shell/out_of_process_dynamic_service_runner.h',
153 'shell/task_runners.cc',
154 'shell/task_runners.h',
155 'shell/test_child_process.cc',
156 'shell/test_child_process.h',
157 'shell/ui_application_loader_android.cc',
158 'shell/ui_application_loader_android.h',
161 ['component=="shared_library"', {
163 '../ui/gl/gl.gyp:gl',
168 'shell/external_application_registrar_connection.cc',
169 'shell/external_application_registrar_connection.h',
174 'mojo_network_service_lib',
175 'mojo_native_viewport_service_lib',
178 'shell/network_application_loader.cc',
179 'shell/network_application_loader.h',
185 # GN version: //mojo/shell:test_support
186 'target_name': 'mojo_shell_test_support',
187 'type': 'static_library',
189 'edk/mojo_edk.gyp:mojo_system_impl',
193 'shell/shell_test_helper.cc',
194 'shell/shell_test_helper.h',
198 # GN version: //mojo/shell
199 'target_name': 'mojo_shell',
200 'type': 'executable',
202 '../base/base.gyp:base',
203 'mojo_base.gyp:mojo_common_lib',
204 'mojo_base.gyp:mojo_environment_chromium',
208 'shell/desktop/mojo_main.cc',
211 ['component=="shared_library"', {
213 '../ui/gfx/gfx.gyp:gfx',
219 # GN version: //mojo/shell:mojo_shell_tests
220 'target_name': 'mojo_shell_tests',
221 'type': '<(gtest_target_type)',
223 '../base/base.gyp:base',
224 '../base/base.gyp:base_i18n',
225 '../base/base.gyp:test_support_base',
226 '../testing/gtest.gyp:gtest',
227 '../net/net.gyp:net_test_support',
228 '../url/url.gyp:url_lib',
229 'edk/mojo_edk.gyp:mojo_system_impl',
230 'mojo_application_manager',
231 'mojo_base.gyp:mojo_common_lib',
232 'mojo_base.gyp:mojo_environment_chromium',
235 'mojo_test_request_tracker_app',
236 'mojo_test_service_bindings',
239 'shell/child_process_host_unittest.cc',
240 'shell/dynamic_application_loader_unittest.cc',
241 'shell/in_process_dynamic_service_runner_unittest.cc',
242 'shell/mojo_url_resolver_unittest.cc',
243 'shell/shell_test_base.cc',
244 'shell/shell_test_base.h',
245 'shell/shell_test_base_unittest.cc',
246 'shell/shell_test_main.cc',
249 ['OS == "android"', {
251 '../testing/android/native_test.gyp:native_test_native_code',
257 # GN version: //mojo/application_manager
258 'target_name': 'mojo_application_manager',
259 'type': '<(component)',
261 'MOJO_APPLICATION_MANAGER_IMPLEMENTATION',
264 '../base/base.gyp:base',
265 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
266 '../url/url.gyp:url_lib',
267 'services/public/mojo_services_public.gyp:mojo_content_handler_bindings',
268 'services/public/mojo_services_public.gyp:mojo_network_bindings',
269 'mojo_base.gyp:mojo_common_lib',
270 'mojo_base.gyp:mojo_environment_chromium',
271 'public/mojo_public.gyp:mojo_application_bindings',
272 '<(mojo_system_for_component)',
275 'application_manager/application_loader.cc',
276 'application_manager/application_loader.h',
277 'application_manager/application_manager.cc',
278 'application_manager/application_manager.h',
279 'application_manager/application_manager_export.h',
280 'application_manager/background_shell_application_loader.cc',
281 'application_manager/background_shell_application_loader.h',
283 'export_dependent_settings': [
284 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
285 'public/mojo_public.gyp:mojo_application_bindings',
286 'services/public/mojo_services_public.gyp:mojo_network_bindings',
290 # GN version: //mojo/application_manager:mojo_application_manager_unittests
291 'target_name': 'mojo_application_manager_unittests',
292 'type': 'executable',
294 '../base/base.gyp:base',
295 '../testing/gtest.gyp:gtest',
296 '../url/url.gyp:url_lib',
297 'edk/mojo_edk.gyp:mojo_run_all_unittests',
298 'mojo_application_manager',
299 'mojo_base.gyp:mojo_application_chromium',
300 'mojo_base.gyp:mojo_common_lib',
301 'mojo_base.gyp:mojo_environment_chromium',
302 'public/mojo_public.gyp:mojo_cpp_bindings',
304 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
306 'application_manager/application_manager_unittest.cc',
307 'application_manager/background_shell_application_loader_unittest.cc',
308 'application_manager/test.mojom',
312 # GN version: //mojo/cc
313 'target_name': 'mojo_cc_support',
314 'type': 'static_library',
316 '../base/base.gyp:base',
318 '../cc/cc.gyp:cc_surfaces',
319 '../skia/skia.gyp:skia',
320 '../gpu/gpu.gyp:gles2_implementation',
323 'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
326 'mojo_public_gles2_for_loadable_module.gypi',
328 'export_dependent_settings': [
329 'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
332 'cc/context_provider_mojo.cc',
333 'cc/context_provider_mojo.h',
334 'cc/direct_output_surface.cc',
335 'cc/direct_output_surface.h',
336 'cc/output_surface_mojo.cc',
337 'cc/output_surface_mojo.h',
341 # GN version: //mojo/gles2
342 'target_name': 'mojo_gles2_impl',
343 'type': '<(component)',
345 '../base/base.gyp:base',
346 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
347 '../gpu/gpu.gyp:command_buffer_client',
348 '../gpu/gpu.gyp:command_buffer_common',
349 '../gpu/gpu.gyp:gles2_cmd_helper',
350 '../gpu/gpu.gyp:gles2_implementation',
351 'mojo_base.gyp:mojo_environment_chromium',
353 'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
354 '<(mojo_system_for_component)',
358 'GL_GLEXT_PROTOTYPES',
359 'MOJO_GLES2_IMPLEMENTATION',
360 'MOJO_GLES2_IMPL_IMPLEMENTATION',
361 'MOJO_USE_GLES2_IMPL'
363 'direct_dependent_settings': {
368 'export_dependent_settings': [
369 'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
372 'gles2/command_buffer_client_impl.cc',
373 'gles2/command_buffer_client_impl.h',
374 'gles2/gles2_impl_export.h',
375 'gles2/gles2_impl.cc',
376 'gles2/gles2_context.cc',
377 'gles2/gles2_context.h',
379 'all_dependent_settings': {
380 # Ensures that dependent projects import the core functions on Windows.
381 'defines': ['MOJO_USE_GLES2_IMPL'],
385 # GN version: //mojo/bindings/js/tests:mojo_js_unittests
386 'target_name': 'mojo_js_unittests',
387 'type': 'executable',
389 '../gin/gin.gyp:gin_test',
390 'edk/mojo_edk.gyp:mojo_common_test_support',
391 'edk/mojo_edk.gyp:mojo_run_all_unittests',
392 'mojo_base.gyp:mojo_js_bindings_lib',
393 'public/mojo_public.gyp:mojo_environment_standalone',
394 'public/mojo_public.gyp:mojo_public_test_interfaces',
395 'public/mojo_public.gyp:mojo_utility',
398 'bindings/js/tests/run_js_tests.cc',
406 'target_name': 'mojo_native_viewport_java',
409 '../base/base.gyp:base_java',
412 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
414 'includes': [ '../build/java.gypi' ],
417 'target_name': 'libmojo_shell',
418 'type': 'shared_library',
420 '../base/base.gyp:base',
421 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
422 '../ui/gfx/gfx.gyp:gfx',
423 '../ui/gfx/gfx.gyp:gfx_geometry',
424 '../ui/gl/gl.gyp:gl',
425 'mojo_base.gyp:mojo_common_lib',
426 'mojo_base.gyp:mojo_environment_chromium',
427 'mojo_base.gyp:mojo_jni_headers',
429 'public/mojo_public.gyp:mojo_application_bindings',
432 'shell/android/library_loader.cc',
433 'shell/android/mojo_main.cc',
434 'shell/android/mojo_main.h',
438 'target_name': 'mojo_shell_apk',
441 '../base/base.gyp:base_java',
442 '../net/net.gyp:net_java',
443 'mojo_native_viewport_java',
447 'apk_name': 'MojoShell',
448 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
449 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
450 'native_lib_target': 'libmojo_shell',
452 'includes': [ '../build/java_apk.gypi' ],
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 'edk/mojo_edk.gyp:mojo_system_impl',
469 'mojo_application_manager',
470 'mojo_base.gyp:mojo_common_lib',
471 'mojo_base.gyp:mojo_environment_chromium',
475 'shell/incoming_connection_listener_unittest.cc',
476 'shell/external_application_listener_unittest.cc',
477 'shell/external_application_test_main.cc',
482 ['test_isolation_mode != "noop"', {
485 'target_name': 'mojo_js_unittests_run',
491 '../build/isolate.gypi',
494 'mojo_js_unittests.isolate',