Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
retro8
Commits
f2235a15
Commit
f2235a15
authored
Feb 27, 2022
by
phcoder
Browse files
Add git version to the reported version
parent
39348ee0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
f2235a15
...
...
@@ -49,6 +49,11 @@ ifeq ($(STATIC_LINKING), 1)
EXT
:=
a
endif
GIT_VERSION
:=
"
$(
shell
git rev-parse --short HEAD || echo unknown
)
"
ifneq
($(GIT_VERSION)," unknown")
CXXFLAGS
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
endif
ifneq
(,$(findstring unix,$(platform)))
EXT
?=
so
TARGET
:=
$(TARGET_NAME)
_libretro.
$(EXT)
...
...
src/libretro/libretro.cpp
View file @
f2235a15
...
...
@@ -93,7 +93,10 @@ extern "C"
std
::
memset
(
info
,
0
,
sizeof
(
*
info
));
info
->
library_name
=
"retro-8 (alpha)"
;
info
->
library_version
=
"0.1b"
;
#ifndef GIT_VERSION
#define GIT_VERSION ""
#endif
info
->
library_version
=
"0.1b"
GIT_VERSION
;
info
->
need_fullpath
=
false
;
info
->
valid_extensions
=
"p8|png"
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment