common.pri 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. unix:system("./ivversion.sh ")
  2. unix:DEFINES += RUNSYSTEMTEST
  3. if(contains(DEFINES,RUNSYSTEMTEST)){
  4. unix:system("./linuxsystemtest.sh ")
  5. }
  6. unix:include(systemdef.pri)
  7. win32: DEFINES += SYSTEM_WIN
  8. INCLUDEPATH += $$PWD/../include/
  9. LIBS += -L$$PWD/../bin/ -lxmlparam -lmodulecomm -livlog -livfault -livexit -livbacktrace -livchart
  10. #LIBS += -L$$PWD/../bin/ -lmodulecomm_shm -lmodulecomm_fastrtps -lmodulecomm_fastrtps_tcp -lmodulecomm_inter
  11. unix:LIBS += -lboost_system -lbacktrace -ldl
  12. QMAKE_CXXFLAGS += -g
  13. CONFIG += c++11
  14. QMAKE_LFLAGS += -no-pie
  15. INCLUDEPATH += $$PWD/../src/include/msgtype
  16. if(contains(DEFINES,MODULECOMM_NO_FASTRTPS)){
  17. DEFINES += NOT_USEFASTRTPS
  18. }else{
  19. if(contains(DEFINES,SYSTEM_AGX)){
  20. DEFINES += USE_FASTRTPS
  21. LIBS += -L$$PWD/../thirdpartylib/FastRTPS/lib/libarm64
  22. system("cd ./../thirdpartylib/FastRTPS/lib ; unzip -x -n libarm64.zip ; cd ../../../include ; echo $PWD")
  23. }
  24. if(contains(DEFINES,SYSTEM_UBUNTU1804)){
  25. DEFINES += USE_FASTRTPS
  26. LIBS += -L$$PWD/../thirdpartylib/FastRTPS/lib/libamd64
  27. system("cd ./../thirdpartylib/FastRTPS/lib ; unzip -x -n libamd64.zip ; cd ../../../include ; echo $PWD")
  28. }
  29. }
  30. if(contains(DEFINES,USE_FASTRTPS)){
  31. LIBS += -lfastcdr -lfastrtps -ltinyxml2
  32. }
  33. CONFIG(release,debug|release){
  34. DEFINES += QT_NO_WARNING_OUTPUT
  35. DEFINES += QT_NO_DEBUG_OUTPUT
  36. }