cdata.set('GST_LICENSE', '"LGPL"')
cdata.set('PACKAGE', '"gst-plugins-good"')
cdata.set('GETTEXT_PACKAGE', '"gst-plugins-good-1.0"')
+cdata.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
+if get_option('nls')
+ cdata.set('ENABLE_NLS', 1)
+endif
warning_flags = [
'-Wmissing-declarations',
subdir('pkgconfig')
# xgettext is optional (on Windows for instance)
-if find_program('xgettext', required : false).found()
+if get_option('nls') and find_program('xgettext', required : false).found()
subdir('po')
endif
description : 'Use libv4l2 for some obscure format conversions')
# Common options
+option('nls', type : 'boolean', value : true, yield: true,
+ description : 'Enable native language support (translations)')
option('orc', type : 'combo', choices : ['yes', 'no', 'auto'], value : 'auto')
option('package-name', type : 'string', yield : true,
description : 'package name to use in plugins')