mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 03:31:49 +01:00
Report git version with library_version
This commit is contained in:
parent
40c978223b
commit
fd06e074bb
@ -36,6 +36,10 @@ endif
|
|||||||
|
|
||||||
TARGET_NAME := genesis_plus_gx
|
TARGET_NAME := genesis_plus_gx
|
||||||
LIBM := -lm
|
LIBM := -lm
|
||||||
|
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
|
||||||
|
ifneq ($(GIT_VERSION)," unknown")
|
||||||
|
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
|
||||||
|
endif
|
||||||
|
|
||||||
# Unix
|
# Unix
|
||||||
ifeq ($(platform), unix)
|
ifeq ($(platform), unix)
|
||||||
|
@ -2,6 +2,11 @@ LOCAL_PATH := $(call my-dir)
|
|||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
|
||||||
|
ifneq ($(GIT_VERSION)," unknown")
|
||||||
|
LOCAL_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
|
||||||
|
endif
|
||||||
|
|
||||||
WANT_CRC32 := 1
|
WANT_CRC32 := 1
|
||||||
|
|
||||||
CORE_DIR := ../..
|
CORE_DIR := ../..
|
||||||
|
@ -1664,7 +1664,10 @@ void retro_set_input_state(retro_input_state_t cb) { input_state_cb = cb; }
|
|||||||
void retro_get_system_info(struct retro_system_info *info)
|
void retro_get_system_info(struct retro_system_info *info)
|
||||||
{
|
{
|
||||||
info->library_name = "Genesis Plus GX";
|
info->library_name = "Genesis Plus GX";
|
||||||
info->library_version = "v1.7.4";
|
#ifndef GIT_VERSION
|
||||||
|
#define GIT_VERSION ""
|
||||||
|
#endif
|
||||||
|
info->library_version = "v1.7.4" GIT_VERSION;
|
||||||
info->valid_extensions = "mdx|md|smd|gen|bin|cue|iso|sms|gg|sg";
|
info->valid_extensions = "mdx|md|smd|gen|bin|cue|iso|sms|gg|sg";
|
||||||
info->block_extract = false;
|
info->block_extract = false;
|
||||||
info->need_fullpath = true;
|
info->need_fullpath = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user