diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-02 16:54:03 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-02 16:54:03 +0000 |
commit | 66caf563b438a8cd51ac03a1cdcdc6dbde135c45 (patch) | |
tree | 7c72a44dc276ea8b91879811f03febda4536f425 /chrome/chrome_installer.gypi | |
parent | 2290cb86f535d7babd4d84a2a08831404885e78c (diff) | |
download | chromium_src-66caf563b438a8cd51ac03a1cdcdc6dbde135c45.zip chromium_src-66caf563b438a8cd51ac03a1cdcdc6dbde135c45.tar.gz chromium_src-66caf563b438a8cd51ac03a1cdcdc6dbde135c45.tar.bz2 |
[Mac] packaging process cleanup: Net of this is the zip off the official builder will have everything for packaging so the final signing/dmg creation is self contained instead of having to live in both places.
- Move all the installer related bits into the installer folder
- Add the collection of these bits into a specific target
- Collect the internal bits also during the installer target
BUG=42635
TEST=none
Review URL: http://codereview.chromium.org/2417007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48732 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_installer.gypi')
-rw-r--r-- | chrome/chrome_installer.gypi | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/chrome/chrome_installer.gypi b/chrome/chrome_installer.gypi index b56b300..8bd6030 100644 --- a/chrome/chrome_installer.gypi +++ b/chrome/chrome_installer.gypi @@ -752,6 +752,82 @@ }, ], }], + ['OS=="mac"', { + 'variables': { + 'mac_packaging_dir': + '<(PRODUCT_DIR)/<(mac_product_name) Packaging', + # <(PRODUCT_DIR) expands to $(BUILT_PRODUCTS_DIR), which doesn't + # work properly in a shell script, where ${BUILT_PRODUCTS_DIR} is + # needed. + 'mac_packaging_sh_dir': + '${BUILT_PRODUCTS_DIR}/<(mac_product_name) Packaging', + }, # variables + 'targets': [ + { + 'target_name': 'installer_packaging', + 'type': 'none', + 'conditions': [ + ['buildtype=="Official"', { + 'actions': [ + { + # Create sign.sh, the script that the packaging system will + # use to sign the .app bundle. + 'action_name': 'Make sign.sh', + 'variables': { + 'make_sign_sh_path': 'installer/mac/make_sign_sh', + 'sign_sh_in_path': 'installer/mac/sign.sh.in', + 'app_resource_rules_in_path': + 'installer/mac/app_resource_rules.plist.in', + }, + 'inputs': [ + '<(make_sign_sh_path)', + '<(sign_sh_in_path)', + '<(app_resource_rules_in_path)', + '<(version_path)', + ], + 'outputs': [ + '<(mac_packaging_dir)/sign.sh', + '<(mac_packaging_dir)/app_resource_rules.plist', + ], + 'action': [ + '<(make_sign_sh_path)', + '<(mac_packaging_sh_dir)', + '<(mac_product_name)', + '<(version_full)', + ], + }, + ], # actions + }], # buildtype=="Official" + ], # conditions + 'copies': [ + { + # Put the files where the packaging system will find them. + # The packager will use these when building the disk image. + 'destination': '<(mac_packaging_dir)', + 'files': [ + # Pull over the known version of pkg-dmg to use. + 'tools/build/mac/pkg-dmg', + ], + 'conditions': [ + ['mac_keystone==1', { + 'files': [ + 'installer/mac/keystone_install.sh', + ], + }], # mac_keystone + ['branding=="Chrome" and buildtype=="Official"', { + 'files': [ + 'installer/mac/internal/chrome_dmg_background.png', + 'installer/mac/internal/chrome_dmg_dsstore', + 'installer/mac/internal/chrome_dmg_icon.icns', + 'installer/mac/internal/generate_dmgs', + ], + }], # branding=="Chrome" and buildtype=="Official" + ], # conditions + }, + ], # copies + }, # target: installer_packaging + ], # targets + }], # OS=="mac" [ 'branding == "Chrome"', { 'variables': { 'branding_dir': 'app/theme/google_chrome', |