LearningSmartClient.pro 3.5 KB

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