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

Unified Diff: mojo/tools/mopy/paths.py

Issue 1300463002: Upload/Download dart_snapshotter (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 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 | « mojo/public/tools/download_dart_snapshotter.py ('k') | mojo/tools/upload_binaries.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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):
« no previous file with comments | « mojo/public/tools/download_dart_snapshotter.py ('k') | mojo/tools/upload_binaries.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698