| { |
| include: [ |
| "syslog/client.shard.cml", |
| "vulkan/client.shard.cml", |
| ], |
| |
| program: { |
| // The embedder is a ELF binary that runs using the ELF runner. |
| runner: "elf", |
| binary: "bin/embedder", |
| |
| // To run a Flutter app with the embedder, compile the Flutter |
| // app into an asset bundle and put that bundle in this location |
| // in the component's package. |
| args: ["/pkg/data/flutter_assets"], |
| |
| // Required for `std::cout` and `std::cerr` to print to |
| // `ffx log`. |
| forward_stdout_to: "log", |
| forward_stderr_to: "log", |
| |
| // Required for JIT execution. |
| job_policy_ambient_mark_vmo_exec: "true", |
| }, |
| |
| capabilities: [ |
| { |
| protocol: [ |
| // For rendering. |
| "fuchsia.ui.app.ViewProvider", |
| ], |
| }, |
| ], |
| |
| expose: [ |
| { |
| protocol: [ |
| // For rendering. |
| "fuchsia.ui.app.ViewProvider", |
| ], |
| from: "self", |
| to: "parent" |
| }, |
| ], |
| |
| use: [ |
| { |
| protocol: [ |
| // For the Dart VM service. |
| "fuchsia.posix.socket.Provider", |
| ] |
| }, |
| ], |
| } |