Skip to content

thorvg-sys 0.2.1

Choose a tag to compare

@github-actions github-actions released this 15 Jun 20:03
· 6 commits to main since this release
49237f4

Build-system and portability fixes; still bundles ThorVG 1.0.6. No
API change — a patch bump.

Fixed

  • System (non-vendored) build now finds ThorVG 1.x. link_system
    probed the unversioned thorvg pkg-config module, but ThorVG 1.x
    installs thorvg-1 (meson filebase: 'thorvg-' + vmaj). Probe
    thorvg-1 first, falling back to thorvg for distros that ship the
    unversioned name.
  • MSVC vendored build. Define NOMINMAX — the Windows SDK's
    min/max macros mangled tvgMath.h's Point min(...) / max(...)
    declarations (C2059) — and pass /EHsc for the standard C++ exception
    model.
  • Static linkage on MSVC. Define TVG_STATIC: the vendored library
    is linked as a static archive, but without it the C API expanded to
    __declspec(dllimport) and MSVC rejected the definitions (C2491).