We have multiple code generation scripts in utils/, mixed with other miscellaneous utilities, as well as a larger code base based on mojom in utils/ipc/. To make code sharing easier between the generator scripts, without creating a mess in the utils/ directory, move all the code generation code to utils/codegen/. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> |
||
---|---|---|
.. | ||
mojom | ||
BUILD.gn | ||
check_stable_mojom_compatibility.py | ||
check_stable_mojom_compatibility_unittest.py | ||
const_unittest.py | ||
enum_unittest.py | ||
feature_unittest.py | ||
mojom_parser.py | ||
mojom_parser_test_case.py | ||
mojom_parser_unittest.py | ||
README.md | ||
stable_attribute_unittest.py | ||
union_unittest.py | ||
version_compatibility_unittest.py |
The Mojom Parser
The Mojom format is an interface definition language (IDL) for describing interprocess communication (IPC) messages and data types for use with the low-level cross-platform Mojo IPC library.
This directory consists of a mojom
Python module, its tests, and supporting
command-line tools. The Python module implements the parser used by the
command-line tools and exposes an API to help external bindings generators emit
useful code from the parser's outputs.
TODO(https://crbug.com/1060464): Fill out this documentation once the library and tools have stabilized.