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

Issue 990493002: Make package: work like Dart expects in preparation for a Sky SDK (Closed)

Created:
5 years, 9 months ago by eseidel
Modified:
5 years, 9 months ago
Reviewers:
abarth-chromium
CC:
abarth-chromium, mojo-reviews_chromium.org, ojan, qsr+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Currently we use package: to mean "/gen", which is not at all how Dart actually expects package: to work. This CL makes package:foo map to /packages/foo, similar to how Dartium or bin/dart would expect. This also means overlaying the /gen directory over the actual package outputs (as consumers of an SDK would expect) as well as adding an additional /lib indirection for the actual package source as the Dart pub tool will expect. This is far from perfect, but it unlocks us actually producing a sky SDK. I expect there may be some fallout from this change as I'm sure I missed some package: uses. We also don't have a general solution for all /foo/bar/baz includes which randomly included parts of mojo's source directory. Those will need to be updated to use a package: and deploy_sdk.py taught how to build a package for them. R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/17265472fbfb9a75d1c4281f10d991744a642a2e

Patch Set 1 #

Patch Set 2 : Works #

Total comments: 5

Patch Set 3 : Works #

Patch Set 4 : Made deploy_sdk 100x faster in the --dev-environment case #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -38 lines) Patch
M examples/browser/browser.sky View 1 1 chunk +4 lines, -4 lines 0 comments Download
M examples/location/location.sky View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/tools/mojo_demo.py View 1 2 3 1 chunk +14 lines, -1 line 1 comment Download
M sky/SDK.md View 1 1 chunk +23 lines, -16 lines 0 comments Download
M sky/engine/core/script/dart_loader.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sky/framework/components/icon.dart View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M sky/framework/debug/shake-to-reload.sky View 1 1 chunk +1 line, -1 line 0 comments Download
M sky/framework/embedder.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sky/framework/shell.dart View 1 1 chunk +1 line, -1 line 0 comments Download
A sky/sdk/README.md View 1 2 1 chunk +7 lines, -0 lines 1 comment Download
M sky/tests/resources/event-sender.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sky/tests/services/event-sender.sky View 1 1 chunk +1 line, -1 line 0 comments Download
M sky/tests/services/iframe-embed-vmc.sky View 1 1 chunk +5 lines, -2 lines 0 comments Download
A sky/tools/deploy_sdk.py View 1 2 3 1 chunk +205 lines, -0 lines 0 comments Download
M sky/tools/skydb View 1 2 3 2 chunks +14 lines, -4 lines 0 comments Download
M sky/tools/skygo/sky_server.go View 1 2 chunks +5 lines, -1 line 0 comments Download
M sky/tools/skygo/sky_server.sha1 View 1 1 chunk +1 line, -1 line 0 comments Download
M sky/tools/skypy/skyserver.py View 1 2 chunks +3 lines, -1 line 0 comments Download
M sky/tools/webkitpy/layout_tests/port/base.py View 1 2 3 3 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
eseidel
5 years, 9 months ago (2015-03-06 23:29:53 UTC) #1
abarth-chromium
https://codereview.chromium.org/990493002/diff/20001/sky/engine/core/script/dart_loader.cc File sky/engine/core/script/dart_loader.cc (right): https://codereview.chromium.org/990493002/diff/20001/sky/engine/core/script/dart_loader.cc#newcode29 sky/engine/core/script/dart_loader.cc:29: String original = string; Remove? https://codereview.chromium.org/990493002/diff/20001/sky/sdk/tools/download_material_design_icons File sky/sdk/tools/download_material_design_icons (right): ...
5 years, 9 months ago (2015-03-13 20:38:03 UTC) #3
eseidel
ptal
5 years, 9 months ago (2015-03-13 23:34:54 UTC) #4
abarth-chromium
lgtm https://codereview.chromium.org/990493002/diff/60001/mojo/tools/mojo_demo.py File mojo/tools/mojo_demo.py (right): https://codereview.chromium.org/990493002/diff/60001/mojo/tools/mojo_demo.py#newcode47 mojo/tools/mojo_demo.py:47: '--force', --non-interactive ? https://codereview.chromium.org/990493002/diff/60001/sky/sdk/README.md File sky/sdk/README.md (right): https://codereview.chromium.org/990493002/diff/60001/sky/sdk/README.md#newcode1 ...
5 years, 9 months ago (2015-03-13 23:55:09 UTC) #5
eseidel
5 years, 9 months ago (2015-03-13 23:58:57 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
17265472fbfb9a75d1c4281f10d991744a642a2e.

Powered by Google App Engine
This is Rietveld 408576698