mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-24 19:17:12 +02:00
bin
module
vendor
CPR
ConcurrentQueue
Fmt
JSMN
MaxmindDB
POCO
SimpleIni
Squirrel
TinyDir
ZMQ
RELICENSE
builds
abi-compliance-checker
android
Dockerfile
README.md
android_build_helper.sh
build.sh
ci_build.sh
cmake
coverage
cygwin
deprecated-msvc
fuzz
gyp
ios
mingw32
nuget
openwrt
qnx
valgrind
vxworks
zos
Makefile.am
README
doc
external
include
m4
packaging
perf
src
tests
tools
unittests
AUTHORS
CMakeLists.txt
COPYING
COPYING.LESSER
Dockerfile
Doxygen.cfg
INSTALL
Jenkinsfile
Makefile.am
NEWS
README.cygwin.md
README.doxygen.md
README.md
SECURITY.md
SupportedPlatforms.md
acinclude.m4
appveyor.yml
autogen.sh
branding.bmp
ci_build.sh
ci_deploy.sh
config.sh
configure.ac
installer.ico
version.sh
CMakeLists.txt
.gitignore
.gitmodules
CMakeLists.txt
LICENSE
README.md
32 lines
650 B
Bash
32 lines
650 B
Bash
#!/usr/bin/env bash
|
|
|
|
export NDK_VERSION=android-ndk-r21d
|
|
export ANDROID_NDK_ROOT="/tmp/${NDK_VERSION}"
|
|
|
|
case $(uname | tr '[:upper:]' '[:lower:]') in
|
|
linux*)
|
|
HOST_PLATFORM=linux-x86_64
|
|
;;
|
|
darwin*)
|
|
HOST_PLATFORM=darwin-x86_64
|
|
;;
|
|
*)
|
|
echo "Unsupported platform"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
if [ ! -d "${ANDROID_NDK_ROOT}" ]; then
|
|
export FILENAME=$NDK_VERSION-$HOST_PLATFORM.zip
|
|
|
|
(cd '/tmp' \
|
|
&& wget http://dl.google.com/android/repository/$FILENAME -O $FILENAME &> /dev/null \
|
|
&& unzip -q $FILENAME) || exit 1
|
|
unset FILENAME
|
|
fi
|
|
|
|
./build.sh "arm"
|
|
./build.sh "arm64"
|
|
./build.sh "x86"
|
|
./build.sh "x86_64"
|