dwl/meson.build

39 lines
802 B
Meson
Raw Normal View History

2023-01-15 23:19:17 +01:00
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')