Skip to content

Commit

Permalink
support parallel make
Browse files Browse the repository at this point in the history
  • Loading branch information
yuansx committed Dec 9, 2018
1 parent 92ac82e commit 04eec0d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ macro(complice_module MODULE)

add_executable(${MODULE} ${DIR_SRCS})
add_dependencies(${MODULE} FRAMEWORK-PROTOCOL)
add_dependencies(${MODULE} tars2cpp)

endmacro()

Expand Down
13 changes: 13 additions & 0 deletions build/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
The scripts of buiding Tars framework project

If you need multi-threaded compilation, you need to make the following modifications:
before modify
```
all)
cd $BASEPATH; cmake ..; make
```
after:
```
all)
cd $BASEPATH; cmake ..; make -j 4
```


download all associated projects firstly
```
build.sh prepare
Expand Down
3 changes: 2 additions & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ case $ARGS in
cd ..; git submodule update --init --recursive
;;
all)
cd $BASEPATH; cmake ..; make
cd $BASEPATH; cmake ..; make
;;
cleanall)
cd $BASEPATH; make clean; ls | grep -v build.sh | grep -v README.md | xargs rm -rf
Expand All @@ -24,6 +24,7 @@ case $ARGS in
help|*)
echo "Usage:"
echo "$0 help: view help info."
echo "$0 prepare: download dependent project."
echo "$0 all: build all target"
echo "$0 install: install framework"
echo "$0 cleanall: remove all temp file"
Expand Down
2 changes: 1 addition & 1 deletion tarscpp

0 comments on commit 04eec0d

Please sign in to comment.