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.
This commit is contained in:
Christoph Reiter
2019-04-05 07:48:56 +02:00
parent 3462fcf9a0
commit 749a58ab26
4 changed files with 10 additions and 28 deletions

View File

@ -951,7 +951,7 @@ foreach l: immodules
cond = l.get(2, true)
cflags = l.get(3, [])
if cond and (builtin_immodules.contains(name) or builtin_all_immodules)
if cond and builtin_immodules
mod = static_library('staticimmodule-@0@'.format(name),
sources + gtk_dep_sources,
dependencies: gtk_deps + [libgdk_dep] ,