added dynamic build time and hash to minarch

This commit is contained in:
Shaun Inman 2023-02-02 08:37:15 -05:00
parent 6cbc2caef6
commit 34c9429158
2 changed files with 5 additions and 1 deletions

View file

@ -2787,7 +2787,7 @@ static int OptionSaveChanges_openMenu(MenuList* list, int i) {
static MenuList options_menu = {
.type = MENU_LIST,
.items = (MenuItem[]) {
{"Frontend", "MinUI (" RELEASE_NAME " " COMMIT_HASH ")",.on_confirm=OptionFrontend_openMenu},
{"Frontend", "MinUI (" BUILD_DATE " " BUILD_HASH ")",.on_confirm=OptionFrontend_openMenu},
{"Emulator",.on_confirm=OptionEmulator_openMenu},
{"Controls",.on_confirm=OptionControls_openMenu},
{"Shortcuts",.on_confirm=OptionShortcuts_openMenu},

View file

@ -12,6 +12,10 @@ LDFLAGS = -ldl -lSDL -lSDL_image -lSDL_ttf -lmsettings -lpthread
# CFLAGS += -fsanitize=address -fno-common
# LDFLAGS += -lasan
BUILD_DATE!=date +%Y.%m.%d
BUILD_HASH!=git rev-parse --short HEAD
CFLAGS += -DBUILD_DATE=\"${BUILD_DATE}\" -DBUILD_HASH=\"${BUILD_HASH}\"
all:
$(CC) main.c ../common/scaler_neon.c ../common/utils.c ../common/api.c -o $(TARGET) $(CFLAGS) $(LDFLAGS)
clean: