| 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("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
| 9 import("//tools/relocation_packer/config.gni") | 9 import("//tools/relocation_packer/config.gni") |
| 10 | 10 |
| (...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 _native_lib_version_name = "" | 1290 _native_lib_version_name = "" |
| 1291 if (defined(invoker.native_lib_version_name)) { | 1291 if (defined(invoker.native_lib_version_name)) { |
| 1292 _native_lib_version_name = invoker.native_lib_version_name | 1292 _native_lib_version_name = invoker.native_lib_version_name |
| 1293 } | 1293 } |
| 1294 } | 1294 } |
| 1295 | 1295 |
| 1296 _android_manifest = invoker.android_manifest | 1296 _android_manifest = invoker.android_manifest |
| 1297 _rebased_build_config = rebase_path(_build_config, root_build_dir) | 1297 _rebased_build_config = rebase_path(_build_config, root_build_dir) |
| 1298 _create_abi_split = | 1298 _create_abi_split = |
| 1299 defined(invoker.create_abi_split) && invoker.create_abi_split | 1299 defined(invoker.create_abi_split) && invoker.create_abi_split |
| 1300 _create_density_splits = |
| 1301 defined(invoker.create_density_splits) && invoker.create_density_splits |
| 1300 | 1302 |
| 1301 # Help GN understand that _create_abi_split is not unused (bug in GN). | 1303 # Help GN understand that _create_abi_split is not unused (bug in GN). |
| 1302 assert(_create_abi_split || true) | 1304 assert(_create_abi_split || true) |
| 1303 | 1305 |
| 1304 write_build_config("${_template_name}__build_config") { | 1306 write_build_config("${_template_name}__build_config") { |
| 1305 type = "android_apk" | 1307 type = "android_apk" |
| 1306 dex_path = final_dex_path | 1308 dex_path = final_dex_path |
| 1307 resources_zip = resources_zip_path | 1309 resources_zip = resources_zip_path |
| 1308 build_config = _build_config | 1310 build_config = _build_config |
| 1309 android_manifest = _android_manifest | 1311 android_manifest = _android_manifest |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1481 } | 1483 } |
| 1482 } | 1484 } |
| 1483 | 1485 |
| 1484 final_deps += [ ":${_template_name}__create" ] | 1486 final_deps += [ ":${_template_name}__create" ] |
| 1485 create_apk("${_template_name}__create") { | 1487 create_apk("${_template_name}__create") { |
| 1486 apk_path = _final_apk_path | 1488 apk_path = _final_apk_path |
| 1487 android_manifest = _android_manifest | 1489 android_manifest = _android_manifest |
| 1488 resources_zip = _all_resources_zip_path | 1490 resources_zip = _all_resources_zip_path |
| 1489 dex_path = final_dex_path | 1491 dex_path = final_dex_path |
| 1490 load_library_from_apk = _load_library_from_apk | 1492 load_library_from_apk = _load_library_from_apk |
| 1493 create_density_splits = _create_density_splits |
| 1491 | 1494 |
| 1492 version_code = _version_code | 1495 version_code = _version_code |
| 1493 version_name = _version_name | 1496 version_name = _version_name |
| 1494 | 1497 |
| 1495 keystore_name = _keystore_name | 1498 keystore_name = _keystore_name |
| 1496 keystore_path = _keystore_path | 1499 keystore_path = _keystore_path |
| 1497 keystore_password = _keystore_password | 1500 keystore_password = _keystore_password |
| 1498 | 1501 |
| 1499 deps = [] | 1502 deps = [] |
| 1500 if (defined(invoker.asset_location)) { | 1503 if (defined(invoker.asset_location)) { |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1860 template("uiautomator_test") { | 1863 template("uiautomator_test") { |
| 1861 set_sources_assignment_filter([]) | 1864 set_sources_assignment_filter([]) |
| 1862 if (defined(invoker.testonly)) { | 1865 if (defined(invoker.testonly)) { |
| 1863 testonly = invoker.testonly | 1866 testonly = invoker.testonly |
| 1864 } | 1867 } |
| 1865 assert(target_name != "") | 1868 assert(target_name != "") |
| 1866 assert(invoker.deps != [] || true) | 1869 assert(invoker.deps != [] || true) |
| 1867 group(target_name) { | 1870 group(target_name) { |
| 1868 } | 1871 } |
| 1869 } | 1872 } |
| OLD | NEW |