2023-04-18 14:14:46 +08:00
|
|
|
QT += core gui widgets
|
|
|
|
QT += multimedia
|
|
|
|
QT += network
|
|
|
|
QT += concurrent
|
2023-04-19 14:42:06 +08:00
|
|
|
QT += serialport
|
2023-04-18 14:14:46 +08:00
|
|
|
QT += opengl
|
|
|
|
QT += webenginewidgets
|
2023-04-19 14:42:06 +08:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 5) {
|
|
|
|
QT += openglwidgets
|
|
|
|
}
|
2023-04-21 11:06:47 +08:00
|
|
|
CONFIG += c++14
|
2023-04-18 14:14:46 +08:00
|
|
|
CONFIG += lrelease
|
|
|
|
CONFIG += embed_translations
|
|
|
|
# CONFIG += console
|
|
|
|
|
|
|
|
# You can also make your code fail to compile if you use deprecated APIs.
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
|
|
|
TARGET = $$quote(LedOK Express)
|
2023-05-18 18:24:40 +08:00
|
|
|
VERSION = 1.4.0
|
2023-04-18 14:14:46 +08:00
|
|
|
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
|
|
|
|
msvc {
|
2023-04-19 14:42:06 +08:00
|
|
|
contains(QT_ARCH, i386) {
|
|
|
|
QMAKE_LFLAGS += /LARGEADDRESSAWARE
|
|
|
|
#QMAKE_LFLAGS += -Wl,--large-address-aware
|
|
|
|
}
|
|
|
|
lessThan(QT_MAJOR_VERSION, 6) {
|
|
|
|
QMAKE_CXXFLAGS += -execution-charset:utf-8
|
|
|
|
QMAKE_CXXFLAGS += -source-charset:utf-8
|
|
|
|
}
|
2023-04-18 14:14:46 +08:00
|
|
|
|
|
|
|
CONFIG += force_debug_info
|
|
|
|
CONFIG += separate_debug_info
|
|
|
|
}
|
2023-04-23 10:04:49 +08:00
|
|
|
win32 {
|
|
|
|
CONFIG -= debug_and_release
|
2023-04-18 14:14:46 +08:00
|
|
|
LIBS += -lwinmm
|
|
|
|
LIBS += -lDbghelp
|
2023-05-25 10:00:00 +08:00
|
|
|
|
|
|
|
RC_ICONS = res/Logo.ico
|
|
|
|
}
|
|
|
|
osx {
|
|
|
|
ICON = res/Logo-raw.png
|
2023-04-18 14:14:46 +08:00
|
|
|
}
|
2023-04-23 10:04:49 +08:00
|
|
|
|
2023-05-25 10:00:00 +08:00
|
|
|
RESOURCES += res.qrc
|
2023-04-23 10:04:49 +08:00
|
|
|
|
|
|
|
|
2023-05-17 17:36:18 +08:00
|
|
|
copydir.files += AClock
|
|
|
|
copydir.files += $$quote(y50 param)
|
|
|
|
copydir.files += $$quote(files)
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
EXE_SUFFIX = .exe
|
|
|
|
|
|
|
|
copy.files += $$files(ffmpeg/bin/*.dll)
|
|
|
|
copy.files += 7z/7z.dll
|
|
|
|
copy.files += 7z/7z.exe
|
|
|
|
# for https requests
|
|
|
|
copy.files += $$files(OpenSSL/*.dll)
|
|
|
|
|
|
|
|
copy.path = $$OUT_PWD
|
|
|
|
copydir.path = $$OUT_PWD
|
|
|
|
CONFIG += file_copies
|
|
|
|
COPIES += copy
|
|
|
|
COPIES += copydir
|
|
|
|
}
|
|
|
|
osx {
|
|
|
|
DIR_SUFFIX = -mac
|
|
|
|
|
|
|
|
//copy.files += $$files(ffmpeg-mac/lib/*.dylib)
|
|
|
|
|
|
|
|
copy.path = Contents/MacOS
|
|
|
|
copydir.path = Contents/MacOS
|
|
|
|
QMAKE_BUNDLE_DATA += copy
|
|
|
|
QMAKE_BUNDLE_DATA += copydir
|
|
|
|
}
|
|
|
|
copy.files += ffmpeg$$DIR_SUFFIX/bin/ffmpeg$$EXE_SUFFIX
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/ffmpeg$$DIR_SUFFIX/include
|
|
|
|
LIBS += -L$$PWD/ffmpeg$$DIR_SUFFIX/lib/\
|
|
|
|
-lavcodec \
|
|
|
|
-lavdevice \
|
|
|
|
-lavfilter \
|
|
|
|
-lavformat \
|
|
|
|
-lavutil \
|
|
|
|
-lswresample \
|
|
|
|
-lswscale
|
|
|
|
|
2023-04-23 10:04:49 +08:00
|
|
|
# Default rules for deployment.
|
|
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
|
2023-04-18 14:14:46 +08:00
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
base/changepasswordform.cpp \
|
|
|
|
base/customprogressindicator.cpp \
|
|
|
|
base/loemptydialog.cpp \
|
|
|
|
base/softconfigdialog.cpp \
|
|
|
|
base/switchcontrol.cpp \
|
|
|
|
base/extendedgroupbox.cpp \
|
|
|
|
base/ffutil.cpp \
|
|
|
|
base/locolorselector.cpp \
|
|
|
|
base/lodateselector.cpp \
|
|
|
|
base/loqtitlebar.cpp \
|
|
|
|
base/loqtreewidget.cpp \
|
|
|
|
base/waitingdlg.cpp \
|
|
|
|
basedlg.cpp \
|
|
|
|
basewin.cpp \
|
|
|
|
cfg.cpp \
|
|
|
|
device/ctrlhdmipanel.cpp \
|
|
|
|
device/ctrlnetworkpanel.cpp \
|
2023-05-15 16:06:10 +08:00
|
|
|
device/ctrlpowerpanel.cpp \
|
2023-04-18 14:14:46 +08:00
|
|
|
device/ctrlpwdpanel.cpp \
|
2023-05-15 16:06:10 +08:00
|
|
|
device/ctrltestpanel.cpp \
|
|
|
|
device/ctrlvolumepanel.cpp \
|
2023-04-18 14:14:46 +08:00
|
|
|
devicectrlpanel.cpp \
|
|
|
|
deviceitem.cpp \
|
|
|
|
devicepanel.cpp \
|
|
|
|
ffplayer.cpp \
|
|
|
|
globaldefine.cpp \
|
|
|
|
gutil/qgui.cpp \
|
|
|
|
gutil/qnetwork.cpp \
|
|
|
|
main.cpp \
|
|
|
|
mainwindow.cpp \
|
|
|
|
mguangyingpinwidget.cpp \
|
|
|
|
player/digiclock.cpp \
|
|
|
|
player/eleanaclock.cpp \
|
|
|
|
player/elebase.cpp \
|
|
|
|
player/eleborder.cpp \
|
|
|
|
player/elegif.cpp \
|
|
|
|
player/eleimg.cpp \
|
|
|
|
player/elemultipng.cpp \
|
|
|
|
player/elescroll.cpp \
|
|
|
|
player/eletimer.cpp \
|
|
|
|
player/elevideo.cpp \
|
|
|
|
player/playwin.cpp \
|
|
|
|
player/posdlg.cpp \
|
|
|
|
progpanel.cpp \
|
|
|
|
synctimer.cpp \
|
|
|
|
tools.cpp \
|
|
|
|
device/ctrladvancedpanel.cpp \
|
|
|
|
device/ctrlbrightpanel.cpp \
|
|
|
|
device/ctrlverifyclockpanel.cpp \
|
|
|
|
device/upgradeapkdialog.cpp \
|
|
|
|
device/wupgradeapkitem.cpp \
|
|
|
|
program/copydirthread.cpp \
|
|
|
|
program/eaclock.cpp \
|
|
|
|
program/ebase.cpp \
|
|
|
|
program/edclock.cpp \
|
|
|
|
program/eenviron.cpp \
|
|
|
|
program/egif.cpp \
|
|
|
|
program/emultiwin.cpp \
|
|
|
|
program/ephoto.cpp \
|
|
|
|
program/etext.cpp \
|
|
|
|
program/etimer.cpp \
|
|
|
|
program/evideo.cpp \
|
|
|
|
program/eweb.cpp \
|
|
|
|
program/gentmpthread.cpp \
|
|
|
|
program/pageeditor.cpp \
|
|
|
|
program/pagelistitem.cpp \
|
|
|
|
program/progcreatedlg.cpp \
|
|
|
|
program/progeditorwin.cpp \
|
|
|
|
program/progitem.cpp \
|
|
|
|
program/sendprogramdialog.cpp \
|
|
|
|
program/sendprogthread.cpp \
|
|
|
|
program/videosplitthread.cpp \
|
|
|
|
program/wplanitem.cpp \
|
|
|
|
program/wplanlist.cpp \
|
|
|
|
program/wprogrampublishitem.cpp \
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
base/changepasswordform.h \
|
|
|
|
base/customprogressindicator.h \
|
|
|
|
base/loemptydialog.h \
|
|
|
|
base/softconfigdialog.h \
|
|
|
|
base/switchcontrol.h \
|
|
|
|
base/extendedgroupbox.h \
|
|
|
|
base/locolorselector.h \
|
|
|
|
base/lodateselector.h \
|
|
|
|
base/loqtitlebar.h \
|
|
|
|
base/loqtreewidget.h \
|
|
|
|
base/waitingdlg.h \
|
|
|
|
basedlg.h \
|
|
|
|
basewin.h \
|
|
|
|
cfg.h \
|
|
|
|
device/ctrlhdmipanel.h \
|
|
|
|
device/ctrlnetworkpanel.h \
|
2023-05-15 16:06:10 +08:00
|
|
|
device/ctrlpowerpanel.h \
|
2023-04-18 14:14:46 +08:00
|
|
|
device/ctrlpwdpanel.h \
|
2023-05-15 16:06:10 +08:00
|
|
|
device/ctrltestpanel.h \
|
|
|
|
device/ctrlvolumepanel.h \
|
2023-04-18 14:14:46 +08:00
|
|
|
devicectrlpanel.h \
|
|
|
|
deviceitem.h \
|
|
|
|
devicepanel.h \
|
|
|
|
ffplayer.h \
|
|
|
|
globaldefine.h \
|
|
|
|
gutil/qgui.h \
|
|
|
|
gutil/qnetwork.h \
|
|
|
|
mainwindow.h \
|
|
|
|
mguangyingpinwidget.h \
|
|
|
|
player/digiclock.h \
|
|
|
|
player/eleanaclock.h \
|
|
|
|
player/elebase.h \
|
|
|
|
player/eleborder.h \
|
|
|
|
player/elegif.h \
|
|
|
|
player/eleimg.h \
|
|
|
|
player/elemultipng.h \
|
|
|
|
player/elescroll.h \
|
|
|
|
player/eletimer.h \
|
|
|
|
player/elevideo.h \
|
|
|
|
player/playwin.h \
|
|
|
|
player/posdlg.h \
|
|
|
|
progpanel.h \
|
|
|
|
synctimer.h \
|
|
|
|
tools.h \
|
|
|
|
device/ctrladvancedpanel.h \
|
|
|
|
device/ctrlbrightpanel.h \
|
|
|
|
device/ctrlverifyclockpanel.h \
|
|
|
|
device/upgradeapkdialog.h \
|
|
|
|
device/wupgradeapkitem.h \
|
|
|
|
program/copydirthread.h \
|
|
|
|
program/eaclock.h \
|
|
|
|
program/ebase.h \
|
|
|
|
program/edclock.h \
|
|
|
|
program/eenviron.h \
|
|
|
|
program/egif.h \
|
|
|
|
program/emultiwin.h \
|
|
|
|
program/ephoto.h \
|
|
|
|
program/etext.h \
|
|
|
|
program/etimer.h \
|
|
|
|
program/evideo.h \
|
|
|
|
program/eweb.h \
|
|
|
|
program/gentmpthread.h \
|
|
|
|
program/pageeditor.h \
|
|
|
|
program/pagelistitem.h \
|
|
|
|
program/progcreatedlg.h \
|
|
|
|
program/progeditorwin.h \
|
|
|
|
program/progitem.h \
|
|
|
|
program/sendprogramdialog.h \
|
|
|
|
program/sendprogthread.h \
|
|
|
|
program/videosplitthread.h \
|
|
|
|
program/wplanitem.h \
|
|
|
|
program/wplanlist.h \
|
|
|
|
program/wprogrampublishitem.h \
|
|
|
|
|
|
|
|
TRANSLATIONS += \
|
|
|
|
translations/app_zh_CN.ts \
|
|
|
|
translations/app_zh_TW.ts \
|
|
|
|
translations/app_ja.ts \
|
|
|
|
translations/app_en.ts
|
|
|
|
|
|
|
|
EXTRA_TRANSLATIONS += \
|
|
|
|
translations/qt_zh_CN.ts \
|
|
|
|
translations/qt_zh_TW.ts \
|
|
|
|
translations/qt_ja.ts \
|
|
|
|
translations/qt_en.ts
|
|
|
|
|
2023-04-23 10:04:49 +08:00
|
|
|
include(./xlsx/qtxlsx.pri)
|