summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsudden6 <sudden6@gmx.at>2018-04-06 11:43:59 +0200
committersudden6 <sudden6@gmx.at>2018-04-06 11:43:59 +0200
commitd134aecf3ef97009c0884fdfc1c178cf2b9a84b3 (patch)
tree481c6fc0b98f024954c593a7e9fe7c3abf3d8099
parent37d4a0b2ca1377268a82c085809edf63d19cc782 (diff)
remove broken and unmaintained scripts
-rwxr-xr-xdist-build/android-arm.sh3
-rwxr-xr-xdist-build/android-armv7.sh3
-rwxr-xr-xdist-build/android-build.sh59
-rwxr-xr-xdist-build/android-mips.sh3
-rwxr-xr-xdist-build/android-x86.sh3
5 files changed, 0 insertions, 71 deletions
diff --git a/dist-build/android-arm.sh b/dist-build/android-arm.sh
deleted file mode 100755
index af736da3..00000000
--- a/dist-build/android-arm.sh
+++ /dev/null
@@ -1,3 +0,0 @@
1#!/bin/sh
2export CFLAGS="-Ofast -mthumb -marm -march=armv6"
3TARGET_ARCH=arm TOOLCHAIN_NAME=arm-linux-androideabi-4.8 HOST_COMPILER=arm-linux-androideabi "$(dirname "$0")/android-build.sh"
diff --git a/dist-build/android-armv7.sh b/dist-build/android-armv7.sh
deleted file mode 100755
index 838a62f9..00000000
--- a/dist-build/android-armv7.sh
+++ /dev/null
@@ -1,3 +0,0 @@
1#!/bin/sh
2export CFLAGS="-Ofast -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -marm -march=armv7-a"
3TARGET_ARCH=armv7 TOOLCHAIN_NAME=arm-linux-androideabi-4.8 HOST_COMPILER=arm-linux-androideabi "$(dirname "$0")/android-build.sh"
diff --git a/dist-build/android-build.sh b/dist-build/android-build.sh
deleted file mode 100755
index fb0dabe7..00000000
--- a/dist-build/android-build.sh
+++ /dev/null
@@ -1,59 +0,0 @@
1#!/bin/sh
2
3if [ -z "$ANDROID_NDK_HOME" ]; then
4 echo "You should probably set ANDROID_NDK_HOME to the directory containing"
5 echo "the Android NDK"
6 exit
7fi
8
9if [ -z "$SODIUM_HOME" ]; then
10 echo "You should probably set SODIUM_HOME to the directory containing root sodium sources"
11 exit
12fi
13
14if [[ -z $TARGET_ARCH ]] || [[ -z $HOST_COMPILER ]]; then
15 echo "You shouldn't use android-build.sh directly, use android-[arch].sh instead"
16 exit 1
17fi
18
19if [ ! -f ./configure ]; then
20 echo "Can't find ./configure. Wrong directory or haven't run autogen.sh?"
21 exit 1
22fi
23
24if [ -z "$TOOLCHAIN_DIR" ]; then
25 export TOOLCHAIN_DIR="$(pwd)/android-toolchain-${TARGET_ARCH}"
26 export MAKE_TOOLCHAIN="${ANDROID_NDK_HOME}/build/tools/make-standalone-toolchain.sh"
27
28 if [ -z "$MAKE_TOOLCHAIN" ]; then
29 echo "Cannot find a make-standalone-toolchain.sh in ndk dir, interrupt..."
30 exit 1
31 fi
32
33 $MAKE_TOOLCHAIN --platform="${NDK_PLATFORM:-android-14}" \
34 --arch="${TARGET_ARCH}" \
35 --toolchain="${TOOLCHAIN_NAME:-arm-linux-androideabi-4.8}" \
36 --install-dir="${TOOLCHAIN_DIR}"
37fi
38
39export PREFIX="$(pwd)/toxcore-android-${TARGET_ARCH}"
40export SYSROOT="${TOOLCHAIN_DIR}/sysroot"
41export PATH="${PATH}:${TOOLCHAIN_DIR}/bin"
42
43# Clean up before build
44rm -rf "${PREFIX}"
45
46export CFLAGS="${CFLAGS} --sysroot=${SYSROOT} -I${SYSROOT}/usr/include"
47export CPPFLAGS="${CFLAGS}"
48export LDFLAGS="${LDFLAGS} -L${SYSROOT}/usr/lib"
49
50./configure --host="${HOST_COMPILER}" \
51 --with-sysroot="${SYSROOT}" \
52 --with-libsodium-headers="${SODIUM_HOME}/libsodium-android-${TARGET_ARCH}/include" \
53 --with-libsodium-libs="${SODIUM_HOME}/libsodium-android-${TARGET_ARCH}/lib" \
54 --disable-av \
55 --prefix="${PREFIX}" && \
56
57make clean && \
58make -j3 install && \
59echo "libtoxcore has been installed into ${PREFIX}"
diff --git a/dist-build/android-mips.sh b/dist-build/android-mips.sh
deleted file mode 100755
index 6e105c2f..00000000
--- a/dist-build/android-mips.sh
+++ /dev/null
@@ -1,3 +0,0 @@
1#!/bin/sh
2export CFLAGS="-Ofast"
3TARGET_ARCH=mips TOOLCHAIN_NAME=mipsel-linux-android-4.8 HOST_COMPILER=mipsel-linux-android "$(dirname "$0")/android-build.sh"
diff --git a/dist-build/android-x86.sh b/dist-build/android-x86.sh
deleted file mode 100755
index 6768b887..00000000
--- a/dist-build/android-x86.sh
+++ /dev/null
@@ -1,3 +0,0 @@
1#!/bin/sh
2export CFLAGS="-Ofast"
3TARGET_ARCH=x86 TOOLCHAIN_NAME=x86-4.8 HOST_COMPILER=i686-linux-android "$(dirname "$0")/android-build.sh"