aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
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' ],