gtk2/modules/input/meson.build
Christoph Reiter 749a58ab26 meson: simplify builtin_immodules build option
Make it a yes/no/auto combo. "yes" means all modules are built into libgtk,
"no" that none are and "auto" uses the platform defaults, yes on win32,
no otherwise.

If we need more we can always extend it later.
2019-04-11 16:46:22 +02:00

21 lines
640 B
Meson

# Note: the list of immodules is in $(srcroot)/meson.build!
foreach l: immodules
name = l[0]
immod_sources = l[1]
cond = l.get(2, true)
cflags = l.get(3, [])
if cond and not builtin_immodules
shared_module('im-@0@'.format(name),
immod_sources,
c_args: common_cflags + cflags,
dependencies: [ libgtk_dep ],
install_dir: '@0@/gtk-@1@/@2@/immodules/'.format(gtk_libdir, gtk_api_version, gtk_binary_version),
include_directories: [confinc, gtkinc],
install : true,
name_prefix: '')
endif
endforeach