From c1da53fd1611719b6daee6ab217c9ffaac9dbc00 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 30 Jan 2019 16:04:57 +0100 Subject: add simple, experimental terminal emulator --- meson.build | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index cbed982..8b5728a 100644 --- a/meson.build +++ b/meson.build @@ -1,8 +1,10 @@ # -*-python-*- -project('fbida', 'c') +project('fbida', 'c', default_options : [ 'c_std=gnu99' ]) # tweak warnings add_global_arguments('-Wno-pointer-sign', language : 'c') +add_global_arguments('-D_POSIX_SOURCE=1', language : 'c') +add_global_arguments('-D_GNU_SOURCE=1', language : 'c') # init configuration config = configuration_data() @@ -26,10 +28,12 @@ tiff_dep = dependency('libtiff-4') webp_dep = dependency('libwebp', required : false) udev_dep = dependency('libudev') input_dep = dependency('libinput') +xkb_dep = dependency('xkbcommon') # other library deps cc = meson.get_compiler('c') jpeg_dep = cc.find_library('jpeg') +util_dep = cc.find_library('util') math_dep = cc.find_library('m', required : false) pcd_dep = cc.find_library('pcd', required : false) gif_dep = cc.find_library('gif', required : false) @@ -125,6 +129,15 @@ executable('fbpdf', dependencies : fbpdf_deps, install : true) +# build fbcon +fbcon_srcs = [ 'fbcon.c', 'drmtools.c', 'tmt.c' ] +fbcon_deps = [ drm_dep, cairo_dep, util_dep, udev_dep, input_dep, xkb_dep ] + +executable('fbcon', + sources : fbcon_srcs, + dependencies : fbcon_deps, + install : true) + # build kbdtest executable('kbdtest', sources : [ 'kbdtest.c', 'kbd.c' ], -- cgit