Merge branch 'meson-pkgconfig' into 'master'

Meson: Fix deprecation warning with upcoming 0.49.0 release

See merge request GNOME/glib!517
This commit is contained in:
Xavier Claessens 2018-12-10 20:19:38 +00:00
commit 3fadcf9ffa
5 changed files with 8 additions and 5 deletions

View File

@ -817,7 +817,7 @@ endif
schemas_subdir = join_paths('glib-2.0', 'schemas')
pkg.generate(libraries : libgio,
pkg.generate(libgio,
libraries_private : [osx_ldflags],
requires : ['glib-2.0', 'gobject-2.0'],
variables : ['datadir=' + join_paths('${prefix}', get_option('datadir')),

View File

@ -273,7 +273,8 @@ libglib_dep = declare_dependency(
# We sadly need to export configinc here because everyone includes <glib/*.h>
include_directories : [configinc, glibinc])
pkg.generate(libraries : [libglib, libintl],
pkg.generate(libglib,
libraries : [libintl],
libraries_private : [osx_ldflags, win32_ldflags],
subdirs : ['glib-2.0'],
extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags,

View File

@ -109,7 +109,8 @@ libgmodule = library('gmodule-2.0',
supported_var = 'gmodule_supported=@0@'.format(g_module_impl != '0')
pkg.generate(libraries : [libgmodule, thread_dep],
pkg.generate(libgmodule,
libraries : [thread_dep],
requires : ['glib-2.0'],
version : glib_version,
variables : [supported_var],

View File

@ -74,7 +74,7 @@ libgobject = library('gobject-2.0',
link_args : glib_link_flags,
)
pkg.generate(libraries : libgobject,
pkg.generate(libgobject,
requires : ['glib-2.0'],
version : glib_version,
install_dir : glib_pkgconfigreldir,

View File

@ -23,7 +23,8 @@ libgthread = library('gthread-2.0',
link_args : glib_link_flags,
)
pkg.generate(libraries : [libgthread, thread_dep],
pkg.generate(libgthread,
libraries : [thread_dep],
requires : ['glib-2.0'],
version : glib_version,
install_dir : glib_pkgconfigreldir,