dwl/meson.build

47 lines
991 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', version : ['>=0.16.0', '<0.17.0'])
2023-01-15 23:19:17 +01:00
xkbcommon_dep = dependency('xkbcommon')
libinput_dep = dependency('libinput')
2023-01-15 23:28:32 +01:00
c_args = [
2023-06-06 01:56:58 +02:00
'-Wno-unused-function',
2023-01-15 23:28:32 +01:00
'-DWLR_USE_UNSTABLE',
'-D_POSIX_C_SOURCE=200809L',
'-DVERSION="@0@"'.format(meson.project_version())
]
if xcb.found() and xlibs.found()
c_args += '-DXWAYLAND'
endif
2023-06-06 01:23:42 +02:00
executable('dwl',
2023-01-15 23:19:17 +01:00
'dwl.c',
'util.c',
2023-06-06 01:23:42 +02:00
'dwl-ipc-unstable-v2-protocol.c',
'dwl-ipc-unstable-v2-protocol.h',
2023-01-15 23:19:17 +01:00
wayland_sources,
dependencies : [
libm,
xcb,
xlibs,
wayland_server_dep,
wlroots_dep,
xkbcommon_dep,
libinput_dep,
],
install : true,
2023-01-15 23:28:32 +01:00
c_args : c_args
2023-01-15 23:19:17 +01:00
)
install_man('dwl.1')