Update meson wrt to gettext and nls translations.
This commit is contained in:
parent
8906abeb41
commit
a790f13308
14
meson.build
14
meson.build
|
@ -59,18 +59,20 @@ endif
|
||||||
##### Check for arpa/inet and netinet/in.h
|
##### Check for arpa/inet and netinet/in.h
|
||||||
if cc.has_header('arpa/inet.h') == true
|
if cc.has_header('arpa/inet.h') == true
|
||||||
cfg.set ('HAVE_ARPA_INET_H' , 1)
|
cfg.set ('HAVE_ARPA_INET_H' , 1)
|
||||||
else
|
|
||||||
cfg.set ('HAVE_ARPA_INET_H' , 0)
|
|
||||||
endif
|
endif
|
||||||
if cc.has_header('netinet/in.h') == true
|
if cc.has_header('netinet/in.h') == true
|
||||||
cfg.set ('HAVE_NETINET_IN_H' , 1)
|
cfg.set ('HAVE_NETINET_IN_H' , 1)
|
||||||
else
|
|
||||||
cfg.set ('HAVE_NETINET_IN_H' , 0)
|
|
||||||
endif
|
endif
|
||||||
if exif.found() == true
|
if exif.found() == true
|
||||||
cfg.set ('HAVE_LIBEXIF' , 1)
|
cfg.set ('HAVE_LIBEXIF' , 1)
|
||||||
else
|
endif
|
||||||
cfg.set ('HAVE_LIBEXIF' , 0)
|
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
|
endif
|
||||||
configure_file(output: 'config.h', configuration: cfg)
|
configure_file(output: 'config.h', configuration: cfg)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
if get_option('nls')
|
if get_option('nls')
|
||||||
i18n = import('i18n')
|
i18n = import('i18n')
|
||||||
i18n.gettext('ephoto')
|
i18n.gettext('ephoto')
|
||||||
cfg = configuration_data()
|
|
||||||
cfg.set('HAVE_GETTEXT', '1')
|
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue