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

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

Issue 2000333003: Allow test and unittest_apk GN targets to use proguard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove the "+" Created 4 years, 7 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
« no previous file with comments | « AUTHORS ('k') | testing/test.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/android/rules.gni
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni
index f3076be1f42fe1222668cd1d6a9e9d011226a6cf..cdc898798b8906db0df0b9a0fec641ac591d7d69 100644
--- a/build/config/android/rules.gni
+++ b/build/config/android/rules.gni
@@ -2134,6 +2134,12 @@ template("unittest_apk") {
# are defined, as otherwise test_suite_name would not be used.
assert(test_suite_name != "")
+ if (defined(invoker.proguard_enabled) && invoker.proguard_enabled) {
+ assert(invoker.proguard_configs != [])
+ proguard_enabled = true
+ proguard_configs = invoker.proguard_configs
+ }
+
if (!defined(apk_name)) {
apk_name = test_suite_name
}
« no previous file with comments | « AUTHORS ('k') | testing/test.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698