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

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

Issue 2632463004: Android: Hook up aapt's main dex proguard rules (Closed)
Patch Set: add as input Created 3 years, 11 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 | « no previous file | build/config/android/internal_rules.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/process_resources.py
diff --git a/build/android/gyp/process_resources.py b/build/android/gyp/process_resources.py
index 1166788ecaeca87e9bdde34f980af419129847d0..a382308ba5416c946db95f39cd80b86fbf80277b 100755
--- a/build/android/gyp/process_resources.py
+++ b/build/android/gyp/process_resources.py
@@ -82,6 +82,8 @@ def _ParseArgs(args):
parser.add_option('--proguard-file',
help='Path to proguard.txt generated file')
+ parser.add_option('--proguard-file-main-dex',
+ help='Path to proguard.txt generated file for main dex')
parser.add_option(
'--v14-skip',
@@ -447,6 +449,8 @@ def _OnStaleMd5(options):
if options.proguard_file:
package_command += ['-G', options.proguard_file]
+ if options.proguard_file_main_dex:
+ package_command += ['-D', options.proguard_file_main_dex]
build_utils.CheckOutput(package_command, print_stderr=False)
# When an empty res/ directory is passed, aapt does not write an R.txt.
@@ -521,6 +525,7 @@ def main(args):
options.resource_zip_out,
options.all_resources_zip_out,
options.proguard_file,
+ options.proguard_file_main_dex,
options.r_text_out,
options.srcjar_out,
]
« no previous file with comments | « no previous file | build/config/android/internal_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698