OLD | NEW |
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 optparse | 7 import optparse |
8 import os | 8 import os |
9 import sys | 9 import sys |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 help='The build CONFIGURATION_NAME.') | 39 help='The build CONFIGURATION_NAME.') |
40 parser.add_option('--proguard-enabled', | 40 parser.add_option('--proguard-enabled', |
41 help='"true" if proguard is enabled.') | 41 help='"true" if proguard is enabled.') |
42 parser.add_option('--proguard-enabled-input-path', | 42 parser.add_option('--proguard-enabled-input-path', |
43 help=('Path to dex in Release mode when proguard ' | 43 help=('Path to dex in Release mode when proguard ' |
44 'is enabled.')) | 44 'is enabled.')) |
45 parser.add_option('--no-locals', | 45 parser.add_option('--no-locals', |
46 help='Exclude locals list from the dex file.') | 46 help='Exclude locals list from the dex file.') |
47 parser.add_option('--stamp', help='Path to touch on success.') | 47 parser.add_option('--stamp', help='Path to touch on success.') |
48 | 48 |
49 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja. | |
50 parser.add_option('--ignore', help='Ignored.') | |
51 | |
52 options, paths = parser.parse_args() | 49 options, paths = parser.parse_args() |
53 | 50 |
54 if (options.proguard_enabled == 'true' | 51 if (options.proguard_enabled == 'true' |
55 and options.configuration_name == 'Release'): | 52 and options.configuration_name == 'Release'): |
56 paths = [options.proguard_enabled_input_path] | 53 paths = [options.proguard_enabled_input_path] |
57 | 54 |
58 DoDex(options, paths) | 55 DoDex(options, paths) |
59 | 56 |
60 if options.stamp: | 57 if options.stamp: |
61 build_utils.Touch(options.stamp) | 58 build_utils.Touch(options.stamp) |
62 | 59 |
63 | 60 |
64 if __name__ == '__main__': | 61 if __name__ == '__main__': |
65 sys.exit(main(sys.argv)) | 62 sys.exit(main(sys.argv)) |
OLD | NEW |