1
0
forked from 0ad/0ad
0ad/build/premake/pkgconfig
s0600204 c025776703 Use premake5 beta2's externalincludedirs when available
As of the `beta2` version of `premake5`, `sysincludedirs` has been
deprecated
and replaced with/renamed to `externalincludedirs`, and continuing to
use it
causes warnings to be emitted.

With this change, we now use `externalincludedirs` when available so as
to
prevent the warnings, falling back to `sysincludedirs` when it's not to
prevent
breakage with pre-`beta2` versions of `premake5`.


Accepted By: sera
Fixes: #6785
Differential Revision: https://code.wildfiregames.com/D4980
This was SVN commit r27606.
2023-04-16 17:05:30 +00:00
..
pkgconfig.lua Use premake5 beta2's externalincludedirs when available 2023-04-16 17:05:30 +00:00
README.md Migrate to premake5, fixes #3729. 2017-10-30 13:52:05 +00: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.