4f5e360180
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>
37 lines
913 B
Meson
37 lines
913 B
Meson
srcs_libdesktop = [
|
|
'libweston-desktop.c',
|
|
'client.c',
|
|
'seat.c',
|
|
'surface.c',
|
|
'xwayland.c',
|
|
'wl-shell.c',
|
|
'xdg-shell.c',
|
|
'xdg-shell-v6.c',
|
|
xdg_shell_unstable_v6_server_protocol_h,
|
|
xdg_shell_unstable_v6_protocol_c,
|
|
xdg_shell_server_protocol_h,
|
|
xdg_shell_protocol_c,
|
|
]
|
|
lib_desktop = shared_library(
|
|
'weston-desktop-@0@'.format(libweston_major),
|
|
srcs_libdesktop,
|
|
include_directories: common_inc,
|
|
install: true,
|
|
version: '0.0.@0@'.format(libweston_revision),
|
|
dependencies: dep_libweston
|
|
)
|
|
dep_lib_desktop = declare_dependency(
|
|
link_with: lib_desktop,
|
|
dependencies: dep_libweston
|
|
)
|
|
|
|
pkgconfig.generate(
|
|
lib_desktop,
|
|
filebase: 'libweston-desktop-@0@'.format(libweston_major),
|
|
name: 'libweston-desktop',
|
|
version: version_weston,
|
|
description: 'Desktop shells abstraction library for libweston compositors',
|
|
requires_private: [ lib_weston, dep_wayland_server ],
|
|
subdirs: dir_include_libweston
|
|
)
|