Chromium Code Reviews| 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 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1378 } | 1378 } |
| 1379 | 1379 |
| 1380 native_libs = _native_libs | 1380 native_libs = _native_libs |
| 1381 } | 1381 } |
| 1382 | 1382 |
| 1383 _final_deps = [] | 1383 _final_deps = [] |
| 1384 | 1384 |
| 1385 _generated_proguard_config = "$base_path.resources.proguard.txt" | 1385 _generated_proguard_config = "$base_path.resources.proguard.txt" |
| 1386 process_resources_target = "${_template_name}__process_resources" | 1386 process_resources_target = "${_template_name}__process_resources" |
| 1387 process_resources(process_resources_target) { | 1387 process_resources(process_resources_target) { |
| 1388 forward_variables_from(invoker, [ "include_all_resources" ]) | 1388 forward_variables_from(invoker, |
| 1389 [ | |
| 1390 "include_all_resources", | |
| 1391 "shared_resources", | |
| 1392 ]) | |
| 1389 srcjar_path = "${target_gen_dir}/${target_name}.srcjar" | 1393 srcjar_path = "${target_gen_dir}/${target_name}.srcjar" |
| 1390 r_text_path = "${target_gen_dir}/${target_name}_R.txt" | 1394 r_text_path = "${target_gen_dir}/${target_name}_R.txt" |
| 1391 android_manifest = _android_manifest | 1395 android_manifest = _android_manifest |
| 1392 resource_dirs = [ "//build/android/ant/empty/res" ] | 1396 resource_dirs = [ "//build/android/ant/empty/res" ] |
| 1393 zip_path = resources_zip_path | 1397 zip_path = resources_zip_path |
| 1394 all_resources_zip_path = _all_resources_zip_path | 1398 all_resources_zip_path = _all_resources_zip_path |
| 1395 generate_constant_ids = true | 1399 generate_constant_ids = true |
| 1396 proguard_file = _generated_proguard_config | 1400 proguard_file = _generated_proguard_config |
| 1397 | 1401 |
| 1398 build_config = _build_config | 1402 build_config = _build_config |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1610 | 1614 |
| 1611 _final_deps += [ ":${_template_name}__create" ] | 1615 _final_deps += [ ":${_template_name}__create" ] |
| 1612 create_apk("${_template_name}__create") { | 1616 create_apk("${_template_name}__create") { |
| 1613 deps = [] | 1617 deps = [] |
| 1614 forward_variables_from(invoker, | 1618 forward_variables_from(invoker, |
| 1615 [ | 1619 [ |
| 1616 "asset_location", | 1620 "asset_location", |
| 1617 "deps", | 1621 "deps", |
| 1618 "extensions_to_not_compress", | 1622 "extensions_to_not_compress", |
| 1619 "language_splits", | 1623 "language_splits", |
| 1624 "shared_resources", | |
| 1620 ]) | 1625 ]) |
| 1621 apk_path = _final_apk_path | 1626 apk_path = _final_apk_path |
| 1622 android_manifest = _android_manifest | 1627 android_manifest = _android_manifest |
| 1623 assets_build_config = _build_config | 1628 assets_build_config = _build_config |
| 1624 resources_zip = _all_resources_zip_path | 1629 resources_zip = _all_resources_zip_path |
| 1625 dex_path = final_dex_path | 1630 dex_path = final_dex_path |
| 1626 load_library_from_apk = _load_library_from_apk | 1631 load_library_from_apk = _load_library_from_apk |
| 1627 create_density_splits = _create_density_splits | 1632 create_density_splits = _create_density_splits |
| 1628 | 1633 |
| 1629 if (!defined(extensions_to_not_compress)) { | 1634 if (!defined(extensions_to_not_compress)) { |
| 1630 # Allow icu data, v8 snapshots, and pak files to be loaded directly from | 1635 # Allow icu data, v8 snapshots, and pak files to be loaded directly from |
| 1631 # the .apk. | 1636 # the .apk. |
| 1632 # Note: These are actually suffix matches, not necessarily extensions. | 1637 # Note: These are actually suffix matches, not necessarily extensions. |
| 1633 extensions_to_not_compress = ".dat,.bin,.pak" | 1638 extensions_to_not_compress = ".dat,.bin,.pak,.lpak" |
|
agrieve
2015/11/17 03:05:26
The default for this value in GYP is .dat,.bin,.pa
michaelbai
2015/11/17 17:51:11
Done.
| |
| 1634 } | 1639 } |
| 1635 | 1640 |
| 1636 version_code = _version_code | 1641 version_code = _version_code |
| 1637 version_name = _version_name | 1642 version_name = _version_name |
| 1638 | 1643 |
| 1639 keystore_name = _keystore_name | 1644 keystore_name = _keystore_name |
| 1640 keystore_path = _keystore_path | 1645 keystore_path = _keystore_path |
| 1641 keystore_password = _keystore_password | 1646 keystore_password = _keystore_password |
| 1642 | 1647 |
| 1643 # Incremental apk does not use native libs nor final dex. | 1648 # Incremental apk does not use native libs nor final dex. |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2150 } | 2155 } |
| 2151 | 2156 |
| 2152 android_library(target_name) { | 2157 android_library(target_name) { |
| 2153 java_files = [] | 2158 java_files = [] |
| 2154 srcjar_deps = [ ":${_template_name}__protoc_java" ] | 2159 srcjar_deps = [ ":${_template_name}__protoc_java" ] |
| 2155 deps = [ | 2160 deps = [ |
| 2156 "//third_party/android_protobuf:protobuf_nano_javalib", | 2161 "//third_party/android_protobuf:protobuf_nano_javalib", |
| 2157 ] | 2162 ] |
| 2158 } | 2163 } |
| 2159 } | 2164 } |
| OLD | NEW |