Skip to content

Commit

Permalink
update android-armv7 natives
Browse files Browse the repository at this point in the history
  • Loading branch information
twall committed Sep 12, 2015
1 parent dde47fa commit 1d44119
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Cross-compile by specifying -Dos.prefix={name-arch} to ant
(cross-compile currently only configured/tested on w32ce-arm and
android-{arm|aarch64|x86|x86-64|mips|mips64})
android-{arm|armv7|aarch64|x86|x86-64|mips|mips64})
Use ANT_OPTS=-Dskip-native=false to build native parts, or directly
invoke the native or test targets
Expand Down Expand Up @@ -177,7 +177,7 @@
<not>
<and>
<matches pattern="^android-" string="${os.prefix}"/>
<not><matches patterm="64$" string="${os.prefix}"/></not>
<not><matches pattern="64$" string="${os.prefix}"/></not>
</and>
</not>
<or>
Expand Down Expand Up @@ -615,6 +615,7 @@ osname=macosx;processor=x86;processor=x86-64;processor=ppc
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/sunos-sparc.jar" overwrite="true"/>
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/sunos-sparcv9.jar" overwrite="true"/>
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/android-arm.jar" overwrite="true"/>
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/android-armv7.jar" overwrite="true"/>
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/android-aarch64.jar" overwrite="true"/>
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/android-x86.jar" overwrite="true"/>
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/android-x86-64.jar" overwrite="true"/>
Expand Down Expand Up @@ -688,6 +689,9 @@ osname=macosx;processor=x86;processor=x86-64;processor=ppc
<condition property="ARCH" value="arm">
<equals arg1="${os.prefix}" arg2="android-arm"/>
</condition>
<condition property="ARCH" value="armv7">
<equals arg1="${os.prefix}" arg2="android-armv7"/>
</condition>
<condition property="ARCH" value="aarch64">
<equals arg1="${os.prefix}" arg2="android-aarch64"/>
</condition>
Expand Down
Binary file added lib/native/android-armv7.jar
Binary file not shown.
9 changes: 7 additions & 2 deletions native/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Solaris (i386/amd64/sparc/sparcv9)
# AIX (ppc/ppc64)
# FreeBSD/OpenBSD/NetBSD (i386/amd64)
# Android (arm/aarch64/x86/x86-64/mipsel/mips64el)
# Android (arm/armv7/aarch64/x86/x86-64/mipsel/mips64el)
#
# Built, but with outstanding bugs (not necessarily within JNA):
#
Expand Down Expand Up @@ -111,7 +111,7 @@ endif
STRIP=strip -x
# end defaults

# Android build (cross-compile) requires the android SDK+NDK.
# Android build (cross-compile) requires the android NDK.
# Ensure the following tools are in your path and adjust NDK_PLATFORM as needed
ifeq ($(OS),android)
AARCH=$(ARCH)
Expand All @@ -120,6 +120,11 @@ ifeq ($(ARCH),arm)
PREFIX=arm-linux-androideabi-
COPT+= -mthumb-interwork -march=armv5te -mtune=xscale -msoft-float -fstack-protector
HOST=arm-linux-eabi
else ifeq ($(ARCH),armv7)
PREFIX=arm-linux-androideabi-
COPT+= -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -Wl,--fix-cortex-a8
HOST=arm-linux-eabi
AARCH=arm
else ifeq ($(ARCH),aarch64)
PREFIX=aarch64-linux-android-
HOST=aarch64-linux-android
Expand Down

0 comments on commit 1d44119

Please sign in to comment.