patch from Henry Morgan to handle proto files from the .pro file

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6167 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-02-28 22:32:13 +00:00
parent 50c75de73c
commit 7e03ba812d

View File

@ -212,6 +212,15 @@ sshserver {
protorpc { protorpc {
# Proto Services # Proto Services
PROTOS = core.proto peers.proto system.proto chat.proto search.proto files.proto
DESTPATH = rpc/proto/gencc
PROTOPATH = ../../rsctrl/src/definition
CMD =
for(pf, PROTOS):CMD += protoc --cpp_out=$${DESTPATH} --proto_path=./$${PROTOPATH} $${PROTOPATH}/$${pf};
protobuf_gen.commands = $${CMD}
QMAKE_EXTRA_TARGETS += protobuf_gen
PRE_TARGETDEPS += protobuf_gen
HEADERS += rpc/proto/rpcprotopeers.h \ HEADERS += rpc/proto/rpcprotopeers.h \
rpc/proto/rpcprotosystem.h \ rpc/proto/rpcprotosystem.h \
rpc/proto/rpcprotochat.h \ rpc/proto/rpcprotochat.h \