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

Unified Diff: build/android/emulator.py

Issue 10690157: add abi support for emulator.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix according to bulach's comments Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/emulator.py
diff --git a/build/android/emulator.py b/build/android/emulator.py
index 6b53416e8e5df2a825a79cc97cbd347b09f093de..7c3f66887abeafe62c9dfd41d832e10f818cd9e1 100755
--- a/build/android/emulator.py
+++ b/build/android/emulator.py
@@ -148,6 +148,9 @@ class Emulator(object):
if not self.fast_and_loose:
self._AggressiveImageCleanup()
(self.device, port) = self._DeviceName()
+ abi = 'armeabi'
+ if 'x86' in os.environ.get('TARGET_PRODUCT', ''):
+ abi = 'x86'
emulator_command = [
self.emulator,
# Speed up emulator launch by 40%. Really.
@@ -156,7 +159,7 @@ class Emulator(object):
# That's not enough for 8 unit test bundles and their data.
'-partition-size', '512',
# Use a familiar name and port.
- '-avd', 'avd_armeabi',
+ '-avd', 'avd_' + abi,
'-port', str(port)]
if not self.fast_and_loose:
emulator_command.extend([
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698