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
Fmsx
Commits
d856a29a
Unverified
Commit
d856a29a
authored
Apr 06, 2018
by
Andrés
Committed by
GitHub
Apr 06, 2018
Browse files
Merge pull request #37 from webgeek1234/master
Refactor android jni makefiles
parents
3ad7ded5
ed464c1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
jni/Android.mk
View file @
d856a29a
LOCAL_PATH
:=
$(
call
my-dir
)
include
$(CLEAR_VARS)
CORE_DIR
:=
$(LOCAL_PATH)
/..
EMULIB
:=
$(CORE_DIR)
/EMULib
FMSXDIR
:=
$(CORE_DIR)
/fMSX
LIBZ80
:=
$(CORE_DIR)
/Z80
include
$(CORE_DIR)/Makefile.common
COREFLAGS
:=
-std
=
gnu99
-ffast-math
-D__LIBRETRO__
$(COREDEFINES)
-DFRONTEND_SUPPORTS_RGB565
$(INCFLAGS)
GIT_VERSION
:=
"
$(
shell
git rev-parse --short HEAD || echo unknown
)
"
ifneq
($(GIT_VERSION)," unknown")
LOCAL_C
FLAGS
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
CORE
FLAGS
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
endif
CORE_DIR
:=
../..
LIBRETRO_DIR
:=
..
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
retro
ifeq
($(TARGET_ARCH),arm)
LOCAL_CFLAGS
+=
-DANDROID_ARM
LOCAL_ARM_MODE
:=
arm
endif
ifeq
($(TARGET_ARCH),x86)
LOCAL_CFLAGS
+=
-DANDROID_X86
endif
ifeq
($(TARGET_ARCH),mips)
LOCAL_CFLAGS
+=
-DANDROID_MIPS
-D__mips__
-D__MIPSEL__
endif
CORE_DIR
=
..
EMULIB
=
$(CORE_DIR)
/EMULib
FMSXDIR
=
$(CORE_DIR)
/fMSX
LIBZ80
=
$(CORE_DIR)
/Z80
include
$(CORE_DIR)/Makefile.common
LOCAL_SRC_FILES
+=
$(SOURCES_C)
LOCAL_CFLAGS
+=
-O2
-std
=
gnu99
-ffast-math
-D__LIBRETRO__
-DUNIX
-DFMSX
-DBPS16
-DBPP16
-DFRONTEND_SUPPORTS_RGB565
-DNDEBUG
=
1
$(INCFLAGS)
LOCAL_SRC_FILES
:=
$(SOURCES_C)
LOCAL_CFLAGS
:=
$(COREFLAGS)
LOCAL_LDFLAGS
:=
-Wl
,-version-script
=
$(CORE_DIR)
/link.T
include
$(BUILD_SHARED_LIBRARY)
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