From a9b7d73f0d0b81d4455b192f68d44c670e02ec44 Mon Sep 17 00:00:00 2001 From: "mmoss@chromium.org" Date: Fri, 29 May 2009 00:22:30 +0000 Subject: Add Linux packaging tools to the build output and the buildbot archive. This makes the buildbot archive hermetic for package building, rather than pulling files from the package builder's source tree (e.g. BRANDING) and system (e.g. lib32 stuff). Note, this currently only applies to official builds since that's all we package. This depends on: http://codereview.chromium.org/115842 http://codereview.chromium.org/113966 Review URL: http://codereview.chromium.org/115843 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17151 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/chrome.gyp | 9 + chrome/installer/installer.gyp | 867 ++++++++++++++++++-------------- chrome/tools/build/linux/FILES.official | 9 + 3 files changed, 501 insertions(+), 384 deletions(-) create mode 100644 chrome/tools/build/linux/FILES.official (limited to 'chrome') diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index 44e0c30..6fd4a7f 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -2268,6 +2268,15 @@ }, ], }], + ['OS=="linux"', { + 'conditions': [ + ['branding=="Chrome"', { + 'dependencies': [ + 'installer/installer.gyp:installer_util', + ], + }], + ], + }], ['OS=="win"', { 'dependencies': [ # On Windows, make sure we've built chrome.dll, which diff --git a/chrome/installer/installer.gyp b/chrome/installer/installer.gyp index 73ae930..9111553 100644 --- a/chrome/installer/installer.gyp +++ b/chrome/installer/installer.gyp @@ -9,422 +9,521 @@ ], 'targets': [ { - 'target_name': 'gcapi_dll', - 'type': 'loadable_module', - 'msvs_guid': 'B802A2FE-E4E2-4F5A-905A-D5128875C954', - 'dependencies': [ - '../../google_update/google_update.gyp:google_update', - ], - 'include_dirs': [ - '../..', - ], - 'sources': [ - 'gcapi/gcapi.cc', - 'gcapi/gcapi.h', - ], - }, - { - 'target_name': 'gcapi_lib', - 'type': 'static_library', - 'msvs_guid': 'CD2FD73A-6AAB-4886-B887-760D18E8B635', - 'dependencies': [ - '../../google_update/google_update.gyp:google_update', - ], - 'include_dirs': [ - '../..', - ], - 'sources': [ - 'gcapi/gcapi.cc', - 'gcapi/gcapi.h', - ], - }, - { - 'target_name': 'gcapi_test', - 'type': 'executable', - 'msvs_guid': 'B64B396B-8EF1-4B6B-A07E-48D40EB961AB', - 'dependencies': [ - 'gcapi_dll', - 'gcapi_lib', - ], - 'include_dirs': [ - '../..', - ], - 'sources': [ - 'gcapi/gcapi_test.cc', - 'gcapi/gcapi_test.rc', - 'gcapi/resource.h', - ], - }, - { - 'target_name': 'installer_unittests', - 'type': 'executable', - 'msvs_guid': '903F8C1E-537A-4C9E-97BE-075147CBE769', - 'dependencies': [ - 'installer_util', - 'installer_util_strings', - '../../base/base.gyp:base', - '../../testing/gtest.gyp:gtest', - ], - 'include_dirs': [ - '../..', - ], - 'sources': [ - 'setup/compat_checks_unittest.cc', - 'setup/setup_constants.cc', - 'util/copy_tree_work_item_unittest.cc', - 'util/create_dir_work_item_unittest.cc', - 'util/create_reg_key_work_item_unittest.cc', - 'util/delete_reg_value_work_item_unittest.cc', - 'util/delete_tree_work_item_unittest.cc', - 'util/google_chrome_distribution_unittest.cc', - 'util/helper_unittest.cc', - 'util/installer_unittests.rc', - 'util/installer_unittests_resource.h', - 'util/move_tree_work_item_unittest.cc', - 'util/run_all_unittests.cc', - 'util/set_reg_value_work_item_unittest.cc', - 'util/work_item_list_unittest.cc', - ], - }, - { 'target_name': 'installer_util', - 'type': '<(library)', - 'msvs_guid': 'EFBB1436-A63F-4CD8-9E99-B89226E782EC', - 'dependencies': [ - 'installer_util_strings', - '../chrome.gyp:common', - '../chrome.gyp:chrome_resources', - '../chrome.gyp:chrome_strings', - '../../net/net.gyp:net_resources', - '../../media/media.gyp:media', - '../../skia/skia.gyp:skia', - '../../third_party/icu38/icu38.gyp:icui18n', - '../../third_party/icu38/icu38.gyp:icuuc', - '../../third_party/libxml/libxml.gyp:libxml', - '../../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk', - '../../third_party/npapi/npapi.gyp:npapi', - '../third_party/hunspell/hunspell.gyp:hunspell', - ], - 'include_dirs': [ - '../..', - ], - 'sources': [ - 'util/browser_distribution.cc', - 'util/browser_distribution.h', - 'util/compat_checks.cc', - 'util/compat_checks.h', - 'util/copy_tree_work_item.cc', - 'util/copy_tree_work_item.h', - 'util/create_dir_work_item.cc', - 'util/create_dir_work_item.h', - 'util/create_reg_key_work_item.cc', - 'util/create_reg_key_work_item.h', - 'util/delete_reg_value_work_item.cc', - 'util/delete_reg_value_work_item.h', - 'util/delete_tree_work_item.cc', - 'util/delete_tree_work_item.h', - 'util/google_chrome_distribution.cc', - 'util/google_chrome_distribution.h', - 'util/google_update_constants.cc', - 'util/google_update_constants.h', - 'util/google_update_settings.cc', - 'util/google_update_settings.h', - 'util/helper.cc', - 'util/helper.h', - 'util/html_dialog.h', - 'util/html_dialog_impl.cc', - 'util/install_util.cc', - 'util/install_util.h', - 'util/l10n_string_util.cc', - 'util/l10n_string_util.h', - 'util/logging_installer.cc', - 'util/logging_installer.h', - 'util/lzma_util.cc', - 'util/lzma_util.h', - 'util/master_preferences.cc', - 'util/master_preferences.h', - 'util/move_tree_work_item.cc', - 'util/move_tree_work_item.h', - 'util/self_reg_work_item.cc', - 'util/self_reg_work_item.h', - 'util/set_reg_value_work_item.cc', - 'util/set_reg_value_work_item.h', - 'util/shell_util.cc', - 'util/shell_util.h', - 'util/util_constants.cc', - 'util/util_constants.h', - 'util/version.cc', - 'util/version.h', - 'util/work_item.cc', - 'util/work_item.h', - 'util/work_item_list.cc', - 'util/work_item_list.h', + 'conditions': [ + ['OS=="linux"', { + 'type': 'none', + # Add these files to the build output so the build archives will be + # "hermetic" for packaging. This is only for branding="Chrome" since + # we only create packages for official builds. + 'conditions': [ + ['branding=="Chrome"', { + 'variables': { + 'branding_path': 'google_chrome', + 'lib32_dir': '