Generate pkg-config configuration file for libs-base

This commit generates a `gnustep-base.pc` file which is installed in `/lib/pkgconfig` and contains the GNUstep base version number, the libraries to link (equivalent to `gnustep-config --base-libs`) with and the C flags to use (equivalent to `gnustep-config --objc-flags`).
This commit is contained in:
Frederik Carlier 2024-03-27 12:30:41 +00:00 committed by Ivan Vučica
parent 61da0dab96
commit 07d17a16a7
5 changed files with 21 additions and 2 deletions

View file

@ -639,6 +639,7 @@ libbase-resources_RESOURCE_FILES = Info-gnustep.plist
libgnustep-base_NEEDS_GUI = NO
libgnustep-baseadd_NEEDS_GUI = NO
libgnustep-base_PKGCONFIG_FILES = "gnustep-base.pc"
# Build the Additions subproject first. It can then be used in by
# both gnustep-base and gnustep-baseadd (otherwise, if we ever build

View file

@ -0,0 +1,6 @@
Name: gnustep-base
Description: The GNUstep Base Library is a library of general-purpose, non-graphical Objective C objects.
Version: @VERSION@
URL: https://github.com/gnustep/libs-base/
Libs: @BASELIBS@
Cflags: @BASEFLAGS@