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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 'python_base_module': 'mojo', | 615 'python_base_module': 'mojo', |
616 }, | 616 }, |
617 'sources': [ | 617 'sources': [ |
618 'public/python/mojo/__init__.py', | 618 'public/python/mojo/__init__.py', |
619 ], | 619 ], |
620 'dependencies': [ | 620 'dependencies': [ |
621 'mojo_python_bindings', | 621 'mojo_python_bindings', |
622 'mojo_python_embedder', | 622 'mojo_python_embedder', |
623 'mojo_python_system', | 623 'mojo_python_system', |
624 ], | 624 ], |
| 625 # The python module need to be copied to their destinations |
| 626 'actions': [ |
| 627 { |
| 628 'action_name': 'Copy system module.', |
| 629 'inputs': [ |
| 630 '<(DEPTH)/build/cp.py', |
| 631 '<(PRODUCT_DIR)/libmojo_python_system.so', |
| 632 ], |
| 633 'outputs': [ |
| 634 '<(PRODUCT_DIR)/python/mojo/system.so', |
| 635 ], |
| 636 'action': [ |
| 637 'python', |
| 638 '<@(_inputs)', |
| 639 '<@(_outputs)', |
| 640 ] |
| 641 }, |
| 642 { |
| 643 'action_name': 'Copy embedder module.', |
| 644 'inputs': [ |
| 645 '<(DEPTH)/build/cp.py', |
| 646 '<(PRODUCT_DIR)/libmojo_python_embedder.so', |
| 647 ], |
| 648 'outputs': [ |
| 649 '<(PRODUCT_DIR)/python/mojo/embedder.so', |
| 650 ], |
| 651 'action': [ |
| 652 'python', |
| 653 '<@(_inputs)', |
| 654 '<@(_outputs)', |
| 655 ] |
| 656 }, |
| 657 ], |
625 'includes': [ '../third_party/cython/python_module.gypi' ], | 658 'includes': [ '../third_party/cython/python_module.gypi' ], |
626 }, | 659 }, |
627 ], | 660 ], |
628 }], | 661 }], |
629 ['component!="shared_library" and OS=="linux" and test_isolation_mode!="noop
"', { | 662 ['component!="shared_library" and OS=="linux" and test_isolation_mode!="noop
"', { |
630 'targets': [ | 663 'targets': [ |
631 { | 664 { |
632 'target_name': 'mojo_python_unittests_run', | 665 'target_name': 'mojo_python_unittests_run', |
633 'type': 'none', | 666 'type': 'none', |
634 'dependencies': [ | 667 'dependencies': [ |
635 'mojo_python', | 668 'mojo_python', |
636 'mojo_base.gyp:mojo_public_test_interfaces', | 669 'mojo_base.gyp:mojo_public_test_interfaces', |
637 ], | 670 ], |
638 'includes': [ | 671 'includes': [ |
639 '../build/isolate.gypi', | 672 '../build/isolate.gypi', |
640 'mojo_python_unittests.isolate', | 673 'mojo_python_unittests.isolate', |
641 ], | 674 ], |
642 'sources': [ | 675 'sources': [ |
643 'mojo_python_unittests.isolate', | 676 'mojo_python_unittests.isolate', |
644 ], | 677 ], |
645 }, | 678 }, |
646 ], | 679 ], |
647 }], | 680 }], |
648 ], | 681 ], |
649 } | 682 } |
OLD | NEW |