diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/base.gyp | 30 | ||||
-rw-r--r-- | base/file_version_info_linux.h.version | 26 |
2 files changed, 56 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!': [ diff --git a/base/file_version_info_linux.h.version b/base/file_version_info_linux.h.version new file mode 100644 index 0000000..88bf234 --- /dev/null +++ b/base/file_version_info_linux.h.version @@ -0,0 +1,26 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef BASE_FILE_VERSION_INFO_LINUX_H_ +#define BASE_FILE_VERSION_INFO_LINUX_H_ + +#define COMPANY_NAME L"@COMPANY_FULLNAME@" +#define FILE_DESCRIPTION L"@PRODUCT_FULLNAME@" +#define FILE_VERSION L"@MAJOR@.@MINOR@.@BUILD@.@PATCH@" +#define LEGAL_COPYRIGHT L"@COPYRIGHT@" +#define PRODUCT_NAME L"@PRODUCT_FULLNAME@" +#define PRODUCT_VERSION L"@MAJOR@.@MINOR@.@BUILD@.@PATCH@" +#define COMPANY_SHORT_NAME L"@COMPANY_SHORTNAME@" +#define PRODUCT_SHORT_NAME L"@PRODUCT_SHORTNAME@" +#define LAST_CHANGE L"@LASTCHANGE@" +#define OFFICIAL_BUILD @OFFICIAL_BUILD@ +// TODO(mmoss) Do these have values for Linux? +#define INTERNAL_NAME L"" +#define ORIGINAL_FILENAME L"" +#define PRIVATE_BUILD L"" +#define SPECIAL_BUILD L"" +#define COMMENTS L"" +#define LEGAL_TRADEMARKS L"" + +#endif // BASE_FILE_VERSION_INFO_LINUX_H_ |