autogen_cross.sh 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. controller_app_name=(
  52. controller_ge3
  53. )
  54. for x in ${controller_app_name[@]}
  55. do
  56. cd src/controller/${x}/
  57. $qtmake ${x}.pro
  58. ./../../../sedrp.sh Makefile
  59. ./../../../addboost.sh Makefile
  60. make $MAKEOPT
  61. make clean
  62. cp ${x} ./../../../bin/
  63. rm Makefile
  64. rm .qmake.stash
  65. rm ${x}
  66. cd ../../../
  67. done
  68. decition_app_name=(
  69. decition_brain_ge3
  70. )
  71. for x in ${decition_app_name[@]}
  72. do
  73. cd src/decition/${x}/
  74. $qtmake ${x}.pro
  75. ./../../../sedrp.sh Makefile
  76. ./../../../addboost.sh Makefile
  77. make $MAKEOPT
  78. make clean
  79. cp ${x} ./../../../bin/
  80. rm Makefile
  81. rm .qmake.stash
  82. rm ${x}
  83. cd ../../../
  84. done
  85. driver_app_name=(
  86. driver_can_nvidia_agx
  87. driver_map_trace
  88. )
  89. for x in ${driver_app_name[@]}
  90. do
  91. cd src/driver/${x}/
  92. $qtmake ${x}.pro
  93. ./../../../sedrp.sh Makefile
  94. ./../../../addboost.sh Makefile
  95. make $MAKEOPT
  96. make clean
  97. cp ${x} ./../../../bin/
  98. rm Makefile
  99. rm .qmake.stash
  100. rm ${x}
  101. cd ../../../
  102. done
  103. detect_app_name=(
  104. detection_radar_conti_sr308
  105. )
  106. for x in ${detect_app_name[@]}
  107. do
  108. cd src/detection/${x}/
  109. $qtmake ${x}.pro
  110. ./../../../sedrp.sh Makefile
  111. make $MAKEOPT
  112. make clean
  113. cp ${x} ./../../../bin/
  114. rm Makefile
  115. rm .qmake.stash
  116. rm ${x}
  117. cd ../../../
  118. done
  119. tool_app_name=(
  120. ivlog_record
  121. testcross1
  122. testcross2
  123. testcrossyaml
  124. )
  125. for x in ${tool_app_name[@]}
  126. do
  127. cd src/tool/${x}/
  128. $qtmake ${x}.pro
  129. ./../../../sedrp.sh Makefile
  130. make $MAKEOPT
  131. make clean
  132. cp ${x} ./../../../bin/
  133. rm Makefile
  134. rm .qmake.stash
  135. rm ${x}
  136. cd ../../../
  137. done