meson.build: manually link all sources into the library
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 8 Feb 2019 02:15:48 +0000 (12:15 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 8 Feb 2019 02:21:28 +0000 (12:21 +1000)
commit75ce741ab97e3d17a0c9b06dd4bdf57c00d5538e
treef1fbe3162ba247373096759de45e9a4400d362b7
parent73794e1e547704d7ba9242a8f7873e17631faecb
meson.build: manually link all sources into the library

This works around meson bug 3937, 'link_whole' arguments don't get added into
the final static library and we end up with a virtually empty 8-byte
libxkbcommon.a file, see https://github.com/mesonbuild/meson/issues/3937

Workaround is simply to add all sources to both libraries we need them in.
This obviously compiles them twice but this year's winter was cold and
bit of extra warmth will be appreciated.

Fixes #84

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build