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

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

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/test/BUILD.gn ('k') | build/android/provision_devices.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/write_build_config.py
diff --git a/build/android/gyp/write_build_config.py b/build/android/gyp/write_build_config.py
index ed68e6cb4588497d27ad8768bec4921a433c8ad0..a14ef77fce56bd24343faa7917f43b455cf664f9 100755
--- a/build/android/gyp/write_build_config.py
+++ b/build/android/gyp/write_build_config.py
@@ -213,13 +213,17 @@ def main(argv):
c['package_name'] for c in all_resources_deps if 'package_name' in c]
- if options.type == 'android_apk':
- config['apk_dex'] = {}
- dex_config = config['apk_dex']
+ # Dependencies for the final dex file of an apk or the standalone .dex.jar
+ # output of a library.
+ if options.type == 'android_apk' or (options.type == "java_library"
+ and options.supports_android):
+ config['final_dex'] = {}
+ dex_config = config['final_dex']
# TODO(cjhopman): proguard version
dex_deps_files = [c['dex_path'] for c in all_library_deps]
dex_config['dependency_dex_files'] = dex_deps_files
+ if options.type == 'android_apk':
config['dist_jar'] = {
'dependency_jars': [
c['jar_path'] for c in all_library_deps
« no previous file with comments | « build/android/gyp/test/BUILD.gn ('k') | build/android/provision_devices.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698