mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 02:20:13 +01:00
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>
21 lines
540 B
Meson
21 lines
540 B
Meson
if not get_option('backend-headless')
|
|
subdir_done()
|
|
endif
|
|
|
|
config_h.set('BUILD_HEADLESS_COMPOSITOR', '1')
|
|
|
|
srcs_headless = [
|
|
'headless.c',
|
|
presentation_time_server_protocol_h,
|
|
]
|
|
plugin_headless = shared_library(
|
|
'headless-backend',
|
|
srcs_headless,
|
|
include_directories: common_inc,
|
|
dependencies: dep_libweston,
|
|
name_prefix: '',
|
|
install: true,
|
|
install_dir: dir_module_libweston,
|
|
)
|
|
env_modmap += 'headless-backend.so=@0@;'.format(plugin_headless.full_path())
|
|
install_headers(backend_headless_h, subdir: dir_include_libweston_install)
|