nandi/jolt-nativepublic Fork 0
3dd441e764bc6b0123d9b33fe9871dcf7ac150b6
Commits
Clone
git clone https://git.rickub.com/nandi/jolt-native.git
git clone ssh://git@rickub.com/nandi/jolt-native.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Cross-compile for Android, with an NDK nobody has to install 14a30c0 · on 3dd441e764bc6b0123d9b33fe9871dcf7ac150b6 · nandi · 19d ago
android-ndk-bin · 23 lines · 868 BBash Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Print the directory holding the NDK's clang and LLVM binutils.
#
# android-cc needs one of those binaries and an APK build needs others —
# llvm-objcopy, for the boot image blob — so the lookup is here rather than
# duplicated at each caller. ANDROID_NDK_HOME wins if it is set; otherwise the
# pin in android-ndk.dotslash beside this script answers, downloading once.
set -e
dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)

ndk=${ANDROID_NDK_HOME:-${ANDROID_NDK_ROOT:-}}
if [ -n "$ndk" ]; then
    for host in linux-x86_64 darwin-x86_64; do
        if [ -d "$ndk/toolchains/llvm/prebuilt/$host/bin" ]; then
            echo "$ndk/toolchains/llvm/prebuilt/$host/bin"
            exit 0
        fi
    done
    echo "scripts/android-ndk-bin: no llvm prebuilt under $ndk" >&2
    exit 1
fi

dirname -- "$(dotslash -- fetch "$dir/android-ndk.dotslash")"