aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2025-10-02 17:57:45 +0200
committerLeonard Kugis <leonard@kug.is>2025-10-02 17:57:45 +0200
commit3d7a96c5b438881c5b1532dbe44d1a7d9dc7956d (patch)
tree980bf7026bc3331edf120f5141b443371076aa23
parent0b693eca087419554361df06c66664a3c651fe74 (diff)
downloadbindfs-meson.tar.gz
Added build scripts for different targetsmeson
Analog to libfuse
-rwxr-xr-xscripts/make-android28-aarch64.sh17
-rwxr-xr-xscripts/make-host.sh15
2 files changed, 32 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"
diff --git a/scripts/make-host.sh b/scripts/make-host.sh
new file mode 100755
index 0000000..6d6238e
--- /dev/null
+++ b/scripts/make-host.sh
@@ -0,0 +1,15 @@
+#!/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"
+
+rm -rf build
+meson setup build \
+ --prefix=/usr/local \
+ -Dinstall_macos_fs_link=false
+
+meson compile -C build -j"$(nproc)"
+meson install -C build --destdir "$SYSROOT_DIR"