Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
74671ba6cThis file is pinned to the selected release. Download the original to open it in your design tool.
(executable
(name main)
(libraries dometyl examples))
; Convenience rule/alias for building and running examples (promoted to models/scads diectory)
; This pattern enables automatic scad re-generation on changes with `dune build -w @run`.
(rule
(alias models)
(deps
(package dometyl)
(sandbox always)
(:runner "../dune_helpers/runner.exe")
(:scads
(glob_files "*.exe")))
(targets
(dir "scads"))
(mode promote)
(action
(chdir
"scads"
(run %{runner} %{scads}))))
; Export scad examples to stl.
(rule
(alias export_models)
(deps
(package dometyl)
(sandbox always)
(:exporter "../dune_helpers/exporter.exe")
(:scads
(glob_files "scads/*.scad")))
(targets
(dir "stls"))
(mode promote)
(action
(chdir
"stls"
(run %{exporter} %{scads}))))