Files
0ad/build/premake/pkgconfig/README.md
T
Itms 7d1f56e617 Migrate to premake5, fixes #3729.
Make pyrogenesis and tests depend on Collada, fixes #404.

This commit includes custom modules for CxxTest and pkg-config support
that can be improved upon in the future. It also includes all necessary
changes to the build scripts, but the new premake5 features are not
fully exploited yet.

With this change, premake5 becomes the default, but CI scripts on Unix
will continue using premake4 for a while, in order to avoid regressions.

Includes code by zsol.
Reviewed by: wraitii, leper
Differential Revision: https://code.wildfiregames.com/D72
This was SVN commit r20381.
2017-10-30 13:52:05 +00:00

13 lines
560 B
Markdown

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.