meson: only install gobject/icu headers if the features are enabled

This commit is contained in:
Christoph Reiter 2020-04-19 14:57:04 +02:00 committed by Ebrahim Byagowi
parent ad5dcda0b5
commit fb3acdbcb6

View File

@ -515,6 +515,8 @@ if have_icu and not have_icu_builtin
subdirs: [meson.project_name()],
version: meson.project_version(),
)
install_headers(hb_icu_headers, subdir: meson.project_name())
else
libharfbuzz_icu_dep = dependency('', required: false)
endif
@ -623,8 +625,10 @@ if have_gobject
subdirs: [meson.project_name()],
version: meson.project_version(),
)
install_headers(hb_gobject_headers, subdir: meson.project_name())
else
libharfbuzz_gobject_dep = dependency('', required: false)
endif
install_headers(hb_headers + hb_gobject_headers + hb_subset_headers + hb_icu_headers, subdir: meson.project_name())
install_headers(hb_headers + hb_subset_headers, subdir: meson.project_name())