summaryrefslogtreecommitdiffstats
path: root/base
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 /base
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 'base')
-rw-r--r--base/base.gyp11
1 files changed, 8 insertions, 3 deletions
diff --git a/base/base.gyp b/base/base.gyp
index a294726..b73415a 100644
--- a/base/base.gyp
+++ b/base/base.gyp
@@ -362,11 +362,13 @@
{
'action_name': 'linux_version',
'variables': {
+ 'lastchange_path':
+ '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
'version_py_path': '../chrome/tools/build/version.py',
'version_path': '../chrome/VERSION',
'template_input_path': 'file_version_info_linux.h.version',
'template_output_path':
- '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h',
+ '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h',
},
'conditions': [
[ 'branding == "Chrome"', {
@@ -385,22 +387,24 @@
'<(template_input_path)',
'<(version_path)',
'<(branding_path)',
+ '<(lastchange_path)',
],
'outputs': [
# Use a non-existant output so this action always runs and
# generates version information, e.g. to capture revision
# changes, which aren't captured by file dependencies.
- '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.bogus',
+ '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.always',
# And this is the real output, so that the build system knows
# what action generates it.
- '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h',
+ '<(template_output_path)',
],
'action': [
'python',
'<(version_py_path)',
'-f', '<(version_path)',
'-f', '<(branding_path)',
+ '-f', '<(lastchange_path)',
'<(template_input_path)',
'<(template_output_path)',
],
@@ -419,6 +423,7 @@
'idle_timer.cc',
],
'dependencies': [
+ '../build/util/build_util.gyp:lastchange',
'../build/linux/system.gyp:gtk',
'../build/linux/system.gyp:nss',
],