Add opam file, improve dune files

This commit is contained in:
Reynir Björnsson 2021-12-10 12:28:55 +01:00
parent 0156567918
commit de8b304d87
3 changed files with 36 additions and 3 deletions

View file

@ -1,4 +1,4 @@
(executable
(public_name solo5_elftool)
(public_name solo5-elftool)
(name main)
(libraries solo5_elftool owee cstruct cmdliner))

View file

@ -1,4 +1,4 @@
(library
(public_name solo5_elftool)
(name solo5_elftool)
(libraries owee cstruct
fmt))
(libraries owee cstruct fmt))

View file

@ -0,0 +1,33 @@
opam-version: "2.0"
homepage: "https://git.robur.io/robur/ocaml-solo5-elftool"
dev-repo: "git+https://git.robur.io/robur/ocaml-solo5-elftool.git"
bug-reports: "https://github.com/roburio/ocaml-solo5-elftool/issues"
doc: "https://roburio.github.io/ocaml-solo5-elftool/doc"
maintainer: [ "team@robur.coop" ]
authors: [ "Reynir Björnsson <reynir@reynir.dk>" ]
license: "BSD-2-Clause"
build: [
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {wiht-test}
]
depends: [
"ocaml"
"dune" {>= "2.9"}
"owee"
"cstruct"
"fmt"
"cmdliner"
]
pin-depends: [
["owee.dev" "git+https://github.com/let-def/owee.git"]
]
synopsis: "OCaml Solo5 elftool for querying solo5 manifests"
description: """
OCaml Solo5 elftool is a library and executable for reading solo5 device
manifests from solo5 ELF executables.
"""