thorvg-sys 0.2.1
·
6 commits
to main
since this release
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 unversionedthorvgpkg-config module, but ThorVG 1.x
installsthorvg-1(mesonfilebase: 'thorvg-' + vmaj). Probe
thorvg-1first, falling back tothorvgfor distros that ship the
unversioned name. - MSVC vendored build. Define
NOMINMAX— the Windows SDK's
min/maxmacros mangledtvgMath.h'sPoint min(...)/max(...)
declarations (C2059) — and pass/EHscfor 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).