Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions lib/lwt/graphics/dune
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
(* -*- tuareg -*- *)
open Jbuild_plugin.V1

let graphics_exists =
try
match run_and_read_lines "ocamlfind query -a-format -predicates byte graphics" with
| path :: _ -> Sys.file_exists path
| _ -> false
with _ -> false

let () =
let jbuild =
if graphics_exists
then
{|
(library
(name graphics_js)
(public_name js_of_ocaml-lwt.graphics)
Expand All @@ -28,8 +13,3 @@ let () =
(mode promote)
(action (with-stdout-to %{targets}
(run ../../gen_stubs/gen_stubs.exe %{deps}))))

|}
else {||}
in
send jbuild