diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-09-07 18:06:50 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-09-07 18:09:47 +0800 |
commit | 7386e44bbf42359a71027d108d98afc7e454282d (patch) | |
tree | be52865e87219284058672f7b317c11cb2d66ecc /meson_options.txt | |
parent | 859581953212b1b6950418f26e200a4bfa316432 (diff) | |
download | gdk-pixbuf-7386e44bbf42359a71027d108d98afc7e454282d.tar.gz |
build: Support Windows components-based loader
There is currently a GDI+ image loader that is within the GDK-Pixbuf
codebase, which can serve as a basis for improvements to it or for
moving on to more modern Windows APIs/Frameworks such as Windows
Imaging Component (WIC).
Provide a Windows-only option to build it with Meson, which will mean
that when it is used the TIFF and JPEG loaders will not require libtiff
and libjpeg-turbo/IJG JPEG, but will use the GDI+ component of Windows
to deal with these images, along with BMP, GIF, ICO and images. This
will also enable the support of EMF and WMF images. For building this
set of loaders into the GDK-Pixbuf DLL, pass in 'windows' as a part of
the loaders passed into builtin_loaders, or pass in 'all' to
builtin_loaders in conjunction with this option.
This also means that by using this set of GDI+ loaders, we cannot use
any of the loaders (either in-house or those using the various
opensource libraries) for these formats, so these loaders will be
disabled as a result, since the MIME types, extensions and signature
of these formats are the same in the GDI+ loaders with their respective
counterparts that are otherwise built.
Note that PNG support still requires libpng, and JPEG2000 support still
requires libjasper, and in its current state, the TIFF and JPEG and ICO
(and hence ANI) support that are done by the opensource libraries and/or
the in-house loaders are still preferred over the GDI+-based ones since
in the current state they tend to work better, so this is provided as an
option.
https://bugzilla.gnome.org/show_bug.cgi?id=785767
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meson_options.txt b/meson_options.txt index ba6524698..8faab661f 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -3,11 +3,11 @@ option('enable_png', type: 'boolean', value: true) option('enable_tiff', - description: 'Enable TIFF loader (requires libtiff)', + description: 'Enable TIFF loader (requires libtiff), disabled on Windows if "enable_native_windows_loaders" is used', type: 'boolean', value: true) option('enable_jpeg', - description: 'Enable JPEG loader (requires libjpeg)', + description: 'Enable JPEG loader (requires libjpeg), disabled on Windows if "enable_native_windows_loaders" is used', type: 'boolean', value: true) option('enable_jasper', @@ -34,3 +34,7 @@ option('enable_relocatable', description: 'Whether to enable application bundle relocation support', type: 'boolean', value: false) +option('enable_native_windows_loaders', + description: 'Use Windows system components to handle BMP, EMF, GIF, ICO, JPEG, TIFF and WMF images, overriding enable_jpeg and enable_tiff. To build this into gdk-pixbuf, pass in windows" with the other loaders to build in or use "all" with the builtin_loaders option', + type: 'boolean', + value: false) |