apotocki/expat 2.10.0 (r1, apple)
- Library
- expat
- Variant
- apple, target apple
- Channel
- stable
- Published
- 2026-11-14
- Recipe source
- https://github.com/otok-dev/recipes.git
1ea16409510454b8ee22a4a83ff304e3e03808c4inrecipes/expat/2.10/apple/ - Recipe SHA-256
7e897e61c8fc11b8ece7ed5f5199629bf2b24d87e6d1d72fbe35bc2e93ed02af
Recipe files changed
Inputs
| source.sha256 | c624ba2998fc65df1163a49641ff3f9ab73138b11641d92c86bee0fb01b1bc7f |
|---|---|
| source.url | https://github.com/libexpat/libexpat/releases/download/R_2_10_0/expat-2.10.0.tar.xz |
Platforms
ios, iossim, macosx, catalyst, tvos, tvossim, watchos, watchossim, xros, xrossim
Toolchains
cmake { default-recipe = "apotocki/cmake", version = ">= 3.20" }ninja { default-recipe = "apotocki/ninja", version = ">= 1.10" }
Recipe files
build.lua
-- Expat's CMake project, the library only (no xmlwf, examples or tests). What it installs: libexpat.a, or libexpat.dylib with its links.
function build(slice, options, deps)
local static = slice.linkage == "static"
otok.cmake{ defines = {
EXPAT_SHARED_LIBS = not static, EXPAT_BUILD_TOOLS = false, EXPAT_BUILD_EXAMPLES = false, EXPAT_BUILD_TESTS = false,
EXPAT_BUILD_DOCS = false, EXPAT_BUILD_FUZZERS = false,
} }
local p = slice.prefix
return { libraries = { expat = otok.glob(static and "lib/libexpat.a" or "lib/libexpat.dylib", p)[1] }, headers = p .. "/include" }
end
recipe.toml
# The otok recipe of Expat (https://github.com/apotocki/otok): libexpat for every Apple platform, from the release archive, with Expat's CMake, the
# library only (no xmlwf, examples or tests); static or dynamic.
[recipe]
api = 1
library = "expat"
name = "expat"
version = "2.10.0"
revision = 1
license = "MIT"
license-files = ["COPYING"]
homepage = "https://libexpat.github.io"
documentation = "https://libexpat.github.io/doc/"
description = "Expat, a stream-oriented XML parser library written in C."
keywords = ["xml", "parser"]
linkage = ["static", "dynamic"]
[source]
url = "https://github.com/libexpat/libexpat/releases/download/R_2_10_0/expat-2.10.0.tar.xz"
sha256 = "c624ba2998fc65df1163a49641ff3f9ab73138b11641d92c86bee0fb01b1bc7f"
[platforms]
supported = ["ios", "iossim", "macosx", "catalyst", "tvos", "tvossim", "watchos", "watchossim", "xros", "xrossim"]
build-on = ["macos/xcode"]
[toolchains]
cmake = { version = ">= 3.20", default-recipe = "apotocki/cmake" }
ninja = { version = ">= 1.10", default-recipe = "apotocki/ninja" }
[[product]]
name = "Expat"
libraries = ["expat"]
apple = { privacy-manifest = "none" }