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

Unified Diff: third_party/cython/python_module.gypi

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 | « third_party/cython/python_flags.py ('k') | third_party/cython/rules.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cython/python_module.gypi
diff --git a/third_party/cython/python_module.gypi b/third_party/cython/python_module.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..a61ca2d3c89b35ef37f9e8b60bb4ce51dc4c182c
--- /dev/null
+++ b/third_party/cython/python_module.gypi
@@ -0,0 +1,51 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ 'python_binary_modules%': [],
+ 'python_module_destination': '<(PRODUCT_DIR)/python/<(python_base_module)',
+ 'cp': '<(DEPTH)/third_party/cython/cp_python_binary_modules.py',
+ 'timestamp': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)_py_module.stamp',
+ },
+ 'rules': [
+ {
+ 'rule_name': '<(_target_name)_cp_python',
+ 'extension': 'py',
+ 'inputs': [
+ '<(DEPTH)/build/cp.py',
+ ],
+ 'outputs': [
+ '<(python_module_destination)/<(RULE_INPUT_NAME)',
+ ],
+ 'action': [
+ 'python',
+ '<@(_inputs)',
+ '<(RULE_INPUT_PATH)',
+ '<@(_outputs)',
+ ],
+ 'message': 'Moving <(RULE_INPUT_PATH) to its destination',
+ }
+ ],
+ 'actions': [
+ {
+ 'action_name': '<(_target_name)_move_to_python_modules',
+ 'inputs': [
+ '<(cp)',
+ ],
+ 'outputs': [
+ '<(timestamp)',
+ ],
+ 'action': [
+ 'python',
+ '<(cp)',
+ '<(timestamp)',
+ '<(PRODUCT_DIR)',
+ '<(python_module_destination)',
+ '>@(python_binary_modules)',
+ ],
+ },
+ ],
+ 'hard_dependency': 1,
+}
« no previous file with comments | « third_party/cython/python_flags.py ('k') | third_party/cython/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698