meson: Add agent include dir to uninstalled pkgconfig file
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 15 Nov 2021 08:17:30 +0000 (13:47 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 15 Nov 2021 08:17:30 +0000 (13:47 +0530)
Meson picks up the includedirs from the library target that it is
building the pkgconfig file for. Since libnice's headers are split
into the nice/ and agent/ subdirs, we need to add agent/ to
include_directories: so that it's automatically added to the
uninstalled pkgconfig file by Meson.

nice/meson.build

index 9c0cdd4..648ed20 100644 (file)
@@ -22,6 +22,8 @@ endif
 libnice = library('nice',
   link_whole: [libagent, libsocket, libstun, librandom],
   dependencies: nice_deps,
+  # Add agent include to uninstalled pkgconfig file
+  include_directories: agent_include,
   version : libversion,
   soversion : soversion,
   vs_module_defs: libnice_def,