diff options
author | Pekka Paalanen <pekka.paalanen@collabora.com> | 2019-04-05 17:09:28 +0300 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.com> | 2019-10-04 17:14:22 +0300 |
commit | 4f5e3601803b8c1cd2cefd17dc1b2bb65060eab4 (patch) | |
tree | 235a41290855fcea2e906fcdfb839828ad79946c /pipewire | |
parent | c232f8d93422512611badd456171e788abd86ba6 (diff) | |
download | weston-4f5e3601803b8c1cd2cefd17dc1b2bb65060eab4.tar.gz |
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>
Diffstat (limited to 'pipewire')
-rw-r--r-- | pipewire/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pipewire/meson.build b/pipewire/meson.build index aada8693..a63d8f0b 100644 --- a/pipewire/meson.build +++ b/pipewire/meson.build @@ -20,7 +20,7 @@ if get_option('pipewire') plugin_pipewire = shared_library( 'pipewire-plugin', 'pipewire-plugin.c', - include_directories: include_directories('..', '../shared'), + include_directories: common_inc, dependencies: deps_pipewire, name_prefix: '', install: true, |