We aren't really using PangoFT2 for [language|script]-names.c, and are
always using items from them, so make sure they are being built.
Also always include the pangoft2 dependency in gtk_dep if it is found.
gtkversion,
]
+font_script_language_sources = files([
+ 'language-names.c',
+])
+
gtk_sources += [
gtk_a11y_src,
gtk_dbus_src,
gtkmarshalers,
gtkprivatetypebuiltins,
gtktypebuiltins,
+ font_script_language_sources,
]
gtk_deps = [
graphene_dep,
]
-if harfbuzz_dep.found() and pangoft_dep.found()
- gtk_deps += [ harfbuzz_dep, pangoft_dep ]
- gtk_sources += files([
- 'language-names.c',
- ])
-endif
-
if x11_enabled
x11_data_prefix = dependency('x11').get_variable(pkgconfig: 'prefix')
# So we don't add these twice
if x11_enabled or wayland_enabled
gtk_sources += gtk_use_wayland_or_x11_c_sources
+endif
+
+if pangoft_dep.found()
gtk_deps += pangoft_dep
endif