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
|
||||
|
||||
cdata = configuration_data()
|
||||
cdata.set('ENABLE_NLS', 1)
|
||||
|
||||
if cc.get_id() == 'msvc'
|
||||
msvc_args = [
|
||||
@ -617,6 +616,7 @@ endif
|
||||
|
||||
# xgettext is optional (on Windows for instance)
|
||||
if find_program('xgettext', required : get_option('nls')).found()
|
||||
cdata.set('ENABLE_NLS', 1)
|
||||
subdir('po')
|
||||
endif
|
||||
|
||||
|
@ -101,7 +101,6 @@ if cc.has_link_argument('-Wl,-z,nodelete')
|
||||
endif
|
||||
|
||||
core_conf = configuration_data()
|
||||
core_conf.set('ENABLE_NLS', 1)
|
||||
|
||||
# Symbol visibility
|
||||
if cc.has_argument('-fvisibility=hidden')
|
||||
@ -506,6 +505,7 @@ subdir('tests')
|
||||
|
||||
# xgettext is optional (on Windows for instance)
|
||||
if find_program('xgettext', required : get_option('nls')).found()
|
||||
core_conf.set('ENABLE_NLS', 1)
|
||||
subdir('po')
|
||||
endif
|
||||
subdir('docs')
|
||||
|
@ -151,7 +151,6 @@ if not get_option('glib_checks')
|
||||
endif
|
||||
|
||||
cdata = configuration_data()
|
||||
cdata.set('ENABLE_NLS', 1)
|
||||
|
||||
check_headers = [
|
||||
['HAVE_DLFCN_H', 'dlfcn.h'],
|
||||
@ -556,6 +555,7 @@ endif
|
||||
|
||||
# xgettext is optional (on Windows for instance)
|
||||
if find_program('xgettext', required : get_option('nls')).found()
|
||||
cdata.set('ENABLE_NLS', 1)
|
||||
subdir('po')
|
||||
endif
|
||||
|
||||
|
@ -98,7 +98,6 @@ if have_cxx and cxx.has_link_argument('-Wl,-z,nodelete')
|
||||
endif
|
||||
|
||||
cdata = configuration_data()
|
||||
cdata.set('ENABLE_NLS', 1)
|
||||
|
||||
check_headers = [
|
||||
['HAVE_DLFCN_H', 'dlfcn.h'],
|
||||
@ -336,6 +335,7 @@ subdir('tests')
|
||||
|
||||
# xgettext is optional (on Windows for instance)
|
||||
if find_program('xgettext', required : get_option('nls')).found()
|
||||
cdata.set('ENABLE_NLS', 1)
|
||||
subdir('po')
|
||||
endif
|
||||
subdir('docs')
|
||||
|
Loading…
x
Reference in New Issue
Block a user