common.pri 1.4 KB

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