diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 21:44:13 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 21:44:13 +0000 |
commit | 4641d3c34c84832bb7bc8ab4e5b52bf733e6bcb6 (patch) | |
tree | 3fe848834136ad09bde783d5faea49a00704ea72 /chrome/chrome_common.gypi | |
parent | 20e338a4048176474ab0739abe4c5e79402002e7 (diff) | |
download | chromium_src-4641d3c34c84832bb7bc8ab4e5b52bf733e6bcb6.zip chromium_src-4641d3c34c84832bb7bc8ab4e5b52bf733e6bcb6.tar.gz chromium_src-4641d3c34c84832bb7bc8ab4e5b52bf733e6bcb6.tar.bz2 |
Eliminate the chrome_version_info target completely.
It did two things:
1) built two source files -- this is moved into the "common" target
2) on Linux, generated some data used by those source files -- this is moved into an action on the "common" target
Review URL: http://codereview.chromium.org/3152052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57588 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_common.gypi')
-rw-r--r-- | chrome/chrome_common.gypi | 114 |
1 files changed, 51 insertions, 63 deletions
diff --git a/chrome/chrome_common.gypi b/chrome/chrome_common.gypi index 8a71493..c4eb678 100644 --- a/chrome/chrome_common.gypi +++ b/chrome/chrome_common.gypi @@ -114,6 +114,8 @@ 'common/serialized_script_value.h', 'common/time_format.cc', 'common/time_format.h', + 'common/chrome_version_info.h', + 'common/chrome_version_info.cc', 'common/win_safe_util.cc', 'common/win_safe_util.h', ], @@ -122,68 +124,6 @@ }, 'targets': [ { - 'target_name': 'chrome_version_info', - 'type': '<(library)', - 'sources': [ - 'common/chrome_version_info.cc', - 'common/chrome_version_info.h', - ], - 'include_dirs': [ - '<(DEPTH)', - ], - 'conditions': [ - [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { - 'include_dirs': [ - '<(SHARED_INTERMEDIATE_DIR)', - ], - 'actions': [ - { - 'action_name': 'posix_version', - 'variables': { - 'lastchange_path': - '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', - 'version_py_path': 'tools/build/version.py', - 'version_path': 'VERSION', - 'template_input_path': 'common/chrome_version_info_posix.h.version', - }, - 'conditions': [ - [ 'branding == "Chrome"', { - 'variables': { - 'branding_path': - 'app/theme/google_chrome/BRANDING', - }, - }, { # else branding!="Chrome" - 'variables': { - 'branding_path': - 'app/theme/chromium/BRANDING', - }, - }], - ], - 'inputs': [ - '<(template_input_path)', - '<(version_path)', - '<(branding_path)', - '<(lastchange_path)', - ], - 'outputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h', - ], - 'action': [ - 'python', - '<(version_py_path)', - '-f', '<(version_path)', - '-f', '<(branding_path)', - '-f', '<(lastchange_path)', - '<(template_input_path)', - '<@(_outputs)', - ], - 'message': 'Generating version information', - }, - ], - }], - ] - }, - { 'target_name': 'common', 'type': '<(library)', 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146', @@ -205,7 +145,6 @@ 'chrome_strings', 'common_constants', 'common_net', - 'chrome_version_info', 'default_plugin/default_plugin.gyp:default_plugin', 'theme_resources', '../app/app.gyp:app_base', @@ -388,6 +327,55 @@ ], }, },], + [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { + 'include_dirs': [ + '<(SHARED_INTERMEDIATE_DIR)', + ], + 'actions': [ + { + 'action_name': 'posix_version', + 'variables': { + 'lastchange_path': + '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', + 'version_py_path': 'tools/build/version.py', + 'version_path': 'VERSION', + 'template_input_path': 'common/chrome_version_info_posix.h.version', + }, + 'conditions': [ + [ 'branding == "Chrome"', { + 'variables': { + 'branding_path': + 'app/theme/google_chrome/BRANDING', + }, + }, { # else branding!="Chrome" + 'variables': { + 'branding_path': + 'app/theme/chromium/BRANDING', + }, + }], + ], + 'inputs': [ + '<(template_input_path)', + '<(version_path)', + '<(branding_path)', + '<(lastchange_path)', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h', + ], + 'action': [ + 'python', + '<(version_py_path)', + '-f', '<(version_path)', + '-f', '<(branding_path)', + '-f', '<(lastchange_path)', + '<(template_input_path)', + '<@(_outputs)', + ], + 'message': 'Generating version information', + }, + ], + }], ['OS=="linux" and selinux==1', { 'dependencies': [ '../build/linux/system.gyp:selinux', |