# 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