aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-02-28 12:36:45 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-02-28 12:36:45 +0100
commit853c1b3a67a6b9c7bd6a67c67b5ce6f43f9fe90d (patch)
tree53ee96da1ecd41ba75601721a6165aec40c135e5 /meson.build
parent6d62ddcf9d95c5ddcbe1da14630cc69b44076f3c (diff)
downloadfbida-853c1b3a67a6b9c7bd6a67c67b5ce6f43f9fe90d.tar.gz
fbcon: switch to libtsm
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build19
1 files changed, 11 insertions, 8 deletions
diff --git a/meson.build b/meson.build
index 5746eb9..af71b23 100644
--- a/meson.build
+++ b/meson.build
@@ -27,6 +27,7 @@ webp_dep = dependency('libwebp', required : false)
udev_dep = dependency('libudev')
input_dep = dependency('libinput')
xkb_dep = dependency('xkbcommon')
+tsm_dep = dependency('libtsm', required : false)
# other library deps
cc = meson.get_compiler('c')
@@ -127,15 +128,17 @@ executable('fbpdf',
install : true)
# build fbcon
-fbcon_srcs = [ 'fbcon.c', 'drmtools.c', 'fbtools.c', 'gfx.c', 'vt.c', 'kbd.c', 'tmt.c' ]
-fbcon_deps = [ drm_dep, cairo_dep, util_dep, udev_dep, input_dep, xkb_dep ]
+fbcon_srcs = [ 'fbcon.c', 'drmtools.c', 'fbtools.c', 'gfx.c', 'vt.c', 'kbd.c' ]
+fbcon_deps = [ drm_dep, cairo_dep, util_dep, udev_dep, input_dep, xkb_dep, tsm_dep ]
-executable('fbcon',
- sources : fbcon_srcs,
- dependencies : fbcon_deps,
- install : true)
-install_data('fbcon.desktop',
- install_dir : 'share/wayland-sessions')
+if tsm_dep.found()
+ executable('fbcon',
+ sources : fbcon_srcs,
+ dependencies : fbcon_deps,
+ install : true)
+ install_data('fbcon.desktop',
+ install_dir : 'share/wayland-sessions')
+endif
# build kbdtest
executable('kbdtest',