From 9ee03ef4813eaaf6e5098efac41daf8169fcee0e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 31 Mar 2025 01:09:51 +0100 Subject: Add lunasvg (and plutovg) This is the SVG library used by ImGui, so makes sense a choice even if we're not using it there yet. --- .gitmodules | 3 +++ thirdparty/Jamfile.jam | 12 ++++++++++++ thirdparty/lunasvg | 1 + 3 files changed, 16 insertions(+) create mode 160000 thirdparty/lunasvg diff --git a/.gitmodules b/.gitmodules index 63a1a38..b5aa2c7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "thirdparty/imgui"] path = thirdparty/imgui url = https://github.com/ocornut/imgui +[submodule "thirdparty/lunasvg"] + path = thirdparty/lunasvg + url = https://github.com/sammycage/lunasvg diff --git a/thirdparty/Jamfile.jam b/thirdparty/Jamfile.jam index b6ed163..26497c9 100644 --- a/thirdparty/Jamfile.jam +++ b/thirdparty/Jamfile.jam @@ -28,3 +28,15 @@ lib imguisdl2 : : : imgui ; + +lib lunasvg : + [ glob lunasvg/source/*.cpp lunasvg/plutovg/source/*.c ] + : + static + lunasvg/include + lunasvg/plutovg/include + off + -fPIC + : : + lunasvg/include + ; diff --git a/thirdparty/lunasvg b/thirdparty/lunasvg new file mode 160000 index 0000000..f8aabfb --- /dev/null +++ b/thirdparty/lunasvg @@ -0,0 +1 @@ +Subproject commit f8aabfb444bb37f69df7290790f57e4a27730a93 -- cgit v1.2.3