modulecomm.pro 2.3 KB

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