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

Side by Side Diff: build/android/pylib/constants.py

Issue 25675010: android: Use a separate SDK for the emulator again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Defines a set of constants shared by test runners and other scripts.""" 5 """Defines a set of constants shared by test runners and other scripts."""
6 6
7 import collections 7 import collections
8 import os 8 import os
9 import subprocess 9 import subprocess
10 import sys 10 import sys
11 11
12 12
13 DIR_SOURCE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), 13 DIR_SOURCE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__),
14 os.pardir, os.pardir, os.pardir)) 14 os.pardir, os.pardir, os.pardir))
15 ISOLATE_DEPS_DIR = os.path.join(DIR_SOURCE_ROOT, 'isolate_deps_dir') 15 ISOLATE_DEPS_DIR = os.path.join(DIR_SOURCE_ROOT, 'isolate_deps_dir')
16 EMULATOR_SDK_ROOT = os.path.abspath(os.path.join(DIR_SOURCE_ROOT, os.pardir,
17 os.pardir))
18 16
19 CHROMIUM_TEST_SHELL_HOST_DRIVEN_DIR = os.path.join( 17 CHROMIUM_TEST_SHELL_HOST_DRIVEN_DIR = os.path.join(
20 DIR_SOURCE_ROOT, 'chrome', 'android') 18 DIR_SOURCE_ROOT, 'chrome', 'android')
21 19
22 20
23 PackageInfo = collections.namedtuple('PackageInfo', 21 PackageInfo = collections.namedtuple('PackageInfo',
24 ['package', 'activity', 'cmdline_file', 'devtools_socket', 22 ['package', 'activity', 'cmdline_file', 'devtools_socket',
25 'test_package']) 23 'test_package'])
26 24
27 PACKAGE_INFO = { 25 PACKAGE_INFO = {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 '/data/data/' + PACKAGE_INFO['chrome'].package + '/files') 111 '/data/data/' + PACKAGE_INFO['chrome'].package + '/files')
114 112
115 SCREENSHOTS_DIR = os.path.join(DIR_SOURCE_ROOT, 'out_screenshots') 113 SCREENSHOTS_DIR = os.path.join(DIR_SOURCE_ROOT, 'out_screenshots')
116 114
117 ANDROID_SDK_VERSION = 18 115 ANDROID_SDK_VERSION = 18
118 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, 116 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT,
119 'third_party/android_tools/sdk') 117 'third_party/android_tools/sdk')
120 ANDROID_NDK_ROOT = os.path.join(DIR_SOURCE_ROOT, 118 ANDROID_NDK_ROOT = os.path.join(DIR_SOURCE_ROOT,
121 'third_party/android_tools/ndk') 119 'third_party/android_tools/ndk')
122 120
121 EMULATOR_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, 'android_emulator_sdk')
122
123 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com' 123 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com'
124 124
125 125
126 def GetBuildType(): 126 def GetBuildType():
127 try: 127 try:
128 return os.environ['BUILDTYPE'] 128 return os.environ['BUILDTYPE']
129 except KeyError: 129 except KeyError:
130 raise Exception('The BUILDTYPE environment variable has not been set') 130 raise Exception('The BUILDTYPE environment variable has not been set')
131 131
132 132
(...skipping 25 matching lines...) Expand all
158 except OSError: 158 except OSError:
159 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' 159 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.'
160 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 160 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
161 161
162 162
163 ADB_PATH = _GetADBPath() 163 ADB_PATH = _GetADBPath()
164 164
165 # Exit codes 165 # Exit codes
166 ERROR_EXIT_CODE = 1 166 ERROR_EXIT_CODE = 1
167 WARNING_EXIT_CODE = 88 167 WARNING_EXIT_CODE = 88
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698