LearningSmartClient.pro 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. QT += core gui network svg
  2. QT += multimedia websockets
  3. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  4. CONFIG += console
  5. CONFIG += c++17
  6. LIBS += -lshell32
  7. QT += opengl
  8. # You can make your code fail to compile if it uses deprecated APIs.
  9. # In order to do so, uncomment the following line.
  10. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  11. SOURCES += \
  12. api/chatapi.cpp \
  13. api/loginapi.cpp \
  14. api/userapi.cpp \
  15. appevent.cpp \
  16. main.cpp \
  17. mainwindow.cpp \
  18. models/permission.cpp \
  19. models/role.cpp \
  20. models/user.cpp \
  21. network/networkaccessmanager.cpp \
  22. network/request.cpp \
  23. network/websocketclient.cpp \
  24. thardware/thardware.cpp \
  25. thememanager.cpp \
  26. themesettingswidget.cpp \
  27. util/asynchelper.cpp \
  28. util/layoutbuilder.cpp \
  29. util/qformatter.cpp \
  30. views/loginwindow.cpp \
  31. widgets/bubbletip.cpp \
  32. widgets/chatView/bubblemessagemanager.cpp \
  33. widgets/chatView/chat1/chatmessagedelegate.cpp \
  34. widgets/chatView/chat1/chatmessagemodel.cpp \
  35. widgets/chatView/chat1/chatview.cpp \
  36. widgets/chatView/chatwindow.cpp \
  37. widgets/colorlistwidget.cpp \
  38. widgets/framelessbase.cpp \
  39. widgets/maskoverlay.cpp \
  40. widgets/userprofilewidget.cpp
  41. HEADERS += \
  42. api/chatapi.h \
  43. api/loginapi.h \
  44. api/userapi.h \
  45. appevent.h \
  46. mainwindow.h \
  47. models/permission.h \
  48. models/role.h \
  49. models/user.h \
  50. network/networkaccessmanager.h \
  51. network/request.h \
  52. network/websocketclient.h \
  53. thardware/thardware.h \
  54. thememanager.h \
  55. themesettingswidget.h \
  56. util/asynchelper.h \
  57. util/jsonmapper.h \
  58. util/layoutbuilder.h \
  59. util/qformatter.h \
  60. views/loginwindow.h \
  61. widgets/bubbletip.h \
  62. widgets/chatView/bubblemessagemanager.h \
  63. widgets/chatView/chat1/chatmessage.h \
  64. widgets/chatView/chat1/chatmessagedelegate.h \
  65. widgets/chatView/chat1/chatmessagemodel.h \
  66. widgets/chatView/chat1/chatview.h \
  67. widgets/chatView/chatwindow.h \
  68. widgets/colorlistwidget.h \
  69. widgets/framelessbase.h \
  70. widgets/maskoverlay.h \
  71. widgets/userprofilewidget.h
  72. msvc {
  73. QMAKE_CFLAGS += /utf-8
  74. QMAKE_CXXFLAGS += /utf-8
  75. }
  76. DEFINES += _SILENCE_CLANG_COROUTINE_MESSAGE
  77. include($$PWD/AvRecorder/AvRecorder.pri)
  78. include($$PWD/qwindowkit/qwindowkit.pri)
  79. include($$PWD/fmt.pri)
  80. include($$PWD/qtpromise/qtpromise.pri)
  81. INCLUDEPATH+="E:/AAA/ffmpeg-7.0.2-full_build-shared/include"
  82. LIBS+="-LE:/AAA/ffmpeg-7.0.2-full_build-shared/lib"
  83. win32{
  84. LIBS += -lavcodec -lavfilter -lavformat -lavutil -lswresample -lswscale
  85. }
  86. win32: LIBS += -lOpenGL32
  87. LIBS += -lwinmm
  88. # For DirectX (D3D11CreateDevice)
  89. LIBS += -ld3d11
  90. # For Windows API functions (IsWindowVisible, IsIconic)
  91. LIBS += -luser32
  92. LIBS += -ldwmapi # For DwmGetWindowAttribute
  93. LIBS += -lgdi32 # For GDI functions (BitBlt, CreateCompatibleBitmap, etc.)
  94. LIBS += -lole32 # For COM/WinRT functions
  95. LIBS += -loleaut32 # For SysAllocString, SysFreeString, etc.
  96. LIBS += -lwindowsapp # For CreateDispatcherQueueController
  97. DESTDIR = $$PWD/bin
  98. CONFIG(debug, debug|release) {
  99. TARGET = $$join(TARGET,,,d)
  100. }
  101. # Default rules for deployment.
  102. qnx: target.path = /tmp/$${TARGET}/bin
  103. else: unix:!android: target.path = /opt/$${TARGET}/bin
  104. !isEmpty(target.path): INSTALLS += target
  105. RESOURCES += \
  106. resources/shared.qrc