OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 | 6 |
7 assert(is_android) | 7 assert(is_android) |
8 | 8 |
9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) | 9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) |
10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) | 10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 } | 651 } |
652 if (_shared_resources) { | 652 if (_shared_resources) { |
653 args += [ "--shared-resources" ] | 653 args += [ "--shared-resources" ] |
654 } | 654 } |
655 if (_create_density_splits) { | 655 if (_create_density_splits) { |
656 args += [ "--create-density-splits" ] | 656 args += [ "--create-density-splits" ] |
657 foreach(_density, _split_densities) { | 657 foreach(_density, _split_densities) { |
658 outputs += [ "${_resource_packaged_apk_path}-${_density}" ] | 658 outputs += [ "${_resource_packaged_apk_path}-${_density}" ] |
659 } | 659 } |
660 } | 660 } |
| 661 if (defined(invoker.extensions_to_not_compress)) { |
| 662 args += [ |
| 663 "--no-compress", |
| 664 invoker.extensions_to_not_compress, |
| 665 ] |
| 666 } |
661 } | 667 } |
662 | 668 |
663 package_target = "${target_name}__package" | 669 package_target = "${target_name}__package" |
664 action(package_target) { | 670 action(package_target) { |
665 script = "//build/android/gyp/ant.py" | 671 script = "//build/android/gyp/ant.py" |
666 _ant_script = "//build/android/ant/apk-package.xml" | 672 _ant_script = "//build/android/ant/apk-package.xml" |
667 | 673 |
668 deps = [ | 674 deps = [ |
669 ":${_package_resources_target_name}", | 675 ":${_package_resources_target_name}", |
670 ] | 676 ] |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1364 script = "//build/android/gyp/generate_split_manifest.py" | 1370 script = "//build/android/gyp/generate_split_manifest.py" |
1365 outputs = [ | 1371 outputs = [ |
1366 depfile, | 1372 depfile, |
1367 invoker.out_manifest, | 1373 invoker.out_manifest, |
1368 ] | 1374 ] |
1369 inputs = [ | 1375 inputs = [ |
1370 invoker.main_manifest, | 1376 invoker.main_manifest, |
1371 ] | 1377 ] |
1372 } | 1378 } |
1373 } | 1379 } |
OLD | NEW |