diff options
author | Leonard Kugis <leonard@kug.is> | 2025-10-02 17:57:45 +0200 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2025-10-02 17:57:45 +0200 |
commit | 3d7a96c5b438881c5b1532dbe44d1a7d9dc7956d (patch) | |
tree | 980bf7026bc3331edf120f5141b443371076aa23 /scripts | |
parent | 0b693eca087419554361df06c66664a3c651fe74 (diff) | |
download | bindfs-meson.tar.gz |
Added build scripts for different targetsmeson
Analog to libfuse
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make-android28-aarch64.sh | 17 | ||||
-rwxr-xr-x | scripts/make-host.sh | 15 |
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" |