# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
include(joinpath("..", "common.jl"))

name = "FFplay"

# The products that we will ensure are always built
products = [
    ExecutableProduct("ffplay", :ffplay),
]

# Dependencies that must be installed before this package can be built
# TODO: Theora once it's available
dependencies = [
    HostBuildDependency("NASM_jll"),
    BuildDependency("nv_codec_headers_jll"),
    BuildDependency("Xorg_xorgproto_jll"),
    BuildDependency("LibVPX_jll"), # We use the static archive
    Dependency("FFMPEG_jll"; compat=string(version)),
    Dependency("SDL2_jll"; compat="2.32.10"),
    Dependency("OpenSSL_jll"; compat="3.5.0"),
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script(; ffplay=true), platforms, products, dependencies;
               julia_compat="1.6", preferred_gcc_version, clang_use_lld=false)

# Build trigger: 5
