From 6cc299dc16cbf0a0b09d9e66a7460af4155e4b0f Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 28 Jul 2025 15:55:56 +0200 Subject: pcb: Use `kicad-cli` with Meson `find_program()` This gives better user feedback when the program is not available (as currently in the latest Debian stable version). --- pcb/meson.build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pcb/meson.build') diff --git a/pcb/meson.build b/pcb/meson.build index b6a3060..fed8a7f 100644 --- a/pcb/meson.build +++ b/pcb/meson.build @@ -1,3 +1,5 @@ +kicad_cli = find_program('kicad-cli', required : true) + schematic_files = [ 'iot-contact.kicad_sch', 'contacts.kicad_sch', @@ -10,7 +12,7 @@ schematic_files = [ schematic = custom_target( output: ['schematic.pdf'], command: [ - 'kicad-cli', + kicad_cli, 'sch', 'export', 'pdf', @@ -24,7 +26,7 @@ erc_report = custom_target( input: 'iot-contact.kicad_sch', output: 'erc-report.txt', command: [ - 'kicad-cli', + kicad_cli, 'sch', 'erc', '--severity-all', @@ -37,7 +39,7 @@ erc_report = custom_target( bom = custom_target( output: ['bill-of-materials.csv'], command: [ - 'kicad-cli', + kicad_cli, 'sch', 'export', 'bom', -- cgit v1.2.3-70-g09d2