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

Unified Diff: chrome/chrome.gyp

Issue 118192: Fetch last change (revision) info in a separate action that can run... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/util/lastchange.py ('k') | chrome/tools/build/version.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/chrome.gyp
===================================================================
--- chrome/chrome.gyp (revision 17612)
+++ chrome/chrome.gyp (working copy)
@@ -3677,6 +3677,7 @@
'chrome_resources',
'installer/installer.gyp:installer_util_strings',
'worker',
+ '../build/util/build_util.gyp:lastchange',
'../net/net.gyp:net_resources',
'../views/views.gyp:views',
'../webkit/webkit.gyp:webkit_resources',
@@ -3688,35 +3689,35 @@
'rule_name': 'win_version',
'extension': 'version',
'variables': {
- 'version_py': '../chrome/tools/build/version.py',
- 'VERSION': '../chrome/VERSION',
+ 'lastchange_path':
+ '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
+ 'version_py': 'tools/build/version.py',
+ 'version_path': 'VERSION',
'template_input_path': 'app/chrome_dll_version.rc.version',
- 'template_output_path':
- '<(grit_out_dir)/chrome_dll_version.rc',
+ 'template_output_path': '<(grit_out_dir)/chrome_dll_version.rc',
},
'conditions': [
[ 'branding == "Chrome"', {
'variables': {
- 'BRANDING':
- '../chrome/app/theme/google_chrome/BRANDING',
+ 'branding_path': 'app/theme/google_chrome/BRANDING',
},
}, { # else branding!="Chrome"
'variables': {
- 'BRANDING':
- '../chrome/app/theme/chromium/BRANDING',
+ 'branding_path': 'app/theme/chromium/BRANDING',
},
}],
],
'inputs': [
'<(template_input_path)',
- '<(VERSION)',
- '<(BRANDING)',
+ '<(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.
- '<(grit_out_dir)/chrome_dll_version.bogus',
+ '<(grit_out_dir)/chrome_dll_version.always',
# And this is the real output, so that the build system knows
# what action generates it.
@@ -3725,13 +3726,14 @@
'action': [
'python',
'<(version_py)',
- '-f', '<(VERSION)',
- '-f', '<(BRANDING)',
+ '-f', '<(version_path)',
+ '-f', '<(branding_path)',
+ '-f', '<(lastchange_path)',
'<(template_input_path)',
'<(template_output_path)',
],
'process_outputs_as_sources': 1,
- 'message': 'Generating version information'
+ 'message': 'Generating version information in <(template_output_path)'
},
],
'sources': [
« no previous file with comments | « build/util/lastchange.py ('k') | chrome/tools/build/version.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698