aboutsummaryrefslogtreecommitdiff
path: root/Makefile.libretro
diff options
context:
space:
mode:
authorGregor Richards2016-12-09 19:56:33 -0500
committerGregor Richards2016-12-09 19:56:33 -0500
commit8fc5171a4c53b6f0e7ef7247d36ee5e05eaf0a07 (patch)
tree1c711b85837e96914b692778376f7cf2dc51927f /Makefile.libretro
parent6a0ea0daa46d27def21f39fcae216a7e8f2abdf3 (diff)
downloadpcsx_rearmed-8fc5171a4c53b6f0e7ef7247d36ee5e05eaf0a07.tar.gz
pcsx_rearmed-8fc5171a4c53b6f0e7ef7247d36ee5e05eaf0a07.tar.bz2
pcsx_rearmed-8fc5171a4c53b6f0e7ef7247d36ee5e05eaf0a07.zip
Report git version with library_version
Diffstat (limited to 'Makefile.libretro')
-rw-r--r--Makefile.libretro4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.libretro b/Makefile.libretro
index a7fa0eb..df1cec2 100644
--- a/Makefile.libretro
+++ b/Makefile.libretro
@@ -22,6 +22,10 @@ CC_AS ?= $(CC)
CFLAGS ?=
TARGET_NAME := pcsx_rearmed
+GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
+ifneq ($(GIT_VERSION)," unknown")
+ CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
+endif
LIBZ := -lz
LIBPTHREAD := -lpthread
LIBDL := -ldl