mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 21:40:36 -04:00
* Updated message definitions.
- only base & peers are vaguely complete, the others are work in progress. - gxs is a crazy idea: to expose the generic gxs interface, so anyone can write an external GXS service. * Added Makefile to generate python and c++ code. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5462 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b67f66faa0
commit
5a1115e6e4
7 changed files with 645 additions and 17 deletions
30
rsctrl/src/Makefile
Normal file
30
rsctrl/src/Makefile
Normal file
|
@ -0,0 +1,30 @@
|
|||
|
||||
EXEC = protoc
|
||||
#PROTO = base.proto files.proto gxs.proto msgs.proto peers.proto system.proto
|
||||
PROTO = base.proto peers.proto
|
||||
|
||||
PROTOPATH = ./definition
|
||||
CDESTPATH = ./gencc
|
||||
#CDESTPATH = ../../retroshare-nogui/src/rpc/proto/gencc
|
||||
PYDESTPATH = ./genpy
|
||||
|
||||
CLIST = $(PROTO:%.proto=%.cc)
|
||||
CCODE = $(patsubst %.proto,$(CDESTPATH)/%.pb.cc, $(PROTO))
|
||||
HCODE = $(patsubst %.proto,$(CDESTPATH)/%.pb.h, $(PROTO))
|
||||
PYCODE = $(patsubst %.proto,$(PYDESTPATH)/%_pb2.py, $(PROTO))
|
||||
|
||||
|
||||
all: allc
|
||||
echo $(CCODE)
|
||||
echo $(PYCODE)
|
||||
|
||||
allc: $(CCODE) $(PYCODE)
|
||||
|
||||
$(CDESTPATH)/%.pb.cc : $(PROTOPATH)/%.proto
|
||||
$(EXEC) --proto_path=$(PROTOPATH) --cpp_out=$(CDESTPATH) $<
|
||||
|
||||
$(PYDESTPATH)/%_pb2.py : $(PROTOPATH)/%.proto
|
||||
$(EXEC) --proto_path=$(PROTOPATH) --python_out=$(PYDESTPATH) $<
|
||||
|
||||
clean:
|
||||
-/bin/rm $(CCODE) $(HCODE) $(PYCODE)
|
Loading…
Add table
Add a link
Reference in a new issue