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
vemulator-libretro
Commits
37534512
Commit
37534512
authored
Apr 12, 2018
by
Steel01
Browse files
Refactor android jni makefiles
parent
6d1da416
Changes
2
Hide whitespace changes
Inline
Side-by-side
jni/Android.mk
View file @
37534512
LOCAL_PATH
:=
$(
call
my-dir
)
LOCAL_PATH
:=
$(
call
my-dir
)
include
$(CLEAR_VARS)
CORE_DIR
:=
$(LOCAL_PATH)
/..
LOCAL_MODULE
:=
libretro
LOCAL_CFLAGS
:=
ifeq
($(TARGET_ARCH),arm)
LOCAL_CPPFLAGS
+=
-DANDROID_ARM
endif
ifeq
($(TARGET_ARCH),x86)
SOURCES_CPP
:=
$(
wildcard
$(CORE_DIR)
/
*
.cpp
)
LOCAL_CPPFLAGS
+=
-DANDROID_X86
endif
ifeq
($(TARGET_ARCH),mips)
LOCAL_CPPFLAGS
+=
-DANDROID_MIPS
-D__mips__
-D__MIPSEL__
endif
LOCAL_SRC_FILES
=
../audio.cpp ../cpu.cpp ../vmu.cpp ../main.cpp ../video.cpp ../t0.cpp ../t1.cpp ../basetimer.cpp ../bitwisemath.cpp ../flashfile.cpp ../flash.cpp ../rom.cpp ../ram.cpp ../interrupts.cpp
LOCAL_CPPFLAGS
+=
-O3
-std
=
c++98
-ffast-math
-funroll-loops
COREFLAGS
:=
-ffast-math
-funroll-loops
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
retro
LOCAL_SRC_FILES
:=
$(SOURCES_CPP)
LOCAL_CPPFLAGS
:=
-std
=
c++98
$(COREFLAGS)
LOCAL_LDFLAGS
:=
-Wl
,-version-script
=
$(CORE_DIR)
/link.T
include
$(BUILD_SHARED_LIBRARY)
include
$(BUILD_SHARED_LIBRARY)
jni/Application.mk
View file @
37534512
APP_ABI
:=
all
APP_ABI
:=
all
APP_STL
:=
stl
port
_static
APP_STL
:=
gnu
stl_static
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