| Index: mojo/public/tools/bindings/mojom.gni
|
| diff --git a/mojo/public/tools/bindings/mojom.gni b/mojo/public/tools/bindings/mojom.gni
|
| index 5a7932e1974b7fda422addfb69ee2bc89fbe9b63..5d8c1729ec775679354fc45fa8323a8f14f56cd7 100644
|
| --- a/mojo/public/tools/bindings/mojom.gni
|
| +++ b/mojo/public/tools/bindings/mojom.gni
|
| @@ -65,10 +65,16 @@ template("mojom") {
|
| "$generator_root/generators/js_templates/struct_definition.tmpl",
|
| "$generator_root/generators/python_templates/module_macros.tmpl",
|
| "$generator_root/generators/python_templates/module.py.tmpl",
|
| + "$generator_root/generators/dart_templates/module.lib.tmpl",
|
| + "$generator_root/generators/dart_templates/module_definition.tmpl",
|
| + "$generator_root/generators/dart_templates/enum_definition.tmpl",
|
| + "$generator_root/generators/dart_templates/struct_definition.tmpl",
|
| + "$generator_root/generators/dart_templates/interface_definition.tmpl",
|
| "$generator_root/generators/mojom_cpp_generator.py",
|
| "$generator_root/generators/mojom_js_generator.py",
|
| "$generator_root/generators/mojom_java_generator.py",
|
| "$generator_root/generators/mojom_python_generator.py",
|
| + "$generator_root/generators/mojom_dart_generator.py",
|
| "$generator_root/pylib/mojom/__init__.py",
|
| "$generator_root/pylib/mojom/error.py",
|
| "$generator_root/pylib/mojom/generate/__init__.py",
|
| @@ -97,6 +103,9 @@ template("mojom") {
|
| generator_python_outputs = [
|
| "{{source_gen_dir}}/{{source_name_part}}_mojom.py",
|
| ]
|
| + generator_dart_outputs = [
|
| + "{{source_gen_dir}}/{{source_name_part}}.mojom.dart",
|
| + ]
|
|
|
| if (defined(invoker.visibility)) {
|
| # Need to save this because the the target_name is overwritten inside the
|
| @@ -116,7 +125,8 @@ template("mojom") {
|
| outputs = generator_cpp_outputs +
|
| generator_java_outputs +
|
| generator_js_outputs +
|
| - generator_python_outputs
|
| + generator_python_outputs +
|
| + generator_dart_outputs
|
| args = [
|
| "{{source}}",
|
| "--use_chromium_bundled_pylibs",
|
|
|