mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 04:40:07 +01:00
meson: better error for wcap dep cairo
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>
This commit is contained in:
parent
182d3771dd
commit
b423edecbb
1 changed files with 5 additions and 5 deletions
|
|
@ -7,15 +7,15 @@ srcs_wcap = [
|
|||
'wcap-decode.c',
|
||||
]
|
||||
|
||||
deps_wcap = [
|
||||
dep_libm,
|
||||
dependency('cairo'),
|
||||
]
|
||||
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: deps_wcap,
|
||||
dependencies: [ dep_libm, wcap_dep_cairo ],
|
||||
install: true
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue