diff --git a/client/Makefile b/client/Makefile index 32161074..5b265e86 100644 --- a/client/Makefile +++ b/client/Makefile @@ -12,6 +12,8 @@ LDFLAGS += $(shell pkg-config --libs $(LIBS)) BUILD ?= .build BIN ?= bin +CFLAGS += -DBUILD_VERSION='"$(shell git describe --always --long --dirty --abbrev=10 --tags)"' + OBJS = main.o \ spice/spice.o \ ivshmem/ivshmem.o \ diff --git a/client/main.c b/client/main.c index 25acbd87..d1d1f514 100644 --- a/client/main.c +++ b/client/main.c @@ -562,6 +562,8 @@ int eventThread(void * arg) int run() { + DEBUG_INFO("Looking Glass (" BUILD_VERSION ")"); + memset(&state, 0, sizeof(state)); state.running = true; state.scaleX = 1.0f;