mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-23 06:59:51 -05:00
project: add mmsg as sub project
This commit is contained in:
parent
c756233964
commit
fd3e9a8c2c
7 changed files with 1143 additions and 2 deletions
33
mmsg/meson.build
Normal file
33
mmsg/meson.build
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
wayland_scanner = find_program('wayland-scanner')
|
||||
|
||||
dwl_ipc_protocol = 'protocols/dwl-ipc-unstable-v2.xml'
|
||||
|
||||
dwl_ipc_header = custom_target(
|
||||
'dwl-ipc-header',
|
||||
input: dwl_ipc_protocol,
|
||||
output: 'dwl-ipc-unstable-v2-protocol.h',
|
||||
command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],
|
||||
build_by_default: true,
|
||||
)
|
||||
|
||||
dwl_ipc_source = custom_target(
|
||||
'dwl-ipc-source',
|
||||
input: dwl_ipc_protocol,
|
||||
output: 'dwl-ipc-unstable-v2-protocol.c',
|
||||
command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'],
|
||||
build_by_default: true,
|
||||
)
|
||||
|
||||
executable('mmsg',
|
||||
'src/mmsg.c',
|
||||
dwl_ipc_source,
|
||||
dependencies: [
|
||||
dependency('wayland-client'),
|
||||
],
|
||||
include_directories: include_directories('.'),
|
||||
install: true,
|
||||
c_args: [
|
||||
'-g',
|
||||
'-Wno-unused-function',
|
||||
],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue