OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # | 7 # |
8 # Xcode supports build variable substitutions and CPP; sadly, that doesn't work | 8 # Xcode supports build variable substitutions and CPP; sadly, that doesn't work |
9 # because: | 9 # because: |
10 # | 10 # |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 'BreakpadProduct', | 152 'BreakpadProduct', |
153 'BreakpadProductDisplay', | 153 'BreakpadProductDisplay', |
154 'BreakpadVersion', | 154 'BreakpadVersion', |
155 'BreakpadSendAndExit', | 155 'BreakpadSendAndExit', |
156 'BreakpadSkipConfirm') | 156 'BreakpadSkipConfirm') |
157 | 157 |
158 | 158 |
159 def _TagSuffixes(): | 159 def _TagSuffixes(): |
160 # Keep this list sorted in the order that tag suffix components are to | 160 # Keep this list sorted in the order that tag suffix components are to |
161 # appear in a tag value. That is to say, it should be sorted per ASCII. | 161 # appear in a tag value. That is to say, it should be sorted per ASCII. |
162 components = ('32bit', 'full') | 162 components = ('full',) |
163 assert tuple(sorted(components)) == components | 163 assert tuple(sorted(components)) == components |
164 | 164 |
165 components_len = len(components) | 165 components_len = len(components) |
166 combinations = 1 << components_len | 166 combinations = 1 << components_len |
167 tag_suffixes = [] | 167 tag_suffixes = [] |
168 for combination in xrange(0, combinations): | 168 for combination in xrange(0, combinations): |
169 tag_suffix = '' | 169 tag_suffix = '' |
170 for component_index in xrange(0, components_len): | 170 for component_index in xrange(0, components_len): |
171 if combination & (1 << component_index): | 171 if combination & (1 << component_index): |
172 tag_suffix += '-' + components[component_index] | 172 tag_suffix += '-' + components[component_index] |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 # Info.plist will work perfectly well in any plist format, but traditionally | 271 # Info.plist will work perfectly well in any plist format, but traditionally |
272 # applications use xml1 for this, so convert it to ensure that it's valid. | 272 # applications use xml1 for this, so convert it to ensure that it's valid. |
273 proc = subprocess.Popen(['plutil', '-convert', 'xml1', '-o', DEST_INFO_PLIST, | 273 proc = subprocess.Popen(['plutil', '-convert', 'xml1', '-o', DEST_INFO_PLIST, |
274 temp_info_plist.name]) | 274 temp_info_plist.name]) |
275 proc.wait() | 275 proc.wait() |
276 return proc.returncode | 276 return proc.returncode |
277 | 277 |
278 | 278 |
279 if __name__ == '__main__': | 279 if __name__ == '__main__': |
280 sys.exit(Main(sys.argv[1:])) | 280 sys.exit(Main(sys.argv[1:])) |
OLD | NEW |