summaryrefslogtreecommitdiffstats
path: root/build/util/build_util.gyp
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 16:08:16 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 16:08:16 +0000
commit198d68d6d03f911613416739963482f6fde00255 (patch)
tree33895386517610bc231ae5e7385138e086709d06 /build/util/build_util.gyp
parentec520c71074e4cddc9da53076daa52d67cb80d33 (diff)
downloadchromium_src-198d68d6d03f911613416739963482f6fde00255.zip
chromium_src-198d68d6d03f911613416739963482f6fde00255.tar.gz
chromium_src-198d68d6d03f911613416739963482f6fde00255.tar.bz2
Fetch last change (revision) info in a separate action that can run
every build, instead of having it occur as a side effect of updating some other target for which we want to use normal up-to-date checks. BUG=none TEST=none Review URL: http://codereview.chromium.org/118192 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17634 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/util/build_util.gyp')
-rw-r--r--build/util/build_util.gyp34
1 files changed, 34 insertions, 0 deletions
diff --git a/build/util/build_util.gyp b/build/util/build_util.gyp
new file mode 100644
index 0000000..0624ab5
--- /dev/null
+++ b/build/util/build_util.gyp
@@ -0,0 +1,34 @@
+# Copyright (c) 2009 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.
+
+{
+ 'includes': [
+ '../common.gypi',
+ ],
+ 'targets': [
+ {
+ 'target_name': 'lastchange',
+ 'type': 'none',
+ 'variables': {
+ 'lastchange_out_path': '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
+ },
+ 'actions': [
+ {
+ 'action_name': 'lastchange',
+ 'inputs': [
+ 'lastchange.py',
+ ],
+ 'outputs': [
+ '<(lastchange_out_path)',
+ '<(lastchange_out_path).always',
+ ],
+ 'action': [
+ 'python', '<@(_inputs)', '-o', '<(lastchange_out_path)',
+ ],
+ 'message': 'Extracting last change to <(lastchange_out_path)'
+ },
+ ],
+ },
+ ]
+}