mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-02 17:56:56 +01:00
added ndk installation script
This commit is contained in:
parent
aa8340ab09
commit
462f940815
@ -36,10 +36,10 @@ addons:
|
|||||||
- python2.7
|
- python2.7
|
||||||
- libmagic1
|
- libmagic1
|
||||||
|
|
||||||
before_script:
|
before_install:
|
||||||
|
- ./scripts/install_android_ndk.sh
|
||||||
- export PATH=$HOME/.local/bin:$PATH
|
- export PATH=$HOME/.local/bin:$PATH
|
||||||
- pip install -r ./scripts/requirements.txt --user
|
- pip install -r ./configs/requirements.txt --user
|
||||||
|
|
||||||
|
|
||||||
script: ./gradlew build --no-daemon
|
script: ./gradlew build --no-daemon
|
||||||
|
|
||||||
|
12
scripts/install_android_ndk.sh
Executable file
12
scripts/install_android_ndk.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ `uname -m` = x86_64 ];
|
||||||
|
then
|
||||||
|
wget http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin -O ndk.bin
|
||||||
|
else
|
||||||
|
wget http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86.bin -O ndk.bin
|
||||||
|
fi
|
||||||
|
|
||||||
|
7z x ndk.bin android-ndk-r10e/build/ android-ndk-r10e/ndk-build android-ndk-r10e/platforms/android-21 > /dev/null
|
||||||
|
export ANDROID_NDK_HOME=`pwd`/android-ndk-r10e
|
||||||
|
echo "ndk.dir=$ANDROID_NDK_HOME" >> local.properties
|
Loading…
x
Reference in New Issue
Block a user