| OLD | NEW |
| 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 # We build two versions of these libraries, a version for use in |
| 20 # Chromium and the shell and an "embedded" version for use in loadable |
| 21 # apps/services. |
| 22 'common_sources': [ |
| 23 'common/common_type_converters.cc', |
| 24 'common/common_type_converters.h', |
| 25 'common/data_pipe_utils.cc', |
| 26 'common/data_pipe_utils.h', |
| 27 'common/handle_watcher.cc', |
| 28 'common/handle_watcher.h', |
| 29 'common/message_pump_mojo.cc', |
| 30 'common/message_pump_mojo.h', |
| 31 'common/message_pump_mojo_handler.h', |
| 32 'common/time_helper.cc', |
| 33 'common/time_helper.h', |
| 34 ], |
| 35 'environment_chromium_sources': [ |
| 36 'environment/default_async_waiter_impl.cc', |
| 37 'environment/default_async_waiter_impl.h', |
| 38 'environment/default_logger_impl.cc', |
| 39 'environment/default_logger_impl.h', |
| 40 'environment/environment.cc', |
| 41 # TODO(vtl): This is kind of ugly. (See TODO in logging.h.) |
| 42 "public/cpp/environment/logging.h", |
| 43 "public/cpp/environment/lib/logging.h", |
| 44 ], |
| 19 }, | 45 }, |
| 20 'includes': [ | 46 'includes': [ |
| 21 'mojo_apps.gypi', | 47 'mojo_apps.gypi', |
| 22 'mojo_examples.gypi', | 48 'mojo_examples.gypi', |
| 23 'mojo_public.gypi', | 49 'mojo_public.gypi', |
| 24 'mojo_services.gypi', | 50 'mojo_services.gypi', |
| 25 ], | 51 ], |
| 26 'targets': [ | 52 'targets': [ |
| 27 { | 53 { |
| 28 'target_name': 'mojo', | 54 'target_name': 'mojo', |
| 29 'type': 'none', | 55 'type': 'none', |
| 30 'dependencies': [ | 56 'dependencies': [ |
| 31 'mojo_apps_js_unittests', | 57 'mojo_apps_js_unittests', |
| 32 'mojo_compositor_app', | 58 'mojo_compositor_app', |
| 59 'mojo_common_embedded_lib', |
| 33 'mojo_common_lib', | 60 'mojo_common_lib', |
| 34 'mojo_common_unittests', | 61 'mojo_common_unittests', |
| 35 'mojo_cpp_bindings', | 62 'mojo_cpp_bindings', |
| 36 'mojo_geometry_lib', | 63 'mojo_geometry_lib', |
| 37 'mojo_html_viewer', | 64 'mojo_html_viewer', |
| 38 'mojo_js', | 65 'mojo_js', |
| 39 'mojo_js_bindings', | 66 'mojo_js_bindings', |
| 40 'mojo_js_unittests', | 67 'mojo_js_unittests', |
| 41 'mojo_launcher', | 68 'mojo_launcher', |
| 42 'mojo_message_generator', | 69 'mojo_message_generator', |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 'type': 'static_library', | 344 'type': 'static_library', |
| 318 'dependencies': [ | 345 'dependencies': [ |
| 319 '../base/base.gyp:base', | 346 '../base/base.gyp:base', |
| 320 ], | 347 ], |
| 321 'sources': [ | 348 'sources': [ |
| 322 'common/test/test_support_impl.cc', | 349 'common/test/test_support_impl.cc', |
| 323 'common/test/test_support_impl.h', | 350 'common/test/test_support_impl.h', |
| 324 ], | 351 ], |
| 325 }, | 352 }, |
| 326 { | 353 { |
| 354 # For use in loadable apps and services. |
| 355 'target_name': 'mojo_common_embedded_lib', |
| 356 'type': 'static_library', |
| 357 'defines': [ |
| 358 'MOJO_COMMON_EMBEDDED', |
| 359 ], |
| 360 'dependencies': [ |
| 361 '..//base/base.gyp:base', |
| 362 '..//base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami
c_annotations', |
| 363 'mojo_system', |
| 364 ], |
| 365 'sources': [ |
| 366 '<@(common_sources)', |
| 367 ], |
| 368 'all_dependent_settings': { |
| 369 'defines': [ |
| 370 'MOJO_COMMON_EMBEDDED', |
| 371 ], |
| 372 }, |
| 373 }, |
| 374 { |
| 327 # GN version: //mojo/common | 375 # GN version: //mojo/common |
| 376 # For use in Chromium and the shell. |
| 328 'target_name': 'mojo_common_lib', | 377 'target_name': 'mojo_common_lib', |
| 329 'type': '<(component)', | 378 'type': '<(component)', |
| 330 'defines': [ | 379 'defines': [ |
| 331 'MOJO_COMMON_IMPLEMENTATION', | 380 'MOJO_COMMON_IMPLEMENTATION', |
| 332 ], | 381 ], |
| 333 'dependencies': [ | 382 'dependencies': [ |
| 334 '../base/base.gyp:base', | 383 '../base/base.gyp:base', |
| 335 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 384 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 336 'mojo_system_impl', | 385 'mojo_system_impl', |
| 337 ], | 386 ], |
| 338 'export_dependent_settings': [ | 387 'export_dependent_settings': [ |
| 388 '../base/base.gyp:base', |
| 339 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 389 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 340 'mojo_system_impl', | 390 'mojo_system_impl', |
| 341 ], | 391 ], |
| 342 'sources': [ | 392 'sources': [ |
| 343 'common/common_type_converters.cc', | 393 '<@(common_sources)', |
| 344 'common/common_type_converters.h', | |
| 345 'common/data_pipe_utils.cc', | |
| 346 'common/data_pipe_utils.h', | |
| 347 'common/handle_watcher.cc', | |
| 348 'common/handle_watcher.h', | |
| 349 'common/message_pump_mojo.cc', | |
| 350 'common/message_pump_mojo.h', | |
| 351 'common/message_pump_mojo_handler.h', | |
| 352 'common/time_helper.cc', | |
| 353 'common/time_helper.h', | |
| 354 ], | 394 ], |
| 355 }, | 395 }, |
| 356 { | 396 { |
| 357 'target_name': 'mojo_common_test_support', | 397 'target_name': 'mojo_common_test_support', |
| 358 'type': 'static_library', | 398 'type': 'static_library', |
| 359 'dependencies': [ | 399 'dependencies': [ |
| 360 '../base/base.gyp:base', | 400 '../base/base.gyp:base', |
| 361 '../base/base.gyp:test_support_base', | 401 '../base/base.gyp:test_support_base', |
| 362 '../testing/gtest.gyp:gtest', | 402 '../testing/gtest.gyp:gtest', |
| 363 'mojo_system_impl', | 403 'mojo_system_impl', |
| (...skipping 21 matching lines...) Expand all Loading... |
| 385 'mojo_run_all_unittests', | 425 'mojo_run_all_unittests', |
| 386 ], | 426 ], |
| 387 'sources': [ | 427 'sources': [ |
| 388 'common/common_type_converters_unittest.cc', | 428 'common/common_type_converters_unittest.cc', |
| 389 'common/handle_watcher_unittest.cc', | 429 'common/handle_watcher_unittest.cc', |
| 390 'common/message_pump_mojo_unittest.cc', | 430 'common/message_pump_mojo_unittest.cc', |
| 391 'common/test/multiprocess_test_helper_unittest.cc', | 431 'common/test/multiprocess_test_helper_unittest.cc', |
| 392 ], | 432 ], |
| 393 }, | 433 }, |
| 394 { | 434 { |
| 435 # For use in loadable apps and services. |
| 436 'target_name': 'mojo_environment_chromium_embedded', |
| 437 'type': 'static_library', |
| 438 'dependencies': [ |
| 439 '../base/base.gyp:base', |
| 440 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 441 'mojo_common_embedded_lib', |
| 442 'mojo_system', |
| 443 ], |
| 444 'export_dependent_settings': [ |
| 445 '../base/base.gyp:base', |
| 446 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 447 ], |
| 448 'sources': [ |
| 449 '<@(environment_chromium_sources)', |
| 450 ], |
| 451 }, |
| 452 { |
| 395 # GN version: //mojo/environment:chromium | 453 # GN version: //mojo/environment:chromium |
| 454 # For use in Chromium and the shell. |
| 396 'target_name': 'mojo_environment_chromium', | 455 'target_name': 'mojo_environment_chromium', |
| 397 'type': 'static_library', | 456 'type': 'static_library', |
| 398 'dependencies': [ | 457 'dependencies': [ |
| 458 '../base/base.gyp:base', |
| 459 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 399 'mojo_common_lib', | 460 'mojo_common_lib', |
| 400 'mojo_environment_chromium_impl', | 461 'mojo_system_impl', |
| 462 ], |
| 463 'export_dependent_settings': [ |
| 464 '../base/base.gyp:base', |
| 465 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 401 ], | 466 ], |
| 402 'sources': [ | 467 'sources': [ |
| 403 'environment/environment.cc', | 468 '<@(environment_chromium_sources)', |
| 404 # TODO(vtl): This is kind of ugly. (See TODO in logging.h.) | |
| 405 "public/cpp/environment/logging.h", | |
| 406 "public/cpp/environment/lib/logging.h", | |
| 407 ], | |
| 408 'include_dirs': [ | |
| 409 '..', | |
| 410 ], | |
| 411 'export_dependent_settings': [ | |
| 412 'mojo_environment_chromium_impl', | |
| 413 ], | 469 ], |
| 414 }, | 470 }, |
| 415 { | 471 { |
| 416 # GN version: //mojo/environment:chromium_impl | |
| 417 'target_name': 'mojo_environment_chromium_impl', | |
| 418 'type': '<(component)', | |
| 419 'defines': [ | |
| 420 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION', | |
| 421 ], | |
| 422 'dependencies': [ | |
| 423 '../base/base.gyp:base', | |
| 424 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | |
| 425 'mojo_common_lib' | |
| 426 ], | |
| 427 'sources': [ | |
| 428 'environment/default_async_waiter_impl.cc', | |
| 429 'environment/default_async_waiter_impl.h', | |
| 430 'environment/default_logger_impl.cc', | |
| 431 'environment/default_logger_impl.h', | |
| 432 ], | |
| 433 'include_dirs': [ | |
| 434 '..', | |
| 435 ], | |
| 436 }, | |
| 437 { | |
| 438 # GN version: //mojo/service_manager | 472 # GN version: //mojo/service_manager |
| 439 'target_name': 'mojo_service_manager', | 473 'target_name': 'mojo_service_manager', |
| 440 'type': '<(component)', | 474 'type': '<(component)', |
| 441 'defines': [ | 475 'defines': [ |
| 442 'MOJO_SERVICE_MANAGER_IMPLEMENTATION', | 476 'MOJO_SERVICE_MANAGER_IMPLEMENTATION', |
| 443 ], | 477 ], |
| 444 'dependencies': [ | 478 'dependencies': [ |
| 445 '../base/base.gyp:base', | 479 '../base/base.gyp:base', |
| 446 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 480 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 447 '../net/net.gyp:net', | 481 '../net/net.gyp:net', |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 }], | 599 }], |
| 566 ], | 600 ], |
| 567 }, | 601 }, |
| 568 { | 602 { |
| 569 'target_name': 'mojo_shell_test_support', | 603 'target_name': 'mojo_shell_test_support', |
| 570 'type': 'static_library', | 604 'type': 'static_library', |
| 571 'dependencies': [ | 605 'dependencies': [ |
| 572 '../base/base.gyp:base', | 606 '../base/base.gyp:base', |
| 573 '../base/base.gyp:base_static', | 607 '../base/base.gyp:base_static', |
| 574 '../url/url.gyp:url_lib', | 608 '../url/url.gyp:url_lib', |
| 609 'mojo_common_lib', |
| 575 'mojo_service_manager', | 610 'mojo_service_manager', |
| 576 'mojo_shell_lib', | 611 'mojo_shell_lib', |
| 577 'mojo_system_impl', | 612 'mojo_system_impl', |
| 578 ], | 613 ], |
| 579 'sources': [ | 614 'sources': [ |
| 580 'shell/shell_test_helper.cc', | 615 'shell/shell_test_helper.cc', |
| 581 'shell/shell_test_helper.h', | 616 'shell/shell_test_helper.h', |
| 582 ], | 617 ], |
| 583 }, | 618 }, |
| 584 { | 619 { |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 'views/views_init_internal.h', | 1028 'views/views_init_internal.h', |
| 994 ], | 1029 ], |
| 995 'defines': [ | 1030 'defines': [ |
| 996 'MOJO_VIEWS_IMPLEMENTATION', | 1031 'MOJO_VIEWS_IMPLEMENTATION', |
| 997 ], | 1032 ], |
| 998 }, | 1033 }, |
| 999 ], | 1034 ], |
| 1000 }], | 1035 }], |
| 1001 ], | 1036 ], |
| 1002 } | 1037 } |
| OLD | NEW |