Index: mojo/public/tools/bindings/generators/mojom_dart_generator.py |
diff --git a/mojo/public/tools/bindings/generators/mojom_dart_generator.py b/mojo/public/tools/bindings/generators/mojom_dart_generator.py |
index 90cd158611a2689a7e37536da3bf416ef58477f2..11e300cfadf99734e698ab6fe4e19eb2c3937a36 100644 |
--- a/mojo/public/tools/bindings/generators/mojom_dart_generator.py |
+++ b/mojo/public/tools/bindings/generators/mojom_dart_generator.py |
@@ -401,10 +401,13 @@ class Generator(generator.Generator): |
def GenerateLibModule(self, args): |
return self.GetParameters(args) |
+ |
def GenerateFiles(self, args): |
elements = self.module.namespace.split('.') |
elements.append("%s.dart" % self.module.name) |
- path = os.path.join("dart-gen", "mojom", *elements) |
+ path = os.path.join("dart-pkg", "mojom/lib", *elements) |
+ self.Write(self.GenerateLibModule(args), path) |
+ path = os.path.join("dart-gen", "mojom/lib", *elements) |
self.Write(self.GenerateLibModule(args), path) |
link = self.MatchMojomFilePath("%s.dart" % self.module.name) |
if os.path.exists(os.path.join(self.output_dir, link)): |