dwl/meson.build
2023-06-06 01:56:58 +02:00

47 lines
991 B
Meson

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', version : ['>=0.16.0', '<0.17.0'])
xkbcommon_dep = dependency('xkbcommon')
libinput_dep = dependency('libinput')
c_args = [
'-Wno-unused-function',
'-DWLR_USE_UNSTABLE',
'-D_POSIX_C_SOURCE=200809L',
'-DVERSION="@0@"'.format(meson.project_version())
]
if xcb.found() and xlibs.found()
c_args += '-DXWAYLAND'
endif
executable('dwl',
'dwl.c',
'util.c',
'dwl-ipc-unstable-v2-protocol.c',
'dwl-ipc-unstable-v2-protocol.h',
wayland_sources,
dependencies : [
libm,
xcb,
xlibs,
wayland_server_dep,
wlroots_dep,
xkbcommon_dep,
libinput_dep,
],
install : true,
c_args : c_args
)
install_man('dwl.1')