summaryrefslogtreecommitdiff
path: root/bindgen/ocaml/bindings/dune
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-28 00:10:00 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-28 00:10:00 +1000
commit7b86e3251a28406862fe16d49f8533beb8ca3150 (patch)
treea90166418ada7ad88500843ce8881a453c1d4721 /bindgen/ocaml/bindings/dune
parent6b004c5ac6a25f1020774276803b62e8619ea61e (diff)
start on ocaml bindings
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