common.pri 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 -livservice
  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. INCLUDEPATH += $$PWD/../src/common/common
  17. if(contains(DEFINES,MODULECOMM_NO_FASTRTPS)){
  18. DEFINES += NOT_USEFASTRTPS
  19. }else{
  20. if(contains(DEFINES,SYSTEM_AGX)){
  21. DEFINES += USE_FASTRTPS
  22. LIBS += -L$$PWD/../thirdpartylib/FastRTPS/lib/libarm64
  23. system("cd ./../thirdpartylib/FastRTPS/lib ; unzip -x -n libarm64.zip ; cd ../../../include ; echo $PWD")
  24. }
  25. if(contains(DEFINES,SYSTEM_UBUNTU1804)){
  26. DEFINES += USE_FASTRTPS
  27. LIBS += -L$$PWD/../thirdpartylib/FastRTPS/lib/libamd64
  28. system("cd ./../thirdpartylib/FastRTPS/lib ; unzip -x -n libamd64.zip ; cd ../../../include ; echo $PWD")
  29. }
  30. }
  31. if(contains(DEFINES,USE_FASTRTPS)){
  32. LIBS += -lfastcdr -lfastrtps -ltinyxml2
  33. }
  34. CONFIG(release,debug|release){
  35. DEFINES += QT_NO_WARNING_OUTPUT
  36. DEFINES += QT_NO_DEBUG_OUTPUT
  37. }