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

Please add a pkg-config file? #512

Open
bredelings opened this issue Mar 15, 2022 · 1 comment
Open

Please add a pkg-config file? #512

bredelings opened this issue Mar 15, 2022 · 1 comment

Comments

@bredelings
Copy link

Hi,

I am building some software with meson (which serves a similar role to cmake) and it would be much easier to consume restbed if restbed would install a pkg-config file.

Specifically

  • the pkg-config file is able to specify the flags for linking against libcurl and openssl ONLY IF NEEDED. Restbed knows if libcurl and openssl have been are needed, but the downstream application does not know. Putting this info in the pkg-config file means that the downstream application can just request "restbed", and everything works, instead of adding flags to the downstream application to maybe link against libcurl and maybe not.

  • meson right now seems not to be generating @rpath@ entries on OS X for dependencies that are not specified via pkg-config or cmake.

Here is one method for generating the pkg-config file from cmake: https://www.scivision.dev/cmake-generate-pkg-config/

-BenRI

P.S. I did notice #138. That issue made it sound like (1) restbed initially installed a FindRestbed.cmake module, and then was extended to (2) install a pkg-config file as well. However, when installing restbed it doesn't look like restbed installs EITHER a cmake file to find restbed, OR a pkg-config file. So perhaps I am confused.

@bredelings
Copy link
Author

bredelings commented Mar 18, 2022

Actually meson does the right thing when I coded the meson.build file in a better way.
However, the first issue about using the right flags to link against libcurl and openssl remains.

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

1 participant