diff options
author | gunsch@chromium.org <gunsch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-31 16:43:19 +0000 |
---|---|---|
committer | gunsch@chromium.org <gunsch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-31 16:43:19 +0000 |
commit | d345593ff7f27a576526d2cbeb4de6e4c0cb974f (patch) | |
tree | b6da7402ed0edb618e3892b7fafc4d2acc1cbc39 /chromecast/chromecast.gyp | |
parent | f9c8c7c73e3106e8f65bb58d45c8114f4c70b590 (diff) | |
download | chromium_src-d345593ff7f27a576526d2cbeb4de6e4c0cb974f.zip chromium_src-d345593ff7f27a576526d2cbeb4de6e4c0cb974f.tar.gz chromium_src-d345593ff7f27a576526d2cbeb4de6e4c0cb974f.tar.bz2 |
Generates Chromecast User-Agent string from current Chromium version.
R=mad@chromium.org,lcwu@chromium.org
BUG=391080
Review URL: https://codereview.chromium.org/405073002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromecast/chromecast.gyp')
-rw-r--r-- | chromecast/chromecast.gyp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/chromecast/chromecast.gyp b/chromecast/chromecast.gyp index 505bd94..cfdac1c 100644 --- a/chromecast/chromecast.gyp +++ b/chromecast/chromecast.gyp @@ -106,6 +106,7 @@ 'cast_common', 'cast_service', 'cast_shell_pak', + 'cast_version_header', '../ui/aura/aura.gyp:aura_test_support', '../content/content.gyp:content', '../content/content.gyp:content_app_browser', @@ -148,5 +149,37 @@ }], ], }, + { + 'target_name': 'cast_version_header', + 'type': 'none', + 'direct_dependent_settings': { + 'include_dirs': [ + '<(SHARED_INTERMEDIATE_DIR)', + ], + }, + 'actions': [ + { + 'action_name': 'version_header', + 'message': 'Generating version header file: <@(_outputs)', + 'inputs': [ + '<(version_path)', + 'common/version.h.in', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/chromecast/common/version.h', + ], + 'action': [ + 'python', + '<(version_py_path)', + '-e', 'VERSION_FULL="<(version_full)"', + 'common/version.h.in', + '<@(_outputs)', + ], + 'includes': [ + '../build/util/version.gypi', + ], + }, + ], + }, ], # end of targets } |