blob: 90fd891543264cd2b2834d15af4568e76e6f091f [file]
project('lfi-bind',
['c'],
default_options: ['warning_level=1', 'buildtype=release'],
meson_version: '>=0.60.3')
src = ['main.go']
go = find_program('go')
lfibind = custom_target('lfi-bind',
output: 'lfi-bind',
input: src + ['embed/lib_init.c.in', 'embed/lib.h.in', 'embed/lib_trampolines.S.in'],
command: [go, 'build', '-o', '@OUTPUT@', '@INPUT0@'],
build_by_default: true,
install: true,
install_dir: 'bin')
subdir('examples')