mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-20 15:23:56 -07:00
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.
560 B
560 B
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.