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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 } | 663 } |
664 if (_shared_resources) { | 664 if (_shared_resources) { |
665 args += [ "--shared-resources" ] | 665 args += [ "--shared-resources" ] |
666 } | 666 } |
667 if (_create_density_splits) { | 667 if (_create_density_splits) { |
668 args += [ "--create-density-splits" ] | 668 args += [ "--create-density-splits" ] |
669 foreach(_density, _split_densities) { | 669 foreach(_density, _split_densities) { |
670 outputs += [ "${_resource_packaged_apk_path}-${_density}" ] | 670 outputs += [ "${_resource_packaged_apk_path}-${_density}" ] |
671 } | 671 } |
672 } | 672 } |
| 673 if (defined(invoker.extensions_to_not_compress)) { |
| 674 args += [ |
| 675 "--no-compress", |
| 676 invoker.extensions_to_not_compress, |
| 677 ] |
| 678 } |
673 } | 679 } |
674 | 680 |
675 package_target = "${target_name}__package" | 681 package_target = "${target_name}__package" |
676 action(package_target) { | 682 action(package_target) { |
677 script = "//build/android/gyp/ant.py" | 683 script = "//build/android/gyp/ant.py" |
678 _ant_script = "//build/android/ant/apk-package.xml" | 684 _ant_script = "//build/android/ant/apk-package.xml" |
679 | 685 |
680 deps = [ | 686 deps = [ |
681 ":${_package_resources_target_name}", | 687 ":${_package_resources_target_name}", |
682 ] | 688 ] |
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1502 ] | 1508 ] |
1503 args = [ | 1509 args = [ |
1504 "--depfile", | 1510 "--depfile", |
1505 rebase_path(depfile, root_build_dir), | 1511 rebase_path(depfile, root_build_dir), |
1506 "--script-output-path", | 1512 "--script-output-path", |
1507 rebase_path(generated_script, root_build_dir), | 1513 rebase_path(generated_script, root_build_dir), |
1508 ] | 1514 ] |
1509 args += test_runner_args | 1515 args += test_runner_args |
1510 } | 1516 } |
1511 } | 1517 } |
OLD | NEW |