Commit b0d4c5b3 authored by Dorian Zedler's avatar Dorian Zedler

configured deployment rules for raspberry pi

parent fa26cf2d
......@@ -14,6 +14,7 @@ CONFIG(release, debug|release): {
} else {
Qt_SECRET_LIB_OUTPUT_DIR="$$PWD/build/debug"
}
unix:LIBS += -L$$Qt_SECRET_LIB_OUTPUT_DIR -lQt-Secret
win32:LIBS += -L$$Qt_SECRET_LIB_OUTPUT_DIR -lQt-Secret1
......
......@@ -21,7 +21,7 @@ CONFIG(release, debug|release): {
DESTDIR="$$PWD/build/debug"
}
#include($$PWD/GMP/GMP.pri)
include($$PWD/GMP/GMP.pri)
VERSION = 1.2.0
......@@ -32,4 +32,5 @@ HEADERS += \
SOURCES += \
Qt-RSA/qrsaencryption.cpp
include($$PWD/GMP/GMP.pri)
target.path = $$GLOBAL_TARGET_PATH/lib
!isEmpty(target.path): INSTALLS += target
......@@ -4,3 +4,10 @@ CONFIG += ordered
SUBDIRS += \
Qt-Secret \
ScStwBasestationSrc
ScStwBasestationSrc.depends = Qt-Secret
contains(QMAKE_CXX, .*raspbian.*arm.*):{
GLOBAL_TARGET_PATH = "/home/pi/ScStwBasestation/bin"
cache(GLOBAL_TARGET_PATH, set)
}
......@@ -4,15 +4,22 @@ QT += network multimedia sql
CONFIG += c++11 console
CONFIG -= app_bundle
TARGET = ScStwBasestation
VERSION = 0.8.1
# add version to defined
DEFINES += APP_VERSION=\"\\\"$${VERSION}\\\"\"
# for raspi include wiringpi lib
# for raspi include wiringpi lib and change target path
contains(QMAKE_CXX, .*raspbian.*arm.*):{
message("this is raspi")
DEFINES += RASPI
LIBS += -lwiringPi
}
# Default rules for deployment.
target.path = $$GLOBAL_TARGET_PATH
!isEmpty(target.path): INSTALLS += target
QT_DEBUG_PLUGINS=10
QT_MESSAGE_PATTERN=[%{type}] %{appname} (%{file}:%{line}) - %{message}
......@@ -22,14 +29,6 @@ QT_MESSAGE_PATTERN=[%{type}] %{appname} (%{file}:%{line}) - %{message}
# 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 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
# add version
DEFINES += APP_VERSION=\"\\\"$${VERSION}\\\"\"
SOURCES += \
sources/athleteprofiles.cpp \
sources/main.cpp \
......@@ -40,12 +39,6 @@ SOURCES += \
sources/appsettings.cpp \
sources/audioplayer.cpp
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
#else: unix:!android: target.path = /opt/$${TARGET}/bin
else: unix:!android: target.path = /home/pi/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
HEADERS += \
headers/athleteprofiles.h \
headers/mainactivity.h \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment