-
Notifications
You must be signed in to change notification settings - Fork 80
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
add support for meson build system #57
Conversation
meson_options.txt
Outdated
@@ -0,0 +1,2 @@ | |||
#option('gtk-doc', type: 'boolean', value: false, description: 'build docs') | |||
option('introspection', type: 'boolean', value: false, description: 'build gir data') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be generated by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright :)
Cool, you can remove the old build system when you are done 👍 . |
IMO it makes sense to keep the old one for at least one release, just in case something is broken with the meson implementation after all :) |
Okay, I've added the stuff I've done so far for gtk-doc, but it still fails ( although I think that I've copied everything from Makefile.am ) Full logs: Configuration:
Building:
The actual error message by gtk-doc:
|
Did you run |
Just tried it, exactly the same happens ( and gtk-doc.m4 doesn't contain anything that's not set in the respective meson.build file, I think ) |
The source of the problem seems to be in the <chapter id="object-tree">
<title>Object Hierarchy</title>
<xi:include href="xml/tree_index.sgml"/>
</chapter>
<index id="api-index-full">
<title>API Index</title>
<xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
</index>
<index id="deprecated-api-index" role="deprecated">
<title>Index of deprecated API</title>
<xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>
</index> Look at this example for how to do gtkdoc and try to do what they do and let me know how it goes. |
Okay, seems like I've figured that one out, forgot to generate the GIR related docs |
Okay, it almost works now, I only have to figure out how to link against the shared library that's built and then everything should be set |
Everything should work now :) Please squash the commits before merging, I just like to use fixup commits on github, so that one can track what actually changed in the PR :) |
How do you make the docs?
|
I simply do them during install:
But that shouldn't change anything. It works for me, so I guess one of of us is using an older version of gtk-doc or meson. What versions do you use? I'm using Meson 0.45 and gtk-doc 1.25 myself |
Removing that flag works for me, does it work for you? diff --git a/doc/reference/meson.build b/doc/reference/meson.build
index c008471..8df2fad 100644
--- a/doc/reference/meson.build
+++ b/doc/reference/meson.build
@@ -14,7 +14,6 @@ gnome.gtkdoc(
playerctl_shared_link,
],
mkdb_args: [
- '--sgml-mode',
'--output-format=xml',
'--name-space=meson.project_name()',
], |
Alright, still works. Do mind however that we passed |
Cool looks good thanks 👍 |
This PR adds support for meson to playerctl. It works fine for everything but gtk-doc for me, still messing with that