diff options
author | ivankr@chromium.org <ivankr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-20 09:13:44 +0000 |
---|---|---|
committer | ivankr@chromium.org <ivankr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-20 09:13:44 +0000 |
commit | efe7bcfe91d170d024443cbabf6bc0994164176e (patch) | |
tree | 0f1e6e14b87bbf6b65b757bd608296bd23a65c65 /remoting/remoting.gyp | |
parent | 18031610ad20656ef49e201303c6883e96823338 (diff) | |
download | chromium_src-efe7bcfe91d170d024443cbabf6bc0994164176e.zip chromium_src-efe7bcfe91d170d024443cbabf6bc0994164176e.tar.gz chromium_src-efe7bcfe91d170d024443cbabf6bc0994164176e.tar.bz2 |
Revert 157716 - [Chromoting] Build Chromoting Host installation in two steps: (binaries & .wxs) -> .zip -> .msi.
The two step process is needed so that we could take the produced .zip and use it to sign the binaries and installation on a separate machine. Decompiling .msi using dark proved to be a bad idea due to bugs in dark.exe.
BUG=146863
Review URL: https://chromiumcodereview.appspot.com/10948050
TBR=alexeypa@chromium.org
Review URL: https://codereview.chromium.org/10956010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157730 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/remoting.gyp')
-rw-r--r-- | remoting/remoting.gyp | 154 |
1 files changed, 43 insertions, 111 deletions
diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp index f6497b8..8b75871 100644 --- a/remoting/remoting.gyp +++ b/remoting/remoting.gyp @@ -189,13 +189,6 @@ 'host/installer/mac/Keystone/GoogleSoftwareUpdate.pkg', '<(DEPTH)/chrome/installer/mac/pkg-dmg', ], - 'remoting_host_installer_win_roots': [ - 'host/win/', - ], - 'remoting_host_installer_win_files': [ - 'host/win/chromoting.wxs', - 'host/win/parameters.json', - ], }, 'target_defaults': { @@ -704,31 +697,65 @@ 'target_name': 'remoting_host_installation', 'type': 'none', 'dependencies': [ - 'remoting_me2me_host_archive', + 'remoting_host_controller', + 'remoting_service', + 'remoting_me2me_host', ], 'sources': [ - '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip', + 'host/win/chromoting.wxs', ], 'outputs': [ '<(PRODUCT_DIR)/chromoting.msi', ], + 'wix_defines' : [ + '-dBranding=<(branding)', + '-dRemotingMultiProcess=<(remoting_multi_process)', + ], + 'wix_inputs' : [ + '<(PRODUCT_DIR)/remoting_host_controller.exe', + '<(PRODUCT_DIR)/remoting_me2me_host.exe', + '<(PRODUCT_DIR)/remoting_service.exe', + '<(sas_dll_path)/sas.dll', + 'resources/chromoting.ico', + ], + 'conditions': [ + ['remoting_multi_process != 0', { + 'dependencies': [ + 'remoting_desktop', + ], + 'wix_inputs' : [ + '<(PRODUCT_DIR)/remoting_desktop.exe', + ], + }], + ['buildtype == "Official"', { + 'wix_defines': [ + '-dOfficialBuild=1', + ], + }], + ], 'rules': [ { - 'rule_name': 'zip2msi', - 'extension': 'zip', + 'rule_name': 'candle_and_light', + 'extension': 'wxs', 'inputs': [ - 'tools/zip2msi.py', + '<@(_wix_inputs)', + 'tools/candle_and_light.py', ], 'outputs': [ - '<(PRODUCT_DIR)/chromoting.msi', + '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', ], 'msvs_cygwin_shell': 0, 'action': [ - 'python', 'tools/zip2msi.py', + 'python', 'tools/candle_and_light.py', '--wix_path', '<(wix_path)', + '--controller_clsid', '{<(daemon_controller_clsid)}', + '--version', '<(version_full)', + '--product_dir', '<(PRODUCT_DIR).', '--intermediate_dir', '<(INTERMEDIATE_DIR).', - '<(RULE_INPUT_PATH)', - '<@(_outputs)', + '--sas_dll_path', '<(sas_dll_path)', + '--input', '<(RULE_INPUT_PATH)', + '--output', '<@(_outputs)', + '<@(_wix_defines)', ], 'message': 'Generating <@(_outputs)', }, @@ -779,101 +806,6 @@ }, ], }, # end of target 'remoting_host_installation_unittest' - { - 'target_name': 'remoting_me2me_host_archive', - 'type': 'none', - 'dependencies': [ - 'remoting_host_controller', - 'remoting_service', - 'remoting_me2me_host', - ], - 'sources': [ - '<(sas_dll_path)/sas.dll', - '<@(remoting_host_installer_win_files)', - 'host/installer/build-installer-archive.py', - 'resources/chromoting.ico', - ], - 'defs': [ - 'BRANDING=<(branding)', - 'CONTROLLER_CLSID={<(daemon_controller_clsid)}', - 'REMOTING_MULTI_PROCESS=<(remoting_multi_process)', - 'VERSION=<(version_full)', - ], - 'generated_files': [ - '<(PRODUCT_DIR)/remoting_host_controller.exe', - '<(PRODUCT_DIR)/remoting_me2me_host.exe', - '<(PRODUCT_DIR)/remoting_service.exe', - '<(sas_dll_path)/sas.dll', - 'resources/chromoting.ico', - ], - 'generated_files_dst': [ - 'files/remoting_host_controller.exe', - 'files/remoting_me2me_host.exe', - 'files/remoting_service.exe', - 'files/sas.dll', - 'files/chromoting.ico', - ], - 'conditions': [ - ['buildtype == "Official"', { - 'defs': [ - 'OFFICIAL_BUILD=1', - ], - }, { # else buildtype != "Official" - 'defs': [ - 'OFFICIAL_BUILD=0', - ], - }], - ['remoting_multi_process != 0', { - 'dependencies': [ - 'remoting_desktop', - ], - 'generated_files': [ - '<(PRODUCT_DIR)/remoting_desktop.exe', - ], - 'generated_files_dst': [ - 'files/remoting_desktop.exe', - ], - }], - ], - 'zip_path': '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip', - 'outputs': [ - '<(_zip_path)', - ], - 'actions': [ - { - 'action_name': 'Zip installer files for signing', - 'temp_dir': '<(INTERMEDIATE_DIR)', - 'source_files': [ - '<@(remoting_host_installer_win_files)', - ], - 'inputs': [ - '<(sas_dll_path)/sas.dll', - '<@(_source_files)', - 'host/installer/build-installer-archive.py', - 'resources/chromoting.ico', - ], - 'outputs': [ - '<(_zip_path)', - ], - 'action': [ - 'python', - 'host/installer/build-installer-archive.py', - '<(_temp_dir)', - '<(_zip_path)', - '--source-file-roots', - '<@(remoting_host_installer_win_roots)', - '--source-files', - '<@(_source_files)', - '--generated-files', - '<@(_generated_files)', - '--generated-files-dst', - '<@(_generated_files_dst)', - '--defs', - '<@(_defs)', - ], - }, - ], # actions - }, # end of target 'remoting_me2me_host_archive' ], # end of 'targets' }], # '<(wix_path) != ""' |