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

Unified Diff: build/android/gyp/dex.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/gyp/apk_obfuscate.py ('k') | build/java_apk.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/dex.py
diff --git a/build/android/gyp/dex.py b/build/android/gyp/dex.py
index 59425d705955f8116f23fbceea332f933191cb6e..67f43e94d7903f27dbf48d3eb3b37346b4c62b2a 100755
--- a/build/android/gyp/dex.py
+++ b/build/android/gyp/dex.py
@@ -49,6 +49,8 @@ def _ParseArgs(args):
help='The build CONFIGURATION_NAME.')
parser.add_option('--proguard-enabled',
help='"true" if proguard is enabled.')
+ parser.add_option('--debug-build-proguard-enabled',
+ help='"true" if proguard is enabled for debug build.')
parser.add_option('--proguard-enabled-input-path',
help=('Path to dex in Release mode when proguard '
'is enabled.'))
@@ -144,8 +146,10 @@ def _OnStaleMd5(changes, options, dex_cmd, paths):
def main(args):
options, paths = _ParseArgs(args)
- if (options.proguard_enabled == 'true'
- and options.configuration_name == 'Release'):
+ if ((options.proguard_enabled == 'true'
+ and options.configuration_name == 'Release')
+ or (options.debug_build_proguard_enabled == 'true'
+ and options.configuration_name == 'Debug')):
paths = [options.proguard_enabled_input_path]
if options.inputs:
« no previous file with comments | « build/android/gyp/apk_obfuscate.py ('k') | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698