From 3d462928a6d854f62139590a642279acdf489d04 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 11 Dec 2017 09:23:58 +1100 Subject: [PATCH] [client] added git version to build --- client/Makefile | 2 ++ client/main.c | 2 ++ 2 files changed, 4 insertions(+) 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;