From f44d36b05e43cabde31aeaba5d25fded140345a1 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 27 Jan 2023 19:42:08 +0100 Subject: Added diff.cpp --- common.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common.mk') diff --git a/common.mk b/common.mk index 1f4c2df..5f4c77c 100644 --- a/common.mk +++ b/common.mk @@ -61,3 +61,11 @@ LIBS+=-lboost_filesystem -lpthread LIBS+=-lSQLiteCpp $(shell pkg-config --libs qrcodegencpp GraphicsMagick++ fmt sqlite3) LIBS+=-lreichwein +SRC_ROOT=$(shell echo $(MAKEFILE_LIST) | tr " " "\n" | grep common.mk | sed -e 's/\([^ ]*\)common.mk/\1/g') +ifeq ($(SRC_ROOT),) +SRC_ROOT=. +endif + +VERSION=$(shell dpkg-parsechangelog --show-field Version --file $(SRC_ROOT)/debian/changelog) +CXXFLAGS+=-DWHITEBOARD_VERSION=\"$(VERSION)\" + -- cgit v1.2.3