LearningSmartClient.pro 3.8 KB

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