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', |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 'mojo_view_manager', | 80 'mojo_view_manager', |
81 'mojo_view_manager_unittests', | 81 'mojo_view_manager_unittests', |
82 ], | 82 ], |
83 }], | 83 }], |
84 ['OS == "linux"', { | 84 ['OS == "linux"', { |
85 'dependencies': [ | 85 'dependencies': [ |
86 'mojo_dbus_echo', | 86 'mojo_dbus_echo', |
87 'mojo_dbus_echo_service', | 87 'mojo_dbus_echo_service', |
88 ], | 88 ], |
89 }], | 89 }], |
| 90 ['component != "shared_library" and OS == "linux"', { |
| 91 'dependencies': [ |
| 92 'mojo_python_embedder', |
| 93 'mojo_python_system', |
| 94 'mojo_python', |
| 95 ], |
| 96 }], |
90 ] | 97 ] |
91 }, | 98 }, |
92 { | 99 { |
93 # GN version: //mojo/shell:external_service_bindings | 100 # GN version: //mojo/shell:external_service_bindings |
94 'target_name': 'mojo_external_service_bindings', | 101 'target_name': 'mojo_external_service_bindings', |
95 'type': 'static_library', | 102 'type': 'static_library', |
96 'sources': [ | 103 'sources': [ |
97 'shell/external_service.mojom', | 104 'shell/external_service.mojom', |
98 ], | 105 ], |
99 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], | 106 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 'views/mojo_views_export.h', | 531 'views/mojo_views_export.h', |
525 'views/views_init_internal.cc', | 532 'views/views_init_internal.cc', |
526 'views/views_init_internal.h', | 533 'views/views_init_internal.h', |
527 ], | 534 ], |
528 'defines': [ | 535 'defines': [ |
529 'MOJO_VIEWS_IMPLEMENTATION', | 536 'MOJO_VIEWS_IMPLEMENTATION', |
530 ], | 537 ], |
531 }, | 538 }, |
532 ], | 539 ], |
533 }], | 540 }], |
| 541 ['component!="shared_library" and OS=="linux"', { |
| 542 'targets': [ |
| 543 { |
| 544 'target_name': 'mojo_python_system', |
| 545 'variables': { |
| 546 'python_base_module': 'mojo', |
| 547 'python_cython_module': 'system', |
| 548 }, |
| 549 'sources': [ |
| 550 'public/python/mojo/c_core.pxd', |
| 551 'public/python/mojo/system.pyx', |
| 552 ], |
| 553 'dependencies': [ |
| 554 'mojo_base.gyp:mojo_system', |
| 555 ], |
| 556 'includes': [ '../third_party/cython/cython_compiler.gypi' ], |
| 557 }, |
| 558 { |
| 559 'target_name': 'mojo_python_embedder', |
| 560 'type': 'loadable_module', |
| 561 'variables': { |
| 562 'python_base_module': 'mojo', |
| 563 'python_cython_module': 'embedder', |
| 564 }, |
| 565 'sources': [ |
| 566 'python/system/mojo/embedder.pyx', |
| 567 ], |
| 568 'dependencies': [ |
| 569 'mojo_base.gyp:mojo_system_impl', |
| 570 ], |
| 571 'includes': [ '../third_party/cython/cython_compiler.gypi' ], |
| 572 }, |
| 573 { |
| 574 'target_name': 'mojo_python', |
| 575 'type': 'none', |
| 576 'variables': { |
| 577 'python_base_module': 'mojo', |
| 578 }, |
| 579 'sources': [ |
| 580 'public/python/mojo/__init__.py', |
| 581 ], |
| 582 'dependencies': [ |
| 583 'mojo_python_embedder', |
| 584 'mojo_python_system', |
| 585 ], |
| 586 'includes': [ '../third_party/cython/python_module.gypi' ], |
| 587 }, |
| 588 { |
| 589 'target_name': 'mojo_python_unittests', |
| 590 'type': 'none', |
| 591 'actions': [ |
| 592 { |
| 593 'action_name': 'run_mojo_python_unittests', |
| 594 'inputs': [ |
| 595 'python/tests/test_core.py', |
| 596 '<(SHARED_INTERMEDIATE_DIR)/mojo_python_py_module.stamp', |
| 597 '<(PRODUCT_DIR)/python/mojo/__init__.py', |
| 598 ], |
| 599 'outputs': [ |
| 600 'none', |
| 601 ], |
| 602 'action': [ |
| 603 'python', '<@(_inputs)', '<(PRODUCT_DIR)/python', |
| 604 ], |
| 605 }, |
| 606 ], |
| 607 'dependency': [ |
| 608 'mojo_python', |
| 609 ], |
| 610 }, |
| 611 ], |
| 612 }], |
534 ], | 613 ], |
535 } | 614 } |
OLD | NEW |