option('tests', type: 'feature', value: 'enabled',
       description: 'Build the doctest-based test suites under tests/')
option('render_tool', type: 'boolean', value: true,
       description: 'Build the u-studio-render out-of-process render CLI')
# ADR-019: whether GPU acceleration starts on where the startup check passes
# (auto) or off (a GSettings vendor override; the user can still switch it
# on, and a saved choice wins). The Flatpak sets off (owner, 2026-09-28).
option('gpu_acceleration_default', type: 'combo', choices: ['auto', 'off'], value: 'auto',
       description: 'GPU acceleration default: on where the startup check passes (auto), or off')
# NOTE: -Dwerror is meson's own built-in option (reserved name, can't be
# redeclared here) -- CI passes it directly; local dev builds leave it at
# meson's default (false).

# Drop-ins (ADR-014): each builds into the app, as a loadable module
# (libustudio-dropin-<name>.so, installed to $libdir/u-studio/drop-ins/), or
# not at all.
option('dropin_effects', type: 'combo', choices: ['disabled', 'builtin', 'module'], value: 'builtin',
       description: 'The effects and transitions drop-in (doc 15)')
option('dropin_titles', type: 'combo', choices: ['disabled', 'builtin', 'module'], value: 'disabled',
       description: 'The titles drop-in (doc 16)')
# u-studio-share, the titles drop-in's sharing helper (ADR-020, T7): the one
# program with network access, packaged as its own app. Off for a package
# that can't give it the network (the editor's Titles extension).
option('titles_share', type: 'feature', value: 'auto',
       description: 'Build u-studio-share, the template sharing helper (needs libsoup 3, json-glib)')
option('titles_thorvg', type: 'feature', value: 'auto',
       description: 'Draw the titles drop-in\'s animated (Lottie) layers with ThorVG (ADR-021)')
# A Flatpak extension point for separately packaged drop-ins (ADR-014, doc
# 17), relative to the prefix, e.g. 'lib/u-studio/extensions'. Each
# subdirectory is one drop-in's extension prefix, whose
# lib/u-studio/drop-ins/ joins the trusted directories. Setting it also
# makes the programs export the symbols modules resolve against them.
option('dropin_extension_dir', type: 'string', value: '',
       description: 'Extension point whose subdirectories hold separately packaged drop-ins (relative to prefix)')
