modulecommrust.pro 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. QT -= gui
  2. #QT += dbus
  3. QT += xml
  4. TEMPLATE = lib
  5. DEFINES += MODULECOMM_LIBRARY
  6. unix:DEFINES += RUNSYSTEMTEST
  7. if(contains(DEFINES,RUNSYSTEMTEST)){
  8. unix:system("./../../../include/linuxsystemtest.sh ")
  9. }
  10. unix:include(./../../../include/systemdef.pri)
  11. win32: DEFINES += SYSTEM_WIN
  12. DEFINES += MODULECOMM_NO_FASTRTPS
  13. DEFINES += USE_GROUPUDP
  14. if(contains(DEFINES,USE_GROUPUDP)){
  15. QT += network
  16. } else {
  17. QT += dbus
  18. DEFINES += USEDBUS
  19. }
  20. QMAKE_CXXFLAGS += -g
  21. CONFIG += c++11
  22. # The following define makes your compiler emit warnings if you use
  23. # any Qt feature that has been marked deprecated (the exact warnings
  24. # depend on your compiler). Please consult the documentation of the
  25. # deprecated API in order to know how to port your code away from it.
  26. DEFINES += QT_DEPRECATED_WARNINGS
  27. # You can also make your code fail to compile if it uses deprecated APIs.
  28. # In order to do so, uncomment the following line.
  29. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  30. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  31. SOURCES += \
  32. modulecomm.cpp \
  33. modulecomm_base.cpp \
  34. modulecommrust.cpp
  35. HEADERS += \
  36. ivmodulemsg_type.h \
  37. modulecomm.h \
  38. modulecomm_base.h \
  39. ivstdcolorout.h \
  40. modulecommrust.h
  41. CONFIG += plugin
  42. # Default rules for deployment.
  43. unix {
  44. target.path = /usr/lib
  45. }
  46. !isEmpty(target.path): INSTALLS += target
  47. !include(./shm/modulecomm_shm.pri ) {
  48. error( "Couldn't find the modulecomm_shm.pri file!" )
  49. }
  50. !include(./inter/modulecomm_inter.pri ) {
  51. error( "Couldn't find the modulecomm_inter.pri file!" )
  52. }
  53. if(contains(DEFINES,MODULECOMM_NO_FASTRTPS)){
  54. DEFINES += NOT_USEFASTRTPS
  55. }else{
  56. if(contains(DEFINES,SYSTEM_AGX)){
  57. DEFINES += USE_FASTRTPS
  58. LIBS += -L$$PWD/../../../thirdpartylib/FastRTPS/lib/libarm64
  59. system("cd ./../../../thirdpartylib/FastRTPS/lib ; unzip -x -n libarm64.zip ; cd ../../../include ; echo $PWD")
  60. }
  61. if(contains(DEFINES,SYSTEM_UBUNTU1804)){
  62. DEFINES += USE_FASTRTPS
  63. LIBS += -L$$PWD/../../../thirdpartylib/FastRTPS/lib/libamd64
  64. system("cd ./../../../thirdpartylib/FastRTPS/lib ; unzip -x -n libamd64.zip ; cd ../../../include ; echo $PWD")
  65. }
  66. }
  67. if(contains(DEFINES,USE_FASTRTPS)){
  68. !include(./fastrtps/modulecomm_fastrtps.pri ) {
  69. error( "Couldn't find the modulecomm_fastrtps.pri file!" )
  70. }
  71. }
  72. INCLUDEPATH += $$PWD/shm
  73. INCLUDEPATH += $$PWD/fastrtps
  74. INCLUDEPATH += $$PWD/inter
  75. if(contains(DEFINES,USE_FASTRTPS)){
  76. LIBS += -lfastcdr -lfastrtps
  77. }