summaryrefslogtreecommitdiffstats
path: root/test/native/cross-android-armv7-tst1/hello-fp.sh
blob: c4a627e28115db27ae1cc5b9297e839c3f6a0337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

TEST_APP=hello-fp

SPEC=androideabi.armv7-a

. /opt-linux-x86/etc/profile.android
. ./android.ndk.env-4.4.3-${SPEC}.sh

mkdir -p build/native

$NDK_GCC $NDK_INCLUDE $NDK_CFLAGS $NDK_LDFLAGS -o build/native/${TEST_APP}-${SPEC} ${TEST_APP}.c
$NDK_READELF -a build/native/${TEST_APP}-${SPEC} > build/native/${TEST_APP}-${SPEC}.txt
adb push build/native/${TEST_APP}-${SPEC} /projects/native-tst
adb shell /projects/native-tst/${TEST_APP}-${SPEC}