autogen_cross_lib.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. qtmake="/opt/qt/5.10.1/gcc_64/bin/qmake"
  2. MAKEOPT=-j8
  3. cd src/include/proto
  4. ./protomake.sh
  5. cd ../../../
  6. cd src/common/modulecomm/
  7. $qtmake modulecomm.pro
  8. ./sedrp.sh Makefile
  9. make $MAKEOPT
  10. make clean
  11. cp libmodulecomm.so ./../../../bin/
  12. rm Makefile
  13. rm .qmake.stash
  14. cd ../../../
  15. cd src/common/xmlparam/
  16. $qtmake xmlparam.pro
  17. ./sedrp.sh Makefile
  18. make $MAKEOPT
  19. make clean
  20. cp libxmlparam.so ./../../../bin/
  21. rm Makefile
  22. rm .qmake.stash
  23. cd ../../../
  24. cd src/common/ivlog/
  25. $qtmake ivlog.pro
  26. ./sedrp.sh Makefile
  27. make $MAKEOPT
  28. make clean
  29. cp libivlog.so ./../../../bin/
  30. rm Makefile
  31. rm .qmake.stash
  32. cd ../../../
  33. cd src/common/ivfault/
  34. $qtmake ivfault.pro
  35. ./sedrp.sh Makefile
  36. make $MAKEOPT
  37. make clean
  38. cp libivfault.so ./../../../bin/
  39. rm Makefile
  40. rm .qmake.stash
  41. cd ../../../
  42. cd src/common/platformif/
  43. $qtmake platformif.pro
  44. ./sedrp.sh Makefile
  45. make $MAKEOPT
  46. make clean
  47. cp libplatformif.so ./../../../bin/
  48. rm Makefile
  49. rm .qmake.stash
  50. cd ../../../
  51. tool_app_name=(
  52. ivlog_record
  53. )
  54. for x in ${tool_app_name[@]}
  55. do
  56. cd src/tool/${x}/
  57. $qtmake ${x}.pro
  58. ./sedrp.sh Makefile
  59. make $MAKEOPT
  60. make clean
  61. cp ${x} ./../../../bin/
  62. rm Makefile
  63. rm .qmake.stash
  64. rm ${x}
  65. cd ../../../
  66. done