concord icon indicating copy to clipboard operation
concord copied to clipboard

Ship a pkg-config file

Open v1993 opened this issue 2 years ago • 0 comments

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 avatar Aug 14 '23 04:08 v1993