OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright 2015 The Chromium Authors. All rights reserved. | 3 # Copyright 2015 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 """Creates a script to run a "_incremental" .apk.""" | 7 """Creates a script to run a "_incremental" .apk.""" |
8 | 8 |
9 import argparse | 9 import argparse |
10 import os | 10 import os |
11 import sys | 11 import sys |
12 | 12 |
13 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) | 13 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) |
14 from gyp.util import build_utils | 14 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'gyp')) |
| 15 from util import build_utils |
15 from pylib import constants | 16 from pylib import constants |
16 | 17 |
17 | 18 |
18 SCRIPT_TEMPLATE = """\ | 19 SCRIPT_TEMPLATE = """\ |
19 #!/usr/bin/env python | 20 #!/usr/bin/env python |
20 # | 21 # |
21 # This file was generated by: | 22 # This file was generated by: |
22 # //build/android/gyp/create_incremental_install_script.py | 23 # //build/android/gyp/create_incremental_install_script.py |
23 | 24 |
24 import os | 25 import os |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 os.chmod(options.script_output_path, 0750) | 93 os.chmod(options.script_output_path, 0750) |
93 | 94 |
94 if options.depfile: | 95 if options.depfile: |
95 build_utils.WriteDepfile( | 96 build_utils.WriteDepfile( |
96 options.depfile, | 97 options.depfile, |
97 build_utils.GetPythonDependencies()) | 98 build_utils.GetPythonDependencies()) |
98 | 99 |
99 | 100 |
100 if __name__ == '__main__': | 101 if __name__ == '__main__': |
101 sys.exit(main(sys.argv[1:])) | 102 sys.exit(main(sys.argv[1:])) |
OLD | NEW |