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

Hook for libraries without pkg-config support #3

Open
sdroege opened this issue May 1, 2020 · 11 comments
Open

Hook for libraries without pkg-config support #3

sdroege opened this issue May 1, 2020 · 11 comments

Comments

@sdroege
Copy link

sdroege commented May 1, 2020

This could then be used to run things like sdl2-config, and similar to retrieve the same information. Crates could provide code to extract these things and then provide the same information as pkg-config to metadeps.

@sdroege
Copy link
Author

sdroege commented Jul 10, 2020

@gdesmott This was accidentally closed instead of the other issue

@gdesmott gdesmott reopened this Jul 10, 2020
@gdesmott
Copy link
Owner

Oups, thanks :)

@jalcine
Copy link

jalcine commented Nov 24, 2020

Definitely would be handy for myself; I'm doing a search for packages via CMake's system.

@sdroege
Copy link
Author

sdroege commented Nov 25, 2020

How do you handle CMake's system though? It seems rather non-trivial, see e.g. this.

From what I understand in meson they create a small temporary cmake build system just for doing dependency checks, and from looking at the code of that it doesn't seem very easy.

But if you want to implement something around that, that would be great :)

@gdesmott
Copy link
Owner

@jalcine which CMake libraries not shipping pkg-config file are you looking to support? I'm wondering if they are that common. From the common above supporting those seems a lot of work, much more than shipping a pkg-config file in those libraries I suspect.

@sdroege
Copy link
Author

sdroege commented Nov 25, 2020

Yeah CMake modules are not really meant to be used outside CMake, they need to be interpreted by it. But there are quite a few projects only shipping a CMake module unfortunately.

The other more easy case is the *-config scripts that e.g. SDL, Python, OpenSSL, etc are shipping with (but they also all have pkg-config files not IIRC).

@pepijndevos
Copy link

I wonder what would be the correct way to handle Windows builds? If you get a Gnu toolchain pkg-config is a thing, but in the MSVC world it seems to be not so much a thing. Not sure what the correct approach would be.

@sdroege
Copy link
Author

sdroege commented Nov 28, 2020

There isn't really one. Some things are using CMake, others use pkg-config, others have nothing

@jalcine
Copy link

jalcine commented Nov 28, 2020 via email

@sdroege
Copy link
Author

sdroege commented Nov 28, 2020

@jalcine That's basically what meson is doing for its cmake dependency resolver that I mentioned above. That's definitely a possible approach

@jalcine
Copy link

jalcine commented Nov 28, 2020 via email

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

No branches or pull requests

4 participants