apotocki/brotli 1.2.1 (r1, windows)
- Library
- brotli
- Variant
- windows, target windows
- Channel
- stable
- Published
- 2026-11-13
- Recipe source
- https://github.com/otok-dev/recipes.git
b970f0bb534a7425d6b6fdf304db08dca4a92f7binrecipes/brotli/1.2/windows/ - Recipe SHA-256
7271ffd7610152c0d4c93d99cc84824a4a179d61a329d909cb17efaf7786b6e7
Recipe files changed
Inputs
| source.commit | db24a98aed38a16de78cc05ca15cdd8dc2a0d92d |
|---|---|
| source.git | https://github.com/google/brotli |
| source.tag | v1.2.1 |
Platforms
windows
Toolchains
cmake { default-recipe = "apotocki/cmake", version = ">= 3.20" }ninja { default-recipe = "apotocki/ninja", version = ">= 1.10" }
Recipe files
build.lua
-- Brotli's CMake project, the libraries only (no command-line tool, no tests). What it installs: brotlicommon.lib,
-- brotlidec.lib and brotlienc.lib, static archives, or import libraries with the DLLs of the same names.
function build(slice, options, deps)
local static = slice.linkage == "static"
otok.cmake{ defines = { BROTLI_BUILD_TOOLS = false, BROTLI_DISABLE_TESTS = true } }
local p = slice.prefix
local libraries = {}
for _, name in ipairs{ "brotlienc", "brotlidec", "brotlicommon" } do
local lib = otok.glob("lib/" .. name .. ".lib", p)[1]
libraries[name] = static and lib or { link = lib, runtime = otok.glob("bin/" .. name .. ".dll", p)[1] }
end
return { libraries = libraries, headers = p .. "/include" }
end
recipe.toml
# The otok recipe of Brotli (https://github.com/apotocki/otok): libbrotlienc, libbrotlidec and libbrotlicommon for Windows, from
# the release tag, with Brotli's CMake, the libraries only; static or dynamic.
[recipe]
api = 1
library = "brotli"
name = "brotli"
version = "1.2.1"
revision = 1
license = "MIT"
license-files = ["LICENSE"]
homepage = "https://github.com/google/brotli"
description = "Brotli, a generic-purpose lossless compression algorithm (encoder, decoder and the common dictionary)."
keywords = ["compression", "brotli"]
linkage = ["static", "dynamic"]
[source]
git = "https://github.com/google/brotli"
commit = "db24a98aed38a16de78cc05ca15cdd8dc2a0d92d"
tag = "v1.2.1"
[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 = "Brotli"
libraries = ["brotlienc", "brotlidec", "brotlicommon"]