From bbfd010797b69d47d88bcc22f5e73b1f97603026 Mon Sep 17 00:00:00 2001 From: Romain Calascibetta Date: Thu, 14 Apr 2022 17:38:12 +0200 Subject: [PATCH] Dunify v0.0.3 --- opam => brr.opam | 11 +++++------ dune-project | 6 ++++++ src/console/dune | 5 +++++ src/dune | 27 +++++++++++++++++++++++++++ src/note/dune | 6 ++++++ src/ocaml_poke/dune | 6 ++++++ src/ocaml_poke_ui/dune | 6 ++++++ src/poke/dune | 6 ++++++ src/poked/dune | 6 ++++++ 9 files changed, 73 insertions(+), 6 deletions(-) rename opam => brr.opam (81%) create mode 100644 dune-project create mode 100644 src/console/dune create mode 100644 src/dune create mode 100644 src/note/dune create mode 100644 src/ocaml_poke/dune create mode 100644 src/ocaml_poke_ui/dune create mode 100644 src/poke/dune create mode 100644 src/poked/dune diff --git a/opam b/brr.opam similarity index 81% rename from opam rename to brr.opam index a052f43..7322ae7 100644 --- a/opam +++ b/brr.opam @@ -3,19 +3,18 @@ name: "brr" synopsis: """Browser programming toolkit for OCaml""" maintainer: ["Daniel Bünzli "] authors: ["The brr programmers"] -homepage: "https://erratique.ch/software/brr" -doc: "https://erratique.ch/software/brr/doc/" -dev-repo: "git+https://erratique.ch/repos/brr.git" +homepage: "https://github.com/dune-universe/brr.git" +dev-repo: "git+https://github.com/dune-universe/brr" bug-reports: "https://github.com/dbuenzli/brr/issues" license: ["ISC" "BSD-3-Clause"] tags: ["reactive" "declarative" "frp" "front-end" "browser" "org:erratique"] depends: ["ocaml" {>= "4.08.0"} - "ocamlfind" {build} - "ocamlbuild" {build} + "dune" + "dune-site" "js_of_ocaml-compiler" {>= "4.0.0"} "js_of_ocaml-toplevel" {>= "4.0.0"} "note"] -build: [["ocaml" "pkg/pkg.ml" "build" "--dev-pkg" "%{dev}%"]] +build: [ "dune" "build" "-p" name "-j" jobs "@install" "@runtest" {with-test} ] description: """ Brr is a toolkit for programming browsers in OCaml with the [`js_of_ocaml`][jsoo] compiler. It provides: diff --git a/dune-project b/dune-project new file mode 100644 index 0000000..9f59ef5 --- /dev/null +++ b/dune-project @@ -0,0 +1,6 @@ +(lang dune 2.8) +(using dune_site 0.1) +(name brr) +(package + (name brr) + (sites (share console))) diff --git a/src/console/dune b/src/console/dune new file mode 100644 index 0000000..42c994c --- /dev/null +++ b/src/console/dune @@ -0,0 +1,5 @@ +(executable + (name ocaml_console) + (modules ocaml_console) + (libraries brr brr.ocaml_poke_ui) + (modes js)) diff --git a/src/dune b/src/dune new file mode 100644 index 0000000..e1d9be4 --- /dev/null +++ b/src/dune @@ -0,0 +1,27 @@ +(library + (name brr) + (public_name brr) + (modules brr brr_canvas brr_io brr_webaudio brr_webcrypto brr_webworkers fut jv jstr) + (libraries js_of_ocaml-compiler.runtime) + (wrapped false)) + +(dirs :standard console) + +(subdir console + (rule + (target ocaml_console.js) + (deps ocaml_console.bc.js) + (action (copy %{deps} %{target})))) + +(install + (section + (site (brr console))) + (files + console/devtools.html + console/devtools.js + console/highlight.pack.js + console/manifest.json + console/ocaml.png + console/ocaml_console.css + console/ocaml_console.html + console/ocaml_console.js)) diff --git a/src/note/dune b/src/note/dune new file mode 100644 index 0000000..0eff3d3 --- /dev/null +++ b/src/note/dune @@ -0,0 +1,6 @@ +(library + (name brr_note) + (public_name brr.note) + (modules brr_note brr_note_kit brr_note_legacy) + (libraries brr note) + (wrapped false)) diff --git a/src/ocaml_poke/dune b/src/ocaml_poke/dune new file mode 100644 index 0000000..a14b947 --- /dev/null +++ b/src/ocaml_poke/dune @@ -0,0 +1,6 @@ +(library + (name brr_ocaml_poke) + (public_name brr.ocaml_poke) + (modules brr_ocaml_poke) + (libraries brr) + (wrapped false)) diff --git a/src/ocaml_poke_ui/dune b/src/ocaml_poke_ui/dune new file mode 100644 index 0000000..cec2315 --- /dev/null +++ b/src/ocaml_poke_ui/dune @@ -0,0 +1,6 @@ +(library + (name brr_ocaml_poke_ui) + (public_name brr.ocaml_poke_ui) + (modules brr_ocaml_poke_ui) + (libraries brr brr.ocaml_poke) + (wrapped false)) diff --git a/src/poke/dune b/src/poke/dune new file mode 100644 index 0000000..915359a --- /dev/null +++ b/src/poke/dune @@ -0,0 +1,6 @@ +(library + (name brr_poke) + (public_name brr.poke) + (modules brr_poke) + (libraries js_of_ocaml-toplevel brr) + (wrapped false)) diff --git a/src/poked/dune b/src/poked/dune new file mode 100644 index 0000000..25d4e7c --- /dev/null +++ b/src/poked/dune @@ -0,0 +1,6 @@ +(library + (name brr_poked) + (public_name brr.poked) + (modules brr_poked) + (libraries brr brr.poke) + (wrapped false))