-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdune
37 lines (33 loc) · 878 Bytes
/
dune
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
29
30
31
32
33
34
35
36
37
(library
(public_name fiber)
(libraries unix)
(c_names fiber_stubs fiber_ev fiber_coro)
(c_flags -D_GNU_SOURCE -O2 -g3 -Wall (:include _c_flags))
(c_library_flags (:include _c_library_flags))
(wrapped false)
(preprocess (pps bisect_ppx -conditional)))
(rule
(targets _c_flags)
(action (with-stdout-to %{targets} (bash "echo '('${C_FLAGS:-}')'"))))
(rule
(targets _c_library_flags)
(action (with-stdout-to %{targets} (bash "echo '('${C_LIBRARY_FLAGS:-}')'"))))
(rule
(targets fiber_coro.c)
(deps libcoro/coro.c
libcoro/coro.h)
(action (copy fiber_coro.cx fiber_coro.c)))
(rule
(targets fiber_ev.c)
(deps fiber_ev.h
libev/ev.c
libev/ev.h
libev/ev_vars.h
libev/config.h
libev/ev_epoll.c
libev/ev_poll.c
libev/ev_select.c)
(action (copy fiber_ev.cx fiber_ev.c)))
;; Local Variables:
;; mode: lisp
;; End: