Add epoll-shim dependency on FreeBSD

On FreeBSD, epoll is provided as a 3rd-party library, so it needs to be
added as a dependency.
This commit is contained in:
sghctoma 2018-10-17 10:55:53 +02:00
parent fa587b8ea9
commit 1d7cc1b38b
1 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,13 @@ libavutil = dependency('libavutil', version: '>=56.14.100', required: false)
libavcodec = dependency('libavcodec', version: '>=58.18.100', required: false)
libavformat = dependency('libavformat', version: '>=58.12.100', required: false)
# epoll is a separate library in FreeBSD
if host_machine.system() == 'freebsd'
libepoll = [dependency('epoll-shim')]
else
libepoll = []
endif
# Small hack until https://github.com/mesonbuild/meson/pull/3386/ is merged
foreach dep : ['libpng', 'libavutil', 'libavcodec', 'libavformat']
if not get_variable(dep).found()
@ -97,7 +104,7 @@ examples = {
},
'input-method': {
'src': 'input-method.c',
'dep': [wayland_client, wlr_protos, wlroots],
'dep': [wayland_client, wlr_protos, wlroots] + libepoll,
},
'text-input': {
'src': 'text-input.c',