diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-28 12:36:45 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-28 12:36:45 +0100 |
commit | 853c1b3a67a6b9c7bd6a67c67b5ce6f43f9fe90d (patch) | |
tree | 53ee96da1ecd41ba75601721a6165aec40c135e5 /meson.build | |
parent | 6d62ddcf9d95c5ddcbe1da14630cc69b44076f3c (diff) | |
download | fbida-853c1b3a67a6b9c7bd6a67c67b5ce6f43f9fe90d.tar.gz |
fbcon: switch to libtsm
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 19 |
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', |