Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: mojo/mojo.gyp

Issue 370983002: Mojo: Enable apps built against the chromium env to be built as shared libraries (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: improvements Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/environment/BUILD.gn ('k') | mojo/mojo_apps.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'target_defaults': { 6 'target_defaults': {
7 'conditions': [ 7 'conditions': [
8 ['mojo_shell_debug_url != ""', { 8 ['mojo_shell_debug_url != ""', {
9 'defines': [ 9 'defines': [
10 'MOJO_SHELL_DEBUG=1', 10 'MOJO_SHELL_DEBUG=1',
11 'MOJO_SHELL_DEBUG_URL="<(mojo_shell_debug_url)"', 11 'MOJO_SHELL_DEBUG_URL="<(mojo_shell_debug_url)"',
12 ], 12 ],
13 }], 13 }],
14 ], 14 ],
15 }, 15 },
16 'variables': { 16 'variables': {
17 'chromium_code': 1, 17 'chromium_code': 1,
18 'mojo_shell_debug_url%': "", 18 'mojo_shell_debug_url%': "",
19 'conditions': [
20 #
21 # The following mojo_system-prefixed variables are used to express a
22 # dependency on the mojo system APIs.
23 #
24 # In a component build, everything can link against mojo_system_impl
25 # because it is built as a shared library. However, in a non-component
26 # build, mojo_system_impl is linked into an executable (e.g.,
27 # mojo_shell), and must be injected into other shared libraries (i.e.,
28 # Mojo Apps) that need the mojo system API.
29 #
30 # When building a component library, add <(mojo_system_for_component) to
31 # your dependencies section. When building a loadable module (e.g., a
32 # Mojo App), add <(mojo_system_for_loadable_module) to your dependencies
33 # section.
34 #
35 ['component=="shared_library"', {
36 'mojo_system_for_component': "mojo_system_impl",
37 'mojo_system_for_loadable_module': "mojo_system_impl",
38 }, {
39 'mojo_system_for_component': "mojo_none",
40 'mojo_system_for_loadable_module': "mojo_system",
41 }],
42 ],
19 }, 43 },
20 'includes': [ 44 'includes': [
21 'mojo_apps.gypi', 45 'mojo_apps.gypi',
22 'mojo_examples.gypi', 46 'mojo_examples.gypi',
23 'mojo_public.gypi', 47 'mojo_public.gypi',
24 'mojo_services.gypi', 48 'mojo_services.gypi',
25 ], 49 ],
26 'targets': [ 50 'targets': [
27 { 51 {
28 'target_name': 'mojo', 52 'target_name': 'mojo',
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 }], 121 }],
98 ['OS == "linux"', { 122 ['OS == "linux"', {
99 'dependencies': [ 123 'dependencies': [
100 'mojo_dbus_echo', 124 'mojo_dbus_echo',
101 'mojo_dbus_echo_service', 125 'mojo_dbus_echo_service',
102 ], 126 ],
103 }], 127 }],
104 ] 128 ]
105 }, 129 },
106 { 130 {
131 'target_name': 'mojo_none',
132 'type': 'none',
133 },
134 {
107 'target_name': 'mojo_external_service_bindings', 135 'target_name': 'mojo_external_service_bindings',
108 'type': 'static_library', 136 'type': 'static_library',
109 'sources': [ 137 'sources': [
110 'shell/external_service.mojom', 138 'shell/external_service.mojom',
111 ], 139 ],
112 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], 140 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
113 'export_dependent_settings': [ 141 'export_dependent_settings': [
114 'mojo_cpp_bindings', 142 'mojo_cpp_bindings',
115 ], 143 ],
116 'dependencies': [ 144 'dependencies': [
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 'dependencies': [ 319 'dependencies': [
292 '../base/base.gyp:base', 320 '../base/base.gyp:base',
293 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 321 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
294 '../gpu/gpu.gyp:command_buffer_client', 322 '../gpu/gpu.gyp:command_buffer_client',
295 '../gpu/gpu.gyp:command_buffer_common', 323 '../gpu/gpu.gyp:command_buffer_common',
296 '../gpu/gpu.gyp:gles2_cmd_helper', 324 '../gpu/gpu.gyp:gles2_cmd_helper',
297 '../gpu/gpu.gyp:gles2_implementation', 325 '../gpu/gpu.gyp:gles2_implementation',
298 'mojo_gles2', 326 'mojo_gles2',
299 'mojo_gles2_bindings', 327 'mojo_gles2_bindings',
300 'mojo_environment_chromium', 328 'mojo_environment_chromium',
301 'mojo_system_impl', 329 '<(mojo_system_for_component)',
302 ], 330 ],
303 'defines': [ 331 'defines': [
304 'MOJO_GLES2_IMPL_IMPLEMENTATION', 332 'MOJO_GLES2_IMPL_IMPLEMENTATION',
305 ], 333 ],
306 'sources': [ 334 'sources': [
307 'gles2/command_buffer_client_impl.cc', 335 'gles2/command_buffer_client_impl.cc',
308 'gles2/command_buffer_client_impl.h', 336 'gles2/command_buffer_client_impl.h',
309 'gles2/gles2_impl_export.h', 337 'gles2/gles2_impl_export.h',
310 'gles2/gles2_support_impl.cc', 338 'gles2/gles2_support_impl.cc',
311 'gles2/gles2_support_impl.h', 339 'gles2/gles2_support_impl.h',
(...skipping 15 matching lines...) Expand all
327 { 355 {
328 # GN version: //mojo/common 356 # GN version: //mojo/common
329 'target_name': 'mojo_common_lib', 357 'target_name': 'mojo_common_lib',
330 'type': '<(component)', 358 'type': '<(component)',
331 'defines': [ 359 'defines': [
332 'MOJO_COMMON_IMPLEMENTATION', 360 'MOJO_COMMON_IMPLEMENTATION',
333 ], 361 ],
334 'dependencies': [ 362 'dependencies': [
335 '../base/base.gyp:base', 363 '../base/base.gyp:base',
336 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 364 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
337 'mojo_system_impl', 365 '<(mojo_system_for_component)',
338 ], 366 ],
339 'export_dependent_settings': [ 367 'export_dependent_settings': [
340 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 368 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
341 'mojo_system_impl',
342 ], 369 ],
343 'sources': [ 370 'sources': [
344 'common/common_type_converters.cc', 371 'common/common_type_converters.cc',
345 'common/common_type_converters.h', 372 'common/common_type_converters.h',
346 'common/data_pipe_utils.cc', 373 'common/data_pipe_utils.cc',
347 'common/data_pipe_utils.h', 374 'common/data_pipe_utils.h',
348 'common/handle_watcher.cc', 375 'common/handle_watcher.cc',
349 'common/handle_watcher.h', 376 'common/handle_watcher.h',
350 'common/message_pump_mojo.cc', 377 'common/message_pump_mojo.cc',
351 'common/message_pump_mojo.h', 378 'common/message_pump_mojo.h',
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 'common/handle_watcher_unittest.cc', 417 'common/handle_watcher_unittest.cc',
391 'common/message_pump_mojo_unittest.cc', 418 'common/message_pump_mojo_unittest.cc',
392 'common/test/multiprocess_test_helper_unittest.cc', 419 'common/test/multiprocess_test_helper_unittest.cc',
393 ], 420 ],
394 }, 421 },
395 { 422 {
396 # GN version: //mojo/environment:chromium 423 # GN version: //mojo/environment:chromium
397 'target_name': 'mojo_environment_chromium', 424 'target_name': 'mojo_environment_chromium',
398 'type': 'static_library', 425 'type': 'static_library',
399 'dependencies': [ 426 'dependencies': [
400 'mojo_common_lib',
401 'mojo_environment_chromium_impl', 427 'mojo_environment_chromium_impl',
402 ], 428 ],
403 'sources': [ 429 'sources': [
404 'environment/environment.cc', 430 'environment/environment.cc',
405 # TODO(vtl): This is kind of ugly. (See TODO in logging.h.) 431 # TODO(vtl): This is kind of ugly. (See TODO in logging.h.)
406 "public/cpp/environment/logging.h", 432 "public/cpp/environment/logging.h",
407 "public/cpp/environment/lib/logging.cc", 433 "public/cpp/environment/lib/logging.cc",
408 ], 434 ],
409 'include_dirs': [ 435 'include_dirs': [
410 '..', 436 '..',
411 ], 437 ],
412 'export_dependent_settings': [ 438 'export_dependent_settings': [
413 'mojo_environment_chromium_impl', 439 'mojo_environment_chromium_impl',
414 ], 440 ],
415 }, 441 },
416 { 442 {
417 # GN version: //mojo/environment:chromium_impl 443 # GN version: //mojo/environment:chromium_impl
418 'target_name': 'mojo_environment_chromium_impl', 444 'target_name': 'mojo_environment_chromium_impl',
419 'type': '<(component)', 445 'type': '<(component)',
420 'defines': [ 446 'defines': [
421 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION', 447 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
422 ], 448 ],
423 'dependencies': [ 449 'dependencies': [
424 '../base/base.gyp:base', 450 '../base/base.gyp:base',
425 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 451 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
426 'mojo_common_lib' 452 'mojo_common_lib',
453 '<(mojo_system_for_component)',
427 ], 454 ],
428 'sources': [ 455 'sources': [
429 'environment/default_async_waiter_impl.cc', 456 'environment/default_async_waiter_impl.cc',
430 'environment/default_async_waiter_impl.h', 457 'environment/default_async_waiter_impl.h',
431 'environment/default_logger_impl.cc', 458 'environment/default_logger_impl.cc',
432 'environment/default_logger_impl.h', 459 'environment/default_logger_impl.h',
433 ], 460 ],
434 'include_dirs': [ 461 'include_dirs': [
435 '..', 462 '..',
436 ], 463 ],
437 }, 464 },
438 { 465 {
439 # GN version: //mojo/service_manager 466 # GN version: //mojo/service_manager
440 'target_name': 'mojo_service_manager', 467 'target_name': 'mojo_service_manager',
441 'type': '<(component)', 468 'type': '<(component)',
442 'defines': [ 469 'defines': [
443 'MOJO_SERVICE_MANAGER_IMPLEMENTATION', 470 'MOJO_SERVICE_MANAGER_IMPLEMENTATION',
444 ], 471 ],
445 'dependencies': [ 472 'dependencies': [
446 '../base/base.gyp:base', 473 '../base/base.gyp:base',
447 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 474 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
448 '../net/net.gyp:net', 475 '../net/net.gyp:net',
449 '../url/url.gyp:url_lib', 476 '../url/url.gyp:url_lib',
450 'mojo_common_lib', 477 'mojo_common_lib',
451 'mojo_environment_chromium', 478 'mojo_environment_chromium',
452 'mojo_service_provider_bindings', 479 'mojo_service_provider_bindings',
453 'mojo_system_impl', 480 '<(mojo_system_for_component)',
454 ], 481 ],
455 'sources': [ 482 'sources': [
456 'service_manager/background_service_loader.cc', 483 'service_manager/background_service_loader.cc',
457 'service_manager/background_service_loader.h', 484 'service_manager/background_service_loader.h',
458 'service_manager/service_loader.h', 485 'service_manager/service_loader.h',
459 'service_manager/service_manager.cc', 486 'service_manager/service_manager.cc',
460 'service_manager/service_manager.h', 487 'service_manager/service_manager.h',
461 'service_manager/service_manager_export.h', 488 'service_manager/service_manager_export.h',
462 ], 489 ],
463 'export_dependent_settings': [ 490 'export_dependent_settings': [
(...skipping 21 matching lines...) Expand all
485 { 512 {
486 'target_name': 'mojo_shell_lib', 513 'target_name': 'mojo_shell_lib',
487 'type': 'static_library', 514 'type': 'static_library',
488 'dependencies': [ 515 'dependencies': [
489 '../base/base.gyp:base', 516 '../base/base.gyp:base',
490 '../base/base.gyp:base_static', 517 '../base/base.gyp:base_static',
491 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 518 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
492 '../net/net.gyp:net', 519 '../net/net.gyp:net',
493 '../url/url.gyp:url_lib', 520 '../url/url.gyp:url_lib',
494 'mojo_application', 521 'mojo_application',
522 'mojo_common_lib',
495 'mojo_external_service_bindings', 523 'mojo_external_service_bindings',
496 'mojo_gles2_impl', 524 'mojo_gles2_impl',
497 'mojo_native_viewport_service', 525 'mojo_native_viewport_service',
498 'mojo_network_bindings', 526 'mojo_network_bindings',
499 'mojo_profile_service', 527 'mojo_profile_service',
500 'mojo_service_manager', 528 'mojo_service_manager',
501 'mojo_service_provider_bindings', 529 'mojo_service_provider_bindings',
502 'mojo_spy', 530 'mojo_spy',
503 'mojo_system_impl', 531 'mojo_system_impl',
504 ], 532 ],
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 'views/views_init_internal.h', 1024 'views/views_init_internal.h',
997 ], 1025 ],
998 'defines': [ 1026 'defines': [
999 'MOJO_VIEWS_IMPLEMENTATION', 1027 'MOJO_VIEWS_IMPLEMENTATION',
1000 ], 1028 ],
1001 }, 1029 },
1002 ], 1030 ],
1003 }], 1031 }],
1004 ], 1032 ],
1005 } 1033 }
OLDNEW
« no previous file with comments | « mojo/environment/BUILD.gn ('k') | mojo/mojo_apps.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698