meson: gtk: install headers

This commit is contained in:
Tim-Philipp Müller 2017-03-20 16:24:12 +00:00 committed by Emmanuele Bassi
parent c7d3fe5e26
commit bdfcfdec57
3 changed files with 7 additions and 9 deletions

View File

@ -107,3 +107,4 @@ a11y_headers = files([
'gtkwidgetaccessible.h',
'gtkwindowaccessible.h',
])
install_headers(a11y_headers, subdir : 'gtk-4.0/gtk/a11y')

View File

@ -1,3 +1,5 @@
gtk_deprecated_sources = files([])
gtk_deprecated_headers = files([])
install_headers(gtk_deprecated_headers, subdir: 'gtk-4.0/gtk/deprecated/')

View File

@ -595,6 +595,8 @@ gtk_public_headers = files([
'gtkwindowgroup.h',
])
install_headers(gtk_public_headers, subdir: 'gtk-4.0/gtk/')
gtk_unix_sources = files([
'gtkcustompaperunixdialog.c',
'gtkpagesetupunixdialog.c',
@ -668,7 +670,7 @@ gtktypebuiltins_h = custom_target(
input : gtk_public_headers + gtk_deprecated_headers,
command : [mkenum, perl, glib_mkenums, meson.current_source_dir() + '/gtktypebuiltins.h.template', '@OUTPUT@', '@INPUT@'],
install: true,
install_dir: 'include/gtk-4.0/gtk/' # XXX ???
install_dir: 'include/gtk-4.0/gtk/'
)
gtktypebuiltins_c = custom_target(
@ -716,7 +718,7 @@ gtkversion = configure_file(
input : 'gtkversion.h.in',
output : 'gtkversion.h',
configuration: cdata,
install_dir: 'include/gtk-4.0/gtk/' # XXX ???
install_dir: 'include/gtk-4.0/gtk/'
)
gtk_cargs = [
@ -787,13 +789,6 @@ endif
gnome.compile_schemas()
# Install necessary headers
# install_headers(gtk_public_headers, subdir: 'gtk-3.0/gtk/')
# install_headers(gtk_deprecated_headers, subdir: 'gtk-3.0/gtk/deprecated/')
# install_headers(a11y_headers, subdir: 'gtk-3.0/gtk/a11y/')
libgtk = shared_library('gtk',
sources: [typefuncs, gtk_sources, gtkmarshal_h, gtkprivatetypebuiltins_h],
c_args: gtk_cargs,