[client] added git version to build

This commit is contained in:
Geoffrey McRae 2017-12-11 09:23:58 +11:00
parent 6849efcb0d
commit 3d462928a6
2 changed files with 4 additions and 0 deletions

View File

@ -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 \

View File

@ -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;