File: meson.build

package info (click to toggle)
rust-wayland-protocols 0.32.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,324 kB
  • sloc: xml: 13,573; sh: 17; python: 15; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
header_install_dir = get_option('includedir') / 'wayland-protocols'
foreach protocol_file : protocol_files
	header_name = fs.name(protocol_file).replace('.xml', '-enum.h')
	custom_target(
		header_name,
		output: header_name,
		input: '../..' / protocol_file,
		command: [
			prog_scanner,
			'--strict',
			'enum-header',
			'@INPUT@',
			'@OUTPUT@',
		],
		install: true,
		install_dir: header_install_dir,
	)
endforeach