mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
init
This commit is contained in:
parent
bb9ae1d13a
commit
af11da1881
29 changed files with 11217 additions and 2 deletions
50
meson.build
Normal file
50
meson.build
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
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.17.0', '<0.18.0'])
|
||||
xkbcommon_dep = dependency('xkbcommon')
|
||||
libinput_dep = dependency('libinput')
|
||||
libwayland_client_dep = dependency('wayland-client')
|
||||
|
||||
c_args = [
|
||||
'-g',
|
||||
'-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'
|
||||
c_args += '-DIM'
|
||||
endif
|
||||
|
||||
executable('dwl',
|
||||
'dwl.c',
|
||||
'util.c',
|
||||
'wlr_foreign_toplevel_management_v1.c',
|
||||
'wlr_foreign_toplevel_management_v1.h',
|
||||
wayland_sources,
|
||||
dependencies : [
|
||||
libm,
|
||||
xcb,
|
||||
xlibs,
|
||||
wayland_server_dep,
|
||||
wlroots_dep,
|
||||
xkbcommon_dep,
|
||||
libinput_dep,
|
||||
libwayland_client_dep,
|
||||
],
|
||||
install : true,
|
||||
c_args : c_args
|
||||
)
|
||||
|
||||
install_man('dwl.1')
|
||||
Loading…
Add table
Add a link
Reference in a new issue