summaryrefslogtreecommitdiff
path: root/upbc/main.cc
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2018-11-12 21:21:20 -0800
committerJosh Haberman <jhaberman@gmail.com>2018-11-12 21:21:20 -0800
commit5f575995b56f2ae97d3b9f5dc1efef233def7419 (patch)
tree6d3322991947b4847503435a7867fac13b59d5b4 /upbc/main.cc
parentd4e78f9fdff9ad14a0e8e3ad5d7d8379ee2124ef (diff)
Added upb compiler written in C++ as a normal protoc plugin.
Diffstat (limited to 'upbc/main.cc')
-rw-r--r--upbc/main.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/upbc/main.cc b/upbc/main.cc
new file mode 100644
index 0000000..a9682a9
--- /dev/null
+++ b/upbc/main.cc
@@ -0,0 +1,9 @@
+
+#include <google/protobuf/compiler/plugin.h>
+
+#include "upbc/generator.h"
+
+int main(int argc, char** argv) {
+ return google::protobuf::compiler::PluginMain(argc, argv,
+ upbc::GetGenerator().get());
+}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback