Skip to content

Commit

Permalink
add protobuf generate script
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 11, 2015
1 parent b76ab54 commit 3abd427
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 888 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ TEST_DIR=$(ROOT)/test

.PHONY : all
all:
(cd proto/protobuf && ./gen_protobuf)
@for i in $(LIB_DIR); do \
(cd $$i && make && make install); \
done
@for i in $(TEST_DIR); do \
(cd $$i && make); \
done
(cd lib/tinyxml && make)

.PHONY : clean
clean:
Expand Down
4 changes: 4 additions & 0 deletions proto/protobuf/gen_protobuf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
for i in `ls *.proto`
do
./protoc $i --cpp_out=./
done
Binary file added proto/protobuf/protoc
Binary file not shown.
Loading

0 comments on commit 3abd427

Please sign in to comment.