From 3d7a96c5b438881c5b1532dbe44d1a7d9dc7956d Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Thu, 2 Oct 2025 17:57:45 +0200 Subject: Added build scripts for different targets Analog to libfuse --- scripts/make-android28-aarch64.sh | 17 +++++++++++++++++ scripts/make-host.sh | 15 +++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 scripts/make-android28-aarch64.sh create mode 100755 scripts/make-host.sh (limited to 'scripts') 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" -- cgit v1.2.3