basemain.pro 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. QT += core gui network network-private
  2. QT += websockets
  3. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  4. CONFIG += c++17
  5. # You can make your code fail to compile if it uses deprecated APIs.
  6. # In order to do so, uncomment the following line.
  7. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  8. include($$PWD/qtsingleapplication/qtsingleapplication.pri)
  9. SOURCES += \
  10. appevent.cpp \
  11. hostthread.cpp \
  12. main.cpp \
  13. messagequeue.cpp \
  14. processmodel.cpp \
  15. processmonitor.cpp \
  16. processthread.cpp \
  17. thardware/thardware.cpp \
  18. updaterthread.cpp \
  19. websocketclient.cpp \
  20. worker.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. appevent.h \
  27. basemainTr.h \
  28. hostthread.h \
  29. messagequeue.h \
  30. processmodel.h \
  31. processmonitor.h \
  32. processthread.h \
  33. thardware/thardware.h \
  34. updaterthread.h \
  35. websocketclient.h \
  36. worker.h
  37. include($$PWD/CPPWebFramework/CPPWebFramework.pri)
  38. include($$PWD/api/api.pri)
  39. DESTDIR = $$PWD/bin
  40. CONFIG(debug, debug|release) {
  41. TARGET = $$join(TARGET,,,d)
  42. }
  43. CONFIG += lrelease
  44. CONFIG += embed_translations
  45. TRANSLATIONS += basemain_zh_CN.ts
  46. msvc {
  47. QMAKE_CFLAGS += /utf-8
  48. QMAKE_CXXFLAGS += /utf-8
  49. }
  50. msvc {
  51. QMAKE_LFLAGS += /MANIFESTUAC:\"level=\'requireAdministrator\' uiAccess=\'false\'\"
  52. }