Otok public index

apotocki/zstd

apotocki/zstd 1.5.7 (r1, windows)

Library
zstd
Variant
windows, target windows
Channel
stable
Published
2026-11-13
Recipe source
https://github.com/otok-dev/recipes.git
b970f0bb534a7425d6b6fdf304db08dca4a92f7b in recipes/zstd/1.5/windows/
Recipe SHA-256
3fb9dce90278fd90b9f7df8a471e8951fa9693de54e48793891701e4dbecb687

Recipe files changed

Inputs

source.sha256eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3
source.urlhttps://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz

Platforms

windows

Toolchains

Recipe files

build.lua 882 bytes · raw
-- The CMake project in build/cmake, the library only (no programs, tests or contrib). What it installs: zstd_static.lib
-- (static), or zstd.lib, the import library, with zstd.dll.
function build(slice, options, deps)
    local static = slice.linkage == "static"
    otok.cmake{
        source = slice.source .. "/build/cmake",
        defines = { ZSTD_BUILD_STATIC = static, ZSTD_BUILD_SHARED = not static, ZSTD_BUILD_PROGRAMS = false,
            ZSTD_BUILD_TESTS = false, ZSTD_BUILD_CONTRIB = false,
            ZSTD_USE_STATIC_RUNTIME = false },
    }
    local p = slice.prefix
    if static then
        return { libraries = { zstd = otok.glob("lib/zstd_static.lib", p)[1] }, headers = p .. "/include" }
    end
    return { libraries = { zstd = { link = otok.glob("lib/zstd.lib", p)[1], runtime = otok.glob("bin/zstd.dll", p)[1] } },
        headers = p .. "/include" }
end
recipe.toml 1035 bytes · raw
# The otok recipe of Zstandard (https://github.com/apotocki/otok): libzstd for Windows, from the release archive, with the
# CMake project in build/cmake, the library only; static or dynamic.
[recipe]
api = 1
library = "zstd"
name = "zstd"
version = "1.5.7"
revision = 1
license = "BSD-3-Clause OR GPL-2.0-only"
license-files = ["LICENSE"]
homepage = "https://facebook.github.io/zstd/"
documentation = "https://facebook.github.io/zstd/zstd_manual.html"
description = "Zstandard, a fast lossless compression algorithm."
keywords = ["compression", "zstd"]
linkage = ["static", "dynamic"]

[source]
url = "https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz"
sha256 = "eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3"

[platforms]
supported = ["windows"]
build-on = ["windows/msvc", "linux/clang-cl"]

[toolchains]
cmake = { version = ">= 3.20", default-recipe = "apotocki/cmake" }
ninja = { version = ">= 1.10", default-recipe = "apotocki/ninja" }

[[product]]
name = "Zstd"
libraries = ["zstd"]