tool_grpcdb_query.pro 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. QT += core gui
  2. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  3. CONFIG += c++11
  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. system(protoc -I=./../../include/proto3 --cpp_out=./../../include/msgtype ./../../include/proto3/grpcdb.proto)
  10. # You can also make your code fail to compile if it uses 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 += \
  15. ../../driver/driver_db_grpc_server/grpcdb.grpc.pb.cc \
  16. ../../include/msgtype/grpcdb.pb.cc \
  17. grpcdbclient.cpp \
  18. main.cpp \
  19. mainwindow.cpp
  20. HEADERS += \
  21. ../../driver/driver_db_grpc_server/grpcdb.grpc.pb.h \
  22. ../../include/msgtype/grpcdb.pb.h \
  23. grpcdbclient.h \
  24. mainwindow.h
  25. FORMS += \
  26. mainwindow.ui
  27. # Default rules for deployment.
  28. qnx: target.path = /tmp/$${TARGET}/bin
  29. else: unix:!android: target.path = /opt/$${TARGET}/bin
  30. !isEmpty(target.path): INSTALLS += target
  31. !include(../../../include/common.pri ) {
  32. error( "Couldn't find the common.pri file!" )
  33. }
  34. !include(../../../include/ivprotobuf.pri ) {
  35. error( "Couldn't find the ivprotobuf.pri file!" )
  36. }
  37. !include(../../../include/ivgrpc.pri ) {
  38. error( "Couldn't find the ivgrpc.pri file!" )
  39. }