Index: lib/protobuf/plugin/README |
diff --git a/lib/protobuf/plugin/README b/lib/protobuf/plugin/README |
new file mode 100644 |
index 0000000000000000000000000000000000000000..df5fb37743288b8c6ecdcec4769a24aaa19a509f |
--- /dev/null |
+++ b/lib/protobuf/plugin/README |
@@ -0,0 +1,12 @@ |
+To compile a Protocol Buffer definition (.proto) file using Dart: |
+ |
+1) Place 'protoc' on your path (source code at: http://code.google.com/p/protobuf/) |
+2) Place the 'protoc-gen-dart' script on your path |
+3) Place a standalone 'dart' executable on your path |
+4) Create an output directory 'out' |
+5) Run: |
+ |
+protoc --dart_out=out <proto_file> |
+ |
+For example, 'protoc --dart_out=out descriptor.proto' will create a file out/descriptor.pb.dart |
+that should be identical to the pre-compiled version in protoc/descriptor.pb.dart. |