mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-06-16 07:27:16 +02:00
libretro: Allow setting GIT_VERSION.
This commit is contained in:
@@ -41,7 +41,7 @@ CFLAGS += -I platform/libretro/libretro-common/include/vfs
|
||||
STATIC_LINKING:= 0
|
||||
TARGET_NAME := picodrive
|
||||
LIBM := -lm
|
||||
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
|
||||
GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown)"
|
||||
ifneq ($(GIT_VERSION)," unknown")
|
||||
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
|
||||
endif
|
||||
|
||||
@@ -52,8 +52,8 @@ SOURCES_C := $(LIBRETRO_DIR)/libretro.c \
|
||||
|
||||
COREFLAGS := $(addprefix -D,$(DEFINES)) -fno-strict-aliasing
|
||||
|
||||
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
|
||||
ifneq ($(GIT_VERSION)," unknown")
|
||||
GIT_VERSION := $(shell git rev-parse --short HEAD || echo unknown)
|
||||
ifneq ($(GIT_VERSION),"unknown")
|
||||
COREFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user