build: simplify include_directories
authorPekka Paalanen <pekka.paalanen@collabora.com>
Fri, 5 Apr 2019 14:09:28 +0000 (17:09 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.com>
Fri, 4 Oct 2019 14:14:22 +0000 (17:14 +0300)
commit4f5e3601803b8c1cd2cefd17dc1b2bb65060eab4
tree235a41290855fcea2e906fcdfb839828ad79946c
parentc232f8d93422512611badd456171e788abd86ba6
build: simplify include_directories

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 files changed:
clients/meson.build
compositor/meson.build
desktop-shell/meson.build
fullscreen-shell/meson.build
ivi-shell/meson.build
libweston-desktop/meson.build
libweston/backend-drm/meson.build
libweston/backend-fbdev/meson.build
libweston/backend-headless/meson.build
libweston/backend-rdp/meson.build
libweston/backend-wayland/meson.build
libweston/backend-x11/meson.build
libweston/meson.build
libweston/renderer-gl/meson.build
meson.build
pipewire/meson.build
remoting/meson.build
shared/meson.build
tests/meson.build
wcap/meson.build
xwayland/meson.build