LearningSmartClient.pro 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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/roomapi.cpp \
  16. api/userapi.cpp \
  17. appevent.cpp \
  18. main.cpp \
  19. mainwindow.cpp \
  20. models/chatmodels.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/roomapi.h \
  45. api/userapi.h \
  46. appevent.h \
  47. mainwindow.h \
  48. models/chatmodels.h \
  49. network/networkaccessmanager.h \
  50. network/request.h \
  51. network/websocketclient.h \
  52. thardware/thardware.h \
  53. thememanager.h \
  54. themesettingswidget.h \
  55. util/asynchelper.h \
  56. util/jsonmapper.h \
  57. util/layoutbuilder.h \
  58. util/qformatter.h \
  59. views/loginwindow.h \
  60. widgets/bubbletip.h \
  61. widgets/chatView/bubblemessagemanager.h \
  62. widgets/chatView/chat1/chatmessage.h \
  63. widgets/chatView/chat1/chatmessagedelegate.h \
  64. widgets/chatView/chat1/chatmessagemodel.h \
  65. widgets/chatView/chat1/chatview.h \
  66. widgets/chatView/chatwindow.h \
  67. widgets/colorlistwidget.h \
  68. widgets/framelessbase.h \
  69. widgets/maskoverlay.h \
  70. widgets/userprofilewidget.h
  71. msvc {
  72. QMAKE_CFLAGS += /utf-8
  73. QMAKE_CXXFLAGS += /utf-8
  74. }
  75. DEFINES += _SILENCE_CLANG_COROUTINE_MESSAGE
  76. include($$PWD/AvRecorder/AvRecorder.pri)
  77. include($$PWD/AvPlayer2/AvPlayer2.pri)
  78. include($$PWD/qwindowkit/qwindowkit.pri)
  79. include($$PWD/fmt.pri)
  80. include($$PWD/qtpromise/qtpromise.pri)
  81. include($$PWD/jsonserializer/jsonserializer.pri)
  82. INCLUDEPATH+="E:/AAA/ffmpeg-7.0.2-full_build-shared/include"
  83. LIBS+="-LE:/AAA/ffmpeg-7.0.2-full_build-shared/lib"
  84. win32{
  85. LIBS += -lavcodec -lavfilter -lavformat -lavutil -lswresample -lswscale
  86. }
  87. win32: LIBS += -lOpenGL32
  88. LIBS += -lwinmm
  89. # For DirectX (D3D11CreateDevice)
  90. LIBS += -ld3d11
  91. # For Windows API functions (IsWindowVisible, IsIconic)
  92. LIBS += -luser32
  93. LIBS += -ldwmapi # For DwmGetWindowAttribute
  94. LIBS += -lgdi32 # For GDI functions (BitBlt, CreateCompatibleBitmap, etc.)
  95. LIBS += -lole32 # For COM/WinRT functions
  96. LIBS += -loleaut32 # For SysAllocString, SysFreeString, etc.
  97. LIBS += -lwindowsapp # For CreateDispatcherQueueController
  98. DESTDIR = $$PWD/bin
  99. CONFIG(debug, debug|release) {
  100. TARGET = $$join(TARGET,,,d)
  101. }
  102. # Default rules for deployment.
  103. qnx: target.path = /tmp/$${TARGET}/bin
  104. else: unix:!android: target.path = /opt/$${TARGET}/bin
  105. !isEmpty(target.path): INSTALLS += target
  106. RESOURCES += \
  107. resources/shared.qrc