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

Adding a vapi to 'sources' promote the depending library to a Vala target #1307

Open
arteymix opened this issue Jan 15, 2017 · 1 comment
Open

Comments

@arteymix
Copy link
Contributor

Here's the typical use case where you create some library and bundle a vapi along, potentially from vapigen, and use it along a C target:

foo_dep = declare_dependency(link_with: foo_lib, sources: foo_vapi)
bar = executable('bar', 'bar.c', dependency: foo_dep)

This is causing the following error:

Vala library has no Vala source files.

I'm either doing this wrong or having a *.vapi as source should not be a sufficient criteria to promote a target.

@nirbheek
Copy link
Member

You're right, this is a bug. However, this is partly because the way we declare a Vala dependency is hacky. The correct fix is to make declare_dependency understand Vala dependencies. We will need this for Rust too.

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