mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 18:05:39 +00:00
![Pekka Paalanen](/assets/img/avatar_default.png)
Define common_inc which includes both public_inc and the project root directory. The project root directory will allow access to config.h and all the shared/ headers. Replacing all custom '.', '..', '../..', '../shared' etc. include paths with common_inc reduces clutter in the target definitions and enforces the common #include directive style, as e.g. including shared/ headers without the subdirectory name no longer works. Unfortunately this does not prevent one from using private libweston headers with the usual include pattern for public headers. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
22 lines
420 B
Meson
22 lines
420 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: common_inc,
|
|
dependencies: [ dep_libm, wcap_dep_cairo ],
|
|
install: true
|
|
)
|