DCLibraries/lib_ca_master/lib_ca_master.pro

46 lines
1.1 KiB
Prolog
Raw Normal View History

2023-11-08 13:02:26 +01:00
TEMPLATE = lib
TARGET = CAmaster
VERSION="1.0.1"
2023-11-08 13:02:26 +01:00
2023-12-18 12:09:59 +01:00
HEADERS += \
../include/com.h \
../include/datIf.h \
../include/prot.h \
../include/download_thread.h
2023-12-18 12:09:59 +01:00
SOURCES += \
../src/com.cpp \
../src/datIf.cpp \
../src/prot.cpp \
../src/download_thread.cpp
2023-12-18 12:09:59 +01:00
2023-11-08 13:02:26 +01:00
include(../DCLibraries.pri)
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="libCAmaster-$${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-12-18 12:09:59 +01:00
2023-11-08 13:02:26 +01:00
DEFINES+=THIS_IS_CA_MASTER
DESTDIR=$${_PRO_FILE_PWD_}/../build
2023-11-08 16:24:27 +01:00
unix {
system("mkdir -p $${DESTDIR}")
system("cp ../include/interfaces.h $${DESTDIR}")
}