forked from libretro/mame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMymakefile.patch
46 lines (43 loc) · 1.86 KB
/
Mymakefile.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--- makefile 2024-08-05 13:31:09.450056800 +0800
+++ makefile-p 2024-08-05 13:35:14.111870100 +0800
@@ -1111,15 +1111,15 @@
ifneq ($(IGNORE_GIT),1)
ifeq ($(OSD), retro)
-NEW_GIT_VERSION := $(shell git rev-parse --short HEAD)
+NEW_GIT_VERSION := aGuGu\'s Mame
else
-NEW_GIT_VERSION := $(shell git describe --dirty)
+NEW_GIT_VERSION := aGuGu\'s Mame
endif # retro
else
-NEW_GIT_VERSION := unknown
+NEW_GIT_VERSION := aGuGu\'s Mame
endif
ifeq ($(NEW_GIT_VERSION),)
-NEW_GIT_VERSION := unknown
+NEW_GIT_VERSION := aGuGu\'s Mame
endif
GENIE := 3rdparty/genie/bin/$(GENIEOS)/genie$(EXE)
@@ -1662,18 +1662,18 @@
ifeq (posix,$(SHELLTYPE))
$(GENDIR)/version.cpp: makefile $(GENDIR)/git_desc | $(GEN_FOLDERS)
- @echo '#define BARE_BUILD_VERSION "0.268"' > $@
- @echo '#define BARE_VCS_REVISION "$(NEW_GIT_VERSION)"' >> $@
+ @echo '#define BARE_BUILD_VERSION "0.267"' > $@
+ @echo '#define BARE_VCS_REVISION "$(subst ','\'',$(NEW_GIT_VERSION))"' >> $@
@echo 'extern const char bare_build_version[];' >> $@
@echo 'extern const char bare_vcs_revision[];' >> $@
@echo 'extern const char build_version[];' >> $@
@echo 'const char bare_build_version[] = BARE_BUILD_VERSION;' >> $@
@echo 'const char bare_vcs_revision[] = BARE_VCS_REVISION;' >> $@
- @echo 'const char build_version[] = BARE_BUILD_VERSION " (" BARE_VCS_REVISION ")";' >> $@
+ @echo 'const char build_version[] = BARE_BUILD_VERSION " " BARE_VCS_REVISION "";' >> $@
else
$(GENDIR)/version.cpp: makefile $(GENDIR)/git_desc | $(GEN_FOLDERS)
- @echo #define BARE_BUILD_VERSION "0.268" > $@
- @echo #define BARE_VCS_REVISION "$(NEW_GIT_VERSION)" >> $@
+ @echo #define BARE_BUILD_VERSION "0.267" > $@
+ @echo #define BARE_VCS_REVISION "$(subst ','\'',$(NEW_GIT_VERSION))" >> $@
@echo extern const char bare_build_version[]; >> $@
@echo extern const char bare_vcs_revision[]; >> $@
@echo extern const char build_version[]; >> $@