aboutsummaryrefslogtreecommitdiff
path: root/Makefile.libretro
diff options
context:
space:
mode:
authorTwinaphex2016-12-10 01:59:24 +0100
committerGitHub2016-12-10 01:59:24 +0100
commit30373a821c80e223d5c592ccce95377ff57b4998 (patch)
tree1c711b85837e96914b692778376f7cf2dc51927f /Makefile.libretro
parent6a0ea0daa46d27def21f39fcae216a7e8f2abdf3 (diff)
parent8fc5171a4c53b6f0e7ef7247d36ee5e05eaf0a07 (diff)
downloadpcsx_rearmed-30373a821c80e223d5c592ccce95377ff57b4998.tar.gz
pcsx_rearmed-30373a821c80e223d5c592ccce95377ff57b4998.tar.bz2
pcsx_rearmed-30373a821c80e223d5c592ccce95377ff57b4998.zip
Merge pull request #83 from GregorR/libretro-git-version
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