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

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

Issue 13432002: Add input content checking to some build scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | build/android/gyp/dex.py » ('j') | build/android/gyp/dex.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 #
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
5 # found in the LICENSE file.
6
7 import fnmatch
8 import optparse
9 import os
10 import sys
11
12 from pylib import build_utils
13
14
15 def DoDex(options, paths):
16 dx_binary = os.path.join(options.android_sdk_root, 'platform-tools', 'dx')
17 dex_cmd = [dx_binary, '--dex', '--output', options.dex_path] + paths
18 build_utils.CheckCallDie(dex_cmd)
19
20
21 def main(argv):
22 parser = optparse.OptionParser()
23 parser.add_option('--android-sdk-root', help='Android sdk root directory.')
24 parser.add_option('--dex-path', help='Dex output path.')
25 parser.add_option('--stamp', help='Path to touch on success.')
26
27 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja.
28 parser.add_option('--ignore', help='Ignored.')
29
30 options, paths = parser.parse_args()
31
32 DoDex(options, paths)
33
34 if options.stamp:
35 build_utils.Touch(options.stamp)
36
37
38 if __name__ == '__main__':
39 sys.exit(main(sys.argv))
40
OLDNEW
« no previous file with comments | « no previous file | build/android/gyp/dex.py » ('j') | build/android/gyp/dex.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698