diff options
author | xengineering <me@xengineering.eu> | 2025-07-28 15:55:56 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2025-07-28 15:55:56 +0200 |
commit | 6cc299dc16cbf0a0b09d9e66a7460af4155e4b0f (patch) | |
tree | a88b8304f861954610e9ed63d8e494b92bb759f9 /pcb/meson.build | |
parent | cec58f88397b784eb5cc630fd2532d7f72da3c72 (diff) | |
download | iot-contact-6cc299dc16cbf0a0b09d9e66a7460af4155e4b0f.tar iot-contact-6cc299dc16cbf0a0b09d9e66a7460af4155e4b0f.tar.zst iot-contact-6cc299dc16cbf0a0b09d9e66a7460af4155e4b0f.zip |
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).
Diffstat (limited to 'pcb/meson.build')
-rw-r--r-- | pcb/meson.build | 8 |
1 files changed, 5 insertions, 3 deletions
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', |