2023-03-31 11:58:15 +08:00
|
|
|
QT += quick quickcontrols2 concurrent network multimedia
|
|
|
|
CONFIG += c++17
|
2023-02-24 18:44:29 +08:00
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS QT_NO_WARNING_OUTPUT
|
|
|
|
|
2023-03-25 22:46:15 +08:00
|
|
|
HEADERS += \
|
2023-04-11 23:12:31 +08:00
|
|
|
ChatController.h \
|
|
|
|
AppInfo.h
|
2023-03-25 22:46:15 +08:00
|
|
|
|
2023-02-24 18:44:29 +08:00
|
|
|
SOURCES += \
|
2023-03-17 14:05:27 +08:00
|
|
|
ChatController.cpp \
|
2023-04-11 23:12:31 +08:00
|
|
|
AppInfo.cpp \
|
2023-02-24 18:44:29 +08:00
|
|
|
main.cpp
|
|
|
|
|
|
|
|
RESOURCES += qml.qrc
|
2023-03-25 20:45:33 +08:00
|
|
|
|
2023-03-15 20:40:09 +08:00
|
|
|
RC_ICONS = favicon.ico
|
2023-03-25 20:45:33 +08:00
|
|
|
|
2023-03-07 23:56:55 +08:00
|
|
|
QML_IMPORT_PATH =
|
|
|
|
QML_DESIGNER_IMPORT_PATH =
|
2023-03-25 20:45:33 +08:00
|
|
|
|
2023-03-07 23:56:55 +08:00
|
|
|
CONFIG(debug,debug|release) {
|
|
|
|
DESTDIR = $$absolute_path($${_PRO_FILE_PWD_}/../bin/debug)
|
|
|
|
} else {
|
|
|
|
DESTDIR = $$absolute_path($${_PRO_FILE_PWD_}/../bin/release)
|
|
|
|
}
|
2023-03-17 14:05:27 +08:00
|
|
|
|
2023-03-17 22:59:21 +08:00
|
|
|
win32 {
|
2023-04-06 19:55:53 +08:00
|
|
|
|
|
|
|
contains(QMAKE_CC, cl) {
|
|
|
|
COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/msvc/*.dll) $$DESTDIR
|
2023-04-04 03:15:10 +08:00
|
|
|
QMAKE_PRE_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, $$QMAKE_DIR_SEP)
|
2023-03-17 22:59:21 +08:00
|
|
|
} else {
|
2023-04-06 19:55:53 +08:00
|
|
|
COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/mingw/*.dll) $$DESTDIR
|
2023-04-04 03:15:10 +08:00
|
|
|
QMAKE_PRE_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, $$QMAKE_DIR_SEP)
|
2023-03-17 22:59:21 +08:00
|
|
|
}
|
2023-04-06 19:55:53 +08:00
|
|
|
|
2023-03-17 22:59:21 +08:00
|
|
|
}
|
|
|
|
|
2023-03-25 22:46:15 +08:00
|
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
|
|
|
|
mac: {
|
|
|
|
QMAKE_INFO_PLIST = Info.plist
|
|
|
|
}
|