meson: Fix building with builtin immodules
We also need to ensure that we pass in -DINCLUDE_IM_xxxx when building the GTK DLL/.so, in addition to building the respective (static) immodules, so that we did really link in the immodules into the final GTK DLL/.so.
This commit is contained in:
parent
b6b15508d5
commit
651715b8e8
@ -952,10 +952,11 @@ foreach l: immodules
|
||||
cflags = l.get(3, [])
|
||||
|
||||
if cond and builtin_immodules
|
||||
gtk_cargs += ['-DINCLUDE_IM_@0@'.format(name)]
|
||||
mod = static_library('staticimmodule-@0@'.format(name),
|
||||
sources + gtk_dep_sources,
|
||||
dependencies: gtk_deps + [libgdk_dep] ,
|
||||
c_args: gtk_cargs + common_cflags + ['-DINCLUDE_IM_@0@'.format(name)] + cflags,
|
||||
c_args: gtk_cargs + common_cflags + cflags,
|
||||
include_directories: [confinc, gdkinc, gtkinc])
|
||||
|
||||
gtk_included_im_deps += declare_dependency(link_with: mod)
|
||||
|
Loading…
Reference in New Issue
Block a user