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

custom_target ignores deps with ninja backend #1846

Open
phako opened this issue May 23, 2017 · 2 comments
Open

custom_target ignores deps with ninja backend #1846

phako opened this issue May 23, 2017 · 2 comments

Comments

@phako
Copy link
Contributor

phako commented May 23, 2017

Try running test cases/vala/9 gir the following way:

cd test cases/vala/9 gir
mkdir _build
cd _build
meson ..
ninja Foo-1.0.typelib
ninja: error: '/home/jens/Source/meson/test cases/vala/9 gir/_build/Foo-1.0.gir', needed by 'Foo-1.0.typelib', missing and no known rule to make it

Ninja does not seem to know that it has to build the dependency declared in deps

@phako
Copy link
Contributor Author

phako commented Jun 2, 2017

Btw, I'm not sure it is specifc to vala or gnome, I think custom_target has an issue with interpreting deps properly

@phako
Copy link
Contributor Author

phako commented Aug 13, 2017

I looked a bit deeper. The gir target will declare an output artifact Foo-1.0.gir in its ninja rule, but then the rule for generating the typelib will be written with "/full/path/to/gir/in/build/Foo-1.0.gir" due to meson.current_build_dir() being returning the full path - that doesn't match up. If I manually remove the full path from the build file, ninja is happy.

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