summaryrefslogtreecommitdiff
path: root/examples/meson.build
blob: 7b525f6f2578e99fc64675719eb1775df9092bf6 (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
# 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',
]