driver_cloud_grpc_thread.pro 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. QT -= gui
  2. CONFIG += c++11 console
  3. CONFIG -= app_bundle
  4. QMAKE_LFLAGS += -no-pie
  5. # The following define makes your compiler emit warnings if you use
  6. # any Qt feature that has been marked deprecated (the exact warnings
  7. # depend on your compiler). Please consult the documentation of the
  8. # deprecated API in order to know how to port your code away from it.
  9. DEFINES += QT_DEPRECATED_WARNINGS
  10. system(protoc -I=./../../include/proto3 --cpp_out=./../../include/msgtype ./../../include/proto3/uploadthreadmsg.proto)
  11. # You can also make your code fail to compile if it uses deprecated APIs.
  12. # In order to do so, uncomment the following line.
  13. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  14. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  15. SOURCES += \
  16. ../../include/msgtype/cloud.pb.cc \
  17. ../../include/msgtype/uploadthreadmsg.pb.cc \
  18. main.cpp \
  19. grpcclient.cpp \
  20. uploadthreadmsg.grpc.pb.cc
  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. !include(../../../include/common.pri ) {
  26. error( "Couldn't find the common.pri file!" )
  27. }
  28. !include(../../../include/ivprotobuf.pri ) {
  29. error( "Couldn't find the ivprotobuf.pri file!" )
  30. }
  31. !include(../../../include/ivboost.pri ) {
  32. error( "Couldn't find the ivboost.pri file!" )
  33. }
  34. !include(../../../include/ivgrpc.pri ) {
  35. error( "Couldn't find the ivgrpc.pri file!" )
  36. }
  37. !include(../../../include/ivyaml-cpp.pri ) {
  38. error( "Couldn't find the ivyaml-cpp.pri file!" )
  39. }
  40. HEADERS += \
  41. ../../include/msgtype/cloud.pb.h \
  42. ../../include/msgtype/uploadthreadmsg.pb.h \
  43. grpcclient.h \
  44. uploadthreadmsg.grpc.pb.h