apotocki/brotli 1.2.1 (r1, android)
- Library
- brotli
- Variant
- android, target android
- Channel
- stable
- Published
- 2026-11-13
- Recipe source
- https://github.com/otok-dev/recipes.git
b970f0bb534a7425d6b6fdf304db08dca4a92f7binrecipes/brotli/1.2/android/ - Recipe SHA-256
ac05e2a2fdfde6b71c66b3ae589f50e1a50039f34fa9778c70ae966d95a273e8
Recipe files changed
Inputs
| source.commit | db24a98aed38a16de78cc05ca15cdd8dc2a0d92d |
|---|---|
| source.git | https://github.com/google/brotli |
| source.tag | v1.2.1 |
Platforms
android
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: libbrotlicommon, libbrotlidec
-- and libbrotlienc as .a, or as .so with their links.
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
libraries[name] = otok.glob("lib/lib" .. name .. (static and ".a" or ".so"), 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 Android, 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 = ["android"]
build-on = ["*/ndk"]
[toolchains]
cmake = { version = ">= 3.20", default-recipe = "apotocki/cmake" }
ninja = { version = ">= 1.10", default-recipe = "apotocki/ninja" }
[[product]]
name = "Brotli"
libraries = ["brotlienc", "brotlidec", "brotlicommon"]
link = { libraries = ["m"] }