diff options
author | xengineering <me@xengineering.eu> | 2025-04-05 09:52:41 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2025-04-05 10:47:40 +0200 |
commit | 6ff99393b4bbc1207375cbbc032814e233b03758 (patch) | |
tree | ca4f3488b8d327963c135640ba2695bfcb9c3aa8 /pcb/meson.build | |
parent | b7c46986ac3aa4a17b9fac2ad54afec9d6a3506f (diff) | |
download | iot-contact-6ff99393b4bbc1207375cbbc032814e233b03758.tar iot-contact-6ff99393b4bbc1207375cbbc032814e233b03758.tar.zst iot-contact-6ff99393b4bbc1207375cbbc032814e233b03758.zip |
pcb: Switch from CMake to Meson
This allows to install the PCB-related files easier to the website which
is built with Meson.
Diffstat (limited to 'pcb/meson.build')
-rw-r--r-- | pcb/meson.build | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pcb/meson.build b/pcb/meson.build new file mode 100644 index 0000000..cd45a48 --- /dev/null +++ b/pcb/meson.build @@ -0,0 +1,38 @@ +schematic_files = [ + 'iot-contact.kicad_sch', + 'contacts.kicad_sch', + 'ethernet.kicad_sch', + 'io.kicad_sch', + 'power.kicad_sch', + 'processor.kicad_sch', +] + +schematic = custom_target('schematic', + output: ['schematic.pdf'], + command: [ + 'kicad-cli', + 'sch', + 'export', + 'pdf', + '--output', meson.current_build_dir() / 'schematic.pdf', + meson.current_source_dir() / 'iot-contact.kicad_sch', + ], + depend_files: schematic_files, + build_by_default: true, +) + +bom = custom_target('bom', + output: ['bill-of-materials.csv'], + command: [ + 'kicad-cli', + 'sch', + 'export', + 'bom', + '--fields', + 'Reference,Description,Value,Footprint,Manufacturer,MPN,Datasheet', + '--output', meson.current_build_dir() / 'bill-of-materials.csv', + meson.current_source_dir() / 'iot-contact.kicad_sch', + ], + depend_files: schematic_files, + build_by_default: true, +) |