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

gnome.gtkdoc() expands File arguments to builddir paths not sourcedir paths #1875

Open
tp-m opened this issue May 31, 2017 · 1 comment
Open

Comments

@tp-m
Copy link
Member

tp-m commented May 31, 2017

Got a build error with gnome.gtkdoc() because it can't find the gobject.types file specified as:

gnome.gtkdoc( ...
             gobject_typesfile : 'gobject.types',
             ...)

so I tried using files() instead:

gnome.gtkdoc( ...
             gobject_typesfile : files('gobject.types'),
             ...)

but this got expanded to --gobjects-types-file=/tmp/builddir/docs/reference/gobject/gobject.types'.

Which seems unexpected?

@tp-m tp-m added the gnome label May 31, 2017
gnomesysadmins pushed a commit to GNOME/glib that referenced this issue May 31, 2017
Should really use files('gobject.types') instead, but that
seems to get expanded to the build path for some reason:
mesonbuild/meson#1875
@nirbheek nirbheek added the bug label May 31, 2017
@nirbheek
Copy link
Member

Both should work, definitely. Passing a string that is not an absolute path where a file path is expected should try to resolve it relative to the current directory, and passing a files() object should do exactly as you expect it.

gnomesysadmins pushed a commit to GNOME/glib that referenced this issue Jul 14, 2017
Should really use files('gobject.types') instead, but that
seems to get expanded to the build path for some reason:
mesonbuild/meson#1875
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants