summaryrefslogtreecommitdiffstats
path: root/chrome/chrome_installer.gypi
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-24 00:35:46 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-24 00:35:46 +0000
commit5c14951ae6906a26ec9b141785ba48b8313cf7e9 (patch)
tree77a2653ea742cb99abca61c3502345ecec5fab4c /chrome/chrome_installer.gypi
parentf4b8f31dde49067a092303025d4baaf47e93f491 (diff)
downloadchromium_src-5c14951ae6906a26ec9b141785ba48b8313cf7e9.zip
chromium_src-5c14951ae6906a26ec9b141785ba48b8313cf7e9.tar.gz
chromium_src-5c14951ae6906a26ec9b141785ba48b8313cf7e9.tar.bz2
Break gyp cycles on Linux.
The cycle is between installer.gyp and chrome.gyp. The fix is to switch installer.gyp into installer.gypi and include it into chrome.gyp BUG=35308 Review URL: http://codereview.chromium.org/2067018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48007 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_installer.gypi')
-rw-r--r--chrome/chrome_installer.gypi771
1 files changed, 771 insertions, 0 deletions
diff --git a/chrome/chrome_installer.gypi b/chrome/chrome_installer.gypi
new file mode 100644
index 0000000..11d605c
--- /dev/null
+++ b/chrome/chrome_installer.gypi
@@ -0,0 +1,771 @@
+# Copyright (c) 2010 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.
+
+{
+ 'variables': {
+ 'lastchange_path': '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
+ # 'branding_dir' is set in the 'conditions' section at the bottom.
+ },
+ 'conditions': [
+ ['OS=="win"', {
+ 'targets': [
+ {
+ 'target_name': 'gcapi_dll',
+ 'type': 'loadable_module',
+ 'msvs_guid': 'B802A2FE-E4E2-4F5A-905A-D5128875C954',
+ 'dependencies': [
+ '<(DEPTH)/google_update/google_update.gyp:google_update',
+ ],
+ 'include_dirs': [
+ '<(DEPTH)',
+ ],
+ 'sources': [
+ 'installer/gcapi/gcapi.cc',
+ 'installer/gcapi/gcapi.h',
+ ],
+ },
+ {
+ 'target_name': 'gcapi_lib',
+ 'type': 'static_library',
+ 'msvs_guid': 'CD2FD73A-6AAB-4886-B887-760D18E8B635',
+ 'dependencies': [
+ '<(DEPTH)/google_update/google_update.gyp:google_update',
+ ],
+ 'include_dirs': [
+ '<(DEPTH)',
+ ],
+ 'sources': [
+ 'installer/gcapi/gcapi.cc',
+ 'installer/gcapi/gcapi.h',
+ ],
+ },
+ {
+ 'target_name': 'gcapi_test',
+ 'type': 'executable',
+ 'msvs_guid': 'B64B396B-8EF1-4B6B-A07E-48D40EB961AB',
+ 'dependencies': [
+ 'gcapi_dll',
+ 'gcapi_lib',
+ ],
+ 'include_dirs': [
+ '<(DEPTH)',
+ ],
+ 'sources': [
+ 'installer/gcapi/gcapi_test.cc',
+ 'installer/gcapi/gcapi_test.rc',
+ 'installer/gcapi/resource.h',
+ ],
+ },
+ {
+ 'target_name': 'installer_util_unittests',
+ 'type': 'executable',
+ 'msvs_guid': '903F8C1E-537A-4C9E-97BE-075147CBE769',
+ 'dependencies': [
+ 'installer_util',
+ 'installer_util_strings',
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/base/base.gyp:base_i18n',
+ '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
+ '<(DEPTH)/testing/gtest.gyp:gtest',
+ ],
+ 'include_dirs': [
+ '<(DEPTH)',
+ ],
+ 'sources': [
+ 'installer/setup/compat_checks_unittest.cc',
+ 'installer/setup/setup_constants.cc',
+ 'installer/util/browser_distribution_unittest.cc',
+ 'installer/util/copy_tree_work_item_unittest.cc',
+ 'installer/util/create_dir_work_item_unittest.cc',
+ 'installer/util/create_reg_key_work_item_unittest.cc',
+ 'installer/util/delete_after_reboot_helper_unittest.cc',
+ 'installer/util/delete_reg_value_work_item_unittest.cc',
+ 'installer/util/delete_tree_work_item_unittest.cc',
+ 'installer/util/google_chrome_distribution_unittest.cc',
+ 'installer/util/google_update_settings_unittest.cc',
+ 'installer/util/helper_unittest.cc',
+ 'installer/util/installer_util_unittests.rc',
+ 'installer/util/installer_util_unittests_resource.h',
+ 'installer/util/lzma_util_unittest.cc',
+ 'installer/util/master_preferences_unittest.cc',
+ 'installer/util/move_tree_work_item_unittest.cc',
+ 'installer/util/run_all_unittests.cc',
+ 'installer/util/set_reg_value_work_item_unittest.cc',
+ 'installer/util/shell_util_unittest.cc',
+ 'installer/util/work_item_list_unittest.cc',
+ 'installer/util/version_unittest.cc',
+ ],
+ 'msvs_settings': {
+ 'VCManifestTool': {
+ 'AdditionalManifestFiles': '$(ProjectDir)\\mini_installer\\mini_installer.exe.manifest',
+ },
+ },
+ },
+ {
+ 'target_name': 'installer_util_strings',
+ 'msvs_guid': '0026A376-C4F1-4575-A1BA-578C69F07013',
+ 'type': 'none',
+ 'rules': [
+ {
+ 'rule_name': 'installer_util_strings',
+ 'extension': 'grd',
+ 'inputs': [
+ '<(RULE_INPUT_PATH)',
+ ],
+ 'outputs': [
+ # Don't use <(RULE_INPUT_ROOT) to create the output file
+ # name, because the base name of the input
+ # (generated_resources.grd) doesn't match the generated file
+ # (installer_util_strings.h).
+ '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings/installer_util_strings.h',
+ ],
+ 'action': ['python',
+ 'installer/util/prebuild/create_string_rc.py',
+ '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings',
+ '<(branding)',],
+ 'message': 'Generating resources from <(RULE_INPUT_PATH)',
+ },
+ ],
+ 'sources': [
+ 'installer/app/chromium_strings.grd',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings',
+ ],
+ },
+ },
+ {
+ 'target_name': 'mini_installer_test',
+ 'type': 'executable',
+ 'msvs_guid': '4B6E199A-034A-49BD-AB93-458DD37E45B1',
+ 'dependencies': [
+ 'installer_util',
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/base/base.gyp:base_i18n',
+ '<(DEPTH)/testing/gtest.gyp:gtest',
+ ],
+ 'include_dirs': [
+ '<(DEPTH)',
+ ],
+ 'sources': [
+ 'installer/test/mini_installer_test/run_all_unittests.cc',
+ 'installer/test/mini_installer_test/chrome_mini_installer.cc',
+ 'installer/test/mini_installer_test/chrome_mini_installer.h',
+ 'installer/test/mini_installer_test/mini_installer_test_constants.cc',
+ 'installer/test/mini_installer_test/mini_installer_test_constants.h',
+ 'installer/test/mini_installer_test/mini_installer_test_util.cc',
+ 'installer/test/mini_installer_test/mini_installer_test_util.h',
+ 'installer/test/mini_installer_test/test.cc',
+ ],
+ 'msvs_settings': {
+ 'VCManifestTool': {
+ 'AdditionalManifestFiles': '$(ProjectDir)\\mini_installer\\mini_installer.exe.manifest',
+ },
+ },
+ },
+ {
+ 'target_name': 'setup',
+ 'type': 'executable',
+ 'msvs_guid': '21C76E6E-8B38-44D6-8148-B589C13B9554',
+ 'dependencies': [
+ 'installer_util',
+ 'installer_util_strings',
+ '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
+ '<(DEPTH)/build/util/build_util.gyp:lastchange',
+ '<(DEPTH)/build/util/support/support.gyp:*',
+ '<(DEPTH)/build/win/system.gyp:cygwin',
+ '<(DEPTH)/chrome_frame/chrome_frame.gyp:npchrome_frame',
+ ],
+ 'include_dirs': [
+ '<(DEPTH)',
+ '<(INTERMEDIATE_DIR)',
+ '<(SHARED_INTERMEDIATE_DIR)/setup',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)/setup',
+ ],
+ },
+ 'sources': [
+ 'installer/mini_installer/chrome_frame.release',
+ 'installer/setup/install.cc',
+ 'installer/setup/install.h',
+ 'installer/setup/setup_main.cc',
+ 'installer/setup/setup.ico',
+ 'installer/setup/setup.rc',
+ 'installer/setup/setup_constants.cc',
+ 'installer/setup/setup_constants.h',
+ 'installer/setup/setup_exe_version.rc.version',
+ 'installer/setup/setup_resource.h',
+ 'installer/setup/setup_util.cc',
+ 'installer/setup/setup_util.h',
+ 'installer/setup/uninstall.cc',
+ 'installer/setup/uninstall.h',
+ ],
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
+ },
+ 'VCManifestTool': {
+ 'AdditionalManifestFiles': '$(ProjectDir)\\setup\\setup.exe.manifest',
+ },
+ },
+ 'rules': [
+ {
+ 'rule_name': 'setup_version',
+ 'extension': 'version',
+ 'variables': {
+ 'version_py_path': '<(DEPTH)/chrome/tools/build/version.py',
+ 'template_input_path': 'installer/setup/setup_exe_version.rc.version',
+ },
+ 'inputs': [
+ '<(template_input_path)',
+ '<(version_path)',
+ '<(lastchange_path)',
+ '<(branding_dir)/BRANDING',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/setup/setup_exe_version.rc',
+ ],
+ 'action': [
+ 'python', '<(version_py_path)',
+ '-f', '<(version_path)',
+ '-f', '<(lastchange_path)',
+ '-f', '<(branding_dir)/BRANDING',
+ '<(template_input_path)',
+ '<@(_outputs)',
+ ],
+ 'process_outputs_as_sources': 1,
+ 'message': 'Generating version information'
+ },
+ {
+ 'rule_name': 'server_dlls',
+ 'extension': 'release',
+ 'variables': {
+ 'scan_server_dlls_py' : 'tools/build/win/scan_server_dlls.py',
+ 'template_file': 'mini_installer/chrome_frame.release',
+ },
+ 'inputs': [
+ '<(scan_server_dlls_py)',
+ '<(template_file)'
+ ],
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/registered_dlls.h',
+ ],
+ 'action': [
+ 'python',
+ '<(scan_server_dlls_py)',
+ '--output_dir=<(PRODUCT_DIR)',
+ '--input_file=<(RULE_INPUT_PATH)',
+ '--header_output_dir=<(INTERMEDIATE_DIR)',
+ # TODO(sgk): may just use environment variables
+ #'--distribution=$(CHROMIUM_BUILD)',
+ '--distribution=_google_chrome',
+ ],
+ },
+ ],
+ 'conditions': [
+ # TODO(mark): <(branding_dir) should be defined by the
+ # global condition block at the bottom of the file, but
+ # this doesn't work due to the following issue:
+ #
+ # http://code.google.com/p/gyp/issues/detail?id=22
+ #
+ # Remove this block once the above issue is fixed.
+ [ 'branding == "Chrome"', {
+ 'variables': {
+ 'branding_dir': 'app/theme/google_chrome',
+ },
+ }, { # else branding!="Chrome"
+ 'variables': {
+ 'branding_dir': 'app/theme/chromium',
+ },
+ }],
+ ],
+ },
+ {
+ 'target_name': 'setup_unittests',
+ 'type': 'executable',
+ 'msvs_guid': 'C0AE4E06-F023-460F-BC14-6302CEAC51F8',
+ 'dependencies': [
+ 'installer_util',
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/base/base.gyp:base_i18n',
+ '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
+ '<(DEPTH)/testing/gtest.gyp:gtest',
+ ],
+ 'include_dirs': [
+ '<(DEPTH)',
+ ],
+ 'sources': [
+ 'installer/setup/run_all_unittests.cc',
+ 'installer/setup/setup_util.cc',
+ 'installer/setup/setup_util_unittest.cc',
+ ],
+ },
+ ],
+ }],
+ ['OS=="linux" and branding=="Chrome"', {
+ 'variables': {
+ # Always google_chrome since this only applies to branding==Chrome.
+ 'branding_dir': 'app/theme/google_chrome',
+ 'version' : '<!(python <(version_py_path) -f <(DEPTH)/chrome/VERSION -t "@MAJOR@.@MINOR@.@BUILD@.@PATCH@")',
+ 'revision' : '<!(python <(DEPTH)/build/util/lastchange.py | cut -d "=" -f 2)',
+ 'packaging_files_common': [
+ 'installer/linux/internal/common/apt.include',
+ 'installer/linux/internal/common/default-app.template',
+ 'installer/linux/internal/common/default-app-block.template',
+ 'installer/linux/internal/common/desktop.template',
+ 'installer/linux/internal/common/google-chrome/google-chrome.info',
+ 'installer/linux/internal/common/installer.include',
+ 'installer/linux/internal/common/postinst.include',
+ 'installer/linux/internal/common/prerm.include',
+ 'installer/linux/internal/common/repo.cron',
+ 'installer/linux/internal/common/rpm.include',
+ 'installer/linux/internal/common/rpmrepo.cron',
+ 'installer/linux/internal/common/updater',
+ 'installer/linux/internal/common/variables.include',
+ 'installer/linux/internal/common/wrapper',
+ ],
+ 'packaging_files_deb': [
+ 'installer/linux/internal/debian/build.sh',
+ 'installer/linux/internal/debian/changelog.template',
+ 'installer/linux/internal/debian/control.template',
+ 'installer/linux/internal/debian/debian.menu',
+ 'installer/linux/internal/debian/postinst',
+ 'installer/linux/internal/debian/postrm',
+ 'installer/linux/internal/debian/prerm',
+ ],
+ 'packaging_files_rpm': [
+ 'installer/linux/internal/rpm/build.sh',
+ 'installer/linux/internal/rpm/chrome.spec.template',
+ ],
+ 'packaging_files_binaries': [
+ # TODO(mmoss) Any convenient way to get all the relevant build
+ # files? (e.g. all locales, resources, etc.)
+ '<(PRODUCT_DIR)/chrome',
+ '<(PRODUCT_DIR)/chrome.pak',
+ '<(PRODUCT_DIR)/chrome_sandbox',
+ '<(PRODUCT_DIR)/libffmpegsumo.so',
+ '<(PRODUCT_DIR)/xdg-settings',
+ '<(PRODUCT_DIR)/locales/en-US.pak',
+ ],
+ 'flock_bash': ['flock', '--', '/tmp/linux_package_lock', 'bash'],
+ 'deb_build': '<(PRODUCT_DIR)/installer/debian/build.sh',
+ 'rpm_build': '<(PRODUCT_DIR)/installer/rpm/build.sh',
+ 'deb_cmd': ['<@(flock_bash)', '<(deb_build)', '-o' '<(PRODUCT_DIR)',
+ '-b', '<(PRODUCT_DIR)', '-a', '<(target_arch)'],
+ 'rpm_cmd': ['<@(flock_bash)', '<(rpm_build)', '-o' '<(PRODUCT_DIR)',
+ '-b', '<(PRODUCT_DIR)', '-a', '<(target_arch)'],
+ 'conditions': [
+ ['target_arch=="ia32"', {
+ 'deb_arch': 'i386',
+ 'rpm_arch': 'i386',
+ # Flash Player for Linux is currently only available for ia32.
+ 'packaging_files_binaries': ['<(PRODUCT_DIR)/libgcflashplayer.so'],
+ }],
+ ['target_arch=="x64"', {
+ 'deb_arch': 'amd64',
+ 'rpm_arch': 'x86_64',
+ }],
+ ],
+ },
+ 'targets': [
+ {
+ 'target_name': 'linux_installer_configs',
+ '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.
+ 'copies': [
+ # Copy tools for generating packages from the build archive.
+ {
+ 'destination': '<(PRODUCT_DIR)/installer/',
+ 'files': [
+ 'installer/linux/internal/build_from_archive.sh',
+ ]
+ },
+ {
+ 'destination': '<(PRODUCT_DIR)/installer/debian/',
+ 'files': [
+ '<@(packaging_files_deb)',
+ ]
+ },
+ {
+ 'destination': '<(PRODUCT_DIR)/installer/rpm/',
+ 'files': [
+ '<@(packaging_files_rpm)',
+ ]
+ },
+ {
+ 'destination': '<(PRODUCT_DIR)/installer/common/',
+ 'files': [
+ '<@(packaging_files_common)',
+ ]
+ },
+ # Additional theme resources needed for package building.
+ {
+ 'destination': '<(PRODUCT_DIR)/installer/theme/',
+ 'files': [
+ '<(branding_dir)/product_logo_16.png',
+ '<(branding_dir)/product_logo_22.png',
+ '<(branding_dir)/product_logo_24.png',
+ '<(branding_dir)/product_logo_32.png',
+ '<(branding_dir)/product_logo_48.png',
+ '<(branding_dir)/product_logo_64.png',
+ '<(branding_dir)/product_logo_128.png',
+ '<(branding_dir)/product_logo_256.png',
+ '<(branding_dir)/product_logo_32.xpm',
+ '<(branding_dir)/BRANDING',
+ ],
+ },
+ ],
+ 'actions': [
+ {
+ 'action_name': 'save_build_info',
+ 'inputs': [
+ '<(branding_dir)/BRANDING',
+ '<(version_path)',
+ '<(lastchange_path)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/installer/version.txt',
+ ],
+ # Just output the default version info variables.
+ 'action': [
+ 'python', '<(version_py_path)',
+ '-f', '<(branding_dir)/BRANDING',
+ '-f', '<(version_path)',
+ '-f', '<(lastchange_path)',
+ '-o', '<@(_outputs)'
+ ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'linux_packages_all',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'linux_packages_unstable',
+ 'linux_packages_beta',
+ 'linux_packages_stable',
+ ],
+ },
+ {
+ # 'trunk' is a developer, testing-only package, so it shouldn't be
+ # included in the 'linux_packages_all' collection.
+ 'target_name': 'linux_packages_trunk',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'linux_packages_trunk_deb',
+ ],
+ # ChromeOS doesn't care about RPM packages.
+ 'conditions': [
+ ['chromeos==0', {
+ 'dependencies': [
+ 'linux_packages_trunk_rpm',
+ ],
+ }],
+ ],
+ },
+ {
+ 'target_name': 'linux_packages_unstable',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'linux_packages_unstable_deb',
+ ],
+ # ChromeOS doesn't care about RPM packages.
+ 'conditions': [
+ ['chromeos==0', {
+ 'dependencies': [
+ 'linux_packages_unstable_rpm',
+ ],
+ }],
+ ],
+ },
+ {
+ 'target_name': 'linux_packages_beta',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'linux_packages_beta_deb',
+ ],
+ # ChromeOS doesn't care about RPM packages.
+ 'conditions': [
+ ['chromeos==0', {
+ 'dependencies': [
+ 'linux_packages_beta_rpm',
+ ],
+ }],
+ ],
+ },
+ {
+ 'target_name': 'linux_packages_stable',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'linux_packages_stable_deb',
+ ],
+ # ChromeOS doesn't care about RPM packages.
+ 'conditions': [
+ ['chromeos==0', {
+ 'dependencies': [
+ 'linux_packages_stable_rpm',
+ ],
+ }],
+ ],
+ },
+ # TODO(mmoss) gyp looping construct would be handy here ...
+ # These package actions are the same except for the 'channel' variable.
+ {
+ 'target_name': 'linux_packages_trunk_deb',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'chrome',
+ 'linux_installer_configs',
+ ],
+ 'actions': [
+ {
+ 'variables': {
+ 'channel': 'trunk',
+ },
+ 'action_name': 'deb_packages_<(channel)',
+ 'process_outputs_as_sources': 1,
+ 'inputs': [
+ '<(deb_build)',
+ '<@(packaging_files_binaries)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_deb)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)_<(deb_arch).deb',
+ ],
+ 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'linux_packages_unstable_deb',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'chrome',
+ 'linux_installer_configs',
+ ],
+ 'actions': [
+ {
+ 'variables': {
+ 'channel': 'unstable',
+ },
+ 'action_name': 'deb_packages_<(channel)',
+ 'process_outputs_as_sources': 1,
+ 'inputs': [
+ '<(deb_build)',
+ '<@(packaging_files_binaries)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_deb)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)_<(deb_arch).deb',
+ ],
+ 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'linux_packages_beta_deb',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'chrome',
+ 'linux_installer_configs',
+ ],
+ 'actions': [
+ {
+ 'variables': {
+ 'channel': 'beta',
+ },
+ 'action_name': 'deb_packages_<(channel)',
+ 'process_outputs_as_sources': 1,
+ 'inputs': [
+ '<(deb_build)',
+ '<@(packaging_files_binaries)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_deb)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)_<(deb_arch).deb',
+ ],
+ 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'linux_packages_stable_deb',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'chrome',
+ 'linux_installer_configs',
+ ],
+ 'actions': [
+ {
+ 'variables': {
+ 'channel': 'stable',
+ },
+ 'action_name': 'deb_packages_<(channel)',
+ 'process_outputs_as_sources': 1,
+ 'inputs': [
+ '<(deb_build)',
+ '<@(packaging_files_binaries)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_deb)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)_<(deb_arch).deb',
+ ],
+ 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'linux_packages_trunk_rpm',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'chrome',
+ 'linux_installer_configs',
+ ],
+ 'actions': [
+ {
+ 'variables': {
+ 'channel': 'trunk',
+ },
+ 'action_name': 'rpm_packages_<(channel)',
+ 'process_outputs_as_sources': 1,
+ 'inputs': [
+ '<(rpm_build)',
+ '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template',
+ '<@(packaging_files_binaries)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_rpm)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revision).<(rpm_arch).rpm',
+ ],
+ 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'linux_packages_unstable_rpm',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'chrome',
+ 'linux_installer_configs',
+ ],
+ 'actions': [
+ {
+ 'variables': {
+ 'channel': 'unstable',
+ },
+ 'action_name': 'rpm_packages_<(channel)',
+ 'process_outputs_as_sources': 1,
+ 'inputs': [
+ '<(rpm_build)',
+ '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template',
+ '<@(packaging_files_binaries)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_rpm)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revision).<(rpm_arch).rpm',
+ ],
+ 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'linux_packages_beta_rpm',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'chrome',
+ 'linux_installer_configs',
+ ],
+ 'actions': [
+ {
+ 'variables': {
+ 'channel': 'beta',
+ },
+ 'action_name': 'rpm_packages_<(channel)',
+ 'process_outputs_as_sources': 1,
+ 'inputs': [
+ '<(rpm_build)',
+ '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template',
+ '<@(packaging_files_binaries)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_rpm)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revision).<(rpm_arch).rpm',
+ ],
+ 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'linux_packages_stable_rpm',
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'chrome',
+ 'linux_installer_configs',
+ ],
+ 'actions': [
+ {
+ 'variables': {
+ 'channel': 'stable',
+ },
+ 'action_name': 'rpm_packages_<(channel)',
+ 'process_outputs_as_sources': 1,
+ 'inputs': [
+ '<(rpm_build)',
+ '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template',
+ '<@(packaging_files_binaries)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_rpm)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revision).<(rpm_arch).rpm',
+ ],
+ 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ],
+ },
+ ],
+ },
+ ],
+ }],
+ [ 'branding == "Chrome"', {
+ 'variables': {
+ 'branding_dir': 'app/theme/google_chrome',
+ },
+ }, { # else branding!="Chrome"
+ 'variables': {
+ 'branding_dir': 'app/theme/chromium',
+ },
+ }],
+ ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2: