diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-21 09:48:48 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-21 09:48:48 +0200 |
commit | 458ec38bb25ca2012222297a9890d136afcb448a (patch) | |
tree | 4ed1b7bce1d497d3281ed2eb44a78a51920e0ec1 /src/ee | |
parent | c8c04a73fef2e2f365d448a067bc5a6c8b20bebb (diff) | |
download | ee-python-458ec38bb25ca2012222297a9890d136afcb448a.tar.gz ee-python-458ec38bb25ca2012222297a9890d136afcb448a.tar.bz2 ee-python-458ec38bb25ca2012222297a9890d136afcb448a.tar.xz ee-python-458ec38bb25ca2012222297a9890d136afcb448a.zip |
o Marking all reports as a part of the default build.
Diffstat (limited to 'src/ee')
-rw-r--r-- | src/ee/tools/templates/build.ninja.j2 | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/ee/tools/templates/build.ninja.j2 b/src/ee/tools/templates/build.ninja.j2 index cb98921..1f8bcad 100644 --- a/src/ee/tools/templates/build.ninja.j2 +++ b/src/ee/tools/templates/build.ninja.j2 @@ -1,3 +1,4 @@ +{% set reports=[] -%} ee = {{ ee }} report_dir = {{ project.report_dir }} {%- if sch is defined %} @@ -87,6 +88,7 @@ build ee/sch.xml: part-apply-function ee/kicad-sch.xml {%- endif %} build $report_dir/part-validate-parts.rst: part-validate-parts ee/sch.xml +{%- set reports=reports+["$report_dir/part-validate-parts.rst"] %} build ee/requirements.xml: part-find-requirements ee/sch.xml @@ -97,6 +99,7 @@ build ee/{{ s }}/pn-part-search-list.xml: pn-part-search-list ee/sch.xml supplier = {{ s }} build ee/{{ s }}/downloaded.xml | ee/{{ s }}/downloaded.rst: {{ s }}-search-parts ee/{{ s }}/pn-part-search-list.xml +{%- set reports=reports+["ee/" + s + "/downloaded.rst"] %} build ee/{{ s }}/parts.xml: part-apply-function ee/{{ s }}/downloaded.xml execution = {{ s }} @@ -122,6 +125,7 @@ build ee/bom.xml | $report_dir/bom.rst: create-bom ee/sch.xml {%- for p in part_ {%- if project.cfg["create-bom"] and project.cfg["create-bom"]["strategy"] %} strategy = --strategy {{ project.cfg["create-bom"]["strategy"] }} {%- endif %} +{%- set reports=reports+["$report_dir/bom.rst"] %} build ee/orders/index.xml: split-parts-by-supplier ee/bom.xml {%- for p in part_dbs %} {{ p }}.xml{% endfor %} order = ee/bom.xml @@ -134,13 +138,18 @@ rule seeed-download-opl description = seeed-download-opl $opl command = $ee seeed-download-opl --out $out --opl $opl -{% if project.cfg.has_section("seeed-opl") %} -{%- set opls=project.cfg["seeed-opl"]["opls"].split(",") -%} +{%- if project.cfg.has_section("seeed-opl") %} +{%- set opls=project.cfg["seeed-opl"]["opls"].split(",") %} build seeed-download-opls: phony{%- for opl in opls %} ee/seeed/opl/{{ opl.strip() }}.xml{% endfor %} {%- for opl in opls %} -{% set opl=opl.strip() -%} +{%- set opl=opl.strip() %} build ee/seeed/opl/{{ opl }}.xml: seeed-download-opl opl = {{ opl }} -{% endfor -%} -{% endif -%} +{%- endfor %} +{%- endif %} + +# Reports +{%- for r in reports %} +default {{ r }} +{%- endfor %} |