meson: Fix installation of headers
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Wed, 10 Jul 2019 23:32:57 +0000 (01:32 +0200)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 25 Jul 2019 16:53:01 +0000 (16:53 +0000)
To match Autotools:
 - internal.h should not be installed
 - Install simple.h and version.h

src/pulse/meson.build

index 3b1da90..493bf58 100644 (file)
@@ -1,4 +1,9 @@
-configure_file(input : 'version.h.in', output :  'version.h', configuration : cdata)
+configure_file(
+  input : 'version.h.in',
+  output : 'version.h',
+  configuration : cdata,
+  install_dir : join_paths(includedir, 'pulse'),
+)
 
 libpulse_sources = [
   'channelmap.c',
@@ -9,6 +14,7 @@ libpulse_sources = [
   'ext-device-restore.c',
   'ext-stream-restore.c',
   'format.c',
+  'internal.h',
   'introspect.c',
   'mainloop-api.c',
   'mainloop-signal.c',
@@ -40,7 +46,6 @@ libpulse_headers = [
   'ext-stream-restore.h',
   'format.h',
   'gccmacro.h',
-  'internal.h',
   'introspect.h',
   'mainloop-api.h',
   'mainloop-signal.h',
@@ -77,7 +82,8 @@ libpulse = shared_library('pulse',
 
 libpulse_dep = declare_dependency(link_with: libpulse)
 
-install_data(libpulse_headers,
+install_data(
+  libpulse_headers, 'simple.h',
   install_dir : join_paths(includedir, 'pulse')
 )