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

Side by Side Diff: build/android/devil/env/android_sdk_config.py

Issue 1316413003: [Android] Add a configurable environment for devil/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import os
6
7 from devil.env import env_config
8
9 DEFAULT_BUILD_TOOLS_VERSION = '23.0.0'
10 DEVIL_ANDROID_SDK_ROOT = 'DEVIL_ANDROID_SDK_ROOT'
perezju 2015/09/10 09:45:48 nit: it's not clear from the name if this is the _
jbudorick 2015/09/12 02:31:04 obsolete
11
12
13 class AndroidSdkConfig(env_config.EnvConfig):
14
15 @property
16 def root_path(self):
17 return (self._configured.get('root_path')
aiolos (Not reviewing) 2015/09/10 12:25:50 You could use the dependency_manager instead. You
jbudorick 2015/09/12 02:31:05 Done, and the current dependency on telemetry/cata
18 or os.environ.get(DEVIL_ANDROID_SDK_ROOT))
mikecase (-- gone --) 2015/09/10 00:54:16 I think this could be a little confusing since the
perezju 2015/09/10 09:45:48 +1 to raising an exception. Either that or providi
jbudorick 2015/09/12 02:31:05 need to verify how the new dependency_manager impl
19
20 @property
21 def adb_path(self):
22 return (self._configured.get('adb_path')
23 or os.path.join(self.root_path, 'platform-tools', 'adb'))
24
25 @property
26 def build_tools_path(self):
27 return os.path.join(
28 self.root_path, 'build-tools',
29 self._configured.get('build_tools_version',
30 DEFAULT_BUILD_TOOLS_VERSION))
31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698