summaryrefslogtreecommitdiffstats
path: root/chrome/chrome.gyp
diff options
context:
space:
mode:
authormathp <mathp@chromium.org>2015-10-21 13:53:57 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-21 20:54:55 +0000
commit43a8e38f6318192b107626d74e75c90d8d99f885 (patch)
tree09fe7f149029bfcab72be64b9a2a992047b53d8f /chrome/chrome.gyp
parentdd1274f99b889df2a344ddf64143a307d5a67d48 (diff)
downloadchromium_src-43a8e38f6318192b107626d74e75c90d8d99f885.zip
chromium_src-43a8e38f6318192b107626d74e75c90d8d99f885.tar.gz
chromium_src-43a8e38f6318192b107626d74e75c90d8d99f885.tar.bz2
Revert of Cleanup chrome/version.h handling (patchset #9 id:160001 of https://codereview.chromium.org/1405633002/ )
Reason for revert: Causing failures on the GN build (not gyp) for Mac: http://build.chromium.org/p/chromium.mac/builders/Mac%20GN%20%28dbg%29/builds/23191 Original issue's description: > Cleanup chrome/common/chrome_version.h handling > > Rename "version.h" to "chrome/common/chrome_version.h" > Update #include and GYP/GN references > Generate on all platforms > Remove redundant generated chrome/common/chrome_version.cc.version > Fix DEPS include_rules > > BUG=542807 > > Committed: https://crrev.com/59647ecac9524d954010d3d10b539ee4a340bf94 > Cr-Commit-Position: refs/heads/master@{#355196} > > Committed: https://crrev.com/31f086c2013853749cac45522eb950b9d0ab0302 > Cr-Commit-Position: refs/heads/master@{#355377} TBR=brettw@chromium.org,mdempsky@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=542807 Review URL: https://codereview.chromium.org/1418933002 Cr-Commit-Position: refs/heads/master@{#355393}
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r--chrome/chrome.gyp35
1 files changed, 35 insertions, 0 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index c9986e1..5fae3f0 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -415,6 +415,41 @@
],
},
{
+ # GN version: //chrome:version_header
+ 'target_name': 'chrome_version_header',
+ 'type': 'none',
+ 'hard_dependency': 1,
+ 'actions': [
+ {
+ 'action_name': 'version_header',
+ 'variables': {
+ 'lastchange_path':
+ '<(DEPTH)/build/util/LASTCHANGE',
+ 'branding_path': 'app/theme/<(branding_path_component)/BRANDING',
+ },
+ 'inputs': [
+ '<(version_path)',
+ '<(branding_path)',
+ '<(lastchange_path)',
+ 'version.h.in',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/version.h',
+ ],
+ 'action': [
+ 'python',
+ '<(version_py_path)',
+ '-f', '<(version_path)',
+ '-f', '<(branding_path)',
+ '-f', '<(lastchange_path)',
+ 'version.h.in',
+ '<@(_outputs)',
+ ],
+ 'message': 'Generating version header file: <@(_outputs)',
+ },
+ ],
+ },
+ {
'target_name': 'crash_service',
'type': 'executable',
'dependencies': [