Skip to content

Commit

Permalink
Replaced jbuild with dune files.
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
  • Loading branch information
kc284 authored and lindig committed Dec 10, 2018
1 parent a9adf69 commit d9bf0bc
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 36 deletions.
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
.PHONY: build release install uninstall clean test doc reindent
PROFILE=release

build:
dune build @install
.PHONY: build install uninstall clean test doc reindent

release:
dune build @install --profile=release
build:
dune build @install --profile=$(PROFILE)

install:
dune install
Expand All @@ -16,11 +15,11 @@ clean:
dune clean

test:
dune runtest
dune runtest --profile=$(PROFILE)

# requires odoc
doc:
dune build @doc
dune build @doc --profile=$(PROFILE)

reindent:
ocp-indent --syntax cstruct -i **/*.ml*
1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(lang dune 1.4)
17 changes: 10 additions & 7 deletions ezxenstore.opam
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
opam-version: "1.2"
opam-version: "2.0"
maintainer: "jonathan.ludlam@citrix.com"
authors: ["xen-api@lists.xensource.com"]
license: "ISC"
homepage: "https://github.com/xapi-project/ezxenstore"
bug-reports: "https://github.com/xapi-project/ezxenstore/issues"
dev-repo: "https://github.com/xapi-project/ezxenstore.git"

dev-repo: "git+https://github.com/xapi-project/ezxenstore.git"
build: [[ "dune" "build" "-p" name "-j" jobs ]]

depends: [
"dune" {build}

"base-threads"
"ocaml"
"dune" {build & >= "1.4"}
"cmdliner"
"logs"
"uuidm"
"xenctrl"
"xenstore"
"xenstore_transport"
]
synopsis:
"An easy-to-use interface to xenstore"
description: """
An easy-to-use xenstore library with a simplified interface geared
towards use within a daemon that maintains a single connection to
xenstored."""
1 change: 0 additions & 1 deletion jbuild

This file was deleted.

13 changes: 13 additions & 0 deletions lib/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(library
(name ezxenstore)
(public_name ezxenstore)
(wrapped false)
(libraries
cmdliner
logs
threads
uuidm
xenctrl
xenstore_transport.unix
xenstore.unix)
)
12 changes: 0 additions & 12 deletions lib/jbuild

This file was deleted.

10 changes: 10 additions & 0 deletions lib_test/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(executable
(name main)
(libraries ezxenstore)
)

(alias
(name runtest)
(deps main.exe)
(action (run %{deps}))
)
9 changes: 0 additions & 9 deletions lib_test/jbuild

This file was deleted.

0 comments on commit d9bf0bc

Please sign in to comment.