dlgTextEntry_Keyboard: rename to TouchTextEntry
[xcsoar.git] / build / version.mk
blob715604b717151dc543ffa650a5d1036ec1de62a3
1 VERSION = $(strip $(shell cat $(topdir)/VERSION.txt))
2 FULL_VERSION = $(VERSION)
4 CPPFLAGS += -DXCSOAR_VERSION=\"$(VERSION)\"
6 GIT_COMMIT_ID := $(shell git rev-parse --short --verify HEAD 2>$(NUL))
7 RELEASE_COMMIT_ID := $(shell git rev-parse --short --verify "v$(VERSION)" 2>$(NUL))
8 # only append the commit id for unreleased builds (no release tag)
9 ifneq ($(GIT_COMMIT_ID),$(RELEASE_COMMIT_ID))
10 CPPFLAGS += -DGIT_COMMIT_ID=\"$(GIT_COMMIT_ID)\"
11 FULL_VERSION := $(FULL_VERSION)~$(GIT_COMMIT_ID)
12 endif
14 $(call SRC_TO_OBJ,$(SRC)/Version.cpp): $(topdir)/VERSION.txt