mirror of https://github.com/nirenjan/libx52.git
fix: Treat NLS=auto as enabled
Prior to this change, the check was for an explicit -Dnls=enabled, however, if the option was never set, it defaulted to disabled. With this change, unless explicitly disabled, the Meson build system will automatically build with NLS support.master
parent
74229b391d
commit
9d180531b9
|
|
@ -42,7 +42,7 @@ cdata.set_quoted('SYSCONFDIR', get_option('prefix') / get_option('sysconfdir'))
|
|||
cdata.set_quoted('LOCALSTATEDIR', get_option('prefix') / get_option('localstatedir'))
|
||||
cdata.set_quoted('PACKAGE_VERSION', meson.project_version())
|
||||
cdata.set_quoted('VERSION', meson.project_version())
|
||||
cdata.set10('ENABLE_NLS', get_option('nls').enabled())
|
||||
cdata.set10('ENABLE_NLS', not get_option('nls').disabled())
|
||||
cdata.set10('HAVE_FUNC_ATTRIBUTE_NORETURN', compiler.has_function_attribute('noreturn'))
|
||||
cdata.set10('HAVE_STRUCT_TM_TM_GMTOFF',
|
||||
compiler.has_member('struct tm', 'tm_gmtoff', prefix:'#include <time.h>'))
|
||||
|
|
@ -73,7 +73,7 @@ if not dep_intl.found() and host_machine.system() == 'darwin'
|
|||
endif
|
||||
|
||||
# # define GETTEXT_PACKAGE
|
||||
if get_option('nls').enabled()
|
||||
if not get_option('nls').disabled()
|
||||
add_project_arguments(
|
||||
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
|
||||
language:'C')
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
i18n.gettext(meson.project_name(),
|
||||
args: [
|
||||
'--directory=' + meson.source_root(),
|
||||
'--directory=' + meson.project_source_root(),
|
||||
'--msgid-bugs-address=https://github.com/nirenjan/libx52/issues',
|
||||
'--package-name=' + meson.project_name(),
|
||||
'--package-version=' + meson.project_version(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue