From 834dacb9ffaead63b626489d22aab2f8263e9f16 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 25 Jul 2025 22:46:44 +0200 Subject: artifacts: Remove this folder This was just a trick to provide a folder in the build tree where only artifacts are stored. These artifacts are moved to the root of the build tree. This has the disadvantage that they are mixed with other files inside this folder. Nevertheless they should soon be added by Meson to the file archive used for deployment which solves this issue because it contains by definition only artifacts. --- meson.build | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 9b7d7c1..dcc0fe2 100644 --- a/meson.build +++ b/meson.build @@ -4,10 +4,32 @@ cp = find_program('cp', required : true) fs = import('fs') -css = fs.copyfile(meson.current_source_dir() / 'simple.css' / 'simple.css') +fs.copyfile(meson.current_source_dir() / 'simple.css' / 'simple.css') subdir('tools') subdir('fw') subdir('pcb') subdir('web') -subdir('artifacts') + +artifacts = [ + index_html, + schematic, + bom, + simulation, + update_image, + factory_image, + kicad_pcb, +] + +foreach artifact : artifacts + custom_target( + output: [fs.name(artifact.full_path())], + command: [ + cp, + artifact.full_path(), + meson.current_build_dir(), + ], + depends: artifact, + build_by_default: true, + ) +endforeach -- cgit v1.2.3-70-g09d2