12345678910111213141516171819202122232425262728293031323334353637383940 |
- qtmake="/usr/lib/aarch64-linux-gnu/qt5/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
-
-
-
- )
- 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
|