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

Side by Side Diff: mojo/public/dart/mojom/README.md

Issue 1441033002: Move mojo and mojom from mojo/public/dart to mojo/dart/packages (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « mojo/public/dart/mojom/CHANGELOG.md ('k') | mojo/public/dart/mojom/bin/mojom.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 mojom
2 ====
3
4 This package is a placeholder for generated mojom bindings. It contains a script
5 lib/generate.dart.
6
7 This script generates Mojo bindings for a Dart package. Dart packages will be
8 populated according to the DartPackage annotations in .mojom files. Any .mojom
9 files that don't have an annotation will have their bindings generated into a
10 local copy of the 'mojom' package. Annotations specifying the host package will
11 cause generation into the host package's lib/ directory. For every other
12 DartPackage annotation, the bindings will be generated into the named package,
13 either into the global package cache if a package of that name has already been
14 fetched, or into a local directory created under the current package's packages/
15 directory.
16
17 Generated Mojo bindings in other pub packages should be installed into this
18 package by saying the following after `pub get`:
19
20 ```
21 $ dart -p packages packages/mojom/generate.dart
22 ```
23 If desired, additional directories holding .mojom.dart files can be specified;
24 their contents will be installed to this package as well:
25
26 ```
27 $ dart -p packages packages/mojom/generate.dart -a </path/to/mojom/dir>
28 ```
29
30 Full options:
31
32 ```
33 $ dart packages/mojom/generate.dart [-p package-root]
34 [-a additional-dirs]
35 [-m mojo-sdk]
36 [-g] # Generate from .mojom files
37 [-d] # Download from .mojoms files
38 [-i] # Ignore duplicates
39 [-v] # verbose
40 [-f] # Fake (dry) run
41 ```
OLDNEW
« no previous file with comments | « mojo/public/dart/mojom/CHANGELOG.md ('k') | mojo/public/dart/mojom/bin/mojom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698