Cogmasters / concord

A Discord API wrapper library made in C
https://cogmasters.github.io/concord/
MIT License
523 stars 30 forks source link

Ship a pkg-config file #160

Open v1993 opened 1 year ago

v1993 commented 1 year ago

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.