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

Ship a pkg-config file #160

Open
v1993 opened this issue Aug 14, 2023 · 0 comments
Open

Ship a pkg-config file #160

v1993 opened this issue Aug 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@v1993
Copy link

v1993 commented Aug 14, 2023

Describe the feature

Shipping a simple pkg-config file would make adding this library to CMake- or Meson-based projects more straightforward.

Version

Any, to my knowledge.

Additional context

This is what file would probably look like when installed:

prefix=/usr
libdir=${prefix}/lib
includedir=${prefix}/include

Name: Concord
Description: A Discord API wrapper library made in C
URL: https://cogmasters.github.io/concord/
Version: 2.2.1
Libs: -L${libdir} -ldiscord
Requires.private: libcurl
Cflags: -I${includedir}

The first line should be set to prefix used for installation. Probably just echoing into file directly from Makefile (and then calling install on it) is sufficient in this case.

@v1993 v1993 added the enhancement New feature or request label Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant