Skip to content

Commit 6c6664b

Browse files
authored
Misc: more dune syntax (#1118)
1 parent df14abf commit 6c6664b

File tree

1 file changed

+0
-20
lines changed
  • lib/lwt/graphics

1 file changed

+0
-20
lines changed

lib/lwt/graphics/dune

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
(* -*- tuareg -*- *)
2-
open Jbuild_plugin.V1
3-
4-
let graphics_exists =
5-
try
6-
match run_and_read_lines "ocamlfind query -a-format -predicates byte graphics" with
7-
| path :: _ -> Sys.file_exists path
8-
| _ -> false
9-
with _ -> false
10-
11-
let () =
12-
let jbuild =
13-
if graphics_exists
14-
then
15-
{|
161
(library
172
(name graphics_js)
183
(public_name js_of_ocaml-lwt.graphics)
@@ -28,8 +13,3 @@ let () =
2813
(mode promote)
2914
(action (with-stdout-to %{targets}
3015
(run ../../gen_stubs/gen_stubs.exe %{deps}))))
31-
32-
|}
33-
else {||}
34-
in
35-
send jbuild

0 commit comments

Comments
 (0)