| ndk = ../ndk | |
| cc = $ndk/toolchains/llvm/prebuilt/*/bin/aarch64-linux-android24-clang | |
| cxx = $ndk/toolchains/llvm/prebuilt/*/bin/aarch64-linux-android24-clang++ | |
| cflags = -fcolor-diagnostics -Weverything | |
| ldflags = -pie -fuse-ld=lld -static-libstdc++ | |
| out = out/android$mode | |
| rule run | |
| command = if which adb >/dev/null && adb get-state >/dev/null 2>/dev/null; $ | |
| then $ | |
| adb push --sync profiles /data/local/tmp >/dev/null; $ | |
| adb push $in /data/local/tmp/$in >/dev/null; $ | |
| adb shell "cd /data/local/tmp; taskset f ./$in" > $out; $ | |
| else touch $out; fi | |
| description = run $in | |
| include ninja/common | |
| disabled = ! test -d $ndk | |
| no_hsw = true | |
| no_skx = true |