Index: mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl |
diff --git a/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl b/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..762133b42a63cc756247eb7fe61c78378feae0a2 |
--- /dev/null |
+++ b/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl |
@@ -0,0 +1,16 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+library {{module.name}}; |
+ |
+import 'dart:async'; |
+ |
+// Set package-root to e.g out/Release, or wherever the Dart Mojo bindings live. |
+import 'package:mojo/public/dart/system/lib/core.dart' as core; |
+import 'package:mojo/public/dart/bindings/lib/bindings.dart' as bindings; |
+{%- for import in imports %} |
+import 'package:{{import.module.path}}.mojom.dart' as {{import.unique_name}}; |
+{%- endfor %} |
+ |
+{%- include "module_definition.tmpl" %} |