-
Notifications
You must be signed in to change notification settings - Fork 22
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 #42 from nojb/master
Do not export unnecessary symbols + port to dune + Windows fixes
- Loading branch information
Showing
18 changed files
with
792 additions
and
822 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,19 +1,19 @@ | ||
all: | ||
jbuilder build --dev @install | ||
dune build --dev @install | ||
|
||
test: | ||
jbuilder runtest | ||
dune runtest | ||
|
||
doc: | ||
jbuilder build @doc | ||
dune build @doc | ||
|
||
install: | ||
jbuilder install | ||
dune install | ||
|
||
uninstall: | ||
jbuilder uninstall | ||
dune uninstall | ||
|
||
clean: | ||
jbuilder clean | ||
dune clean | ||
|
||
.PHONY: all test doc install uninstall clean |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
let flags = | ||
match Sys.win32 with | ||
| true -> "()" | ||
| false -> "(-Wall -O3 -funroll-loops)" | ||
|
||
let () = | ||
print_endline flags |
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,13 @@ | ||
(rule (with-stdout-to c_flags.sexp (run %{ocaml} %{dep:c_flags.ml}))) | ||
|
||
(library | ||
(name sha) | ||
(public_name sha) | ||
(synopsis "SHA-1 and SHA-2 family implementations") | ||
(wrapped false) | ||
(modules sha1 sha256 sha512) | ||
(flags -warn-error -3) | ||
(foreign_stubs | ||
(language c) | ||
(flags (:include c_flags.sexp)) | ||
(names sha1_stubs sha256_stubs sha512_stubs))) |
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,24 @@ | ||
(lang dune 2.0) | ||
|
||
(name sha) | ||
|
||
(source (github djs55/ocaml-sha)) | ||
|
||
(license ISC) | ||
|
||
(authors "Vincent Hanquez" | ||
"Thomas Gazagnaire" | ||
"Goswin von Brederlow" | ||
"Eric Cooper" | ||
"Florent Monnier" | ||
"Forrest L Norvell" | ||
"Vincent Bernadoff" | ||
"David Scott") | ||
|
||
(maintainers [email protected]) | ||
|
||
(package | ||
(name sha) | ||
(depends (dune (>= 2.0)) (ounit :with-test))) | ||
|
||
(generate_opam_files true) |
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,22 +1,35 @@ | ||
opam-version: "1.2" | ||
maintainer: "[email protected]" | ||
authors: [ | ||
"Vincent Hanquez" "Thomas Gazagnaire" "Goswin von Brederlow" | ||
"Eric Cooper" "Florent Monnier" "Forrest L Norvell" | ||
"Vincent Bernadoff" "David Scott" | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
maintainer: ["[email protected]"] | ||
authors: [ | ||
"Vincent Hanquez" | ||
"Thomas Gazagnaire" | ||
"Goswin von Brederlow" | ||
"Eric Cooper" | ||
"Florent Monnier" | ||
"Forrest L Norvell" | ||
"Vincent Bernadoff" | ||
"David Scott" | ||
] | ||
homepage: "https://github.com/djs55/ocaml-sha" | ||
bug-reports: "https://github.com/djs55/ocaml-sha/issues" | ||
dev-repo: "https://github.com/djs55/ocaml-sha.git" | ||
license: "ISC" | ||
|
||
build: [["jbuilder" "build" "-p" name "-j" jobs]] | ||
|
||
build-test: [["jbuilder" "runtest" "-p" name]] | ||
|
||
license: "ISC" | ||
homepage: "https://github.com/djs55/ocaml-sha" | ||
bug-reports: "https://github.com/djs55/ocaml-sha/issues" | ||
depends: [ | ||
"jbuilder" {build & >= "1.0+beta13"} | ||
"ounit" {test} | ||
"dune" {>= "2.0"} | ||
"ounit" {with-test} | ||
] | ||
|
||
available: [ ocaml-version >= "4.02.0" ] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/djs55/ocaml-sha.git" |
Oops, something went wrong.