aboutsummaryrefslogtreecommitdiff
path: root/src/ee/tools/templates/build.ninja.j2
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-08-02 15:09:07 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-08-02 15:09:07 +0200
commit34e79ef18fc6260a4f255e6087b011d8ff741a43 (patch)
tree43e99aeddd9843fbeedf6dc1b0e5967d469bbb90 /src/ee/tools/templates/build.ninja.j2
parentc8250596fc6b50f2c92fb3952491ddfcbf0f9781 (diff)
downloadee-python-34e79ef18fc6260a4f255e6087b011d8ff741a43.tar.gz
ee-python-34e79ef18fc6260a4f255e6087b011d8ff741a43.tar.bz2
ee-python-34e79ef18fc6260a4f255e6087b011d8ff741a43.tar.xz
ee-python-34e79ef18fc6260a4f255e6087b011d8ff741a43.zip
odoo: wip
Diffstat (limited to 'src/ee/tools/templates/build.ninja.j2')
-rw-r--r--src/ee/tools/templates/build.ninja.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ee/tools/templates/build.ninja.j2 b/src/ee/tools/templates/build.ninja.j2
index 016c7da..4817b7b 100644
--- a/src/ee/tools/templates/build.ninja.j2
+++ b/src/ee/tools/templates/build.ninja.j2
@@ -3,6 +3,7 @@ ee = {{ ee }}
uuid = {{ project.uuid }}
public_dir = {{ project.public_dir }}
report_dir = {{ project.report_dir }}
+orders_dir = {{ project.orders_dir }}
{%- if sch is defined %}
sch = {{ sch | ninja_path }}
sch_files = {{ sch_files | ninja_path }}
@@ -196,6 +197,14 @@ build $public_dir/seeed/opl/{{ opl }}.xml: seeed-download-opl
{%- endfor %}
{%- endif %}
+rule ee-ninja
+ command = ee ninja && touch $out
+
+build build.ninja ee.ninja: ee-ninja eeconfig $orders_dir
+ generator = yes
+
+default ee.ninja
+
# Reports
build ee-reports: phony {{ " ".join(reports) }}
build ee-part-dbs: phony {%- for s in suppliers %} {{ s.part_db }}{% endfor %}