Otok public index

apotocki/expat

apotocki/expat 2.10.0 (r1, windows)

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

Recipe files changed

Inputs

source.sha256c624ba2998fc65df1163a49641ff3f9ab73138b11641d92c86bee0fb01b1bc7f
source.urlhttps://github.com/libexpat/libexpat/releases/download/R_2_10_0/expat-2.10.0.tar.xz

Platforms

windows

Toolchains

Recipe files

build.lua 547 bytes · raw
-- Expat's CMake project, the library only, static. What it installs: libexpat.lib or libexpatMD.lib (the name carries the CRT).
function build(slice, options, deps)
    otok.cmake{ defines = {
        EXPAT_SHARED_LIBS = false, EXPAT_BUILD_TOOLS = false, EXPAT_BUILD_EXAMPLES = false, EXPAT_BUILD_TESTS = false,
        EXPAT_BUILD_DOCS = false, EXPAT_BUILD_FUZZERS = false, EXPAT_MSVC_STATIC_CRT = false,
    } }
    local p = slice.prefix
    return { libraries = { expat = otok.glob("lib/*expat*.lib", p)[1] }, headers = p .. "/include" }
end
recipe.toml 1078 bytes · raw
# The otok recipe of Expat (https://github.com/apotocki/otok): libexpat for Windows, from the release archive, with Expat's CMake, the
# library only (no xmlwf, examples or tests); static (consumers are built with XML_STATIC, which the product defines).
[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"]

[source]
url = "https://github.com/libexpat/libexpat/releases/download/R_2_10_0/expat-2.10.0.tar.xz"
sha256 = "c624ba2998fc65df1163a49641ff3f9ab73138b11641d92c86bee0fb01b1bc7f"

[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 = "Expat"
libraries = ["expat"]
defines = ["XML_STATIC"]