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

Unified Diff: build/java_apk.gypi

Issue 13269002: Allow the build to install apks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« build/android/apk_install.py ('K') | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/java_apk.gypi
diff --git a/build/java_apk.gypi b/build/java_apk.gypi
index bfe8d9c1c3f39008ef7ba0a0199632104776a658..aa85de6d661134df5d62b8871a9abcfbdbf6b3b2 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -84,6 +84,8 @@
'dex_path': '<(intermediate_dir)/classes.dex',
'android_manifest': '<(java_in_dir)/AndroidManifest.xml',
'codegen_input_paths': [],
+ 'final_apk_path': '<(PRODUCT_DIR)/apks/<(apk_name).apk',
+ 'apk_install_stamp': '<(intermediate_dir)/apk_install.stamp',
},
'sources': [
'<@(native_libs_paths)',
@@ -157,6 +159,28 @@
},
],
}],
+ ['android_managed_install == 1', {
+ 'actions': [
+ {
+ 'action_name': 'apk_install_<(_target_name)',
+ 'message': 'Installing <(apk_name).apk',
+ 'inputs': [
+ '<(DEPTH)/build/android/pylib/build_utils.py',
+ '<(DEPTH)/build/android/apk_install.py',
+ '<(final_apk_path)',
+ ],
+ 'outputs': [
+ '<(apk_install_stamp)'
+ ],
+ 'action': [
+ 'python', '<(DEPTH)/build/android/apk_install.py',
+ '--android-sdk-tools=<(android_sdk_tools)',
+ '--apk-path=<(final_apk_path)',
+ '--stamp=<(apk_install_stamp)'
+ ],
+ },
+ ],
+ }],
],
'actions': [
{
@@ -362,7 +386,7 @@
}],
],
'outputs': [
- '<(PRODUCT_DIR)/apks/<(apk_name).apk',
+ '<(final_apk_path)',
],
'action': [
'ant', '-quiet',
« build/android/apk_install.py ('K') | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698