1
0
forked from 0ad/0ad
0ad/build/premake/pkgconfig
s0600204 7382a4885b Use pkg-config more extensively in build
We now make use of `pkg-config` on Linux, BSD, and macOS systems to find
the headers and libs for the following dependencies, where we weren't
previously:

* `enet`
* `fmt` (on macOS only)
* `gloox`'s dependencies on macOS:
    * `gnutls`
    * `gmp`
    * `nettle`
* `libcurl`
* `libogg`
* `libsodium`
* `miniupnpc` (on macOS only)
* `openAL`
* `openGL`
* `vorbis`
* `zlib`

Please see revision (https://code.wildfiregames.com/D3611) for details.

NOTE: All those building on macOS will need to rebuild their libraries
(`build-osx-libs.sh --force-rebuild`)


Tested by: Langbart (macOS), Freagarach (Ubuntu 18.04), Jenkins CI
(Debian Buster)
Comments by: Stan, wraitii, Freagarach
Differential Revision: https://code.wildfiregames.com/D3611
This was SVN commit r25938.
2021-09-23 16:10:25 +00:00
..
pkgconfig.lua Use pkg-config more extensively in build 2021-09-23 16:10:25 +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.