Skip to content

Commit

Permalink
Merge pull request linoscope#8 from vouillon/dune
Browse files Browse the repository at this point in the history
Adapt to version 3 of dune
  • Loading branch information
linoscope authored Dec 4, 2022
2 parents ea0ac8e + fd598ad commit 9e595e5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
4 changes: 0 additions & 4 deletions bin/web/bench.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ open Brr
open Brr_io
open Fut.Syntax

let alert v =
let alert = Jv.get Jv.global "alert" in
ignore @@ Jv.apply alert Jv.[| of_string v |]

let find_el_by_id id = Document.find_el_by_id G.document (Jstr.v id) |> Option.get

let run_rom_bytes rom_bytes frames =
Expand Down
6 changes: 0 additions & 6 deletions bin/web/index.ml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ let rom_options = [
{name = "SHEEP IT UP" ; path = "./sheep-it-up.gb"};
]

let alert v =
let alert = Jv.get Jv.global "alert" in
ignore @@ Jv.apply alert Jv.[| of_string v |]

let console_log s = Console.log Jstr.[of_string s]

let find_el_by_id id = Document.find_el_by_id G.document (Jstr.v id) |> Option.get

let draw_framebuffer ctx image_data fb =
Expand Down
4 changes: 1 addition & 3 deletions camlboy.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage: "https://github.com/linoscope/CAMLBOY"
doc: "https://github.com/linoscope/CAMLBOY"
bug-reports: "https://github.com/linoscope/CAMLBOY/issues"
depends: [
"dune" {>= "2.9"}
"dune" {>= "3.6"}
"brr" {>= "0.0.2"}
"js_of_ocaml-compiler" {>= "3.11.0"}
"js_of_ocaml-lwt" {>= "3.11.0"}
Expand All @@ -29,11 +29,9 @@ build: [
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/linoscope/CAMLBOY.git"
3 changes: 2 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(lang dune 2.9)
(lang dune 3.6)

(generate_opam_files true)

Expand All @@ -15,6 +15,7 @@

(package
(name camlboy)
(allow_empty)
(synopsis "A Gambeboy emulator written in OCaml")
(description "A Gambeboy emulator written in OCaml")
(depends
Expand Down
2 changes: 1 addition & 1 deletion lib/camlboy.mli
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module Make (Cartridge : Cartridge_intf.S) : Camlboy_intf.S
module Make (_ : Cartridge_intf.S) : Camlboy_intf.S
2 changes: 2 additions & 0 deletions lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
(libraries bigstringaf))

(include_subdirs unqualified)

(env (_ (flags (:standard -w -69))))

0 comments on commit 9e595e5

Please sign in to comment.