2023-11-08 13:02:26 +01:00
|
|
|
TEMPLATE = lib
|
|
|
|
TARGET = CAslave
|
2024-02-02 13:34:39 +01:00
|
|
|
VERSION="1.0.2"
|
2023-12-20 16:48:57 +01:00
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
../include/reporting_thread.h
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
../src/reporting_thread.cpp
|
2023-11-08 13:02:26 +01:00
|
|
|
|
|
|
|
include(../DCLibraries.pri)
|
|
|
|
|
2023-12-20 16:48:57 +01:00
|
|
|
win32 {
|
|
|
|
BUILD_DATE=$$system("date /t")
|
|
|
|
BUILD_TIME=$$system("time /t")
|
|
|
|
GIT_COMMIT=""
|
|
|
|
EXTENDED_VERSION=""
|
|
|
|
EXTENDED_VERSION_LIB=""
|
|
|
|
} else {
|
|
|
|
BUILD_DATE=$$system("date +%d-%m-%y")
|
|
|
|
BUILD_TIME=$$system("date +%H:%M:%S")
|
|
|
|
|
|
|
|
GIT_COMMIT=$$system("git log -1 --format=oneline . | cut -d' ' -f1")
|
|
|
|
EXTENDED_VERSION_LIB_="libCAslave-$${VERSION}-$${GIT_COMMIT}"
|
|
|
|
}
|
|
|
|
|
|
|
|
DEFINES+=APP_VERSION=\\\"$$VERSION\\\"
|
|
|
|
DEFINES+=APP_BUILD_DATE=\\\"$$BUILD_DATE\\\"
|
|
|
|
DEFINES+=APP_BUILD_TIME=\\\"$$BUILD_TIME\\\"
|
|
|
|
DEFINES+=APP_EXTENDED_VERSION=\\\"$$EXTENDED_VERSION\\\"
|
|
|
|
DEFINES+=APP_EXTENDED_VERSION_LIB=\\\"$$EXTENDED_VERSION_LIB\\\"
|
|
|
|
|
2023-11-08 13:02:26 +01:00
|
|
|
DEFINES+=THIS_IS_CA_SLAVE
|
|
|
|
DESTDIR=$${_PRO_FILE_PWD_}/../build
|
2023-11-08 16:24:47 +01:00
|
|
|
|
|
|
|
unix {
|
|
|
|
system("mkdir -p $${DESTDIR}")
|
|
|
|
system("cp ../include/interfaces.h $${DESTDIR}")
|
|
|
|
}
|