| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2014 The Chromium Authors. All rights reserved. | 3 # Copyright 2014 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 # pylint: disable=C0301 | 7 # pylint: disable=C0301 |
| 8 """Package resources into an apk. | 8 """Package resources into an apk. |
| 9 | 9 |
| 10 See https://android.googlesource.com/platform/tools/base/+/master/legacy/ant-tas
ks/src/main/java/com/android/ant/AaptExecTask.java | 10 See https://android.googlesource.com/platform/tools/base/+/master/legacy/ant-tas
ks/src/main/java/com/android/ant/AaptExecTask.java |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 'xhdpi-v21', | 47 'xhdpi-v21', |
| 48 ), | 48 ), |
| 49 'xxhdpi': ( | 49 'xxhdpi': ( |
| 50 'xxhdpi-v4', | 50 'xxhdpi-v4', |
| 51 'ldrtl-xxhdpi-v4', | 51 'ldrtl-xxhdpi-v4', |
| 52 'sw600dp-xxhdpi-v13', | 52 'sw600dp-xxhdpi-v13', |
| 53 'ldrtl-xxhdpi-v17', | 53 'ldrtl-xxhdpi-v17', |
| 54 'ldrtl-sw600dp-xxhdpi-v17', | 54 'ldrtl-sw600dp-xxhdpi-v17', |
| 55 'xxhdpi-v21', | 55 'xxhdpi-v21', |
| 56 ), | 56 ), |
| 57 'xxxhdpi': ( |
| 58 'xxxhdpi-v4', |
| 59 'ldrtl-xxxhdpi-v4', |
| 60 'sw600dp-xxxhdpi-v13', |
| 61 'ldrtl-xxxhdpi-v17', |
| 62 'ldrtl-sw600dp-xxxhdpi-v17', |
| 63 'xxxhdpi-v21', |
| 64 ), |
| 57 'tvdpi': ( | 65 'tvdpi': ( |
| 58 'tvdpi-v4', | 66 'tvdpi-v4', |
| 59 'sw600dp-tvdpi-v13', | 67 'sw600dp-tvdpi-v13', |
| 60 'ldrtl-sw600dp-tvdpi-v17', | 68 'ldrtl-sw600dp-tvdpi-v17', |
| 61 ), | 69 ), |
| 62 } | 70 } |
| 63 | 71 |
| 64 | 72 |
| 65 def ParseArgs(): | 73 def ParseArgs(): |
| 66 """Parses command line options. | 74 """Parses command line options. |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 RenameDensitySplits(options.apk_path) | 244 RenameDensitySplits(options.apk_path) |
| 237 | 245 |
| 238 if options.depfile: | 246 if options.depfile: |
| 239 build_utils.WriteDepfile( | 247 build_utils.WriteDepfile( |
| 240 options.depfile, | 248 options.depfile, |
| 241 build_utils.GetPythonDependencies()) | 249 build_utils.GetPythonDependencies()) |
| 242 | 250 |
| 243 | 251 |
| 244 if __name__ == '__main__': | 252 if __name__ == '__main__': |
| 245 main() | 253 main() |
| OLD | NEW |