Initial project structure with address book example from https://developers.google.com/protocol-buffers/docs/pythontutorial

This commit is contained in:
2015-03-12 15:16:50 +00:00
commit 6f5a1d7f71
9 changed files with 352 additions and 0 deletions

13
Makefile Normal file
View File

@@ -0,0 +1,13 @@
.PHONY = clean
PROTO_DIR = proto
GOOGLE_PROTOBUF_INCLUDES = protobuf\src
PROTO_INCLUDES = -I$(PROTO_DIR) -I$(GOOGLE_PROTOBUF_INCLUDES)
all: addressbook_pb2.py
%_pb2.py: $(PROTO_DIR)\%.proto
protoc --python_out=. $(PROTO_INCLUDES) $<
clean:
rm -rf *_pb2.*