diff options
author | mmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-24 18:03:55 +0000 |
---|---|---|
committer | mmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-24 18:03:55 +0000 |
commit | 6d4da12a46fe044a8e476c72fd6f6538e28aec21 (patch) | |
tree | ff04034426388fb2327a30abd0fa32652b6fc34e /base/base.gyp | |
parent | 3b9a32f0cf51bca46ed58b1afb2ac33d1d668a96 (diff) | |
download | chromium_src-6d4da12a46fe044a8e476c72fd6f6538e28aec21.zip chromium_src-6d4da12a46fe044a8e476c72fd6f6538e28aec21.tar.gz chromium_src-6d4da12a46fe044a8e476c72fd6f6538e28aec21.tar.bz2 |
Generate header file of Linux version information (currently gyp-only).
This isn't yet #included in file_version_info_linux.cc since we haven't
officially cutover to the gyp build.
BUG=8132
Review URL: http://codereview.chromium.org/45028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12369 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base.gyp')
-rw-r--r-- | base/base.gyp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/base/base.gyp b/base/base.gyp index 15963ba..da7a0df 100644 --- a/base/base.gyp +++ b/base/base.gyp @@ -320,6 +320,36 @@ ], 'conditions': [ [ 'OS == "linux"', { + 'actions': [ + { + 'action_name': 'linux_version', + 'variables': { + 'template_input_path': 'file_version_info_linux.h.version' + }, + 'inputs': [ + '<(template_input_path)', + '../chrome/VERSION', + '../chrome/tools/build/linux/version.sh', + ], + 'conditions': [ + [ 'branding == "Chrome"', { + 'inputs': ['../chrome/app/theme/google_chrome/BRANDING'] + }, { # else branding!="Chrome" + 'inputs': ['../chrome/app/theme/chromium/BRANDING'] + }], + ], + 'outputs': [ + '<(INTERMEDIATE_DIR)/base/file_version_info_linux.h', + ], + 'action': [ + '../chrome/tools/build/linux/version.sh', + '<(template_input_path)', '<@(_outputs)', '../chrome' + ], + }, + ], + 'include_dirs': [ + '<(INTERMEDIATE_DIR)', + ], 'sources/': [ ['exclude', '_(mac|win)\\.cc$'], ['exclude', '\\.mm?$' ] ], 'sources!': [ |