Index: mojo/tools/mopy/paths.py |
diff --git a/mojo/tools/mopy/paths.py b/mojo/tools/mopy/paths.py |
index 2ba8ec831e6d99d6d80931789cd40ce2eac1e1de..deb30f4cf556c16ad5ca4abd3ade062dbfd87873 100644 |
--- a/mojo/tools/mopy/paths.py |
+++ b/mojo/tools/mopy/paths.py |
@@ -28,6 +28,8 @@ class Paths(object): |
if self.build_dir is not None: |
self.mojo_shell_path = os.path.join(self.build_dir, "mojo_shell") |
+ self.dart_snapshotter_path = os.path.join( |
+ self.build_dir, "dart_snapshotter") |
self.sky_shell_path = os.path.join(self.build_dir, "sky_shell") |
# TODO(vtl): Use the host OS here, since |config| may not be available. |
# In any case, if the target is Windows, but the host isn't, using |
@@ -35,20 +37,27 @@ class Paths(object): |
if Config.GetHostOS() == Config.OS_WINDOWS: |
self.mojo_shell_path += ".exe" |
self.sky_shell_path += ".exe" |
+ self.dart_snapshotter_path += ".exe" |
if config and config.target_os == Config.OS_ANDROID: |
self.target_mojo_shell_path = os.path.join(self.build_dir, |
"apks", |
"MojoShell.apk") |
+ # dart_snapshotter only runs on the host platform. There is no build to |
+ # run on Android. |
+ self.target_dart_snapshotter_path = None |
self.target_sky_shell_path = os.path.join(self.build_dir, |
"apks", |
"SkyDemo.apk") |
else: |
self.target_mojo_shell_path = self.mojo_shell_path |
+ self.target_dart_snapshotter_path = self.dart_snapshotter_path |
self.target_sky_shell_path = self.sky_shell_path |
else: |
self.mojo_shell_path = None |
+ self.dart_snapshotter_path = None |
self.sky_shell_path = None |
self.target_mojo_shell_path = None |
+ self.target_dart_snapshotter_path = None |
self.target_sky_shell_path = None |
def RelPath(self, path): |