meson: Cleanup include-dir paths, use base path without repetitions

Avoid setting the subdir all the times, just use the global definition
plus the specific module subdir
This commit is contained in:
Marco Trevisan (Treviño)
2022-10-24 14:13:04 +02:00
parent 8fe2e4d364
commit 6dd222e753
5 changed files with 22 additions and 14 deletions

View File

@@ -1,3 +1,5 @@
gobject_includedir = glib_includedir / 'gobject'
gobject_install_headers = files(
'gobject-autocleanups.h',
'glib-types.h',
@@ -29,12 +31,12 @@ gvisibility_h = custom_target(
output: 'gobject-visibility.h',
command: [gen_visibility_macros, meson.project_version(), 'visibility-macros', 'GOBJECT', '@OUTPUT@'],
install: true,
install_dir: glib_includedir / 'gobject',
install_dir: gobject_includedir,
install_tag : 'devel',
)
gobject_sources += gvisibility_h
install_headers(gobject_install_headers, subdir : 'glib-2.0/gobject')
install_headers(gobject_install_headers, install_dir : gobject_includedir)
gobject_sources += files(
'gatomicarray.c',