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
libretro-2048
Commits
d5b2972f
Commit
d5b2972f
authored
Dec 09, 2016
by
Gregor Richards
Browse files
Follow the convention used in (some) other cores.
parent
fba476cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Makefile.libretro
View file @
d5b2972f
...
...
@@ -29,8 +29,8 @@ else ifneq ($(findstring MINGW,$(shell uname -a)),)
endif
TARGET_NAME
:=
2048
GIT_VERSION
:=
"
$(
shell
git
describe --abbrev=7 --dirty --always --tags
|| echo unknown
)
"
ifneq
($(GIT_VERSION),"unknown")
GIT_VERSION
:=
"
$(
shell
git
rev-parse --short HEAD
|| echo unknown
)
"
ifneq
($(GIT_VERSION),"
unknown")
CFLAGS
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
endif
LIBM
:=
-lm
...
...
jni/Android.mk
View file @
d5b2972f
...
...
@@ -4,6 +4,11 @@ include $(CLEAR_VARS)
LOCAL_MODULE
:=
retro
GIT_VERSION
:=
"
$(
shell
git rev-parse --short HEAD || echo unknown
)
"
ifneq
($(GIT_VERSION)," unknown")
LOCAL_CFLAGS
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
endif
ifeq
($(TARGET_ARCH),arm)
LOCAL_CFLAGS
+=
-DANDROID_ARM
LOCAL_ARM_MODE
:=
arm
...
...
libretro.c
View file @
d5b2972f
...
...
@@ -127,11 +127,10 @@ void retro_get_system_info(struct retro_system_info *info)
{
memset
(
info
,
0
,
sizeof
(
*
info
));
info
->
library_name
=
"2048"
;
#ifdef GIT_VERSION
info
->
library_version
=
GIT_VERSION
;
#else
info
->
library_version
=
"v1.0"
;
#ifndef GIT_VERSION
#define GIT_VERSION ""
#endif
info
->
library_version
=
"v1.0"
GIT_VERSION
;
info
->
need_fullpath
=
false
;
info
->
valid_extensions
=
NULL
;
/* Anything is fine, we don't care. */
}
...
...
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