summaryrefslogtreecommitdiff
path: root/bindgen/ocaml/bindings/dune
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen/ocaml/bindings/dune')
-rw-r--r--bindgen/ocaml/bindings/dune13
1 files changed, 13 insertions, 0 deletions
diff --git a/bindgen/ocaml/bindings/dune b/bindgen/ocaml/bindings/dune
new file mode 100644
index 0000000..673491d
--- /dev/null
+++ b/bindgen/ocaml/bindings/dune
@@ -0,0 +1,13 @@
+(library
+ (name bindings)
+ (libraries bindgen))
+
+(rule
+ (alias gen_bindings)
+ (deps celeritas.h)
+ (targets bindings_sys.ml caml_bindings.c)
+ (action
+ (run
+ %{bin:ocaml-bindgen} celeritas.h bindings)
+ )
+ (mode (promote (until-clean)))) \ No newline at end of file