meson: Fix installation of headers

To match Autotools:
 - internal.h should not be installed
 - Install simple.h and version.h
This commit is contained in:
Jan Alexander Steffens (heftig) 2019-07-11 01:32:57 +02:00 committed by Arun Raghavan
parent 8e98ed9493
commit 9f946d2d11

View 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 = [ libpulse_sources = [
'channelmap.c', 'channelmap.c',
@ -9,6 +14,7 @@ libpulse_sources = [
'ext-device-restore.c', 'ext-device-restore.c',
'ext-stream-restore.c', 'ext-stream-restore.c',
'format.c', 'format.c',
'internal.h',
'introspect.c', 'introspect.c',
'mainloop-api.c', 'mainloop-api.c',
'mainloop-signal.c', 'mainloop-signal.c',
@ -40,7 +46,6 @@ libpulse_headers = [
'ext-stream-restore.h', 'ext-stream-restore.h',
'format.h', 'format.h',
'gccmacro.h', 'gccmacro.h',
'internal.h',
'introspect.h', 'introspect.h',
'mainloop-api.h', 'mainloop-api.h',
'mainloop-signal.h', 'mainloop-signal.h',
@ -77,7 +82,8 @@ libpulse = shared_library('pulse',
libpulse_dep = declare_dependency(link_with: libpulse) libpulse_dep = declare_dependency(link_with: libpulse)
install_data(libpulse_headers, install_data(
libpulse_headers, 'simple.h',
install_dir : join_paths(includedir, 'pulse') install_dir : join_paths(includedir, 'pulse')
) )