ZLMediaKit/build_for_android.sh

14 lines
419 B
Bash
Raw Normal View History

2017-06-03 10:52:49 +08:00
#!/bin/bash
cd ..
2018-03-21 15:23:05 +08:00
git clone --depth=1 https://github.com/xiongziliang/ZLMediaKit.git
2017-06-03 10:52:49 +08:00
cd ZLMediaKit
2018-03-21 15:23:05 +08:00
git submodule init
git submodule update
2017-06-20 14:37:09 +08:00
mkdir -p android_build
2017-10-13 15:19:24 +08:00
rm -rf ./build
ln -s ./android_build build
2017-06-20 14:37:09 +08:00
cd android_build
2017-06-03 10:52:49 +08:00
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DANDROID_NDK=$ANDROID_NDK_ROOT -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi" -DANDROID_NATIVE_API_LEVEL=android-9
make -j4