diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-22 00:41:52 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-22 00:41:52 +0000 |
commit | 5193d537d7a68cb5bf50bacc9e42437d6faf66d5 (patch) | |
tree | 1143832c0529dd6c6584f6e2b79b3c681b3e110b /webkit/glue/webkit_glue.gypi | |
parent | 0a318c63fa078d29641b505c2f44ee76c7e773dc (diff) | |
download | chromium_src-5193d537d7a68cb5bf50bacc9e42437d6faf66d5.zip chromium_src-5193d537d7a68cb5bf50bacc9e42437d6faf66d5.tar.gz chromium_src-5193d537d7a68cb5bf50bacc9e42437d6faf66d5.tar.bz2 |
webkit: expose webkit branch and revision number in about pages
- Change lastchange.py to work in other directories and to
provide SVN URL.
- Use lastchange.py in place where we generate WebKit versioning
info.
- Include branch@revision string in glue API.
BUG=41264
TEST=compiles
Review URL: http://codereview.chromium.org/6354014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72245 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.gypi')
-rw-r--r-- | webkit/glue/webkit_glue.gypi | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/webkit/glue/webkit_glue.gypi b/webkit/glue/webkit_glue.gypi index b6a8c6a..eec99bf 100644 --- a/webkit/glue/webkit_glue.gypi +++ b/webkit/glue/webkit_glue.gypi @@ -120,13 +120,23 @@ { 'action_name': 'webkit_version', 'inputs': [ - '../build/webkit_version.py', - '<(webkit_src_dir)/Source/WebCore/Configurations/Version.xcconfig', + '<(script)', + '<(webkit_src_dir)<(version_file)', + '../../build/util/lastchange.py', # Used by the script. ], 'outputs': [ '<(INTERMEDIATE_DIR)/webkit_version.h', ], - 'action': ['python', '<@(_inputs)', '<(INTERMEDIATE_DIR)'], + 'action': ['python', '<(script)', '<(webkit_src_dir)', + '<(version_file)', '<(INTERMEDIATE_DIR)'], + 'variables': { + 'script': '../build/webkit_version.py', + # version_file is a relative path from |webkit_src_dir| to + # the version file. But gyp will eat the variable unless + # it looks like an absolute path, so write it like one and + # then use it carefully above. + 'version_file': '/Source/WebCore/Configurations/Version.xcconfig', + }, }, ], 'include_dirs': [ |