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

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

Issue 1399273002: [Android] Add a configurable environment for devil/. (RELAND) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed: more non-default directory handling, especially for gyp_managed_install Created 5 years, 2 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
Index: build/android/gyp/apk_install.py
diff --git a/build/android/gyp/apk_install.py b/build/android/gyp/apk_install.py
index 33697cace69c9e9341572fa7f69242c6585fac5c..c7b2c61939a9ea568ae26956b738323525b356af 100755
--- a/build/android/gyp/apk_install.py
+++ b/build/android/gyp/apk_install.py
@@ -20,6 +20,7 @@ from util import md5_check
BUILD_ANDROID_DIR = os.path.join(os.path.dirname(__file__), '..')
sys.path.append(BUILD_ANDROID_DIR)
+import devil_chromium
from devil.android import apk_helper
from pylib import constants
@@ -74,15 +75,20 @@ def main():
help='Path to touch on success.')
parser.add_option('--configuration-name',
help='The build CONFIGURATION_NAME')
+ parser.add_option('--output-directory',
+ help='The output directory.')
options, _ = parser.parse_args()
+ constants.SetBuildType(options.configuration_name)
+
+ devil_chromium.Initialize(
+ output_directory=os.path.abspath(options.output_directory))
+
device = build_device.GetBuildDeviceFromPath(
options.build_device_configuration)
if not device:
return
- constants.SetBuildType(options.configuration_name)
-
serial_number = device.GetSerialNumber()
apk_package = apk_helper.GetPackageName(options.apk_path)

Powered by Google App Engine
This is Rietveld 408576698