summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-09-30 16:17:48 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2021-09-30 16:21:45 +0800
commitdbd0ce30d9ec4ad0baf958087bd3ff31e1f33957 (patch)
treefda0549f611ee4f757888aea0a314b25b5c88910
parenta45e1a01fc2f8628bf4cffba041b90b2b734383d (diff)
downloadgtk+-master-msvc-fixes.tar.gz
meson: Improve search for libpngmaster-msvc-fixes
On Visual Studio-style builds, it is likely that we do not have pkg-config files for libpng, so improve the search for libpng by using CMake's built-in mechanisms for looking for libpng. This, however, means that we need to use 'png' rather than 'libpng' for the package name to search for.
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index e85daf88f5..dd6e9d6471 100644
--- a/meson.build
+++ b/meson.build
@@ -400,7 +400,7 @@ pangocairo_dep = dependency('pangocairo', version: pango_req,
pixbuf_dep = dependency('gdk-pixbuf-2.0', version: gdk_pixbuf_req,
fallback : ['gdk-pixbuf', 'gdkpixbuf_dep'],
default_options: ['png=enabled', 'jpeg=enabled', 'builtin_loaders=png,jpeg', 'man=false'])
-png_dep = dependency('libpng',
+png_dep = dependency(cc.get_argument_syntax() == 'msvc' ? 'png' : 'libpng',
fallback: ['libpng', 'libpng_dep'],
required: true)
tiff_dep = dependency('libtiff-4',