Update meson.build
This commit is contained in:
parent
b7f5877329
commit
0a32118953
18
meson.build
18
meson.build
|
@ -13,6 +13,17 @@ wlroots_dep = dependency('wlroots')
|
||||||
xkbcommon_dep = dependency('xkbcommon')
|
xkbcommon_dep = dependency('xkbcommon')
|
||||||
libinput_dep = dependency('libinput')
|
libinput_dep = dependency('libinput')
|
||||||
|
|
||||||
|
c_args = [
|
||||||
|
'-DWLR_USE_UNSTABLE',
|
||||||
|
'-D_POSIX_C_SOURCE=200809L',
|
||||||
|
'-DXWAYLAND',
|
||||||
|
'-DVERSION="@0@"'.format(meson.project_version())
|
||||||
|
]
|
||||||
|
|
||||||
|
if xcb.found() and xlibs.found()
|
||||||
|
c_args += '-DXWAYLAND'
|
||||||
|
endif
|
||||||
|
|
||||||
executable('dwl',
|
executable('dwl',
|
||||||
'dwl.c',
|
'dwl.c',
|
||||||
'util.c',
|
'util.c',
|
||||||
|
@ -27,12 +38,7 @@ executable('dwl',
|
||||||
libinput_dep,
|
libinput_dep,
|
||||||
],
|
],
|
||||||
install : true,
|
install : true,
|
||||||
c_args : [
|
c_args : c_args
|
||||||
'-DWLR_USE_UNSTABLE',
|
|
||||||
'-D_POSIX_C_SOURCE=200809L',
|
|
||||||
'-DXWAYLAND',
|
|
||||||
'-DVERSION="@0@"'.format(meson.project_version())
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
install_man('dwl.1')
|
install_man('dwl.1')
|
||||||
|
|
Loading…
Reference in a new issue