OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2009 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 """ Creates a zip file in the staging dir with the result of a compile. | 6 """ Creates a zip file in the staging dir with the result of a compile. |
7 It can be sent to other machines for testing. | 7 It can be sent to other machines for testing. |
8 """ | 8 """ |
9 | 9 |
10 import glob | 10 import glob |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 file_filter = '^.+\.((ilk)|(pdb))$' | 61 file_filter = '^.+\.((ilk)|(pdb))$' |
62 elif chromium_utils.IsMac(): | 62 elif chromium_utils.IsMac(): |
63 # The static libs are just built as intermediate targets, and we don't | 63 # The static libs are just built as intermediate targets, and we don't |
64 # need to pull the dSYMs over to the testers. | 64 # need to pull the dSYMs over to the testers. |
65 file_filter = '^.+\.(a|dSYM)$' | 65 file_filter = '^.+\.(a|dSYM)$' |
66 | 66 |
67 # Build the list of files to archive | 67 # Build the list of files to archive |
68 zip_file_list = [file for file in os.listdir(build_dir) | 68 zip_file_list = [file for file in os.listdir(build_dir) |
69 if not re.match(file_filter, file)] | 69 if not re.match(file_filter, file)] |
70 | 70 |
| 71 # Special case for chrome. Add back all the chrome*.pdb files to the list. |
| 72 # TODO(nsylvain): This should really be defined somewhere else. |
| 73 zip_file_list.extend([file for file in os.listdir(build_dir) |
| 74 if re.match('^chrome.+\.pdb$', file)]) |
| 75 |
71 if chromium_utils.IsWindows(): | 76 if chromium_utils.IsWindows(): |
72 # Remove obj or lib dir entries | 77 # Remove obj or lib dir entries |
73 zip_file_list.remove('obj') | 78 zip_file_list.remove('obj') |
74 zip_file_list.remove('lib') | 79 zip_file_list.remove('lib') |
75 elif chromium_utils.IsMac(): | 80 elif chromium_utils.IsMac(): |
76 things_to_skip = [ | 81 things_to_skip = [ |
77 # We don't need the arm bits v8 builds. | 82 # We don't need the arm bits v8 builds. |
78 'd8_arm', 'v8_shell_arm', | 83 'd8_arm', 'v8_shell_arm', |
79 # pdfsqueeze is a build helper, no need to copy it to testers. | 84 # pdfsqueeze is a build helper, no need to copy it to testers. |
80 'pdfsqueeze', | 85 'pdfsqueeze', |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 option_parser.add_option('', '--target', default='Release', | 155 option_parser.add_option('', '--target', default='Release', |
151 help='build target to archive (Debug or Release)') | 156 help='build target to archive (Debug or Release)') |
152 option_parser.add_option('', '--src-dir', default='src', | 157 option_parser.add_option('', '--src-dir', default='src', |
153 help='path to the top-level sources directory') | 158 help='path to the top-level sources directory') |
154 option_parser.add_option('', '--build-dir', default='chrome', | 159 option_parser.add_option('', '--build-dir', default='chrome', |
155 help='path to main build directory (the parent of ' | 160 help='path to main build directory (the parent of ' |
156 'the Release or Debug directory)') | 161 'the Release or Debug directory)') |
157 | 162 |
158 options, args = option_parser.parse_args() | 163 options, args = option_parser.parse_args() |
159 sys.exit(main(options, args)) | 164 sys.exit(main(options, args)) |
OLD | NEW |