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..780f8fffe6e88f2a3a41825248d691a675a5e48e 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.apend(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 = [] |