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