tree: cc8c0b4c70b0c2f50cb0ce985734286822541209 [path history] [tgz]
  1. BUILD.gn
  2. merge.py
  3. README.md
  4. sdk_ir.py
tools/fidl/platform-ir/README.md

Platform IR

This is a tool to combine the FIDL JSON IR from multiple different library IRs into a single one. This is most useful for capturing a whole Fuchsia platform's IR in a single file.

The JSON that this tool produces differs from the IR produced by fidlc, consumed by fidlgens and defined in tools/fidlc/schema.json. It omits the name and maybe_attributes at the top-level since these are per-library. It omits library_dependencies since this IR must not have any external dependencies and declaration_order because it‘s more trouble than it’s worth.

It‘s an error for the tool to receive more than one input with the same library defined (ie: duplicate top-level name). It’s an error for inputs to have different experiments enabled. All referenced declarations must be provided.