driver_cloud_grpc_civetweb.pro 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 feature of Qt which as 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. system(protoc -I=./../../include/proto3 --cpp_out=./../../include/msgtype ./../../include/proto3/uploadthreadmsg.proto)
  10. # You can also make your code fail to compile if you use deprecated APIs.
  11. # In order to do so, uncomment the following line.
  12. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  13. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  14. SOURCES += main.cpp \
  15. ../driver_cloud_grpc_thread/uploadthreadmsg.grpc.pb.cc \
  16. ../../include/msgtype/uploadthreadmsg.pb.cc \
  17. grpcpc.cpp \
  18. ../../include/msgtype/cloud.pb.cc \
  19. ../../include/msgtype/rawpic.pb.cc \
  20. grpccivet.cpp \
  21. ../../../thirdpartylib/civetweb/CivetServer.cpp \
  22. ../../../thirdpartylib/civetweb/civetweb.c
  23. !include(../../../include/common.pri ) {
  24. error( "Couldn't find the common.pri file!" )
  25. }
  26. INCLUDEPATH += $$PWD/../../driver/driver_cloud_grpc_thread
  27. INCLUDEPATH += $$PWD/../../../thirdpartylib/grpc/include
  28. LIBS += -L$$PWD/../../../thirdpartylib/grpc/lib
  29. LIBS += -lprotobuf -lyaml-cpp
  30. LIBS += -lgrpc++_unsecure -lgrpc++_reflection -labsl_raw_hash_set -labsl_hashtablez_sampler -labsl_exponential_biased -labsl_hash -labsl_bad_variant_access -labsl_city -labsl_status -labsl_cord -labsl_str_format_internal -labsl_synchronization -labsl_graphcycles_internal -labsl_symbolize -labsl_demangle_internal -labsl_stacktrace -labsl_debugging_internal -labsl_malloc_internal -labsl_time -labsl_time_zone -labsl_civil_time -labsl_strings -labsl_strings_internal -labsl_throw_delegate -labsl_int128 -labsl_base -labsl_spinlock_wait -labsl_bad_optional_access -labsl_raw_logging_internal -labsl_log_severity
  31. HEADERS += \
  32. ../driver_cloud_grpc_thread/uploadthreadmsg.grpc.pb.h \
  33. ../../include/msgtype/uploadthreadmsg.pb.h \
  34. grpcpc.h \
  35. ../../include/msgtype/cloud.pb.h \
  36. ../../include/msgtype/rawpic.pb.h \
  37. grpccivet.h \
  38. ../../../thirdpartylib/civetweb/CivetServer.h \
  39. ../../../thirdpartylib/civetweb/civetweb.h
  40. INCLUDEPATH += $$PWD/../../../thirdpartylib/civetweb
  41. DEFINES += NO_SSL
  42. #DEFINES += NO_SSL_DL
  43. DEFINES += USE_WEBSOCKET
  44. LIBS += -ldl -lrt