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

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

Issue 23513022: android: Point EMULATOR_SDK_ROOT to a location inside the repository. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch v3: get rid of EMULATOR_SDK_ROOT altogether Created 7 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 | 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 # TODO(craigdh): Remove these once references have been removed downstream. 17 # TODO(craigdh): Remove these once references have been removed downstream.
20 CHROME_PACKAGE = 'com.google.android.apps.chrome' 18 CHROME_PACKAGE = 'com.google.android.apps.chrome'
21 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main' 19 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main'
22 20
23 CHROME_STABLE_PACKAGE = 'com.android.chrome' 21 CHROME_STABLE_PACKAGE = 'com.android.chrome'
24 CHROME_BETA_PACKAGE = 'com.chrome.beta' 22 CHROME_BETA_PACKAGE = 'com.chrome.beta'
25 23
26 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser' 24 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser'
27 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity' 25 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity'
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 except OSError: 154 except OSError:
157 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' 155 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.'
158 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 156 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
159 157
160 158
161 ADB_PATH = _GetADBPath() 159 ADB_PATH = _GetADBPath()
162 160
163 # Exit codes 161 # Exit codes
164 ERROR_EXIT_CODE = 1 162 ERROR_EXIT_CODE = 1
165 WARNING_EXIT_CODE = 88 163 WARNING_EXIT_CODE = 88
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698