Welcome to mirror list, hosted at ThFree Co, Russian Federation.

protoc-gen-nanopb « generator - github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 20a36c79ae3d6333c5749ab991d3805b56979566 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python3
# This file is used to invoke nanopb_generator.py as a plugin
# to protoc on Linux and other *nix-style systems.
# Use it like this:
# protoc --plugin=protoc-gen-nanopb=..../protoc-gen-nanopb --nanopb_out=dir foo.proto

from nanopb_generator import *

if __name__ == '__main__':
    # Assume we are running as a plugin under protoc.
    main_plugin()