Add protocols (xdg-shell)
This commit is contained in:
parent
1e42eba563
commit
f936aed7c2
3 changed files with 44 additions and 5 deletions
|
@ -11,6 +11,7 @@ kiwmi_sources = files(
|
||||||
|
|
||||||
kiwmi_deps = [
|
kiwmi_deps = [
|
||||||
lua,
|
lua,
|
||||||
|
protocols_server,
|
||||||
wayland_server,
|
wayland_server,
|
||||||
wlroots,
|
wlroots,
|
||||||
xkbcommon,
|
xkbcommon,
|
||||||
|
|
13
meson.build
13
meson.build
|
@ -16,11 +16,13 @@ add_project_arguments(
|
||||||
language: 'c',
|
language: 'c',
|
||||||
)
|
)
|
||||||
|
|
||||||
git = find_program('git', required: false)
|
git = find_program('git', required: false)
|
||||||
lua = dependency('lua')
|
lua = dependency('lua')
|
||||||
wayland_server = dependency('wayland-server')
|
wayland_protocols = dependency('wayland-protocols')
|
||||||
wlroots = dependency('wlroots')
|
wayland_scanner = dependency('wayland-scanner')
|
||||||
xkbcommon = dependency('xkbcommon')
|
wayland_server = dependency('wayland-server')
|
||||||
|
wlroots = dependency('wlroots')
|
||||||
|
xkbcommon = dependency('xkbcommon')
|
||||||
|
|
||||||
include = include_directories('include')
|
include = include_directories('include')
|
||||||
|
|
||||||
|
@ -45,4 +47,5 @@ else
|
||||||
add_project_arguments('-DUNUSED(x)=UNUSED_ ## x', language: 'c')
|
add_project_arguments('-DUNUSED(x)=UNUSED_ ## x', language: 'c')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
subdir('protocols')
|
||||||
subdir('kiwmi')
|
subdir('kiwmi')
|
||||||
|
|
35
protocols/meson.build
Normal file
35
protocols/meson.build
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
wayland_protocols_dir = wayland_protocols.get_pkgconfig_variable('pkgdatadir')
|
||||||
|
wayland_scanner_bin = wayland_scanner.get_pkgconfig_variable('wayland_scanner')
|
||||||
|
|
||||||
|
protocols_server = [
|
||||||
|
wayland_protocols_dir / 'stable/xdg-shell/xdg-shell.xml',
|
||||||
|
]
|
||||||
|
|
||||||
|
protocols_server_src = []
|
||||||
|
protocols_server_inc = []
|
||||||
|
|
||||||
|
foreach protocol : protocols_server
|
||||||
|
protocols_server_src += custom_target(
|
||||||
|
protocol.underscorify() + '_server_c',
|
||||||
|
input: protocol,
|
||||||
|
output: '@BASENAME@-protocol.c',
|
||||||
|
command: [wayland_scanner_bin, 'private-code', '@INPUT@', '@OUTPUT@'],
|
||||||
|
)
|
||||||
|
|
||||||
|
protocols_server_inc += custom_target(
|
||||||
|
protocol.underscorify() + '_server_h',
|
||||||
|
input: protocol,
|
||||||
|
output: '@BASENAME@-protocol.h',
|
||||||
|
command: [wayland_scanner_bin, 'server-header', '@INPUT@', '@OUTPUT@'],
|
||||||
|
)
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
protocols_server_lib = static_library(
|
||||||
|
'protocols_server',
|
||||||
|
[protocols_server_src, protocols_server_inc],
|
||||||
|
)
|
||||||
|
|
||||||
|
protocols_server = declare_dependency(
|
||||||
|
link_with: protocols_server_lib,
|
||||||
|
sources: protocols_server_inc,
|
||||||
|
)
|
Loading…
Reference in a new issue