summaryrefslogtreecommitdiff
path: root/examples/meson.build
blob: 67ddf01e26bbb7a2744f3bcd4be4946165de6586 (plain)
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
# SPDX-License-Identifier: GPL-2

xxd_files = [
	'eula.txt',
	'minecctl.conf',
	'minecproxy.conf',
	'minecproxy.service',
	'minecserver@.service',
	'README.TXT',
]

xxd = find_program('xxd')

xxd_cmd = [xxd, '-i', '@INPUT@', '@OUTPUT@']

foreach xxd_file: xxd_files
	xxd_output = xxd_file + '.h'

	file = custom_target(
		xxd_output,
		input: xxd_file,
		output: xxd_output,
		command: xxd_cmd,
		build_by_default: true,
	)
endforeach

install_files = [
	'example.mcserver',
	'minecctl.conf',
	'minecproxy.conf',
	'minecproxy.service',
	'minecserver@.service',
]

install_data(
	install_files,
	install_dir: join_paths(get_option('datadir'), 'doc', meson.project_name())
)