1234567891011121314151617181920212223242526272829303132333435363738 |
- qtmake="/opt/Qt5.10.1/5.10.1/gcc_64/bin/qmake"
- #qtmake="/opt/Qt5.11.2/5.11.2/gcc_64/bin/qmake"
- show_error=$1
- check_result()
- {
- if [ "$1" != 0 -a "$show_error" == "s" ];then
- echo -e "\e[33m*************************************************\e[0m"
- echo -e "\e[31m Please modify build error first,Exit!\e[0m"
- echo -e "\e[33m*************************************************\e[0m"
- exit 1
- fi
- }
- MAKEOPT=-j8
- mkdir bin
- decition_app_name=(
- decition_brain
- #decition_brain_ge3
- #decition_brain_qingyuan
- #decition_brain_vv7
- )
- for x in ${decition_app_name[@]}
- do
- cd src/decition/${x}/
- $qtmake ${x}.pro
- make $MAKEOPT
- check_result $?
- make clean
- cp ${x} ./../../../bin/
- rm Makefile
- rm .qmake.stash
- rm ${x}
- cd ../../../
- done
|