OLD | NEW |
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 """Takes the output of the build step and turns it into a compressed | 6 """Takes the output of the build step and turns it into a compressed |
7 archive ready for distribution. | 7 archive ready for distribution. |
8 | 8 |
9 This script assumes the build script has been run to compile the add-in. | 9 This script assumes the build script has been run to compile the add-in. |
10 It zips up all files required for the add-in installation and places the | 10 It zips up all files required for the add-in installation and places the |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 'win_x86': 'win_arm' | 206 'win_x86': 'win_arm' |
207 } | 207 } |
208 | 208 |
209 dest = join(BUILD_DIR, 'NaClARM') | 209 dest = join(BUILD_DIR, 'NaClARM') |
210 CopyWithReplacement(src, dest, arm_replacements) | 210 CopyWithReplacement(src, dest, arm_replacements) |
211 AddFolderToArchive(dest, archive, "NaClARM") | 211 AddFolderToArchive(dest, archive, "NaClARM") |
212 | 212 |
213 # Create PNaCl | 213 # Create PNaCl |
214 pnacl_replacements = { | 214 pnacl_replacements = { |
215 'NaCl64': 'PNaCl', | 215 'NaCl64': 'PNaCl', |
216 'x86_64': 'i686', | 216 'x86_64': 'pnacl', |
217 '64': '32', | 217 '64': '32', |
218 '.nexe': '.pexe', | 218 '.nexe': '.pexe', |
219 'nacl_link.xml': 'pnacl_link.xml', | 219 'nacl_link.xml': 'pnacl_link.xml', |
220 '$(ProjectName)_$(PlatformArchitecture)': '$(ProjectName)', | 220 '$(ProjectName)_$(PlatformArchitecture)': '$(ProjectName)', |
221 } | 221 } |
222 | 222 |
223 dest = join(BUILD_DIR, 'PNaCl') | 223 dest = join(BUILD_DIR, 'PNaCl') |
224 CopyWithReplacement(src, dest, pnacl_replacements) | 224 CopyWithReplacement(src, dest, pnacl_replacements) |
225 AddFolderToArchive(dest, archive, "PNaCl") | 225 AddFolderToArchive(dest, archive, "PNaCl") |
226 | 226 |
227 archive.close() | 227 archive.close() |
228 | 228 |
229 | 229 |
230 if __name__ == '__main__': | 230 if __name__ == '__main__': |
231 main() | 231 main() |
OLD | NEW |