LearningSmartClient.pro 3.3 KB

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