autodeploy1.sh 1.5 KB

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