meson: underscorify immodule name when using it as a macro name

This resulted in -DINCLUDE_IM_ti-et getting passed to gcc resulting in
lots of warnings. Use underscorify() so we get the correct -DINCLUDE_IM_ti_et instead.
This commit is contained in:
Christoph Reiter
2019-04-12 20:53:21 +02:00
parent 6bdc1137f2
commit 0f957ca4f7

View File

@ -952,7 +952,7 @@ foreach l: immodules
cflags = l.get(3, [])
if cond and builtin_immodules
gtk_cargs += ['-DINCLUDE_IM_@0@'.format(name)]
gtk_cargs += ['-DINCLUDE_IM_@0@'.format(name.underscorify())]
mod = static_library('staticimmodule-@0@'.format(name),
sources + gtk_dep_sources,
dependencies: gtk_deps + [libgdk_dep] ,