Skip to content

Commit

Permalink
Port to dune (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmattio committed Apr 12, 2022
1 parent 8ec8bce commit 70a8a2c
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 22 deletions.
27 changes: 27 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
(lang dune 2.8)

(name ocp-ocamlres)

(license BSD-2-Clause)

(maintainers "Benjamin Canou <[email protected]>")

(authors "Benjamin Canou <[email protected]>")

(source
(github dune-universe/ocp-ocamlres))

(bug_reports "http://github.com/OCamlPro/ocp-ocamlres/issues")

(homepage "http://github.com/dune-universe/ocp-ocamlres")

(generate_opam_files true)

(package
(name ocp-ocamlres)
(synopsis "A simple tool and library to embed files and directories inside an OCaml executables")
(description "A tool ocp-ocamlres to embed files and directories inside OCaml executables, with a companion library ocplib-ocamlres to manipulate them at run-time.")
(depends
(ocaml (>= 4.01.0))
pprint
astring))
33 changes: 33 additions & 0 deletions ocp-ocamlres.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis:
"A simple tool and library to embed files and directories inside an OCaml executables"
description:
"A tool ocp-ocamlres to embed files and directories inside OCaml executables, with a companion library ocplib-ocamlres to manipulate them at run-time."
maintainer: ["Benjamin Canou <[email protected]>"]
authors: ["Benjamin Canou <[email protected]>"]
license: "BSD-2-Clause"
homepage: "http://github.com/dune-universe/ocp-ocamlres"
bug-reports: "http://github.com/OCamlPro/ocp-ocamlres/issues"
depends: [
"dune" {>= "2.8"}
"ocaml" {>= "4.01.0"}
"pprint"
"astring"
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/dune-universe/ocp-ocamlres.git"
22 changes: 0 additions & 22 deletions opam

This file was deleted.

12 changes: 12 additions & 0 deletions src/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(library
(name oCamlRes)
(wrapped false)
(public_name ocp-ocamlres)
(libraries str unix dynlink pprint astring)
(modules (:standard \ oCamlResMain)))

(executable
(name oCamlResMain)
(public_name ocp-ocamlres)
(libraries ocp-ocamlres)
(modules oCamlResMain))

0 comments on commit 70a8a2c

Please sign in to comment.