meson: include dir in daemon_common dependency

Specify the include directory in the link_daemon_common dependency
and thus everything that includes that as a dependency will get
the proper include directory automatically.
This commit is contained in:
Christian Kellner 2019-09-28 14:06:37 +02:00
parent b7dc1dc10c
commit 35fb7f5baf
3 changed files with 1 additions and 5 deletions

View File

@ -15,6 +15,5 @@ daemon_common = static_library(
link_daemon_common = declare_dependency(
link_with: daemon_common,
include_directories: [include_directories('.')]
)
include_daemon_common = include_directories('.')

View File

@ -26,7 +26,6 @@ executable(
],
include_directories: [
gamemoded_includes,
include_daemon_common,
],
install: true,
)

View File

@ -11,7 +11,6 @@ cpugovctl = executable(
link_daemon_common,
],
install: true,
include_directories: include_daemon_common,
install_dir: path_libexecdir,
)
@ -27,6 +26,5 @@ gpuclockctl = executable(
link_daemon_common,
],
install: true,
include_directories: include_daemon_common,
install_dir: path_libexecdir,
)