summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2022-11-27 17:33:45 +0000
committerVincent Sanders <vince@kyllikki.org>2022-11-27 17:34:41 +0000
commit9b57f64c55d244d59ac0c00988ee60c514405d6d (patch)
treefa52c6aad485d467c33310892615ab0eb7a21c52 /frontends
parent550900b1cbfffcd3ceb5c00631bcbae2b453443c (diff)
downloadnetsurf-9b57f64c55d244d59ac0c00988ee60c514405d6d.tar.gz
netsurf-9b57f64c55d244d59ac0c00988ee60c514405d6d.tar.bz2
add rsvg image decoder that uses the new API
Diffstat (limited to 'frontends')
-rw-r--r--frontends/gtk/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/gtk/Makefile b/frontends/gtk/Makefile
index 4f3fd5f52..79f03b370 100644
--- a/frontends/gtk/Makefile
+++ b/frontends/gtk/Makefile
@@ -11,6 +11,8 @@
NETSURF_FEATURE_RSVG_CFLAGS := -DWITH_RSVG
NETSURF_FEATURE_VIDEO_CFLAGS := -DWITH_VIDEO
+# determine if the rsvg library API version
+RSVG_API := $(shell $(PKG_CONFIG) --atleast-version=2.46 librsvg-2.0 && echo 246)
$(eval $(call pkg_config_find_and_add_enabled,RSVG,librsvg-2.0,SVG))
$(eval $(call pkg_config_find_and_add_enabled,VIDEO,gstreamer-0.10,Video))