|
@@ -25,7 +25,7 @@ echo -e "\e[33m qtmake: $qtmake \e[0m"
|
|
|
show_error=$1
|
|
|
check_result()
|
|
|
{
|
|
|
- if [ "$1" != 0 -a "$show_error" == "s" ];then
|
|
|
+ if [ "$build_result" != 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"
|
|
@@ -33,6 +33,23 @@ check_result()
|
|
|
fi
|
|
|
}
|
|
|
|
|
|
+store_result()
|
|
|
+{
|
|
|
+ if [ "$build_result" != 0 ];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"
|
|
|
+ error_log="$error_log \n `pwd`"
|
|
|
+ fi
|
|
|
+}
|
|
|
+
|
|
|
+show_result()
|
|
|
+{
|
|
|
+ echo -e "\e[33m*************************************************\e[0m"
|
|
|
+ echo -e "\e[31mPlease modify build error first,Exit!\e[0m"
|
|
|
+ echo -e "\e[31m$error_log\e[0m"
|
|
|
+ echo -e "\e[33m*************************************************\e[0m"
|
|
|
+}
|
|
|
MAKEOPT=-j8
|
|
|
|
|
|
mkdir bin
|
|
@@ -44,7 +61,9 @@ cd ../../../
|
|
|
cd src/common/modulecomm/
|
|
|
$qtmake modulecomm.pro
|
|
|
make $MAKEOPT
|
|
|
-check_result $?
|
|
|
+build_result=$?
|
|
|
+check_result $build_result
|
|
|
+store_result
|
|
|
make clean
|
|
|
cp libmodulecomm.so ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -54,7 +73,9 @@ cd ../../../
|
|
|
cd src/common/xmlparam/
|
|
|
$qtmake xmlparam.pro
|
|
|
make $MAKEOPT
|
|
|
-check_result $?
|
|
|
+build_result=$?
|
|
|
+check_result $build_result
|
|
|
+store_result
|
|
|
make clean
|
|
|
cp libxmlparam.so ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -64,7 +85,9 @@ cd ../../../
|
|
|
cd src/common/ndt_cpu/
|
|
|
$qtmake ndt_cpu.pro
|
|
|
make $MAKEOPT
|
|
|
-check_result $?
|
|
|
+build_result=$?
|
|
|
+check_result $build_result
|
|
|
+store_result
|
|
|
make clean
|
|
|
cp libndt_cpu.so ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -74,7 +97,9 @@ cd ../../../
|
|
|
cd src/common/ivlog/
|
|
|
$qtmake ivlog.pro
|
|
|
make $MAKEOPT
|
|
|
-check_result $?
|
|
|
+build_result=$?
|
|
|
+check_result $build_result
|
|
|
+store_result
|
|
|
make clean
|
|
|
cp libivlog.so ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -84,7 +109,9 @@ cd ../../../
|
|
|
cd src/common/ivfault/
|
|
|
$qtmake ivfault.pro
|
|
|
make $MAKEOPT
|
|
|
-check_result $?
|
|
|
+build_result=$?
|
|
|
+check_result $build_result
|
|
|
+store_result
|
|
|
make clean
|
|
|
cp libivfault.so ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -94,7 +121,9 @@ cd ../../../
|
|
|
cd src/common/platformif/
|
|
|
$qtmake platformif.pro
|
|
|
make $MAKEOPT
|
|
|
-check_result $?
|
|
|
+build_result=$?
|
|
|
+check_result $build_result
|
|
|
+store_result
|
|
|
make clean
|
|
|
cp libplatformif.so ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -104,7 +133,9 @@ cd ../../../
|
|
|
cd src/common/ivexit/
|
|
|
$qtmake ivexit.pro
|
|
|
make $MAKEOPT
|
|
|
-check_result $?
|
|
|
+build_result=$?
|
|
|
+check_result $build_result
|
|
|
+store_result
|
|
|
make clean
|
|
|
cp libivexit.so ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -114,7 +145,9 @@ cd ../../../
|
|
|
cd src/common/ivbacktrace/
|
|
|
$qtmake ivbacktrace.pro
|
|
|
make $MAKEOPT
|
|
|
-check_result $?
|
|
|
+build_result=$?
|
|
|
+check_result $build_result
|
|
|
+store_result
|
|
|
make clean
|
|
|
cp libivbacktrace.so ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -124,7 +157,9 @@ cd ../../../
|
|
|
cd src/common/ivchart/
|
|
|
$qtmake ivchart.pro
|
|
|
make $MAKEOPT
|
|
|
-check_result $?
|
|
|
+build_result=$?
|
|
|
+check_result $build_result
|
|
|
+store_result
|
|
|
make clean
|
|
|
cp libivchart.so ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -140,7 +175,9 @@ do
|
|
|
cd src/controller/${x}/
|
|
|
$qtmake ${x}.pro
|
|
|
make $MAKEOPT
|
|
|
- check_result $?
|
|
|
+ build_result=$?
|
|
|
+ check_result $build_result
|
|
|
+ store_result
|
|
|
make clean
|
|
|
cp ${x} ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -148,9 +185,8 @@ do
|
|
|
rm ${x}
|
|
|
cd ../../../
|
|
|
done
|
|
|
-
|
|
|
decition_app_name=(
|
|
|
- decition_brain_sf
|
|
|
+# decition_brain_sf
|
|
|
#decition_brain_ge3
|
|
|
#decition_brain_qingyuan
|
|
|
#decition_brain_vv7
|
|
@@ -161,7 +197,9 @@ do
|
|
|
cd src/decition/${x}/
|
|
|
$qtmake ${x}.pro
|
|
|
make $MAKEOPT
|
|
|
- check_result $?
|
|
|
+ build_result=$?
|
|
|
+ check_result $build_result
|
|
|
+ store_result
|
|
|
make clean
|
|
|
cp ${x} ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -188,7 +226,9 @@ do
|
|
|
cd src/driver/${x}/
|
|
|
$qtmake ${x}.pro
|
|
|
make $MAKEOPT
|
|
|
- check_result $?
|
|
|
+ build_result=$?
|
|
|
+ check_result $build_result
|
|
|
+ store_result
|
|
|
make clean
|
|
|
cp ${x} ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -208,7 +248,9 @@ do
|
|
|
cd src/detection/${x}/
|
|
|
$qtmake ${x}.pro
|
|
|
make $MAKEOPT
|
|
|
- check_result $?
|
|
|
+ build_result=$?
|
|
|
+ check_result $build_result
|
|
|
+ store_result
|
|
|
make clean
|
|
|
cp ${x} ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -227,7 +269,9 @@ do
|
|
|
cd src/fusion/${x}/
|
|
|
$qtmake ${x}.pro
|
|
|
make $MAKEOPT
|
|
|
- check_result $?
|
|
|
+ build_result=$?
|
|
|
+ check_result $build_result
|
|
|
+ store_result
|
|
|
make clean
|
|
|
cp ${x} ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -255,7 +299,9 @@ do
|
|
|
cd src/tool/${x}/
|
|
|
$qtmake ${x}.pro
|
|
|
make $MAKEOPT
|
|
|
- check_result $?
|
|
|
+ build_result=$?
|
|
|
+ check_result $build_result
|
|
|
+ store_result
|
|
|
make clean
|
|
|
cp ${x} ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -273,7 +319,9 @@ do
|
|
|
cd src/ui/${x}/
|
|
|
$qtmake ${x}.pro
|
|
|
make $MAKEOPT
|
|
|
- check_result $?
|
|
|
+ build_result=$?
|
|
|
+ check_result $build_result
|
|
|
+ store_result
|
|
|
make clean
|
|
|
cp ${x} ./../../../bin/
|
|
|
rm Makefile
|
|
@@ -281,4 +329,4 @@ do
|
|
|
rm ${x}
|
|
|
cd ../../../
|
|
|
done
|
|
|
-
|
|
|
+show_result
|