From 853c1b3a67a6b9c7bd6a67c67b5ce6f43f9fe90d Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 28 Feb 2019 12:36:45 +0100 Subject: fbcon: switch to libtsm --- meson.build | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'meson.build') 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', -- cgit