From 7fb1e152e85da132c8f36ed7155f9ed1f0521149 Mon Sep 17 00:00:00 2001 From: StratusFearMe21 <57533634+StratusFearMe21@users.noreply.github.com> Date: Sun, 15 Jan 2023 22:19:17 +0000 Subject: [PATCH] Create meson.build --- meson.build | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 meson.build diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..c98f5b0 --- /dev/null +++ b/meson.build @@ -0,0 +1,38 @@ +project('dwl', ['c', 'cpp'], + version : '0.4' +) + +subdir('protocols') + +cc = meson.get_compiler('c') +libm = cc.find_library('m') +xcb = dependency('xcb', required : get_option('xwayland')) +xlibs = dependency('xcb-icccm', required : get_option('xwayland')) +wayland_server_dep = dependency('wayland-server') +wlroots_dep = dependency('wlroots') +xkbcommon_dep = dependency('xkbcommon') +libinput_dep = dependency('libinput') + +executable('dwl', + 'dwl.c', + 'util.c', + wayland_sources, + dependencies : [ + libm, + xcb, + xlibs, + wayland_server_dep, + wlroots_dep, + xkbcommon_dep, + libinput_dep, + ], + install : true, + c_args : [ + '-DWLR_USE_UNSTABLE', + '-D_POSIX_C_SOURCE=200809L', + '-DXWAYLAND', + '-DVERSION="@0@"'.format(meson.project_version()) + ] +) + +install_man('dwl.1')