diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 9b7d7c1..7549940 100644 --- a/meson.build +++ b/meson.build @@ -1,13 +1,41 @@ -project('iot-contact') +project( + 'iot-contact', + version : '0.0.0-dev', +) -cp = find_program('cp', required : true) +tar = find_program('tar', required : true) fs = import('fs') +project_version_string = meson.project_name() + '-v' + meson.project_version() + +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') -subdir('web') -subdir('artifacts') + +artifacts = [ + html, + css, + schematic, + bom, + simulation, + update_image, + factory_image, + kicad_pcb, +] + +custom_target( + output: project_version_string + '.tar.zst', + command: [ + tar, + '--zstd', + '--transform=s|^|' + project_version_string + '/|', + '-cf', '@OUTPUT@', + artifacts, + ], + depends: artifacts, + build_by_default: true, +) |