diff options
author | mmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 00:12:29 +0000 |
---|---|---|
committer | mmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 00:12:29 +0000 |
commit | 0faab517e5d541bc51d24be919e899991ed7356a (patch) | |
tree | b295904b4262778bac8683a15449db574e96ddbb /chrome/installer | |
parent | 9fe24ece4042c39bc16bed8af10a4f5940c4f118 (diff) | |
download | chromium_src-0faab517e5d541bc51d24be919e899991ed7356a.zip chromium_src-0faab517e5d541bc51d24be919e899991ed7356a.tar.gz chromium_src-0faab517e5d541bc51d24be919e899991ed7356a.tar.bz2 |
Update build to work with native 64-bit Linux packages.
Also remove the no longer used GTK variable, since the GTK_PATH modification
was a hack for 32-bit binaries on 64-bit distros.
Review URL: http://codereview.chromium.org/173286
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24186 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r-- | chrome/installer/installer.gyp | 110 |
1 files changed, 57 insertions, 53 deletions
diff --git a/chrome/installer/installer.gyp b/chrome/installer/installer.gyp index 373b36a..c501a59 100644 --- a/chrome/installer/installer.gyp +++ b/chrome/installer/installer.gyp @@ -385,9 +385,6 @@ # 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. - 'variables': { - 'lib32_dir': '<!(if uname -m | egrep -q "x86_64"; then echo lib32; else echo lib; fi)', - }, 'copies': [ # Copy tools for generating packages from the build archive. { @@ -431,34 +428,6 @@ 'linux/internal/common/wrapper', ] }, - # System libs needed for 64-bit package building. - { - 'destination': '<(PRODUCT_DIR)/installer/lib32/', - 'files': [ - '/usr/<(lib32_dir)/libnspr4.so', - '/usr/<(lib32_dir)/libnspr4.so.0d', - '/usr/<(lib32_dir)/libnss3.so', - '/usr/<(lib32_dir)/libnss3.so.1d', - '/usr/<(lib32_dir)/libnssutil3.so', - '/usr/<(lib32_dir)/libnssutil3.so.1d', - '/usr/<(lib32_dir)/libplc4.so', - '/usr/<(lib32_dir)/libplc4.so.0d', - '/usr/<(lib32_dir)/libplds4.so', - '/usr/<(lib32_dir)/libplds4.so.0d', - '/usr/<(lib32_dir)/libsmime3.so', - '/usr/<(lib32_dir)/libsmime3.so.1d', - '/usr/<(lib32_dir)/libsqlite3.so.0', - '/usr/<(lib32_dir)/libsqlite3.so.0.8.6', - '/usr/<(lib32_dir)/libssl3.so', - '/usr/<(lib32_dir)/libssl3.so.1d', - '/usr/<(lib32_dir)/nss/libfreebl3.chk', - '/usr/<(lib32_dir)/nss/libfreebl3.so', - '/usr/<(lib32_dir)/nss/libnssckbi.so', - '/usr/<(lib32_dir)/nss/libnssdbm3.so', - '/usr/<(lib32_dir)/nss/libsoftokn3.chk', - '/usr/<(lib32_dir)/nss/libsoftokn3.so', - ], - }, # Additional theme resources needed for package building. { 'destination': '<(PRODUCT_DIR)/installer/theme/', @@ -516,6 +485,18 @@ '<(PRODUCT_DIR)/locales/en-US.pak', '<(PRODUCT_DIR)/themes/default.pak', ], + # TODO(mmoss) The ffmpeg libs are currently 32-bit only. Once we + # have 64-bit, this will need to copy the correct versions to the + # build output. + 'conditions': [ + ['target_arch=="x64"', { + 'input_files!': [ + '<(PRODUCT_DIR)/libavcodec.so.52', + '<(PRODUCT_DIR)/libavformat.so.52', + '<(PRODUCT_DIR)/libavutil.so.50', + ], + }], + ], }, 'actions': [ { @@ -525,33 +506,56 @@ '<(PRODUCT_DIR)/installer/debian/build.sh', '<@(input_files)', ], - 'outputs': [ - '<(PRODUCT_DIR)/google-chrome-unstable_<(version)-r<(revision)_i386.deb', - '<(PRODUCT_DIR)/google-chrome-unstable_<(version)-r<(revision)_amd64.deb', - # TODO(mmoss) Add other outputs once we start building other channels. + 'conditions': [ + ['target_arch=="ia32"', { + 'outputs': [ + '<(PRODUCT_DIR)/google-chrome-unstable_<(version)-r<(revision)_i386.deb', + # TODO(mmoss) Add other outputs once we start building + # other channels. + ], + }], + ['target_arch=="x64"', { + 'outputs': [ + '<(PRODUCT_DIR)/google-chrome-unstable_<(version)-r<(revision)_amd64.deb', + # TODO(mmoss) Add other outputs once we start building + # other channels. + ], + }], ], 'action': [ - 'bash', '<(PRODUCT_DIR)/installer/debian/build.sh', '-o' - '<(PRODUCT_DIR)', '-b', '<(PRODUCT_DIR)', '-c', 'dev', + 'bash', '<(PRODUCT_DIR)/installer/debian/build.sh', + '-o' '<(PRODUCT_DIR)', '-b', '<(PRODUCT_DIR)', + '-a', '<(target_arch)', '-c', 'dev', ], }, - { - 'action_name': 'rpm_packages', - 'process_outputs_as_sources': 1, - 'inputs': [ - '<(PRODUCT_DIR)/installer/rpm/build.sh', - '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template', - '<@(input_files)', - ], - 'outputs': [ - '<(PRODUCT_DIR)/google-chrome-unstable-<(version)-<(revision).i386.rpm', - # TODO(mmoss) Add other outputs once we start building other channels. - ], - 'action': [ - 'bash', '<(PRODUCT_DIR)/installer/rpm/build.sh', '-o' - '<(PRODUCT_DIR)', '-b', '<(PRODUCT_DIR)', '-c', 'dev', + ], + 'conditions': [ + ['target_arch=="ia32"', { + 'actions': [ + { + 'action_name': 'rpm_packages', + 'process_outputs_as_sources': 1, + 'inputs': [ + '<(PRODUCT_DIR)/installer/rpm/build.sh', + '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template', + '<@(input_files)', + ], + 'outputs': [ + '<(PRODUCT_DIR)/google-chrome-unstable-<(version)-<(revision).i386.rpm', + # TODO(mmoss) Add other outputs once we start building + # other channels. + ], + 'action': [ + 'bash', '<(PRODUCT_DIR)/installer/rpm/build.sh', + '-o' '<(PRODUCT_DIR)', '-b', '<(PRODUCT_DIR)', + '-a', '<(target_arch)', '-c', 'dev', + ], + } ], - }, + }], + ['target_arch=="x64"', { + # TODO(mmoss) 64-bit RPMs not ready yet. + }], ], }, ], |