modulecomm.pro 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. HEADERS += \
  35. ivmodulemsg_type.h \
  36. modulecomm.h \
  37. modulecomm_base.h \
  38. ivstdcolorout.h
  39. CONFIG += plugin
  40. # Default rules for deployment.
  41. unix {
  42. target.path = /usr/lib
  43. }
  44. !isEmpty(target.path): INSTALLS += target
  45. !include(./shm/modulecomm_shm.pri ) {
  46. error( "Couldn't find the modulecomm_shm.pri file!" )
  47. }
  48. !include(./inter/modulecomm_inter.pri ) {
  49. error( "Couldn't find the modulecomm_inter.pri file!" )
  50. }
  51. if(contains(DEFINES,MODULECOMM_NO_FASTRTPS)){
  52. DEFINES += NOT_USEFASTRTPS
  53. }else{
  54. if(contains(DEFINES,SYSTEM_AGX)){
  55. DEFINES += USE_FASTRTPS
  56. LIBS += -L$$PWD/../../../thirdpartylib/FastRTPS/lib/libarm64
  57. system("cd ./../../../thirdpartylib/FastRTPS/lib ; unzip -x -n libarm64.zip ; cd ../../../include ; echo $PWD")
  58. }
  59. if(contains(DEFINES,SYSTEM_UBUNTU1804)){
  60. DEFINES += USE_FASTRTPS
  61. LIBS += -L$$PWD/../../../thirdpartylib/FastRTPS/lib/libamd64
  62. system("cd ./../../../thirdpartylib/FastRTPS/lib ; unzip -x -n libamd64.zip ; cd ../../../include ; echo $PWD")
  63. }
  64. }
  65. if(contains(DEFINES,USE_FASTRTPS)){
  66. !include(./fastrtps/modulecomm_fastrtps.pri ) {
  67. error( "Couldn't find the modulecomm_fastrtps.pri file!" )
  68. }
  69. }
  70. INCLUDEPATH += $$PWD/shm
  71. INCLUDEPATH += $$PWD/fastrtps
  72. INCLUDEPATH += $$PWD/inter
  73. if(contains(DEFINES,USE_FASTRTPS)){
  74. LIBS += -lfastcdr -lfastrtps
  75. }