Create meson.build
This commit is contained in:
parent
8653b27692
commit
7fb1e152e8
38
meson.build
Normal file
38
meson.build
Normal file
|
@ -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')
|
Loading…
Reference in a new issue