diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-14 22:12:18 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-11-14 22:12:18 +0000 |
| commit | 31966f5494ed82268c414b04b63b20e88d4fff16 (patch) | |
| tree | a05d0a1266ba5b73991a25f02bbbb81e7892034d /meson.build | |
| parent | changelog: add new ‘unreleased’ section (diff) | |
meson: add -Dthemes=false|true
This adds a new meson option that controls whether the example theme
files should be installed or not. The default is true.
Previously, themes were gated by the -Ddocs option.
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 5dd99652..9037f4a8 100644 --- a/meson.build +++ b/meson.build @@ -240,10 +240,13 @@ if scdoc.found() 'LICENSE', 'README.md', 'CHANGELOG.md', install_dir: join_paths(get_option('datadir'), 'doc', 'foot')) install_data('foot.ini', install_dir: join_paths(get_option('datadir'), 'foot')) - install_subdir('themes', install_dir: join_paths(get_option('datadir'), 'foot')) subdir('doc') endif +if get_option('themes') + install_subdir('themes', install_dir: join_paths(get_option('datadir'), 'foot')) +endif + tic = find_program('tic', native: true, required: get_option('terminfo')) if tic.found() conf_data = configuration_data( @@ -273,6 +276,7 @@ subdir('icons') summary( { 'Documentation': scdoc.found(), + 'Themes': get_option('themes'), 'IME': get_option('ime'), 'Grapheme clustering': utf8proc.found(), 'Build terminfo': tic.found(), |
