Index: build/android/gyp/main_dex_list.py |
diff --git a/build/android/gyp/main_dex_list.py b/build/android/gyp/main_dex_list.py |
index 10a9961c1e95cc268f582225d1d81a0c829605ac..e18422e958aeff7b2d1ac2b3f04e9ea9e89ed46b 100755 |
--- a/build/android/gyp/main_dex_list.py |
+++ b/build/android/gyp/main_dex_list.py |
@@ -40,6 +40,9 @@ def main(args): |
parser.add_argument('--inputs', |
help='JARs for which a main dex list should be ' |
'generated.') |
+ parser.add_argument('--proguard-path', required=True, |
+ help='Path to the proguard executable.') |
+ |
parser.add_argument('paths', nargs='*', default=[], |
help='JARs for which a main dex list should be ' |
'generated.') |
@@ -64,7 +67,7 @@ def main(args): |
os.path.join(args.android_sdk_tools, 'mainDexClasses.rules')) |
proguard_cmd = [ |
- constants.PROGUARD_SCRIPT_PATH, |
+ 'java', '-jar', args.proguard_path, |
'-forceprocessing', |
'-dontwarn', '-dontoptimize', '-dontobfuscate', '-dontpreverify', |
'-libraryjars', shrinked_android_jar, |