| 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("//base/android/linker/config.gni") | 5 import("//base/android/linker/config.gni") |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/android/internal_rules.gni") | 7 import("//build/config/android/internal_rules.gni") |
| 8 import("//build/toolchain/toolchain.gni") | 8 import("//build/toolchain/toolchain.gni") |
| 9 import("//third_party/android_platform/config.gni") | 9 import("//third_party/android_platform/config.gni") |
| 10 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
| (...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 wrapper_script_args = [ | 925 wrapper_script_args = [ |
| 926 "-test-jars", | 926 "-test-jars", |
| 927 "$target_name.jar", | 927 "$target_name.jar", |
| 928 ] | 928 ] |
| 929 testonly = true | 929 testonly = true |
| 930 | 930 |
| 931 deps += [ | 931 deps += [ |
| 932 "//testing/android/junit:junit_test_support", | 932 "//testing/android/junit:junit_test_support", |
| 933 "//third_party/junit", | 933 "//third_party/junit", |
| 934 "//third_party/mockito:mockito_java", | 934 "//third_party/mockito:mockito_java", |
| 935 "//third_party/robolectric:android-all-4.3_r2-robolectric-0", |
| 935 "//third_party/robolectric:robolectric_java", | 936 "//third_party/robolectric:robolectric_java", |
| 936 "//third_party/robolectric:android-all-4.3_r2-robolectric-0", | |
| 937 ] | 937 ] |
| 938 } | 938 } |
| 939 } | 939 } |
| 940 | 940 |
| 941 # Declare a java library target | 941 # Declare a java library target |
| 942 # | 942 # |
| 943 # Variables | 943 # Variables |
| 944 # deps: Specifies the dependencies of this target. Java targets in this list | 944 # deps: Specifies the dependencies of this target. Java targets in this list |
| 945 # will be added to the javac classpath. | 945 # will be added to the javac classpath. |
| 946 # | 946 # |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1508 | 1508 |
| 1509 if (_proguard_enabled) { | 1509 if (_proguard_enabled) { |
| 1510 _proguard_configs = [ _generated_proguard_config ] | 1510 _proguard_configs = [ _generated_proguard_config ] |
| 1511 if (defined(invoker.proguard_configs)) { | 1511 if (defined(invoker.proguard_configs)) { |
| 1512 _proguard_configs += invoker.proguard_configs | 1512 _proguard_configs += invoker.proguard_configs |
| 1513 } | 1513 } |
| 1514 _proguard_target = "${_template_name}__proguard" | 1514 _proguard_target = "${_template_name}__proguard" |
| 1515 proguard(_proguard_target) { | 1515 proguard(_proguard_target) { |
| 1516 deps = [ | 1516 deps = [ |
| 1517 ":$build_config_target", | 1517 ":$build_config_target", |
| 1518 ":$java_target", |
| 1518 ":$process_resources_target", | 1519 ":$process_resources_target", |
| 1519 ":$java_target", | |
| 1520 ] | 1520 ] |
| 1521 inputs = [ | 1521 inputs = [ |
| 1522 _build_config, | 1522 _build_config, |
| 1523 _jar_path, | 1523 _jar_path, |
| 1524 ] + _proguard_configs | 1524 ] + _proguard_configs |
| 1525 | 1525 |
| 1526 output_jar_path = _proguard_jar_path | 1526 output_jar_path = _proguard_jar_path |
| 1527 rebased_proguard_configs = rebase_path(_proguard_configs, root_build_dir) | 1527 rebased_proguard_configs = rebase_path(_proguard_configs, root_build_dir) |
| 1528 args = [ | 1528 args = [ |
| 1529 "--proguard-configs=$rebased_proguard_configs", | 1529 "--proguard-configs=$rebased_proguard_configs", |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1682 | 1682 |
| 1683 version_code = _version_code | 1683 version_code = _version_code |
| 1684 version_name = _version_name | 1684 version_name = _version_name |
| 1685 | 1685 |
| 1686 keystore_name = _keystore_name | 1686 keystore_name = _keystore_name |
| 1687 keystore_path = _keystore_path | 1687 keystore_path = _keystore_path |
| 1688 keystore_password = _keystore_password | 1688 keystore_password = _keystore_password |
| 1689 | 1689 |
| 1690 native_libs_dir = _native_libs_dir | 1690 native_libs_dir = _native_libs_dir |
| 1691 deps = [ | 1691 deps = [ |
| 1692 ":${_manifest_rule}", |
| 1692 ":${_prepare_native_target_name}", | 1693 ":${_prepare_native_target_name}", |
| 1693 ":${_manifest_rule}", | |
| 1694 ] | 1694 ] |
| 1695 incremental_deps = deps | 1695 incremental_deps = deps |
| 1696 } | 1696 } |
| 1697 } | 1697 } |
| 1698 | 1698 |
| 1699 _create_incremental_script_rule_name = "${_template_name}__incremental_script" | 1699 _create_incremental_script_rule_name = "${_template_name}__incremental_script" |
| 1700 action(_create_incremental_script_rule_name) { | 1700 action(_create_incremental_script_rule_name) { |
| 1701 script = "//build/android/incremental_install/create_install_script.py" | 1701 script = "//build/android/incremental_install/create_install_script.py" |
| 1702 depfile = "$target_gen_dir/$target_name.d" | 1702 depfile = "$target_gen_dir/$target_name.d" |
| 1703 deps = [ | 1703 deps = [ |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1744 data_deps = [] | 1744 data_deps = [] |
| 1745 forward_variables_from(invoker, [ "data_deps" ]) | 1745 forward_variables_from(invoker, [ "data_deps" ]) |
| 1746 | 1746 |
| 1747 # device/commands is used by the installer script to push files via .zip. | 1747 # device/commands is used by the installer script to push files via .zip. |
| 1748 data_deps += [ "//build/android/pylib/device/commands" ] | 1748 data_deps += [ "//build/android/pylib/device/commands" ] |
| 1749 | 1749 |
| 1750 # Since the _incremental.apk does not include use .so nor .dex from the | 1750 # Since the _incremental.apk does not include use .so nor .dex from the |
| 1751 # actual target, but instead loads them at runtime, we need to explicitly | 1751 # actual target, but instead loads them at runtime, we need to explicitly |
| 1752 # depend on them here. | 1752 # depend on them here. |
| 1753 public_deps = [ | 1753 public_deps = [ |
| 1754 ":${_create_incremental_script_rule_name}", |
| 1754 ":${_template_name}__create_incremental", | 1755 ":${_template_name}__create_incremental", |
| 1755 ":${_create_incremental_script_rule_name}", | |
| 1756 ":${java_target}", | 1756 ":${java_target}", |
| 1757 ] | 1757 ] |
| 1758 if (_native_libs != []) { | 1758 if (_native_libs != []) { |
| 1759 public_deps += [ ":$_prepare_native_target_name" ] | 1759 public_deps += [ ":$_prepare_native_target_name" ] |
| 1760 } | 1760 } |
| 1761 } | 1761 } |
| 1762 } | 1762 } |
| 1763 | 1763 |
| 1764 # Declare an Android instrumentation test apk | 1764 # Declare an Android instrumentation test apk |
| 1765 # | 1765 # |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2150 } | 2150 } |
| 2151 | 2151 |
| 2152 android_library(target_name) { | 2152 android_library(target_name) { |
| 2153 java_files = [] | 2153 java_files = [] |
| 2154 srcjar_deps = [ ":${_template_name}__protoc_java" ] | 2154 srcjar_deps = [ ":${_template_name}__protoc_java" ] |
| 2155 deps = [ | 2155 deps = [ |
| 2156 "//third_party/android_protobuf:protobuf_nano_javalib", | 2156 "//third_party/android_protobuf:protobuf_nano_javalib", |
| 2157 ] | 2157 ] |
| 2158 } | 2158 } |
| 2159 } | 2159 } |
| OLD | NEW |