diff options
author | dcaiafa@chromium.org <dcaiafa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-18 05:32:11 +0000 |
---|---|---|
committer | dcaiafa@chromium.org <dcaiafa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-18 05:32:11 +0000 |
commit | 91464ea3fbe81a300542a9039864f874f260cb10 (patch) | |
tree | 722fa2b9d631f1eb84c658c12bb717291cf60c40 /remoting/tools | |
parent | 0dc0e99d46c708369bf841d00bcd922c62b12ff2 (diff) | |
download | chromium_src-91464ea3fbe81a300542a9039864f874f260cb10.zip chromium_src-91464ea3fbe81a300542a9039864f874f260cb10.tar.gz chromium_src-91464ea3fbe81a300542a9039864f874f260cb10.tar.bz2 |
Enable x64 Chromoting host and installer
N.B. I had to move the sawbuck_provider in the .wxs out of the
installation directory. Even though it only contains registry changes,
candle will complain if it is not inside a directory, but the
application directory is platform specific, whereas sawbuck_provider is
always 32-bit.
BUG=394467
Review URL: https://codereview.chromium.org/398173002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284007 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/tools')
-rwxr-xr-x | remoting/tools/zip2msi.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/remoting/tools/zip2msi.py b/remoting/tools/zip2msi.py index bbe8c8a..e2e2537 100755 --- a/remoting/tools/zip2msi.py +++ b/remoting/tools/zip2msi.py @@ -227,6 +227,19 @@ def GenerateMsi(target, source, parameters): bind_path = os.path.join(source_dir, parameters['bind_path']) parameters = Merge(parameters, {'light': {'switches': ['-b', bind_path]}}) + target_arch = parameters['target_arch'] + if target_arch == 'ia32': + arch_param = 'x86' + elif target_arch == 'x64': + arch_param = 'x64' + else: + print 'Invalid target_arch parameter value' + return 1 + + # Add the architecture to candle-specific parameters. + parameters = Merge( + parameters, {'candle': {'switches': ['-arch', arch_param]}}) + # Run candle and light to generate the installation. wixobj = '%(intermediate_dir)s\\%(basename)s.wixobj' % parameters args = GenerateCommandLine('candle', wxs, wixobj, parameters) @@ -247,6 +260,7 @@ def main(): parser = OptionParser(usage=usage) parser.add_option('--intermediate_dir', dest='intermediate_dir', default='.') parser.add_option('--wix_path', dest='wix_path', default='.') + parser.add_option('--target_arch', dest='target_arch', default='x86') options, args = parser.parse_args() if len(args) != 2: parser.error('two positional arguments expected') |