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

Issue 1022703005: Dart: Rebase generated imports from the SDK to the SDK base directory. (Closed)

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

Description

Dart: Rebase generated imports from the SDK to the SDK base directory. BUG= R=tonyg@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/0eb05f655115dc1cb991658b46130539d0f22dc1

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Added comment #

Total comments: 4

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -16 lines) Patch
M mojo/public/interfaces/application/BUILD.gn View 1 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/tools/bindings/generators/mojom_dart_generator.py View 1 2 4 chunks +23 lines, -6 lines 0 comments Download
M mojo/public/tools/bindings/mojom.gni View 1 2 chunks +8 lines, -7 lines 0 comments Download
M mojo/services/accessibility/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/clipboard/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/console/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/content_handler/public/interfaces/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/files/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/geometry/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/gpu/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/http_server/public/interfaces/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/input_events/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/keyboard/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/location/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/native_viewport/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/navigation/public/interfaces/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/network/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/service_registry/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/surfaces/public/interfaces/BUILD.gn View 1 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/services/terminal/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/view_manager/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/window_manager/public/interfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (3 generated)
zra
5 years, 9 months ago (2015-03-25 18:47:08 UTC) #2
tonyg
rs lgtm
5 years, 9 months ago (2015-03-25 19:15:27 UTC) #3
tonyg
Just patched this in to a repo that is trying to consumer mojo and verified ...
5 years, 9 months ago (2015-03-25 19:20:38 UTC) #4
zra
On 2015/03/25 19:20:38, tonyg wrote: > Just patched this in to a repo that is ...
5 years, 9 months ago (2015-03-25 21:23:07 UTC) #5
blundell
On 2015/03/25 21:23:07, zra wrote: > On 2015/03/25 19:20:38, tonyg wrote: > > Just patched ...
5 years, 9 months ago (2015-03-26 15:48:51 UTC) #7
zra
On 2015/03/26 15:48:51, blundell wrote: > Out of curiosity, what's the problem that needs to ...
5 years, 9 months ago (2015-03-26 16:16:40 UTC) #8
zra
PTAL. This change should be sufficient to allow Modular folks to make progress. It is ...
5 years, 9 months ago (2015-03-26 20:49:29 UTC) #10
tonyg
On 2015/03/26 20:49:29, zra wrote: > PTAL. > > This change should be sufficient to ...
5 years, 9 months ago (2015-03-26 21:01:58 UTC) #11
tonyg
lgtm https://codereview.chromium.org/1022703005/diff/40001/mojo/public/tools/bindings/generators/mojom_dart_generator.py File mojo/public/tools/bindings/generators/mojom_dart_generator.py (right): https://codereview.chromium.org/1022703005/diff/40001/mojo/public/tools/bindings/generators/mojom_dart_generator.py#newcode401 mojo/public/tools/bindings/generators/mojom_dart_generator.py:401: (_, _, mojo_root_path) = mojo_root_arg.partition("=") Not sure, but ...
5 years, 9 months ago (2015-03-26 21:06:13 UTC) #12
zra
On 2015/03/26 21:01:58, tonyg wrote: > SDK vs services seems like a dependency that should ...
5 years, 9 months ago (2015-03-26 22:25:18 UTC) #13
tonyg
On 2015/03/26 22:25:18, zra wrote: > On 2015/03/26 21:01:58, tonyg wrote: > > SDK vs ...
5 years, 9 months ago (2015-03-26 22:29:45 UTC) #14
zra
https://codereview.chromium.org/1022703005/diff/40001/mojo/public/tools/bindings/generators/mojom_dart_generator.py File mojo/public/tools/bindings/generators/mojom_dart_generator.py (right): https://codereview.chromium.org/1022703005/diff/40001/mojo/public/tools/bindings/generators/mojom_dart_generator.py#newcode401 mojo/public/tools/bindings/generators/mojom_dart_generator.py:401: (_, _, mojo_root_path) = mojo_root_arg.partition("=") On 2015/03/26 21:06:12, tonyg ...
5 years, 9 months ago (2015-03-26 23:33:21 UTC) #15
tonyg
On 2015/03/26 23:33:21, zra wrote: > https://codereview.chromium.org/1022703005/diff/40001/mojo/public/tools/bindings/generators/mojom_dart_generator.py > File mojo/public/tools/bindings/generators/mojom_dart_generator.py (right): > > https://codereview.chromium.org/1022703005/diff/40001/mojo/public/tools/bindings/generators/mojom_dart_generator.py#newcode401 > ...
5 years, 9 months ago (2015-03-27 00:17:20 UTC) #16
zra
Committed patchset #4 (id:60001) manually as 0eb05f655115dc1cb991658b46130539d0f22dc1 (presubmit successful).
5 years, 9 months ago (2015-03-27 02:39:52 UTC) #17
blundell
On 2015/03/26 22:25:18, zra wrote: > On 2015/03/26 21:01:58, tonyg wrote: > > SDK vs ...
5 years, 9 months ago (2015-03-27 11:06:00 UTC) #18
tonyg
5 years, 9 months ago (2015-03-27 15:19:50 UTC) #19
Message was sent while issue was closed.
This worked beautifully! Thanks for pushing on it.

The biggest hack we have left to get the same files running in both a sky
environment and mojo environment is this:

  # Create a packages directory and populate with links to src/out/Debug/gen/*
  # so that Sky applications can import our .mojom.dart files. Yes Virginia,
  # this is a hack.
  os.mkdir(args.packages_root)
  gen_dir = os.path.join(args.our_out_dir, 'gen')
  for f in os.listdir(gen_dir):
    ensure_link(os.path.join(gen_dir, f), os.path.join(args.packages_root, f))

Powered by Google App Engine
This is Rietveld 408576698