summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-04-08 17:28:02 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-04-08 17:28:02 +0100
commitdac7bbac2ed73449a1cfc02745dbcd73f90f0538 (patch)
tree13f96ed1581dcf9c70922476bfe14d13d7658201 /meson_options.txt
parent866670e30907eb534895da26626709ed5f2e419d (diff)
downloadgdk-pixbuf-dac7bbac2ed73449a1cfc02745dbcd73f90f0538.tar.gz
build: Use `type:array` for builtin_loaders option
This gives us an actual array, and lets Meson deal with the argument parsing. It also gives us a default value that we can specify in the meson_options.txt.
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 0705e8cde..0ee6718bf 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -11,9 +11,10 @@ option('jpeg',
type: 'boolean',
value: true)
option('builtin_loaders',
- description: 'Comma-separated list of loaders to build into gdk-pixbuf, or "default", or "none", or "all" to build all buildable loaders into gdk-pixbuf',
- type: 'string',
- value: 'default')
+ description: 'Comma-separated list of loaders to build into gdk-pixbuf',
+ type: 'array',
+ choices: ['all', 'none', 'windows', 'png', 'bmp', 'gif', 'ico', 'ani', 'jpeg', 'pnm', 'tiff', 'xpm', 'xbm', 'tga', 'icns', 'qtif'],
+ value: ['png', 'jpeg'])
option('gtk_doc',
description: 'Whether to generate the API reference',
type: 'boolean',