Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: chrome/tools/build/win/create_installer_archive.py

Issue 1793753002: Reland of Fix mini_installer to handle VS 2015 component builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Script to create Chrome Installer archive. 6 """Script to create Chrome Installer archive.
7 7
8 This script is used to create an archive of all the files required for a 8 This script is used to create an archive of all the files required for a
9 Chrome install in appropriate directory structure. It reads chrome.release 9 Chrome install in appropriate directory structure. It reads chrome.release
10 file as input, creates chrome.7z archive, compresses setup.exe and 10 file as input, creates chrome.7z archive, compresses setup.exe and
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 # as a dependency in the exe manifests generated below. 495 # as a dependency in the exe manifests generated below.
496 CopyVisualStudioRuntimeDLLs(target_arch, build_dir) 496 CopyVisualStudioRuntimeDLLs(target_arch, build_dir)
497 497
498 # Explicitly list the component DLLs setup.exe depends on (this list may 498 # Explicitly list the component DLLs setup.exe depends on (this list may
499 # contain wildcards). These will be copied to |installer_dir| in the archive. 499 # contain wildcards). These will be copied to |installer_dir| in the archive.
500 setup_component_dll_globs = [ 'base.dll', 500 setup_component_dll_globs = [ 'base.dll',
501 'boringssl.dll', 501 'boringssl.dll',
502 'crcrypto.dll', 502 'crcrypto.dll',
503 'icui18n.dll', 503 'icui18n.dll',
504 'icuuc.dll', 504 'icuuc.dll',
505 'msvc*.dll' ] 505 'msvc*.dll',
506 'api-ms-win-*.dll',
507 'vcruntime*.dll' ]
506 for setup_component_dll_glob in setup_component_dll_globs: 508 for setup_component_dll_glob in setup_component_dll_globs:
507 setup_component_dlls = glob.glob(os.path.join(build_dir, 509 setup_component_dlls = glob.glob(os.path.join(build_dir,
508 setup_component_dll_glob)) 510 setup_component_dll_glob))
509 for setup_component_dll in setup_component_dlls: 511 for setup_component_dll in setup_component_dlls:
510 g_archive_inputs.append(setup_component_dll) 512 g_archive_inputs.append(setup_component_dll)
511 shutil.copy(setup_component_dll, installer_dir) 513 shutil.copy(setup_component_dll, installer_dir)
512 514
513 # Stage all the component DLLs found in |build_dir| to the |version_dir| (for 515 # Stage all the component DLLs found in |build_dir| to the |version_dir| (for
514 # the version assembly to be able to refer to them below and make sure 516 # the version assembly to be able to refer to them below and make sure
515 # chrome.exe can find them at runtime). The component DLLs are considered to 517 # chrome.exe can find them at runtime). The component DLLs are considered to
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 MINI_INSTALLER_INPUT_FILE) 667 MINI_INSTALLER_INPUT_FILE)
666 668
667 return options 669 return options
668 670
669 671
670 if '__main__' == __name__: 672 if '__main__' == __name__:
671 options = _ParseOptions() 673 options = _ParseOptions()
672 if options.verbose: 674 if options.verbose:
673 print sys.argv 675 print sys.argv
674 sys.exit(main(options)) 676 sys.exit(main(options))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698