2023-07-31 16:56:16 +02:00
|
|
|
QT += core gui
|
2023-07-10 15:59:28 +02:00
|
|
|
QT += widgets serialport network
|
2023-07-31 16:56:16 +02:00
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
2023-05-25 10:21:42 +02:00
|
|
|
|
2023-06-19 15:58:15 +02:00
|
|
|
TARGET = ATBUpdateTool
|
2023-05-25 10:21:42 +02:00
|
|
|
|
2023-07-31 16:56:16 +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
|
|
|
|
|
|
|
|
# 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-08-30 11:47:56 +02:00
|
|
|
VERSION=1.3.0
|
2023-07-06 14:11:28 +02:00
|
|
|
|
2023-06-16 16:47:56 +02:00
|
|
|
INCLUDEPATH += plugins
|
|
|
|
|
2023-06-20 16:08:02 +02:00
|
|
|
CONFIG += c++17 console
|
2023-05-25 10:21:42 +02:00
|
|
|
# CONFIG -= app_bundle
|
|
|
|
|
2023-07-06 14:11:28 +02:00
|
|
|
DEFINES+=APP_VERSION=\\\"$$VERSION\\\"
|
2023-05-25 10:21:42 +02:00
|
|
|
|
2023-07-19 16:46:29 +02:00
|
|
|
QMAKE_CXXFLAGS += -g
|
2023-05-25 10:21:42 +02:00
|
|
|
QMAKE_CXXFLAGS += -Wno-deprecated-copy
|
|
|
|
|
|
|
|
# custom target for 'git subtree'
|
|
|
|
# subtree.target = subtree
|
|
|
|
# subtree.commands = git subtree add --prefix DCPlugin https://git.mimbach49.de/GerhardHoffmann/DCPlugin.git master --squash
|
|
|
|
# subtree.depends =
|
|
|
|
# QMAKE_EXTRA_UNIX_TARGETS += subtree
|
|
|
|
|
2023-06-16 16:47:56 +02:00
|
|
|
# ! exists(DCPlugin) {
|
|
|
|
# $$system("git subtree add --prefix DCPlugin https://git.mimbach49.de/GerhardHoffmann/DCPlugin.git master --squash")
|
|
|
|
# } else {
|
2023-05-25 10:21:42 +02:00
|
|
|
# $$system("git subtree pull --prefix DCPlugin https://git.mimbach49.de/GerhardHoffmann/DCPlugin.git master --squash")
|
2023-06-16 16:47:56 +02:00
|
|
|
# }
|
2023-05-25 10:21:42 +02: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
|
|
|
|
|
|
|
|
contains( CONFIG, PTU5 ) {
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += serialport
|
|
|
|
CONFIG += link_pkgconfig
|
|
|
|
lessThan(QT_MAJOR_VERSION, 5): PKGCONFIG += qextserialport
|
2023-07-11 16:59:49 +02:00
|
|
|
QMAKE_CXXFLAGS += -std=c++17 # for GCC >= 4.7
|
2023-05-25 10:21:42 +02:00
|
|
|
QMAKE_CXXFLAGS += -Wno-deprecated-copy
|
|
|
|
ARCH = PTU5
|
|
|
|
DEFINES+=PTU5
|
|
|
|
}
|
2023-06-22 17:46:09 +02:00
|
|
|
contains( CONFIG, PTU5_YOCTO ) {
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += serialport
|
2023-07-20 09:06:07 +02:00
|
|
|
QMAKE_CXXFLAGS += -std=c++17 # for GCC >= 4.7
|
|
|
|
QMAKE_CXXFLAGS += -Wno-deprecated-copy
|
2023-06-22 17:46:09 +02:00
|
|
|
PTU5BASEPATH = /opt/devel/ptu5
|
|
|
|
ARCH = PTU5
|
|
|
|
DEFINES+=PTU5
|
|
|
|
|
|
|
|
# add qmqtt lib
|
|
|
|
#LIBS += -lQt5Qmqtt
|
|
|
|
}
|
2023-05-25 10:21:42 +02:00
|
|
|
contains( CONFIG, DesktopLinux ) {
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += serialport
|
|
|
|
lessThan(QT_MAJOR_VERSION, 5): CONFIG += extserialport
|
|
|
|
# QMAKE_CC = ccache $$QMAKE_CC
|
|
|
|
# QMAKE_CXX = ccache $$QMAKE_CXX
|
2023-07-11 16:59:49 +02:00
|
|
|
QMAKE_CXXFLAGS += -std=c++17
|
2023-05-25 10:21:42 +02:00
|
|
|
QMAKE_CXXFLAGS += -Wno-deprecated-copy
|
|
|
|
linux-clang { QMAKE_CXXFLAGS += -Qunused-arguments }
|
|
|
|
ARCH = DesktopLinux
|
|
|
|
DEFINES+=DesktopLinux
|
|
|
|
}
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
main.cpp \
|
2023-08-04 14:10:47 +02:00
|
|
|
progress_event.cpp \
|
2023-07-31 16:56:16 +02:00
|
|
|
mainwindow.cpp \
|
|
|
|
utils.cpp \
|
2023-05-25 10:21:42 +02:00
|
|
|
update.cpp \
|
2023-07-10 15:59:28 +02:00
|
|
|
git/git_client.cpp \
|
2023-07-11 16:59:49 +02:00
|
|
|
ismas/ismas_client.cpp \
|
2023-07-10 15:59:28 +02:00
|
|
|
process/command.cpp \
|
2023-06-16 16:47:56 +02:00
|
|
|
message_handler.cpp \
|
|
|
|
worker.cpp \
|
|
|
|
worker_thread.cpp
|
2023-05-25 10:21:42 +02:00
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
update.h \
|
2023-08-04 14:10:47 +02:00
|
|
|
progress_event.h \
|
2023-07-31 16:56:16 +02:00
|
|
|
utils.h \
|
|
|
|
mainwindow.h \
|
2023-07-10 15:59:28 +02:00
|
|
|
git/git_client.h \
|
|
|
|
apism/ismas_data.h \
|
2023-07-11 16:59:49 +02:00
|
|
|
ismas/ismas_client.h \
|
2023-07-10 15:59:28 +02:00
|
|
|
process/command.h \
|
2023-05-25 10:21:42 +02:00
|
|
|
message_handler.h \
|
2023-06-16 16:47:56 +02:00
|
|
|
worker.h \
|
|
|
|
worker_thread.h \
|
|
|
|
plugins/interfaces.h
|
2023-05-25 10:21:42 +02:00
|
|
|
|
2023-07-31 16:56:16 +02:00
|
|
|
FORMS += \
|
|
|
|
mainwindow.ui
|
|
|
|
|
2023-05-25 10:21:42 +02:00
|
|
|
OTHER_FILES += \
|
2023-06-16 16:47:56 +02:00
|
|
|
/opt/app/tools/atbupdate/update_log.csv \
|
|
|
|
main.cpp.bck \
|
|
|
|
main.cpp.bck2 \
|
|
|
|
main.cpp.bck3
|
2023-05-25 10:21:42 +02:00
|
|
|
|
|
|
|
# https://blog.developer.atlassian.com/the-power-of-git-subtree/?_ga=2-71978451-1385799339-1568044055-1068396449-1567112770
|
|
|
|
# git subtree add --prefix DCPlugin https://git.mimbach49.de/GerhardHoffmann/DCPlugin.git master --squash
|
|
|
|
# git subtree pull --prefix DCPlugin https://git.mimbach49.de/GerhardHoffmann/DCPlugin.git master --squash
|
2023-06-16 16:47:56 +02:00
|
|
|
# include(./DCPlugin/DCPlugin.pri)
|
2023-07-31 16:56:16 +02:00
|
|
|
|
2023-08-03 09:50:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
# for running program on target through QtCreator
|
|
|
|
contains( CONFIG, PTU5 ) {
|
|
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
|
|
else: unix:!android: target.path = /opt/app/tools/atbupdate/
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
}
|