Update meson wrt to gettext and nls translations.

master
Stephen Houston 5 years ago
parent 8906abeb41
commit a790f13308
  1. 14
      meson.build
  2. 2
      po/meson.build

@ -59,18 +59,20 @@ endif
##### Check for arpa/inet and netinet/in.h
if cc.has_header('arpa/inet.h') == true
cfg.set ('HAVE_ARPA_INET_H' , 1)
else
cfg.set ('HAVE_ARPA_INET_H' , 0)
endif
if cc.has_header('netinet/in.h') == true
cfg.set ('HAVE_NETINET_IN_H' , 1)
else
cfg.set ('HAVE_NETINET_IN_H' , 0)
endif
if exif.found() == true
cfg.set ('HAVE_LIBEXIF' , 1)
else
cfg.set ('HAVE_LIBEXIF' , 0)
endif
if get_option('nls') == true
if cc.has_header('locale.h') == true
if cc.has_header('libintl.h') == true
cfg.set ('HAVE_GETTEXT' , 1)
endif
endif
cfg.set ('ENABLE_NLS' , 1)
endif
configure_file(output: 'config.h', configuration: cfg)

@ -1,6 +1,4 @@
if get_option('nls')
i18n = import('i18n')
i18n.gettext('ephoto')
cfg = configuration_data()
cfg.set('HAVE_GETTEXT', '1')
endif

Loading…
Cancel
Save