| OLD | NEW |
| (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 ``` | |
| OLD | NEW |