From 6ff99393b4bbc1207375cbbc032814e233b03758 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 5 Apr 2025 09:52:41 +0200 Subject: pcb: Switch from CMake to Meson This allows to install the PCB-related files easier to the website which is built with Meson. --- pcb/meson.build | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pcb/meson.build (limited to 'pcb/meson.build') 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, +) -- cgit v1.2.3-70-g09d2