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

Issue 1273743005: Dart: Adds a program to create snapshots of Mojo apps. (Closed)

Created:
5 years, 4 months ago by zra
Modified:
5 years, 4 months ago
Reviewers:
jamesr, Cutch
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, darin (slow to review), gregsimon, mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : Address comments #

Patch Set 5 : Fix asan build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+485 lines, -6 lines) Patch
M .gitignore View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M examples/dart/hello_world/hello/BUILD.gn View 1 2 chunks +19 lines, -1 line 0 comments Download
A + examples/dart/hello_world/hello/pubspec.lock View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A examples/dart/hello_world/hello/pubspec.yaml View 1 1 chunk +1 line, -0 lines 0 comments Download
M examples/dart/hello_world/world/BUILD.gn View 1 2 chunks +8 lines, -1 line 0 comments Download
M mojo/BUILD.gn View 1 chunk +1 line, -5 lines 0 comments Download
A mojo/dart/BUILD.gn View 1 chunk +13 lines, -0 lines 0 comments Download
A mojo/dart/dart_snapshotter/BUILD.gn View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
A mojo/dart/dart_snapshotter/loader.h View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A mojo/dart/dart_snapshotter/loader.cc View 1 2 3 1 chunk +133 lines, -0 lines 0 comments Download
A mojo/dart/dart_snapshotter/main.cc View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
A mojo/dart/dart_snapshotter/test/dart_snapshotter_test.py View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
A mojo/dart/dart_snapshotter/vm.h View 1 1 chunk +46 lines, -0 lines 0 comments Download
A mojo/dart/dart_snapshotter/vm.cc View 1 1 chunk +42 lines, -0 lines 0 comments Download
M mojo/dart/embedder/BUILD.gn View 1 chunk +10 lines, -0 lines 0 comments Download
M mojo/tools/get_test_list.py View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
zra
This imports and adapts Sky's snapshotting program.
5 years, 4 months ago (2015-08-10 20:23:29 UTC) #2
Cutch
https://codereview.chromium.org/1273743005/diff/1/examples/dart/hello_world/hello/pubspec.yaml File examples/dart/hello_world/hello/pubspec.yaml (right): https://codereview.chromium.org/1273743005/diff/1/examples/dart/hello_world/hello/pubspec.yaml#newcode1 examples/dart/hello_world/hello/pubspec.yaml:1: name: hello Should we give these packages a prefix ...
5 years, 4 months ago (2015-08-10 20:45:02 UTC) #3
zra
https://codereview.chromium.org/1273743005/diff/1/examples/dart/hello_world/hello/pubspec.yaml File examples/dart/hello_world/hello/pubspec.yaml (right): https://codereview.chromium.org/1273743005/diff/1/examples/dart/hello_world/hello/pubspec.yaml#newcode1 examples/dart/hello_world/hello/pubspec.yaml:1: name: hello On 2015/08/10 20:45:02, Cutch wrote: > Should ...
5 years, 4 months ago (2015-08-10 22:59:22 UTC) #4
Cutch
https://codereview.chromium.org/1273743005/diff/20002/examples/dart/hello_world/hello/BUILD.gn File examples/dart/hello_world/hello/BUILD.gn (right): https://codereview.chromium.org/1273743005/diff/20002/examples/dart/hello_world/hello/BUILD.gn#newcode18 examples/dart/hello_world/hello/BUILD.gn:18: entrypoints = [ "main.dart" ] I don't see how ...
5 years, 4 months ago (2015-08-11 14:18:06 UTC) #5
zra
https://codereview.chromium.org/1273743005/diff/20002/examples/dart/hello_world/hello/BUILD.gn File examples/dart/hello_world/hello/BUILD.gn (right): https://codereview.chromium.org/1273743005/diff/20002/examples/dart/hello_world/hello/BUILD.gn#newcode18 examples/dart/hello_world/hello/BUILD.gn:18: entrypoints = [ "main.dart" ] On 2015/08/11 14:18:06, Cutch ...
5 years, 4 months ago (2015-08-11 17:03:22 UTC) #6
Cutch
lgtm
5 years, 4 months ago (2015-08-11 17:06:36 UTC) #7
zra
Committed patchset #5 (id:50017) manually as 3da94c7529a35c612adc1695c728be7a5b6f260e (presubmit successful).
5 years, 4 months ago (2015-08-11 17:27:00 UTC) #8
jamesr
5 years, 4 months ago (2015-08-17 20:44:52 UTC) #10
Message was sent while issue was closed.
ToT GN is unhappy about the dependencies on dart_snapshotter:

Running gn 'gen' '--check' 'out/android_Debug' '--args=is_clang=false
use_goma=true target_cpu="arm" dcheck_always_on=false
go_build_tool="/ssd/mojo/src/third_party/go/tool/android_arm/bin/go"
is_asan=false is_debug=true goma_dir="/usr/local/google/home/jamesr/goma"
is_official_build=false mojo_use_go=true target_os="android"' ...
ERROR Input to targets not generated by a dependency.
The file:
  //out/android_Debug/clang_x64/dart_snapshotter
is listed as an input or source for the targets:
 
//examples/dart/hello_world/world:gen_mojo_dart_world_pkg_main_dartx_snapshot(//build/toolchain/android:arm)
 
//examples/dart/hello_world/hello:gen_mojo_dart_hello_pkg_main_dartx_snapshot(//build/toolchain/android:arm)
......

but this file was not generated by any dependencies of the targets. The target
that generates the file is:
 
//mojo/dart/dart_snapshotter:dart_snapshotter(//build/toolchain/linux:clang_x64)

If you have generated inputs, there needs to be a dependency path between the
two targets in addition to just listing the files. For indirect dependencies,
the intermediate ones must be public_deps. data_deps don't count since they're
only runtime dependencies. If you think a dependency chain exists, it might be
because the chain is private. Try "gn path" to analyze.

Not sure how to resolve this in an SDK-clean fashion

Powered by Google App Engine
This is Rietveld 408576698