OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Set of common operations/utilities for build archiving.""" | 5 """Set of common operations/utilities for build archiving.""" |
6 | 6 |
7 import glob | 7 import glob |
8 import os | 8 import os |
9 import platform | 9 import platform |
10 import re | 10 import re |
(...skipping 13 matching lines...) Expand all Loading... |
24 """Defines default values for archival utilities to use.""" | 24 """Defines default values for archival utilities to use.""" |
25 # List of symbol files to save, but not to upload to the symbol server | 25 # List of symbol files to save, but not to upload to the symbol server |
26 # (generally because they have no symbols and thus would produce an error). | 26 # (generally because they have no symbols and thus would produce an error). |
27 # We have to list all the previous names of icudt*.dll. Now that we | 27 # We have to list all the previous names of icudt*.dll. Now that we |
28 # use icudt.dll, we don't need to update this file any more next time | 28 # use icudt.dll, we don't need to update this file any more next time |
29 # we pull in a new version of ICU. | 29 # we pull in a new version of ICU. |
30 symbols_to_skip_upload = [ | 30 symbols_to_skip_upload = [ |
31 'icudt38.dll', 'icudt42.dll', 'icudt46.dll', 'icudt.dll', 'rlz.dll', | 31 'icudt38.dll', 'icudt42.dll', 'icudt46.dll', 'icudt.dll', 'rlz.dll', |
32 'avcodec-53.dll', 'avcodec-54.dll', 'avformat-53.dll', 'avformat-54.dll', | 32 'avcodec-53.dll', 'avcodec-54.dll', 'avformat-53.dll', 'avformat-54.dll', |
33 'avutil-51.dll', 'd3dx9_42.dll', 'd3dx9_43.dll', 'D3DCompiler_42.dll', | 33 'avutil-51.dll', 'd3dx9_42.dll', 'd3dx9_43.dll', 'D3DCompiler_42.dll', |
34 'D3DCompiler_43.dll', 'd3dcompiler_46.dll', 'xinput1_3.dll', | 34 'D3DCompiler_43.dll', 'd3dcompiler_46.dll', 'msvcp120.dll', |
35 'widevinecdm.dll', 'FlashPlayerApp.exe',] | 35 'msvcr120.dll', 'xinput1_3.dll', 'widevinecdm.dll', 'FlashPlayerApp.exe',] |
36 | 36 |
37 if os.environ.get('CHROMIUM_BUILD', '') == '_google_chrome': | 37 if os.environ.get('CHROMIUM_BUILD', '') == '_google_chrome': |
38 exes_to_skip_entirely = [] | 38 exes_to_skip_entirely = [] |
39 else: | 39 else: |
40 exes_to_skip_entirely = ['rlz'] | 40 exes_to_skip_entirely = ['rlz'] |
41 | 41 |
42 # Installer to archive. | 42 # Installer to archive. |
43 installer_exe = 'mini_installer.exe' | 43 installer_exe = 'mini_installer.exe' |
44 | 44 |
45 # Test files to archive. | 45 # Test files to archive. |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 raise_error=not allow_missing) | 323 raise_error=not allow_missing) |
324 if not os.path.exists(zip_file): | 324 if not os.path.exists(zip_file): |
325 raise StagingError('Failed to make zip package %s' % zip_file) | 325 raise StagingError('Failed to make zip package %s' % zip_file) |
326 | 326 |
327 if os.path.basename(zip_file) != archive_name: | 327 if os.path.basename(zip_file) != archive_name: |
328 orig_zip = zip_file | 328 orig_zip = zip_file |
329 zip_file = os.path.join(os.path.dirname(orig_zip), archive_name) | 329 zip_file = os.path.join(os.path.dirname(orig_zip), archive_name) |
330 print 'Renaming archive: "%s" -> "%s"' % (orig_zip, zip_file) | 330 print 'Renaming archive: "%s" -> "%s"' % (orig_zip, zip_file) |
331 chromium_utils.MoveFile(orig_zip, zip_file) | 331 chromium_utils.MoveFile(orig_zip, zip_file) |
332 return (zip_dir, zip_file) | 332 return (zip_dir, zip_file) |
OLD | NEW |