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

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

Issue 15231006: [Android] Fix proguard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add help messages Created 7 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 | « build/android/dex_action.gypi ('k') | build/java.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 84a9c63741b816307cee9b8ebee4b2882ccd6e8f..86f3878f7f0d4b456906d32745916b807918f415 100755
--- a/build/android/gyp/dex.py
+++ b/build/android/gyp/dex.py
@@ -31,6 +31,12 @@ def main(argv):
parser = optparse.OptionParser()
parser.add_option('--android-sdk-root', help='Android sdk root directory.')
parser.add_option('--dex-path', help='Dex output path.')
+ parser.add_option('--configuration-name',
+ help='The build CONFIGURATION_NAME.')
+ parser.add_option('--proguard-enabled',
+ help='"true" if proguard is enabled.')
+ parser.add_option('--proguard-enabled-input-path',
+ help='Path to dex in Release mode when proguard is enabled.')
parser.add_option('--stamp', help='Path to touch on success.')
# TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja.
@@ -38,6 +44,10 @@ def main(argv):
options, paths = parser.parse_args()
+ if (options.proguard_enabled == "true"
+ and options.configuration_name == "Release"):
+ paths = [options.proguard_enabled_input_path]
+
DoDex(options, paths)
if options.stamp:
« no previous file with comments | « build/android/dex_action.gypi ('k') | build/java.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698