+ dune stuff
This commit is contained in:
parent
96f10ec373
commit
1e82b25087
5 changed files with 31 additions and 4 deletions
22
src/dune
22
src/dune
|
|
@ -1,8 +1,11 @@
|
|||
(executable
|
||||
(public_name mte)
|
||||
(name mte)
|
||||
(modules mte)
|
||||
(libraries mte))
|
||||
(link_flags :standard -cclib "-z solo5-abi=hvt")
|
||||
(libraries mte)
|
||||
(foreign_stubs
|
||||
(language c)
|
||||
(names manifest)))
|
||||
|
||||
(library
|
||||
(name mte)
|
||||
|
|
@ -43,3 +46,18 @@
|
|||
(with-stdout-to
|
||||
%{null}
|
||||
(run ocaml-crunch -m plain ../assets -o %{target}))))
|
||||
|
||||
(rule
|
||||
(targets manifest.c)
|
||||
(deps manifest.json)
|
||||
(enabled_if
|
||||
(= %{context_name} "solo5"))
|
||||
(action
|
||||
(run solo5-elftool gen-manifest manifest.json manifest.c)))
|
||||
|
||||
(rule
|
||||
(targets manifest.c)
|
||||
(enabled_if
|
||||
(= %{context_name} "default"))
|
||||
(action
|
||||
(write-file manifest.c "")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue