Skip to content

Commit 26b19f3

Browse files
authored
Merge pull request #73 from avsm/dune-port
port to dune from jbuilder
2 parents a6f4822 + c205305 commit 26b19f3

File tree

12 files changed

+72
-70
lines changed

12 files changed

+72
-70
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
_build/
22
*.install
33
*.merlin
4-
4+
.*.swp

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ env:
88
global:
99
- PACKAGE="mirage-block-xen"
1010
matrix:
11-
- DISTRO="ubuntu-16.04" OCAML_VERSION="4.03.0"
12-
- DISTRO="alpine" OCAML_VERSION="4.04.2"
11+
- DISTRO="ubuntu" OCAML_VERSION="4.03"
12+
- DISTRO="alpine" OCAML_VERSION="4.04"
13+
- DISTRO="alpine" OCAML_VERSION="4.05"
14+
- DISTRO="alpine" OCAML_VERSION="4.06"
15+
- DISTRO="alpine" OCAML_VERSION="4.07"

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.6.0 (2019-01-11):
2+
* Port to dune from jbuilder (@avsm)
3+
14
## 1.5.4 (2017-07-05):
25
* Use `ppx_cstruct` directly instead of the `cstruct.ppx` compat
36
package, which makes it easier for jbuilder subdirectory embedding.

Dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
.PHONY: build clean test
33

44
build:
5-
jbuilder build @install --dev
5+
dune build
66

77
test:
8-
jbuilder runtest --dev
8+
dune runtest
99

1010
install:
11-
jbuilder install
11+
dune install
1212

1313
uninstall:
14-
jbuilder uninstall
14+
dune uninstall
1515

1616
xen-depends: Dockerfile build.sh
1717
docker build -t mirage-block-xen .

build.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

dune-project

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
(lang dune 1.0)
2+
(name mirage-block-xen)

lib/blkproto.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1616
*)
1717

18-
open Printf
18+
[@@@warning "-32"]
1919

2020
type ('a, 'b) result = [
2121
| `OK of 'a

lib/dune

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
(library
2+
(name mirage_block_xen)
3+
(public_name mirage-block-xen)
4+
(modules Blkproto Device_number)
5+
(libraries cstruct io-page)
6+
(wrapped false)
7+
(preprocess
8+
(pps ppx_cstruct)))
9+
10+
(library
11+
(name mirage_block_xen_front)
12+
(public_name mirage-block-xen.front)
13+
(modules Blkfront Block)
14+
(libraries logs stringext lwt cstruct ppx_cstruct mirage-block-lwt io-page
15+
io-page-xen shared-memory-ring shared-memory-ring-lwt mirage-block-xen
16+
xen-evtchn xen-gnt mirage-xen)
17+
(wrapped false))
18+
19+
(library
20+
(name mirage_block_xen_back)
21+
(public_name mirage-block-xen.back)
22+
(modules Blkback Block_request)
23+
(libraries logs lwt cstruct ppx_cstruct io-page shared-memory-ring
24+
shared-memory-ring-lwt mirage-block-xen xen-evtchn xen-gnt xenstore
25+
xenstore.client mirage-block-lwt rresult)
26+
(wrapped false))

lib/jbuild

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)