forked from lthn/blockchain
78 lines
2.2 KiB
Bash
Executable file
78 lines
2.2 KiB
Bash
Executable file
set -x #echo on
|
|
cd ..
|
|
rm -r _builds
|
|
cmake -S. -B_builds -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=21 -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a -DCMAKE_ANDROID_NDK=/Users/roky/Library/Android/sdk/ndk/18.1.5063045 -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_INSTALL_PREFIX=`pwd`/_install
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to perform command"
|
|
exit 1
|
|
fi
|
|
|
|
cmake --build _builds --config Debug --target install -- -j 4
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to perform command"
|
|
exit 1
|
|
fi
|
|
|
|
rm -r _builds
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to perform command"
|
|
exit 1
|
|
fi
|
|
|
|
cmake -S. -B_builds -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=21 -DCMAKE_ANDROID_ARCH_ABI=x86 -DCMAKE_ANDROID_NDK=/Users/roky/Library/Android/sdk/ndk/18.1.5063045 -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_INSTALL_PREFIX=`pwd`/_install
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to perform command"
|
|
exit 1
|
|
fi
|
|
|
|
cmake --build _builds --config Debug --target install -- -j 4
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to perform command"
|
|
exit 1
|
|
fi
|
|
|
|
rm -r _builds
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to perform command"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
cmake -S. -B_builds -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=21 -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DCMAKE_ANDROID_NDK=/Users/roky/Library/Android/sdk/ndk/18.1.5063045 -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_INSTALL_PREFIX=`pwd`/_install
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to perform command"
|
|
exit 1
|
|
fi
|
|
|
|
cmake --build _builds --config Debug --target install -- -j 4
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to perform command"
|
|
exit 1
|
|
fi
|
|
|
|
rm -r _builds
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to perform command"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
cmake -S. -B_builds -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=21 -DCMAKE_ANDROID_ARCH_ABI=x86_64 -DCMAKE_ANDROID_NDK=/Users/roky/Library/Android/sdk/ndk/18.1.5063045 -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_INSTALL_PREFIX=`pwd`/_install
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to perform command"
|
|
exit 1
|
|
fi
|
|
|
|
cmake --build _builds --config Debug --target install -- -j 4
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to perform command"
|
|
exit 1
|
|
fi
|
|
|
|
rm -r _builds
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to perform command"
|
|
exit 1
|
|
fi
|
|
|
|
|