chessx icon indicating copy to clipboard operation
chessx copied to clipboard

Allow linking against system libraries via pkg-config

Open WOnder93 opened this issue 3 years ago • 3 comments

When 'link_pkgconfig' is added to CONFIG, chessx will now use pkg-config to dynamically link against the quazip and zlib libraries installed on the system, rather than bundling quazip or guessing the header file location. Default behavior remains unchanged.

WOnder93 avatar Jul 26 '21 11:07 WOnder93

I updated the PR to use the new QuaZip development interface (where we can take advantage of pkgconfig) used in version 1.0 and later. Previous version would work against the older 0.x releases.

WOnder93 avatar Aug 19 '21 16:08 WOnder93

Updated to also use pkgconfig for zlib, which is used directly by kzip.cpp, which I missed before. Also I changed it to just react to the built-in link_pkgconfig config rather than introducing a new one.

WOnder93 avatar Sep 14 '21 20:09 WOnder93

@Isarhamster Any feedback to this and the other PR? I'm currently carrying these as downstream patches in Fedora [1]. It would be nice to have them included in an official release.

[1] https://src.fedoraproject.org/rpms/chessx/tree/rawhide

WOnder93 avatar Nov 21 '21 10:11 WOnder93