OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'lastchange', | 8 'target_name': 'lastchange', |
9 'type': 'none', | 9 'type': 'none', |
10 'toolsets': ['host', 'target'], | |
11 'variables': { | 10 'variables': { |
12 'lastchange_out_path': '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', | 11 'lastchange_out_path': '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', |
13 'default_lastchange_path': '../LASTCHANGE.in', | 12 'default_lastchange_path': '../LASTCHANGE.in', |
14 }, | 13 }, |
15 'actions': [ | 14 'actions': [ |
16 { | 15 { |
17 'action_name': 'lastchange', | 16 'action_name': 'lastchange', |
18 'inputs': [ | 17 'inputs': [ |
19 # Note: <(default_lastchange_path) is optional, | 18 # Note: <(default_lastchange_path) is optional, |
20 # so it doesn't show up in inputs. | 19 # so it doesn't show up in inputs. |
21 './lastchange.py', | 20 './lastchange.py', |
22 ], | 21 ], |
23 'outputs': [ | 22 'outputs': [ |
24 '<(lastchange_out_path).always', | 23 '<(lastchange_out_path).always', |
25 '<(lastchange_out_path)', | 24 '<(lastchange_out_path)', |
26 ], | 25 ], |
27 'action': [ | 26 'action': [ |
28 'python', '<@(_inputs)', | 27 'python', '<@(_inputs)', |
29 '-o', '<(lastchange_out_path)', | 28 '-o', '<(lastchange_out_path)', |
30 '-d', '<(default_lastchange_path)', | 29 '-d', '<(default_lastchange_path)', |
31 ], | 30 ], |
32 'message': 'Extracting last change to <(lastchange_out_path)', | 31 'message': 'Extracting last change to <(lastchange_out_path)', |
33 'process_outputs_as_sources': '1', | 32 'process_outputs_as_sources': '1', |
34 }, | 33 }, |
35 ], | 34 ], |
36 }, | 35 }, |
37 ] | 36 ] |
38 } | 37 } |
OLD | NEW |