Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: build/config/android/rules.gni

Issue 2632463004: Android: Hook up aapt's main dex proguard rules (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/config/android/rules.gni
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni
index 902c6a12054d9956ce6206c2335f8c374548ee28..73c76a81a00fb584c39d4fd3ac7dc6c584fbfe0d 100644
--- a/build/config/android/rules.gni
+++ b/build/config/android/rules.gni
@@ -1671,6 +1671,10 @@ if (enable_java_templates) {
_final_deps = []
+ if (enable_multidex) {
+ _generated_proguard_main_dex_config =
+ "$base_path.resources.main-dex-proguard.txt"
+ }
_generated_proguard_config = "$base_path.resources.proguard.txt"
process_resources_target = "${_template_name}__process_resources"
process_resources(process_resources_target) {
@@ -1690,6 +1694,9 @@ if (enable_java_templates) {
all_resources_zip_path = _all_resources_zip_path
generate_constant_ids = true
proguard_file = _generated_proguard_config
+ if (enable_multidex) {
+ proguard_file_main_dex = _generated_proguard_main_dex_config
+ }
build_config = _build_config
deps = _android_manifest_deps + [ ":$build_config_target" ]
@@ -1936,6 +1943,7 @@ if (enable_java_templates) {
if (!_proguard_enabled) {
if (enable_multidex) {
_dex_arg_key = "${_rebased_build_config}:dist_jar:dependency_jars"
+ extra_main_dex_proguard_config = _generated_proguard_main_dex_config
} else {
_dex_arg_key =
"${_rebased_build_config}:final_dex:dependency_dex_files"
« build/config/android/internal_rules.gni ('K') | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698