mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
9ad322d379
- Changed ENUMs to include type in the name. - made non-essential member of ChatMessage optional. - Fixed some incorrect numbering. Enabled chat in core.proto & Makefile. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5507 b45a01b8-16f6-495d-af2f-9b41ad6348cc
32 lines
878 B
Makefile
32 lines
878 B
Makefile
|
|
EXEC = protoc
|
|
#PROTO = core.proto peers.proto system.proto chat.proto files.proto gxs.proto msgs.proto
|
|
PROTO = core.proto peers.proto system.proto chat.proto
|
|
|
|
PROTOPATH = ./definition
|
|
#CDESTPATH = ./gencc
|
|
CDESTPATH = ../../retroshare-nogui/src/rpc/proto/gencc
|
|
#PYDESTPATH = ./genpy
|
|
PYDESTPATH = ../../../../github/pyrs/pyrs/proto
|
|
|
|
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)
|