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

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

Issue 1416703003: [Android] Add a configurable environment for devil/. (RELAND 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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/create_device_library_links.py ('k') | build/android/gyp/push_libraries.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/get_device_configuration.py
diff --git a/build/android/gyp/get_device_configuration.py b/build/android/gyp/get_device_configuration.py
index 390eb2ffcb855817a8a8fe91a40f4f22f31a1c4f..0ec08ef95d6c0ea0b7cce3c89b63ded5415fd9ae 100755
--- a/build/android/gyp/get_device_configuration.py
+++ b/build/android/gyp/get_device_configuration.py
@@ -11,18 +11,29 @@ install to and what needs to be installed to those devices.
"""
import optparse
+import os
import sys
-from util import build_utils
from util import build_device
+from util import build_utils
+
+BUILD_ANDROID_DIR = os.path.abspath(
+ os.path.join(os.path.dirname(__file__), '..'))
+sys.path.append(BUILD_ANDROID_DIR)
+
+import devil_chromium
def main(argv):
parser = optparse.OptionParser()
parser.add_option('--stamp', action='store')
parser.add_option('--output', action='store')
+ parser.add_option('--output-directory', action='store')
options, _ = parser.parse_args(argv)
+ devil_chromium.Initialize(
+ output_directory=os.path.abspath(options.output_directory))
+
devices = build_device.GetAttachedDevices()
device_configurations = []
« no previous file with comments | « build/android/gyp/create_device_library_links.py ('k') | build/android/gyp/push_libraries.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698