-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from avsm/jbuilder
port to jbuilder
- Loading branch information
Showing
18 changed files
with
69 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
_build | ||
tmp | ||
*~ | ||
\.\#* | ||
\#*# | ||
*.install | ||
*.native | ||
*.byte |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
### 1.0.0 (2016-12-27) | ||
v1.1.0 2017-05-26 | ||
----------------- | ||
|
||
First release, import V1.KV_RO and V1_LWT.KV_RO from mirage-types | ||
* Port to Jbuilder. | ||
|
||
v1.0.0 2016-12-27 | ||
---------------- | ||
|
||
First release, import `V1.KV_RO` and `V1_LWT.KV_RO` from mirage-types. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
all: | ||
ocaml pkg/pkg.ml build -n mirage-kv -q | ||
ocaml pkg/pkg.ml build -n mirage-kv-lwt -q | ||
|
||
.PHONY: build clean test | ||
|
||
build: | ||
jbuilder build @install | ||
|
||
test: | ||
jbuilder runtest | ||
|
||
install: | ||
jbuilder install | ||
|
||
uninstall: | ||
jbuilder uninstall | ||
|
||
clean: | ||
ocaml pkg/pkg.ml clean -n mirage-kv -q | ||
ocaml pkg/pkg.ml clean -n mirage-kv-lwt -q | ||
rm -rf _build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
%%VERSION_NUM%% |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
B ../../_build/default/mirage-device/src | ||
B ../../_build/default/mirage-kv/lwt | ||
B ../../_build/default/mirage-kv/src | ||
FLG -w -40 | ||
PKG bigarray | ||
PKG bytes | ||
PKG cstruct | ||
PKG fmt | ||
PKG lwt | ||
PKG ocplib-endian | ||
PKG ocplib-endian.bigstring | ||
PKG result | ||
PKG sexplib | ||
PKG sexplib.0 | ||
PKG uchar | ||
PKG unix | ||
S . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(library | ||
((name mirage_kv_lwt) | ||
(public_name mirage-kv-lwt) | ||
(libraries (mirage-kv lwt cstruct)) | ||
)) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,2 @@ | ||
#!/usr/bin/env ocaml | ||
#use "topfind" | ||
#require "topkg" | ||
open Topkg | ||
|
||
let metas = [ | ||
Pkg.meta_file ~install:false "pkg/META"; | ||
Pkg.meta_file ~install:false "pkg/META.lwt"; | ||
] | ||
|
||
let opams = | ||
let opam no_lint name = | ||
Pkg.opam_file ~lint_deps_excluding:(Some no_lint) ~install:false name | ||
in | ||
[ | ||
opam ["lwt"; "mirage-kv"; "cstruct"; "result"] "opam"; | ||
opam ["fmt"; "mirage-device"; "result"] "mirage-kv-lwt.opam"; | ||
] | ||
|
||
let () = | ||
Pkg.describe ~opams ~metas "mirage-kv" @@ fun c -> | ||
match Conf.pkg_name c with | ||
| "mirage-kv" -> | ||
Ok [ Pkg.lib "pkg/META"; | ||
Pkg.mllib "src/mirage-kv.mllib" ] | ||
| "mirage-kv-lwt" -> | ||
Ok [ Pkg.lib "pkg/META.lwt" ~dst:"META"; | ||
Pkg.lib ~exts:Exts.interface "src/mirage_kv_lwt" ] | ||
| other -> | ||
R.error_msgf "unknown package name: %s" other | ||
#require "topkg-jbuilder.auto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
B ../../_build/default/mirage-device/src | ||
B ../../_build/default/mirage-kv/src | ||
FLG -w -40 | ||
PKG fmt | ||
PKG result | ||
PKG uchar | ||
S . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(library | ||
((name mirage_kv) | ||
(public_name mirage-kv) | ||
(libraries (fmt mirage-device)) | ||
)) |
This file was deleted.
Oops, something went wrong.