meson: convert -Dterminfo from a boolean to a feature option

Patch from Jan Beich
This commit is contained in:
Daniel Eklöf 2021-02-09 19:42:55 +01:00
parent 79e054faff
commit bdc5810ff4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 5 additions and 5 deletions

View file

@ -28,11 +28,11 @@ sources:
tasks:
- debug: |
mkdir -p bld/debug
meson --buildtype=debug -Dterminfo=false -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true foot bld/debug
meson --buildtype=debug -Dterminfo=disabled -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true foot bld/debug
ninja -C bld/debug -k0
meson test -C bld/debug --print-errorlogs
- release: |
mkdir -p bld/release
meson --buildtype=minsize -Dterminfo=false -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true foot bld/release
meson --buildtype=minsize -Dterminfo=disabled -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true foot bld/release
ninja -C bld/release -k0
meson test -C bld/release --print-errorlogs

View file

@ -30,7 +30,7 @@ in this order:
*term*
Value to set the environment variable *TERM* to. Default: _foot_
or _xterm-256color_ if built with _-Dterminfo=false_
or _xterm-256color_ if built with _-Dterminfo=disabled_
*font*, *font-bold*, *font-italic*, *font-bold-italic*
Comma separated list of fonts to use, in fontconfig format. That

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
# term=foot (or xterm-256color if built with -Dterminfo=false)
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
# login-shell=no
# font=monospace:size=8

View file

@ -1,2 +1,2 @@
option('ime', type: 'boolean', value: true, description: 'IME (Input Method Editor) support')
option('terminfo', type: 'boolean', value: true, description: 'Install terminfo')
option('terminfo', type: 'feature', description: 'Install terminfo')