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

Side by Side Diff: build/android/gyp/dex.py

Issue 22950006: Android: run dex with the --force-jumbo switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 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 fnmatch 7 import fnmatch
8 import optparse 8 import optparse
9 import os 9 import os
10 import sys 10 import sys
11 11
12 from util import build_utils 12 from util import build_utils
13 from util import md5_check 13 from util import md5_check
14 14
15 15
16 def DoDex(options, paths): 16 def DoDex(options, paths):
17 dx_binary = os.path.join(options.android_sdk_tools, 'dx') 17 dx_binary = os.path.join(options.android_sdk_tools, 'dx')
18 dex_cmd = [dx_binary, '--dex', '--output', options.dex_path] + paths 18 dex_cmd = [dx_binary, '--dex', '--force-jumbo', '--output',
Andrew Hayden (chromium.org) 2013/08/13 14:56:48 Could we add a comment here with a link back to th
ppi 2013/08/13 15:05:57 Done.
19 options.dex_path] + paths
19 20
20 record_path = '%s.md5.stamp' % options.dex_path 21 record_path = '%s.md5.stamp' % options.dex_path
21 md5_check.CallAndRecordIfStale( 22 md5_check.CallAndRecordIfStale(
22 lambda: build_utils.CheckCallDie(dex_cmd, suppress_output=True), 23 lambda: build_utils.CheckCallDie(dex_cmd, suppress_output=True),
23 record_path=record_path, 24 record_path=record_path,
24 input_paths=paths, 25 input_paths=paths,
25 input_strings=dex_cmd) 26 input_strings=dex_cmd)
26 27
27 build_utils.Touch(options.dex_path) 28 build_utils.Touch(options.dex_path)
28 29
(...skipping 22 matching lines...) Expand all
51 52
52 DoDex(options, paths) 53 DoDex(options, paths)
53 54
54 if options.stamp: 55 if options.stamp:
55 build_utils.Touch(options.stamp) 56 build_utils.Touch(options.stamp)
56 57
57 58
58 if __name__ == '__main__': 59 if __name__ == '__main__':
59 sys.exit(main(sys.argv)) 60 sys.exit(main(sys.argv))
60 61
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