autodeploy.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. PRO_DIR=`pwd`
  2. CONFIG_IVSysMan="IVSysMan.xml"
  3. cd ../../
  4. app_name=(
  5. adcndtmultimapping
  6. driver_can_nvidia_agx
  7. driver_lidar_hesaipandar64
  8. driver_map_trace
  9. driver_map_xodrload
  10. driver_gps_hcp2
  11. IVSysMan
  12. ivweb
  13. ivlog_record
  14. pointcloudviewer
  15. view_gps
  16. view_rawcan
  17. detection_radar_delphi_esr
  18. adciv_record
  19. view_pcdmap
  20. view_ivlog
  21. adciv_replay
  22. ivmapmake
  23. ui_ads_hmi
  24. controller_tju_vv7
  25. decition_brain
  26. )
  27. for x in ${app_name[@]}
  28. do
  29. echo "deploy $x"
  30. cp ./bin/${x} ./
  31. ./deploy.sh $x
  32. rm ${x}
  33. done
  34. cp ./thirdpartylib/QtWebApp/lib/*.s* ./bin
  35. patchelf --set-rpath '$ORIGIN' ./bin/libQtWebAppGlobal.so
  36. patchelf --set-rpath '$ORIGIN' ./bin/llibQtWebAppHttpServer.so
  37. cp ./bin/libQtWebApp* ./deploy/app/lib/
  38. lib_name=(
  39. libmodulecomm.so
  40. libndt_cpu.so
  41. libndt_gpu.so
  42. libxmlparam.so
  43. libivfault.so
  44. libivlog.so
  45. libivbacktrace.so
  46. libivexit.so
  47. )
  48. for x in ${lib_name[@]}
  49. do
  50. # echo "link lib $x"
  51. # patchelf --set-rpath '$ORIGIN' ./bin/$x
  52. echo "deploylib $x"
  53. cp ./bin/${x} ./
  54. ./deploylib.sh $x
  55. rm ${x}
  56. done
  57. xlib=`ls ./deploy/app/lib/lib*`
  58. for fileName in $xlib
  59. do
  60. patchelf --set-rpath '$ORIGIN' $fileName
  61. done
  62. echo "creat IVSysMan.xml"
  63. cp ./sh/tju64/xml/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml
  64. #cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml
  65. sed -i "s|xxxxxx|$PRO_DIR/|g" ./deploy/app/IVSysMan.xml
  66. #cp ./bin/*.so ./deploy/app/lib/
  67. cp ./sh/tju64/xml/* ./deploy/app/
  68. echo ""
  69. echo "***************"
  70. echo "*** done! ***"
  71. echo "***************"