mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
+x
This commit is contained in:
parent
da76a860af
commit
8465469167
@ -6,8 +6,6 @@ if [ -z "$NDK_PLATFORM" ]; then
|
|||||||
else
|
else
|
||||||
export NDK_PLATFORM_COMPAT="${NDK_PLATFORM_COMPAT:-${NDK_PLATFORM}}"
|
export NDK_PLATFORM_COMPAT="${NDK_PLATFORM_COMPAT:-${NDK_PLATFORM}}"
|
||||||
fi
|
fi
|
||||||
export NDK_API_VERSION=$(echo "$NDK_PLATFORM" | sed 's/^android-//')
|
|
||||||
export NDK_API_VERSION_COMPAT=$(echo "$NDK_PLATFORM_COMPAT" | sed 's/^android-//')
|
|
||||||
|
|
||||||
if [ -z "$ANDROID_NDK_HOME" ]; then
|
if [ -z "$ANDROID_NDK_HOME" ]; then
|
||||||
echo "You should probably set ANDROID_NDK_HOME to the directory containing"
|
echo "You should probably set ANDROID_NDK_HOME to the directory containing"
|
||||||
@ -25,7 +23,7 @@ if [ "x$TARGET_ARCH" = 'x' ] || [ "x$ARCH" = 'x' ] || [ "x$HOST_COMPILER" = 'x'
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export MAKE_TOOLCHAIN="${ANDROID_NDK_HOME}/build/tools/make_standalone_toolchain.py"
|
export MAKE_TOOLCHAIN="${ANDROID_NDK_HOME}/build/tools/make-standalone-toolchain.sh"
|
||||||
|
|
||||||
export PREFIX="$(pwd)/libsodium-android-${TARGET_ARCH}"
|
export PREFIX="$(pwd)/libsodium-android-${TARGET_ARCH}"
|
||||||
export TOOLCHAIN_DIR="$(pwd)/android-toolchain-${TARGET_ARCH}"
|
export TOOLCHAIN_DIR="$(pwd)/android-toolchain-${TARGET_ARCH}"
|
||||||
@ -37,9 +35,8 @@ echo
|
|||||||
echo "Building for platform [${NDK_PLATFORM}], retaining compatibility with platform [${NDK_PLATFORM_COMPAT}]"
|
echo "Building for platform [${NDK_PLATFORM}], retaining compatibility with platform [${NDK_PLATFORM_COMPAT}]"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
env - PATH="$PATH" \
|
bash $MAKE_TOOLCHAIN --force --platform="$NDK_PLATFORM_COMPAT" \
|
||||||
$MAKE_TOOLCHAIN --force --api="$NDK_API_VERSION_COMPAT" \
|
--arch="$ARCH" --install-dir="$TOOLCHAIN_DIR" || exit 1
|
||||||
--unified-headers --arch="$ARCH" --install-dir="$TOOLCHAIN_DIR" || exit 1
|
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--disable-soname-versions \
|
--disable-soname-versions \
|
||||||
@ -53,9 +50,8 @@ if [ "$NDK_PLATFORM" != "$NDK_PLATFORM_COMPAT" ]; then
|
|||||||
echo
|
echo
|
||||||
echo "Configuring again for platform [${NDK_PLATFORM}]"
|
echo "Configuring again for platform [${NDK_PLATFORM}]"
|
||||||
echo
|
echo
|
||||||
env - PATH="$PATH" \
|
bash $MAKE_TOOLCHAIN --force --platform="$NDK_PLATFORM" \
|
||||||
$MAKE_TOOLCHAIN --force --api="$NDK_API_VERSION" \
|
--arch="$ARCH" --install-dir="$TOOLCHAIN_DIR" || exit 1
|
||||||
--unified-headers --arch="$ARCH" --install-dir="$TOOLCHAIN_DIR" || exit 1
|
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--disable-soname-versions \
|
--disable-soname-versions \
|
||||||
|
Loading…
Reference in New Issue
Block a user