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

Side by Side Diff: mojo/mojo.gyp

Issue 675563002: Remove mojo/python and gyp targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « mojo/PRESUBMIT.py ('k') | mojo/mojo_python_unittests.isolate » ('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',
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 'mojo_core_window_manager_unittests', 59 'mojo_core_window_manager_unittests',
60 'mojo_view_manager', 60 'mojo_view_manager',
61 'mojo_view_manager_unittests', 61 'mojo_view_manager_unittests',
62 ], 62 ],
63 }], 63 }],
64 ['OS == "linux"', { 64 ['OS == "linux"', {
65 'dependencies': [ 65 'dependencies': [
66 'mojo_external_application_tests', 66 'mojo_external_application_tests',
67 ], 67 ],
68 }], 68 }],
69 ['component != "shared_library" and OS == "linux"', {
70 'dependencies': [
71 'mojo_python_bindings',
72 'mojo_python_embedder',
73 'mojo_python_system',
74 'mojo_python',
75 ],
76 }],
77 ] 69 ]
78 }, 70 },
79 { 71 {
80 # GN version: //mojo/shell:external_service_bindings 72 # GN version: //mojo/shell:external_service_bindings
81 'target_name': 'mojo_external_service_bindings', 73 'target_name': 'mojo_external_service_bindings',
82 'type': 'static_library', 74 'type': 'static_library',
83 'sources': [ 75 'sources': [
84 'shell/external_service.mojom', 76 'shell/external_service.mojom',
85 ], 77 ],
86 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], 78 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 'conditions': [ 570 'conditions': [
579 ['use_x11==1', { 571 ['use_x11==1', {
580 'dependencies': [ 572 'dependencies': [
581 '../ui/gfx/x/gfx_x11.gyp:gfx_x11', 573 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
582 ], 574 ],
583 }], 575 }],
584 ], 576 ],
585 }, 577 },
586 ], 578 ],
587 }], 579 }],
588 ['component!="shared_library" and OS=="linux"', {
589 'targets': [
590 {
591 # GN version: //mojo/public/python:system
592 'target_name': 'mojo_python_system',
593 'variables': {
594 'python_base_module': 'mojo',
595 'python_cython_module': 'system',
596 },
597 'sources': [
598 'public/python/mojo/c_core.pxd',
599 'public/python/mojo/c_environment.pxd',
600 'public/python/mojo/system.pyx',
601 'public/python/src/python_system_helper.cc',
602 'public/python/src/python_system_helper.h',
603 ],
604 'dependencies': [
605 'public/mojo_public.gyp:mojo_environment_standalone',
606 'public/mojo_public.gyp:mojo_system',
607 'public/mojo_public.gyp:mojo_utility',
608 ],
609 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
610 },
611 {
612 # GN version: //mojo/python:embedder
613 'target_name': 'mojo_python_embedder',
614 'type': 'loadable_module',
615 'variables': {
616 'python_base_module': 'mojo',
617 'python_cython_module': 'embedder',
618 },
619 'sources': [
620 'python/system/mojo/embedder.pyx',
621 ],
622 'dependencies': [
623 'edk/mojo_edk.gyp:mojo_system_impl',
624 ],
625 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
626 },
627 {
628 # GN version: //mojo/public/python:bindings
629 'target_name': 'mojo_python_bindings',
630 'type': 'none',
631 'variables': {
632 'python_base_module': 'mojo/bindings',
633 },
634 'sources': [
635 'public/python/mojo/bindings/__init__.py',
636 'public/python/mojo/bindings/descriptor.py',
637 'public/python/mojo/bindings/messaging.py',
638 'public/python/mojo/bindings/promise.py',
639 'public/python/mojo/bindings/reflection.py',
640 'public/python/mojo/bindings/serialization.py',
641 ],
642 'dependencies': [
643 'mojo_python_system',
644 ],
645 'includes': [ '../third_party/cython/python_module.gypi' ],
646 },
647 {
648 # GN version: //mojo/python
649 'target_name': 'mojo_python',
650 'type': 'none',
651 'variables': {
652 'python_base_module': 'mojo',
653 },
654 'sources': [
655 'public/python/mojo/__init__.py',
656 ],
657 'dependencies': [
658 'mojo_python_bindings',
659 'mojo_python_embedder',
660 'mojo_python_system',
661 ],
662 # The python module need to be copied to their destinations
663 'actions': [
664 {
665 'action_name': 'Copy system module.',
666 'inputs': [
667 '<(DEPTH)/build/cp.py',
668 '<(PRODUCT_DIR)/libmojo_python_system.so',
669 ],
670 'outputs': [
671 '<(PRODUCT_DIR)/python/mojo/system.so',
672 ],
673 'action': [
674 'python',
675 '<@(_inputs)',
676 '<@(_outputs)',
677 ]
678 },
679 {
680 'action_name': 'Copy embedder module.',
681 'inputs': [
682 '<(DEPTH)/build/cp.py',
683 '<(PRODUCT_DIR)/libmojo_python_embedder.so',
684 ],
685 'outputs': [
686 '<(PRODUCT_DIR)/python/mojo/embedder.so',
687 ],
688 'action': [
689 'python',
690 '<@(_inputs)',
691 '<@(_outputs)',
692 ]
693 },
694 ],
695 'includes': [ '../third_party/cython/python_module.gypi' ],
696 },
697 ],
698 }],
699 ['component!="shared_library" and OS=="linux" and test_isolation_mode!="noop "', {
700 'targets': [
701 {
702 'target_name': 'mojo_python_unittests_run',
703 'type': 'none',
704 'dependencies': [
705 'mojo_python',
706 'public/mojo_public.gyp:mojo_public_test_interfaces',
707 ],
708 'includes': [
709 '../build/isolate.gypi',
710 ],
711 'sources': [
712 'mojo_python_unittests.isolate',
713 ],
714 },
715 ],
716 }],
717 ['test_isolation_mode != "noop"', { 580 ['test_isolation_mode != "noop"', {
718 'targets': [ 581 'targets': [
719 { 582 {
720 'target_name': 'mojo_js_unittests_run', 583 'target_name': 'mojo_js_unittests_run',
721 'type': 'none', 584 'type': 'none',
722 'dependencies': [ 585 'dependencies': [
723 'mojo_js_unittests', 586 'mojo_js_unittests',
724 ], 587 ],
725 'includes': [ 588 'includes': [
726 '../build/isolate.gypi', 589 '../build/isolate.gypi',
727 ], 590 ],
728 'sources': [ 591 'sources': [
729 'mojo_js_unittests.isolate', 592 'mojo_js_unittests.isolate',
730 ], 593 ],
731 }, 594 },
732 ], 595 ],
733 }], 596 }],
734 ], 597 ],
735 } 598 }
OLDNEW
« no previous file with comments | « mojo/PRESUBMIT.py ('k') | mojo/mojo_python_unittests.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698