File: meson.build

package info (click to toggle)
waypipe 0.8.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,240 kB
  • sloc: ansic: 14,798; xml: 6,103; python: 1,155; sh: 55; makefile: 14
file content (47 lines) | stat: -rw-r--r-- 1,515 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

symgen_path = join_paths(meson.current_source_dir(), 'symgen.py')
sendgen_path = join_paths(meson.current_source_dir(), 'sendgen.py')
fn_list = join_paths(meson.current_source_dir(), 'function_list.txt')

# Include a copy of these protocols in the repository, rather than looking
# for packages containing them, to:
# a) avoid versioning problems as new protocols/methods are introduced
# b) keep the minimum build complexity for waypipe low
# c) be able to relay through newer protocols than are default on a system
protocols = [
	'wayland.xml',
	'xdg-shell.xml',
	'presentation-time.xml',
	'linux-dmabuf-unstable-v1.xml',
	'gtk-primary-selection.xml',
	'input-method-unstable-v2.xml',
	'primary-selection-unstable-v1.xml',
	'virtual-keyboard-unstable-v1.xml',
	'wlr-screencopy-unstable-v1.xml',
	'wlr-export-dmabuf-unstable-v1.xml',
	'wlr-data-control-unstable-v1.xml',
	'wlr-gamma-control-unstable-v1.xml',
	'wayland-drm.xml',
]

protocols_src = []
protocols_src += custom_target(
	'protocol code',
	output: 'protocols.c',
	input: protocols,
	depend_files: [fn_list, symgen_path],
	command: [python3, symgen_path, 'data', fn_list, '@OUTPUT@', '@INPUT@'],
)
protocols_src += custom_target(
	'protocol header',
	output: 'protocols.h',
	input: protocols,
	depend_files: [fn_list, symgen_path],
	command: [python3, symgen_path, 'header', fn_list, '@OUTPUT@', '@INPUT@'],
)

# For use in test
abs_protocols = []
foreach xml : protocols
        abs_protocols += join_paths(meson.current_source_dir(), xml)
endforeach