driver_ota_client.pro 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. QT -= gui
  2. CONFIG += c++11 console
  3. CONFIG -= app_bundle
  4. # The following define makes your compiler emit warnings if you use
  5. # any Qt feature that has been marked deprecated (the exact warnings
  6. # depend on your compiler). Please consult the documentation of the
  7. # deprecated API in order to know how to port your code away from it.
  8. DEFINES += QT_DEPRECATED_WARNINGS
  9. # You can also make your code fail to compile if it uses deprecated APIs.
  10. # In order to do so, uncomment the following line.
  11. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  12. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  13. SOURCES += \
  14. ../../common/common/VehicleParam.cpp \
  15. ../../include/msgtype/ota.pb.cc \
  16. main.cpp \
  17. md5.cpp \
  18. md5file.cpp \
  19. ota.grpc.pb.cc \
  20. otaclient.cpp
  21. # Default rules for deployment.
  22. qnx: target.path = /tmp/$${TARGET}/bin
  23. else: unix:!android: target.path = /opt/$${TARGET}/bin
  24. !isEmpty(target.path): INSTALLS += target
  25. HEADERS += \
  26. ../../common/common/VehicleParam.h \
  27. ../../include/msgtype/ota.pb.h \
  28. md5.h \
  29. md5file.h \
  30. md5global.h \
  31. ota.grpc.pb.h \
  32. otaclient.h
  33. !include(../../../include/common.pri ) {
  34. error( "Couldn't find the common.pri file!" )
  35. }
  36. !include(../../../include/ivprotobuf.pri ) {
  37. error( "Couldn't find the ivprotobuf.pri file!" )
  38. }
  39. !include(../../../include/ivboost.pri ) {
  40. error( "Couldn't find the ivboost.pri file!" )
  41. }
  42. !include(../../../include/ivgrpc.pri ) {
  43. error( "Couldn't find the ivgrpc.pri file!" )
  44. }
  45. !include(../../../include/ivyaml-cpp.pri ) {
  46. error( "Couldn't find the ivyaml-cpp.pri file!" )
  47. }
  48. #DEFINES += UBUNTU1604 #if ubuntu 16.04 use this, for proto2 and proto3.
  49. INCLUDEPATH += $$PWD/../../common/common