aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-01-30 16:04:57 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-01-30 16:04:57 +0100
commitc1da53fd1611719b6daee6ab217c9ffaac9dbc00 (patch)
tree892cd0ae40dfb512de6ea0862db355b5ddd8b5d8 /meson.build
parentac9005bf0bbf50f14dc1b368be5084c8e0510a5d (diff)
downloadfbida-c1da53fd1611719b6daee6ab217c9ffaac9dbc00.tar.gz
add simple, experimental terminal emulator
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build15
1 files changed, 14 insertions, 1 deletions
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' ],