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

Unified Diff: mojo/public/tools/BUILD.gn

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/mojo.gni ('k') | mojo/public/tools/download_dart_snapshotter.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/BUILD.gn
diff --git a/mojo/public/tools/BUILD.gn b/mojo/public/tools/BUILD.gn
index 2368ae99aaa477163fb7b918030b377213830137..6959c8a006f4ee0a18ac5d699dc52a1f80cfd43b 100644
--- a/mojo/public/tools/BUILD.gn
+++ b/mojo/public/tools/BUILD.gn
@@ -28,6 +28,25 @@ if (mojo_use_prebuilt_mojo_shell) {
}
}
+if (mojo_use_prebuilt_dart_snapshotter) {
+ copy("copy_dart_snapshotter") {
+ sources = [
+ "prebuilt/dart_snapshotter/linux-x64/dart_snapshotter",
jamesr 2015/08/14 22:55:02 this doesn't look like the right binary to use whe
zra 2015/08/17 15:06:16 I didn't see a Mac builder for Mojo. Is there one?
jamesr 2015/08/17 17:29:39 There is not, but developing from a Mac host is su
zra 2015/08/17 21:59:18 I've modified here and the upload_binaries.py scri
+ ]
+ if (is_android) {
jamesr 2015/08/14 22:55:01 do you want to test for "is_android" here or "am i
zra 2015/08/17 15:06:16 Right now in this CL, the snapshotter is invoked d
jamesr 2015/08/17 17:29:39 I think at a minimum you shouldn't need to invoke
zra 2015/08/17 21:59:18 Done.
+ toolchain_name = get_label_info(host_toolchain, "name")
+ outputs = [
+ "$root_out_dir/$toolchain_name/dart_snapshotter",
jamesr 2015/08/14 22:55:01 hm, doesn't root_out_dir already contain the curre
zra 2015/08/17 15:06:16 If the current toolchain is the target toolchain,
+ ]
+ } else {
+ assert(is_linux)
+ outputs = [
+ "$root_out_dir/dart_snapshotter",
+ ]
+ }
+ }
+}
+
if (mojo_use_prebuilt_network_service) {
copy("copy_network_service") {
filename = "network_service.mojo"
« no previous file with comments | « mojo/public/mojo.gni ('k') | mojo/public/tools/download_dart_snapshotter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698