Browse Source

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.
Christian Kellner 5 years ago
parent
commit
35fb7f5baf
3 changed files with 1 additions and 5 deletions
  1. 1 2
      common/meson.build
  2. 0 1
      daemon/meson.build
  3. 0 2
      util/meson.build

+ 1 - 2
common/meson.build

@@ -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('.')

+ 0 - 1
daemon/meson.build

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

+ 0 - 2
util/meson.build

@@ -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,
 )