Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: build/util/build_util.gyp

Issue 159876: Allow the lastchange target to get a hard-coded default last change... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | build/util/lastchange.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « no previous file | build/util/lastchange.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698