| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'python_binary_modules%': [], | |
| 8 '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 }, | |
| 12 'rules': [ | |
| 13 { | |
| 14 'rule_name': '<(_target_name)_cp_python', | |
| 15 'extension': 'py', | |
| 16 'inputs': [ | |
| 17 '<(DEPTH)/build/cp.py', | |
| 18 ], | |
| 19 'outputs': [ | |
| 20 '<(python_module_destination)/<(RULE_INPUT_NAME)', | |
| 21 ], | |
| 22 'action': [ | |
| 23 'python', | |
| 24 '<@(_inputs)', | |
| 25 '<(RULE_INPUT_PATH)', | |
| 26 '<@(_outputs)', | |
| 27 ], | |
| 28 '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 }, | |
| 49 ], | |
| 50 'direct_dependent_settings': { | |
| 51 'variables': { | |
| 52 'python_module_timestamps': [ | |
| 53 '<(timestamp)', | |
| 54 ], | |
| 55 }, | |
| 56 }, | |
| 57 'hard_dependency': 1, | |
| 58 } | |
| OLD | NEW |