-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdune
34 lines (31 loc) · 1.36 KB
/
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
(library
(name mindstorm_lwt)
(public_name mindstorm-lwt)
(modules Mindstorm_lwt Mindstorm_lwt__NXT Mindstorm_lwt_connect)
(libraries mindstorm bytes unix lwt lwt.unix) ;lwt.preemptive)
(wrapped false)
(preprocess (action (run %{exe:../config/discover.exe} --cppo %{input-file})))
(preprocessor_deps ../src/mindstorm__NXT.ml
../src/mindstorm_connect.ml ../src/mindstorm_connect.mli
../src/mindstorm_macros.ml ../src/mindstorm_common.ml
mindstorm_win.c mindstorm_unix.c)
(c_names mindstorm_stubs)
(c_flags :standard (:include c_flags.sexp))
(c_library_flags (:standard (:include c_library_flags.sexp)))
(synopsis "Drive Lego Mindstorms bricks from OCaml (Lwt version)"))
(rule
(targets mindstorm_lwt__NXT.mli)
(deps ../src/mindstorm__NXT.mli.pp (:p %{workspace_root}/config/pp.exe))
(action (chdir %{workspace_root} (run %{p}))))
(rule
(targets c_flags.sexp c_library_flags.sexp)
(deps ../config/discover.exe)
(action (run %{deps})))
(rule
(targets mindstorm_stubs.c mindstorm_win.c mindstorm_unix.c)
(deps ../src/mindstorm_stubs.c ../src/mindstorm_win.c
../src/mindstorm_unix.c)
(action (progn
(copy ../src/mindstorm_stubs.c mindstorm_stubs.c)
(copy ../src/mindstorm_win.c mindstorm_win.c)
(copy ../src/mindstorm_unix.c mindstorm_unix.c))))