PKGNAME=scrcpy
PKGSEC=utils
PKGDEP="android-platform-tools ffmpeg sdl3 libusb v4l-utils"
PKGDES="Display and control your Android device"

# FIXME: Using pre-compiled scrcpy from upstream (Java application), standard
# Meson build routines does not support invoking Gradle as root.
MESON_AFTER=(
    '-Dcompile_app=true'
    '-Dcompile_server=false'
    "-Dprebuilt_server=${SRCDIR}/scrcpy-server"
    '-Dportable=false'
    '-Dstatic=false'
    '-Dserver_debugger=false'
    '-Dv4l2=true'
    '-Dusb=true'
)

# FIXME: android-platform-tools is only available for these architectures.
FAIL_ARCH="!(amd64|arm64|loongarch64)"
