aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/make-android28-aarch64.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/make-android28-aarch64.sh')
-rwxr-xr-xscripts/make-android28-aarch64.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/make-android28-aarch64.sh b/scripts/make-android28-aarch64.sh
new file mode 100755
index 0000000..6c8a17b
--- /dev/null
+++ b/scripts/make-android28-aarch64.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+mkdir -p "$SYSROOT_DIR"
+
+export PKG_CONFIG_LIBDIR="$SYSROOT_DIR/usr/local/lib/pkgconfig"
+export PKG_CONFIG_SYSROOT_DIR="$SYSROOT_DIR"
+export LDFLAGS="-L$SYSROOT_DIR/usr/local/lib"
+export PKG_CONFIG_IGNORE_LIBS="pthread"
+
+rm -rf build
+meson setup build \
+ --cross-file meson/android28-aarch64 \
+ --prefix=/usr/local \
+ -Dinstall_macos_fs_link=false
+
+meson compile -C build -j"$(nproc)"
+meson install -C build --destdir "$SYSROOT_DIR"