build: look for libev via pkgconfig

FreeBSD has pkg-config files for libev

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-04-14 04:13:51 +01:00
parent 41fd229230
commit aee496aeff
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
libev = dependency('libev', required: false)
if not libev.found()
libev = cc.find_library('ev')
endif
base_deps = [ base_deps = [
cc.find_library('m'), cc.find_library('m'),
cc.find_library('ev'), libev,
dependency('xcb', version: '>=1.9.2'), dependency('xcb', version: '>=1.9.2'),
] ]