Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gtkdoc: remove dependencies on custom target files #407

Merged
merged 1 commit into from
Jan 12, 2022
Merged

gtkdoc: remove dependencies on custom target files #407

merged 1 commit into from
Jan 12, 2022

Conversation

eli-schwartz
Copy link
Contributor

@eli-schwartz eli-schwartz commented Jan 12, 2022

Sadly, the dependencies kwarg does not actually do what it seems to be trying to be used for, here. It is for listing dependency or library objects whose compiler flags should be added to gtkdoc-scangobj.

It will not actually add ninja target dependencies. The similar kwarg in other meson functions (e.g. genmarshal and compile_schemas) that do allow adding target dependencies, is depend_files.

Older versions of meson simply did nothing in an if/elif/elif block where these custom_targets never matched anything, and were thus silently ignored.

Meson 0.61 type-validates the arguments and rejects CustomTarget as invalid:

doc/manual/meson.build:72:8: ERROR: gnome.gtkdoc keyword argument 'dependencies' was of type array[CustomTarget | PkgConfigDependency] but should have been array[Dependency | SharedLibrary | StaticLibrary]

Fixes #406

Sadly, the `dependencies` kwarg does not actually do what it seems to be
trying to be used for, here. It is for listing dependency or library
objects whose compiler flags should be added to gtkdoc-scangobj.

It will not actually add ninja target dependencies. The similar kwarg in
other meson functions (e.g. genmarshal and compile_schemas) that *do*
allow adding target dependencies, is `depend_files`.

Older versions of meson simply did nothing in an if/elif/elif block
where these custom_targets never matched anything, and were thus
silently ignored.

Meson 0.61 type-validates the arguments and rejects CustomTarget as
invalid:

```
doc/manual/meson.build:72:8: ERROR: gnome.gtkdoc keyword argument 'dependencies' was of type array[CustomTarget | PkgConfigDependency] but should have been array[Dependency | SharedLibrary | StaticLibrary]
```

Fixes #406
@coveralls
Copy link

coveralls commented Jan 12, 2022

Coverage Status

Coverage remained the same at 71.745% when pulling 18c5f0f on eli-schwartz:meson-gtkdoc-kwargcheck into 04f8585 on p11-glue:master.

@ueno ueno merged commit 9f01a8a into p11-glue:master Jan 12, 2022
@ueno
Copy link
Member

ueno commented Jan 12, 2022

Thank you!

@eli-schwartz eli-schwartz deleted the meson-gtkdoc-kwargcheck branch January 12, 2022 12:07
@ueno ueno added this to the 0.24.1 milestone Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails to build with Meson 0.61.0
3 participants