aboutsummaryrefslogtreecommitdiffstats
path: root/doc/publican/html/images/meson.build
blob: de4cc1810387f950ca318eb607df3195eff1e4ad (plain) (blame)
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
foreach src : files([
	'icon.svg',
	'wayland.png',
])
	name = fs.name(src)
	publican_inputs += fs.copyfile(
		name,
		install: true,
		install_dir: publican_install_prefix + '/html/images',
	)
endforeach

foreach src : files([
	'wayland-architecture.gv',
	'x-architecture.gv',
])
	input = fs.name(src)
	output = fs.stem(src) + '.png'

	publican_inputs += custom_target(
		input + '.png',
		command: [ dot, '-Tpng', '-o@OUTPUT@', '@INPUT@' ],
		input: input,
		output: output,
		install: true,
		install_dir: publican_install_prefix + '/html/images',
	)

	publican_image_maps += custom_target(
		input + '.map',
		command: [ dot, '-Tcmapx_np', '-o@OUTPUT@', '@INPUT@' ],
		input: input,
		output: fs.stem(src) + '.map',
	)
endforeach