2021-07-20 20:27:32 -07:00
|
|
|
QT += core gui network
|
2021-03-25 05:00:19 -07:00
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
2021-04-22 07:10:47 -07:00
|
|
|
CONFIG += c++11 c++17
|
2021-03-25 05:00:19 -07:00
|
|
|
|
2021-04-05 07:07:21 -07:00
|
|
|
QMAKE_CXXFLAGS += -Wno-unused-function -Wno-unused-parameter
|
2021-04-05 06:50:58 -07:00
|
|
|
|
2022-02-20 21:01:03 -08:00
|
|
|
# Thanks to https://github.com/mrbindraw/TestVersion/blob/master/TestVersion.pro
|
|
|
|
GIT_VERSION = $$system(git describe --always --tags)
|
2022-02-21 20:38:09 -08:00
|
|
|
GIT_COMMIT = $$system(git rev-parse HEAD)
|
2022-02-20 21:01:03 -08:00
|
|
|
COMMAND_REMOVE_MAKEFILES=$$quote(rm $$system_path($$OUT_PWD\Makefile*))
|
|
|
|
PRE_BUILD_TARGET = .dummyfile
|
|
|
|
updatemakefiles.target = $$PRE_BUILD_TARGET
|
|
|
|
updatemakefiles.commands = $$COMMAND_REMOVE_MAKEFILES
|
|
|
|
updatemakefiles.depends = FORCE
|
|
|
|
PRE_TARGETDEPS += $$PRE_BUILD_TARGET
|
|
|
|
QMAKE_EXTRA_TARGETS += updatemakefiles
|
|
|
|
DEFINES += GIT_VERSION=\\\"$$GIT_VERSION\\\"
|
2022-02-21 20:38:09 -08:00
|
|
|
DEFINES += GIT_COMMIT=\\\"$$GIT_COMMIT\\\"
|
2022-02-20 21:01:03 -08:00
|
|
|
|
2021-03-25 05:00:19 -07:00
|
|
|
# You can make your code fail to compile if it uses deprecated APIs.
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
alert.cpp \
|
|
|
|
apps.cpp \
|
2021-12-27 12:04:39 -08:00
|
|
|
bookinfodialog.cpp \
|
2021-03-29 18:47:21 -07:00
|
|
|
brightnessdialog.cpp \
|
2021-03-25 05:00:19 -07:00
|
|
|
calendarapp.cpp \
|
2021-07-05 19:21:20 -07:00
|
|
|
dictionarywidget.cpp \
|
2021-10-08 20:37:32 -07:00
|
|
|
encryptionmanager.cpp \
|
2021-03-31 05:38:59 -07:00
|
|
|
generaldialog.cpp \
|
2021-10-09 08:07:10 -07:00
|
|
|
hourglassanimationwidget.cpp \
|
2021-04-29 20:36:25 -07:00
|
|
|
koboxappsdialog.cpp \
|
2021-04-27 05:40:08 -07:00
|
|
|
koboxsettings.cpp \
|
2021-12-26 05:36:29 -08:00
|
|
|
librarywidget.cpp \
|
2021-03-25 05:00:19 -07:00
|
|
|
main.cpp \
|
|
|
|
mainwindow.cpp \
|
2021-07-20 20:27:32 -07:00
|
|
|
otamanager.cpp \
|
2021-03-25 05:00:19 -07:00
|
|
|
quit.cpp \
|
|
|
|
reader.cpp \
|
|
|
|
savedwords.cpp \
|
2021-09-04 19:18:17 -07:00
|
|
|
searchresultswidget.cpp \
|
2021-03-25 05:00:19 -07:00
|
|
|
settings.cpp \
|
2021-04-24 09:44:57 -07:00
|
|
|
settingschooser.cpp \
|
2021-06-08 04:49:52 -07:00
|
|
|
textwidget.cpp \
|
2021-07-13 22:24:30 -07:00
|
|
|
toast.cpp \
|
2021-07-05 10:45:35 -07:00
|
|
|
usbms_splash.cpp \
|
2022-06-17 20:59:21 -07:00
|
|
|
userapps.cpp \
|
2021-07-05 13:01:32 -07:00
|
|
|
virtualkeyboard.cpp \
|
2021-07-13 09:27:38 -07:00
|
|
|
virtualkeypad.cpp \
|
|
|
|
wifidialog.cpp
|
2021-03-25 05:00:19 -07:00
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
alert.h \
|
|
|
|
apps.h \
|
2021-12-27 12:04:39 -08:00
|
|
|
bookinfodialog.h \
|
2021-03-29 18:47:21 -07:00
|
|
|
brightnessdialog.h \
|
2021-03-25 05:00:19 -07:00
|
|
|
calendarapp.h \
|
2021-07-05 19:21:20 -07:00
|
|
|
dictionarywidget.h \
|
2021-10-08 20:37:32 -07:00
|
|
|
encryptionmanager.h \
|
2021-04-05 06:50:58 -07:00
|
|
|
functions.h \
|
2021-03-31 05:38:59 -07:00
|
|
|
generaldialog.h \
|
2021-10-09 08:07:10 -07:00
|
|
|
hourglassanimationwidget.h \
|
2021-04-29 20:36:25 -07:00
|
|
|
koboxappsdialog.h \
|
2021-04-27 05:40:08 -07:00
|
|
|
koboxsettings.h \
|
2021-12-26 05:36:29 -08:00
|
|
|
librarywidget.h \
|
2021-03-25 05:00:19 -07:00
|
|
|
mainwindow.h \
|
2021-07-20 20:27:32 -07:00
|
|
|
otamanager.h \
|
2021-03-25 05:00:19 -07:00
|
|
|
quit.h \
|
|
|
|
reader.h \
|
|
|
|
savedwords.h \
|
2021-09-04 19:18:17 -07:00
|
|
|
searchresultswidget.h \
|
2021-03-25 05:00:19 -07:00
|
|
|
settings.h \
|
2021-04-24 09:44:57 -07:00
|
|
|
settingschooser.h \
|
2021-06-08 04:49:52 -07:00
|
|
|
textwidget.h \
|
2021-07-13 22:24:30 -07:00
|
|
|
toast.h \
|
2021-07-05 10:45:35 -07:00
|
|
|
usbms_splash.h \
|
2022-06-17 20:59:21 -07:00
|
|
|
userapps.h \
|
2021-07-05 13:01:32 -07:00
|
|
|
virtualkeyboard.h \
|
2021-07-13 09:27:38 -07:00
|
|
|
virtualkeypad.h \
|
|
|
|
wifidialog.h
|
2021-03-25 05:00:19 -07:00
|
|
|
|
|
|
|
FORMS += \
|
|
|
|
alert.ui \
|
|
|
|
apps.ui \
|
2021-12-27 12:04:39 -08:00
|
|
|
bookinfodialog.ui \
|
2021-03-29 18:47:21 -07:00
|
|
|
brightnessdialog.ui \
|
2021-03-25 05:00:19 -07:00
|
|
|
calendarapp.ui \
|
2021-07-05 19:21:20 -07:00
|
|
|
dictionarywidget.ui \
|
2021-10-08 20:37:32 -07:00
|
|
|
encryptionmanager.ui \
|
2021-03-31 05:38:59 -07:00
|
|
|
generaldialog.ui \
|
2021-10-09 08:07:10 -07:00
|
|
|
hourglassanimationwidget.ui \
|
2021-04-29 20:36:25 -07:00
|
|
|
koboxappsdialog.ui \
|
2021-04-27 05:40:08 -07:00
|
|
|
koboxsettings.ui \
|
2021-12-26 05:36:29 -08:00
|
|
|
librarywidget.ui \
|
2021-03-25 05:00:19 -07:00
|
|
|
mainwindow.ui \
|
2021-07-20 20:27:32 -07:00
|
|
|
otamanager.ui \
|
2021-03-25 05:00:19 -07:00
|
|
|
quit.ui \
|
|
|
|
reader.ui \
|
|
|
|
savedwords.ui \
|
2021-09-04 19:18:17 -07:00
|
|
|
searchresultswidget.ui \
|
2021-03-25 05:00:19 -07:00
|
|
|
settings.ui \
|
2021-04-24 09:44:57 -07:00
|
|
|
settingschooser.ui \
|
2021-06-08 04:49:52 -07:00
|
|
|
textwidget.ui \
|
2021-07-13 22:24:30 -07:00
|
|
|
toast.ui \
|
2021-07-05 10:45:35 -07:00
|
|
|
usbms_splash.ui \
|
2022-06-17 20:59:21 -07:00
|
|
|
userapps.ui \
|
2021-07-05 13:01:32 -07:00
|
|
|
virtualkeyboard.ui \
|
2021-07-13 09:27:38 -07:00
|
|
|
virtualkeypad.ui \
|
|
|
|
wifidialog.ui
|
2021-03-25 05:00:19 -07:00
|
|
|
|
|
|
|
# Default rules for deployment.
|
|
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
eink.qrc
|