From d91789cf42d88852709bfc62fab5f242a36fdf84 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 18 Jul 2024 18:21:11 +0200 Subject: meson/nanosvg: add support for linking against system's nanosvg Nanosvg upstream is header only, and does not support/provide a library, neither shared nor static. However, most distributions still provide a nanosvg package with either a static library, or shared. Arch does the latter. So, let's support building against a system provided nanosvg library. The default is still to use bundled version, but this can be changed with -Dsystem-nanosvg=enabled when configuring the build tree. --- nanosvgrast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nanosvgrast.c') diff --git a/nanosvgrast.c b/nanosvgrast.c index 1aa46c4..07d85b6 100644 --- a/nanosvgrast.c +++ b/nanosvgrast.c @@ -1,6 +1,6 @@ #include #include -#include +#include <3rd-party/nanosvg/src/nanosvg.h> #define NANOSVGRAST_IMPLEMENTATION -#include +#include <3rd-party/nanosvg/src/nanosvgrast.h> -- cgit v1.2.3