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

Use csound cmake module for finding the dependency #4

Open
sdroege opened this issue Apr 1, 2020 · 3 comments
Open

Use csound cmake module for finding the dependency #4

sdroege opened this issue Apr 1, 2020 · 3 comments

Comments

@sdroege
Copy link

sdroege commented Apr 1, 2020

At least on Linux /usr/share/cmake/Csound/FindCsound.cmake is shipped with csound, which allows to find the location of the library and everything else needed to make use of it.

build.rs should check for this and make use of it instead of only looking in hardcoded locations.

There's probably a way to have cmake evaluate it and give cargo the relevant information.

@sdroege
Copy link
Author

sdroege commented May 30, 2020

There's probably a way to have cmake evaluate it and give cargo the relevant information.

The way is to have a dummy cmake build system and extract the information from the files generated by cmake. And that's why it's a bad idea to use cmake... too bad csound doesn't even provide a pkg-config file.

@neithanmo
Copy link
Owner

yeah, It is like mocking all the process and doing it in the build.rs. I already looked at this. Thinking of adding support for pkg-config, at least for linux .

@sdroege
Copy link
Author

sdroege commented Jun 2, 2020

It would be great to add pkg-config in general. It's the only available cross-platform mechanism that we have currently for finding C/C++ libraries

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

2 participants