basemain.pro 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. QT += core gui network network-private
  2. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  3. CONFIG += c++17
  4. # You can make your code fail to compile if it uses deprecated APIs.
  5. # In order to do so, uncomment the following line.
  6. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  7. include($$PWD/qtsingleapplication/qtsingleapplication.pri)
  8. SOURCES += \
  9. appevent.cpp \
  10. hostthread.cpp \
  11. main.cpp \
  12. messagequeue.cpp \
  13. processmodel.cpp \
  14. processmonitor.cpp \
  15. processthread.cpp \
  16. thardware/thardware.cpp \
  17. updaterthread.cpp \
  18. worker.cpp
  19. # Default rules for deployment.
  20. qnx: target.path = /tmp/$${TARGET}/bin
  21. else: unix:!android: target.path = /opt/$${TARGET}/bin
  22. !isEmpty(target.path): INSTALLS += target
  23. HEADERS += \
  24. appevent.h \
  25. basemainTr.h \
  26. hostthread.h \
  27. messagequeue.h \
  28. processmodel.h \
  29. processmonitor.h \
  30. processthread.h \
  31. thardware/thardware.h \
  32. updaterthread.h \
  33. worker.h
  34. include($$PWD/CPPWebFramework/CPPWebFramework.pri)
  35. include($$PWD/api/api.pri)
  36. DESTDIR = $$PWD/bin
  37. CONFIG(debug, debug|release) {
  38. TARGET = $$join(TARGET,,,d)
  39. }
  40. CONFIG += lrelease
  41. CONFIG += embed_translations
  42. TRANSLATIONS += basemain_zh_CN.ts
  43. msvc {
  44. QMAKE_CFLAGS += /utf-8
  45. QMAKE_CXXFLAGS += /utf-8
  46. }