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

Side by Side Diff: mojo/mojo.gyp

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

Powered by Google App Engine
This is Rietveld 408576698