123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- qtmake="/opt/Qt5.10.1/5.10.1/gcc_64/bin/qmake"
- MAKEOPT=-j8
- mkdir bin
- cd src/include/proto
- sh ./protomake.sh
- cd ../../../
- cd src/common/modulecomm/
- $qtmake modulecomm.pro
- make $MAKEOPT
- check_result $?
- make clean
- cp libmodulecomm.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/xmlparam/
- $qtmake xmlparam.pro
- make $MAKEOPT
- check_result $?
- make clean
- cp libxmlparam.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/ivexit/
- $qtmake ivexit.pro
- make $MAKEOPT
- check_result $?
- make clean
- cp libivexit.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/ndt_cpu/
- $qtmake ndt_cpu.pro
- make $MAKEOPT
- check_result $?
- make clean
- cp libndt_cpu.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/ivlog/
- $qtmake ivlog.pro
- make $MAKEOPT
- check_result $?
- make clean
- cp libivlog.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/ivfault/
- $qtmake ivfault.pro
- make $MAKEOPT
- check_result $?
- make clean
- cp libivfault.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/platformif/
- $qtmake platformif.pro
- make $MAKEOPT
- check_result $?
- make clean
- cp libplatformif.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- lib_name=(
- libmodulecomm.so
- libivbacktrace.so
- libndt_cpu.so
- libxmlparam.so
- libivfault.so
- libivlog.so
- libivexit.so
- libplatformif.so
- )
- for x in ${lib_name[@]}
- do
- echo "link lib $x"
- patchelf --set-rpath '$ORIGIN' ./bin/$x
- if [ "$?" != 0 ];then
- echo -e "\e[31m autodeploy.sh: patchelf $EXE faile, Ensure patchelf tool installed\e[0m"
- exit 1
- fi
- done
- cp ./bin/*.so ./deploy/app/lib/
|