mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 09:56:14 +00:00
![Pekka Paalanen](/assets/img/avatar_default.png)
Add human-friendly error message. Cairo is a hard dependency on the whole at least because tests seem to require it, but this will help if someone adds an option to disable building tests to get rid of Cairo. Signed-off-by: Pekka Paalanen <pq@iki.fi>
22 lines
435 B
Meson
22 lines
435 B
Meson
if not get_option('wcap-decode')
|
|
subdir_done()
|
|
endif
|
|
|
|
srcs_wcap = [
|
|
'main.c',
|
|
'wcap-decode.c',
|
|
]
|
|
|
|
wcap_dep_cairo = dependency('cairo', required: false)
|
|
if not wcap_dep_cairo.found()
|
|
error('wcap requires cairo which was not found. Or, you can use \'-Dwcap-decode=false\'.')
|
|
endif
|
|
|
|
executable(
|
|
'wcap-decode',
|
|
srcs_wcap,
|
|
include_directories: include_directories('..'),
|
|
dependencies: [ dep_libm, wcap_dep_cairo ],
|
|
install: true
|
|
)
|