0ad/build/premake/pkgconfig
Ralph Sennhauser 1c9d4508f7
Cleanup of premake pkgconfig module
Split public and private stuff into their own sections and do parsing of
libs in a helper function analog to the parse helper function for
includes and document public funcions using LDoc. Finally make setting
the static flag a function.

Ref: #8135
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-07-17 11:22:05 +02:00
..
pkgconfig.lua Cleanup of premake pkgconfig module 2025-07-17 11:22:05 +02:00
README.md Fix readmes for premake modules 2024-12-13 21:15:12 +01:00

This premake module adds supports for pkgconfig

It allows one to use the pkg-config command (or an alternative one like sdl2-config to determine the names of libraries to be passed to the linker.

The solution of putting directly the output (like "-Lxml2") into the linker options creates an inconsistency between libraries using pkgconfig and the libraries not using it.

We should always use premake's linkoptions to specify global options and links to specify libraries, in order to avoid ordering problems in the list of libraries statically linked.