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

Unified Diff: build/android/gyp/apk_obfuscate.py

Issue 1408383002: Add flag to enable proguard for debug build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comment Created 5 years, 2 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 | « build/android/dex_action.gypi ('k') | build/android/gyp/dex.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/apk_obfuscate.py
diff --git a/build/android/gyp/apk_obfuscate.py b/build/android/gyp/apk_obfuscate.py
index b075758800735973967c04af107aa91c6e62dc7c..286555dcd8671780292aeadd2f39cea9e605cae7 100755
--- a/build/android/gyp/apk_obfuscate.py
+++ b/build/android/gyp/apk_obfuscate.py
@@ -35,6 +35,11 @@ def ParseArgs(argv):
parser.add_option('--configuration-name',
help='Gyp configuration name (i.e. Debug, Release)')
+
+ parser.add_option('--debug-build-proguard-enabled', action='store_true',
+ help='--proguard-enabled takes effect on release '
+ 'build, this flag enable the proguard on debug '
+ 'build.')
parser.add_option('--proguard-enabled', action='store_true',
help='Set if proguard is enabled for this target.')
@@ -125,7 +130,9 @@ def main(argv):
build_utils.MergeZips(
options.test_jar_path, input_jars, dependency_class_filters)
- if options.configuration_name == 'Release' and options.proguard_enabled:
+ if ((options.configuration_name == 'Release' and options.proguard_enabled) or
+ (options.configuration_name == 'Debug' and
+ options.debug_build_proguard_enabled)):
DoProguard(options)
else:
output_files = [
« no previous file with comments | « build/android/dex_action.gypi ('k') | build/android/gyp/dex.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698