meson: Use proxy-libintl if gettext is not found

This is a stub-only library that can be used while building against
MSVC and contains no i18n machinery at all.

The dependencies added indirectly use the libintl.h header, and when
built as a subproject, the header won't be in a path known the
pre-processor.
This commit is contained in:
Nirbheek Chauhan
2017-03-21 22:06:22 +05:30
committed by Matthias Clasen
parent fb1f52e32f
commit ee94ad776e
5 changed files with 23 additions and 15 deletions

View File

@@ -60,7 +60,7 @@ libgobject = shared_library('gobject-2.0',
soversion : soversion,
install : true,
include_directories : [configinc],
dependencies : [libffi_dep, libglib_dep],
dependencies : [libintl, libffi_dep, libglib_dep],
c_args : ['-DG_LOG_DOMAIN="GLib-GObject"', '-DGOBJECT_COMPILATION'] + glib_hidden_visibility_args)
libgobject_dep = declare_dependency(link_with : libgobject,