build.lua 771 bytes · raw
-- dav1d's meson build, the library only. otok builds are meson's "plain" build type
-- (build-lua-api.md 6.2), so trim_dsp, which follows the build type, follows the configuration here.
function build(slice, options, deps)
otok.meson{ options = {
enable_tools = false, enable_tests = false, enable_examples = false, enable_docs = false,
trim_dsp = slice.configuration == "release",
-- the AArch64 assembly assumes 64-bit pointers: the structure offsets it checks differ on arm64_32
enable_asm = slice.arch ~= "arm64_32",
} }
local p = slice.prefix
local lib = otok.glob(slice.linkage == "static" and "lib/libdav1d.a" or "lib/libdav1d.dylib", p)[1]
return { libraries = { dav1d = lib }, headers = p .. "/include" }
end
recipe.toml 1146 bytes · raw
# The otok recipe of dav1d (https://github.com/apotocki/otok): VideoLAN's AV1 decoder, built with meson
# (otok.meson), for every Apple platform; static or dynamic.
[recipe]
api = 1
library = "dav1d"
name = "dav1d"
version = "1.5.4"
revision = 2
license = "BSD-2-Clause"
license-files = ["COPYING"]
homepage = "https://code.videolan.org/videolan/dav1d"
description = "dav1d, an AV1 decoder focused on speed and correctness."
keywords = ["av1", "video", "decoder"]
linkage = ["static", "dynamic"]
[source]
url = "https://downloads.videolan.org/pub/videolan/dav1d/1.5.4/dav1d-1.5.4.tar.xz"
sha256 = "686616b7c69eb88d44459391ab25cac13b6647a3b288835c5784e71c1514a5c5"
[platforms]
supported = ["ios", "iossim", "macosx", "catalyst", "tvos", "tvossim", "watchos", "watchossim", "xros", "xrossim"]
build-on = ["macos/xcode"]
[toolchains]
meson = { version = ">= 1.2", default-recipe = "apotocki/meson" }
ninja = { version = ">= 1.10", default-recipe = "apotocki/ninja" }
nasm = { version = ">= 2.14", default-recipe = "apotocki/nasm" } # the assembly of x86_64
[[product]]
name = "Dav1d"
libraries = ["dav1d"]
apple = { privacy-manifest = "none" }