| 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 # Do not add any imports to non-//build directories here. | 5 # Do not add any imports to non-//build directories here. |
| 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. | 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. |
| 7 import("//build/config/android/config.gni") | 7 import("//build/config/android/config.gni") |
| 8 import("//build/config/android/internal_rules.gni") | 8 import("//build/config/android/internal_rules.gni") |
| 9 import("//build/config/compiler/compiler.gni") | 9 import("//build/config/compiler/compiler.gni") |
| 10 import("//build/config/dcheck_always_on.gni") | 10 import("//build/config/dcheck_always_on.gni") |
| (...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1426 assert(defined(invoker.android_manifest)) | 1426 assert(defined(invoker.android_manifest)) |
| 1427 gen_dir = "$target_gen_dir/$target_name" | 1427 gen_dir = "$target_gen_dir/$target_name" |
| 1428 base_path = "$gen_dir/$target_name" | 1428 base_path = "$gen_dir/$target_name" |
| 1429 _build_config = "$target_gen_dir/$target_name.build_config" | 1429 _build_config = "$target_gen_dir/$target_name.build_config" |
| 1430 resources_zip_path = "$base_path.resources.zip" | 1430 resources_zip_path = "$base_path.resources.zip" |
| 1431 _all_resources_zip_path = "$base_path.resources.all.zip" | 1431 _all_resources_zip_path = "$base_path.resources.all.zip" |
| 1432 _jar_path = "$base_path.jar" | 1432 _jar_path = "$base_path.jar" |
| 1433 _lib_dex_path = "$base_path.dex.jar" | 1433 _lib_dex_path = "$base_path.dex.jar" |
| 1434 _rebased_lib_dex_path = rebase_path(_lib_dex_path, root_build_dir) | 1434 _rebased_lib_dex_path = rebase_path(_lib_dex_path, root_build_dir) |
| 1435 _template_name = target_name | 1435 _template_name = target_name |
| 1436 if (defined(invoker.java_files)) { |
| 1437 _java_sources_file = "$base_path.sources" |
| 1438 } |
| 1436 | 1439 |
| 1437 enable_multidex = | 1440 enable_multidex = |
| 1438 defined(invoker.enable_multidex) && invoker.enable_multidex | 1441 defined(invoker.enable_multidex) && invoker.enable_multidex |
| 1439 if (enable_multidex) { | 1442 if (enable_multidex) { |
| 1440 final_dex_path = "$gen_dir/classes.dex.zip" | 1443 final_dex_path = "$gen_dir/classes.dex.zip" |
| 1441 } else { | 1444 } else { |
| 1442 final_dex_path = "$gen_dir/classes.dex" | 1445 final_dex_path = "$gen_dir/classes.dex" |
| 1443 } | 1446 } |
| 1444 final_dex_target_name = "${_template_name}__final_dex" | 1447 final_dex_target_name = "${_template_name}__final_dex" |
| 1445 | 1448 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1609 type = "android_apk" | 1612 type = "android_apk" |
| 1610 jar_path = _jar_path | 1613 jar_path = _jar_path |
| 1611 dex_path = final_dex_path | 1614 dex_path = final_dex_path |
| 1612 apk_path = _final_apk_path | 1615 apk_path = _final_apk_path |
| 1613 incremental_apk_path = "${_final_apk_path_no_ext}_incremental.apk" | 1616 incremental_apk_path = "${_final_apk_path_no_ext}_incremental.apk" |
| 1614 incremental_install_script_path = _incremental_install_script_path | 1617 incremental_install_script_path = _incremental_install_script_path |
| 1615 resources_zip = resources_zip_path | 1618 resources_zip = resources_zip_path |
| 1616 build_config = _build_config | 1619 build_config = _build_config |
| 1617 android_manifest = _android_manifest | 1620 android_manifest = _android_manifest |
| 1618 | 1621 |
| 1622 if (defined(_java_sources_file)) { |
| 1623 java_sources_file = _java_sources_file |
| 1624 } |
| 1625 |
| 1619 deps = _android_manifest_deps | 1626 deps = _android_manifest_deps |
| 1620 | 1627 |
| 1621 if (defined(invoker.deps)) { | 1628 if (defined(invoker.deps)) { |
| 1622 possible_config_deps = invoker.deps | 1629 possible_config_deps = invoker.deps |
| 1623 } | 1630 } |
| 1624 | 1631 |
| 1625 # Added emma to the target's classpath via its .build_config. | 1632 # Added emma to the target's classpath via its .build_config. |
| 1626 if (emma_coverage && !_emma_never_instrument) { | 1633 if (emma_coverage && !_emma_never_instrument) { |
| 1627 possible_config_deps += | 1634 possible_config_deps += |
| 1628 [ "//third_party/android_tools:emma_device_java" ] | 1635 [ "//third_party/android_tools:emma_device_java" ] |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1775 supports_android = true | 1782 supports_android = true |
| 1776 requires_android = true | 1783 requires_android = true |
| 1777 override_build_config = _build_config | 1784 override_build_config = _build_config |
| 1778 deps = _android_manifest_deps + [ ":$build_config_target" ] | 1785 deps = _android_manifest_deps + [ ":$build_config_target" ] |
| 1779 | 1786 |
| 1780 android_manifest = _android_manifest | 1787 android_manifest = _android_manifest |
| 1781 srcjar_deps = _srcjar_deps | 1788 srcjar_deps = _srcjar_deps |
| 1782 jar_path = _jar_path | 1789 jar_path = _jar_path |
| 1783 dex_path = _lib_dex_path | 1790 dex_path = _lib_dex_path |
| 1784 emma_never_instrument = _emma_never_instrument | 1791 emma_never_instrument = _emma_never_instrument |
| 1792 if (defined(_java_sources_file)) { |
| 1793 java_sources_file = _java_sources_file |
| 1794 } |
| 1785 | 1795 |
| 1786 if (defined(invoker.deps)) { | 1796 if (defined(invoker.deps)) { |
| 1787 deps += invoker.deps | 1797 deps += invoker.deps |
| 1788 } | 1798 } |
| 1789 if (defined(invoker.apk_under_test)) { | 1799 if (defined(invoker.apk_under_test)) { |
| 1790 deps += [ "${invoker.apk_under_test}__java" ] | 1800 deps += [ "${invoker.apk_under_test}__java" ] |
| 1791 } | 1801 } |
| 1792 if (emma_coverage && !_emma_never_instrument) { | 1802 if (emma_coverage && !_emma_never_instrument) { |
| 1793 deps += [ "//third_party/android_tools:emma_device_java" ] | 1803 deps += [ "//third_party/android_tools:emma_device_java" ] |
| 1794 } | 1804 } |
| (...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2772 # because in practice they seem to contain classes required to be in the | 2782 # because in practice they seem to contain classes required to be in the |
| 2773 # classpath. | 2783 # classpath. |
| 2774 deps += _subjar_targets | 2784 deps += _subjar_targets |
| 2775 } | 2785 } |
| 2776 if (defined(_res_target_name)) { | 2786 if (defined(_res_target_name)) { |
| 2777 deps += [ ":$_res_target_name" ] | 2787 deps += [ ":$_res_target_name" ] |
| 2778 } | 2788 } |
| 2779 } | 2789 } |
| 2780 } | 2790 } |
| 2781 } | 2791 } |
| OLD | NEW |