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

Unified Diff: mojo/mojo.gyp

Issue 377293002: Core mojo API for python. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dependency issue 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/public/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/mojo.gyp
diff --git a/mojo/mojo.gyp b/mojo/mojo.gyp
index f38a79384186c9f6b717bbe0c6e815edd38cc025..acd8409151bc36329ded4c85579a1c1cc461ab3b 100644
--- a/mojo/mojo.gyp
+++ b/mojo/mojo.gyp
@@ -87,6 +87,13 @@
'mojo_dbus_echo_service',
],
}],
+ ['component != "shared_library" and OS == "linux"', {
+ 'dependencies': [
+ 'mojo_python_embedder',
+ 'mojo_python_system',
+ 'mojo_python',
+ ],
+ }],
]
},
{
@@ -531,5 +538,77 @@
},
],
}],
+ ['component!="shared_library" and OS=="linux"', {
+ 'targets': [
+ {
+ 'target_name': 'mojo_python_system',
+ 'variables': {
+ 'python_base_module': 'mojo',
+ 'python_cython_module': 'system',
+ },
+ 'sources': [
+ 'public/python/mojo/c_core.pxd',
+ 'public/python/mojo/system.pyx',
+ ],
+ 'dependencies': [
+ 'mojo_base.gyp:mojo_system',
+ ],
+ 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
+ },
+ {
+ 'target_name': 'mojo_python_embedder',
+ 'type': 'loadable_module',
+ 'variables': {
+ 'python_base_module': 'mojo',
+ 'python_cython_module': 'embedder',
+ },
+ 'sources': [
+ 'python/system/mojo/embedder.pyx',
+ ],
+ 'dependencies': [
+ 'mojo_base.gyp:mojo_system_impl',
+ ],
+ 'includes': [ '../third_party/cython/cython_compiler.gypi' ],
+ },
+ {
+ 'target_name': 'mojo_python',
+ 'type': 'none',
+ 'variables': {
+ 'python_base_module': 'mojo',
+ },
+ 'sources': [
+ 'public/python/mojo/__init__.py',
+ ],
+ 'dependencies': [
+ 'mojo_python_embedder',
+ 'mojo_python_system',
+ ],
+ 'includes': [ '../third_party/cython/python_module.gypi' ],
+ },
+ {
+ 'target_name': 'mojo_python_unittests',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'run_mojo_python_unittests',
+ 'inputs': [
+ 'python/tests/test_core.py',
+ '<(SHARED_INTERMEDIATE_DIR)/mojo_python_py_module.stamp',
+ '<(PRODUCT_DIR)/python/mojo/__init__.py',
+ ],
+ 'outputs': [
+ 'none',
+ ],
+ 'action': [
+ 'python', '<@(_inputs)', '<(PRODUCT_DIR)/python',
+ ],
+ },
+ ],
+ 'dependency': [
+ 'mojo_python',
+ ],
+ },
+ ],
+ }],
],
}
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698