Skip to content

Commit

Permalink
Single package with variants (mirage/mirage#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLortex committed Feb 13, 2019
1 parent 8775c09 commit 4c933c5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 105 deletions.
4 changes: 2 additions & 2 deletions lib_impl/freestanding/dune
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(library
(name mirage_entropy_freestanding)
(public_name mirage-entropy-freestanding)
(public_name mirage-entropy.freestanding)
(libraries lwt cstruct mirage-solo5 ocaml-freestanding)
(implements mirage-entropy)
(implements mirage-entropy)
(c_names entropy_cpu_stubs)
(c_flags (:include cflags.sexp) -O3 -std=c99 -Wall -Wpedantic
)
Expand Down
4 changes: 2 additions & 2 deletions lib_impl/unix/dune
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(library
(name mirage_entropy_unix)
(public_name mirage-entropy-unix)
(public_name mirage-entropy.unix)
(libraries lwt cstruct mirage-unix)
(implements mirage-entropy)
(c_names entropy_cpu_stubs)
(c_flags (:include cflags.sexp) -O3 -std=c99 -Wall -Wpedantic
)
)
)

(rule (copy# ../entropy_cpu_stubs.c entropy_cpu_stubs.c))
Expand Down
6 changes: 3 additions & 3 deletions lib_impl/xen/dune
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(library
(name mirage_entropy_xen)
(public_name mirage-entropy-xen)
(public_name mirage-entropy.xen)
(libraries lwt cstruct mirage-xen)
(implements mirage-entropy)
(implements mirage-entropy)
(c_names entropy_cpu_stubs)
(c_flags (:include cflags.sexp) -O3 -std=c99 -Wall -Wpedantic
)
)
)

(rule (copy# ../entropy_cpu_stubs.c entropy_cpu_stubs.c))
Expand Down
33 changes: 0 additions & 33 deletions mirage-entropy-freestanding.opam

This file was deleted.

32 changes: 0 additions & 32 deletions mirage-entropy-unix.opam

This file was deleted.

33 changes: 0 additions & 33 deletions mirage-entropy-xen.opam

This file was deleted.

6 changes: 6 additions & 0 deletions mirage-entropy.opam
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ depends: [
"cstruct"
"lwt"
]
depopts: [
"mirage-solo5"
"ocaml-freestanding"
"mirage-unix"
"mirage-xen"
]
conflicts: [
"cstruct" {<"1.4.0"}
]
Expand Down

0 comments on commit 4c933c5

Please sign in to comment.