aboutsummaryrefslogtreecommitdiff
path: root/src/ee
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-05-27 23:15:43 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-05-27 23:15:43 +0200
commitd108963a31f726ec8e1f471695addbbabb0db312 (patch)
tree44b433c7151ae0a7a301647830e38a0462601416 /src/ee
parent1955eb67e57fbd93d4d8fd313445d84640b78377 (diff)
downloadee-python-d108963a31f726ec8e1f471695addbbabb0db312.tar.gz
ee-python-d108963a31f726ec8e1f471695addbbabb0db312.tar.bz2
ee-python-d108963a31f726ec8e1f471695addbbabb0db312.tar.xz
ee-python-d108963a31f726ec8e1f471695addbbabb0db312.zip
o Setting tool output to warn by default when running through ninja.
Diffstat (limited to 'src/ee')
-rw-r--r--src/ee/tools/templates/build.ninja.j243
1 files changed, 19 insertions, 24 deletions
diff --git a/src/ee/tools/templates/build.ninja.j2 b/src/ee/tools/templates/build.ninja.j2
index 5ae6085..dbfe8f0 100644
--- a/src/ee/tools/templates/build.ninja.j2
+++ b/src/ee/tools/templates/build.ninja.j2
@@ -1,7 +1,7 @@
{% set reports=[] -%}
-ee = {{ ee }}
-uuid = {{ project.uuid }}
-report_dir = {{ project.report_dir }}
+ee = {{ ee }}
+uuid = {{ project.uuid }}
+report_dir = {{ project.report_dir }}
{%- if sch is defined %}
sch = {{ sch | ninja_path }}
sch_files = {{ sch_files | ninja_path }}
@@ -9,6 +9,7 @@ sch_files = {{ sch_files | ninja_path }}
{%- if pcb is defined %}
pcb = {{ pcb | ninja_path }}
{%- endif %}
+{%- set log=log if log is defined else "--log=warn" %}
rule kicad-gerber
description = kicad-gerber
@@ -20,60 +21,54 @@ rule kicad-gerber
# mv $(GERBER_DIR)/tmp.zip $@
rule kicad-make-bom
- description = kicad-make-bom $out
- command = $ee kicad-make-bom --sch $sch --out $out --uuid $uuid
+ command = $ee kicad-make-bom {{ log }} --sch $sch --out $out --uuid $uuid
rule pn-part-search-list
description = pn-part-search-list supplier: $supplier
- command = $ee pn-part-search-list --in $in --out $out --supplier $supplier
+ command = $ee pn-part-search-list {{ log }} --in $in --out $out --supplier $supplier
rule part-apply-function
- command = $ee part-apply-function --execution $execution --in $in --out $out $functions $arguments
+ command = $ee part-apply-function {{ log }} --execution $execution --in $in --out $out $functions $arguments
rule part-apply-souffle-pre
- command = $ee part-apply-souffle-pre --in $in --work $work
+ command = $ee part-apply-souffle-pre {{ log }} --in $in --work $work
rule souffle
command = souffle -F $work/in -D $work/out -I $work -I "{{ souffle_ee_src }}" $in
rule part-apply-souffle-post
- command = $ee part-apply-souffle-post --in $in_sch --out $out --work $work
+ command = $ee part-apply-souffle-post {{ log }} --in $in_sch --out $out --work $work
rule part-find-requirements
- description = part-find-requirements
- command = $ee part-find-requirements --in $in --out $out $report
+ command = $ee part-find-requirements {{ log }} --in $in --out $out $report
rule part-validate-parts
- command = $ee part-validate-parts --in $in --out $out
+ command = $ee part-validate-parts {{ log }} --in $in --out $out
rule digikey-search-parts
- description = digikey-search-parts
- command = $ee digikey-search-parts --in $in --out $out
+ command = $ee digikey-search-parts {{ log }} --in $in --out $out
rule element14-search-parts
- description = element14-search-parts
- command = $ee element14-search-parts --in $in --out $out
+ command = $ee element14-search-parts {{ log }} --in $in --out $out
rule create-bom
- description = create-bom
- command = $ee create-bom --schematic $schematic --part-db $part_dbs --out $out $strategy
+ command = $ee create-bom {{ log }} --schematic $schematic --part-db $part_dbs --out $out $strategy
rule split-parts-by-supplier
- description = split-parts-by-supplier
- command = $ee split-parts-by-supplier --parts $order $part_dbs --out-dir $out_dir
+ command = $ee split-parts-by-supplier {{ log }} --parts $order $part_dbs --out-dir $out_dir
rule import-parts-yaml
description = import-parts-yaml $in
- command = $ee import-parts-yaml --in $in --out $out
+ command = $ee import-parts-yaml {{ log }} --in $in --out $out
rule drawio-decompress
- command = $ee drawio-decompress --in $in --out $out
+ command = $ee drawio-decompress {{ log }} --in $in --out $out
rule drawio-to-parts
- command = $ee drawio-to-parts --in $in --out $out $args
+ command = $ee drawio-to-parts {{ log }} --in $in --out $out $args
rule part-from-excel
- command = $ee part-from-excel --in $in --out $out --sheet "$sheet"
+ command = $ee part-from-excel {{ log }} --in $in --out $out --sheet "$sheet"
{% if gerber_zip is defined %}
build gerbers: phony {{ gerber_zip }}