Otok public index

apotocki/plutovg

apotocki/plutovg 1.3.3 (r1, windows)

Library
plutovg
Variant
windows, target windows
Channel
stable
Published
2026-11-07
Recipe source
https://github.com/otok-dev/recipes.git
32756a87cf5bd189ca4c9825159bf0713ea8cf5e in recipes/plutovg/1.3/windows/
Recipe SHA-256
59c735a35bf9712fb47b875a774e4e3c08e882926441db8768fe6ed084ad44a4

Recipe files changed

Inputs

source.commitbbd91f0d06a71491691b36330f29dffa4af87ccf
source.githttps://github.com/sammycage/plutovg
source.tagv1.3.3

Platforms

windows

Toolchains

Recipe files

build.lua 1029 bytes · raw
-- PlutoVG's CMake project without its examples. What it installs: plutovg.lib, or plutovg.lib with
-- plutovg.dll; the header in include/plutovg/.
function build(slice, options, deps)
    otok.cmake{ defines = { PLUTOVG_BUILD_EXAMPLES = false } }
    local p = slice.prefix
    -- a static library is told by PLUTOVG_BUILD_STATIC, which its CMake config gives its consumers: the
    -- header says so itself, as the others have no config
    if slice.linkage == "static" then
        local header = p .. "/include/plutovg/plutovg.h"
        local text, n = otok.read(header):gsub("defined%(PLUTOVG_BUILD_STATIC%)", "1")
        assert(n > 0, "plutovg.h no longer tests PLUTOVG_BUILD_STATIC")
        otok.write(header, text)
    end
    local lib = otok.glob("lib/plutovg*.lib", p)[1]
    local dll = otok.glob("bin/*plutovg*.dll", p)[1]
    if dll then return { libraries = { plutovg = { link = lib, runtime = dll } }, headers = p .. "/include" } end
    return { libraries = { plutovg = lib }, headers = p .. "/include" }
end
recipe.toml 898 bytes · raw
# The otok recipe of PlutoVG (https://github.com/apotocki/otok): plutovg for Windows, from the release tag, with MSVC
# or with clang-cl across from Linux; static or dynamic.
[recipe]
api = 1
library = "plutovg"
name = "plutovg"
version = "1.3.3"
revision = 1
license = "MIT"
license-files = ["LICENSE"]
homepage = "https://github.com/sammycage/plutovg"
description = "PlutoVG, a tiny 2D vector graphics library in C."
keywords = ["graphics", "vector", "2d"]
linkage = ["static", "dynamic"]

[source]
git = "https://github.com/sammycage/plutovg"
commit = "bbd91f0d06a71491691b36330f29dffa4af87ccf"
tag = "v1.3.3"

[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 = "PlutoVG"
libraries = ["plutovg"]