| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 'variables': { | 6 'variables': { |
| 7 'python_binary_modules%': [], | |
| 8 'python_module_destination': '<(PRODUCT_DIR)/python/<(python_base_module)', | 7 'python_module_destination': '<(PRODUCT_DIR)/python/<(python_base_module)', |
| 9 'cp': '<(DEPTH)/third_party/cython/cp_python_binary_modules.py', | |
| 10 'timestamp': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)_py_module.stamp', | |
| 11 }, | 8 }, |
| 12 'rules': [ | 9 'rules': [ |
| 13 { | 10 { |
| 14 'rule_name': '<(_target_name)_cp_python', | 11 'rule_name': '<(_target_name)_cp_python', |
| 15 'extension': 'py', | 12 'extension': 'py', |
| 16 'inputs': [ | 13 'inputs': [ |
| 17 '<(DEPTH)/build/cp.py', | 14 '<(DEPTH)/build/cp.py', |
| 18 ], | 15 ], |
| 19 'outputs': [ | 16 'outputs': [ |
| 20 '<(python_module_destination)/<(RULE_INPUT_NAME)', | 17 '<(python_module_destination)/<(RULE_INPUT_NAME)', |
| 21 ], | 18 ], |
| 22 'action': [ | 19 'action': [ |
| 23 'python', | 20 'python', |
| 24 '<@(_inputs)', | 21 '<@(_inputs)', |
| 25 '<(RULE_INPUT_PATH)', | 22 '<(RULE_INPUT_PATH)', |
| 26 '<@(_outputs)', | 23 '<@(_outputs)', |
| 27 ], | 24 ], |
| 28 'message': 'Moving <(RULE_INPUT_PATH) to its destination', | 25 'message': 'Moving <(RULE_INPUT_PATH) to its destination', |
| 29 } | |
| 30 ], | |
| 31 'actions': [ | |
| 32 { | |
| 33 'action_name': '<(_target_name)_move_to_python_modules', | |
| 34 'inputs': [ | |
| 35 '<(cp)', | |
| 36 ], | |
| 37 'outputs': [ | |
| 38 '<(timestamp)', | |
| 39 ], | |
| 40 'action': [ | |
| 41 'python', | |
| 42 '<(cp)', | |
| 43 '<(timestamp)', | |
| 44 '<(PRODUCT_DIR)', | |
| 45 '<(python_module_destination)', | |
| 46 '>@(python_binary_modules)', | |
| 47 ], | |
| 48 }, | 26 }, |
| 49 ], | 27 ], |
| 50 'hard_dependency': 1, | 28 'hard_dependency': 1, |
| 51 } | 29 } |
| OLD | NEW |