summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authormmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 23:02:55 +0000
committermmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 23:02:55 +0000
commit24a0e29cde7ec3bfd831e78b4cecd1316a899986 (patch)
tree7b10a431538fb8e425d5e9e55cbe75afa608815f /base
parent20c811b80e67f1f866f4191aaf3b75768bdbb2c6 (diff)
downloadchromium_src-24a0e29cde7ec3bfd831e78b4cecd1316a899986.zip
chromium_src-24a0e29cde7ec3bfd831e78b4cecd1316a899986.tar.gz
chromium_src-24a0e29cde7ec3bfd831e78b4cecd1316a899986.tar.bz2
Make Linux versioninfo its own lib so it can be linked in only where needed.
This moves it out of libbase, and thus avoids relinking everything that touches base just because the versioninfo changed. Review URL: http://codereview.chromium.org/160358 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/base.gyp107
1 files changed, 59 insertions, 48 deletions
diff --git a/base/base.gyp b/base/base.gyp
index 8aa8a3a..94d2cfb 100644
--- a/base/base.gyp
+++ b/base/base.gyp
@@ -130,7 +130,6 @@
'file_util_win.cc',
'file_version_info.cc',
'file_version_info.h',
- 'file_version_info_linux.cc',
'file_version_info_mac.mm',
'fix_wp64.h',
'float_util.h',
@@ -369,53 +368,6 @@
],
'conditions': [
[ 'OS == "linux"', {
- 'actions': [
- {
- 'action_name': 'linux_version',
- 'variables': {
- 'lastchange_path':
- '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
- 'version_py_path': '../chrome/tools/build/version.py',
- 'version_path': '../chrome/VERSION',
- 'template_input_path': 'file_version_info_linux.h.version',
- },
- 'conditions': [
- [ 'branding == "Chrome"', {
- 'variables': {
- 'branding_path':
- '../chrome/app/theme/google_chrome/BRANDING',
- },
- }, { # else branding!="Chrome"
- 'variables': {
- 'branding_path':
- '../chrome/app/theme/chromium/BRANDING',
- },
- }],
- ],
- 'inputs': [
- '<(template_input_path)',
- '<(version_path)',
- '<(branding_path)',
- '<(lastchange_path)',
- ],
- 'outputs': [
- '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h',
- ],
- 'action': [
- 'python',
- '<(version_py_path)',
- '-f', '<(version_path)',
- '-f', '<(branding_path)',
- '-f', '<(lastchange_path)',
- '<(template_input_path)',
- '<@(_outputs)',
- ],
- 'message': 'Generating version information',
- },
- ],
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)',
- ],
'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'],
['exclude', '\\.mm?$' ] ],
'sources!': [
@@ -788,5 +740,64 @@
},
],
}],
+ [ 'OS == "linux"', {
+ 'targets': [
+ {
+ 'target_name': 'linux_versioninfo',
+ 'type': '<(library)',
+ 'sources': [
+ 'file_version_info_linux.cc',
+ ],
+ 'include_dirs': [
+ '..',
+ '<(SHARED_INTERMEDIATE_DIR)',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'linux_version',
+ 'variables': {
+ 'lastchange_path':
+ '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
+ 'version_py_path': '../chrome/tools/build/version.py',
+ 'version_path': '../chrome/VERSION',
+ 'template_input_path': 'file_version_info_linux.h.version',
+ },
+ 'conditions': [
+ [ 'branding == "Chrome"', {
+ 'variables': {
+ 'branding_path':
+ '../chrome/app/theme/google_chrome/BRANDING',
+ },
+ }, { # else branding!="Chrome"
+ 'variables': {
+ 'branding_path':
+ '../chrome/app/theme/chromium/BRANDING',
+ },
+ }],
+ ],
+ 'inputs': [
+ '<(template_input_path)',
+ '<(version_path)',
+ '<(branding_path)',
+ '<(lastchange_path)',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h',
+ ],
+ 'action': [
+ 'python',
+ '<(version_py_path)',
+ '-f', '<(version_path)',
+ '-f', '<(branding_path)',
+ '-f', '<(lastchange_path)',
+ '<(template_input_path)',
+ '<@(_outputs)',
+ ],
+ 'message': 'Generating version information',
+ },
+ ],
+ },
+ ],
+ }],
],
}