build: Pass library as first argument to pkg.generate()

Dependencies are added automatically, and we no longer get warnings
like:

clutter/clutter/meson.build:628: DEPRECATION: Library mutter-clutter-4
was passed to the "libraries" keyword argument of a previous call to
generate() method instead of first positional argument. Adding
mutter-clutter-4 to "Requires" field, but this is a deprecated behaviour
that will change in a future version of Meson. Please report the issue
if this warning cannot be avoided in your case.
This commit is contained in:
Jonas Ådahl
2019-01-08 09:05:08 +01:00
parent e7fb45364a
commit 73ddd7cd48
6 changed files with 10 additions and 14 deletions

View File

@ -833,11 +833,10 @@ if have_introspection
)
endif
pkg.generate(
pkg.generate(libmutter,
name: 'Meta',
filebase: 'libmutter-' + libmutter_api_version,
description: 'Mutter compositor and window manager library',
libraries: [libmutter],
subdirs: pkgname,
requires: [mutter_pkg_deps, libmutter_clutter_name],
version: meson.project_version(),