diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-05-05 09:52:48 -0400 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2021-05-05 09:52:48 -0400 |
commit | 7305f1ee096f819b52118b179c06e3d868518689 (patch) | |
tree | b92948f70dadceb69e3963b2bf708a7ee8b24609 /meson_options.txt | |
parent | 1bfbff2a7f36c92c156897db79109121f465bb7d (diff) | |
download | gdk-pixbuf-7305f1ee096f819b52118b179c06e3d868518689.tar.gz |
Meson: Change png/jpeg/tiff options from boolean to feature
png/jpeg are essential and have a fallback subproject so they are
enabled by default. tiff is not required by GTK and does not have a
subproject so it's set to 'auto' by default.
This fixes the case where tiff option was set to true by default but
meson setup was not aborting if the dependency was not found. Instead it
was failing at build time.
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meson_options.txt b/meson_options.txt index 0ee6718bf..c12179c5e 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,15 +1,15 @@ option('png', description: 'Enable PNG loader (requires libpng)', - type: 'boolean', - value: true) + type: 'feature', + value: 'enabled') option('tiff', description: 'Enable TIFF loader (requires libtiff), disabled on Windows if "native_windows_loaders" is used', - type: 'boolean', - value: true) + type: 'feature', + value: 'auto') option('jpeg', description: 'Enable JPEG loader (requires libjpeg), disabled on Windows if "native_windows_loaders" is used', - type: 'boolean', - value: true) + type: 'feature', + value: 'enabled') option('builtin_loaders', description: 'Comma-separated list of loaders to build into gdk-pixbuf', type: 'array', |