Skip to content

Commit

Permalink
Include the git version (from tags) as a preprocessor macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
sethk committed May 4, 2012
1 parent ab8df46 commit 3a27f24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefiles/Base.gmake
Expand Up @@ -54,6 +54,9 @@ PLATFORM_PATH = $(DEVELOPER_PATH)/Platforms/$(PLATFORM).platform
SDK_PATH = $(PLATFORM_PATH)/Developer/SDKs/$(SDK_NAME)
CFLAGS+= -arch $(ARCH) -isysroot $(SDK_PATH)

VERSION = $(shell git describe --tags --dirty --always --abbrev=6)
DEFINES+= VERSION="$(VERSION)"

PREFIX_HEADER?= $(PRODUCT_NAME)-Prefix.pch
PRECOMP_HEADER = $(notdir $(addsuffix $(PREFIX_HEADER),.gch))
$(SOURCES): $(BUILD_PATH)/$(PRECOMP_HEADER)
Expand Down

0 comments on commit 3a27f24

Please sign in to comment.