~scoopta/wofi#64: 
install header files, add pkg-config file

I currently in the process of packaging wofi 1.1 for fedora, noticed it has some development related man pages, which should then go into a -devel package. I was then looking for the corresponding header files and realized that they were not installed. Should be as simple as a adding a section like:

install_headers( 'inc/wofi.h', ..., subdir : 'wofi-1', )

Additionally a pkg-config file (https://www.freedesktop.org/wiki/Software/pkg-config/) would be neat to have as well.

Status
RESOLVED IMPLEMENTED
Submitter
~gicmo
Assigned to
Submitted
8 months ago
Updated
8 months ago
Labels
todo

~scoopta 8 months ago

Would I add something to the meson.build file for install the pkg-config file? I'm not sure how that works since I don't think meson has a function for that and different distros like to put those in different places. Would I use install_data()?

~gicmo 8 months ago

There is a pkgconfig module for meson that should make this task easy: https://mesonbuild.com/Pkgconfig-module.html I think that should be good enough actually. Seen an example here: https://github.com/fwupd/fwupd/blob/master/libfwupdplugin/meson.build#L122

~scoopta 8 months ago

Wow that module makes it very easy indeed. Alright, time to deal with a v1.1.1 which will be fun, because I have to make a new head tag it then merge it back into the tip since I've already pushed new features since v1.1

~scoopta 8 months ago

I have pushed v1.1.1 which should hopefully be good to go with pkg-config and header installation.

~scoopta REPORTED IMPLEMENTED 8 months ago

Register here or Log in to comment, or comment via email.