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

This commit is contained in:
Christoph Reiter authored and Ebrahim Byagowi committed 2020-04-19 18:49:43 +04:30
1 parent ad5dcda0b5
commit fb3acdbcb6
1 file changed
+5 -1
+5 -1
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())