diff options
author | xengineering <me@xengineering.eu> | 2025-04-05 10:36:38 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2025-04-05 12:26:17 +0200 |
commit | 061a67ea6e4a7fb9658fd3efc1c670eae5ff3eb6 (patch) | |
tree | cc6bf423db4fcde43fa2496562de88bac5fee161 /pcb/meson.build | |
parent | ec8958e5ded76bd148e2cb4efbd22603555b93f5 (diff) | |
download | iot-contact-061a67ea6e4a7fb9658fd3efc1c670eae5ff3eb6.tar iot-contact-061a67ea6e4a7fb9658fd3efc1c670eae5ff3eb6.tar.zst iot-contact-061a67ea6e4a7fb9658fd3efc1c670eae5ff3eb6.zip |
Deploy schematic and BOM to website
These important design files should be deployed with the website.
Diffstat (limited to 'pcb/meson.build')
-rw-r--r-- | pcb/meson.build | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pcb/meson.build b/pcb/meson.build index cd45a48..d74f8c3 100644 --- a/pcb/meson.build +++ b/pcb/meson.build @@ -7,6 +7,7 @@ schematic_files = [ 'processor.kicad_sch', ] +schematic_pdf = meson.current_build_dir() / 'schematic.pdf' schematic = custom_target('schematic', output: ['schematic.pdf'], command: [ @@ -14,13 +15,14 @@ schematic = custom_target('schematic', 'sch', 'export', 'pdf', - '--output', meson.current_build_dir() / 'schematic.pdf', + '--output', schematic_pdf, meson.current_source_dir() / 'iot-contact.kicad_sch', ], depend_files: schematic_files, build_by_default: true, ) +bom_csv = meson.current_build_dir() / 'bill-of-materials.csv' bom = custom_target('bom', output: ['bill-of-materials.csv'], command: [ @@ -30,9 +32,11 @@ bom = custom_target('bom', 'bom', '--fields', 'Reference,Description,Value,Footprint,Manufacturer,MPN,Datasheet', - '--output', meson.current_build_dir() / 'bill-of-materials.csv', + '--output', bom_csv, meson.current_source_dir() / 'iot-contact.kicad_sch', ], depend_files: schematic_files, build_by_default: true, ) + +pcb = meson.current_build_dir() |