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

example_files = [
	'eula.txt',
	'example.mcserver',
	'minecproxy.conf',
	'minecproxy.service',
	'minecserver@.service',
	'README.TXT',
	'server.properties',
]

xxd = find_program('xxd')

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

foreach example_file: example_files
	example_output = example_file + '.h'

	file = custom_target(
		example_output,
		input: example_file,
		output: example_output,
		command: xxd_cmd,
		build_by_default: true,
	)
endforeach