1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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,
}
|