summaryrefslogtreecommitdiff
path: root/run.sh
blob: e119462f34d4fbdfb151363c6d350beb9b0fb3db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#/bin/bash
#gcc_path="/home/yang01/software/google/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc"
gcc_path="/data/armv8/lollipop/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc"
#sysroot_path="/home/yang01/software/google/ndk/android-ndk-r10e//platforms/android-21/arch-arm64/"
sysroot_path="/data/armv8/lollipop/prebuilts/ndk/9/platforms/android-21/arch-arm64/"

${gcc_path}   -O2  --sysroot=${sysroot_path} -pie  -o blit.c.o   -c blit.c
#${gcc_path}   -O2  --sysroot=${sysroot_path} -pie  -o blit_neon.c.o   -c blit_neon.c
${gcc_path}   -O2  --sysroot=${sysroot_path} -pie  -o timer.c.o   -c timer.c
${gcc_path}   -O2  --sysroot=${sysroot_path} -pie  -o test_blit.c.o   -c test_blit.c
${gcc_path}   -O2  --sysroot=${sysroot_path} -pie  blit.c.o timer.c.o test_blit.c.o -o test_blit

adb push test_blit /data/local/tmp/
adb shell /data/local/tmp/test_blit