summaryrefslogtreecommitdiffstats
path: root/chrome/installer
diff options
context:
space:
mode:
authormmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 21:16:19 +0000
committermmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 21:16:19 +0000
commit29a7e5d7ccd0db409473a51dc2cfd61ad7a7e6f1 (patch)
tree1c7aeacd3fc84c5efda00d7d83f865134417adf1 /chrome/installer
parentf283d2cb1d259518850b0249e4bbc4d224552d24 (diff)
downloadchromium_src-29a7e5d7ccd0db409473a51dc2cfd61ad7a7e6f1.zip
chromium_src-29a7e5d7ccd0db409473a51dc2cfd61ad7a7e6f1.tar.gz
chromium_src-29a7e5d7ccd0db409473a51dc2cfd61ad7a7e6f1.tar.bz2
Refactor Linux packaging targets for better dependency tracking.
This makes sure Linux packages are rebuilt if any of the packaging scripts or config files change. Review URL: http://codereview.chromium.org/360017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31001 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r--chrome/installer/installer.gyp66
1 files changed, 44 insertions, 22 deletions
diff --git a/chrome/installer/installer.gyp b/chrome/installer/installer.gyp
index 2dec27c..44ae3dfb 100644
--- a/chrome/installer/installer.gyp
+++ b/chrome/installer/installer.gyp
@@ -381,7 +381,35 @@
['OS=="linux" and branding=="Chrome"', {
# Always google_chrome since this only applies to branding==Chrome.
'variables': {
- 'branding_dir': '../app/theme/google_chrome',
+ 'branding_dir': '../app/theme/google_chrome',
+ 'packaging_files_common': [
+ 'linux/internal/common/apt.include',
+ 'linux/internal/common/default-app.template',
+ 'linux/internal/common/default-app-block.template',
+ 'linux/internal/common/desktop.template',
+ 'linux/internal/common/google-chrome/google-chrome.info',
+ 'linux/internal/common/installer.include',
+ 'linux/internal/common/postinst.include',
+ 'linux/internal/common/prerm.include',
+ 'linux/internal/common/repo.cron',
+ 'linux/internal/common/rpm.include',
+ 'linux/internal/common/rpmrepo.cron',
+ 'linux/internal/common/updater',
+ 'linux/internal/common/variables.include',
+ 'linux/internal/common/wrapper',
+ ],
+ 'packaging_files_deb': [
+ 'linux/internal/debian/build.sh',
+ 'linux/internal/debian/changelog.template',
+ 'linux/internal/debian/control.template',
+ 'linux/internal/debian/postinst',
+ 'linux/internal/debian/postrm',
+ 'linux/internal/debian/prerm',
+ ],
+ 'packaging_files_rpm': [
+ 'linux/internal/rpm/build.sh',
+ 'linux/internal/rpm/chrome.spec.template',
+ ],
},
'targets': [
{
@@ -401,37 +429,19 @@
{
'destination': '<(PRODUCT_DIR)/installer/debian/',
'files': [
- 'linux/internal/debian/build.sh',
- 'linux/internal/debian/changelog.template',
- 'linux/internal/debian/control.template',
- 'linux/internal/debian/postinst',
- 'linux/internal/debian/postrm',
- 'linux/internal/debian/prerm',
+ '<@(packaging_files_deb)',
]
},
{
'destination': '<(PRODUCT_DIR)/installer/rpm/',
'files': [
- 'linux/internal/rpm/build.sh',
- 'linux/internal/rpm/chrome.spec.template',
+ '<@(packaging_files_rpm)',
]
},
{
'destination': '<(PRODUCT_DIR)/installer/common/',
'files': [
- 'linux/internal/common/apt.include',
- 'linux/internal/common/default-app.template',
- 'linux/internal/common/default-app-block.template',
- 'linux/internal/common/desktop.template',
- 'linux/internal/common/google-chrome/google-chrome.info',
- 'linux/internal/common/installer.include',
- 'linux/internal/common/postinst.include',
- 'linux/internal/common/prerm.include',
- 'linux/internal/common/repo.cron',
- 'linux/internal/common/rpm.include',
- 'linux/internal/common/rpmrepo.cron',
- 'linux/internal/common/updater',
- 'linux/internal/common/wrapper',
+ '<@(packaging_files_common)',
]
},
# Additional theme resources needed for package building.
@@ -519,6 +529,8 @@
'inputs': [
'<(deb_build)',
'<@(input_files)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_deb)',
],
'outputs': [
'<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)_<(deb_arch).deb',
@@ -534,6 +546,8 @@
'inputs': [
'<(deb_build)',
'<@(input_files)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_deb)',
],
'outputs': [
'<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)_<(deb_arch).deb',
@@ -549,6 +563,8 @@
'inputs': [
'<(deb_build)',
'<@(input_files)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_deb)',
],
'outputs': [
'<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-r<(revision)_<(deb_arch).deb',
@@ -569,6 +585,8 @@
'<(rpm_build)',
'<(PRODUCT_DIR)/installer/rpm/chrome.spec.template',
'<@(input_files)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_rpm)',
],
'outputs': [
'<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revision).<(rpm_arch).rpm',
@@ -585,6 +603,8 @@
'<(rpm_build)',
'<(PRODUCT_DIR)/installer/rpm/chrome.spec.template',
'<@(input_files)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_rpm)',
],
'outputs': [
'<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revision).<(rpm_arch).rpm',
@@ -601,6 +621,8 @@
'<(rpm_build)',
'<(PRODUCT_DIR)/installer/rpm/chrome.spec.template',
'<@(input_files)',
+ '<@(packaging_files_common)',
+ '<@(packaging_files_rpm)',
],
'outputs': [
'<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-<(revision).<(rpm_arch).rpm',