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

Unified Diff: build/java.gypi

Issue 12913009: Predex java libraries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@antpy
Patch Set: Rebase Created 7 years, 9 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/apk_fake_jar.gypi ('k') | build/java_apk.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/java.gypi
diff --git a/build/java.gypi b/build/java.gypi
index c1d5911531b189a36684973bcff321bc063af6d5..f3bc01e6a64bc88f1be2d06af09ae76ed387c34b 100644
--- a/build/java.gypi
+++ b/build/java.gypi
@@ -58,6 +58,7 @@
'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)',
'jar_excluded_classes': [ '*/R.class', '*/R##*.class' ],
'additional_input_paths': [],
+ 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar',
'generated_src_dirs': ['>@(generated_R_dirs)'],
'generated_R_dirs': [],
'has_java_resources%': 0,
@@ -74,6 +75,7 @@
'all_dependent_settings': {
'variables': {
'input_jars_paths': ['<(jar_path)'],
+ 'library_dexed_jars_paths': ['<(dex_path)'],
},
},
'conditions': [
@@ -226,5 +228,28 @@
'--ignore=>!(echo \'>(_inputs)\' | md5sum)',
]
},
+ {
+ 'action_name': 'dex_<(_target_name)',
+ 'message': 'Dexing <(_target_name) jar',
+ 'inputs': [
+ '<(DEPTH)/build/android/pylib/build_utils.py',
+ '<(DEPTH)/build/android/dex.py',
+ '<(jar_path)',
+ ],
+ 'outputs': [
+ '<(dex_path)',
+ ],
+ 'action': [
+ 'python', '<(DEPTH)/build/android/dex.py',
+ '--dex-path=<(dex_path)',
+ '--android-sdk-root=<(android_sdk_root)',
+
+ # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja.
+ '--ignore=>!(echo >(_inputs) | md5sum)',
+
+ '<(jar_path)',
+ ]
+ },
+
],
}
« no previous file with comments | « build/apk_fake_jar.gypi ('k') | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698