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

Unified Diff: base/base.gyp

Issue 45028: Generate header file of Linux version information (currently gyp-only). (Closed)
Patch Set: conditional gyp branding Created 11 years, 9 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 | « no previous file | base/file_version_info_linux.h.version » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base.gyp
diff --git a/base/base.gyp b/base/base.gyp
index 15963bae7e9937abf6d60a96c9a73f49f983f77c..da7a0df90713cefcf3d761f79537206087b1be61 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!': [
« no previous file with comments | « no previous file | base/file_version_info_linux.h.version » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698