miou-solo5/test/dune

31 lines
803 B
Text

(executable
(name sleep)
(modules sleep)
(modes native)
(link_flags :standard -cclib "-z solo5-abi=hvt")
(enabled_if (= %{context_name} "solo5"))
(libraries miou-solo5)
(foreign_stubs (language c) (names manifest.sleep)))
(executable
(name schedule)
(modules schedule)
(modes native)
(link_flags :standard -cclib "-z solo5-abi=hvt")
(enabled_if (= %{context_name} "solo5"))
(libraries miou-solo5)
(foreign_stubs (language c) (names manifest.schedule)))
(rule
(targets manifest.sleep.c)
(deps none.json)
(action (run solo5-elftool gen-manifest none.json manifest.sleep.c)))
(rule
(targets manifest.schedule.c)
(deps none.json)
(action (run solo5-elftool gen-manifest none.json manifest.schedule.c)))
(cram
(enabled_if (= %{context_name} "solo5"))
(deps sleep.exe schedule.exe))