project('iot-contact') tar = find_program('tar', required : true) fs = import('fs') html = fs.copyfile(meson.current_source_dir() / 'web' / 'index.html') css = fs.copyfile(meson.current_source_dir() / 'simple.css' / 'simple.css') subdir('tools') subdir('fw') subdir('pcb') artifacts = [ html, css, schematic, bom, simulation, update_image, factory_image, kicad_pcb, ] custom_target( output: meson.project_name() + '.tar.zst', command: [ tar, '--zstd', '--transform=s|^fw/app/||', '--transform=s|^fw/sim/||', '--transform=s|^fw/||', '--transform=s|^pcb/||', '--transform=s|^web/||', '--transform=s|^|' + meson.project_name() + '/|', '-cf', '@OUTPUT@', artifacts, ], depends: artifacts, build_by_default: true, )