Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: tools/dartium/archive.py

Issue 1108873002: Add icudtl.dat file to content shell bundle on windows (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'libffmpegsumo.so', 'libosmesa.so', 'lib',
23 'icudtl.dat', 'AHEM____.TTF', 'GardinerModBug.ttf', 23 'icudtl.dat', 'AHEM____.TTF', 'GardinerModBug.ttf',
24 'GardinerModCat.ttf'] 24 'GardinerModCat.ttf']
25 CHROMEDRIVER_FILES = ['chromedriver'] 25 CHROMEDRIVER_FILES = ['chromedriver']
26 elif HOST_OS == 'win': 26 elif HOST_OS == 'win':
27 # TODO: provide proper list. 27 # TODO: provide proper list.
28 CONTENTSHELL_FILES = ['content_shell.exe', 'AHEM____.ttf'] 28 CONTENTSHELL_FILES = ['content_shell.exe', 'AHEM____.ttf', 'icudtl.dat', ]
29 CHROMEDRIVER_FILES = ['chromedriver.exe'] 29 CHROMEDRIVER_FILES = ['chromedriver.exe']
30 else: 30 else:
31 raise Exception('Unsupported platform') 31 raise Exception('Unsupported platform')
32 32
33 # Append a file with size of the snapshot. 33 # Append a file with size of the snapshot.
34 CONTENTSHELL_FILES.append('snapshot-size.txt') 34 CONTENTSHELL_FILES.append('snapshot-size.txt')
35 35
36 36
37 def GenerateDartiumFileList(mode, srcpath): 37 def GenerateDartiumFileList(mode, srcpath):
38 def blacklisted(name): 38 def blacklisted(name):
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 action='store', type='string', 181 action='store', type='string',
182 help='(Release|Debug)') 182 help='(Release|Debug)')
183 (options, args) = parser.parse_args() 183 (options, args) = parser.parse_args()
184 Archive(srcpath, options.mode, options.dartium, options.contentshell, 184 Archive(srcpath, options.mode, options.dartium, options.contentshell,
185 options.chromedriver) 185 options.chromedriver)
186 return 0 186 return 0
187 187
188 188
189 if __name__ == '__main__': 189 if __name__ == '__main__':
190 sys.exit(main()) 190 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698