1 # glib enables -Werror=format-nonliteral by default, but the embedded gnulib
2 # needs to handle user provided format strings.
3 extra_gnulib_args = cc.get_supported_arguments([
4 '-Wno-format-nonliteral', '-Wno-duplicated-branches'])
6 gnulib_lib = static_library('gnulib', 'asnprintf.c', 'printf.c', 'printf-args.c', 'printf-parse.c', 'vasnprintf.c',
7 include_directories : [configinc, glibinc],
9 c_args : [ '-DLIBDIR="@0@"'.format(get_option('libdir')), '-DGLIB_COMPILATION', '-DG_LOG_DOMAIN="GLib"' ] + glib_hidden_visibility_args + extra_gnulib_args)