common.pri 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. !exists(./../bin/libmodulecomm.so){
  12. message("No library file. Now create common library.")
  13. system(PWD=`pwd`; cd ..;bash autogen_lib.sh;cd $PWD)
  14. }
  15. #LIBS += -L$$PWD/../bin/ -lmodulecomm_shm -lmodulecomm_fastrtps -lmodulecomm_fastrtps_tcp -lmodulecomm_inter
  16. unix:LIBS += -lboost_system -lbacktrace -ldl
  17. #QMAKE_CXXFLAGS += -g
  18. CONFIG += c++11
  19. QMAKE_LFLAGS += -no-pie
  20. INCLUDEPATH += $$PWD/../src/include/msgtype
  21. INCLUDEPATH += $$PWD/../src/common/common
  22. if(contains(DEFINES,MODULECOMM_NO_FASTRTPS)){
  23. DEFINES += NOT_USEFASTRTPS
  24. }else{
  25. if(contains(DEFINES,SYSTEM_AGX)){
  26. DEFINES += USE_FASTRTPS
  27. LIBS += -L$$PWD/../thirdpartylib/FastRTPS/lib/libarm64
  28. system("cd ./../thirdpartylib/FastRTPS/lib ; unzip -x -n libarm64.zip ; cd ../../../include ; echo $PWD")
  29. }
  30. if(contains(DEFINES,SYSTEM_UBUNTU1804)){
  31. DEFINES += USE_FASTRTPS
  32. LIBS += -L$$PWD/../thirdpartylib/FastRTPS/lib/libamd64
  33. system("cd ./../thirdpartylib/FastRTPS/lib ; unzip -x -n libamd64.zip ; cd ../../../include ; echo $PWD")
  34. }
  35. }
  36. if(contains(DEFINES,USE_FASTRTPS)){
  37. LIBS += -lfastcdr -lfastrtps -ltinyxml2
  38. }
  39. CONFIG(release,debug|release){
  40. DEFINES += QT_NO_WARNING_OUTPUT
  41. DEFINES += QT_NO_DEBUG_OUTPUT
  42. }