| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 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 import glob | 7 import glob |
| 8 import optparse | 8 import optparse |
| 9 import os | 9 import os |
| 10 import shutil | 10 import shutil |
| 11 import sys | 11 import sys |
| 12 import utils | 12 import utils |
| 13 | 13 |
| 14 HOST_OS = utils.guessOS() | 14 HOST_OS = utils.guessOS() |
| 15 | 15 |
| 16 if HOST_OS == 'mac': | 16 if HOST_OS == 'mac': |
| 17 CONTENTSHELL_FILES = ['Content Shell.app', 'ffmpegsumo.so', 'osmesa.so', | 17 CONTENTSHELL_FILES = ['Content Shell.app', 'ffmpegsumo.so', 'osmesa.so', |
| 18 'lib'] | 18 'lib'] |
| 19 CHROMEDRIVER_FILES = ['chromedriver'] | 19 CHROMEDRIVER_FILES = ['chromedriver'] |
| 20 elif HOST_OS == 'linux': | 20 elif HOST_OS == 'linux': |
| 21 CONTENTSHELL_FILES = ['content_shell', 'content_shell.pak', 'fonts.conf', | 21 CONTENTSHELL_FILES = ['content_shell', 'content_shell.pak', 'fonts.conf', |
| 22 'libffmpegsumo.so', 'libosmesa.so', 'lib', | 22 'libblink_test_plugin.so', 'libffmpegsumo.so', |
| 23 'icudtl.dat', 'AHEM____.TTF', 'GardinerModBug.ttf', | 23 'libosmesa.so', 'lib', 'icudtl.dat', 'AHEM____.TTF', |
| 24 'GardinerModCat.ttf', 'natives_blob.bin'] | 24 'GardinerModBug.ttf', 'GardinerModCat.ttf', |
| 25 'natives_blob.bin'] |
| 25 CHROMEDRIVER_FILES = ['chromedriver'] | 26 CHROMEDRIVER_FILES = ['chromedriver'] |
| 26 elif HOST_OS == 'win': | 27 elif HOST_OS == 'win': |
| 27 # TODO: provide proper list. | 28 # TODO: provide proper list. |
| 28 CONTENTSHELL_FILES = ['content_shell.exe', 'AHEM____.ttf', 'icudtl.dat', ] | 29 CONTENTSHELL_FILES = ['content_shell.exe', 'AHEM____.ttf', 'icudtl.dat', ] |
| 29 CHROMEDRIVER_FILES = ['chromedriver.exe'] | 30 CHROMEDRIVER_FILES = ['chromedriver.exe'] |
| 30 else: | 31 else: |
| 31 raise Exception('Unsupported platform') | 32 raise Exception('Unsupported platform') |
| 32 | 33 |
| 33 # Append a file with size of the snapshot. | 34 # Append a file with size of the snapshot. |
| 34 CONTENTSHELL_FILES.append('snapshot-size.txt') | 35 CONTENTSHELL_FILES.append('snapshot-size.txt') |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 action='store', type='string', | 179 action='store', type='string', |
| 179 help='(Release|Debug)') | 180 help='(Release|Debug)') |
| 180 (options, args) = parser.parse_args() | 181 (options, args) = parser.parse_args() |
| 181 Archive(srcpath, options.mode, options.dartium, options.contentshell, | 182 Archive(srcpath, options.mode, options.dartium, options.contentshell, |
| 182 options.chromedriver) | 183 options.chromedriver) |
| 183 return 0 | 184 return 0 |
| 184 | 185 |
| 185 | 186 |
| 186 if __name__ == '__main__': | 187 if __name__ == '__main__': |
| 187 sys.exit(main()) | 188 sys.exit(main()) |
| OLD | NEW |