Skip to content

Commit

Permalink
Move to dune.2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dinosaure committed Jun 15, 2020
1 parent 8f69623 commit aa9352d
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 deletions.
3 changes: 1 addition & 2 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
(lang dune 1.7)
(using library_variants 0.1)
(lang dune 2.6)
(name digestif)
6 changes: 4 additions & 2 deletions src-c/native/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
(library
(name rakia)
(public_name digestif.rakia)
(c_names blake2b blake2s md5 ripemd160 sha1 sha256 sha512 whirlpool misc stubs)
(c_flags (:standard -I.)))
(foreign_stubs
(language c)
(names blake2b blake2s md5 ripemd160 sha1 sha256 sha512 whirlpool misc stubs)
(flags (:standard -I.))))
6 changes: 4 additions & 2 deletions src-c/native/freestanding/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
(public_name digestif.rakia.freestanding)
(optional)
(libraries bigarray-compat ocaml-freestanding)
(c_names blake2b blake2s md5 ripemd160 sha1 sha256 sha512 whirlpool misc stubs)
(c_flags (:include cflags.sexp)))
(foreign_stubs
(language c)
(names blake2b blake2s md5 ripemd160 sha1 sha256 sha512 whirlpool misc stubs)
(flags (:include cflags.sexp))))

(rule (copy# ../blake2b.c blake2b.c))
(rule (copy# ../blake2s.c blake2s.c))
Expand Down
6 changes: 4 additions & 2 deletions src-c/native/xen/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
(public_name digestif.rakia.xen)
(optional)
(libraries bigarray-compat mirage-xen-posix)
(c_names blake2b blake2s md5 ripemd160 sha1 sha256 sha512 whirlpool misc stubs)
(c_flags (:include cflags.sexp)))
(foreign_stubs
(language c)
(names blake2b blake2s md5 ripemd160 sha1 sha256 sha512 whirlpool misc stubs)
(flags (:include cflags.sexp))))

(rule (copy# ../blake2b.c blake2b.c))
(rule (copy# ../blake2s.c blake2s.c))
Expand Down
4 changes: 2 additions & 2 deletions test/c/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
(modules test)
(libraries fmt alcotest digestif.c))

(alias
(name runtest)
(rule
(alias runtest)
(deps (:test test.exe) ../blake2b.test ../blake2s.test)
(action (run %{test} --color=always)))

Expand Down
4 changes: 2 additions & 2 deletions test/conv/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
(modules test_conv)
(libraries digestif.c fmt alcotest))

(alias
(name runtest)
(rule
(alias runtest)
(action (run ./test_conv.exe --color=always)))
4 changes: 2 additions & 2 deletions test/ocaml/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
(modules test)
(libraries fmt alcotest digestif.ocaml))

(alias
(name runtest)
(rule
(alias runtest)
(deps (:test test.exe) ../blake2b.test ../blake2s.test)
(action (run %{test} --color=always)))

Expand Down

0 comments on commit aa9352d

Please sign in to comment.