summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 43a88a6cf..286f17c2d 100644
--- a/meson.build
+++ b/meson.build
@@ -237,6 +237,10 @@ else
endif
gdk_pixbuf_conf.set('USE_GMODULE', build_modules)
+# We want these loaders to be built into gdk-pixbuf unless
+# the builtin_loaders option specifies otherwise
+default_builtin_loaders = [ 'png', 'jpeg' ]
+
# Check which loaders should be built into gdk-pixbuf
builtin_loaders = get_option('builtin_loaders').split(',')
@@ -245,6 +249,8 @@ builtin_loaders = get_option('builtin_loaders').split(',')
builtin_all_loaders = false
if builtin_loaders == [ 'all' ]
builtin_all_loaders = true
+elif builtin_loaders == [ 'default' ]
+ builtin_loaders = default_builtin_loaders
elif builtin_loaders == [ 'none' ]
builtin_loaders = []
endif