/pod_plugin

Add-ons for Protocol Buffers, it change proto message to c struct

Primary LanguageC++

pod_plugin

Add-ons for Protocol Buffers, it change proto message to c struct

Clone the repository (including submodules)

 $ git clone https://github.com/snow1313113/pod_plugin.git
 $ cd pod_plugin
 $ git submodule update --init

Build from source

 $ mkdir build
 $ cd build
 $ cmake ../
 $ make

Use the plugin

protoc --proto_path=your path --pod_out=output path --plugin=protoc-gen-pod=pod_plugin proto file

there is some options that can specify c++ standard of gen code use --pod_opt=c++98 or --pod_opt=c++11

Build gtest case

 $ cd pod_plugin/test
 $ mkdir build
 $ cd build
 $ cmake ../
 $ make