File: dune

package info (click to toggle)
ocaml-eio 1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,548 kB
  • sloc: ml: 14,608; ansic: 1,237; makefile: 25
file content (28 lines) | stat: -rw-r--r-- 761 bytes parent folder | download
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)))