diff options
author | sudden6 <sudden6@gmx.at> | 2018-04-06 11:43:59 +0200 |
---|---|---|
committer | sudden6 <sudden6@gmx.at> | 2018-04-06 11:43:59 +0200 |
commit | d134aecf3ef97009c0884fdfc1c178cf2b9a84b3 (patch) | |
tree | 481c6fc0b98f024954c593a7e9fe7c3abf3d8099 | |
parent | 37d4a0b2ca1377268a82c085809edf63d19cc782 (diff) |
remove broken and unmaintained scripts
-rwxr-xr-x | dist-build/android-arm.sh | 3 | ||||
-rwxr-xr-x | dist-build/android-armv7.sh | 3 | ||||
-rwxr-xr-x | dist-build/android-build.sh | 59 | ||||
-rwxr-xr-x | dist-build/android-mips.sh | 3 | ||||
-rwxr-xr-x | dist-build/android-x86.sh | 3 |
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 | ||
2 | export CFLAGS="-Ofast -mthumb -marm -march=armv6" | ||
3 | TARGET_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 | ||
2 | export CFLAGS="-Ofast -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -marm -march=armv7-a" | ||
3 | TARGET_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 | |||
3 | if [ -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 | ||
7 | fi | ||
8 | |||
9 | if [ -z "$SODIUM_HOME" ]; then | ||
10 | echo "You should probably set SODIUM_HOME to the directory containing root sodium sources" | ||
11 | exit | ||
12 | fi | ||
13 | |||
14 | if [[ -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 | ||
17 | fi | ||
18 | |||
19 | if [ ! -f ./configure ]; then | ||
20 | echo "Can't find ./configure. Wrong directory or haven't run autogen.sh?" | ||
21 | exit 1 | ||
22 | fi | ||
23 | |||
24 | if [ -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}" | ||
37 | fi | ||
38 | |||
39 | export PREFIX="$(pwd)/toxcore-android-${TARGET_ARCH}" | ||
40 | export SYSROOT="${TOOLCHAIN_DIR}/sysroot" | ||
41 | export PATH="${PATH}:${TOOLCHAIN_DIR}/bin" | ||
42 | |||
43 | # Clean up before build | ||
44 | rm -rf "${PREFIX}" | ||
45 | |||
46 | export CFLAGS="${CFLAGS} --sysroot=${SYSROOT} -I${SYSROOT}/usr/include" | ||
47 | export CPPFLAGS="${CFLAGS}" | ||
48 | export 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 | |||
57 | make clean && \ | ||
58 | make -j3 install && \ | ||
59 | echo "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 | ||
2 | export CFLAGS="-Ofast" | ||
3 | TARGET_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 | ||
2 | export CFLAGS="-Ofast" | ||
3 | TARGET_ARCH=x86 TOOLCHAIN_NAME=x86-4.8 HOST_COMPILER=i686-linux-android "$(dirname "$0")/android-build.sh" | ||