2022-04-20 00:54:10 +02:00
|
|
|
QT += core gui
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
CONFIG += c++17
|
2022-07-04 23:23:20 +02:00
|
|
|
|
|
|
|
# debugging
|
|
|
|
CONFIG += debug
|
|
|
|
|
2023-02-05 13:46:26 +01:00
|
|
|
MOC_DIR = build/generated/
|
|
|
|
UI_DIR = build/ui/
|
|
|
|
RCC_DIR = build/rcc/
|
|
|
|
OBJECTS_DIR = build/objects/
|
|
|
|
|
2022-07-02 17:41:02 +02:00
|
|
|
unix:LIBS += -lcurl -pthread -lrt
|
2022-04-20 00:54:10 +02:00
|
|
|
|
|
|
|
# The following define makes your compiler emit warnings if you use
|
|
|
|
# any Qt feature that has been marked deprecated (the exact warnings
|
|
|
|
# depend on your compiler). Please consult the documentation of the
|
|
|
|
# deprecated API in order to know how to port your code away from it.
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
2022-10-26 22:01:03 +02:00
|
|
|
DEFINES += LOG_ENABLEQT=1
|
2022-04-20 00:54:10 +02:00
|
|
|
|
|
|
|
# You can also make your code fail to compile if it uses 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
|
|
|
|
|
2023-02-05 13:53:26 +01:00
|
|
|
DEFINES += LOLAA_VERSION=\\\"0.0.7\\\"
|
2022-10-08 18:38:01 +02:00
|
|
|
|
2022-04-20 19:26:28 +02:00
|
|
|
# parameters: var, prepend, append
|
|
|
|
defineReplace(prependAll) {
|
|
|
|
for(a,$$1):result += $$2$${a}$$3
|
|
|
|
return($$result)
|
|
|
|
}
|
|
|
|
|
2022-04-20 00:54:10 +02:00
|
|
|
SOURCES += \
|
2022-04-26 19:36:15 +02:00
|
|
|
src/arg.cpp \
|
2022-07-09 01:01:51 +02:00
|
|
|
src/blitzapi.cpp \
|
2022-07-05 23:45:28 +02:00
|
|
|
src/champcache.cpp \
|
2022-07-02 22:25:20 +02:00
|
|
|
src/championsearch.cpp \
|
|
|
|
src/champrow.cpp \
|
2022-06-27 20:45:01 +02:00
|
|
|
src/clientaccess.cpp \
|
2022-07-02 12:36:38 +02:00
|
|
|
src/clientapi_json.cpp \
|
2022-06-27 20:45:01 +02:00
|
|
|
src/clientapi.cpp \
|
2023-05-02 21:31:17 +02:00
|
|
|
src/clipboardpopup.cpp \
|
2022-04-24 01:27:46 +02:00
|
|
|
src/config.cpp \
|
2022-04-21 23:42:53 +02:00
|
|
|
src/datadragon.cpp \
|
2022-04-23 20:33:21 +02:00
|
|
|
src/datadragonimagecache.cpp \
|
2022-04-23 22:35:44 +02:00
|
|
|
src/files.cpp \
|
2022-04-24 01:27:46 +02:00
|
|
|
src/json.cpp \
|
2023-08-27 16:51:02 +02:00
|
|
|
src/loadingwindow.cpp \
|
2022-04-20 00:54:10 +02:00
|
|
|
src/lolautoaccept.cpp \
|
|
|
|
src/main.cpp \
|
|
|
|
src/mainwindow.cpp \
|
2022-04-23 22:28:01 +02:00
|
|
|
src/memoryimagecache.cpp \
|
2022-06-27 20:45:01 +02:00
|
|
|
src/restclient.cpp \
|
2023-05-01 22:36:11 +02:00
|
|
|
src/runeaspektbutton.cpp \
|
2023-06-13 22:40:55 +02:00
|
|
|
src/runeaspektbuttongroup.cpp \
|
2022-07-09 01:01:51 +02:00
|
|
|
src/runedisplay.cpp \
|
2023-05-01 22:36:11 +02:00
|
|
|
src/runeeditor.cpp \
|
2023-04-23 19:13:49 +02:00
|
|
|
src/runemanager.cpp \
|
2022-07-10 14:32:44 +02:00
|
|
|
src/runepage.cpp \
|
2023-04-23 19:13:49 +02:00
|
|
|
src/runepagelist.cpp \
|
2022-07-04 00:30:00 +02:00
|
|
|
src/settingstab.cpp \
|
2022-04-21 00:47:57 +02:00
|
|
|
src/stagesettings.cpp \
|
2022-04-20 00:54:10 +02:00
|
|
|
thirdparty/Log/Log.cpp
|
|
|
|
|
2022-08-24 16:12:03 +02:00
|
|
|
# platform specific implementations
|
|
|
|
win32:SOURCES += src/clientaccess_windows.cpp
|
|
|
|
unix:SOURCES += src/clientaccess_linux.cpp
|
2022-04-20 00:54:10 +02:00
|
|
|
|
|
|
|
HEADERS += \
|
2022-04-26 19:36:15 +02:00
|
|
|
include/arg.h \
|
2022-07-09 01:01:51 +02:00
|
|
|
include/blitzapi.h \
|
2022-07-05 23:45:28 +02:00
|
|
|
include/champcache.h \
|
2022-07-02 22:25:20 +02:00
|
|
|
include/championsearch.h \
|
|
|
|
include/champrow.h \
|
2022-06-27 20:45:01 +02:00
|
|
|
include/clientaccess.h \
|
|
|
|
include/clientapi.h \
|
2023-05-02 21:31:17 +02:00
|
|
|
include/clipboardpopup.h \
|
2022-04-24 01:27:46 +02:00
|
|
|
include/config.h \
|
2022-04-21 23:42:53 +02:00
|
|
|
include/datadragon.h \
|
2022-04-23 20:33:21 +02:00
|
|
|
include/datadragonimagecache.h \
|
2022-07-05 23:56:09 +02:00
|
|
|
include/defer.h \
|
2022-04-23 22:35:44 +02:00
|
|
|
include/files.h \
|
2022-04-24 01:27:46 +02:00
|
|
|
include/json.h \
|
2023-08-27 16:51:02 +02:00
|
|
|
include/loadingwindow.h \
|
2022-04-20 00:54:10 +02:00
|
|
|
include/lolautoaccept.h \
|
|
|
|
include/mainwindow.h \
|
2022-04-23 22:28:01 +02:00
|
|
|
include/memoryimagecache.h \
|
2022-06-27 20:45:01 +02:00
|
|
|
include/restclient.h \
|
2023-05-01 22:36:11 +02:00
|
|
|
include/runeaspektbutton.h \
|
2023-06-13 22:40:55 +02:00
|
|
|
include/runeaspektbuttongroup.h \
|
2022-07-09 01:01:51 +02:00
|
|
|
include/runedisplay.h \
|
2023-05-01 22:36:11 +02:00
|
|
|
include/runeeditor.h \
|
2023-04-23 19:13:49 +02:00
|
|
|
include/runemanager.h \
|
2022-07-10 14:32:44 +02:00
|
|
|
include/runepage.h \
|
2023-04-23 19:13:49 +02:00
|
|
|
include/runepagelist.h \
|
2022-07-04 00:30:00 +02:00
|
|
|
include/settingstab.h \
|
2022-04-21 00:47:57 +02:00
|
|
|
include/stagesettings.h \
|
2022-04-20 00:54:10 +02:00
|
|
|
thirdparty/Log/Log.h
|
|
|
|
|
|
|
|
FORMS += \
|
2022-07-02 22:25:20 +02:00
|
|
|
ui/championsearch.ui \
|
2023-05-02 21:31:17 +02:00
|
|
|
ui/clipboardpopup.ui \
|
2023-08-27 16:51:02 +02:00
|
|
|
ui/loadingwindow.ui \
|
2022-04-21 00:47:57 +02:00
|
|
|
ui/mainwindow.ui \
|
2023-05-01 22:36:11 +02:00
|
|
|
ui/runeaspektbutton.ui \
|
2022-07-09 01:01:51 +02:00
|
|
|
ui/runedisplay.ui \
|
2023-05-01 22:36:11 +02:00
|
|
|
ui/runeeditor.ui \
|
2023-04-23 19:13:49 +02:00
|
|
|
ui/runemanager.ui \
|
|
|
|
ui/runepagelist.ui \
|
2022-07-04 00:30:00 +02:00
|
|
|
ui/settingstab.ui \
|
2022-04-21 00:47:57 +02:00
|
|
|
ui/stagesettings.ui
|
2022-04-20 00:54:10 +02:00
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/include/ \
|
2022-07-02 17:41:02 +02:00
|
|
|
$$PWD/thirdparty/Log/
|
2022-04-20 00:54:10 +02:00
|
|
|
|
2023-02-05 13:46:26 +01:00
|
|
|
# translations
|
2022-04-20 19:26:28 +02:00
|
|
|
LANGUAGES = de_DE en
|
2023-02-05 13:46:26 +01:00
|
|
|
CONFIG += lrelease embed_translations
|
2022-04-20 19:26:28 +02:00
|
|
|
|
2022-09-05 15:33:40 +02:00
|
|
|
TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/resources/ts/, .ts)
|
2022-04-20 19:26:28 +02:00
|
|
|
|
2022-04-21 00:47:57 +02:00
|
|
|
updatelang.commands = lupdate $$_PRO_FILE_
|
2023-02-05 13:46:26 +01:00
|
|
|
QMAKE_EXTRA_TARGETS += updatelang
|
2022-04-20 19:26:28 +02:00
|
|
|
|
2022-04-24 21:05:10 +02:00
|
|
|
# build AppImage
|
|
|
|
unix {
|
2022-07-03 17:07:27 +02:00
|
|
|
linuxdeploy-x86_64.AppImage.commands = wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod u+x linuxdeploy-x86_64.AppImage
|
2022-04-24 21:05:10 +02:00
|
|
|
|
2022-09-05 16:41:55 +02:00
|
|
|
resources/lolautoaccept.png.depends = resources/lolautoaccept.svg
|
|
|
|
resources/lolautoaccept.png.commands = rsvg-convert -w 512 -h 512 resources/lolautoaccept.svg -o resources/lolautoaccept.png
|
2022-05-21 00:12:52 +02:00
|
|
|
|
2022-09-05 15:33:40 +02:00
|
|
|
appimg.depends = linuxdeploy-x86_64.AppImage $${TARGET} resources/lolautoaccept.png
|
2022-04-25 23:36:02 +02:00
|
|
|
appimg.commands = rm -rf AppDir ; \
|
2022-07-17 00:58:06 +02:00
|
|
|
mkdir -p AppDir/ts ; \
|
2022-09-05 15:33:40 +02:00
|
|
|
./linuxdeploy-x86_64.AppImage --appdir=AppDir -e lolautoaccept -i resources/lolautoaccept.png -d resources/lolautoaccept.desktop --output appimage
|
2022-04-24 21:05:10 +02:00
|
|
|
|
2022-09-05 15:33:40 +02:00
|
|
|
QMAKE_EXTRA_TARGETS += appimg linuxdeploy-x86_64.AppImage resources/lolautoaccept.png
|
2022-04-24 21:05:10 +02:00
|
|
|
|
2022-09-05 15:33:40 +02:00
|
|
|
QMAKE_CLEAN += linuxdeploy-x86_64.AppImage resources/lolautoaccept.png
|
2022-04-24 21:05:10 +02:00
|
|
|
}
|
|
|
|
|
2022-08-24 16:12:03 +02:00
|
|
|
win32 {
|
|
|
|
INCLUDEPATH += $$PWD/../curl/include/
|
|
|
|
LIBS += $$PWD/../curl/lib/libbrotlicommon.a $$PWD/../curl/lib/libbrotlidec.a $$PWD/../curl/lib/libcrypto.a $$PWD/../curl/lib/libcurl.a $$PWD/../curl/lib/libcurl.dll.a $$PWD/../curl/lib/libgsasl.a $$PWD/../curl/lib/libidn2.a $$PWD/../curl/lib/libnghttp2.a $$PWD/../curl/lib/libnghttp3.a $$PWD/../curl/lib/libngtcp2.a $$PWD/../curl/lib/libngtcp2_crypto_openssl.a $$PWD/../curl/lib/libssh2.a $$PWD/../curl/lib/libssl.a $$PWD/../curl/lib/libz.a $$PWD/../curl/lib/libzstd.a
|
2022-09-05 16:41:55 +02:00
|
|
|
|
|
|
|
# to create the ico: convert -density 300 -define icon:auto-resize=256,128,96,64,48,32,16 -background none resources/lolautoaccept.svg resources/lolautoaccept.ico
|
|
|
|
RC_ICONS = resources/lolautoaccept.ico
|
2022-08-24 16:12:03 +02:00
|
|
|
}
|
|
|
|
|
2022-04-20 00:54:10 +02:00
|
|
|
# Default rules for deployment.
|
|
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
2022-09-05 02:05:42 +02:00
|
|
|
else: unix:!android: target.path = /usr/bin
|
2022-04-20 00:54:10 +02:00
|
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
|
|
|
|
|
|
|
|
# https://wiki.qt.io/Automating_generation_of_qm_files
|
2022-09-05 15:33:40 +02:00
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
resources/res.qrc
|