1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
(library
(name eio_posix)
(public_name eio_posix)
(enabled_if (= %{os_type} "Unix"))
(foreign_stubs
(language c)
(flags :standard -D_LARGEFILE64_SOURCE)
(include_dirs ../lib_eio/unix/include)
(names eio_posix_stubs))
(libraries eio eio.utils eio.unix fmt iomux))
(rule
(targets config.ml)
(enabled_if (= %{os_type} "Unix"))
(action (run ./include/discover.exe)))
(rule
(enabled_if (and (= %{os_type} "Unix") %{bin-available:lintcstubs_arity_cmt}))
(action
(with-stdout-to
primitives.h.new
(run %{bin:lintcstubs_arity_cmt} %{dep:.eio_posix.objs/byte/eio_posix__Low_level.cmt}))))
(rule
(enabled_if (and (= %{os_type} "Unix") %{bin-available:lintcstubs_arity_cmt}))
(alias runtest)
(action
(diff primitives.h primitives.h.new)))
|