miou-solo5/test/dune

141 lines
2.7 KiB
Text
Raw Normal View History

2024-12-05 19:04:55 +00:00
(executable
(name sleep)
(modules sleep)
(modes native)
(link_flags :standard -cclib "-z solo5-abi=hvt")
(libraries miou-solo5)
2024-12-06 14:38:24 +00:00
(foreign_stubs
(language c)
(names manifest.sleep)))
2024-12-06 13:05:51 +00:00
(executable
(name schedule)
(modules schedule)
(modes native)
(link_flags :standard -cclib "-z solo5-abi=hvt")
(libraries miou-solo5)
2024-12-06 14:38:24 +00:00
(foreign_stubs
(language c)
(names manifest.schedule)))
2024-12-06 13:05:51 +00:00
2024-12-06 13:45:17 +00:00
(executable
(name block)
(modules block)
(modes native)
(link_flags :standard -cclib "-z solo5-abi=hvt")
2024-12-07 15:04:56 +00:00
(libraries miou-solo5 cmdliner fmt cachet hxd.core hxd.string)
2024-12-06 14:38:24 +00:00
(foreign_stubs
(language c)
(names manifest.block)))
2024-12-06 13:45:17 +00:00
2024-12-08 16:00:01 +00:00
(executable
(name cmdline)
(modules cmdline)
(modes native)
(link_flags :standard -cclib "-z solo5-abi=hvt")
(libraries miou-solo5 cmdliner fmt)
(foreign_stubs
(language c)
(names manifest.cmdline)))
2024-12-06 13:05:51 +00:00
(rule
(targets manifest.sleep.c)
2024-12-07 15:04:56 +00:00
(deps sleep.json)
(enabled_if
(= %{context_name} "solo5"))
(action
(run solo5-elftool gen-manifest sleep.json manifest.sleep.c)))
(rule
(targets sleep.json)
(enabled_if
(= %{context_name} "solo5"))
(action
(with-stdout-to
sleep.json
(run %{exe:sleep.exe}))))
(rule
(targets manifest.sleep.c)
(enabled_if
(= %{context_name} "default"))
(action
(write-file manifest.sleep.c "")))
(rule
(targets manifest.schedule.c)
(deps schedule.json)
(enabled_if
(= %{context_name} "solo5"))
2024-12-06 14:38:24 +00:00
(action
2024-12-07 15:04:56 +00:00
(run solo5-elftool gen-manifest schedule.json manifest.schedule.c)))
(rule
(targets schedule.json)
(enabled_if
(= %{context_name} "solo5"))
(action
(with-stdout-to
schedule.json
(run %{exe:schedule.exe}))))
2024-12-05 19:04:55 +00:00
(rule
2024-12-06 13:05:51 +00:00
(targets manifest.schedule.c)
2024-12-07 15:04:56 +00:00
(enabled_if
(= %{context_name} "default"))
2024-12-06 14:38:24 +00:00
(action
2024-12-07 15:04:56 +00:00
(write-file manifest.schedule.c "")))
2024-12-06 13:05:51 +00:00
2024-12-06 13:45:17 +00:00
(rule
(targets manifest.block.c)
(deps block.json)
2024-12-07 15:04:56 +00:00
(enabled_if
(= %{context_name} "solo5"))
2024-12-06 14:38:24 +00:00
(action
(run solo5-elftool gen-manifest block.json manifest.block.c)))
2024-12-06 13:45:17 +00:00
2024-12-07 15:04:56 +00:00
(rule
(targets block.json)
(enabled_if
(= %{context_name} "solo5"))
(action
(with-stdout-to
block.json
(run %{exe:block.exe}))))
(rule
(targets manifest.block.c)
(enabled_if
(= %{context_name} "default"))
(action
(write-file manifest.block.c "")))
2024-12-08 16:00:01 +00:00
(rule
(targets manifest.cmdline.c)
(deps cmdline.json)
(enabled_if
(= %{context_name} "solo5"))
(action
(run solo5-elftool gen-manifest cmdline.json manifest.cmdline.c)))
(rule
(targets cmdline.json)
(enabled_if
(= %{context_name} "solo5"))
(action
(with-stdout-to
cmdline.json
(run %{exe:cmdline.exe}))))
(rule
(targets manifest.cmdline.c)
(enabled_if
(= %{context_name} "default"))
(action
(write-file manifest.cmdline.c "")))
2024-12-06 13:05:51 +00:00
(cram
2024-12-06 14:38:24 +00:00
(enabled_if
(= %{context_name} "solo5"))
2024-12-08 16:00:01 +00:00
(deps sleep.exe schedule.exe block.exe simple.txt cmdline.exe))