meson: use nls option to ENABLE_NLS
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7017>
This commit is contained in:
parent
d224825f40
commit
df7a8c8c40
@ -53,7 +53,6 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
cdata = configuration_data()
|
cdata = configuration_data()
|
||||||
cdata.set('ENABLE_NLS', 1)
|
|
||||||
|
|
||||||
if cc.get_id() == 'msvc'
|
if cc.get_id() == 'msvc'
|
||||||
msvc_args = [
|
msvc_args = [
|
||||||
@ -617,6 +616,7 @@ endif
|
|||||||
|
|
||||||
# xgettext is optional (on Windows for instance)
|
# xgettext is optional (on Windows for instance)
|
||||||
if find_program('xgettext', required : get_option('nls')).found()
|
if find_program('xgettext', required : get_option('nls')).found()
|
||||||
|
cdata.set('ENABLE_NLS', 1)
|
||||||
subdir('po')
|
subdir('po')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -101,7 +101,6 @@ if cc.has_link_argument('-Wl,-z,nodelete')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
core_conf = configuration_data()
|
core_conf = configuration_data()
|
||||||
core_conf.set('ENABLE_NLS', 1)
|
|
||||||
|
|
||||||
# Symbol visibility
|
# Symbol visibility
|
||||||
if cc.has_argument('-fvisibility=hidden')
|
if cc.has_argument('-fvisibility=hidden')
|
||||||
@ -506,6 +505,7 @@ subdir('tests')
|
|||||||
|
|
||||||
# xgettext is optional (on Windows for instance)
|
# xgettext is optional (on Windows for instance)
|
||||||
if find_program('xgettext', required : get_option('nls')).found()
|
if find_program('xgettext', required : get_option('nls')).found()
|
||||||
|
core_conf.set('ENABLE_NLS', 1)
|
||||||
subdir('po')
|
subdir('po')
|
||||||
endif
|
endif
|
||||||
subdir('docs')
|
subdir('docs')
|
||||||
|
@ -151,7 +151,6 @@ if not get_option('glib_checks')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
cdata = configuration_data()
|
cdata = configuration_data()
|
||||||
cdata.set('ENABLE_NLS', 1)
|
|
||||||
|
|
||||||
check_headers = [
|
check_headers = [
|
||||||
['HAVE_DLFCN_H', 'dlfcn.h'],
|
['HAVE_DLFCN_H', 'dlfcn.h'],
|
||||||
@ -556,6 +555,7 @@ endif
|
|||||||
|
|
||||||
# xgettext is optional (on Windows for instance)
|
# xgettext is optional (on Windows for instance)
|
||||||
if find_program('xgettext', required : get_option('nls')).found()
|
if find_program('xgettext', required : get_option('nls')).found()
|
||||||
|
cdata.set('ENABLE_NLS', 1)
|
||||||
subdir('po')
|
subdir('po')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -98,7 +98,6 @@ if have_cxx and cxx.has_link_argument('-Wl,-z,nodelete')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
cdata = configuration_data()
|
cdata = configuration_data()
|
||||||
cdata.set('ENABLE_NLS', 1)
|
|
||||||
|
|
||||||
check_headers = [
|
check_headers = [
|
||||||
['HAVE_DLFCN_H', 'dlfcn.h'],
|
['HAVE_DLFCN_H', 'dlfcn.h'],
|
||||||
@ -336,6 +335,7 @@ subdir('tests')
|
|||||||
|
|
||||||
# xgettext is optional (on Windows for instance)
|
# xgettext is optional (on Windows for instance)
|
||||||
if find_program('xgettext', required : get_option('nls')).found()
|
if find_program('xgettext', required : get_option('nls')).found()
|
||||||
|
cdata.set('ENABLE_NLS', 1)
|
||||||
subdir('po')
|
subdir('po')
|
||||||
endif
|
endif
|
||||||
subdir('docs')
|
subdir('docs')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user